:root {
  --primary: #16a34a;
  --text-main: #111827;
  --nav-bg: #ffffff;
  --btn-radius: 999px;
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  background: #ffffff;
}

/* ---------- NAVBAR ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  padding: 18px 0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

nav {
  display: flex;
  gap: 2rem;
}

/* Base nav styling */
nav a {
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #111827;
  transition: 0.25s ease;
}

/* GLASS ACTIVE EFFECT */
nav a.active {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #16a34a;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
}

/* Hover effect */
nav a:hover {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

/* mobile toggle */
.nav-toggle {
  display: none;
  width: 26px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: absolute;
  right: 1.5rem;
}

.nav-toggle span {
  height: 3px;
  border-radius: 999px;
  background: var(--text-main);
}

/* ---------- HERO ---------- */
main {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 1.5rem 120px;
  background: radial-gradient(circle at 50% 0%, #f3faf6 0%, #ffffff 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-logo-circle {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.22);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  animation: float 3s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-logo-circle img {
  width: 200%;
  height: auto;
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.hero-text-block {
  flex: 1;
  text-align: right;
}

.hero-badge {
  display: inline-block;
  color: #111827;
  font-size: 2rem;
  font-weight: 900;
}

.hero-title-alt {
  font-size: clamp(3rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 0.7rem;
  font-family: "Montserrat", sans-serif;
  color: #020617;
  text-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.hero-sub-alt {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  color: #4b5563;
  max-width: 440px;
  font-family: "Montserrat", sans-serif;
  margin-left: auto;
  margin-bottom: 2.1rem;
}

.hero-buttons {
  display: inline-flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* glass buttons */
.hero-btn {
  position: relative;
  padding: 0.9rem 2.4rem;
  width: 200px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: "Montserrat", sans-serif;

  background: rgba(255, 255, 255, 0.12);
  color: #16a34a;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition: transform 0.18s ease,
              box-shadow 0.18s ease,
              background 0.18s ease,
              color 0.18s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-btn-primary {
  background: rgba(255, 255, 255, 0.18);
  color: #16a34a;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.28);
}

.hero-btn-primary:hover {
  background: rgba(22, 163, 74, 0.35);
}

/* ---------- DOCTORS SECTION ---------- */
/* ---------- DOCTORS SECTION ---------- */
.doctors-section {
  padding: 5rem 1.5rem 4rem;
  background: #ffffff;
}

.doctors-container {
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Montserrat", sans-serif;
  color: #020617;
  text-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* 3 cards per row, each card centered and not too wide */
.doctor-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
  justify-items: center;         /* center cards in their column */
}

/* Responsive layout */
@media (max-width: 1024px) {
  .doctor-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .doctor-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Whole card – tray look like your reference image */
.doctor-card {
  position: relative;
  max-width: 360px;              /* 👈 controls width (smaller card) */
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 2.7rem 1.6rem 1.4rem; /* slightly less top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;              /* needed for overlay */
  display: flex;
  justify-content: center;
  align-items: center; /* brings content vertical center */
  flex-direction: column;
  text-align: center;
  padding-top: 1.5rem;  /* optional small adjust so it looks balanced */
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

/* Avatar at top */
.doctor-avatar-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem; /* keep spacing below */
}

.doctor-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f9fafb;
  position: relative;
}

.doctor-avatar-circle img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* small "+" badge (optional) */
.doctor-avatar-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #22c55e;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.45);
}

/* Text content */
.doctor-card-content {
  width: 100%;
}

.doctor-name {
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.2rem;
}

.doctor-spec {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 0.7rem;
}

/* Description + days + time */
.doctor-detail {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.doctor-days,
.doctor-time {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0.1rem 0;
}

/* Bottom action row – like "Like / Trade" bar */
.doctor-card-actions {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e5e7eb;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;               /* ✅ uniform distance between buttons */
  width: 100%;
  margin-top: 1.2rem;      /* ✅ consistent spacing from content above */
}

/* Base button style */
.doctor-btn {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.25rem 0.3rem;
  color: #9ca3af;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

/* "Copy" = Like */
.doctor-btn-copy {
  color: #6b7280;
}

/* "Book Appointment" button */
.doctor-btn-book {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #111827;
  padding: 0.55rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.doctor-btn-copy:hover {
  color: #111827;
}

.doctor-btn-book:hover {
  background: rgba(22,163,74,0.85);
  border-color: rgba(22,163,74,0.9);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.35);
}

.doctor-btn-book:active {
  transform: scale(0.96);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ---------- SPECIALIZATION OVERLAY (behind card) ---------- */

.doctor-card-back {
  position: absolute;
  inset: 0;
  padding: 2.2rem 1.8rem;
  box-sizing: border-box;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* show overlay when card has .show-back (set from JS) */
.doctor-card.show-back .doctor-card-back {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* back panel text styles */
.doctor-back-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  color: #111827;
}

.doctor-back-text {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.doctor-back-note {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.doctor-card:nth-child(3n + 2) .doctor-card-actions {
  gap: 1.2rem;            /* ✅ adds spacing between Copy & Book */
  justify-content: center;/* keeps centered alignment */
}



/* ---------- WHY CHOOSE US ---------- */
.why-choose {
  padding: 5rem 1.5rem 5rem;
  background: #ffffff;
}

.why-container {
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}

.why-heading {
  font-size: 2.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Montserrat", sans-serif;
  color: #020617;
  text-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  margin-bottom: 1rem;
}

.why-subtitle {
  font-size: 0.98rem;
  font-weight: 300;
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-radius: 24px;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);

  transition: transform 0.22s ease,
              box-shadow 0.22s ease,
              background 0.22s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.why-card:hover .why-icon {
  filter: drop-shadow(0 6px 14px rgba(22, 163, 74, 0.45));
}

.why-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.why-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.why-text {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ---------- ABOUT US ---------- */
.about-section {
  padding: 5rem 1.5rem;
  background: #ffffff;
  text-align: center;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
}

.about-title {
  font-size: 2.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Montserrat", sans-serif;
  color: #020617;
  text-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  margin-bottom: 1rem;
}

.about-desc {
  font-size: 1rem;
  font-weight: 300;
  color: #6b7280;
  line-height: 1.7;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.team-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Montserrat", sans-serif;
  color: #020617;
  text-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  margin-bottom: 1rem;
}

/* --- OUR TEAM CARDS --- */
/* ---------- OUR TEAM – CODEPEN STYLE 2-FACE CARDS ---------- */

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

/* each card behaves like .container .card from reference */
.team-card {
  position: relative;
  border-radius: 20px;
  cursor: pointer;
}

/* faces = like reference .face */
.team-card .face {
  width: 260px;
  height: 200px;
  transition: 0.5s;
  border-radius: 0px;
}

/* FACE 1: image card (default visible) */
.team-card .face.face1 {
  position: relative;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transform: translateY(100px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.team-card .face.face1 .content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FACE 2: white card with name + role (hidden under) */
.team-card .face.face2 {
  position: relative;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.18);
  transform: translateY(-100px);
}

.team-card .face.face2 .content {
  text-align: center;
}

.team-card .face.face2 .content h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.team-card .face.face2 .content p {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* HOVER: slide up like in your reference CSS */
.team-card:hover .face.face1 {
  transform: translateY(0);
}

.team-card:hover .face.face2 {
  transform: translateY(0);
}

/* responsive tweak */
@media (max-width: 640px) {
  .team-card .face {
    width: 100%;
    max-width: 260px;
  }
}


/* ---------- GLASS CTA SECTION ---------- */
.consult-cta {
  background: radial-gradient(circle at 50% 0%, #f3faf6 0%, #ffffff 60%);
  padding: 5rem 1.5rem;
}

.consult-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;

  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  padding: 2.8rem 2.2rem 3.2rem;
}

.consult-title {
  font-size: 2.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Montserrat", sans-serif;
  color: #020617;
  text-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  margin-bottom: 1rem;
}

.consult-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 2.4rem;
}

/* glass button same vibe as hero buttons */
.consult-btn {
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: "Montserrat", sans-serif;

  background: rgba(255, 255, 255, 0.18);
  color: #16a34a;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition: transform 0.18s ease,
              box-shadow 0.18s ease,
              background 0.18s ease,
              color 0.18s ease;
}

.consult-btn:hover {
  background: rgba(22, 163, 74, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.28);
}

/* ---------- CONTACT ---------- */
.contact-section {
  background: radial-gradient(circle at 50% 0%, #f3faf6 0%, #ffffff 60%);
  padding: 5rem 1.5rem;
  text-align: center;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-title {
  font-size: 2.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Montserrat", sans-serif;
  color: #020617;
  text-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 0.98rem;
  font-weight: 300;
  color: #6b7280;
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Icon as image */
.contact-card img {
  width: 55px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

/* Card glass effect */
.contact-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 2rem;
  text-align: center;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.03);
  box-shadow: 0 24px 60px rgba(22, 163, 74, 0.25);
}

.contact-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info {
  font-size: 0.95rem;
  color: #4b5563;
}

.contact-map {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  margin-top: 2rem;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #f5fdf8;
  padding: 3.5rem 1.5rem 2.5rem;

}

.footer-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 3rem;
  align-items: flex-start;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.footer-brand-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
}

.footer-text {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.7;
  max-width: 320px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li,
.footer-contact li + li {
  margin-top: 0.4rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #4b5563;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact li {
  font-size: 0.9rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
}

.footer-bottom {
  max-width: 1150px;
  margin: 2.5rem auto 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 130px 1.5rem 80px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-logo-circle {
    width: 260px;
    height: 260px;
  }

  .hero-text-block {
    text-align: center;
  }

  .hero-sub-alt {
    margin: 0 auto 1.8rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-btn {
    width: 100%;
    max-width: 260px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    justify-content: center;
    position: relative;
  }

  .nav-toggle {
    display: flex;
    width: 26px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 70;
  }

  .nav-toggle span {
    background: #111827;
  }

  nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.96);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid rgba(22, 163, 74, 0.15);
    z-index: 60;
  }

  nav.open {
    max-height: 260px;
  }

  nav a {
    padding: 0.75rem 1.5rem;
    color: #111827;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-map {
    height: 300px;
  }
}

@media (max-width: 550px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .consult-inner {
    padding: 2rem 1.4rem;      /* a bit less side padding */
  }

  .consult-title {
    font-size: 1.6rem;         /* smaller heading */
    line-height: 1.25;
    letter-spacing: 0.05em;    /* less spacing so it wraps nicely */
    word-break: break-word;    /* force wrap if needed */
  }

  .consult-text {
    font-size: 0.9rem;
  }
}
/* ===== Minimal mobile overflow fix — append only ===== */

/* Prevent horizontal scrolling on mobile */

html, body {
  overflow-x: hidden !important;
}

/* ----- Language toggle ----- */
.nav-container {
  position: relative;
}

.lang-toggle {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #f9fafb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  z-index: 30;
}

.lang-btn {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  color: #6b7280;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.lang-btn.active {
  background: #16a34a;
  color: #ffffff;
}

.lang-btn:hover {
  transform: translateY(-1px);
}

/* small tweak on very small screens */
@media (max-width: 640px) {
  .lang-toggle {
    left: 0.75rem;
  }
}
