/* ============================================================
   style.css — Design Tokens + All Styles
   Kristina T. Nguyen, D.D.S. — Luxury Wellness Dental
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    7rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ===== LIGHT MODE ===== */
:root, [data-theme="light"] {
  --color-bg:               #F7F3EE;
  --color-surface:          #FFFFFF;
  --color-surface-2:        #FAFAF8;
  --color-surface-offset:   #F0EBE3;
  --color-surface-offset-2: #E8E2D8;
  --color-surface-dynamic:  #DDD7CC;
  --color-divider:          #DCD5CA;
  --color-border:           #D0C9BD;

  --color-text:             #1A1A1A;
  --color-text-muted:       #6E6E6E;
  --color-text-faint:       #A8A8A8;
  --color-text-inverse:     #FFFFFF;

  --color-primary:          #5C7C5E;
  --color-primary-hover:    #4A6A4C;
  --color-primary-active:   #3D5B3F;
  --color-primary-highlight: #D4DED5;

  --color-gold:             #C4955A;
  --color-gold-hover:       #B07F46;

  --shadow-sm:  0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md:  0 4px 16px rgba(26, 26, 26, 0.07);
  --shadow-lg:  0 12px 40px rgba(26, 26, 26, 0.10);
  --shadow-xl:  0 20px 60px rgba(26, 26, 26, 0.14);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --color-bg:               #141312;
  --color-surface:          #1C1B19;
  --color-surface-2:        #242320;
  --color-surface-offset:   #1E1D1B;
  --color-surface-offset-2: #2A2926;
  --color-surface-dynamic:  #333230;
  --color-divider:          #333230;
  --color-border:           #3E3D3A;

  --color-text:             #E8E4DE;
  --color-text-muted:       #9A9590;
  --color-text-faint:       #5E5B57;
  --color-text-inverse:     #141312;

  --color-primary:          #7FA882;
  --color-primary-hover:    #6C9470;
  --color-primary-active:   #5A805E;
  --color-primary-highlight: #2A332B;

  --color-gold:             #D4B477;
  --color-gold-hover:       #C2A265;

  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-xl:  0 20px 60px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #141312;
    --color-surface:          #1C1B19;
    --color-surface-2:        #242320;
    --color-surface-offset:   #1E1D1B;
    --color-surface-offset-2: #2A2926;
    --color-surface-dynamic:  #333230;
    --color-divider:          #333230;
    --color-border:           #3E3D3A;
    --color-text:             #E8E4DE;
    --color-text-muted:       #9A9590;
    --color-text-faint:       #5E5B57;
    --color-text-inverse:     #141312;
    --color-primary:          #7FA882;
    --color-primary-hover:    #6C9470;
    --color-primary-active:   #5A805E;
    --color-primary-highlight: #2A332B;
    --color-gold:             #D4B477;
    --color-gold-hover:       #C2A265;
    --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-xl:  0 20px 60px rgba(0, 0, 0, 0.4);
  }
}


/* ===== LAYOUT ===== */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-10), 5vw, var(--space-20));
}


/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: background var(--transition-interactive),
              backdrop-filter var(--transition-interactive),
              box-shadow var(--transition-interactive),
              padding 300ms var(--ease-out);
}

/* Over the hero (not yet scrolled) — white text for contrast against bright photo */
.nav:not(.nav--scrolled) .nav__logo {
  color: #ffffff;
}
.nav:not(.nav--scrolled) .nav__logo svg {
  stroke: #ffffff;
}
.nav:not(.nav--scrolled) .nav__links a {
  color: rgba(255, 255, 255, 0.85);
}
.nav:not(.nav--scrolled) .nav__links a:hover {
  color: #ffffff;
}
.nav:not(.nav--scrolled) .nav__links a::after {
  background: rgba(255, 255, 255, 0.8);
}
.nav:not(.nav--scrolled) .nav__phone {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}
.nav:not(.nav--scrolled) .nav__phone:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}
.nav:not(.nav--scrolled) .hamburger span {
  background: #ffffff;
}

.nav--scrolled {
  background: rgba(247, 243, 238, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) 0;
}

[data-theme="dark"] .nav--scrolled {
  background: rgba(20, 19, 18, 0.85);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.nav__logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-2);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}

.nav__phone:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.mobile-menu a:hover {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav__phone { display: flex; }
}

@media (max-width: 767px) {
  .nav__links { display: none; }
}


/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  animation: kenBurns 25s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0%   { transform: scale(1);    }
  100% { transform: scale(1.06); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    /* dark scrim at top for nav readability */
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.32) 0%,
      rgba(0, 0, 0, 0.12) 16%,
      transparent 30%
    ),
    linear-gradient(to bottom,
      rgba(247, 243, 238, 0.1) 0%,
      rgba(247, 243, 238, 0.05) 25%,
      rgba(247, 243, 238, 0.2) 45%,
      rgba(247, 243, 238, 0.55) 65%,
      rgba(247, 243, 238, 0.85) 82%,
      #F7F3EE 100%
    ),
    linear-gradient(to right,
      rgba(247, 243, 238, 0.45) 0%,
      rgba(247, 243, 238, 0.1) 30%,
      transparent 50%
    );
}

[data-theme="dark"] .hero__overlay {
  background:
    linear-gradient(to bottom,
      rgba(20, 19, 18, 0.15) 0%,
      rgba(20, 19, 18, 0.1) 25%,
      rgba(20, 19, 18, 0.3) 45%,
      rgba(20, 19, 18, 0.65) 65%,
      rgba(20, 19, 18, 0.9) 82%,
      #141312 100%
    ),
    linear-gradient(to right,
      rgba(20, 19, 18, 0.45) 0%,
      rgba(20, 19, 18, 0.1) 30%,
      transparent 50%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--space-6) clamp(var(--space-8), 5vw, var(--space-16));
  max-width: var(--content-wide);
  margin-inline: auto;
  width: 100%;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 40px rgba(247, 243, 238, 0.3);
}

[data-theme="dark"] .hero__headline {
  text-shadow: 0 2px 40px rgba(20, 19, 18, 0.5);
}

.hero__headline em {
  font-style: italic;
  display: block;
}

.hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-weight: 400;
  max-width: 40ch;
  margin-bottom: var(--space-8);
}

.hero__divider {
  width: 60px;
  height: 1.5px;
  background: var(--color-gold);
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: dividerReveal 1s var(--ease-out) 1.2s forwards;
}

@keyframes dividerReveal {
  to { opacity: 1; width: 80px; }
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}


/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive);
}

.btn--primary {
  background: var(--color-primary);
  color: #FFFFFF;
  padding: var(--space-4) var(--space-8);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-8);
}

.btn--ghost:hover {
  border-color: var(--color-text);
  background: rgba(26, 26, 26, 0.04);
}

[data-theme="dark"] .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}


/* ===== TRUST BAR ===== */
.trust-bar {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.trust-bar__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.trust-bar__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.trust-bar__stars {
  color: var(--color-gold);
  font-size: var(--text-sm);
  line-height: 1;
}

@media (max-width: 600px) {
  .trust-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}


/* ===== ABOUT ===== */
.about {
  background: var(--color-bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image-frame {
  position: relative;
}

.about__image-frame::before {
  content: '';
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  right: calc(var(--space-4) * -1);
  bottom: calc(var(--space-4) * -1);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-xl);
  opacity: 0.3;
  z-index: 0;
}

.about__image {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}

.about__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.about__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.about__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 55ch;
}

.about__quote {
  position: relative;
  padding-left: var(--space-6);
  border-left: 2px solid var(--color-gold);
}

.about__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text);
  max-width: 40ch;
}

.about__quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 767px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .about__image {
    max-width: 320px;
    margin-inline: auto;
  }
}


/* ===== SERVICES ===== */
.services {
  background: var(--color-surface-offset);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .service-card {
  border-color: rgba(255, 255, 255, 0.06);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

.services__partner {
  margin-top: var(--space-10);
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.services__partner-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 68ch;
  margin: 0 auto;
}

.services__partner-text strong {
  color: var(--color-text);
  font-weight: 500;
}


/* ===== REVIEWS ===== */
.reviews {
  background: var(--color-bg);
}

.reviews__badges {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid rgba(26,26,26,0.06);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
}

[data-theme="dark"] .rating-badge {
  border-color: rgba(255,255,255,0.06);
}

.rating-badge__stars {
  display: flex;
  gap: 2px;
  color: var(--color-gold);
}

.rating-badge__score {
  font-weight: 600;
  font-size: var(--text-sm);
}

.rating-badge__source {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Masonry layout using CSS columns */
.reviews__masonry {
  columns: 3 300px;
  column-gap: var(--space-5);
}

.review-card {
  break-inside: avoid;
  background: var(--color-surface);
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

[data-theme="dark"] .review-card {
  border-color: rgba(255, 255, 255, 0.06);
}

.review-card__stars {
  display: flex;
  gap: 2px;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.review-card__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.review-card__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-card__name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
}

.review-card__source {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

@media (max-width: 767px) {
  .reviews__masonry {
    columns: 1;
  }
  .reviews__badges {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .reviews__masonry {
    columns: 2;
  }
}


/* ===== TEAM ===== */
.team {
  background: var(--color-surface-offset);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 900px;
  margin-inline: auto;
}

.team-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(26, 26, 26, 0.06);
  overflow: hidden;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .team-card {
  border-color: rgba(255, 255, 255, 0.06);
}

.team-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
}

.team-card__initials {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-offset);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-primary);
  font-weight: 400;
}

.team-card__info {
  padding: var(--space-6);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .team__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}


/* ===== FAQ ===== */
.faq {
  background: var(--color-bg);
  padding: var(--space-24) 0;
}

.faq__list {
  margin-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
  transition: border-color var(--transition-interactive);
}

.faq__item[open] {
  border-bottom-color: var(--color-gold);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  gap: var(--space-6);
  transition: color var(--transition-interactive);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__item[open] .faq__question {
  color: var(--color-gold);
}

.faq__question::after {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4955A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform var(--transition-interactive);
}

.faq__item[open] .faq__question::after {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 0 var(--space-6);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 72ch;
}

.faq__answer a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--color-bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
}

.contact__info-group {
  margin-bottom: var(--space-8);
}

.contact__info-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.contact__info-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.contact__info-item a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.contact__info-item a:hover {
  color: var(--color-primary);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.form__input,
.form__textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-faint);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  align-self: flex-start;
}

/* Map */
.contact__map {
  margin-top: var(--space-12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-divider);
}

.contact__map iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

@media (max-width: 767px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}


/* ===== FOOTER ===== */
.footer {
  background: var(--color-surface-offset);
  padding: var(--space-12) 0 var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer__brand {
  max-width: 320px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.footer__brand-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.footer__links a:hover {
  color: var(--color-text);
}

.footer__bar {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}


/* ===== GSAP ANIMATION HELPERS ===== */
/* GSAP sets initial opacity via JS — no CSS hiding so content
   is visible if JS fails or screenshot tool captures before trigger */
.gs-headline-word {
  display: inline-block;
}
