/* ============================================
   SM Travel Advisor — Personal Travel Advisor Site
   Design System & Styles
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  /* Color Palette — Luxury warm tones */
  --clr-primary: hsl(32, 80%, 55%);
  --clr-primary-light: hsl(32, 85%, 65%);
  --clr-primary-dark: hsl(32, 75%, 40%);
  --clr-accent: hsl(196, 70%, 50%);
  --clr-accent-light: hsl(196, 75%, 62%);

  --clr-bg-dark: hsl(220, 25%, 8%);
  --clr-bg-surface: hsl(220, 20%, 12%);
  --clr-bg-card: hsl(220, 18%, 15%);

  /* Light section palette */
  --clr-bg-light: hsl(36, 30%, 97%);
  --clr-bg-light-soft: hsl(36, 25%, 94%);
  --clr-text-dark: hsl(220, 25%, 14%);
  --clr-text-dark-muted: hsl(220, 12%, 38%);
  --clr-border-light: hsl(36, 15%, 86%);
  --clr-border-light-strong: hsl(36, 12%, 72%);

  --clr-text: hsl(40, 20%, 95%);
  --clr-text-muted: hsl(40, 10%, 65%);
  --clr-text-subtle: hsl(40, 8%, 45%);

  --clr-glass-bg: hsla(220, 20%, 15%, 0.45);
  --clr-glass-border: hsla(40, 20%, 95%, 0.12);
  --clr-glass-highlight: hsla(40, 20%, 95%, 0.06);

  /* Gradient tokens */
  --gradient-hero: linear-gradient(
    135deg,
    hsla(220, 25%, 8%, 0.7) 0%,
    hsla(220, 25%, 8%, 0.4) 50%,
    hsla(32, 80%, 55%, 0.15) 100%
  );
  --gradient-gold: linear-gradient(135deg, hsl(32, 80%, 55%), hsl(42, 90%, 60%));
  --gradient-accent: linear-gradient(135deg, hsl(196, 70%, 50%), hsl(180, 60%, 45%));

  /* Typography */
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-heading: 'Outfit', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

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

  /* Shadows */
  --shadow-sm: 0 2px 8px hsla(0, 0%, 0%, 0.15);
  --shadow-md: 0 8px 32px hsla(0, 0%, 0%, 0.25);
  --shadow-lg: 0 16px 64px hsla(0, 0%, 0%, 0.35);
  --shadow-glow: 0 0 40px hsla(32, 80%, 55%, 0.2);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--ff-body);
  background-color: var(--clr-bg-dark);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg-dark);
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__logo {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--clr-primary);
  letter-spacing: 0.15em;
  animation: pulse-glow 1.8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; text-shadow: 0 0 20px hsla(32, 80%, 55%, 0.3); }
  50% { opacity: 1; text-shadow: 0 0 40px hsla(32, 80%, 55%, 0.6); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) max(var(--space-xl), env(safe-area-inset-right)) var(--space-lg) max(var(--space-xl), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--duration-normal) var(--ease-out-expo),
              backdrop-filter var(--duration-normal) var(--ease-out-expo);
}

.nav.scrolled {
  background: hsla(220, 25%, 8%, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--clr-glass-border);
}

.nav.scrolled .nav__link {
  color: var(--clr-text);
}

.nav.scrolled .nav__link:hover {
  color: var(--clr-primary-light);
}

.nav.scrolled .nav__social {
  color: var(--clr-text-muted);
  border-color: var(--clr-glass-border);
}

.nav.scrolled .nav__social:hover {
  color: var(--clr-primary-light);
  border-color: var(--clr-primary);
  background: hsla(32, 80%, 55%, 0.08);
}

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

.nav__logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav__name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav__link {
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: color var(--duration-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav__link:hover {
  color: var(--clr-text);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--ff-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7em 1.8em;
  border: 1.5px solid var(--clr-primary);
  border-radius: var(--radius-full);
  color: var(--clr-primary);
  transition: all var(--duration-normal) var(--ease-out-expo);
  cursor: pointer;
  background: none;
}

.nav__cta:hover {
  background: var(--clr-primary);
  color: var(--clr-bg-dark);
  box-shadow: var(--shadow-glow);
}

.nav__social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-glass-border);
  border-radius: 50%;
  color: var(--clr-text-muted);
  transition: all var(--duration-fast);
}

.nav__social:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: hsla(32, 80%, 55%, 0.1);
  transform: scale(1.1);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: var(--radius-full);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-fast),
              background var(--duration-fast);
}

/* Hamburger morph into X when menu open */
.nav__toggle.open span {
  background: var(--clr-text);
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Lock body scroll while menu overlay is open */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* While the menu is open, drop backdrop-filter on the nav.
   backdrop-filter makes an element a containing block for position:fixed
   descendants, which collapses the full-viewport overlay to the nav's
   bounding box once the user has scrolled (.nav.scrolled). Removing it
   restores the overlay's containing block to the viewport. */
body.nav-open .nav,
body.nav-open .nav.scrolled {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border-bottom-color: transparent;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  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.05);
  animation: hero-zoom 20s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: hsla(40, 60%, 80%, 0.4);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5em 1.5em;
  background: var(--clr-glass-bg);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-full);
  font-family: var(--ff-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-primary-light);
  margin-bottom: var(--space-xl);
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.3s both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsla(32, 80%, 55%, 0.4); }
  50% { box-shadow: 0 0 0 8px hsla(32, 80%, 55%, 0); }
}

.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.5s both;
}

.hero__title-accent {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: hsl(40, 20%, 90%);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
  text-shadow: 0 1px 4px hsla(0, 0%, 0%, 0.5);
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.7s both;
}



/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  animation: fade-in-up 0.8s var(--ease-out-expo) 1.2s both;
}

.scroll-indicator__mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--clr-text-subtle);
  border-radius: 13px;
  position: relative;
}

.scroll-indicator__wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--clr-primary);
  border-radius: var(--radius-full);
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

.scroll-indicator__text {
  font-family: var(--ff-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-subtle);
}

/* ---------- Section Common ---------- */
.section {
  padding: var(--space-3xl) var(--space-xl);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section__eyebrow {
  font-family: var(--ff-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--space-md);
}

.section__title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.section__desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: hsl(40, 15%, 80%);
  line-height: 1.8;
}



/* ---------- Features Section ---------- */
.features {
  background: var(--clr-bg-surface);
  position: relative;
}

.features::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(196, 70%, 50%, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  padding: var(--space-2xl);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: hsla(32, 80%, 55%, 0.2);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(32, 80%, 55%, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  transition: background var(--duration-normal);
}

.feature-card:hover .feature-card__icon {
  background: hsla(32, 80%, 55%, 0.18);
}

.feature-card__title {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ---------- CTA / Newsletter Bottom ---------- */
.cta {
  background: var(--clr-bg-dark);
  position: relative;
  overflow: hidden;
}

.cta__wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--clr-glass-bg);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-xl);
  position: relative;
}

.cta__wrapper::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(
    135deg,
    hsla(32, 80%, 55%, 0.15) 0%,
    transparent 50%,
    hsla(196, 70%, 50%, 0.1) 100%
  );
  border-radius: var(--radius-xl);
  z-index: -1;
}

.cta__title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta__desc {
  font-size: 1rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--clr-bg-surface);
  border-top: 1px solid var(--clr-glass-border);
  padding: var(--space-2xl) max(var(--space-xl), env(safe-area-inset-right)) max(var(--space-2xl), env(safe-area-inset-bottom)) max(var(--space-xl), env(safe-area-inset-left));
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer__brand {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--clr-text-subtle);
}

.footer__cta {
  padding: 0.5em 1.25em;
  font-size: 0.8rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--ff-heading);
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-glass-border);
  border-radius: 50%;
  color: var(--clr-text-muted);
  font-size: 1rem;
  transition: all var(--duration-fast);
}

.footer__social-link:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: hsla(32, 80%, 55%, 0.1);
}

/* ---------- Animations ---------- */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Intersection Observer reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav__toggle {
    display: flex;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: hsl(220, 25%, 8%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    z-index: 999;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  .nav__links.open .nav__link {
    font-size: 1.2rem;
  }



  .features__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }



  .hero__title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .section {
    padding: var(--space-2xl) var(--space-lg);
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}



/* ============================================
   v2 — Launched-site sections
   ============================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.95em 2.2em;
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  background: var(--gradient-gold);
  color: var(--clr-bg-dark);
  border-color: transparent;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text);
  border-color: var(--clr-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary-light);
  background: hsla(32, 80%, 55%, 0.08);
}

.btn--wide {
  min-width: 280px;
  padding: 1.1em 2.5em;
}

/* ---------- Hero actions ---------- */
.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.9s both;
}

/* ---------- Hero — Portrait Splash (editorial light) ---------- */
.hero--portrait {
  background: var(--clr-bg-light);
  color: var(--clr-text-dark);
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero__logo {
  display: block;
  width: auto;
  height: 160px;
  max-width: 80vw;
  object-fit: contain;
  margin: 0 auto var(--space-lg);
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.1s both;
}

@media (max-width: 768px) {
  .hero__logo {
    height: 130px;
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero__logo {
    height: 110px;
  }
}

/* ---------- Hero certifications marquee ---------- */
.hero__certifications {
  margin-top: var(--space-2xl);
  width: 100%;
  max-width: 880px;
  animation: fade-in-up 0.8s var(--ease-out-expo) 1.1s both;
}

.hero__certifications-label {
  font-family: var(--ff-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-text-dark-muted);
  text-align: center;
  margin-bottom: var(--space-md);
}

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.cert-logo {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--clr-text-dark-muted);
  white-space: nowrap;
  padding: 0.4em 1em;
  flex-shrink: 0;
  transition: color var(--duration-fast);
}

.cert-logo:hover {
  color: var(--clr-text-dark);
}

@media (max-width: 768px) {
  .hero__certifications {
    margin-top: var(--space-xl);
  }

  .marquee__track {
    gap: var(--space-xl);
    animation-duration: 28s;
  }

  .cert-logo {
    font-size: 0.95rem;
  }
}

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

.hero--portrait .hero__bg-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, hsla(32, 80%, 55%, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 20% 80%, hsla(196, 50%, 60%, 0.04) 0%, transparent 65%);
}

.hero--portrait .hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

.hero--portrait .hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 100px var(--space-xl) var(--space-3xl);
  box-sizing: border-box;
}

.hero--portrait .hero__content > * {
  max-width: 100%;
}

.hero--portrait .hero__badge {
  background: hsla(36, 30%, 97%, 0.85);
  border-color: var(--clr-border-light);
  color: var(--clr-primary-dark);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero--portrait .hero__title {
  color: var(--clr-text-dark);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  margin-bottom: var(--space-lg);
  text-shadow: none;
}

.hero--portrait .hero__subtitle {
  color: var(--clr-text-dark-muted);
  margin: 0 auto var(--space-xl);
  max-width: 620px;
  text-shadow: none;
}

.hero--portrait .hero__actions {
  justify-content: center;
}

.hero--portrait .btn--ghost {
  color: var(--clr-text-dark);
  border-color: var(--clr-border-light-strong);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero--portrait .btn--ghost:hover {
  color: var(--clr-primary-dark);
  border-color: var(--clr-primary);
  background: hsla(32, 80%, 55%, 0.06);
}

.hero--portrait .scroll-indicator__mouse {
  border-color: var(--clr-text-dark-muted);
}

.hero--portrait .scroll-indicator__wheel {
  background: var(--clr-primary-dark);
}

.hero--portrait .scroll-indicator__text {
  color: var(--clr-text-dark-muted);
}

/* Nav contrast on light hero: when not scrolled, use dark text */
.nav:not(.scrolled) .nav__link {
  color: var(--clr-text-dark-muted);
}

.nav:not(.scrolled) .nav__link:hover {
  color: var(--clr-text-dark);
}

.nav:not(.scrolled) .nav__social {
  color: var(--clr-text-dark-muted);
  border-color: var(--clr-border-light-strong);
}

.nav:not(.scrolled) .nav__social:hover {
  color: var(--clr-primary-dark);
  border-color: var(--clr-primary);
  background: hsla(32, 80%, 55%, 0.08);
}

.nav:not(.scrolled) .nav__toggle span {
  background: var(--clr-text-dark);
}

@media (max-width: 900px) {
  .hero--portrait .hero__content {
    padding: var(--space-2xl) var(--space-xl);
  }

  .hero--portrait .scroll-indicator {
    display: none;
  }
}

/* ---------- About Section (warm taupe) ---------- */
.about {
  background: hsl(30, 18%, 89%);
  color: var(--clr-text-dark);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, hsla(32, 80%, 55%, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.about::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, hsla(196, 40%, 55%, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__media {
  position: relative;
}

.about__photo-frame {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

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

.about__photo-frame--single {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}

.about__photo-frame--single img {
  object-position: 40% center;
}

.about__photo-frame--primary {
  top: 0;
  right: 0;
  width: 78%;
  aspect-ratio: 4 / 5;
  background: var(--clr-bg-light-soft);
  z-index: 2;
}

.about__photo-frame--primary img {
  object-position: center 30%;
}

.about__photo-frame--secondary {
  bottom: 0;
  left: 0;
  width: 52%;
  aspect-ratio: 4 / 5;
  z-index: 1;
  border: 6px solid var(--clr-bg-light);
}

.about__eyebrow {
  color: var(--clr-primary-dark);
}

.about__title {
  color: var(--clr-text-dark);
  margin-bottom: var(--space-xl);
}

.about__lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--clr-text-dark);
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.about__body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--clr-text-dark-muted);
  margin-bottom: var(--space-md);
}

.about__signoff {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--clr-text-dark);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-left: var(--space-md);
  border-left: 3px solid var(--clr-primary);
  line-height: 1.6;
}

.about__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.about__chip {
  padding: 0.55em 1.1em;
  background: hsla(36, 30%, 97%, 0.8);
  border: 1px solid hsla(30, 15%, 70%, 0.5);
  border-radius: var(--radius-full);
  font-family: var(--ff-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-dark);
}

/* About signature (logo + name lockup) */
.about__signature {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  padding: var(--space-lg) 0;
  border-top: 1px solid hsla(30, 15%, 70%, 0.5);
  border-bottom: 1px solid hsla(30, 15%, 70%, 0.5);
}

.about__signature-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.about__signature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about__signature-name {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-text-dark);
  line-height: 1.2;
}

.about__signature-role {
  font-family: var(--ff-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-primary-dark);
}

/* ---------- Process Section ---------- */
.process {
  background: var(--clr-bg-surface);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: 40%;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(196, 70%, 50%, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  max-width: 1180px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.process__step {
  position: relative;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal);
}

.process__step:hover {
  transform: translateY(-4px);
  border-color: hsla(32, 80%, 55%, 0.3);
}

.process__num {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.process__title {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
  color: var(--clr-text);
}

.process__desc {
  font-size: 0.92rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ---------- Services Section ---------- */
.services {
  background: var(--clr-bg-dark);
  position: relative;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  padding: var(--space-2xl);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal),
              box-shadow var(--duration-normal);
  min-height: 240px;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: hsla(32, 80%, 55%, 0.25);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(32, 80%, 55%, 0.10);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.service-card__title {
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.service-card--photo {
  padding: 0;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.service-card--photo .service-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

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

.service-card--photo .service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    hsla(220, 25%, 8%, 0.92) 0%,
    hsla(220, 25%, 8%, 0.5) 45%,
    hsla(220, 25%, 8%, 0.15) 100%
  );
  z-index: 1;
}

.service-card--photo .service-card__content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl);
}

.service-card--photo .service-card__title {
  color: var(--clr-text);
}

.service-card--photo .service-card__desc {
  color: hsl(40, 15%, 88%);
}

/* ---------- Intake Section (light) ---------- */
.intake {
  background: var(--clr-bg-light);
  color: var(--clr-text-dark);
  position: relative;
}

.intake__wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-xl), 5vw, var(--space-3xl));
  box-shadow: 0 30px 80px hsla(220, 25%, 14%, 0.10);
}

.intake__header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--clr-border-light);
}

.intake__eyebrow {
  color: var(--clr-primary-dark);
}

.intake__title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: var(--clr-text-dark);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.intake__desc {
  font-size: 0.98rem;
  color: var(--clr-text-dark-muted);
  line-height: 1.7;
  max-width: 560px;
}

.intake__desc a {
  color: var(--clr-primary-dark);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--duration-fast);
}

.intake__desc a:hover {
  color: var(--clr-primary);
}

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

.intake-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.field--fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.field__label,
.field--fieldset > legend {
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--clr-text-dark);
  display: block;
  margin-bottom: 0;
  padding: 0;
}

.field__req {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--clr-text-dark-muted);
  margin-left: 0.4em;
  letter-spacing: 0;
  text-transform: none;
}

.field__input,
.field__select {
  width: 100%;
  padding: 0.85em 1em;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--clr-text-dark);
  background: #ffffff;
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  appearance: none;
  -webkit-appearance: none;
}

.field__input::placeholder {
  color: hsl(220, 8%, 60%);
}

.field__input:focus,
.field__select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px hsla(32, 80%, 55%, 0.15);
}

.field__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
  font-family: var(--ff-body);
}

.field__select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
  cursor: pointer;
}



/* ---------- Intake submit ---------- */
.intake-form__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.intake-form__footnote {
  font-size: 0.78rem;
  color: var(--clr-text-dark-muted);
  text-align: center;
  max-width: 460px;
  line-height: 1.6;
}

/* ---------- Intake success state ---------- */
.intake__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-xl);
}

.intake__success.show {
  display: flex;
}

.intake__success-title {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-text-dark);
}

.intake__success-desc {
  font-size: 1rem;
  color: var(--clr-text-dark-muted);
  line-height: 1.7;
  max-width: 480px;
}

.intake__success-desc a {
  color: var(--clr-primary-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Intake form: error + loading states ---------- */
.field__input--error,
.field__select--error {
  border-color: hsl(0, 70%, 55%);
  box-shadow: 0 0 0 3px hsla(0, 70%, 55%, 0.12);
}

.intake-form__error {
  font-size: 0.85rem;
  color: hsl(0, 70%, 45%);
  text-align: center;
  padding: var(--space-md);
  background: hsla(0, 70%, 55%, 0.08);
  border-radius: var(--radius-md);
  display: none;
}

.intake-form__error.show {
  display: block;
}

.field__error {
  font-size: 0.82rem;
  color: hsl(0, 70%, 42%);
  line-height: 1.4;
  margin-top: calc(var(--space-xs) * -0.5);
}

.field__error[hidden] {
  display: none;
}

/* ---------- v2 Responsive overrides ---------- */
@media (max-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about__media {
    max-width: 480px;
    margin: 0 auto;
    order: -1;
  }

  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .about__photo-frame--single {
    max-width: 360px;
  }

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

  .process__steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .intake__wrapper {
    padding: var(--space-xl) var(--space-lg);
  }

  .intake-form__row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }



  .btn--wide {
    min-width: 0;
    width: 100%;
  }
}



/* ---------- Mobile-specific fixes ---------- */

/* Prevent iOS zoom on input focus (Safari zooms when font-size < 16px) */
@media (max-width: 768px) {
  .field__input,
  .field__select,
  .field__textarea {
    font-size: 16px;
  }

  .hero--portrait .hero__content {
    padding: 92px var(--space-lg) var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .hero--portrait .hero__content {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .section {
    padding: var(--space-2xl) var(--space-md);
  }
}

/* ============================================
   Reviews & Testimonials
   ============================================ */

/* ---------- Sub-page nav (reviews.html) ---------- */
.nav--subpage {
  background: var(--clr-bg-light);
  border-bottom: 1px solid var(--clr-border-light);
}

.nav--subpage.scrolled {
  background: hsla(36, 30%, 97%, 0.95);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

.nav--subpage .nav__name {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--ff-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7em 1.4em;
  border: 1.5px solid var(--clr-border-light-strong);
  border-radius: var(--radius-full);
  color: var(--clr-text-dark);
  background: transparent;
  transition: all var(--duration-fast);
}

.nav__back:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary-dark);
  background: hsla(32, 80%, 55%, 0.06);
}

.nav__back svg {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .nav__back span {
    display: none;
  }

  .nav__back {
    padding: 0.6em 0.9em;
  }
}

/* ---------- Reviews page header ---------- */
.page-header {
  background: var(--clr-bg-light);
  color: var(--clr-text-dark);
  padding: calc(var(--space-3xl) + 60px) var(--space-xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(32, 80%, 55%, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.page-header__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--clr-text-dark);
  margin: var(--space-md) 0 var(--space-lg);
}

.page-header__desc {
  font-size: 1.05rem;
  color: var(--clr-text-dark-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* ---------- Star rating component ---------- */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) 0;
  outline: none;
  cursor: pointer;
}

.star-rating:focus-visible {
  box-shadow: 0 0 0 3px hsla(32, 80%, 55%, 0.25);
  border-radius: var(--radius-sm);
}

.star {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-block;
  color: hsl(36, 12%, 65%);
}

.star__bg,
.star__fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star__fg {
  color: var(--clr-primary);
  transition: clip-path var(--duration-fast) ease;
}

.star__half {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.star__half--left { left: 0; }
.star__half--right { right: 0; }

.star__half:hover ~ .star__fg,
.star__half:focus-visible ~ .star__fg {
  color: var(--clr-primary-light);
}

.star-rating--error .star {
  color: hsl(0, 70%, 60%);
}

.star-rating__label {
  display: block;
  margin-top: var(--space-xs);
  font-family: var(--ff-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-dark-muted);
}

/* ---------- Review form privacy note ---------- */
.review-form__privacy-note {
  font-size: 0.82rem;
  color: var(--clr-text-dark-muted);
  font-style: italic;
  margin-top: calc(var(--space-md) * -0.5);
  padding: var(--space-sm) var(--space-md);
  background: hsla(36, 30%, 94%, 0.6);
  border-left: 3px solid var(--clr-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.field__hint {
  font-size: 0.82rem;
  color: var(--clr-text-dark-muted);
  margin-top: calc(var(--space-xs) * -1);
}

.review-form-section {
  background: var(--clr-bg-light);
  padding-top: var(--space-2xl);
}

/* ---------- Reviews grid (full list on /reviews) ---------- */
.reviews-grid-section {
  background: hsl(30, 18%, 89%);
  position: relative;
  overflow: hidden;
  padding-top: var(--space-2xl);
  scroll-margin-top: 112px;
}

.reviews-grid-section .section__header {
  margin-bottom: var(--space-xl);
  scroll-margin-top: 112px;
}

.reviews-grid-section .section__title {
  color: hsl(28, 16%, 36%);
}

.reviews-grid-section .section__eyebrow {
  color: var(--clr-primary-dark);
}

.reviews-grid-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, hsla(32, 80%, 55%, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.reviews-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.reviews-grid__loading,
.reviews-grid__empty,
.reviews-grid__error {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--ff-heading);
  font-size: 0.95rem;
  color: var(--clr-text-dark-muted);
  padding: var(--space-2xl);
}

.reviews-grid__error {
  color: hsl(0, 45%, 40%);
}

/* ---------- Review card ---------- */
.review-card {
  background: hsla(36, 30%, 97%, 0.85);
  border: 1px solid hsla(30, 15%, 70%, 0.5);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}

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

.review-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: hsl(36, 12%, 65%);
}

.review-card__star {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
}

.review-card__star .star__bg,
.review-card__star .star__fg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.review-card__star .star__fg {
  color: var(--clr-primary);
}

.review-card__text {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text-dark);
  font-style: normal;
  font-weight: 400;
  flex-grow: 1;
}

.review-card__author {
  font-family: var(--ff-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-dark);
  margin: 0;
}

.review-card__sep {
  color: var(--clr-primary);
  margin: 0 0.3em;
}

.review-card__trip {
  color: var(--clr-text-dark-muted);
  font-weight: 500;
}

/* ---------- Homepage testimonials teaser section ---------- */
.testimonials {
  background: var(--clr-bg-surface);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, hsla(32, 80%, 55%, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.testimonials__marquee {
  max-width: 1280px;
  margin: 0 auto var(--space-2xl);
}

.testimonials .marquee {
  padding-block: 8px 12px;
  margin-block: -8px -12px;
}

.testimonials__cta-wrap {
  text-align: center;
  position: relative;
  z-index: 1;
}

.testimonials__cta {
  display: inline-block;
}

.testimonials__loading,
.testimonials__empty {
  text-align: center;
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  padding: var(--space-xl);
}

/* Dark-themed review card variant for the homepage ticker */
.testimonials .marquee__track {
  gap: var(--space-xl);
}

.review-tile {
  flex-shrink: 0;
  width: clamp(280px, 60vw, 360px);
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--duration-fast), border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.review-tile:hover,
.review-tile:focus-visible {
  transform: translateY(-3px);
  border-color: hsla(32, 80%, 55%, 0.4);
  box-shadow: var(--shadow-md);
  outline: none;
}

/* Pause marquee while a tile is being touched so users can actually tap */
.marquee:active .marquee__track {
  animation-play-state: paused;
}

/* Highlight a card when navigated to via #review-{id} */
.review-card--highlighted {
  outline: 2px solid var(--clr-primary);
  outline-offset: 4px;
  animation: review-highlight-pulse 1.6s ease-out;
}

@keyframes review-highlight-pulse {
  0%   { box-shadow: 0 0 0 0 hsla(32, 80%, 55%, 0.4); }
  100% { box-shadow: 0 0 0 20px hsla(32, 80%, 55%, 0); }
}

/* Nav links visible only inside the open mobile menu (hidden on desktop) */
.nav__link--mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .nav__links.open .nav__link--mobile-only {
    display: block;
  }
}

.review-tile__stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: hsl(220, 12%, 38%);
}

.review-tile__star {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-block;
}

.review-tile__star .star__bg,
.review-tile__star .star__fg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.review-tile__star .star__fg {
  color: var(--clr-primary);
}

.review-tile__text {
  font-family: var(--ff-body);
  font-style: normal;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--clr-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-tile__author {
  font-family: var(--ff-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text);
  margin: 0;
}

.review-tile__sep {
  color: var(--clr-primary);
  margin: 0 0.3em;
}

.review-tile__trip {
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* ---------- Footer Leave a Review button ---------- */
.footer__cta {
  /* footer__cta already styled via .btn .btn--ghost — extra nudges here if needed */
}

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

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

  .page-header {
    padding-top: calc(var(--space-2xl) + 60px);
  }

  .star {
    width: 32px;
    height: 32px;
  }
}
