/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

/* === Layout Containers === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.columns-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.columns-2 > section {
  flex: 1 1 48%;
}

/* === Header === */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ccc;
  padding: 1.2rem 0;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  height: 80px;
  width: auto;
}

.brand-text h1 {
  font-size: 2rem;
  margin: 0;
  color: #004aad;
}

.brand-text p {
  font-size: 1.25rem;
  margin: 0;
  color: #555;
}

.nav-links {
  display: flex;
  gap: 1.85rem;
  font-weight: bold;
  margin-left: auto;
}

.nav-links a {
  color: #004aad;
  text-decoration: none;
}

/* Hamburger styles (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: auto;
}

/* Hide checkbox */
.menu-toggle {
  display: none;
}

/* === Hero Section === */
.hero-image {
  position: relative;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.65);
  padding: 1.5rem;
  border-radius: 0.5rem;
  max-width: 80%;
  text-align: center;
  z-index: 10;
  color: #fff;
}

.hero-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-text h2,
.hero-text p {
  color: #fff;
}

.btn {
  background-color: #007bff;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

/* === base cards === */
/* Card styling for Services + Why Choose */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);*/
}

.card h3 {
  margin-top: 0;
}

.card ul {
  list-style: none;
  padding-left: 0;
}

.card li {
  margin-bottom: 0.5rem;
}

.card li::before {
  content: "✔ ";
  color: #007bff;
  margin-right: 0.25rem;
}

/* === Sections === */
h2,
h3,
h4 {
  margin-bottom: 1rem;
  color: #222;
}

ul {
  list-style: disc inside;
  margin-bottom: 1rem;
}

a {
  color: #004aad;
}

/* Add space between hero and main content */
.columns-2 {
  margin-top: 3rem;
}

.why-choose ul {
  list-style: none;
  padding-left: 0;
}

.why-choose li {
  margin-bottom: 0.5rem;
}

/* === Tech & Testimonials === */
.centered-section {
  text-align: center;
  margin: 3rem auto;
}

.centered-section img {
  border-radius: 0.5rem;
  max-width: 150px;
  margin-bottom: 1rem;
}

.tech-card {
  max-width: 700px;
  /*background: #f9f9f9;*/
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin: 3rem auto;
  /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);*/
}

.tech-profile {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.tech-photo img {
  width: 120px;
  border-radius: 0.5rem;
}

.tech-bio h2 {
  margin-top: 0;
}

@media (max-width: 768px) {
  .tech-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tech-bio {
    text-align: left;
  }

  .tech-card {
    padding: 1.5rem;
  }
}

/* === Testimonials === */
.testimonials {
  margin: 3rem auto;
  text-align: center;
}

.testimonial-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 300px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  flex: 1 1 300px;
}

.testimonial-card .quote {
  font-style: italic;
  margin-bottom: 0.75rem;
}

.testimonial-card .author {
  font-weight: bold;
  font-size: 0.95rem;
  color: #444;
}

@media (max-width: 768px) {
  .testimonial-cards {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-card {
    max-width: 90%;
  }
}

/* === Footer === */
footer {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 1rem;
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
  color: #555;
}

/* === Responsive === */
@media (max-width: 768px) {
  .columns-2 {
    flex-direction: column;
  }
}

.brand-row {
  flex-direction: column;
  align-items: flex-start;
}

.nav-links {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 90%;
  padding: 1rem;
}

@media (max-width: 768px) {
  .brand-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .menu-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}
.nav-links {
  transition: all 0.3s ease-in-out;
}

/* === Template Cards === */
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card-row .card {
  flex: 1 1 45%;
  min-width: 300px;
}

/* Optional: ensure even height */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);*/
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .card-row .card {
    flex: 1 1 100%;
  }
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}
.card-with-photo {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap; /* Makes it responsive */
}

.about-photo {
  max-width: 150px;
  border-radius: 8px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .tech-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tech-bio {
    text-align: left;
  }

  .tech-card {
    padding: 1.5rem;
  }
}
.card-flex {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: nowrap; /* important to prevent wrapping */
}

.about-photo-wrapper {
  flex-shrink: 0;
  max-width: 200px;
}

.about-photo {
  width: 100%;
  border-radius: 8px;
}
.about-text {
  flex: 1;
}

.card-flex .card-text {
  flex: 1;
}

@media (max-width: 600px) {
  .card-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-flex .card-text {
    text-align: left;
  }
}

.card-flex {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
}

.about-photo-wrapper {
  flex-shrink: 0;
}

.about-photo {
  max-width: 160px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-text {
  flex: 1;
}

/* Only stack on small phones */
@media (max-width: 600px) {
  .card-flex {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: left;
  }
}
/* TEST */
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch; /* 🔥 This makes all cards same height */
}

.card-row .card {
  flex: 1 1 45%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes content to top and bottom */
}

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start; /* ⬅️ This is the key! Align top, not center */
}

.card h3 {
  margin-bottom: 0.5rem; /* tighter than default */
}

.card ul,
.card p {
  margin-top: 0.5rem; /* smaller top spacing */
}
.card-flex {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: nowrap; /* important to prevent wrapping */
}
.about-photo-wrapper {
  flex-shrink: 0;
  max-width: 200px;
}

.about-photo {
  width: 100%;
  border-radius: 8px;
}
.about-text {
  flex: 1;
}
.zammad-button {
  background-color: #e63946;
  color: white;
  border: none;
  padding: 0.75em 1.5em;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1em;
  transition: background-color 0.3s ease;
}

.zammad-button:hover {
  background-color: #d62828;
}