/* =========================================================
   Riborn Spa Thane — static site
   Design language: Serenique (webflow) tokens
   Palette: Serenique base (#5F471D / #FEFAEE / #7F6C4A ...)
            + Riborn logo gold accent (#A86018 / #C09018 / #F0D890)
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Serenique base */
  --cream: #fefaee;
  --off-white: #efede8;
  --warm-taupe: #cdc6b9;
  --soft-khaki: #f4f4f4;
  --brownish: #948468;
  --olive-brown: #7f6c4a;
  --primary: #5f471d;
  --ink: #2e2413;
  --white: #ffffff;

  /* Riborn logo gold */
  --gold: #a86018;
  --gold-light: #c09018;
  --gold-pale: #f0d890;

  /* Roles */
  --bg: var(--cream);
  --bg-alt: var(--off-white);
  --surface: var(--white);
  --heading: var(--primary);
  --body: var(--olive-brown);
  --muted: var(--brownish);
  --line: var(--warm-taupe);
  --accent: var(--gold);
  --accent-hover: var(--gold-light);
  --wa: #25d366;
  --wa-dark: #1da851;

  /* Type */
  --font-head: "Instrument Serif", "Playfair Display", Georgia, serif;
  --font-body:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  --h1: clamp(2.75rem, 6.6vw, 5.125rem); /* Serenique 82px */
  --h2: clamp(2rem, 4.4vw, 3.5rem); /* Serenique 56px */
  --h3: clamp(1.5rem, 2.6vw, 2rem); /* Serenique 48px */
  --h4: clamp(1.25rem, 2vw, 1.5rem);

  /* Radii — Serenique */
  --r-s: 12px;
  --r-m: 24px;
  --r-l: 32px;
  --r-xl: 120px;
  --r-pill: 999px;

  /* Spacing */
  --sec-y: clamp(64px, 8vw, 120px);
  --gutter: clamp(18px, 4vw, 40px);
  --maxw: 1320px;

  /* Effects */
  --shadow-s: 0 2px 10px rgba(95, 71, 29, 0.06);
  --shadow-m: 0 12px 32px rgba(95, 71, 29, 0.1);
  --shadow-l: 0 24px 60px rgba(95, 71, 29, 0.16);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Shared rhythm — every card grid and media gap derives from these so
     spacing stays consistent across sections instead of drifting per block. */
  --gap: clamp(20px, 2.6vw, 32px);
  --gap-s: clamp(12px, 1.6vw, 18px);
  --card-pad: clamp(20px, 2.2vw, 28px);
  --card-ratio: 3 / 2;

  /* Fixed-element geometry — single source of truth.
     Every fixed widget derives its offsets and size from these, so nothing
     can land on top of anything else at any breakpoint. */
  --edge: 18px;
  --float-size: 54px;
}

@media (min-width: 768px) {
  :root {
    --edge: 26px;
    --float-size: 58px;
  }
}

/* ---------- 2. RESET / BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  /* `clip` (not `hidden`) is required here. The closed off-canvas nav is a
     fixed element parked past the right edge; body's overflow-x:hidden gets
     propagated to the viewport, so body stops clipping and the panel widens
     the scroll area as soon as the page scrolls. `clip` contains it without
     creating a scroll container. Older browsers ignore it and behave as before. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
iframe {
  max-width: 100%;
  border: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
a:hover {
  color: var(--accent-hover);
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 em,
h2 em,
h3 em {
  font-style: italic;
  color: var(--accent);
}
p {
  margin: 0 0 1.1em;
}
p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--primary);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-s) 0;
}
.skip-link:focus {
  left: 0;
  color: var(--cream);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--sec-y);
}
.section-alt {
  background: var(--bg-alt);
}
.section-cream {
  background: var(--off-white);
}

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}
.section-title {
  font-size: var(--h2);
  margin-bottom: 20px;
  text-wrap: balance;
}

/* Serenique pill label */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 20px;
}
.pill i {
  color: var(--accent);
  font-size: 0.95em;
}
.pill-light {
  background: rgba(254, 250, 238, 0.1);
  border-color: rgba(240, 216, 144, 0.34);
  color: var(--gold-pale);
}
.pill-light i {
  color: var(--gold-pale);
}

/* ---------- 3. BUTTONS ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--white);
  --btn-bd: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.28s var(--ease),
    color 0.28s var(--ease),
    border-color 0.28s var(--ease),
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
  color: var(--btn-fg);
}
.btn:active {
  transform: translateY(0);
}

/* Serenique circular arrow chip on the right of a button */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  font-size: 0.6875rem;
  transition:
    background 0.28s var(--ease),
    color 0.28s var(--ease),
    transform 0.28s var(--ease);
}
.btn-arrow i {
  display: inline-flex;
  transition: transform 0.28s var(--ease);
}

/* The chip itself only ever scales. Rotation is scoped to the arrow glyph —
   rotating the chip spun the phone/WhatsApp icons onto their side. */
.btn:hover .btn-arrow {
  transform: scale(1.08);
}
.btn:hover .btn-arrow .fa-arrow-right {
  transform: rotate(-45deg);
}
.btn-wa:hover .btn-arrow,
.btn:hover .btn-arrow {
  background: var(--white);
}

/* Only arrow-chip buttons get the tighter right padding. Written as an
   additive :has() rule so browsers without :has() fall back to the
   symmetric padding above rather than to a broken layout. */
.btn:has(.btn-arrow) {
  padding: 12px 12px 12px 26px;
}

.btn-sm {
  padding: 11px 20px;
  font-size: 0.8125rem;
}
.btn-sm:has(.btn-arrow) {
  padding: 9px 9px 9px 20px;
}
.btn-sm .btn-arrow {
  width: 26px;
  height: 26px;
  font-size: 0.625rem;
}

.btn-lg {
  padding: 17px 32px;
  font-size: 0.9375rem;
}
.btn-lg:has(.btn-arrow) {
  padding: 14px 14px 14px 32px;
}
.btn-lg .btn-arrow {
  width: 34px;
  height: 34px;
}

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--white);
  --btn-bd: var(--accent);
}
.btn-primary:hover {
  --btn-bg: var(--primary);
  --btn-bd: var(--primary);
}

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--primary);
  --btn-bd: var(--line);
}
.btn-outline .btn-arrow {
  background: var(--primary);
  color: var(--cream);
}
.btn-outline:hover {
  --btn-bg: var(--primary);
  --btn-fg: var(--cream);
  --btn-bd: var(--primary);
}
.btn-outline:hover .btn-arrow {
  background: var(--cream);
  color: var(--primary);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  --btn-bg: var(--white);
  --btn-fg: var(--primary);
  --btn-bd: var(--white);
}

.btn-wa {
  --btn-bg: var(--wa);
  --btn-fg: var(--white);
  --btn-bd: var(--wa);
  /* padding:10px; */
}
.btn-wa .btn-arrow {
  color: var(--wa);
}
.btn-wa:hover {
  --btn-bg: var(--wa-dark);
  --btn-bd: var(--wa-dark);
}
.btn-wa:hover .btn-arrow {
  color: var(--wa-dark);
}

/* ---------- 4. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    padding 0.35s var(--ease);
  padding-block: 14px;
}
.site-header.is-stuck {
  background: rgba(254, 250, 238, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-s);
  padding-block: 8px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.brand-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary);
}
.brand-text em {
  font-style: italic;
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  padding-block: 6px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition:
    transform 0.3s var(--ease),
    opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(--45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(--45deg);
}

/* ---------- 6. HERO ---------- */
.hero {
  padding-block: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 70px);
  background: var(--cream);
}

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
/* balance stops the last line orphaning a single word; it degrades to
   normal wrapping in browsers without support. */
.hero-title {
  font-size: var(--h1);
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--body);
  margin-bottom: 26px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  /* Matches the hero banners' native 1717x916. These creatives have text
     baked into the artwork, so any other ratio crops the wording off with
     background-size:cover. Keep this in step with the banner dimensions. */
  aspect-ratio: 1717/916;
  box-shadow: var(--shadow-m);
  isolation: isolate;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-slide.is-active {
  opacity: 1;
  animation: kenburns 9s var(--ease) forwards;
}
@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.09);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active {
    animation: none;
  }
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 2;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    width 0.3s var(--ease);
}
.hero-dot.is-active {
  background: var(--gold-pale);
  width: 26px;
  border-radius: var(--r-pill);
}

.hero-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--primary);
  box-shadow: var(--shadow-m);
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.hero-badge:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}
.hero-badge-ring {
  display: inline-flex;
  animation: bob 2.4s var(--ease) infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge-ring {
    animation: none;
  }
}

/* ---------- 7. MARQUEE ---------- */
.marquee {
  background: var(--primary);
  color: var(--cream);
  padding-block: 16px;
  overflow: hidden;
  border-block: 1px solid rgba(240, 216, 144, 0.18);
}
.marquee-alt {
  background: var(--gold);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}
/* The translate distance must equal exactly one repeated set, or the loop
   jumps on restart: 2 sets -> -50%, 3 sets -> -33.3333%. */
.marquee-rev {
  animation-name: slide3;
  animation-duration: 30s;
}
@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes slide3 {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.3333%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

.marquee-set {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee-set > span {
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 2vw, 1.75rem);
  padding-inline: clamp(16px, 2vw, 28px);
  white-space: nowrap;
}
.marquee-set > i {
  color: var(--gold-pale);
  font-size: 0.75rem;
}
.marquee-alt .marquee-set > i {
  color: var(--cream);
}

/* ---------- 8. INTRO ---------- */
.intro {
  padding-block: clamp(28px, 7vw, 50px);
  text-align: center;
}
.intro-lead {
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  line-height: 1.35;
  color: var(--primary);
  max-width: 26ch;
  margin-inline: auto;
  max-width: 900px;
}

/* ---------- 9. ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-media {
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
}
.about-fig {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow-m);
}
.about-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.about-fig:hover img {
  transform: scale(1.05);
}

.about-fig-a {
  border-radius: var(--r-l) var(--r-l) var(--r-l) var(--r-l);
  /* aspect-ratio: 4 /3; */
}
.about-fig-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-s);
}
.about-fig-b,
.about-fig-c {
  aspect-ratio: 4/3;
  border-radius: var(--r-m);
}
.about-copy p {
  color: var(--body);
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(36px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.astat-value {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  color: var(--primary);
  line-height: 1;
  margin: 0 0 10px;
}
.astat-value span {
  font-size: 0.42em;
  color: var(--accent);
  margin-left: 2px;
}
.astat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ---------- 10. HIGHLIGHT CARDS ---------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.hcard {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-s);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.hcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-l);
  border-color: var(--gold-pale);
}
.hcard-media {
  aspect-ratio: var(--card-ratio);
  overflow: hidden;
  margin: 10px 10px 0;
  border-radius: var(--r-m);
}
.hcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.hcard:hover .hcard-media img {
  transform: scale(1.05);
}
.hcard-body {
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}
.hcard-title {
  font-size: var(--h4);
  margin: 0 0 0.5em;
}
/* Body copy takes the slack so every card's button lines up on the same
   baseline regardless of how long the heading or blurb runs. */
.hcard-body p {
  font-size: 0.9375rem;
  color: var(--muted);
  flex: 1;
  margin: 0 0 20px;
}

/* ---------- 11. SERVICES ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.scard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-s);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.scard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-l);
  border-color: var(--gold-pale);
}
.scard-media {
  aspect-ratio: var(--card-ratio);
  overflow: hidden;
  background: var(--off-white);
  margin: 10px 10px 0;
  border-radius: var(--r-m);
}
.scard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.scard:hover .scard-media img {
  transform: scale(1.05);
}
.scard-body {
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.scard-title {
  font-size: var(--h4);
  margin: 0 0 0.5em;
}
.scard-body p {
  font-size: 0.9375rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 20px;
}
.scard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 12. WHY US (dark) ---------- */
.section-dark {
  background: var(--primary);
}
.section-dark .section-title {
  color: var(--cream);
}
.section-dark .section-title em {
  color: var(--gold-pale);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.wrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  background: var(--cream);
  border-radius: var(--r-l);
  padding: clamp(14px, 1.6vw, 20px);
  box-shadow: var(--shadow-m);
}
.wrow:nth-child(even) .wrow-media {
  order: 2;
}
/* object-fit:fill stretches each banner to the box instead of cropping it, so
   the text baked into these creatives always stays whole (the three sources
   are different shapes: 1717x916 vs 1536x1024). Note the explicit height
   takes precedence over aspect-ratio, since the grid column already gives the
   box a definite width — the ratio is kept as the intent/fallback. */
.wrow-media {
  border-radius: var(--r-m);
  overflow: hidden;
  aspect-ratio: 16/11;
  /* height: 300px; */
  /* 16/10 at a fixed height computes a wide box (300px -> 480px) that can
     exceed a narrow column and get sliced off at the card edge. This lets it
     shrink to the column instead of overflowing. */
  max-width: 100%;
}
.wrow-media img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.7s var(--ease);
}
.wrow:hover .wrow-media img {
  transform: scale(1.02);
}
.wrow-body {
  padding: clamp(10px, 2vw, 32px);
}
.wrow-step {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0 0 12px;
}
.wrow-title {
  font-size: var(--h3);
  margin: 0 0 0.4em;
}
.wrow-body p {
  color: var(--muted);
  margin: 0;
}

/* ---------- 13. GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: var(--gap-s);
}
.gitem {
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--off-white);
  position: relative;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.gitem::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 1.5rem;
  background: rgba(95, 71, 29, 0.42);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gitem:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
}
.gitem:hover img {
  transform: scale(1.05);
}
.gitem:hover::after,
.gitem:focus-visible::after {
  opacity: 1;
}

.gitem:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gitem:nth-child(6) {
  grid-column: span 2;
}

/* ---------- 14. FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-aside .section-title {
  text-align: left;
  margin-bottom: 28px;
}
.faq-fig {
  margin: 0 0 28px;
  border-radius: var(--r-l);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-m);
}
.faq-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: start;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.faq-item.is-open {
  border-color: var(--gold-pale);
  box-shadow: var(--shadow-m);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 2.4vw, 30px);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-head);
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  color: var(--heading);
  line-height: 1.3;
  transition: color 0.3s var(--ease);
}
.faq-q:hover {
  color: var(--accent);
}
.faq-mark {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  color: var(--accent);
  font-size: 0.75rem;
  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease),
    color 0.35s var(--ease);
}
.faq-item.is-open .faq-mark {
  transform: rotate(135deg);
  background: var(--accent);
  color: var(--white);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a-inner {
  overflow: hidden;
}
.faq-a-inner p {
  padding: 0 clamp(20px, 2.4vw, 30px) 24px;
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ---------- 15. CTA BANNER ---------- */
.cta-banner {
  position: relative;
  isolation: isolate;
  padding-block: clamp(80px, 10vw, 150px);
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
}
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(46, 36, 19, 0.34),
    rgba(95, 71, 29, 0.5)
  );
}
.cta-card {
  background: var(--cream);
  border-radius: var(--r-l);
  padding: clamp(32px, 4.5vw, 64px);
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  box-shadow: var(--shadow-l);
}
.cta-title {
  font-size: var(--h2);
  margin: 0 auto 0.35em;
  max-width: 18ch;
}
.cta-sub {
  color: var(--muted);
  margin-bottom: 2em;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- 16. CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.contact-info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(26px, 3.2vw, 44px);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.cinfo {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.cinfo-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--r-s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  color: var(--accent);
  font-size: 1rem;
}
.cinfo-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.cinfo p {
  margin: 0;
  color: var(--heading);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.cinfo a {
  color: var(--heading);
}
.cinfo a:hover {
  color: var(--accent);
}
.cinfo-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}

.contact-map {
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  min-height: 440px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  display: block;
}

/* ---------- 17. FOOTER ---------- */
.site-footer {
  background: var(--primary);
  color: var(--soft-khaki);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
  padding-block: clamp(44px, 5vw, 70px);
  border-bottom: 1px solid rgba(240, 216, 144, 0.18);
}
.footer-cta-title {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  color: var(--cream);
  margin: 0;
  max-width: 18ch;
}
.footer-cta-title em {
  color: var(--gold-pale);
}
.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 3.4vw, 52px);
  padding-block: clamp(40px, 5vw, 64px);
}
.brand-footer {
  margin-bottom: 18px;
}
.brand-footer .brand-text {
  color: var(--cream);
}
.brand-footer .brand-text em {
  color: var(--gold-pale);
}
.fcol p {
  font-size: 0.9375rem;
  line-height: 1.75;
}
.fcol-title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin: 0 0 20px;
}
.flist li {
  margin-bottom: 10px;
}
.flist a {
  color: var(--soft-khaki);
  font-size: 0.9375rem;
  transition:
    color 0.25s var(--ease),
    padding-left 0.25s var(--ease);
}
.flist a:hover {
  color: var(--gold-pale);
  padding-left: 6px;
}

.fcontact {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.9375rem;
  margin-bottom: 14px;
}
.fcontact i {
  color: var(--gold-pale);
  margin-top: 5px;
  flex: none;
}
.fcontact a {
  color: var(--soft-khaki);
}
.fcontact a:hover {
  color: var(--gold-pale);
}

.footer-bottom {
  border-top: 1px solid rgba(240, 216, 144, 0.18);
  padding-block: 22px;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
}
.footer-bottom a {
  color: var(--gold-pale);
  font-weight: 600;
}
.footer-heart {
  color: #e0506a;
  margin-inline: 6px;
}

/* ---------- 18. FIXED WIDGETS ----------
   Layout contract, at EVERY breakpoint — no media query repositions these:
     BOTTOM-LEFT  : the contact stack — Call on top, WhatsApp beneath it.
     BOTTOM-RIGHT : the Liyza chat bubble (see chatbot.css).
   Both corners are taken. Any future fixed widget must offset itself
   vertically clear of one of these stacks and derive its geometry from
   --edge / --float-size rather than hard-coded values, so nothing can land
   on top of the call/WhatsApp buttons. */
.float-stack {
  position: fixed;
  bottom: var(--edge);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Each stack claims one corner and is never repositioned in a media query,
   so the two can never meet. Side is set here and only here. */
.float-stack-left {
  left: var(--edge);
  align-items: flex-start;
}
.float-stack-right {
  right: var(--edge);
  align-items: flex-end;
}
.float-btn {
  width: var(--float-size);
  height: var(--float-size);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.375rem;
  box-shadow: 0 8px 22px rgba(46, 36, 19, 0.28);
  position: relative;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.float-btn:hover {
  transform: scale(1.08);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(46, 36, 19, 0.36);
}
.float-wa {
  background: var(--wa);
}
.float-call {
  background: var(--accent);
}

.float-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 currentColor;
  opacity: 0.55;
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 0.5;
  }
  70% {
    box-shadow: 0 0 0 14px currentColor;
    opacity: 0;
  }
  100% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .float-btn::before {
    animation: none;
  }
}

.float-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--cream);
  padding: 7px 13px;
  border-radius: var(--r-s);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease);
}
/* The tooltip opens away from its screen edge, or it would sit off-canvas. */
.float-stack-right .float-label {
  right: calc(100% + 12px);
}
.float-stack-left .float-label {
  left: calc(100% + 12px);
}

.float-btn:hover .float-label {
  opacity: 1;
}
.float-stack-right .float-btn:hover .float-label {
  transform: translateY(-50%) translateX(-3px);
}
.float-stack-left .float-btn:hover .float-label {
  transform: translateY(-50%) translateX(3px);
}
@media (hover: none) {
  .float-label {
    display: none;
  }
}

/* ---------- 19. LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 5vw, 60px);
  background: rgba(30, 23, 12, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox[hidden] {
  display: none;
}
.lightbox.is-open {
  opacity: 1;
}
.lb-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--r-m);
  box-shadow: var(--shadow-l);
  object-fit: contain;
}
.lb-close,
.lb-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(254, 250, 238, 0.32);
  border-radius: 50%;
  background: rgba(254, 250, 238, 0.1);
  color: var(--cream);
  font-size: 1.0625rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.28s var(--ease),
    color 0.28s var(--ease);
}
.lb-close:hover,
.lb-nav:hover {
  background: var(--cream);
  color: var(--primary);
}
.lb-close {
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
}
.lb-prev {
  left: clamp(10px, 2.4vw, 28px);
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: clamp(10px, 2.4vw, 28px);
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- 20. SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   21. RESPONSIVE
   ========================================================= */

/* --- Laptop --- */
@media (max-width: 1100px) {
  .service-grid,
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
  .gitem:nth-child(6) {
    grid-column: auto;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }
  .hero-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }
  .hero-title {
    max-width: none;
  }
}

/* --- Tablet: nav collapses to slide-in panel --- */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 90px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: var(--cream);
    box-shadow: -14px 0 44px rgba(46, 36, 19, 0.2);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 96px 30px 40px;
    transform: translateX(100%);
    /* visibility keeps the closed panel out of the tab order; it is
       transitioned so the slide-in still animates on open. */
    visibility: hidden;
    transition:
      transform 0.38s var(--ease),
      visibility 0.38s var(--ease);
    overflow-y: auto;
  }
  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list li {
    border-bottom: 1px solid var(--line);
  }
  .nav-link {
    display: block;
    padding: 15px 2px;
    font-size: 1rem;
  }
  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin-top: 26px;
  }
  .nav-cta .btn {
    width: 100%;
  }

  body.nav-open {
    overflow: hidden;
  }
  /* Must stay BELOW .site-header's z-index (1000). The sticky header forms a
     stacking context, so the nav panel inside it cannot escape above the
     scrim with its own z-index — the scrim would then eat every link tap. */
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(46, 36, 19, 0.5);
    backdrop-filter: blur(2px);
  }

  .about-grid,
  .contact-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .about-media {
    max-width: 620px;
    margin-inline: auto;
  }
  .contact-map {
    min-height: 340px;
  }
  .contact-map iframe {
    min-height: 340px;
  }

  .wrow {
    grid-template-columns: 1fr;
  }
  .wrow:nth-child(even) .wrow-media {
    order: 0;
  }

  .faq-fig {
    max-width: 520px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .hero {
    padding-block: 28px 36px;
  }
  .hero-media {
    border-radius: var(--r-m);
  }
  /* .wrow-media {
    height: 220px;
  } */
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .hero-badge {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: 14px;
  }
  .hero-dots {
    bottom: 16px;
  }

  .service-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .gitem:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .about-fig-a {
    border-radius: var(--r-m) var(--r-m) var(--r-m) 70px;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta-actions .btn,
  .contact-actions .btn,
  .about-actions .btn,
  .footer-cta-actions .btn {
    flex: 1 1 100%;
  }

  .lb-prev {
    left: 8px;
  }
  .lb-next {
    right: 8px;
  }
  .lb-close,
  .lb-nav {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 400px) {
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand-text {
    font-size: 1.25rem;
  }
  .scard-actions .btn {
    flex: 1 1 100%;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
}
