/* ============================================================
   皓齒牙科診所 - Bright Smile Dental Clinic
   Design System: White + Teal + Navy
   Type: Outfit (display) + Noto Sans TC (body)
   Dials: VARIANCE=6, MOTION=4, DENSITY=3
   ============================================================ */

/* --- CSS Custom Properties (Light) --- */
:root {
  /* Palette */
  --teal: #0d9488;
  --teal-hover: #0f766e;
  --teal-dark: #115e59;
  --teal-light: #ccfbf1;
  --teal-bg: #f0fdfa;
  --navy: #0f2b46;
  --navy-light: #1e3a5f;
  --navy-mid: #1b3b5c;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #0a0a0b;

  /* Surfaces */
  --surface: var(--white);
  --surface-alt: var(--off-white);
  --surface-elevated: var(--white);
  --surface-navy: var(--navy);

  /* Text */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary: var(--gray-400);
  --text-inverse: var(--white);

  /* Borders */
  --border: var(--gray-200);
  --border-light: rgba(0,0,0,0.06);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,43,70,0.06);
  --shadow-md: 0 4px 12px rgba(15,43,70,0.08);
  --shadow-lg: 0 12px 40px rgba(15,43,70,0.10);
  --shadow-xl: 0 20px 60px rgba(15,43,70,0.12);
  --shadow-card-hover: 0 12px 32px rgba(15,43,70,0.14);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Noto Sans TC', 'Outfit', sans-serif;

  /* Spacing */
  --section-pad: 5rem;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Nav */
  --nav-height: 72px;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --surface: #0a0a0b;
  --surface-alt: #111111;
  --surface-elevated: #1a1a1a;
  --surface-navy: #0a1628;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0f2b46;

  --border: #1e293b;
  --border-light: rgba(255,255,255,0.06);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-card-hover: 0 12px 32px rgba(0,0,0,0.5);

  --gray-50: #111111;
  --gray-100: #1a1a1a;
  --gray-200: #262626;
  --gray-300: #333333;
}

/* --- 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;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s var(--ease-in-out), color 0.4s var(--ease-in-out);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { max-width: 65ch; color: var(--text-secondary); }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--teal-hover); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Container --- */
.container-custom {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Section --- */
.section {
  padding: var(--section-pad) 0;
}
.section-navy {
  background: var(--surface-navy);
  color: var(--text-inverse);
}
.section-navy p { color: rgba(255,255,255,0.75); }
.section-alt { background: var(--surface-alt); }
.section-teal-bg { background: var(--teal-bg); }

[data-theme="dark"] .section-teal-bg {
  background: #0a1a1a;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 3rem;
}
.section-header h2 {
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.section-header.center { text-align: center; }
.section-header.center p { margin-inline: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-expo),
              background 0.2s ease,
              box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-hover);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(13,148,136,0.3);
}

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

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--gray-100);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-lg {
  padding: 0.875rem 2.25rem;
  font-size: 1.05rem;
}

/* --- Navigation --- */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.navbar-custom .container-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--ease-out-expo);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: block; }
}

/* --- Split Hero --- */
.split-hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.split-hero-content {
  padding: 3rem 1.5rem 3rem 0;
}

.split-hero-content .hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 1rem;
}

.split-hero-content h1 {
  margin-bottom: 1.25rem;
  line-height: 1.08;
}

.split-hero-content .hero-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 42ch;
}

.split-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.split-hero-visual {
  position: relative;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

.hero-float-card {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-float-card .hf-icon {
  width: 40px;
  height: 40px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.1rem;
}

.hero-float-card .hf-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.hero-float-card .hf-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.hero-stats {
  position: absolute;
  top: 3rem;
  right: -1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-stat {
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.hero-stat .stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

@media (max-width: 991px) {
  .split-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 3rem;
  }
  .split-hero-content {
    padding: 0;
    order: 1;
    text-align: center;
  }
  .split-hero-content h1 br { display: none; }
  .split-hero-ctas { justify-content: center; }
  .split-hero-visual {
    order: 0;
    min-height: 320px;
    margin-bottom: 1.5rem;
  }
  .hero-float-card { left: 0.5rem; bottom: 0.5rem; }
  .hero-stats { right: 0.5rem; top: 0.5rem; flex-direction: row; }
  .hero-stat { padding: 0.5rem 1rem; }
  .hero-stat .stat-num { font-size: 1.2rem; }
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bento-cell {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
  overflow: hidden;
  position: relative;
}

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

.bento-cell.span-2 { grid-column: span 2; }
.bento-cell.span-2-row { grid-row: span 2; }
.bento-cell.span-full { grid-column: 1 / -1; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--teal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.bento-cell h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.bento-cell p { font-size: 0.9375rem; margin-bottom: 0; }

.bento-cell.image-cell { padding: 0; border: none; }
.bento-cell.image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-cell.accent-cell {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.bento-cell.accent-cell p { color: rgba(255,255,255,0.85); }
.bento-cell.accent-cell .bento-icon {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.bento-cell.navy-cell {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.bento-cell.navy-cell p { color: rgba(255,255,255,0.75); }
.bento-cell.navy-cell .bento-icon {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

@media (max-width: 767px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-cell.span-2,
  .bento-cell.span-2-row,
  .bento-cell.span-full { grid-column: span 1; grid-row: span 1; }
  .bento-cell.image-cell { min-height: 200px; }
}

/* --- Why-Us (Icon + Text rows) --- */
.why-us-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0;
}
.why-us-row:nth-child(even) .why-us-visual { order: 1; }

.why-us-visual img {
  border-radius: var(--radius-lg);
  width: 100%;
}

.why-us-content h2 {
  margin-bottom: 1rem;
}
.why-us-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.why-us-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.why-us-points .point-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 0.85rem;
}
.why-us-points .point-text strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.why-us-points .point-text span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

@media (max-width: 767px) {
  .why-us-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .why-us-row:nth-child(even) .why-us-visual { order: 0; }
}

/* --- Mission Bar --- */
.mission-bar {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.mission-quote {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
  letter-spacing: -0.01em;
}

.mission-quote footer {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
}

.mission-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mission-stat {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
}

.mission-stat .ms-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.mission-stat .ms-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

@media (max-width: 767px) {
  .mission-bar { grid-template-columns: 1fr; gap: 2rem; }
  .mission-quote { font-size: 1.35rem; }
}

/* --- Partner Carousel (Horizontal Scroll) --- */
.partner-scroll {
  overflow: hidden;
  position: relative;
}

.partner-track {
  display: flex;
  gap: 3rem;
  animation: partner-scroll 30s linear infinite;
  width: max-content;
}

.partner-track img,
.partner-track .partner-logo {
  height: 40px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
  flex-shrink: 0;
}

[data-theme="dark"] .partner-track img {
  filter: grayscale(1) brightness(2);
}

.partner-track .partner-logo:hover {
  opacity: 0.9;
  filter: grayscale(0);
}

[data-theme="dark"] .partner-track .partner-logo:hover {
  filter: grayscale(0) brightness(1.5);
}

@keyframes partner-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partner-track { animation: none; }
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
}

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

.blog-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card-body h3 a {
  color: var(--text-primary);
}

.blog-card-body h3 a:hover {
  color: var(--teal);
}

.blog-card-body p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

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

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

/* --- Contact Section --- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--teal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.1rem;
}

.contact-info-text strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  font-size: 0.9375rem;
}

.contact-info-text span,
.contact-info-text a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.contact-form-wrap {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

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

/* --- Map Placeholder --- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  min-height: 300px;
}

.map-wrap iframe,
.map-wrap .map-placeholder {
  width: 100%;
  height: 100%;
  border: none;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  color: var(--text-secondary);
  text-align: center;
  gap: 0.5rem;
}

.map-placeholder .map-icon {
  font-size: 2rem;
  color: var(--teal);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: var(--text-inverse);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }
}

/* --- About Page: Story --- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.story-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.story-text .story-year {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.story-text p {
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .story-image { order: -1; }
}

/* --- About: Team Profiles --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
}

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

.team-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.team-card:hover .team-card-img img {
  transform: scale(1.03);
}

.team-card-body {
  padding: 1.25rem;
  text-align: center;
}

.team-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.team-card-body .role {
  font-size: 0.8125rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.team-card-body .bio {
  font-size: 0.8125rem;
}

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

/* --- Services: Detail Cards --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail:nth-child(even) .service-detail-visual {
  order: 1;
}

.service-detail-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.service-detail-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-detail-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--teal-bg);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.service-detail h2 {
  margin-bottom: 0.75rem;
}

.service-detail-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}

.service-detail-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.service-detail-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.service-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1rem;
}

.service-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
}

@media (max-width: 767px) {
  .service-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-detail:nth-child(even) .service-detail-visual { order: 0; }
}

/* --- Blog List --- */
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-list-card {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

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

.blog-list-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.blog-list-card:hover .blog-list-img img {
  transform: scale(1.03);
}

.blog-list-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-list-body .blog-list-tag {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.blog-list-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-list-body h3 a {
  color: var(--text-primary);
}

.blog-list-body h3 a:hover { color: var(--teal); }

.blog-list-body p {
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-list-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  display: flex;
  gap: 1rem;
}

.blog-list-meta a {
  color: var(--teal);
  font-weight: 500;
}

/* Pagination */
.pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-decoration: none;
}

.page-link:hover,
.page-link.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

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

/* --- Breadcrumb --- */
.breadcrumb-bar {
  padding-top: calc(var(--nav-height) + 1.5rem);
  padding-bottom: 0.5rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.875rem;
}

.breadcrumb-list li {
  color: var(--text-tertiary);
}

.breadcrumb-list li a {
  color: var(--text-secondary);
}

.breadcrumb-list li a:hover {
  color: var(--teal);
}

.breadcrumb-list .sep {
  color: var(--text-tertiary);
}

/* --- Page Header --- */
.page-header {
  padding: 3rem 0 4rem;
  text-align: left;
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.125rem;
}

/* --- Utility: Visual reveal stagger --- */
.reveal {
  opacity: 0;
  animation: reveal-in 0.8s var(--ease-out-expo) forwards;
  animation-timeline: view();
  animation-range: entry 10% entry 40%;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
.reveal-delay-4 { animation-delay: 0.4s; }

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-slide-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Stagger for hero elements */
.hero-stagger > * {
  opacity: 0;
  animation: hero-slide-up 0.7s var(--ease-out-expo) forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.25s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.4s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.55s; }

/* Page fade wrapper */
.page-fade {
  animation: page-fade-in 0.5s var(--ease-in-out) both;
}

/* --- Noise overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

[data-theme="dark"] .noise-overlay {
  opacity: 0.05;
}

/* --- Mesh gradient background --- */
.mesh-gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(13,148,136,0.12), transparent),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(15,43,70,0.08), transparent),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(13,148,136,0.06), transparent);
}

[data-theme="dark"] .mesh-gradient-bg {
  opacity: 0.3;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(13,148,136,0.18), transparent),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(30,58,95,0.15), transparent),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(13,148,136,0.10), transparent);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; animation: none; }
  .hero-stagger > * { opacity: 1; animation: none; }
  .partner-track { animation: none; }
  .page-fade { animation: none; }
}

/* --- Responsive images aspect ratios --- */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Gallery zoom --- */
.gallery-zoom {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery-zoom img {
  transition: transform 0.5s var(--ease-out-expo);
}

.gallery-zoom:hover img {
  transform: scale(1.03);
}

/* --- Spacing utilities --- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Subtle divider --- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* --- Pill badge --- */
.pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--teal-bg);
  color: var(--teal);
}

/* --- Stats row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

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