/* =====================================================
   NATURE MEDICAL — styles.css
   Centro Médico Privado | Mendoza, Argentina
   Designed by Vex Studio
   ===================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Color Palette */
  --green-deep:    #1B4332;
  --green-dark:    #1E4B38;
  --green-mid:     #2D6A4F;
  --green-sage:    #52B788;
  --green-light:   #95D5B2;
  --green-pale:    #D8F3DC;
  --green-mist:    #EEF9F2;

  --cream:         #FAFAF7;
  --cream-dark:    #F2F0EC;
  --white:         #FFFFFF;

  --gold:          #C9A96E;
  --gold-deep:     #A8834A;
  --gold-light:    #E8D5B0;
  --gold-pale:     #FBF5EA;

  --text-dark:     #1A2420;
  --text-mid:      #3D5249;
  --text-light:    #7A9488;
  --text-muted:    #AABCB6;

  --border:        #DDE8E3;
  --border-light:  #EEF4F1;

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-xs:     0 1px 4px rgba(27, 67, 50, 0.06);
  --shadow-sm:     0 2px 12px rgba(27, 67, 50, 0.08);
  --shadow-md:     0 8px 32px rgba(27, 67, 50, 0.10);
  --shadow-lg:     0 20px 60px rgba(27, 67, 50, 0.14);
  --shadow-xl:     0 40px 80px rgba(27, 67, 50, 0.18);

  /* Spacing */
  --section-py:    96px;
  --container-px:  clamp(20px, 4vw, 60px);
  --container-max: 1200px;

  /* Radius */
  --r-sm:    8px;
  --r-md:    16px;
  --r-lg:    24px;
  --r-xl:    40px;
  --r-full:  9999px;

  /* Transitions */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
}

address { font-style: normal; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* ===== SECTION HEADERS ===== */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 14px;
  position: relative;
  padding-left: 28px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 1.5px;
  background: var(--green-sage);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-label,
.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.section-header .section-label {
  padding-left: 0;
  display: block;
  text-align: center;
}
.section-header .section-label::before { display: none; }
.section-header .section-label::after {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--green-sage);
  margin: 6px auto 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--r-full);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn--sm  { padding: 10px 22px; font-size: 13px; }
.btn--md  { padding: 14px 30px; font-size: 15px; }
.btn--lg  { padding: 18px 38px; font-size: 16px; }

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.35);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.btn--green {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}
.btn--green:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(27,67,50,0.25);
}

.btn--outline-green {
  background: transparent;
  color: var(--green-mid);
  border-color: var(--green-mid);
}
.btn--outline-green:hover {
  background: var(--green-mist);
  transform: translateY(-2px);
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 0;
}
.navbar.scrolled {
  background: rgba(250, 250, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.navbar.scrolled .nav-logo { color: var(--green-deep); }
.navbar.scrolled .nav-link { color: var(--text-mid); }
.navbar.scrolled .nav-link:hover { color: var(--green-mid); }
.navbar.scrolled .lang-btn { color: var(--text-mid); }
.navbar.scrolled .lang-divider { color: var(--text-muted); }
.navbar.scrolled .nav-hamburger span { background: var(--text-dark); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--container-px);
  gap: 24px;
  transition: padding var(--transition);
}
.navbar.scrolled .nav-container { padding-top: 14px; padding-bottom: 14px; }

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  transition: color var(--transition);
  flex-shrink: 0;
}
.nav-logo__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
}
.nav-logo__text { display: flex; flex-direction: column; }
.nav-logo__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.nav-logo__tagline {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  line-height: 1;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { color: var(--white); }

/* Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
  padding: 2px 0;
}
.lang-btn--active { color: rgba(255,255,255,0.95); }
.lang-btn:hover   { color: var(--white); }
.lang-divider {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  user-select: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(250, 250, 247, 0.98);
  backdrop-filter: blur(16px);
  padding: 16px var(--container-px) 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile .nav-link {
  display: block;
  padding: 12px 0;
  color: var(--text-mid);
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
}
.nav-mobile .nav-link:last-child { border-bottom: none; }
.nav-mobile .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #0B2617 0%, var(--green-deep) 40%, #245D42 70%, var(--green-mid) 100%);
  padding-top: 100px;
  padding-bottom: 60px;
}

/* Background decorations */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.18) 0%, transparent 70%);
}
.hero-orb--1 { width: 700px; height: 700px; top: -200px; right: -200px; animation: drift1 12s ease-in-out infinite alternate; }
.hero-orb--2 { width: 500px; height: 500px; bottom: -150px; left: -100px; animation: drift2 15s ease-in-out infinite alternate; background: radial-gradient(circle, rgba(201,169,110,0.1) 0%, transparent 70%); }
.hero-orb--3 { width: 300px; height: 300px; top: 30%; left: 20%; animation: drift3 10s ease-in-out infinite alternate; }

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-30px, 20px) scale(1.05); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(20px, -30px); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(15px, 25px) scale(0.9); } }

/* Floating leaves */
.hero-leaf {
  position: absolute;
  color: rgba(149, 213, 178, 0.15);
}
.hero-leaf--1 { width: 80px; height: 120px; top: 15%; right: 10%; animation: floatLeaf 9s ease-in-out infinite; }
.hero-leaf--2 { width: 55px; height: 85px; top: 60%; left: 5%; animation: floatLeaf 11s ease-in-out infinite 2s; }
.hero-leaf--3 { width: 40px; height: 60px; bottom: 20%; right: 20%; animation: floatLeaf 7s ease-in-out infinite 4s; }

@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(5deg); }
  66%       { transform: translateY(8px) rotate(-3deg); }
}

/* Subtle grid lines */
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(149,213,178,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149,213,178,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Hero content */
.hero-content { position: relative; z-index: 1; padding: 0 16px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero-badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-sage);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(82,183,136,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(82,183,136,0.1); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat__label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-stat__divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.2);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-scroll-indicator__line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Hero fade-up animation */
.animate-fade-up {
  animation: fadeUp 0.8s var(--ease-out) both;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== BENEFITS ===== */
.benefits {
  background: var(--white);
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.benefit-card {
  padding: 40px 32px;
  background: var(--white);
  text-align: center;
  position: relative;
  transition: background var(--transition);
}
.benefit-card::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: var(--border-light);
}
.benefit-card:last-child::after { display: none; }
.benefit-card:hover { background: var(--green-mist); }

.benefit-card__icon {
  width: 52px; height: 52px;
  margin: 0 auto 20px;
  color: var(--green-sage);
}
.benefit-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.benefit-card__text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about {
  padding: var(--section-py) 0;
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* About visual */
.about-visual__frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about-visual__inner {
  width: 360px; height: 360px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mist), var(--cream-dark));
  border: 1.5px solid var(--green-pale);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.about-visual__inner::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px dashed var(--border);
  animation: rotateSlow 30s linear infinite;
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }

.about-visual__icon {
  width: 160px; height: 160px;
  color: var(--green-mid);
}

.about-visual__badge {
  position: absolute;
  bottom: 24px; right: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  text-align: center;
}
.about-visual__badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--green-mid);
  line-height: 1;
  margin-bottom: 4px;
}
.about-visual__badge-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* About content */
.about-content__lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 18px;
}
.about-content__text {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-pillars { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-mid);
}
.about-pillar__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-sage);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ===== SPECIALTIES ===== */
.specialties {
  padding: var(--section-py) 0;
  background: var(--white);
}
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Specialty card */
.specialty-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.specialty-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.specialty-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}
.specialty-card__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.specialty-card__emoji {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--green-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.specialty-card:hover .specialty-card__emoji { background: var(--green-pale); }

.specialty-card__info { min-width: 0; }
.specialty-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.specialty-card__count {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.specialty-card__chevron {
  width: 28px; height: 28px;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}
.specialty-card.open .specialty-card__chevron {
  transform: rotate(180deg);
  color: var(--green-mid);
}

/* Specialty body */
.specialty-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.specialty-card.open .specialty-card__body { max-height: 600px; }

.specialty-card__content {
  padding: 0 28px 28px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.specialty-card__desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 18px;
}
.specialty-card__duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 16px;
  background: var(--green-mist);
  padding: 5px 12px;
  border-radius: var(--r-full);
}

.specialty-pros-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.specialty-pro {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
}
.specialty-pro__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}

/* ===== TEAM ===== */
.team {
  padding: var(--section-py) 0;
  background: var(--cream);
}

/* Filter buttons */
.team-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--green-sage); color: var(--green-mid); }
.filter-btn--active {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Doctor card */
.doctor-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: default;
}
.doctor-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
  transform: translateY(-4px);
}
.doctor-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin: 0 auto 16px;
  flex-shrink: 0;
}
.doctor-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.doctor-card__specialty {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 10px;
}
.doctor-card__bio {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 18px;
}
.doctor-card__btn {
  width: 100%;
  justify-content: center;
}

/* ===== BOOKING ===== */
.booking {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.booking-widget {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Step indicator */
.booking-steps {
  display: flex;
  align-items: center;
  padding: 32px 40px;
  background: var(--green-deep);
  gap: 0;
}
.booking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
}
.booking-step__circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.booking-step--active .booking-step__circle {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 0 0 6px rgba(201,169,110,0.25);
}
.booking-step--done .booking-step__circle {
  background: var(--green-sage);
  border-color: var(--green-sage);
  color: var(--white);
}
.booking-step__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.booking-step--active .booking-step__label { color: rgba(255,255,255,0.9); }
.booking-step--done .booking-step__label  { color: var(--green-light); }

.booking-step__connector {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin-bottom: 20px;
}

/* Panels */
.booking-panels { padding: 40px; }

.booking-panel { display: none; }
.booking-panel--active { display: block; animation: panelIn 0.4s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.booking-panel__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 28px;
}

/* Specialty selector (step 1) */
.specialty-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.specialty-option {
  padding: 16px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--cream);
}
.specialty-option:hover {
  border-color: var(--green-sage);
  background: var(--green-mist);
}
.specialty-option--selected {
  border-color: var(--green-mid);
  background: var(--green-mist);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}
.specialty-option__emoji { font-size: 26px; margin-bottom: 8px; }
.specialty-option__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.3;
}

/* Professional selector (step 2) */
.professional-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.pro-option {
  padding: 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
}
.pro-option:hover { border-color: var(--green-sage); background: var(--green-mist); }
.pro-option--selected { border-color: var(--green-mid); background: var(--green-mist); box-shadow: 0 0 0 3px rgba(45,106,79,0.1); }
.pro-option__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.pro-option__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.pro-option__title { font-size: 12px; color: var(--text-light); }

/* Calendar */
.datetime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.calendar-container {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--green-deep);
  color: var(--white);
}
.calendar-month-label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  text-transform: capitalize;
}
.calendar-nav {
  width: 30px; height: 30px;
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.calendar-nav:hover { background: rgba(255,255,255,0.15); }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 10px 10px 0;
}
.calendar-weekdays span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 6px 10px 14px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  border-radius: var(--r-sm);
  cursor: default;
  transition: all 0.2s;
}
.cal-day--empty { background: transparent; }
.cal-day--available {
  cursor: pointer;
  color: var(--text-dark);
}
.cal-day--available:hover { background: var(--green-pale); color: var(--green-mid); }
.cal-day--selected {
  background: var(--green-mid) !important;
  color: var(--white) !important;
  font-weight: 600;
}
.cal-day--today {
  color: var(--green-mid);
  font-weight: 600;
}
.cal-day--disabled {
  color: var(--text-muted);
  opacity: 0.45;
}
.cal-day--past { opacity: 0.3; }

/* Timeslots */
.timeslots-container {
  display: flex;
  flex-direction: column;
}
.timeslots-prompt {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  margin-top: 40px;
  padding: 0 16px;
}
.timeslots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.time-slot {
  padding: 10px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--cream);
}
.time-slot:hover:not(.time-slot--booked) { border-color: var(--green-sage); background: var(--green-mist); color: var(--green-mid); }
.time-slot--selected { background: var(--green-mid); border-color: var(--green-mid); color: var(--white); }
.time-slot--booked { background: var(--cream-dark); color: var(--text-muted); cursor: not-allowed; font-size: 12px; }
.time-slot--booked::after { content: '✕'; margin-left: 4px; font-size: 10px; }

.timeslots-date-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 16px;
}

/* Booking Summary */
.booking-summary {
  background: var(--green-mist);
  border: 1px solid var(--green-pale);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.booking-summary__item {}
.booking-summary__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 5px;
}
.booking-summary__value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
}

/* Form */
.booking-form { margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 0; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  font-family: var(--font-body);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--green-sage);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.15);
}
.form-input.error { border-color: #e74c3c; }
.form-textarea { resize: vertical; min-height: 80px; }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

/* Back button */
.booking-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 0;
  transition: color var(--transition);
  cursor: pointer;
}
.booking-back-btn:hover { color: var(--green-mid); }

/* ===== FOOTER ===== */
.footer { background: var(--green-deep); color: rgba(255,255,255,0.8); }

.footer-top { padding: 72px 0 48px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 48px;
}

.footer-col--brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-logo__icon { width: 34px; height: 34px; }

.footer-col__desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--white); transform: translateY(-3px); }

.footer-col__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }

/* Footer contact */
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.footer-contact__item svg { flex-shrink: 0; margin-top: 2px; opacity: 0.7; }
.footer-contact__item a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-contact__item a:hover { color: var(--gold-light); }

/* Footer hours */
.footer-hours { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.footer-hours__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.footer-hours__row--closed { opacity: 0.5; }

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--r-full);
}
.footer-status--open  { background: rgba(82,183,136,0.2); color: var(--green-light); }
.footer-status--open::before  { content: '●'; font-size: 8px; }
.footer-status--closed { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.footer-status--closed::before { content: '●'; font-size: 8px; }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom__credit {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-credit-link {
  color: var(--gold-light);
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-credit-link:hover { color: var(--gold); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 18, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn 0.3s var(--ease-out);
}
.modal-overlay[hidden] { display: none; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 44px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.4s var(--ease-out);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-header { text-align: center; margin-bottom: 28px; }
.modal-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
.modal-icon--success {
  background: var(--green-mist);
  color: var(--green-mid);
}
.modal-icon--success svg { width: 32px; height: 32px; }

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.modal-subtitle { font-size: 15px; color: var(--text-light); line-height: 1.65; }

.modal-summary {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
}
.modal-summary__key { color: var(--text-light); font-weight: 400; }
.modal-summary__val { color: var(--text-dark); font-weight: 500; text-align: right; max-width: 60%; }

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-actions .btn { width: 100%; justify-content: center; }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }

  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-card::after { display: none; }
  .benefit-card { border: 1px solid var(--border-light); border-radius: var(--r-sm); }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual__frame { justify-content: center; }
  .about-visual__inner { width: 280px; height: 280px; }

  .team-grid { grid-template-columns: repeat(3, 1fr); }

  .specialty-selector { grid-template-columns: repeat(4, 1fr); }
  .professional-selector { grid-template-columns: repeat(2, 1fr); }

  .booking-summary { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --section-py: 56px; --container-px: 20px; }

  /* Nav */
  .nav-links, .nav-controls .btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-container { padding-top: 18px; padding-bottom: 18px; }

  /* Hero */
  .hero { padding-top: 80px; }
  .hero-title { font-size: clamp(38px, 10vw, 56px); }
  .hero-badge { font-size: 11px; padding: 7px 16px; }
  .hero-stats { gap: 20px; }
  .hero-stat__number { font-size: 28px; }
  .hero-leaf { display: none; }

  /* Specialties */
  .specialties-grid { grid-template-columns: 1fr; }
  .specialty-selector { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  /* Booking */
  .booking-steps { padding: 20px; flex-wrap: wrap; justify-content: center; }
  .booking-step__connector { display: none; }
  .booking-step__label { font-size: 10px; }
  .booking-panels { padding: 24px 20px; }
  .specialty-selector { grid-template-columns: repeat(2, 1fr); }
  .professional-selector { grid-template-columns: 1fr; }
  .datetime-grid { grid-template-columns: 1fr; }
  .booking-summary { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  /* Modal */
  .modal { padding: 28px 20px; }
  .modal-actions .btn { font-size: 14px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .hero-actions .btn--lg { padding: 14px 24px; font-size: 14px; }
  .booking-steps { gap: 8px; }
}