/* ==========================================================================
   Roti & Co Bakery
   Track A static site. Design law: design/stitch-desktop.png + stitch-mobile.png
   Palette and type scale: design/theme.json. See project/claude.md.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette (design/theme.json) */
  --cream:            #FDF9F4;   /* background / surface */
  --cream-alt:        #F7F3EE;   /* surface-container-low */
  --cream-deep:       #F1EDE8;   /* surface-container */
  --white:            #FFFFFF;
  --brown:            #3E2723;   /* crust-brown */
  --brown-soft:       #54433C;   /* on-surface-variant */
  --terracotta:       #D27D56;   /* terracotta-clay, decorative fills and strokes */
  --terracotta-ink:   #B65C36;   /* darkened for 4.59:1 with white text */
  --terracotta-deep:  #924A28;   /* theme primary */
  --gold:             #C5A368;   /* heritage-gold, decorative */
  --gold-ink:         #8A6A2E;   /* heritage-gold darkened for small text */
  --line:             #DAC2B8;   /* outline-variant */

  --color-primary:       var(--terracotta-ink);
  --color-primary-hover: var(--terracotta-deep);
  --color-bg:            var(--cream);
  --color-bg-alt:        var(--cream-alt);
  --color-text:          var(--brown);
  --color-text-muted:    var(--brown-soft);
  --color-border:        var(--line);

  /* Fluid spacing. One value each, continuous from 320px to 2560px. */
  --gutter:    clamp(18px, 2.6vw + 6px, 64px);
  --section-y: clamp(44px, 4.6vw + 12px, 128px);
  --container: clamp(1040px, 84vw, 1680px);
  --stack-xs: 8px;
  --stack-sm: 12px;
  --stack-md: 16px;
  --stack-lg: 32px;

  /* Fluid type. Sizes live here; breakpoints only switch layout. */
  --fs-display: min(clamp(2.5rem, 4.6vw + 0.9rem, 8.5rem), 12.5vh);
  --fs-page:    min(clamp(2.1rem, 3.2vw + 0.9rem, 5.4rem), 15vh);
  --fs-h2:      clamp(1.6rem, 1.9vw + 0.8rem, 3.5rem);
  --fs-h3:      clamp(1.1rem, 0.6vw + 0.95rem, 1.9rem);
  --fs-lead:    clamp(1.02rem, 0.34vw + 0.94rem, 1.375rem);
  --fs-body:    clamp(0.98rem, 0.14vw + 0.93rem, 1.125rem);
  --fs-small:   clamp(0.86rem, 0.08vw + 0.84rem, 0.95rem);
  --fs-label:   0.75rem;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius-card: 4px;
  --radius-btn:  2px;
  --shadow-card: 0 12px 32px rgba(62, 39, 35, 0.06);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 140ms;
  --t-base: 260ms;

  --header-h: 68px;
}

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

html, body { overflow-x: hidden; }

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing: the illustrations carry width/height attributes,
   and without it those presentational hints beat every aspect-ratio below. */
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }

::selection { background: var(--terracotta); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--terracotta-deep);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
}
h3, h4 { font-weight: 600; line-height: 1.18; letter-spacing: -0.005em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brown);
  color: var(--white);
  padding: 12px 20px;
  font-size: var(--fs-small);
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Layout primitives ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(28px, 3.4vw + 8px, 88px); }
/* A heading band and the grid it introduces are separate sections so the grid
   stays inside the mobile density budget. They read as one block. */
.section--head-only { padding-block: clamp(28px, 3.4vw + 8px, 88px) 0; }
.section--after-head { padding-block: clamp(16px, 1.6vw, 30px) clamp(28px, 3.4vw + 8px, 88px); }
.section--head-only .section-head { margin-bottom: 0; }
.section--alt { background: var(--color-bg-alt); }
.section--deep { background: var(--cream-deep); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: block;
}

/* The hairline gold rule that draws itself in. Signature detail. */
.rule {
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0;
  transform-origin: left center;
}

.section-head { margin-bottom: clamp(20px, 2.4vw, 44px); }
.section-head h2 { font-size: var(--fs-h2); margin-top: 10px; }
.section-head p { max-width: 62ch; margin-top: 14px; }
.section-head .rule { margin-top: clamp(14px, 1.6vw, 26px); }
.section-head--center { text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head--center .rule { width: 64px; margin-inline: auto; }

.lead { font-size: var(--fs-lead); line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px clamp(22px, 2vw, 34px);
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.btn--primary { background: var(--color-primary); color: var(--white); }
.btn--ghost {
  background: transparent;
  color: var(--brown);
  border-color: var(--brown);
}
.btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--color-primary-hover); }
  .btn--ghost:hover { background: var(--brown); color: var(--white); }
}

/* Text link with a sliding arrow. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
}
.arrow-link svg { width: 18px; height: 10px; transition: transform var(--t-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .arrow-link:hover svg { transform: translateX(6px); }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 249, 244, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(218, 194, 184, 0.5);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--stack-md);
  min-height: var(--header-h);
}
.brand {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 0.5vw + 1.05rem, 1.6rem);
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand span { color: var(--terracotta-ink); }

.nav { display: none; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding-inline: 2px;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--t-base) var(--ease-out);
}
.nav a[aria-current="page"] { color: var(--brown); font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--terracotta-ink); }
}

/* The phone number is the top-of-page action. The client takes most orders by phone. */
.header__call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: var(--white);
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: clamp(0.9rem, 0.4vw + 0.82rem, 1.15rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-base) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.header__call svg { width: 17px; height: 17px; flex: none; }
.header__call .header__call-label {
  display: none;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}
.header__call:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .header__call:hover { background: var(--color-primary-hover); }
}

.header__actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  color: var(--brown);
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.menu-toggle:active { transform: scale(0.94); }
.menu-toggle svg { width: 20px; height: 14px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(218, 194, 184, 0.5);
  background: var(--color-bg);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { padding-block: 8px 18px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 50px;
  font-size: 1.05rem;
  color: var(--brown);
  text-decoration: none;
  border-bottom: 1px solid rgba(218, 194, 184, 0.4);
}
.mobile-nav li:last-child a { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  background: var(--color-bg-alt);
  padding-block: clamp(30px, 4.4vh + 10px, 76px);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
}
.hero__title {
  font-size: var(--fs-display);
  margin-block: 12px 18px;
  max-width: 16ch;
}
.hero__copy { max-width: 46ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--stack-sm);
  margin-top: clamp(20px, 2.2vw, 34px);
}

/* Facts the client insisted are impossible to miss. */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: clamp(20px, 2vw, 32px);
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.hero__facts svg { width: 15px; height: 15px; flex: none; color: var(--terracotta-ink); }
.hero__facts strong { color: var(--brown); font-weight: 700; }

/* The illustrations are line art on a flat cream field, so they are fitted
   rather than cropped. The cream behind them matches the artwork background,
   so a letterbox is invisible. Swap to object-fit: cover when the client's
   own photographs replace these files. */
.hero__visual { position: relative; }
.hero__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--cream-alt);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.hero__stamp {
  position: absolute;
  right: clamp(-6px, -0.6vw, 0px);
  bottom: -16px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.hero__stamp b {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--brown);
  line-height: 1.1;
}
.hero__stamp span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ---------- Trust strip ---------- */
.strip { background: var(--brown); color: var(--cream-alt); padding-block: clamp(18px, 1.6vw, 26px); }
.strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px clamp(18px, 3vw, 56px);
  text-align: center;
}
.strip__row li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-small);
  color: #EFE6E1;
}
.strip__row svg { width: 15px; height: 15px; flex: none; color: var(--gold); }
.strip__row b { color: var(--white); font-weight: 700; }

/* ---------- Intro ---------- */
.intro { text-align: center; }
.intro h2 { font-size: var(--fs-h2); margin-block: 12px 20px; max-width: 22ch; margin-inline: auto; }
.intro p { max-width: 68ch; margin-inline: auto; }
.intro .rule { width: 64px; margin: clamp(20px, 2.4vw, 34px) auto 0; }

/* ---------- Offerings bento ---------- */
.offerings__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--stack-md);
  padding-bottom: clamp(12px, 1.4vw, 20px);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: clamp(16px, 2vw, 32px);
}
.offerings__head h2 { font-size: var(--fs-h2); margin-top: 8px; }
.offerings__head .arrow-link { display: none; }

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 24px);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: clamp(10px, 1.4vw, 32px);
  background: var(--white);
  border: 1px solid rgba(218, 194, 184, 0.55);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.tile:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { border-color: var(--gold); box-shadow: var(--shadow-card); }
  .tile:hover .tile__art img { transform: scale(1.04); }
}
.tile h3 { font-size: var(--fs-h3); margin-bottom: 5px; }
.tile p { font-size: var(--fs-small); color: var(--color-text-muted); }
.tile .arrow-link { margin-top: 10px; }

.tile__art { display: block; overflow: hidden; border-radius: 2px; margin-bottom: 10px; background: var(--cream-alt); }
.tile__body { display: block; }
.tile__art img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  transition: transform 700ms var(--ease-out);
}

/* Hero tile: the kaya bun. Spans the row, art fills, copy sits in a band under
   it. The screenshot runs the copy over a dark scrim on top of a photograph;
   with a line illustration in place of that photograph a scrim only muddies
   the artwork, so the band is solid. Restore the scrim with the real photos. */
.tile--feature {
  grid-column: 1 / -1;
  justify-content: flex-end;
  min-height: clamp(210px, 30vw, 430px);
  padding: 0;
  background: var(--white);
}
.tile--feature .tile__art {
  flex: 1;
  min-height: 0;
  margin: 0;
  border-radius: 0;
}
.tile--feature .tile__art img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.tile--feature .tile__body {
  padding: clamp(13px, 1.5vw, 30px);
  background: var(--cream-alt);
  border-top: 1px solid rgba(218, 194, 184, 0.55);
}
.tile--feature p { max-width: 52ch; }

.badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 11px;
  background: var(--gold);
  color: var(--brown);
  border-radius: var(--radius-btn);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* The one solid tile that stops the grid reading as matching cards. */
.tile--solid {
  background: var(--terracotta-ink);
  border-color: var(--terracotta-ink);
  color: var(--white);
  justify-content: space-between;
  gap: 10px;
  padding: clamp(16px, 1.8vw, 34px);
}
.tile--solid h3 { color: var(--white); }
.tile--solid p { color: #FBE7DE; }
.tile--solid .arrow-link { color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .tile--solid:hover { border-color: var(--gold); background: var(--terracotta-deep); }
  .tile--solid:hover .arrow-link { color: var(--gold); }
}

/* ---------- Craft panels ---------- */
.panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 24px);
}
.panel { background: var(--white); border: 1px solid rgba(218, 194, 184, 0.55); border-radius: var(--radius-card); overflow: hidden; }
.panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--cream-alt); }
.panel__body { padding: clamp(12px, 1.3vw, 26px); }
.panel h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.panel p { font-size: var(--fs-small); }
.panels .panel:nth-child(3) { grid-column: 1 / -1; }
.panels .panel:nth-child(3) img { aspect-ratio: 16 / 7; }

/* ---------- Split (about / product detail) ---------- */
.split {
  display: grid;
  gap: clamp(22px, 3vw, 64px);
  align-items: center;
}
.split__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--cream-alt);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.split h2 { font-size: var(--fs-h2); margin-block: 10px 16px; }
.split p + p { margin-top: 14px; }

.spec-list { margin-top: clamp(18px, 2vw, 30px); border-top: 1px solid var(--gold); }
.spec-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: space-between;
  padding-block: 13px;
  border-bottom: 1px solid rgba(197, 163, 104, 0.45);
  font-size: var(--fs-small);
}
.spec-list dt, .spec-list .k {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--fs-label);
  color: var(--gold-ink);
}
.spec-list .v { color: var(--color-text-muted); }

/* ---------- Page head (inner pages) ---------- */
.pagehead { background: var(--color-bg-alt); padding-block: clamp(30px, 3.6vw + 12px, 92px); }
.pagehead h1 { font-size: var(--fs-page); margin-block: 12px 16px; max-width: 20ch; }
.pagehead p { max-width: 60ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); }
.crumbs li { display: flex; align-items: center; gap: 8px; color: var(--color-text-muted); }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { color: var(--color-text-muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--terracotta-ink); } }

/* ---------- Product grid (shop) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 28px);
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(218, 194, 184, 0.55);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.product-card:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover { border-color: var(--gold); box-shadow: var(--shadow-card); }
  .product-card:hover img { transform: scale(1.04); }
}
.actions { display: flex; flex-wrap: wrap; gap: var(--stack-sm); margin-top: clamp(20px, 2.2vw, 34px); }
.actions--center { justify-content: center; }

.product-card__art { display: block; overflow: hidden; position: relative; background: var(--cream-alt); }
.product-card__art img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; transition: transform 700ms var(--ease-out); }
.product-card__art .badge { position: absolute; top: 8px; left: 8px; margin: 0; }
/* Card internals are scaled down for the 2-up mobile grid, not just reflowed:
   a 137px column cannot carry the desktop type and padding. */
.product-card__body { padding: clamp(10px, 1.1vw, 22px); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card h3 { font-size: clamp(0.95rem, 0.75vw + 0.78rem, 1.55rem); }
.product-card p { font-size: clamp(0.78rem, 0.28vw + 0.7rem, 0.95rem); }
.product-card .price-note {
  margin-top: auto;
  padding-top: 6px;
  font-size: clamp(0.66rem, 0.1vw + 0.63rem, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.note {
  margin-top: clamp(18px, 2vw, 32px);
  padding: clamp(14px, 1.6vw, 26px);
  background: var(--cream-deep);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-card);
  font-size: var(--fs-small);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--gold); }
.faq details { border-bottom: 1px solid rgba(197, 163, 104, 0.45); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 14px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: clamp(1.02rem, 0.5vw + 0.92rem, 1.35rem);
  font-weight: 600;
  color: var(--brown);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  border-right: 2px solid var(--terracotta-ink);
  border-bottom: 2px solid var(--terracotta-ink);
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--t-base) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding-bottom: 18px; max-width: 72ch; font-size: var(--fs-small); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(24px, 3vw, 64px); align-items: start; }
.contact h2 { font-size: var(--fs-h2); margin-block: 10px 14px; }

.contact-list { margin-top: clamp(18px, 2vw, 28px); display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--terracotta-ink); }
.contact-list a { color: var(--brown); text-decoration: none; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { color: var(--terracotta-ink); } }
.contact-list .k {
  display: block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 2px;
}
.contact-list .closed { color: var(--terracotta-deep); font-weight: 700; }

/* Map. The client gave a city, not a street, so the pin is Petaling Jaya.
   Swap the src for the exact shop pin once they send the address. */
.map-embed { margin-top: clamp(14px, 2vw, 28px); }
.map-embed iframe {
  display: block;
  width: 100%;
  /* Shallow on a phone so the contact block stays scannable, taller from tablet up.
     The map is never collapsed behind a tap: it is real content. */
  height: clamp(140px, 17vw + 86px, 320px);
  border: 1px solid rgba(218, 194, 184, 0.55);
  border-radius: var(--radius-card);
  filter: saturate(0.72) contrast(0.96);
}
.map-embed__note {
  margin: 10px 0 0;
  font-size: var(--fs-small);
  color: var(--brown-soft);
}

.form-card {
  background: var(--white);
  border: 1px solid rgba(218, 194, 184, 0.55);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 2.2vw, 48px);
}
.form-rows { display: grid; gap: clamp(14px, 1.4vw, 26px); }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 26px); }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 6px;
}
/* Bottom-border-only inputs, per design-system.md. 16px minimum so iOS does not zoom. */
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--brown);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--brown);
  transition: border-color var(--t-base) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #A08D85; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--terracotta-ink);
  box-shadow: 0 1px 0 0 var(--terracotta-ink);
}
.field select { appearance: none; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: clamp(18px, 2vw, 30px); }
.form-status { font-size: var(--fs-small); min-height: 1.4em; }
.form-status[data-state="ok"] { color: var(--terracotta-deep); font-weight: 700; }
.form-status[data-state="error"] { color: #A5231F; font-weight: 700; }
.form-legal { font-size: var(--fs-small); color: var(--color-text-muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--brown); color: #E6DCD7; padding-block: var(--section-y) 0; }
.footer h2 { color: var(--white); }
.footer a { color: #E6DCD7; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--gold); } }

.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 48px); }
.footer__brand { grid-column: 1 / -1; }
.footer__brand h2 { font-size: clamp(1.4rem, 1vw + 1.15rem, 2.1rem); }
.footer__brand p { margin-top: 10px; font-size: var(--fs-small); color: #CDBEB8; max-width: 40ch; }
.footer__halal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 9px 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-card);
}
.footer__halal svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.footer__halal b {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
}
.footer__cols > div > h3 {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.footer__cols ul { display: grid; gap: 7px; font-size: var(--fs-small); }
.footer__cols li { color: #CDBEB8; }
.footer__closed { color: #FFC9AF; font-weight: 700; }

.footer__bar {
  margin-top: clamp(26px, 3vw, 52px);
  padding-block: 18px;
  border-top: 1px solid rgba(230, 220, 215, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  font-size: var(--fs-small);
  color: #C4B4AE;
}
/* Understated but legible. The lighter base colour is what keeps this at
   4.9:1 against the brown once the 60% opacity is applied. */
.footer__credit { font-size: 0.85rem; opacity: 0.6; color: #EDE3DE; }
.footer__credit a { color: inherit; text-decoration: underline; }

/* ---------- Motion ---------- */
.reveal { will-change: transform, opacity; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal { transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }

.js .rule { transform: scaleX(0); transition: transform 620ms var(--ease-out); }
.js .rule.is-in { transform: scaleX(1); }

.js .hero__title .line { display: block; overflow: hidden; }
.js .hero__title .line > span { display: block; transform: translateY(105%); transition: transform 720ms var(--ease-out); }
.js .hero__title .line:nth-child(2) > span { transition-delay: 80ms; }
.js .hero__title .line:nth-child(3) > span { transition-delay: 160ms; }
.js .hero__title.is-in .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal, .js .hero__title .line > span { opacity: 1; transform: none; }
  .js .rule { transform: scaleX(1); }
}

/* ==========================================================================
   Breakpoints switch LAYOUT only. Every size above is already fluid.
   ========================================================================== */

@media (min-width: 600px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile__art { flex: 1; min-height: 0; }
  .tile__art img { aspect-ratio: auto; height: 100%; min-height: 130px; }
  .tile--feature { grid-column: span 3; }
  .tile--solid { grid-column: span 3; }
  .panels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panels .panel:nth-child(3) { grid-column: auto; }
  .panels .panel:nth-child(3) img { aspect-ratio: 4 / 3; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-card__art img { aspect-ratio: 4 / 3; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  :root { --header-h: 78px; }
  .header__call .header__call-label { display: inline; }
  .split { grid-template-columns: 1.05fr 1fr; }
  .split__media img { aspect-ratio: 4 / 3; }
  .split--flip .split__media { order: 2; }
  .contact { grid-template-columns: 1fr 1.35fr; }
  .footer__cols { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}

@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: clamp(18px, 1.7vw, 40px); }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .hero { min-height: min(84vh, 900px); display: flex; align-items: center; }
  .hero__inner { grid-template-columns: 1.02fr 0.98fr; }
  .hero__visual img { aspect-ratio: auto; height: min(56vh, 600px); }
  .offerings__head .arrow-link { display: inline-flex; }
  .tile--feature { grid-column: span 2; min-height: clamp(300px, 24vw, 440px); }
  .tile--solid { grid-column: span 1; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Wide but short laptops: give the fold back. */
@media (min-width: 1024px) and (max-height: 800px) {
  .hero { min-height: auto; padding-block: clamp(26px, 3.4vh, 48px); }
}
