/* Aroma brand site — a calm clinic look: a pale brand-pink hero, thin display
   headings, small uppercase labels, rounded photo tiles on soft tints and a
   navy footer. Flat colours only (no gradients). Bodoni Moda for display,
   Kantumruy Pro for text and all Khmer. Mobile first. */

:root {
  /* Soft tints of the brand pink (#f83182) and blue (#1049d8) — the only
     colours on the site besides white, ink and the brand colours themselves. */
  --pink-tint: #fde6ef;
  --pink-soft: #fbe0eb;
  --pink-pale: #fef2f6;
  --blue-tint: #dfe7fb;
  --blue-line: #c7d3f3;
  --blue-pale: #f0f4fe;
  --mist: #f4f6fb;
  --navy: #00289a;
  --navy-deep: #001e74;
  --blue: #1049d8;
  --pink: #f83182;
  --ink: #141b3c;
  --muted: #5d6280;
  --line: #e4dfdb;
  --white: #ffffff;
  --display: 'Bodoni Moda', 'Kantumruy Pro', Didot, 'Bodoni 72', Georgia, serif;
  --sans: 'Kantumruy Pro', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(20, 27, 60, 0.06), 0 14px 34px -16px rgba(20, 27, 60, 0.25);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
/* Khmer reads better a step heavier than the airy Latin text. */
html[lang='km'] body {
  font-weight: 400;
}
strong,
b {
  font-weight: 600;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}

/* ── Khmer: taller lines for stacked glyphs, no tracking or capitals ── */
:lang(km) {
  line-height: 1.75;
}
:lang(km) h1,
:lang(km) h2,
:lang(km) h3 {
  font-weight: 500;
  line-height: 1.45;
}
/* A Khmer phrase that must stay on one line (see phrases() in build.mjs). */
.ph {
  white-space: nowrap;
}
[lang='en'] {
  line-height: inherit;
}

/* Small uppercase label under a heading. */
.kicker {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
:lang(km) .kicker,
:lang(km) .eyebrow,
:lang(km) .filter-label,
:lang(km) .ingredient-note,
:lang(km) .footer-head,
:lang(km) .nav a,
:lang(km) .badge {
  letter-spacing: 0;
  text-transform: none;
}
:lang(km) .kicker {
  font-size: 16px;
}

/* ── Logo (the client's artwork; tools/make_logo.py) ──────────── */
.logo {
  display: block;
  width: auto;
  height: 30px;
}
@media (min-width: 960px) {
  .site-header .logo {
    height: 36px;
  }
}
.brand {
  text-decoration: none;
  display: inline-flex;
}

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s, border-color 0.25s;
}
/* On the home page it starts on the pink hero… */
.site-header.over-hero {
  background: var(--pink-tint);
  border-color: transparent;
}
.over-hero .nav a,
.over-hero .lang-switch {
  font-weight: 600;
}
.over-hero .lang-switch {
  border-color: var(--ink);
}
/* …and turns white once the page scrolls or the menu opens. */
.site-header.over-hero.scrolled,
.site-header.nav-open {
  background: var(--white);
  border-color: var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.nav {
  display: none;
}
.nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
:lang(km) .nav a {
  font-size: 15px;
}
.nav a:hover {
  color: var(--navy);
  border-color: currentColor;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.social {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--ink);
  transition: color 0.15s, background-color 0.15s;
}
.social .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.social:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.55);
}
.lang-switch {
  margin-left: 6px;
  padding: 7px 16px;
  border: 1px solid rgba(20, 27, 60, 0.35);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.lang-switch:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.55);
}
/* The menu button needs site.js, so it only shows once that runs. */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: -8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn .icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.menu-btn .icon-close,
.menu-btn[aria-expanded='true'] .icon-menu {
  display: none;
}
.menu-btn[aria-expanded='true'] .icon-close {
  display: block;
}
.js .menu-btn {
  display: inline-flex;
}
@media (max-width: 959px) {
  .nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 4px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px -24px rgba(20, 27, 60, 0.35);
  }
  .nav-open .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-open .nav a:last-child {
    border-bottom: 0;
  }
}
@media (min-width: 960px) {
  :root {
    --header-h: 84px;
  }
  .nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
  }
  .header-tools {
    margin-left: 22px;
  }
  .social {
    display: inline-flex;
  }
  .js .menu-btn {
    display: none;
  }
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
:lang(km) .btn {
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-deep);
  box-shadow: 0 10px 24px -12px rgba(0, 30, 116, 0.8);
}
.btn-line {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-line:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  overflow: hidden;
  background: var(--pink-tint);
  color: var(--ink);
}
.hero-grid {
  display: grid;
  gap: 44px;
  padding-top: 32px;
  padding-bottom: 64px;
}
.hero-copy {
  text-align: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
}
.plus {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--pink);
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
}
.hero h1 {
  font-size: clamp(38px, 7.4vw, 58px);
  font-weight: 500;
  line-height: 1.04;
}
:lang(km) .hero h1 {
  font-size: clamp(30px, 6.6vw, 48px);
  font-weight: 600;
  line-height: 1.4;
}
/* Text on the pink hero is full-strength ink and a step heavier than
   elsewhere, so it stays easy to read. */
.hero-lead {
  max-width: 34rem;
  margin: 22px auto 0;
  font-size: 18px;
  font-weight: 400;
}
:lang(km) .hero-lead {
  font-weight: 500;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
    padding-top: 40px;
    padding-bottom: 104px;
  }
  /* The picture on the left, the words on the right. */
  .hero-visual {
    order: -1;
  }
  .hero-copy {
    text-align: left;
  }
  .hero-lead {
    margin-left: 0;
  }
  .hero-actions {
    justify-content: flex-start;
  }
}

/* Three arch-framed product photos, the middle one taller. The photos'
   white studio backdrop takes the frame's tint (multiply). */
.arches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  max-width: 460px;
  margin: 0 auto;
}
.arch {
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 3 / 4.2;
  /* A semicircle on top: half the width across, the same length down. */
  border-radius: 50% 50% 14px 14px / 35.7% 35.7% 14px 14px;
  background: var(--white);
  box-shadow: 0 30px 44px -30px rgba(160, 20, 80, 0.3);
  transition: transform 0.35s;
}
.arch-1 {
  aspect-ratio: 3 / 5;
  border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px;
}
.arch:hover {
  transform: translateY(-5px);
}
.arch img,
.split-media img,
.contact-visual img,
.treatment-media img,
.card-media img,
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}
img.is-photo {
  mix-blend-mode: normal;
}
@media (min-width: 900px) {
  .arches {
    max-width: none;
    gap: 20px;
  }
}
/* A portrait on a white backdrop, standing on the hero's bottom edge. The
   white multiplies into the pink, so there is no frame around her. */
.has-photo .hero-grid {
  padding-bottom: 0;
  gap: 28px;
}
.hero-photo {
  width: min(100%, 420px);
  margin: 0 auto;
}
.hero-photo img.is-photo {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
@media (min-width: 900px) {
  .has-photo .hero-grid {
    padding-top: 8px;
  }
  .has-photo .hero-copy {
    padding-bottom: 56px;
  }
  .has-photo .hero-visual {
    align-self: end;
  }
  .hero-photo {
    width: min(100%, 540px);
  }
}

/* ── Sections ──────────────────────────────────────────────────── */
.section {
  padding: 64px 0;
}
@media (min-width: 900px) {
  .section {
    padding: 100px 0;
  }
}
.section-mist {
  background: var(--mist);
}
.section-pink {
  background: var(--pink-pale);
}
/* About, right under the pink hero: cool blue against warm pink, so the two
   read as separate sections. */
.section-blue {
  background: var(--blue-tint);
}
.section-blue .pillars {
  border-color: var(--blue-line);
}
/* "Why choose us": the one dark band mid-page, in the footer's navy. */
.section-navy {
  background: var(--navy-deep);
  color: var(--white);
}
.section-navy .kicker {
  color: var(--white);
}
.section-navy .lead,
.section-navy .pillar p {
  color: rgba(255, 255, 255, 0.78);
}
.section-navy .pillars {
  border-color: rgba(255, 255, 255, 0.18);
}
.section-contact {
  background: var(--blue-tint);
}
/* With a photo the contact band matches the hero: pink, the person standing
   on its bottom edge. */
.section-contact.has-photo {
  padding-bottom: 0;
  background: var(--pink-tint);
}
.section-head {
  max-width: 46rem;
  margin-bottom: 40px;
}
.section-head h2,
.split-copy h2 {
  font-size: clamp(32px, 4.6vw, 48px);
}
:lang(km) .section-head h2,
:lang(km) .split-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.section-head .kicker,
.split-copy .kicker {
  margin-top: 14px;
}
.lead {
  margin-top: 12px;
  font-size: 17px;
  color: var(--muted);
}

/* ── About: picture beside the words, then three pillars ───────── */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}
.split-media {
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  background: var(--pink-pale);
}
/* Without a photo of the clinic: the logo on navy, like a sign on the wall. */
.brand-panel {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--navy-deep);
}
.brand-panel .logo {
  height: clamp(56px, 8vw, 96px);
}
.brand-panel .kicker {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.split-text {
  max-width: 34rem;
  margin-top: 20px;
  font-size: 17px;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }
}
.pillars {
  display: grid;
  gap: 28px;
  margin: 56px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
@media (min-width: 860px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}
.pillar-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--pink);
}
.pillar h3 {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}
:lang(km) .pillar h3 {
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}
.pillar p {
  font-size: 15px;
  color: var(--muted);
}

/* ── About: three facts under the introduction ─────────────────── */
.facts {
  display: grid;
  gap: 22px;
  margin: 56px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--blue-line);
  list-style: none;
}
@media (min-width: 860px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}
.fact {
  display: flex;
  align-items: center;
  gap: 18px;
}
.fact-value {
  flex: none;
  min-width: 1.2em;
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  color: var(--navy);
}
.fact-label {
  font-size: 15px;
  line-height: 1.5;
}

/* ── Featured treatments: tinted cards, three to a row ─────────── */
.treatments {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) and (max-width: 999px) {
  .treatments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .treatment:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
/* Six columns, three cards a row; a short last row shares its width. */
@media (min-width: 1000px) {
  .treatments {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
  }
  .treatment {
    grid-column: span 2;
  }
  .treatment:nth-last-child(2):nth-child(3n + 1),
  .treatment:last-child:nth-child(3n + 2) {
    grid-column: span 3;
  }
  .treatment:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }
}
.treatment {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: var(--pink-pale);
}
.treatment:nth-child(even) {
  background: var(--blue-pale);
}
.treatment-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.treatment-body {
  padding: 28px 26px 32px;
}
.treatment .plus {
  display: block;
  margin-bottom: 20px;
}
.treatment h3 {
  font-size: 28px;
}
:lang(km) .treatment h3 {
  font-size: 22px;
}
.treatment p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

/* ── Aesthetic concerns: what we treat, by area ────────────────── */
.concern-groups {
  display: grid;
  gap: 16px;
}
/* Face & skin, the longest list, across the top; the others share a row. */
@media (min-width: 760px) {
  .concern-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .concern-group:first-child {
    grid-column: 1 / -1;
  }
}
.concern-group {
  padding: 28px 26px 30px;
  border-radius: var(--radius);
  background: var(--blue-pale);
}
.concern-group:first-child {
  background: var(--pink-pale);
}
.concern-group h3 {
  margin-bottom: 18px;
  font-size: 30px;
}
:lang(km) .concern-group h3 {
  font-size: 24px;
}
.concern-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.concern-list li {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--white);
  font-size: 15px;
  font-weight: 400;
}
.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

/* ── Product cards ─────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 24px;
  }
}
@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid-best {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 32px;
  }
}
.card {
  min-width: 0;
}
.card[hidden] {
  display: none;
}
.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.card-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: var(--mist);
}
.grid-best .card-media {
  background: var(--blue-pale);
}
.card-media img {
  transition: transform 0.5s;
}
.card-link:hover .card-media img {
  transform: scale(1.04);
}
.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 16px 4px 0;
  text-align: center;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
}
.card-link:hover .card-title {
  color: var(--navy);
}
.card-size {
  font-size: 13.5px;
  color: var(--muted);
}
.card-text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--white);
}
:lang(km) .badge {
  font-size: 12px;
}
.badge-best-seller {
  background: var(--pink);
}
.badge-popular {
  background: var(--navy);
}
.badge-new {
  background: var(--blue);
}
/* Every card there is a best seller: the badge would only repeat it. */
.grid-best .badge {
  display: none;
}

/* ── Filters ───────────────────────────────────────────────────── */
.filters {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
}
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}
.filter-row::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  .filter-row {
    flex-wrap: wrap;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}
.filter-label {
  flex: none;
  align-self: center;
  margin-right: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(20, 27, 60, 0.18);
  border-radius: 999px;
  background: var(--white);
  font: 400 14px/1 var(--sans);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.chip[aria-pressed='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.filter-count {
  font-size: 14px;
  color: var(--muted);
}
.empty {
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
}

/* ── Ingredients ───────────────────────────────────────────────── */
.ingredients {
  display: grid;
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .ingredients {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .ingredients {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ingredient {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}
.ingredient h3 {
  margin: 8px 0 10px;
  font-size: 28px;
}
.ingredient > p:not(.ingredient-note):not(.found-in) {
  color: var(--muted);
}
.ingredient-note {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
}
.found-in {
  margin-top: 14px;
  font-size: 14px;
}
.found-in span {
  color: var(--muted);
}
.found-in a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
}
.found-in a:hover {
  text-decoration: underline;
}

/* ── Contact ───────────────────────────────────────────────────── */
.contact-split {
  display: grid;
  gap: 48px;
  align-items: center;
}
.contact-title {
  max-width: 13ch;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 54px);
}
:lang(km) .contact-title {
  max-width: none;
  font-size: clamp(30px, 4.4vw, 44px);
}
.contact-split .lead {
  color: #3d4560;
}
.contact-visual {
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 50% 50% 18px 18px / 37.5% 37.5% 18px 18px;
  background: var(--blue-pale);
  box-shadow: 0 34px 50px -34px rgba(20, 27, 60, 0.5);
}
.contact-photo {
  width: min(100%, 380px);
  margin: 0 auto;
}
.contact-photo img.is-photo {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
@media (min-width: 900px) {
  .contact-split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 72px;
  }
  .has-photo .contact-split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
  }
  .has-photo .contact-copy {
    align-self: center;
    padding-bottom: 100px;
  }
  .contact-photo {
    width: min(100%, 500px);
  }
}
.contact-grid {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* An odd card out takes the whole last row. */
  .contact-grid > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--white);
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
a.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.contact-card > .icon:not(.arrow) {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 999px;
  background: var(--blue-pale);
  fill: var(--navy);
}
.contact-card > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.contact-card strong {
  font-weight: 600;
}
.contact-card span span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.contact-card .arrow {
  flex: none;
  width: 18px;
  height: 18px;
  margin-left: auto;
  fill: var(--muted);
  transition: transform 0.15s, fill 0.15s;
}
a.contact-card:hover .arrow {
  transform: translateX(3px);
  fill: var(--navy);
}

/* ── Branches ──────────────────────────────────────────────────── */
.branches {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .branches {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}
.branch {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--white);
}
.branch h3 {
  font-size: 30px;
}
:lang(km) .branch h3 {
  font-size: 24px;
}
.branch-address {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}
.branch-links {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
}
.branch-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.branch-links a:hover {
  text-decoration: underline;
}
.branch-links .icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Product page ──────────────────────────────────────────────── */
.product-main {
  padding: 28px 0 80px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--navy);
}
.product {
  display: grid;
  gap: 28px;
}
.product-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  background: var(--pink-pale);
}
@media (min-width: 900px) {
  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
  /* The photo stays in view while the details scroll past it. */
  .product-media {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
.product-media img {
  aspect-ratio: 1;
}
.product-media .badge {
  top: 16px;
  left: 16px;
  font-size: 12px;
  padding: 5px 12px;
}
.product-info .eyebrow {
  font-size: 12px;
}
.product-info h1 {
  margin-top: 10px;
  font-size: clamp(36px, 5vw, 56px);
}
.product-size {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}
.product-size span {
  font-weight: 600;
  color: var(--ink);
}
.price {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
}
.price span {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
}
.product-block {
  margin-top: 30px;
}
.product-block h2 {
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
:lang(km) .product-block h2 {
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.product-block > p {
  font-size: 17px;
}
.benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.benefits li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
}
.benefits li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 9px;
  height: 9px;
  background: var(--pink);
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
}
.tag-link {
  border: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.tag-link:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.ingredients-list {
  color: var(--muted);
  font-size: 15px !important;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.related {
  margin-top: 88px;
}
.related h2 {
  margin-bottom: 32px;
  font-size: clamp(28px, 3.8vw, 38px);
}
@media (min-width: 1100px) {
  .grid-related {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── 404 ───────────────────────────────────────────────────────── */
.not-found {
  padding-top: 96px;
  padding-bottom: 120px;
  display: grid;
  gap: 16px;
  justify-items: start;
}
.not-found h1 {
  font-size: 48px;
}
.not-found p {
  color: var(--muted);
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  padding-top: 64px;
  background: var(--navy-deep);
  color: var(--white);
}
.footer-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 64px;
  }
}
.footer-brand .logo {
  height: 40px;
}
.footer-tagline {
  max-width: 16rem;
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}
.footer-slogan {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.2;
}
:lang(km) .footer-slogan {
  font-weight: 500;
  line-height: 1.5;
}
.footer-cols {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}
@media (min-width: 640px) {
  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.footer-head {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
:lang(km) .footer-head {
  font-size: 15px;
}
.footer-cols p:not(.footer-head),
.footer-cols a {
  display: block;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.footer-cols a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-cols p.footer-hours {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 22px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-base a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.footer-base a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ── Reveal on scroll (only once JS is running; motion-safe) ───── */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card-link,
  .card-media img,
  .btn,
  .arch {
    transition: none;
  }
}
