/* ============================================================
   NS WELLNESS — MASSAGE THERAPY CENTRE
   Design system: earthy editorial (rust on linen), adapted from
   client style reference. Raleway (UI/body) + Poppins (display).
   ============================================================ */

:root {
  /* Colors */
  --color-rust-hearth: #892500;
  --color-blush-whisper: #ea9195;
  --color-linen: #ffffff;
  --color-raw-silk: #f9f6f2;
  --color-sand-plaster: #eee5d9;
  --color-charcoal-ink: #0e0e0e;
  --color-stone: #868686;
  --color-ash: #b7b7b7;
  --color-frost: #d7d7d7;

  /* Typography */
  --font-raleway: 'Raleway', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-poppins: 'Poppins', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-caption: 11px;
  --text-heading-sm: 20px;
  --text-display: 62px;

  /* Spacing */
  --spacing-4: 4px;
  --spacing-5: 5px;
  --spacing-9: 9px;
  --spacing-10: 10px;
  --spacing-12: 12px;
  --spacing-15: 15px;
  --spacing-20: 20px;
  --spacing-23: 23px;
  --spacing-40: 40px;
  --spacing-42: 42px;
  --spacing-45: 45px;
  --spacing-75: 75px;
  --spacing-114: 114px;
  --spacing-170: 170px;
  --spacing-185: 185px;

  --page-max-width: 1200px;
  --radius-pills: 10px;
  --radius-cards: 0px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-raw-silk);
  color: var(--color-charcoal-ink);
  font-family: var(--font-raleway);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.70;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--color-rust-hearth);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-raleway);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.231em;
  color: var(--color-rust-hearth);
  display: inline-block;
  margin-bottom: var(--spacing-15);
}

.display-heading {
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-charcoal-ink);
}
@media (min-width: 480px) {
  .display-heading { font-size: 46px; letter-spacing: 0.06em; line-height: 1.15; }
}
@media (min-width: 860px) {
  .display-heading { font-size: var(--text-display); letter-spacing: 9.55px; }
}

.section-heading {
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-charcoal-ink);
}
@media (min-width: 860px) {
  .section-heading { font-size: 38px; letter-spacing: 0.06em; }
}

.body-lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-charcoal-ink);
  max-width: 58ch;
}

.body-copy p { margin-bottom: var(--spacing-20); max-width: 68ch; }
.body-copy h2 {
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: var(--spacing-45);
  margin-bottom: var(--spacing-15);
}
.body-copy h3 {
  font-family: var(--font-raleway);
  font-weight: 700;
  font-size: 17px;
  margin-top: var(--spacing-40);
  margin-bottom: var(--spacing-10);
}
.body-copy ul, .body-copy ol {
  margin: 0 0 var(--spacing-20);
  padding-left: 9px;
  border-left: 1px solid var(--color-stone);
  max-width: 68ch;
}
.body-copy li {
  list-style: disc inside;
  padding: 4px 0 4px 9px;
  line-height: 1.70;
}
.body-copy strong { font-weight: 700; }
.body-copy a { color: var(--color-rust-hearth); border-bottom: 1px solid var(--color-blush-whisper); }
.body-copy a:hover { border-color: var(--color-rust-hearth); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-raleway);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.192em;
  padding: 16px 32px;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn-filled {
  background: var(--color-charcoal-ink);
  color: var(--color-linen);
}
.btn-filled:hover { background: var(--color-rust-hearth); }
.btn-outline {
  background: transparent;
  color: var(--color-charcoal-ink);
  border-color: var(--color-charcoal-ink);
}
.btn-outline:hover { background: var(--color-charcoal-ink); color: var(--color-linen); }
.btn-ghost {
  background: transparent;
  color: var(--color-stone);
  padding: 8px 0;
}
.btn-ghost:hover { color: var(--color-charcoal-ink); }

.btn-row { display: flex; gap: var(--spacing-15); flex-wrap: wrap; }

/* ---------- Top Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-raw-silk);
  border-bottom: 1px solid var(--color-stone);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-15);
  padding-bottom: var(--spacing-15);
}
.wordmark-text {
  font-family: var(--font-raleway);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--color-rust-hearth);
  text-transform: lowercase;
  line-height: 1;
  display: inline-block;
  transition: opacity 200ms ease;
}
.wordmark-text:hover { opacity: 0.78; }
.wordmark-text span { color: var(--color-charcoal-ink); font-weight: 400; }

.wordmark img {
  height: 64px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .wordmark img { height: 54px; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--spacing-23);
}
@media (min-width: 860px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-family: var(--font-raleway);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.192em;
  color: var(--color-stone);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.nav-links a:hover { color: var(--color-charcoal-ink); }
.nav-links a.active { color: var(--color-rust-hearth); border-color: var(--color-rust-hearth); }

.nav-cta { display: none; }
@media (min-width: 860px) {
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--color-stone);
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal-ink);
}
@media (min-width: 860px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--color-stone);
  background: var(--color-raw-silk);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-frost);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-charcoal-ink);
}
.mobile-nav a.active { color: var(--color-rust-hearth); }
@media (min-width: 860px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
}
@media (max-height: 500px) {
  /* Short viewports (landscape phones) — don't let the hero dominate the screen */
  .hero { height: 88vh; min-height: 360px; }
}
.hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--spacing-45) 24px;
  background: linear-gradient(0deg, rgba(14,14,14,0.62) 0%, rgba(14,14,14,0.0) 60%);
  color: var(--color-linen);
}
.hero-copy .wrap { padding: 0; }
.hero-copy .eyebrow { color: var(--color-blush-whisper); }
.hero-copy h1 { color: var(--color-linen); max-width: 16ch; }
.hero-copy p { color: var(--color-frost); margin-top: var(--spacing-15); max-width: 46ch; }
.hero-copy .btn-row { margin-top: var(--spacing-23); }

.page-hero {
  padding: var(--spacing-75) 0 var(--spacing-45);
  border-bottom: 1px solid var(--color-stone);
}
.page-hero .eyebrow { margin-bottom: var(--spacing-10); }

/* ---------- Section rhythm ---------- */
.section { padding: var(--spacing-75) 0; }
@media (min-width: 860px) { .section { padding: var(--spacing-114) 0; } }
.section-tight { padding: var(--spacing-40) 0; }
.section-header { margin-bottom: var(--spacing-45); }
.section-header p { margin-top: var(--spacing-15); max-width: 56ch; }

/* Full-bleed divider band */
.divider-band {
  width: 100%;
  height: 34vh;
  min-height: 220px;
  overflow: hidden;
}
.divider-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Two column asymmetric layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-40);
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--spacing-75); }
  .split.reverse .split-media { order: 2; }
  .split.reverse .split-copy { order: 1; }
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split-copy .btn-row { margin-top: var(--spacing-40); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  background: var(--color-sand-plaster);
  color: var(--color-charcoal-ink);
  font-family: var(--font-raleway);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
}
.badge-rust { background: transparent; border: 1px solid var(--color-rust-hearth); color: var(--color-rust-hearth); }

/* ---------- Cards: services ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-40);
}
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--color-linen);
  border: 1px solid var(--color-frost);
  display: flex;
  flex-direction: column;
}
.service-card a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.service-card figure { aspect-ratio: 4/3; overflow: hidden; }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.service-card:hover img { transform: scale(1.04); }
.service-card-body { padding: var(--spacing-23); flex: 1; display: flex; flex-direction: column; }
.service-card-body .badge { align-self: flex-start; margin-bottom: var(--spacing-12); }
.service-card-body h3 {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-9);
}
.service-card-body p { color: var(--color-stone); font-size: 14px; flex: 1; margin-bottom: var(--spacing-15); }
.service-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-15);
  border-top: 1px solid var(--color-frost);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-stone);
}
.service-card-foot a { color: var(--color-rust-hearth); font-weight: 600; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-linen);
  border: 1px solid var(--color-frost);
  padding: var(--spacing-40);
}
.testimonial-stars { color: var(--color-rust-hearth); font-size: 14px; letter-spacing: 3px; margin-bottom: var(--spacing-15); }
.testimonial-quote { font-size: 16px; line-height: 1.7; margin-bottom: var(--spacing-20); }
.testimonial-name { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-stone); }

/* ---------- Blog cards ---------- */
.blog-card { display: flex; flex-direction: column; }
.blog-card figure { aspect-ratio: 16/10; overflow: hidden; margin-bottom: var(--spacing-15); }
.blog-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.blog-card:hover img { transform: scale(1.04); }
.blog-card .badge { margin-bottom: var(--spacing-12); }
.blog-card h3 {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin-bottom: var(--spacing-9);
}
.blog-card p { color: var(--color-stone); font-size: 14px; margin-bottom: var(--spacing-12); }
.blog-card .meta { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-ash); }
.blog-card .read-more { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-rust-hearth); font-weight: 600; }

/* ---------- Article ---------- */
.article-hero { aspect-ratio: 4/3; overflow: hidden; }
@media (min-width: 640px) { .article-hero { aspect-ratio: 21/9; } }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-head { padding: var(--spacing-45) 0 var(--spacing-23); max-width: 780px; }
.article-body { max-width: 720px; padding-bottom: var(--spacing-75); }
.article-cta {
  background: var(--color-charcoal-ink);
  color: var(--color-linen);
  padding: var(--spacing-42);
  margin: var(--spacing-45) 0;
  max-width: 720px;
}
.article-cta h3 { font-family: var(--font-poppins); text-transform: uppercase; letter-spacing: 0.04em; font-size: 20px; margin-bottom: var(--spacing-10); }
.article-cta p { color: var(--color-frost); margin-bottom: var(--spacing-20); }

/* ---------- Info strip ---------- */
.info-strip {
  background: var(--color-sand-plaster);
  padding: var(--spacing-40) 0;
}
.info-strip .grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .info-strip .grid { grid-template-columns: repeat(3, 1fr); } }
.info-item .eyebrow { margin-bottom: var(--spacing-9); }
.info-item p { font-size: 14px; color: var(--color-charcoal-ink); }
.info-item a { color: var(--color-rust-hearth); font-weight: 600; }

/* ---------- Contact / Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-40);
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--spacing-75); } }

.field { margin-bottom: var(--spacing-20); }
.field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-stone);
  margin-bottom: var(--spacing-9);
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--color-stone);
  background: var(--color-linen);
  padding: 13px 15px;
  font-size: 15px;
  color: var(--color-charcoal-ink);
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--color-rust-hearth); }

.map-frame { border: 1px solid var(--color-stone); width: 100%; aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-stone);
  padding: var(--spacing-75) 0 var(--spacing-40);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-40);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h4 {
  font-family: var(--font-raleway);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.192em;
  margin-bottom: var(--spacing-15);
  color: var(--color-charcoal-ink);
}
.footer-col p { font-size: 14px; color: var(--color-stone); margin-bottom: var(--spacing-15); max-width: 34ch; }
.footer-col li { margin-bottom: var(--spacing-15); }
.footer-col a { font-size: 14px; color: var(--color-stone); }
.footer-col a:hover { color: var(--color-rust-hearth); }
.footer-bottom {
  margin-top: var(--spacing-75);
  padding-top: var(--spacing-20);
  border-top: 1px solid var(--color-frost);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-15);
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-ash);
  letter-spacing: 0.05em;
}

/* ---------- Floating action stack (bottom-right) ---------- */
.fab-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
@media (min-width: 640px) {
  .fab-stack { right: 20px; bottom: 20px; gap: 14px; }
}

/* Google Business pill button */
.google-fab {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-linen);
  border: 1.5px solid #b9c5f5;
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  box-shadow: 0 6px 18px rgba(14, 14, 14, 0.16);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.google-fab:hover {
  transform: scale(1.04);
  border-color: #8fa1ef;
  box-shadow: 0 8px 22px rgba(14, 14, 14, 0.22);
}
.google-fab svg { flex-shrink: 0; display: block; }
.google-fab-text {
  font-family: var(--font-raleway);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-charcoal-ink);
  white-space: nowrap;
}
/* Very narrow screens: shrink to icon-only pill so it never crowds WhatsApp */
@media (max-width: 360px) {
  .google-fab { padding: 10px; }
  .google-fab-text { display: none; }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: relative;
  width: 52px; height: 52px;
  background: var(--color-charcoal-ink);
  color: var(--color-linen);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(14, 14, 14, 0.28);
  border: 1px solid var(--color-charcoal-ink);
}
@media (min-width: 640px) { .whatsapp-fab { width: 56px; height: 56px; } }
.whatsapp-fab svg { display: block; }
.whatsapp-fab:hover { background: var(--color-rust-hearth); border-color: var(--color-rust-hearth); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-stone);
  margin-bottom: var(--spacing-20);
}
.breadcrumb a { color: var(--color-stone); }
.breadcrumb a:hover { color: var(--color-rust-hearth); }

/* ---------- Gallery ---------- */
.gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  aspect-ratio: 1/1;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--color-frost);
}
.gallery-item-wide { aspect-ratio: 4/3; }
@media (min-width: 640px) { .gallery-item-wide { grid-column: span 2; } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stone { color: var(--color-stone); }

/* ============================================================
   DYNAMIC / MOTION LAYER
   ============================================================ */

/* Scroll reveal: elements fade + rise into place as they enter view */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Stagger children of a revealed grid — cards rise in sequence */
.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--stagger-i, 0) * 90ms);
}
.reveal-group.in-view > * { opacity: 1; transform: translateY(0); }

/* Hero: slow ambient zoom on the opening photograph, plus a soft rise-in for the copy */
.hero img { animation: heroKenBurns 16s ease-in-out infinite alternate; }
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
.hero-copy .eyebrow, .hero-copy h1, .hero-copy p, .hero-copy .btn-row {
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-copy .eyebrow { animation-delay: 150ms; }
.hero-copy h1 { animation-delay: 280ms; }
.hero-copy p { animation-delay: 420ms; }
.hero-copy .btn-row { animation-delay: 560ms; }
@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

/* Card lift on hover — service, blog, testimonial cards feel tactile */
.service-card, .blog-card figure, .testimonial-card {
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms ease, box-shadow 320ms ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--color-rust-hearth); }
.testimonial-card:hover { transform: translateY(-4px); border-color: var(--color-rust-hearth); }
.blog-card:hover figure { transform: translateY(-4px); }

/* Buttons: subtle press + sheen */
.btn { position: relative; overflow: hidden; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 180ms ease; }
.btn:active { transform: scale(0.97); }
.btn-filled::after, .btn-outline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.14);
  transform: translateX(-100%);
  transition: transform 500ms ease;
}
.btn-filled:hover::after, .btn-outline:hover::after { transform: translateX(0); }

/* Nav link underline sweep */
.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 1px;
  background: var(--color-rust-hearth);
  transition: right 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

/* Sticky header gains a soft edge once the page scrolls */
.site-header { transition: box-shadow 260ms ease, background-color 260ms ease; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--color-stone); }

/* Mobile nav slide-down */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 340ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex !important;
}
.mobile-nav.open { max-height: 480px; }
@media (min-width: 860px) { .mobile-nav, .mobile-nav.open { max-height: none; display: none !important; } }

/* Nav toggle icon morphs into an X when open */
.nav-toggle svg { transition: transform 260ms ease; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

/* WhatsApp fab: gentle breathing pulse to draw the eye without being frantic */
.whatsapp-fab { transition: transform 220ms ease, background-color 200ms ease; }
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid var(--color-charcoal-ink);
  opacity: 0;
  animation: fabPulse 2800ms ease-out infinite;
}
@keyframes fabPulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Divider bands: gentle parallax-style zoom as they scroll into view */
.divider-band img { transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1); transform: scale(1.06); }
.divider-band.in-view img { transform: scale(1); }

/* Count-up numerals */
.count-up { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero img { animation: none; }
  .hero-copy .eyebrow, .hero-copy h1, .hero-copy p, .hero-copy .btn-row { animation: none; opacity: 1; transform: none; }
  .reveal, .reveal-group > * { opacity: 1; transform: none; transition: none; }
  .whatsapp-fab::before { animation: none; }
}

/* ---------- Lazy image fade-in (global, every page) ---------- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 500ms ease;
}
img[loading="lazy"].img-loaded { opacity: 1; }

/* ---------- Split sections: media and copy enter from opposite sides ---------- */
.split-media, .split-copy {
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.split-media { transform: translateX(-28px); }
.split-copy { transform: translateX(28px); }
.split.reverse .split-media { transform: translateX(28px); }
.split.reverse .split-copy { transform: translateX(-28px); }
.split.in-view .split-media, .split.in-view .split-copy { opacity: 1; transform: translateX(0); }
.split.reveal { opacity: 1; transform: none; } /* outer wrapper stays visible; children carry the motion */

/* ---------- Logo / wordmark ---------- */
.wordmark { transition: opacity 200ms ease, transform 200ms ease; display: inline-block; }
.wordmark:hover { opacity: 0.78; }

/* ---------- Footer: quiet rise-in ---------- */
.site-footer .footer-grid { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.site-footer .footer-grid.in-view { opacity: 1; transform: translateY(0); }
.footer-col a { transition: color 160ms ease, padding-left 160ms ease; }
.footer-col a:hover { padding-left: 3px; }

/* ---------- Form fields: focus glow ---------- */
.field input, .field textarea { transition: border-color 200ms ease, box-shadow 200ms ease; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(137, 37, 0, 0.12); }

/* ---------- Breadcrumb ---------- */
.breadcrumb a { transition: color 150ms ease; }

/* ---------- Article hero: soft settle-in on load ---------- */
.article-hero img {
  opacity: 0;
  transform: scale(1.04);
  animation: articleHeroIn 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes articleHeroIn {
  to { opacity: 1; transform: scale(1); }
}

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--color-frost); transition-delay: calc(var(--stagger-i, 0) * 60ms); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: 0;
  padding: 23px 0;
  text-align: left;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--color-charcoal-ink);
}
.faq-question:hover { color: var(--color-rust-hearth); }
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-rust-hearth);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 14px; transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-answer-inner { padding-bottom: 23px; max-width: 64ch; color: var(--color-stone); }
.faq-item.open .faq-answer { max-height: 320px; }

/* ---------- Gallery lightbox ---------- */
.gallery-item { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: scale(0.94);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: var(--color-linen);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: background-color 200ms ease, transform 200ms ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }

@media (prefers-reduced-motion: reduce) {
  img[loading="lazy"] { opacity: 1; transition: none; }
  .split-media, .split-copy { opacity: 1; transform: none; transition: none; }
  .site-footer .footer-grid { opacity: 1; transform: none; }
  .article-hero img { animation: none; opacity: 1; transform: none; }
  .faq-answer, .faq-icon, .faq-icon::after { transition: none; }
}
