/* ===========================================================================
   Counter — Business + POS brochure theme (Growth tier)
   A warm, modern neighbourhood-shop look. All colours/fonts/radius are tokens
   so the WoBooks per-team recolor layer can restyle the whole theme.
   =========================================================================== */

:root {
  /* Colour palette (canonical names — overridden by team tokens) */
  --primary:    #0d7d6e;   /* counter teal */
  --secondary:  #f0603a;   /* warm coral */
  --accent:     #e6a917;   /* gold */
  --background: #ffffff;
  --surface:    #f6f8f7;
  --text:       #14201d;
  --muted:      #5d6b67;
  --border:     #e3e9e6;

  /* Immutable design constants (unique names — never recolored) */
  --counter-ink: #0c1714;        /* dark band that must stay dark */
  --counter-ink-soft: #16241f;
  --counter-cream: #fbf7ee;

  /* Fonts */
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', var(--font-sans);

  /* Shape */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Motion tokens (author-controlled, not recolored) */
  --dur-micro:  140ms;
  --dur-ui:     240ms;
  --dur-reveal: 640ms;
  --dur-slow:  1100ms;
  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-out:      cubic-bezier(.22, 1, .36, 1);
  --ease-spring:   cubic-bezier(.34, 1.56, .64, 1);

  --shadow-sm: 0 1px 2px rgba(12, 23, 20, .06), 0 4px 12px rgba(12, 23, 20, .05);
  --shadow-md: 0 8px 30px rgba(12, 23, 20, .10);
  --shadow-lg: 0 24px 60px rgba(12, 23, 20, .16);
  --maxw: 1160px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* HARD RULE: hide empty/missing images so alt text never bleeds through */
img[src=""], img:not([src]) { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Livewire loading-state parity (hide the spinner span before Livewire mounts) */
[wire\:loading],
[wire\:loading\.delay],
[wire\:loading\.inline-block],
[wire\:loading\.inline] { display: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 5vw, 40px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 120; transition: width var(--dur-micro) linear;
}

/* ---- Shared bits ---- */
.section-label {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 14px;
}
.section-label--invert { color: var(--accent); }
.section-title { font-size: clamp(1.7rem, 4vw, 2.75rem); color: var(--text); }
.section-title--invert { color: var(--counter-cream); }
.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.prose p { margin-bottom: .9em; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: .82rem; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-pill);
}
.chip__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent);
  animation: pulse 2.4s var(--ease-standard) infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .7; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: var(--radius-pill); position: relative;
  transition: transform var(--dur-ui) var(--ease-out), background var(--dur-micro) var(--ease-standard), box-shadow var(--dur-ui) var(--ease-out), color var(--dur-micro) var(--ease-standard);
  border: 1.5px solid transparent;
}
.btn svg { transition: transform var(--dur-ui) var(--ease-out); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark, var(--primary)); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.btn-ghost:hover svg { transform: translate(3px, -3px); }

/* ---- Header / nav ---- */
header[data-section="header"] { position: sticky; top: 0; z-index: 100; }
.nav {
  background: var(--background, rgba(255,255,255,.92));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-ui) var(--ease-standard), box-shadow var(--dur-ui) var(--ease-standard);
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.nav__brand { display: inline-flex; align-items: center; gap: 11px; }
.nav__logo { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.nav__brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__item-link {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--muted);
  padding: 9px 14px; border-radius: var(--radius-pill);
  transition: color var(--dur-micro) var(--ease-standard), background var(--dur-micro) var(--ease-standard);
}
.nav__item-link:hover { color: var(--text); background: var(--surface); }
.nav__cta { background: var(--primary); color: #fff; padding-inline: 20px; }
.nav__cta:hover { background: var(--primary-dark, var(--primary)); color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--dur-ui) var(--ease-out), opacity var(--dur-micro); }
.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); }

/* ---- Hero ---- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 88% 6%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(55% 60% at 4% 96%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%),
    var(--background);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero__hours { margin-bottom: 24px; }
.hero__title { font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: 22px; }
.hero__prefix { display: block; color: var(--secondary); font-size: .42em; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); max-width: 36ch; margin-bottom: 18px; }
.hero__intro { margin-bottom: 26px; max-width: 42ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; }
.hero__media-frame {
  position: relative; border-radius: calc(var(--radius) * 1.6); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 5 / 6; background: var(--surface);
}
.hero__media-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__media-glow { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--counter-ink) 30%, transparent)); }
.hero__badge-card {
  position: absolute; left: -18px; bottom: 28px; z-index: 2;
  background: var(--background); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 22px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 2px;
}
.hero__badge-num { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--primary); }
.hero__badge-label { font-size: .78rem; color: var(--muted); }

/* ---- About ---- */
.about { padding-block: clamp(56px, 8vw, 104px); background: var(--surface); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.about__media { border-radius: calc(var(--radius) * 1.4); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 7 / 8; background: var(--background); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__body { margin-block: 18px 28px; max-width: 50ch; }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.stat__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--primary); }
.stat__label { font-size: .82rem; color: var(--muted); }

/* ---- Departments ---- */
.departments { padding-block: clamp(56px, 8vw, 104px); }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
[data-list] { display: contents; }
.dept-card {
  background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), border-color var(--dur-micro);
}
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.dept-card__media { position: relative; aspect-ratio: 7 / 5; background: var(--surface); overflow: hidden; }
.dept-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-reveal) var(--ease-out); }
.dept-card:hover .dept-card__media img { transform: scale(1.06); }
.dept-card__index {
  position: absolute; top: 12px; left: 12px; font-family: var(--font-display); font-weight: 800;
  font-size: .82rem; color: #fff; background: color-mix(in srgb, var(--counter-ink) 65%, transparent);
  padding: 5px 11px; border-radius: var(--radius-pill); backdrop-filter: blur(4px);
}
.dept-card__num { align-self: flex-start; font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .02em; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); padding: 4px 11px; border-radius: var(--radius-pill); margin-bottom: 4px; }
.dept-card--textonly .dept-card__body { padding-top: 26px; }
.dept-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dept-card__title { font-size: 1.2rem; }
.dept-card__subtitle { color: var(--secondary); font-weight: 600; font-size: .9rem; }
.dept-card__desc { font-size: .92rem; }
.dept-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dept-card__price { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.dept-card__link { font-weight: 600; font-size: .9rem; color: var(--primary); }
.dept-card__link:hover { text-decoration: underline; }
.dept-card--placeholder { border-style: dashed; }

/* ---- Gallery ---- */
.gallery { padding-block: clamp(56px, 8vw, 104px); background: var(--surface); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gallery-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--background); box-shadow: var(--shadow-sm); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-reveal) var(--ease-out); }
.gallery-card:hover img { transform: scale(1.07); }
.gallery-card__cap {
  position: absolute; inset: auto 0 0 0; padding: 16px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--counter-ink) 78%, transparent));
  display: flex; flex-direction: column; gap: 2px;
}
.gallery-card__cat { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.gallery-card__title { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.gallery-card--placeholder { display: flex; align-items: flex-end; border: 1px dashed var(--border); }

/* ---- Testimonials (inverted band — recolors cohesively: bg=text token, fg=bg token) ---- */
.testimonials { padding-block: clamp(60px, 9vw, 112px); background: var(--text, var(--counter-ink)); color: var(--background, var(--counter-cream)); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.review-card {
  background: color-mix(in srgb, var(--background) 8%, var(--text)); border: 1px solid color-mix(in srgb, var(--background) 12%, transparent); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 22px;
  transition: transform var(--dur-ui) var(--ease-out), border-color var(--dur-micro);
}
.review-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.review-card__quote { font-size: 1.05rem; line-height: 1.7; color: var(--background, var(--counter-cream)); position: relative; }
.review-card__quote::before { content: "\201C"; font-family: var(--font-display); font-size: 2.6rem; color: var(--accent); display: block; line-height: .6; margin-bottom: 6px; }
.review-card__by { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.review-card__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-card__meta { display: flex; flex-direction: column; }
.review-card__name { font-family: var(--font-display); font-weight: 600; }
.review-card__role { font-size: .82rem; color: color-mix(in srgb, var(--background) 62%, transparent); }

/* ---- FAQs ---- */
.faqs { padding-block: clamp(56px, 8vw, 104px); }
.faqs__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.faqs__note { color: var(--muted); margin-top: 14px; max-width: 32ch; }
.faqs__list { display: flex; flex-direction: column; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--dur-micro); }
.faq[open] { border-color: color-mix(in srgb, var(--primary) 38%, var(--border)); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  padding: 18px 20px; font-family: var(--font-display); font-weight: 600; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--primary); transition: transform var(--dur-ui) var(--ease-out); }
.faq__icon::before { inset: 7px 0; height: 2px; }
.faq__icon::after { inset: 0 7px; width: 2px; }
.faq[open] .faq__icon::after { transform: scaleY(0); }
.faq__a { padding: 0 20px 20px; font-size: .94rem; }

/* ---- Contact ---- */
.contact { padding-block: clamp(56px, 8vw, 104px); background: var(--surface); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.contact__list { display: flex; flex-direction: column; gap: 16px; margin-block: 22px 26px; }
.contact__item { display: flex; align-items: flex-start; gap: 13px; }
.contact__icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--radius, 12px); display: grid; place-items: center; background: var(--background); border: 1px solid var(--border); color: var(--primary); }
.contact__text { color: var(--text); font-weight: 500; padding-top: 9px; }
a.contact__text:hover { color: var(--primary); }
.contact__panel { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.contact__panel-title { font-size: 1.3rem; margin-bottom: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.field--row { flex-direction: row; gap: 14px; }
.field__label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color var(--dur-micro) var(--ease-standard), box-shadow var(--dur-micro);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
.contact-form textarea { resize: vertical; }
.contact-form__ok, .contact-form__err { border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 500; font-size: .94rem; }
.contact-form__ok { background: color-mix(in srgb, var(--primary) 12%, var(--background)); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.contact-form__err { background: color-mix(in srgb, var(--secondary) 12%, var(--background)); color: var(--secondary); border: 1px solid color-mix(in srgb, var(--secondary) 30%, transparent); margin-bottom: 14px; }

/* ---- Footer (inverted band — same recolor-safe scheme as testimonials) ---- */
.footer { background: var(--text, var(--counter-ink)); color: var(--background, var(--counter-cream)); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-block: clamp(40px, 6vw, 64px); }
.footer__name { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.footer__tagline { color: color-mix(in srgb, var(--background) 66%, transparent); max-width: 38ch; margin-top: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.footer__nav-link { color: color-mix(in srgb, var(--background) 78%, transparent); font-weight: 500; transition: color var(--dur-micro); }
.footer__nav-link:hover { color: var(--accent); }
.footer__bar { border-top: 1px solid color-mix(in srgb, var(--background) 10%, transparent); }
.footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; font-size: .84rem; color: color-mix(in srgb, var(--background) 60%, transparent); }
.to-top { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--background) 10%, transparent); color: var(--background, var(--counter-cream)); transition: background var(--dur-micro), transform var(--dur-ui) var(--ease-out); }
.to-top:hover { background: var(--primary); transform: translateY(-3px); }

/* ---- Mobile drawer state ---- */
@media (max-width: 860px) {
  .hero__grid, .about__grid, .faqs__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; max-height: 360px; }
  .hero__badge-card { left: 12px; }
  .nav-toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--background); padding: 18px clamp(18px,5vw,40px) 26px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-standard);
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__item-link { padding: 13px 14px; }
  .field--row { flex-direction: column; }
  .about__stats { grid-template-columns: 1fr; }
}

/* ─── Hero entrance (CSS, time-based — above the fold) ────────────
   Resting state is visible at rule level; the hidden from-state
   lives ONLY inside @fade-up-in's keyframes, gated behind
   no-preference so a reduced-motion visitor sees content instantly.
   Time-based (not view()) because .hero has overflow:hidden, which
   would otherwise establish a scroll container and break a view()
   timeline on its descendants — and because this content is above
   the fold anyway, where a scroll-driven reveal would never fire. */
@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero [data-reveal] {
    animation: fade-up-in .7s cubic-bezier(.22,1,.36,1) both;
  }
  .hero__hours[data-reveal]  { animation-delay: .05s; }
  .hero__title[data-reveal]  { animation-delay: .13s; }
  .hero__subtitle[data-reveal] { animation-delay: .21s; }
  .hero__intro[data-reveal]  { animation-delay: .29s; }
  .hero__ctas[data-reveal]   { animation-delay: .37s; }
  .hero__media[data-reveal]  { animation-delay: .45s; }

  .hero__badge-card {
    animation: fade-up-in .6s cubic-bezier(.22,1,.36,1) .6s both;
  }
}

/* ─── Section reveal (CSS scroll-driven) ──────────────────────────
   Resting state is visible at rule level — the hidden from-state
   lives ONLY inside @reveal-in's keyframes, and the whole lane is
   gated behind @supports + no-preference so a non-supporting or
   reduced-motion visitor just sees the content, never a blank
   section. */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head, .about__media {
      animation: reveal-in .7s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

    /* Card-grid reveals (departments, gallery, reviews, about stats,
       contact list, footer columns) — approximate the old GSAP
       stagger with nth-child now that reveal is purely CSS-driven. */
    .dept-grid > *:nth-child(1), .gallery-grid > *:nth-child(1),
    .reviews-grid > *:nth-child(1), .about__stats > *:nth-child(1),
    .contact__list > *:nth-child(1), .footer__grid > *:nth-child(1) {
      animation: reveal-in .6s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    .dept-grid > *:nth-child(2), .gallery-grid > *:nth-child(2),
    .reviews-grid > *:nth-child(2), .about__stats > *:nth-child(2),
    .contact__list > *:nth-child(2), .footer__grid > *:nth-child(2) {
      animation: reveal-in .6s ease both;
      animation-timeline: view();
      animation-range: entry 8% entry 46%;
    }
    .dept-grid > *:nth-child(3), .gallery-grid > *:nth-child(3),
    .reviews-grid > *:nth-child(3), .about__stats > *:nth-child(3),
    .contact__list > *:nth-child(3), .footer__grid > *:nth-child(3) {
      animation: reveal-in .6s ease both;
      animation-timeline: view();
      animation-range: entry 16% entry 54%;
    }
    .dept-grid > *:nth-child(4), .gallery-grid > *:nth-child(4),
    .reviews-grid > *:nth-child(4), .about__stats > *:nth-child(4),
    .contact__list > *:nth-child(4), .footer__grid > *:nth-child(4) {
      animation: reveal-in .6s ease both;
      animation-timeline: view();
      animation-range: entry 24% entry 62%;
    }
    .dept-grid > *:nth-child(n+5), .gallery-grid > *:nth-child(n+5),
    .reviews-grid > *:nth-child(n+5), .about__stats > *:nth-child(n+5),
    .contact__list > *:nth-child(n+5), .footer__grid > *:nth-child(n+5) {
      animation: reveal-in .6s ease both;
      animation-timeline: view();
      animation-range: entry 32% entry 70%;
    }
  }
}

/* ---- Below-fold render optimisation ---- */
.gallery, .testimonials, .faqs, .contact, .footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }

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

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

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --secondary: #cc3e13; /* was #f0603a */
  --primary: #007768; /* was #0d7d6e */
}
