/* ==========================================================================
   Mays Candles Studio
   Shared stylesheet for every page. Palette and type follow the brand brief
   (docs/MAYSS_Website_Agent_Brief.md, part 3). Text colours marked "-text"
   are darker variants of the brief colours so small text meets WCAG AA.
   ========================================================================== */

/* ----- Fonts (self-hosted, SIL Open Font License) ----- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----- Tokens ----- */
:root {
  --cream: #FAF7F2;
  --beige: #F2EBE0;
  --sand: #E8D9C8;
  --brown: #6B3F2A;
  --dark: #2C1810;
  --gold: #C4956A;          /* decorative lines, icons, text on dark */
  --gold-text: #8A5D3C;     /* small text on light backgrounds (AA) */
  --gold-display: #9A6A42;  /* large display accents on light (AA large) */
  --rose: #D4A896;
  --white: #FFFFFF;
  --text: #3A2518;
  --muted: #6F6058;         /* secondary text on light (AA) */
  --on-dark: rgba(250, 247, 242, 0.82);
  --on-dark-muted: rgba(250, 247, 242, 0.66);
  --label-ink: #9C7058;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 10vw, 128px);
  --header-h: 84px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-soft: 0 16px 48px rgba(44, 24, 16, 0.12);
  --shadow-lift: 0 28px 64px rgba(44, 24, 16, 0.16);
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[role="list"], .list-reset { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible, .drawer :focus-visible { outline-color: var(--gold); }
::selection { background: var(--sand); color: var(--dark); }

.visually-hidden {
  position: absolute !important; 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: 16px; top: -100px; z-index: 2000;
  background: var(--dark); color: var(--cream); padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ----- Typography ----- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--dark); line-height: 1.1; }
h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 4vw, 60px); }
h3 { font-size: clamp(24px, 2.5vw, 34px); color: var(--brown); }
em, .italic { font-style: italic; }
p { max-width: 68ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--sans); font-size: 11px; font-weight: 500; line-height: 1.6;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow--line::before { content: ''; width: 40px; height: 1px; background: var(--gold); flex: none; }
.on-dark .eyebrow { color: var(--gold); }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); line-height: 1.9; }
.accent { color: var(--gold-display); font-style: italic; }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--beige { background: var(--beige); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section-header { text-align: center; max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); }
.section-header h2 { margin: 16px 0 20px; }
.section-header p { margin-inline: auto; }
.section-cta { text-align: center; margin-top: clamp(40px, 5vw, 64px); max-width: none; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 34px;
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; text-align: center; border: 1px solid transparent; border-radius: 0;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: var(--brown); box-shadow: 0 14px 36px rgba(44, 24, 16, 0.2); }
.btn--brown { background: var(--brown); color: var(--white); }
.btn--brown:hover { background: var(--dark); box-shadow: 0 14px 36px rgba(44, 24, 16, 0.2); }
.btn--outline { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn--outline:hover { background: var(--brown); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--dark); }
.btn--gold:hover { background: var(--cream); }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(250, 247, 242, 0.5); }
.btn--ghost-light:hover { background: var(--cream); color: var(--dark); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 11px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brown); text-decoration: none; border-bottom: 1px solid var(--gold);
}
button.link-arrow { background: none; border: 0; border-bottom: 1px solid var(--gold); padding: 0; }
.link-arrow .icon { transition: transform 0.4s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ----- Announcement (seasonal) ----- */
.announce {
  background: var(--brown); color: var(--cream); text-align: center;
  font-size: 12px; letter-spacing: 0.12em; padding: 10px var(--gutter);
}
.announce[hidden] { display: none; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(250, 247, 242, 0);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.95);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--sand);
}
.site-header--solid { background: var(--cream); box-shadow: 0 1px 0 var(--sand); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h); max-width: var(--container); margin: 0 auto; padding: 10px var(--gutter);
}
.site-header__logo { display: block; flex: none; }
.site-header__logo img { width: 64px; height: 64px; }
.site-nav ul { display: flex; gap: clamp(20px, 3vw, 44px); list-style: none; padding: 0; }
.site-nav a {
  position: relative; display: inline-block; padding: 12px 0;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dark); text-decoration: none; transition: color 0.3s var(--ease);
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 6px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-text); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; width: 48px; height: 48px; padding: 0; background: none; border: 0;
  align-items: center; justify-content: center; color: var(--dark);
}
.menu-toggle .icon { width: 26px; height: 26px; }

/* ----- Mobile drawer (native <dialog>) ----- */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: none;
  width: min(420px, 100%); max-width: 100%; padding: 0; border: 0;
  background: var(--dark); color: var(--cream);
}
.drawer::backdrop { background: rgba(44, 24, 16, 0.5); }
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in 0.45s var(--ease); }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.drawer__top img { width: 64px; height: 64px; }
.drawer__close { width: 48px; height: 48px; background: none; border: 0; color: var(--cream); display: grid; place-items: center; }
.drawer__close .icon { width: 26px; height: 26px; }
.drawer nav { padding: 24px 32px; flex: 1; }
.drawer nav ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.drawer nav a {
  display: block; padding: 8px 0; font-family: var(--serif); font-size: 32px; line-height: 1.3;
  color: var(--cream); text-decoration: none;
}
.drawer nav a[aria-current="page"] { color: var(--gold); font-style: italic; }
.drawer__foot { padding: 24px 32px 40px; display: grid; gap: 14px; border-top: 1px solid rgba(250, 247, 242, 0.12); }

/* ----- Hero ----- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); margin-top: calc(-1 * var(--header-h)); }
.hero__visual {
  position: relative; overflow: hidden; background: var(--beige);
  display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) + 40px) 24px 64px;
}
.hero__visual::before {
  content: ''; position: absolute; inset: -6% -10% -6% 10%;
  background: url('/assets/img/botanical-clusters.svg') no-repeat center / contain; opacity: 0.14;
}
.hero__labels { position: relative; display: flex; align-items: center; }
.hero__labels .label { width: clamp(170px, 17vw, 230px); }
.hero__labels .label:first-child { --tilt: -3deg; z-index: 2; animation: float 6s var(--ease) infinite alternate; }
.hero__labels .label:last-child { --tilt: 3deg; margin-left: -36px; margin-top: 64px; animation: float 5.2s var(--ease) -2s infinite alternate; }
@keyframes float { from { translate: 0 0; } to { translate: 0 -12px; } }
.hero__content {
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: calc(var(--header-h) + 40px) clamp(24px, 7vw, 100px) 72px;
}
.hero__content h1 { display: grid; gap: 22px; }
.hero__content .lead { max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; padding: 0; font-size: 13px; color: var(--muted); font-weight: 400; }
.trust-row li { display: flex; align-items: center; gap: 10px; }
.trust-row .icon { color: var(--gold-text); width: 20px; height: 20px; }

/* ----- Product label (CSS recreation of the studio label, without third-party logos) ----- */
.label {
  --tilt: -2deg;
  container-type: inline-size;
  position: relative; display: block; width: 220px; aspect-ratio: 162 / 230;
  background: #FFFDF9; color: var(--label-ink); overflow: hidden;
  box-shadow: var(--shadow-soft); transform: rotate(var(--tilt));
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.label::before {
  content: ''; position: absolute; inset: -8% -26% 18% 12%;
  background: url('/assets/img/botanical-branch.svg') no-repeat center / contain; opacity: 0.17;
}
.label > span { position: absolute; z-index: 1; }
.label__studio {
  /* Horizontal text rotated to read bottom-to-top, like the printed label
     (container units on vertical writing-mode resolve inconsistently across browsers). */
  left: 3%; top: 31%; transform-origin: 0 0; transform: rotate(-90deg) translateX(-50%);
  font-family: var(--serif); font-size: 9cqi; line-height: 1; letter-spacing: 0.01em; white-space: nowrap;
}
.label__house {
  left: 20%; right: 6%; top: 15%; text-align: center;
  font-family: var(--sans); font-size: 4cqi; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.7;
}
.label__house small { display: block; font-size: 0.8em; font-weight: 400; letter-spacing: 0.3em; opacity: 0.8; }
.label__name {
  right: 6%; left: 14%; bottom: 23%; text-align: right;
  font-family: var(--serif); font-size: 12.5cqi; line-height: 0.98; text-transform: uppercase; letter-spacing: 0.01em;
}
.label__name--long { font-size: 9.5cqi; }
.label__band {
  left: 0; right: 0; bottom: 8.5%; padding: 2.5cqi 0; text-align: center;
  border-top: 1px solid currentColor; border-bottom: 1px solid currentColor;
  font-family: var(--serif); font-size: 5cqi; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.1;
}
.label__foot {
  left: 0; right: 0; bottom: 0; height: 8.5%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; text-align: center;
  font-family: var(--serif); font-size: 4.2cqi; text-transform: uppercase; letter-spacing: 0.04em;
}
.label__foot i { font-style: normal; }
.label__foot i + i { border-left: 1px solid currentColor; height: 100%; display: grid; place-items: center; }

/* ----- Ticker ----- */
.ticker { background: var(--dark); color: rgba(250, 247, 242, 0.78); overflow: hidden; padding: 22px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker__track ul { display: flex; list-style: none; padding: 0; }
.ticker li {
  display: flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap;
  font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
}
.ticker li::after { content: '◆'; color: var(--gold); font-size: 8px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ----- Product grid & cards ----- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  display: flex; flex-direction: column; background: var(--white);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.product-card[hidden] { display: none; }
.product-card__media {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3.4; overflow: hidden;
  background: var(--beige); padding: 28px;
}
.product-card__media::before {
  content: ''; position: absolute; inset: -20% 40% -20% -30%;
  background: url('/assets/img/botanical-clusters.svg') no-repeat center / contain; opacity: 0.08;
}
.product-card__media .label { width: min(46%, 190px); }
.product-card:hover .label { transform: rotate(0deg) scale(1.04); box-shadow: var(--shadow-lift); }
.product-card:nth-child(3n + 2) .label { --tilt: 2deg; }
.product-card:nth-child(3n) .label { --tilt: -1deg; }
.badge {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  background: var(--cream); border: 1px solid var(--sand); padding: 6px 12px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); line-height: 1.4;
}
.product-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 28px; flex: 1; }
.product-card__name { font-size: clamp(24px, 2vw, 28px); color: var(--dark); }
.product-card__desc { font-size: 14px; color: var(--muted); line-height: 1.7; flex: 1; }
.product-card__price { font-family: var(--serif); font-size: 24px; color: var(--brown); line-height: 1.2; }
.product-card__price small { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.disclaimer { font-size: 12px; color: var(--muted); text-align: center; margin: 40px auto 0; max-width: 760px; line-height: 1.7; }

/* ----- Filters ----- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(40px, 5vw, 64px); list-style: none; padding: 0; }
.filter-btn {
  min-height: 44px; padding: 0 20px; background: transparent; border: 1px solid var(--sand);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--brown); }
.filter-btn[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: var(--white); }

/* ----- Steps (Le Rituel) ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); list-style: none; padding: 0; counter-reset: step; }
.step { position: relative; background: var(--white); padding: 56px 32px 40px; text-align: center; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; left: 50%; translate: -50% 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brown); color: var(--white); font-family: var(--serif); font-size: 18px;
}
.step__icon { width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; border: 1px solid var(--sand); background: var(--cream); display: grid; place-items: center; color: var(--gold-text); }
.step__icon .icon { width: 32px; height: 32px; }
.step h3 { font-size: 26px; margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--muted); margin-inline: auto; }

/* ----- Feature columns (Comment commander) ----- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); list-style: none; padding: 0; }
.feature .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 18px; }
.feature h3 { font-size: 24px; margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--on-dark-muted); }
.section--dark .lead { color: var(--on-dark-muted); }
.features--light .feature .icon { color: var(--gold-text); }
.features--light .feature p { color: var(--muted); }

/* ----- Split (story / gifting) ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split__visual {
  position: relative; min-height: 460px; background: var(--beige); display: grid; place-items: center; overflow: hidden;
}
.split__visual::before {
  content: ''; position: absolute; inset: 0; background: url('/assets/img/botanical-clusters.svg') no-repeat center / 90% auto; opacity: 0.16;
}
.split__visual img { position: relative; width: min(46%, 220px); }
.split__visual .label { width: min(44%, 220px); }
.split__content { display: grid; gap: 22px; justify-items: start; }
.split__content p { color: var(--muted); }

/* ----- Gifting band ----- */
.gift-band { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: center; list-style: none; padding: 22px var(--gutter); background: var(--dark); color: var(--on-dark); font-size: 13px; letter-spacing: 0.06em; }
.gift-band li { display: flex; align-items: center; gap: 10px; }
.gift-band .icon { color: var(--gold); width: 18px; height: 18px; }

/* ----- FAQ (native <details>) ----- */
.faq-list { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.faq-list--grid { grid-template-columns: 1fr 1fr; max-width: 1100px; align-items: start; }
.faq-item { background: var(--white); border: 1px solid transparent; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.faq-item:hover { border-color: var(--sand); }
.faq-item[open] { box-shadow: 0 10px 32px rgba(44, 24, 16, 0.07); }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 28px; min-height: 64px; cursor: pointer;
  font-family: var(--serif); font-size: 21px; line-height: 1.35; color: var(--dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--sans); font-size: 24px; font-weight: 300; color: var(--gold-text); transition: transform 0.3s var(--ease); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__answer { padding: 0 28px 24px; color: var(--muted); font-size: 15px; }
.faq-item__answer p + p { margin-top: 10px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: clamp(26px, 3vw, 34px); max-width: 880px; margin: 0 auto 20px; padding-bottom: 14px; border-bottom: 1px solid var(--sand); }

/* ----- Page header (inner pages) ----- */
.page-header { background: var(--beige); text-align: center; padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; inset: 0 55% 0 -10%; background: url('/assets/img/botanical-branch.svg') no-repeat left center / contain; opacity: 0.1; }
.page-header > * { position: relative; }
.page-header h1 { font-size: clamp(40px, 5.5vw, 76px); margin: 14px 0 18px; }
.page-header p { margin-inline: auto; color: var(--muted); }

/* ----- Prose (legal & long-form) ----- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 48px 0 16px; }
.prose h3 { font-size: 22px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--brown); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sand); vertical-align: top; }
.prose th { font-weight: 500; }
.todo { background: #FFF3D6; padding: 0 4px; }
.updated { font-size: 13px; color: var(--muted); }

/* ----- Club / CTA band ----- */
.club { text-align: center; background: linear-gradient(135deg, var(--brown), var(--dark)); color: var(--on-dark); }
.club h2 { color: var(--cream); margin: 14px 0 16px; }
.club p { margin: 0 auto 32px; color: var(--on-dark-muted); }
.club .eyebrow { color: var(--gold); }
.club__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ----- Footer ----- */
.site-footer { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: clamp(64px, 8vw, 104px) 0 32px; }
.site-footer::before { content: ''; position: absolute; right: -6%; top: -10%; width: 420px; height: 120%; background: url('/assets/img/botanical-branch.svg') no-repeat center / contain; opacity: 0.05; filter: brightness(2.4); }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.site-footer__brand img { width: 112px; height: 112px; margin-bottom: 20px; }
.site-footer__brand p { font-size: 14px; color: var(--on-dark-muted); max-width: 300px; }
.site-footer__title { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; display: grid; }
.site-footer a { color: var(--on-dark); text-decoration: none; font-size: 14px; display: inline-block; padding: 11px 0; line-height: 1.6; transition: color 0.3s var(--ease); }
.site-footer ul { gap: 0; }
.site-footer a:hover { color: var(--gold); }
.site-footer li { font-size: 14px; }
.social { display: flex !important; gap: 12px !important; margin-top: 24px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(250, 247, 242, 0.24); }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.social .icon { width: 18px; height: 18px; }
.site-footer__bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(250, 247, 242, 0.12);
  font-size: 13px; color: var(--on-dark-muted);
}
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__bottom a, .link-button { font-size: 13px; color: var(--on-dark-muted); }
.link-button { background: none; border: 0; padding: 6px 0; text-decoration: none; }
.link-button:hover { color: var(--gold); }
.site-footer__disclaimer { position: relative; margin-top: 20px; font-size: 12px; color: var(--on-dark-muted); max-width: none; }

/* ----- WhatsApp floating button (inside the footer landmark, fixed on screen) ----- */
.site-footer .wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 800;
  width: 56px; height: 56px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--white); box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-footer .wa-float .icon { width: 28px; height: 28px; }
.site-footer .wa-float:hover { color: var(--white); transform: scale(1.06); box-shadow: 0 14px 40px rgba(37, 211, 102, 0.5); }

/* ----- Consent banner & preferences ----- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500; max-width: 520px;
  background: var(--dark); color: var(--on-dark); padding: 24px; box-shadow: 0 20px 60px rgba(44, 24, 16, 0.35);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 24px; color: var(--cream); margin-bottom: 8px; }
.consent p { font-size: 14px; color: var(--on-dark-muted); margin-bottom: 18px; }
.consent a { color: var(--gold); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__actions .btn { min-height: 46px; padding: 0 14px; }
.consent__actions .consent__more { grid-column: 1 / -1; }
.consent-dialog, .order-dialog { margin: auto; } /* the global margin reset removes the UA centring of modal dialogs */
.consent-dialog { width: min(560px, calc(100% - 32px)); border: 0; padding: 0; background: var(--cream); color: var(--text); box-shadow: 0 30px 80px rgba(44, 24, 16, 0.3); }
.consent-dialog::backdrop { background: rgba(44, 24, 16, 0.55); }
.consent-dialog form { padding: 32px; display: grid; gap: 18px; }
.consent-dialog h2 { font-size: 30px; }
.consent-dialog p { font-size: 14px; color: var(--muted); }
.consent-option { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--sand); }
.consent-option strong { font-weight: 500; }
.consent-option span { grid-column: 1; font-size: 13px; color: var(--muted); }
.consent-option input { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; accent-color: var(--brown); }
.consent-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ----- Order page ----- */
.order { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
.panel { background: var(--white); padding: clamp(24px, 4vw, 40px); box-shadow: 0 20px 60px rgba(44, 24, 16, 0.05); }
.panel h2 { font-size: 30px; margin-bottom: 20px; }
.panel .order__step-title { margin-top: 48px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label, .field .field__label { font-family: var(--serif); font-size: 20px; color: var(--dark); line-height: 1.2; }
.field small { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; background: var(--cream); border: 1px solid var(--sand); border-radius: 0;
  font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--text); transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; }
.field ::placeholder { color: #A39389; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-text); outline: none; box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.25); }
.field [aria-invalid="true"] { border-color: #A03A2C; }
.field__error { font-size: 13px; color: #A03A2C; font-weight: 400; }
.field__error:empty { display: none; }
.cart-list { list-style: none; padding: 0; border-top: 1px solid var(--sand); }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--sand); }
.cart-item__name { font-family: var(--serif); font-size: 20px; color: var(--dark); line-height: 1.2; }
.cart-item__meta { font-size: 13px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 4px; grid-row: 1 / span 2; grid-column: 2; }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--sand); color: var(--brown); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.qty button:hover:not([disabled]) { background: var(--brown); color: var(--white); border-color: var(--brown); }
.qty button[disabled] { opacity: 0.35; cursor: not-allowed; }
.qty output { min-width: 32px; text-align: center; font-weight: 500; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--dark); color: var(--on-dark); padding: clamp(24px, 4vw, 40px); }
.summary h2 { color: var(--cream); font-size: 30px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid rgba(250, 247, 242, 0.12); }
.summary__lines { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.summary__lines li, .summary__row { display: flex; justify-content: space-between; gap: 16px; }
.summary__empty { font-size: 14px; color: var(--on-dark-muted); }
.summary__row { font-size: 14px; margin-top: 12px; }
.summary__total { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(250, 247, 242, 0.2); font-family: var(--serif); font-size: 30px; color: var(--cream); }
.summary__note { display: flex; gap: 10px; margin: 22px 0; font-size: 13px; color: var(--on-dark-muted); }
.summary__note .icon { color: var(--gold); width: 18px; height: 18px; margin-top: 3px; }
.summary .field__error { color: #F0B8A8; }
.order-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border: 0; padding: 0; background: var(--cream); color: var(--text); box-shadow: 0 30px 80px rgba(44, 24, 16, 0.3); }
.order-dialog::backdrop { background: rgba(44, 24, 16, 0.6); }
.order-dialog__inner { padding: clamp(24px, 5vw, 40px); display: grid; gap: 16px; }
.order-dialog h2 { font-size: clamp(30px, 4vw, 40px); }
.order-dialog__ref { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.order-dialog pre { white-space: pre-wrap; font-family: var(--sans); font-size: 14px; background: var(--white); border: 1px solid var(--sand); padding: 16px; max-height: 40vh; overflow: auto; }
.order-dialog__darija { font-size: 16px; color: var(--muted); font-family: 'Noto Naskh Arabic', 'Geeza Pro', 'Segoe UI', Tahoma, sans-serif; }
.order-dialog__actions { display: grid; gap: 10px; }
.order-dialog__close { justify-self: center; }
.copy-status { font-size: 13px; color: var(--gold-text); min-height: 1.4em; text-align: center; }

/* ----- 404 ----- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: var(--section) var(--gutter); }
.notfound .label { margin: 0 auto 32px; width: 160px; }

/* ----- Reveal on scroll (only when JS runs; respects reduced motion) ----- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.15s !important; }
.reveal-d2 { transition-delay: 0.3s !important; }
.reveal-d3 { transition-delay: 0.45s !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 0; }
  .hero__content { order: 1; padding: 48px var(--gutter) 56px; }
  .hero__visual { order: 2; padding: 64px 24px 72px; min-height: 420px; }
  .steps { grid-template-columns: 1fr; gap: 48px; max-width: 520px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .split__visual { min-height: 340px; }
  .faq-list--grid { grid-template-columns: 1fr; }
  .order { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .site-header__logo img { width: 54px; height: 54px; }
  .site-header__actions .btn { padding: 0 16px; }
  .products-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__actions .btn { width: 100%; }
  .hero__labels .label:last-child { margin-left: -28px; }
  .consent__actions { grid-template-columns: 1fr; }
  .site-footer .wa-float { right: 16px; bottom: 16px; }
}

/* ----- Print ----- */
@media print {
  .site-header, .site-footer, .wa-float, .consent, .ticker { display: none !important; }
  body { background: #fff; }
}
