/* ---------------------------------------------------------------
   Self-contained stylesheet. Each demo folder owns its own copy.
   render.py rewrites the four tokens at the top from the preset in
   shop.json; everything below is the shared design system.

   Presets:
     food-drink          #b3301f / #8d2518 / #fdf4f1   Fraunces
     health-beauty       #0f766e / #0b584f / #eff8f6   Sora
     trades-repair       #1d4ed8 / #163fa8 / #eff3fe   Sora
     retail-shop         #a1710d / #7d560a / #fcf6e9   Fraunces
     professional-svc    #334155 / #1e293b / #f1f5f9   Sora
     general             #111827 / #000000 / #f3f4f6   Sora

   Motion rules: transform and opacity only, ease-out for entrances,
   under 300ms for UI, hover gated behind a real pointer, everything
   removed under prefers-reduced-motion.
---------------------------------------------------------------- */

:root {
  --accent: #a8392a;
  --accent-dark: #7d281d;
  --accent-tint: #fdf1ec;
  --font-display: "Fraunces";

  --ink: #221a14;
  --ink-soft: #6b5d52;
  --ink-faint: #9a8d82;
  --line: #e9ded2;
  --line-soft: #f4ece2;
  --bg: #fffdfa;
  --surface: #ffffff;
  --neutral: #faf4ec;
  --ok: #148f52;

  /* 4 / 8 / 16 / 24 / 32 / 48 / 64 / 96 */
  --s1: 4px;  --s2: 8px;  --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;

  --radius-pill: 999px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1120px;
  --header-h: 64px;

  --shadow-rest: 0 1px 2px rgba(20, 23, 26, .04), 0 10px 30px -18px rgba(20, 23, 26, .28);
  --shadow-lift: 0 2px 6px rgba(20, 23, 26, .05), 0 22px 48px -24px rgba(20, 23, 26, .36);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
* { margin: 0; }

/* A class selector beats the browser's own [hidden] rule, so anything given
   a display below would still paint while hidden. The open/closed badge did:
   it left a bare dot next to "Waktu buka" on shops with no hours. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.nav-open { overflow: hidden; }

img, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.cta :focus-visible, .hero-media :focus-visible { outline-color: #fff; }

.icon { width: 20px; height: 20px; flex: none; }
.btn-icon { width: 17px; height: 17px; }

/* --- skip link --------------------------------------------------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: top 160ms var(--ease-out);
}
.skip:focus { top: 12px; }

/* --- demo banner ------------------------------------------------- */
.demo-banner {
  background: #1f2937; color: #fff;
  font-size: 13.5px; letter-spacing: .01em;
  text-align: center; padding: 9px 16px;
}
.demo-banner strong { font-weight: 600; }
/* real-business demos: loud yellow, with the owner's takedown / claim link */
.demo-banner.is-real { background: #fde047; color: #1a1611; font-size: 14px; }
.demo-banner.is-real strong { font-weight: 800; letter-spacing: .04em; }
.demo-banner.is-real a {
  font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}

/* --- header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: var(--s4);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-family: var(--font-display), Georgia, serif;
  font-size: 17px; font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-text b {
  font-family: var(--font-display), Georgia, serif;
  font-size: 16.5px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text span { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }

.nav { display: flex; gap: var(--s4); font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink-soft); padding: 4px 0; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 180ms var(--ease-out);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 14px; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  padding: 11px 10px; gap: 5px;
  flex-direction: column; justify-content: center;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 200ms var(--ease-out), opacity 150ms 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); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  /* The header's backdrop-filter makes it the containing block for any
     fixed child, so the old fixed + "header + 34px" offset opened the menu
     34px below the header with page content showing through the gap.
     Anchor to the header itself instead. */
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: var(--s2) 20px var(--s4);
    box-shadow: var(--shadow-rest);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 200ms var(--ease-out), opacity 160ms ease;
  }
  .nav a {
    padding: 14px 0; font-size: 17px; color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a::after { display: none; }
  body.nav-open .nav {
    transform: none; opacity: 1; pointer-events: auto;
    /* dim the page under the open menu, clipped so it never covers the header */
    box-shadow: var(--shadow-rest), 0 0 0 100vmax rgba(17, 17, 17, .32);
    clip-path: inset(0 0 -100vmax 0);
  }
  .header-actions .btn-sm { display: none; }
}

/* --- buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 12px 20px; min-height: 44px;
  border: 0; border-radius: var(--radius-pill);
  white-space: nowrap; cursor: pointer;
  touch-action: manipulation;
  transition: background 150ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn.ghost {
  background: transparent; color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.btn svg { fill: none; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-dark); }
  .btn.ghost:hover { background: var(--accent-tint); }
  .nav a:hover { color: var(--ink); }
  .nav a:hover::after { transform: scaleX(1); }
}

/* --- media loading state ------------------------------------------
   Shared by hero-media, about-media and contact-map: a shimmer skeleton
   shows until the image/iframe fires load (or error, so a broken image
   never shimmers forever). app.js toggles .is-loaded. ----------------- */
.hero-media, .about-media, .contact-map {
  background: linear-gradient(90deg, var(--neutral) 25%, var(--line-soft) 37%, var(--neutral) 63%);
  background-size: 400% 100%;
  animation: skeleton-wave 1.4s ease-in-out infinite;
}
.hero-media.is-loaded, .about-media.is-loaded, .contact-map.is-loaded {
  animation: none; background: none;
}
@keyframes skeleton-wave {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media, .about-media, .contact-map { animation: none; }
}

/* --- hero -------------------------------------------------------- */
.hero { position: relative; isolation: isolate; background: var(--accent-tint); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(10, 12, 14, .82) 0%, rgba(10, 12, 14, .62) 52%, rgba(10, 12, 14, .78) 100%);
}
.hero-inner { padding: var(--s8) 20px var(--s7); }
.hero-media ~ .hero-inner { color: #fff; }
.hero-media ~ .hero-inner .eyebrow { color: #fff; opacity: .9; }
.hero-media ~ .hero-inner .hero-sub { color: rgba(255, 255, 255, .88); }
.hero-media ~ .hero-inner .trust { color: rgba(255, 255, 255, .9); }
.hero-media ~ .hero-inner .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .65); }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--s3);
}
.hero h1 {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08; letter-spacing: -.028em; font-weight: 800;
  max-width: 17ch;
  margin-bottom: var(--s3);
}
.hero-sub { font-size: 19px; color: var(--ink-soft); max-width: 48ch; margin-bottom: var(--s4); }
.trust {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s4);
}
.trust .star { width: 17px; height: 17px; fill: #f5b301; stroke: #f5b301; }
.trust b { color: inherit; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-facts {
  list-style: none; padding: 0;
  margin-top: var(--s6);
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.fact {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--ink);
  box-shadow: var(--shadow-rest);
}
.fact .icon { color: var(--accent); margin-top: 2px; }
.fact span { display: block; font-size: 12.5px; color: var(--ink-soft); }
.fact b { font-size: 15.5px; font-weight: 650; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px; padding: 3px 10px 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 650; letter-spacing: .01em;
}
.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.badge.is-open { background: #e8f6ee; color: var(--ok); }
.badge.is-closed { background: #f1f2f4; color: var(--ink-soft); }
h3 > .badge { margin: 0 0 0 8px; vertical-align: middle; }

/* --- sections ---------------------------------------------------- */
.section { padding: var(--s8) 0; }
.section.alt { background: var(--neutral); }
.heading { margin-bottom: var(--s6); max-width: 60ch; }
.heading.flush { margin-bottom: var(--s4); }
h2 {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.14; letter-spacing: -.022em; font-weight: 750;
}
.lede { margin-top: var(--s3); color: var(--ink-soft); max-width: 56ch; }
.note { margin-top: var(--s4); font-size: 13.5px; color: var(--ink-faint); }

/* --- offerings --------------------------------------------------- */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}
.card-icon {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-tint); color: var(--accent);
  margin-bottom: var(--s3);
}
.card h3 {
  font-family: var(--font-display), Georgia, serif;
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 6px;
}
.card p { font-size: 15px; color: var(--ink-soft); }
.price {
  margin-top: var(--s3);
  font-size: 15px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.card-link {
  margin-top: auto; padding-top: var(--s3);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 650; color: var(--accent);
}
.card-link .arrow { width: 16px; height: 16px; transition: transform 180ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: #d6dade;
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
  }
  .card-link:hover .arrow { transform: translateX(3px); }
}

/* --- about ------------------------------------------------------- */
.about {
  display: grid; gap: var(--s6);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
}
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-rest); }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-body p + p { margin-top: var(--s3); }
.about-body p { color: var(--ink-soft); max-width: 60ch; }
.facts {
  list-style: none; padding: 0; margin-top: var(--s5);
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.facts li { border-left: 2.5px solid var(--accent); padding-left: 14px; }
.facts b {
  display: block;
  font-family: var(--font-display), Georgia, serif;
  font-size: 23px; font-weight: 750; letter-spacing: -.02em;
}
.facts span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; display: block; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: var(--s5); }
}

/* --- why choose us ----------------------------------------------- */
.points {
  list-style: none; padding: 0;
  display: grid; gap: var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.points li { display: flex; gap: var(--s3); align-items: flex-start; }
.num {
  font-family: var(--font-display), Georgia, serif;
  font-size: 15px; font-weight: 750; color: var(--accent);
  padding-top: 2px; font-variant-numeric: tabular-nums;
}
.points h3 { font-size: 17px; font-weight: 680; margin-bottom: 4px; }
.points p { font-size: 15px; color: var(--ink-soft); }

/* --- testimonials ------------------------------------------------ */
.quotes {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s4);
}
.quote blockquote {
  font-family: var(--font-display), Georgia, serif;
  font-size: 18px; line-height: 1.45; letter-spacing: -.01em;
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote figcaption { margin-top: var(--s3); font-size: 14px; font-weight: 650; }
.quote figcaption span { display: block; font-weight: 400; color: var(--ink-soft); }

/* --- contact ----------------------------------------------------- */
.contact {
  display: grid; gap: var(--s6);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
}
.contact-info h3 {
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: var(--s3);
}
.contact-info h3 + * { margin-bottom: var(--s5); }
.hours {
  list-style: none; padding: 0; max-width: 420px;
  font-variant-numeric: tabular-nums;
}
.hours li {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 10px 2px; border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.hours li:last-child { border-bottom: 0; }
.hours li span { color: var(--ink-soft); }
.hours li.closed b { color: var(--ink-faint); font-weight: 600; }
.hours li.today {
  background: var(--accent-tint);
  border-radius: 8px; padding-inline: 10px; border-bottom-color: transparent;
}
.hours li.today span, .hours li.today b { color: var(--accent); font-weight: 700; }
.hours-tbc { color: var(--ink-soft); max-width: 44ch; }
address { font-style: normal; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.contact-map {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-rest);
}
.contact-map iframe { width: 100%; height: 420px; border: 0; }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: var(--s5); }
  .contact-map iframe { height: 300px; }
}

/* --- form -------------------------------------------------------- */
.form {
  margin-top: var(--s7);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  max-width: 720px;
  box-shadow: var(--shadow-rest);
}
.form h3 {
  font-family: var(--font-display), Georgia, serif;
  font-size: 21px; font-weight: 700; letter-spacing: -.015em;
}
.form-intro { margin: 6px 0 var(--s4); color: var(--ink-soft); font-size: 15px; }
.field-row { display: grid; gap: var(--s3); grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 16px;                   /* 16px stops iOS zooming the page */
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { min-height: auto; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field [aria-invalid="true"] { border-color: #c0392b; }
.form-status { margin-top: var(--s3); font-size: 14.5px; min-height: 1.4em; }
.form-status.is-error { color: #c0392b; }
.form-status.is-ok { color: var(--ok); }

/* --- faq --------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 18px 2px; cursor: pointer;
  font-size: 17px; font-weight: 650;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chevron {
  width: 18px; height: 18px; flex: none; color: var(--accent);
  transform: rotate(90deg);
  transition: transform 220ms var(--ease-out);
}
.faq-item[open] .chevron { transform: rotate(-90deg); }
.faq-body { padding: 0 2px 20px; }
.faq-body p { color: var(--ink-soft); max-width: 68ch; }

/* --- call to action ---------------------------------------------- */
.cta { background: var(--accent); color: #fff; text-align: center; padding: var(--s8) 0; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .84); margin: var(--s3) auto var(--s5); max-width: 48ch; }
.cta .btn { background: #fff; color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .cta .btn:hover { background: rgba(255, 255, 255, .88); }
}

/* --- footer ------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--s7) 0 var(--s5);
  font-size: 14.5px; color: var(--ink-soft);
}
.footer-grid {
  display: grid; gap: var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.footer-name {
  display: block;
  font-family: var(--font-display), Georgia, serif;
  font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px;
}
.site-footer h4 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 8px;
}
.socials { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint);
}
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { text-decoration: underline; }
}

/* --- floating whatsapp ------------------------------------------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 35;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35);
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease;
}
.fab:active { transform: scale(0.94); }
.fab svg { width: 28px; height: 28px; fill: currentColor; }
.fab-call { background: var(--accent); }
.fab-call svg { fill: none; stroke: currentColor; stroke-width: 1.9; width: 24px; height: 24px; }

@media (hover: hover) and (pointer: fine) {
  .fab:hover { transform: scale(1.06); box-shadow: 0 12px 30px -6px rgba(0, 0, 0, .4); }
}

@media (max-width: 760px) {
  .site-footer { padding-bottom: 90px; }   /* clear the floating button */
  .hero-inner { padding-top: var(--s7); }
  .section { padding: var(--s7) 0; }
}

/* --- layout variants ---------------------------------------------
   Set from shop.json "layout". Each axis has a default that emits no
   class, so a demo that sets nothing renders exactly as before.

     hero:      full (default) | split | type
     offerings: cards (default) | list | feature
     nav:       left (default) | center
------------------------------------------------------------------- */

/* hero-split: photo sits beside the words instead of behind them.
   Light surface, dark text, no overlay. */
.hero-split .hero { background: var(--surface); }
.hero-split .hero .wrap { padding-left: 20px; padding-right: 20px; }
.hero-split .hero-media {
  position: relative; inset: auto; z-index: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  min-height: 300px;
}
.hero-split .hero-media::after { display: none; }
.hero-split .hero-media ~ .hero-inner,
.hero-split .hero-media ~ .hero-inner .eyebrow,
.hero-split .hero-media ~ .hero-inner .hero-sub,
.hero-split .hero-media ~ .hero-inner .trust { color: inherit; opacity: 1; }
.hero-split .hero-media ~ .hero-inner .eyebrow { color: var(--accent); }
.hero-split .hero-media ~ .hero-inner .hero-sub,
.hero-split .hero-media ~ .hero-inner .trust { color: var(--ink-soft); }
.hero-split .hero-media ~ .hero-inner .btn.ghost {
  color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--line);
}
@media (min-width: 861px) {
  .hero-split .hero {
    display: grid; align-items: center; gap: var(--s6);
    grid-template-columns: 1.05fr .95fr;
    max-width: var(--wrap); margin: 0 auto;
    padding: var(--s8) 20px;
  }
  .hero-split .hero-inner { padding: 0; max-width: none; }
  .hero-split .hero-media { order: 2; align-self: stretch; min-height: 420px; }
  .hero-split .hero h1 { max-width: 14ch; }
  .hero-split .hero-sub { max-width: 40ch; }
}
@media (max-width: 860px) {
  .hero-split .hero-media { margin: 20px 20px 0; min-height: 240px; }
  .hero-split .hero-inner { padding-top: var(--s6); }
}

/* hero-type: no photograph. The words and the accent carry it. */
.hero-type .hero { background: var(--accent-tint); }
.hero-type .hero-media { display: none; }
/* the media element is still in the DOM, so the "text over a photo" rules
   above would keep the copy white on a light background */
.hero-type .hero-media ~ .hero-inner { color: var(--ink); }
.hero-type .hero-media ~ .hero-inner .eyebrow { color: var(--accent); opacity: 1; }
.hero-type .hero-media ~ .hero-inner .hero-sub,
.hero-type .hero-media ~ .hero-inner .trust { color: var(--ink-soft); }
.hero-type .hero-media ~ .hero-inner .btn.ghost {
  color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--line);
}
.hero-type .hero-inner {
  padding-top: calc(var(--s8) + var(--s5));
  padding-bottom: calc(var(--s8) + var(--s2));
  text-align: center;
}
.hero-type .hero h1 {
  max-width: 20ch; margin-left: auto; margin-right: auto;
  font-size: clamp(38px, 7.2vw, 72px);
}
.hero-type .hero-sub { max-width: 46ch; margin-left: auto; margin-right: auto; }
.hero-type .hero-actions { justify-content: center; }
.hero-type .trust { margin-left: auto; margin-right: auto; }
.hero-type .hero-facts { max-width: 760px; margin-left: auto; margin-right: auto; }
/* the centred hero text must not leak into the fact cards */
.hero-type .fact { text-align: left; }

/* offerings-list: rows separated by rules instead of boxed cards. */
.offerings-list .grid { grid-template-columns: 1fr; gap: 0; }
.offerings-list .card {
  flex-direction: row; align-items: flex-start; gap: var(--s4);
  border: 0; border-top: 1px solid var(--line);
  border-radius: 0; background: none;
  padding: var(--s5) 0;
}
.offerings-list .grid > .card:last-child { border-bottom: 1px solid var(--line); }
.offerings-list .card-icon { margin-bottom: 0; }
.offerings-list .card h3 { font-size: 20px; }
.offerings-list .card p { max-width: 62ch; }
.offerings-list .card-link { margin-top: var(--s2); padding-top: 0; }
@media (hover: hover) and (pointer: fine) {
  .offerings-list .card:hover {
    border-color: var(--line); box-shadow: none; transform: none;
    background: var(--neutral);
    padding-left: var(--s4); padding-right: var(--s4);
  }
}

/* offerings-feature: the first offering gets the room it deserves. */
@media (min-width: 761px) {
  .offerings-feature .grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  /* the card's children are flat siblings, so a row flex would line up the
     title, copy and links side by side. Grid keeps the icon in its own
     column and stacks the text properly in the second. */
  .offerings-feature .grid > .card:first-child {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--s5); align-items: start;
    padding: var(--s6);
    background: var(--accent-tint); border-color: transparent;
  }
  .offerings-feature .grid > .card:first-child .card-icon {
    width: 58px; height: 58px; margin-bottom: 0;
    background: var(--surface);
    grid-column: 1; grid-row: 1 / -1;
  }
  .offerings-feature .grid > .card:first-child > :not(.card-icon) {
    grid-column: 2;
  }
  .offerings-feature .grid > .card:first-child .card-link { margin-top: var(--s3); }
  .offerings-feature .grid > .card:first-child h3 { font-size: 24px; }
  .offerings-feature .grid > .card:first-child p { font-size: 16.5px; max-width: 54ch; }
}

/* nav-center: wordmark left, links centred, action right. */
@media (min-width: 901px) {
  .nav-center .brand { margin-right: 0; }
  .nav-center .site-header .wrap { justify-content: space-between; }
  .nav-center .nav {
    position: absolute; left: 50%; transform: translateX(-50%);
  }
  .nav-center .site-header .wrap { position: relative; }
}

/* --- motion ------------------------------------------------------
   Hero entrance runs once on load. Scroll reveal is CSS-only where
   animation-timeline exists; app.js adds .is-visible as the fallback.
------------------------------------------------------------------ */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fab-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero-sub, .trust, .hero-actions, .hero-facts {
    animation: rise 560ms var(--ease-out) both;
  }
  .hero .eyebrow { animation-delay: 0ms; }
  .hero h1       { animation-delay: 60ms; }
  .hero-sub      { animation-delay: 110ms; }
  .trust         { animation-delay: 150ms; }
  .hero-actions  { animation-delay: 190ms; }
  .hero-facts    { animation-delay: 240ms; }

  .fab { animation: fab-in 400ms var(--ease-out) 700ms both; }

  @supports (animation-timeline: view()) {
    .card, .points li, .quote, .faq-item,
    .about-media, .about-body, .contact-info, .contact-map,
    .section > .wrap > .heading, .cta .wrap > * {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }

  /* JS fallback for browsers without animation-timeline */
  .will-reveal { opacity: 0; transform: translateY(14px); }
  .will-reveal.is-visible {
    opacity: 1; transform: none;
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .will-reveal { opacity: 1; transform: none; }
}
