/* style.css — Grace Dental Design Tokens & Components */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  /* 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.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* 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;

  /* Fonts */
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

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

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

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

/* ============================================================
   LIGHT MODE (default)
   ============================================================ */
:root, [data-theme="light"] {
  /* Surfaces — clean white */
  --color-bg:               #ffffff;
  --color-surface:          #f4f7fb;
  --color-surface-2:        #ffffff;
  --color-surface-offset:   #eaf0f7;
  --color-surface-dynamic:  #dde6f0;
  --color-divider:          #d0dae6;
  --color-border:           #bcc9d9;

  /* Text — charcoal/navy */
  --color-text:             #40464D;
  --color-text-muted:       #5f6a78;
  --color-text-faint:       #8e99a8;
  --color-text-inverse:     #ffffff;

  /* Primary — navy blue */
  --color-primary:          #002D62;
  --color-primary-hover:    #003B7F;
  --color-primary-active:   #001f45;
  --color-primary-light:    #e6eef8;
  --color-primary-highlight:#ccdcef;

  /* Accent — light blue */
  --color-accent:           #8BAFD6;
  --color-accent-hover:     #7198c5;

  /* Warning */
  --color-warning:          #b8860b;
  --color-warning-highlight:#f5ecd4;

  /* Error */
  --color-error:            #c44536;
  --color-error-highlight:  #fce8e5;

  /* Success */
  --color-success:          #2e7d4f;
  --color-success-highlight:#e2f3e8;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 45, 98, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 45, 98, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 45, 98, 0.10);
  --shadow-xl: 0 20px 48px rgba(0, 45, 98, 0.14);
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --color-bg:               #0f1720;
  --color-surface:          #172030;
  --color-surface-2:        #1c2838;
  --color-surface-offset:   #131d2a;
  --color-surface-dynamic:  #243448;
  --color-divider:          #2a3a50;
  --color-border:           #344a64;

  --color-text:             #e1e6ec;
  --color-text-muted:       #8ea0b8;
  --color-text-faint:       #5a7090;
  --color-text-inverse:     #0f1720;

  --color-primary:          #8BAFD6;
  --color-primary-hover:    #a3c2e2;
  --color-primary-active:   #7198c5;
  --color-primary-light:    #1a2e44;
  --color-primary-highlight:#243a54;

  --color-accent:           #a3c2e2;
  --color-accent-hover:     #b8d2ec;

  --color-warning:          #d4a64a;
  --color-warning-highlight:#3a3420;

  --color-error:            #e07060;
  --color-error-highlight:  #3a2220;

  --color-success:          #5ebd7e;
  --color-success-highlight:#1a3a2c;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #0f1720;
    --color-surface:          #172030;
    --color-surface-2:        #1c2838;
    --color-surface-offset:   #131d2a;
    --color-surface-dynamic:  #243448;
    --color-divider:          #2a3a50;
    --color-border:           #344a64;
    --color-text:             #e1e6ec;
    --color-text-muted:       #8ea0b8;
    --color-text-faint:       #5a7090;
    --color-text-inverse:     #0f1720;
    --color-primary:          #8BAFD6;
    --color-primary-hover:    #a3c2e2;
    --color-primary-active:   #7198c5;
    --color-primary-light:    #1a2e44;
    --color-primary-highlight:#243a54;
    --color-accent:           #a3c2e2;
    --color-accent-hover:     #b8d2ec;
    --color-warning:          #d4a64a;
    --color-warning-highlight:#3a3420;
    --color-error:            #e07060;
    --color-error-highlight:  #3a2220;
    --color-success:          #5ebd7e;
    --color-success-highlight:#1a3a2c;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.6);
  }
}

/* ============================================================
   GLOBAL STYLES
   ============================================================ */

h1, h2, h3 {
  font-family: var(--font-display);
}

h1 { font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: var(--text-xl); font-weight: 500; letter-spacing: -0.005em; }
h3 { font-size: var(--text-lg); font-weight: 500; }

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

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

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo svg {
  height: 40px;
  width: auto;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  padding-block: var(--space-1);
}

.nav a:hover,
.nav a.active {
  color: var(--color-text);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

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

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  border: none;
  background: none;
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-light);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-book-desktop {
  display: none;
}

@media (min-width: 900px) {
  .btn-book-desktop {
    display: inline-flex;
  }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  color: var(--color-text);
  cursor: pointer;
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 9999;
  padding: 88px var(--space-5) var(--space-8);
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu .btn {
  margin-top: var(--space-4);
  text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-primary-light) 50%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse, var(--color-primary-highlight) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr auto;
    gap: var(--space-12);
  }
}

.hero-content {
  max-width: 720px;
}

.hero-logo {
  display: none;
}

@media (min-width: 900px) {
  .hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.hero-logo-img {
  width: clamp(380px, 38vw, 620px);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 4px 24px rgba(0, 45, 98, 0.08));
}

.hero h1 {
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

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

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #002D62;
  background: rgba(139, 175, 214, 0.2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(0, 59, 127, 0.3);
  letter-spacing: 0.01em;
}

[data-theme="dark"] .hero-badge {
  color: #8BAFD6;
  background: rgba(139, 175, 214, 0.12);
  border-color: rgba(139, 175, 214, 0.25);
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  margin-top: var(--space-4);
  text-decoration: none;
}

.card-link:hover {
  gap: var(--space-2);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

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

/* ============================================================
   WHY US / DIFFERENTIATORS
   ============================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-6);
}

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

.why-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.why-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.why-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: var(--space-1);
}

.why-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

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

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-3);
  color: var(--color-warning);
}

.testimonial-card blockquote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  font-style: italic;
}

.testimonial-author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  margin-top: var(--space-8);
}

.google-rating-score {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.google-rating-stars {
  display: flex;
  gap: 2px;
  color: var(--color-warning);
}

.google-rating-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   TEAM PREVIEW
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

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

.team-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin: 0 auto var(--space-4);
}

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

.team-card .credentials {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding-block: clamp(var(--space-10), 4vw, var(--space-16));
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-3);
}

.cta-banner p {
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
  margin-bottom: var(--space-6);
  margin-inline: auto;
}

.cta-banner .btn {
  background: var(--color-text-inverse);
  color: var(--color-primary);
}

.cta-banner .btn:hover {
  background: oklch(from var(--color-text-inverse) l c h / 0.9);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  align-items: center;
}

.cta-phone {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-inverse);
  text-decoration: none;
}

.cta-phone:hover {
  opacity: 0.9;
  color: var(--color-text-inverse);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}

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

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

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

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.footer-bottom p,
.footer-bottom a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-bottom a:hover {
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-surface-dynamic);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */

.service-section {
  padding-block: clamp(var(--space-10), 4vw, var(--space-16));
  border-bottom: 1px solid var(--color-divider);
}

.service-section:last-of-type {
  border-bottom: none;
}

.service-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 800px;
}

.service-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
}

.service-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.service-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: 0;
}

.service-content ul li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.service-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  opacity: 0.6;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ============================================================
   TEAM PAGE
   ============================================================ */

.team-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  padding-block: clamp(var(--space-10), 4vw, var(--space-16));
  border-bottom: 1px solid var(--color-divider);
  align-items: start;
}

.team-profile:last-of-type {
  border-bottom: none;
}

@media (max-width: 640px) {
  .team-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.team-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
}

@media (max-width: 640px) {
  .team-profile-avatar {
    margin-inline: auto;
  }
}

.team-profile-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}

.team-profile-info .credentials {
  font-size: var(--text-sm);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.team-profile-info .membership {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.team-profile-info p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (max-width: 640px) {
  .team-tags {
    justify-content: center;
  }
}

.team-tag {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* ============================================================
   FAQ PAGE
   ============================================================ */

.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: var(--space-4);
}

.faq-question:hover {
  background: var(--color-surface-offset);
}

.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: var(--text-sm);
}

.faq-answer-inner a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

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

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.contact-info-item p,
.contact-info-item a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  margin-top: var(--space-8);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.emergency-box {
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary-highlight);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-8);
}

.emergency-box h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.emergency-box p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   PAGE HEADERS (for internal pages)
   ============================================================ */

.page-header {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}

.page-header h1 {
  margin-bottom: var(--space-3);
}

.page-header p {
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PHOTO STRIP
   ============================================================ */

.photo-strip {
  overflow: hidden;
}

.photo-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 280px;
  gap: 4px;
}

.photo-strip-item {
  overflow: hidden;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-strip-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 640px) {
  .photo-strip-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .photo-strip-item {
    height: 200px;
  }
}

/* ============================================================
   PAYMENT LOGOS
   ============================================================ */

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

.payment-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(20%);
  transition: opacity 0.2s, filter 0.2s;
}

.payment-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.payment-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
}

/* ============================================================
   SERVICE SECTION WITH IMAGE
   ============================================================ */

.service-section-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  padding-block: clamp(var(--space-10), 4vw, var(--space-16));
  border-bottom: 1px solid var(--color-divider);
}

.service-section-with-image:last-of-type {
  border-bottom: none;
}

.service-section-with-image .service-content {
  max-width: none;
}

.service-section-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.service-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-section-with-image.image-right .service-section-img {
  order: 2;
}
.service-section-with-image.image-right .service-content {
  order: 1;
}

@media (max-width: 768px) {
  .service-section-with-image {
    grid-template-columns: 1fr;
  }
  .service-section-with-image .service-section-img {
    order: -1 !important;
    aspect-ratio: 16/9;
  }
}
