/* ================================================================
   DiYi TCM — Premium Landing Page
   Design System: Modern Wellness Luxury (Dark Mode)
   ================================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-elevated: #242424;
  --text-primary: #f0ede8;
  --text-secondary: #a09a90;
  --accent: #c4a265;
  --accent-hover: #d4b578;
  --accent-subtle: rgba(196, 162, 101, 0.1);
  --wellness: #7a8c6e;
  --border: rgba(240, 237, 232, 0.08);
  --border-accent: rgba(196, 162, 101, 0.2);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-height: 72px;
  --section-padding: clamp(80px, 10vw, 140px);
  --container: 1200px;
  --container-narrow: 960px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

p { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---------- Utility ---------- */
.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-heading {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
  /* Always-on subtle gradient for readability over hero image */
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.7) 0%, rgba(15, 15, 15, 0.3) 70%, transparent 100%);
}

.nav--solid {
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

.nav__logo:hover { opacity: 0.8; }

.nav__logo-text { color: var(--text-primary); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.nav__logo-accent { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  opacity: 0.85;
  transition: color 0.25s, opacity 0.25s;
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
  opacity: 1;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.25s, transform 0.25s var(--ease-out);
  min-height: 44px;
  min-width: 44px;
}

.nav__cta:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

.nav__cta-icon { flex-shrink: 0; }

/* Mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav__toggle--open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle--open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle--open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transform-origin: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15, 15, 15, 0.72) 0%,
      rgba(15, 15, 15, 0.6) 30%,
      rgba(15, 15, 15, 0.65) 50%,
      rgba(15, 15, 15, 0.82) 75%,
      rgba(15, 15, 15, 0.95) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 clamp(20px, 5vw, 48px);
  max-width: 800px;
}

.hero__pre {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero__title {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.9;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero__services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.3vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.75;
  margin-bottom: 44px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 12px;
  vertical-align: middle;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Hero scroll indicator — centered via left/right:0 + margin:auto to avoid transform conflict with reveal-hero */
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-text {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* Hero reveal animations */
.reveal-hero {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 6px;
  min-height: 48px;
  min-width: 44px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn__icon { flex-shrink: 0; }

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-hover);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.btn--primary:hover::before {
  transform: scaleX(1);
}

.btn--primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 24px rgba(196, 162, 101, 0.3);
}

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

.btn--outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: scale(1.02);
  box-shadow: 0 4px 24px rgba(196, 162, 101, 0.2);
}

.btn--full { width: 100%; }

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about {
  position: relative;
  padding: var(--section-padding) 0;
  overflow: hidden;
}

/* TCM motif: meridian dots pattern (top-right) */
.about::after {
  content: '';
  position: absolute;
  top: 60px;
  right: -40px;
  width: 300px;
  height: 300px;
  background-image: radial-gradient(circle, var(--accent) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.15;
  border-radius: 50%;
  pointer-events: none;
}

.about__accent {
  position: absolute;
  top: 0;
  left: clamp(20px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.about__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}

.about__text p {
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__text p:last-child { margin-bottom: 0; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.stat {
  background: var(--bg-secondary);
  padding: clamp(24px, 3vw, 36px);
  text-align: center;
  transition: background 0.3s;
}

.stat:hover {
  background: var(--bg-elevated);
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.stat__stars {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-top: 6px;
}

/* ================================================================
   SERVICES SECTION
   ================================================================ */
.services {
  position: relative;
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

/* TCM motif: flowing wave/cloud pattern (bottom-left) */
.services::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 400px;
  height: 400px;
  background:
    radial-gradient(ellipse 80% 50% at 30% 50%, var(--accent) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 70% 60%, var(--wellness) 0%, transparent 70%);
  opacity: 0.12;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

/* TCM motif: subtle curved line element (top-right) */
.services::after {
  content: '';
  position: absolute;
  top: 40px;
  right: 5%;
  width: 200px;
  height: 200px;
  border: 1.5px solid var(--accent);
  border-radius: 50% 50% 50% 0;
  opacity: 0.12;
  transform: rotate(-15deg);
  pointer-events: none;
}

.services__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.services__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-accent);
  border-color: var(--border-accent);
}

.service-card__img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover .service-card__img-wrap img {
  transform: scale(1.06);
}

.service-card__body {
  padding: 24px;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-card__zh {
  font-weight: 400;
  color: var(--accent);
  font-size: 0.9em;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* (CellMed no-img variant removed — all cards now have images) */

/* ================================================================
   REVIEWS SECTION
   ================================================================ */
.reviews {
  position: relative;
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
  overflow: hidden;
}

/* TCM motif: botanical leaf silhouette (top-left) */
.reviews::before {
  content: '';
  position: absolute;
  top: 30px;
  left: -30px;
  width: 250px;
  height: 350px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140'%3E%3Cpath d='M50 5 C20 30 5 70 15 110 C25 95 35 60 50 40 C65 60 75 95 85 110 C95 70 80 30 50 5Z' fill='none' stroke='%23c4a265' stroke-width='0.8'/%3E%3Cpath d='M50 25 C50 50 50 80 50 110' fill='none' stroke='%23c4a265' stroke-width='0.5'/%3E%3Cpath d='M35 50 C42 45 50 42 50 42' fill='none' stroke='%23c4a265' stroke-width='0.4'/%3E%3Cpath d='M65 50 C58 45 50 42 50 42' fill='none' stroke='%23c4a265' stroke-width='0.4'/%3E%3Cpath d='M30 70 C40 62 50 58 50 58' fill='none' stroke='%23c4a265' stroke-width='0.4'/%3E%3Cpath d='M70 70 C60 62 50 58 50 58' fill='none' stroke='%23c4a265' stroke-width='0.4'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}

/* TCM motif: concentric healing circles (bottom-right) */
.reviews::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 280px;
  height: 280px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0.12;
  box-shadow:
    inset 0 0 0 30px transparent,
    inset 0 0 0 31.5px var(--accent),
    inset 0 0 0 60px transparent,
    inset 0 0 0 61.5px var(--accent);
  pointer-events: none;
}

.reviews__inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.reviews__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 64px);
}

.reviews__grid {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

.review-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.review-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.review-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}

.review-card__quote {
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

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

.review-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.review-card__date {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* Staggered offset for middle card */
@media (min-width: 768px) {
  .reviews__grid {
    grid-template-columns: 1fr 1fr;
  }

  .review-card:first-child {
    grid-column: 1;
  }

  .review-card--offset {
    grid-column: 2;
    transform: translateY(24px);
  }

  .review-card:last-child {
    grid-column: 1 / -1;
    max-width: 680px;
    margin: 0 auto;
  }
}

.reviews__attribution {
  text-align: center;
}

.reviews__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}

.reviews__link:hover {
  color: var(--accent-hover);
}

/* ================================================================
   LOCATION SECTION
   ================================================================ */
.location {
  position: relative;
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

/* TCM motif: soft radial glow (yin-yang inspired warmth) */
.location::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
  pointer-events: none;
}

/* TCM motif: subtle crosshatch acupuncture grid (bottom-left) */
.location::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: -20px;
  width: 200px;
  height: 200px;
  background-image:
    linear-gradient(45deg, var(--accent) 1px, transparent 1px),
    linear-gradient(-45deg, var(--accent) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.08;
  pointer-events: none;
}

.location__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.location__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 64px);
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.location__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.location__detail-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.location__detail p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.location__hours {
  border-collapse: collapse;
  width: 100%;
}

.location__hours th,
.location__hours td {
  padding: 8px 0;
  font-size: 0.9375rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.location__hours th {
  font-weight: 500;
  color: var(--text-primary);
  padding-right: 24px;
}

.location__hours td {
  color: var(--text-secondary);
}

.location__note {
  font-size: 0.8125rem;
  color: var(--wellness);
  font-weight: 500;
  margin-top: 8px;
}

.location__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location__map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 360px;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  filter: grayscale(0.2) brightness(0.9);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 48px) clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer__logo-text { color: var(--text-primary); }
.footer__logo-accent { color: var(--accent); }

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__contact a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer__contact a:hover {
  color: var(--accent);
}

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--border);
}

.footer__credit {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.5;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ================================================================
   POPUP
   ================================================================ */
.popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  padding: 20px;
  transition: background 0.4s var(--ease-out);
}

.popup[hidden] { display: none; }

.popup--visible {
  background: rgba(0, 0, 0, 0.6);
}

.popup--visible .popup__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.popup--hiding {
  background: rgba(0, 0, 0, 0);
}

.popup--hiding .popup__card {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
}

.popup__card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.popup__accent-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.2s;
  border-radius: 8px;
}

.popup__close:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.popup__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 2px solid var(--border-accent);
}

.popup__heading {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.popup__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.popup__sign {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}

.popup__tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.4;
}

.popup__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.popup__progress-bar {
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  opacity: 0.5;
}

/* ================================================================
   SCROLL REVEAL ANIMATION
   ================================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ================================================================
   RESPONSIVE — TABLET (768px)
   ================================================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Nav mobile */
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: rgba(15, 15, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
  }

  .nav__links--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__link {
    font-size: 1.25rem;
    color: var(--text-primary);
  }

  .nav__cta {
    font-size: 1rem;
    padding: 14px 32px;
  }

  /* About stack */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Reviews */
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .review-card--offset {
    transform: none;
  }

  .review-card:last-child {
    max-width: none;
  }

  /* Location stack */
  .location__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .location__map {
    min-height: 280px;
  }

  .location__map iframe {
    min-height: 280px;
  }

  /* Footer stack */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__links,
  .footer__contact {
    align-items: center;
  }

  /* Hero services wrap */
  .hero__services {
    gap: 4px 0;
  }

  .hero__dot {
    margin: 0 8px;
  }

  .hero__scroll-hint {
    bottom: 24px;
  }
}

/* ================================================================
   RESPONSIVE — MOBILE (480px)
   ================================================================ */
@media (max-width: 480px) {
  body { font-size: 15px; }

  .hero__title {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
  }

  .btn {
    padding: 14px 24px;
    width: 100%;
  }

  .about__stats {
    grid-template-columns: 1fr 1fr;
  }

  .services__grid {
    max-width: none;
  }

  .service-card__img-wrap {
    height: 180px;
  }

  .review-card {
    padding: 24px;
  }

  .popup__card {
    padding: 32px 24px 28px;
  }
}

/* ================================================================
   PREFERS REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-hero,
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }

  .hero__bg-img {
    transform: none !important;
  }
}

/* ================================================================
   FOCUS STYLES (Accessibility)
   ================================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ================================================================
   SELECTION
   ================================================================ */
::selection {
  background: rgba(196, 162, 101, 0.3);
  color: var(--text-primary);
}
