/* Fonts are self-hosted in fonts/ (no Google Fonts request needed) */
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/libre-baskerville-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/libre-baskerville-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Almarai"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/almarai-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Almarai"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/almarai-latin-700-normal.woff2") format("woff2"); }
/* ==========================================================================
   HAVVA: one-page site. All photos are in the images/ folder next to this
   file: keep them together when uploading.
   ========================================================================== */
:root {
  /* Site palette (from the Squarespace theme) */
  --white: #f6f3ec;
  --cream: #ece4da;
  --black: #36302a;
  --accent: #b9a590;
  --cocoa: #574c3f;
  --navy: #2f4768;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: Almarai, "Helvetica Neue", Arial, sans-serif;

  /* One layout system for every section */
  --container: 1080px;
  --pad-x: clamp(20px, 5vw, 48px);
  --section-y: clamp(60px, 7.5vw, 100px);
  --radius: 8px;
  --shadow: 0 1px 2px rgba(54,48,42,.06), 0 12px 32px -12px rgba(54,48,42,.22);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--pad-x) * 2); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }

/* Shared type: every section uses the same eyebrow + title + intro */
.eyebrow { display: block; margin-bottom: 14px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cocoa); }
.title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -.005em; }
.intro { margin-top: 16px; max-width: 34em; font-size: clamp(16px, 1.3vw, 18px); color: var(--cocoa); }
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 4.5vw, 52px); text-align: center; }
.section-head .intro { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 20; transform: translateZ(0); background: rgba(236, 228, 218, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(87, 76, 63, .12); transition: box-shadow .3s var(--ease), background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease); }
/* Home page: the header floats over the full-screen photo, then turns solid */
body.has-hero .header { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; color: var(--white); box-shadow: none; }
body.has-hero .header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(54, 48, 42, .3), rgba(54, 48, 42, 0)); opacity: 1; transition: opacity .5s var(--ease); pointer-events: none; }
body.has-hero .header.is-solid { background: rgba(236, 228, 218, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom-color: rgba(87, 76, 63, .12); color: var(--black); }
body.has-hero .header.is-solid::before { opacity: 0; }
body.has-hero .site-title { opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
body.has-hero .header.is-solid .site-title { opacity: 1; transform: none; pointer-events: auto; }
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(54,48,42,.25); }
body.has-hero .header.is-scrolled { box-shadow: none; }
body.has-hero .header.is-solid.is-scrolled { box-shadow: 0 6px 24px -12px rgba(54,48,42,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-title { font-family: var(--serif); font-size: 22px; letter-spacing: .06em; text-decoration: none; }
.nav a { position: relative; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 1 · Hero (photo + strip) ---------- */
.hero { position: relative; padding: 0; background: var(--white); }
.hero-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 100vh; max-height: 100svh; overflow: hidden; background: #b9774b; }
.hero-bg { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transform-origin: 25% 35%; animation: hero-in 1.6s var(--ease) both; }
.hero-tagline { position: absolute; left: 8.5%; top: 60%; z-index: 2; max-width: 66%; margin: 0; font-family: var(--serif); font-size: clamp(16px, 2.15vw, 34px); line-height: 1.35; color: var(--white); text-shadow: 0 2px 18px rgba(90, 45, 15, .35); animation: fade-up 1.1s var(--ease) 1s both; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(54,48,42,.12) 0%, transparent 22%, transparent 70%, rgba(54,48,42,.2)); pointer-events: none; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }

.hero-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; max-width: var(--container); margin: 0 auto; padding: clamp(26px, 3.2vw, 40px) var(--pad-x) 0; list-style: none; animation: fade-up 1s var(--ease) 1.1s both; }
.hero-strip li { display: flex; align-items: center; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cocoa); }
.hero-strip li + li::before { content: ""; width: 5px; height: 5px; margin: 0 clamp(14px, 2vw, 24px); border-radius: 50%; background: var(--accent); }
.tagline-break { display: inline; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero-logo { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .hero-frame { max-height: none; }
  body.has-hero .site-title { opacity: 1; transform: none; pointer-events: auto; }
  .tagline-break { display: none; }
  .hero-tagline { position: static; max-width: 24em; margin: 0; padding: clamp(20px, 4.5vw, 30px) var(--pad-x) 0 8.5%; color: var(--black); text-align: left; text-shadow: none; font-size: clamp(18px, 4.8vw, 23px); }
  /* On phones the photo is short, so the header sits above it rather than on it */
  body.has-hero .header { position: sticky; background: rgba(236, 228, 218, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom-color: rgba(87, 76, 63, .12); color: var(--black); }
  body.has-hero .header::before { display: none; }
  .hero-strip { flex-direction: column; align-items: center; }
  .hero-strip li + li::before { display: none; }
}

/* ---------- 1b · Film ---------- */
.film { padding: clamp(28px, 4vw, 52px) var(--pad-x) 0; }
.film { --fw: min(calc(var(--container) + 120px), 100%, calc((100vh - 72px - 120px) * 16 / 9)); --fw: min(calc(var(--container) + 120px), 100%, calc((100svh - 72px - 120px) * 16 / 9)); }
.film-frame { position: relative; width: var(--fw); max-width: 100%; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #e9d9cc; }
.film-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-sound { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(246, 243, 236, .88); color: var(--black); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 14px -6px rgba(54,48,42,.4); transition: transform .25s var(--ease), background .25s var(--ease); }
.film-sound:hover { transform: scale(1.06); background: var(--white); }
.film-sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.film-sound .on { display: none; }
.film-sound[aria-pressed="true"] .on { display: block; }
.film-sound[aria-pressed="true"] .off { display: none; }
@media (max-width: 900px) { .film { --fw: 100%; padding: 24px 12px 0; } .film-sound { right: 10px; bottom: 10px; width: 38px; height: 38px; } }

/* ---------- 2 · Badges ---------- */
.badges { padding: clamp(28px, 4vw, 44px) 0 0; }
.badges img { width: 100%; max-width: 780px; margin: 0 auto; }
.flavours { padding-top: clamp(36px, 4.5vw, 60px); }

/* ---------- 3 · Flavours ---------- */
.flavour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.flavour { margin: 0; will-change: transform; display: flex; flex-direction: column; border-radius: var(--radius); background: #fbf9f4; box-shadow: 0 1px 2px rgba(54,48,42,.05); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.flavour:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.flavour-media { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 50% 40%, rgba(255,255,255,.55), transparent 60%), var(--tint); }
.flavour-media img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(54, 48, 42, .18)); transition: transform .6s var(--ease); }
.flavour:hover .flavour-media img { transform: scale(1.04) rotate(-1deg); }
.flavour figcaption { padding: 22px 24px 26px; }
.flavour h3 { font-size: 20px; line-height: 1.3; }
.flavour .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.flavour .tags li { padding: 5px 11px 4px; border-radius: 999px; background: var(--tint); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cocoa); }
.tint-choc  { --tint: #e6d6c6; }
.tint-almond{ --tint: #eee3cf; }
.tint-berry { --tint: #ecdbe0; }

/* ---------- 4 · Philosophy ---------- */
.philosophy { padding: clamp(80px, 10vw, 136px) 0; color: var(--cream); background-color: var(--navy); background-image: linear-gradient(90deg, rgba(34,52,82,.86) 0%, rgba(34,52,82,.62) 45%, rgba(34,52,82,.72) 100%), url("images/philosophy-background.jpg"); background-size: cover; background-position: 30% 50%; }
.philosophy-inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.philosophy .eyebrow { color: var(--accent); }
.philosophy .title { color: var(--white); font-size: clamp(32px, 4.2vw, 52px); }
.philosophy .title .word { display: block; overflow: hidden; }
.philosophy .title .word span { display: block; transform: translateY(105%); transition: transform .75s var(--ease); transition-delay: var(--wd, 0s); }
.philosophy .reveal.is-in .title .word span { transform: none; }
@media (prefers-reduced-motion: reduce) { .philosophy .title .word span { transform: none; } }
.philosophy-text { padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid rgba(185,165,144,.4); }
.philosophy-text p { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.75; }
.philosophy-text p + p { margin-top: 20px; }
.philosophy-text strong { color: var(--white); }

/* ---------- 5 · Journey ---------- */
.journey { background: var(--white); }
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.journey-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(54,48,42,.06); transition: box-shadow .45s var(--ease); }
.journey-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s var(--ease); }
.journey-grid figure:hover { box-shadow: var(--shadow); }
.journey-grid figure:hover img { transform: scale(1.05); }

/* ---------- 6 · Where to find us (Lidl) ---------- */
.stockist { background: var(--cocoa); color: var(--cream); padding-block: clamp(56px, 7vw, 96px); }
.stockist-card { display: grid; grid-template-columns: minmax(320px, 1fr) 1.7fr; align-items: center; gap: clamp(32px, 4vw, 56px); max-width: calc(var(--container) + 2 * var(--pad-x)); margin: 0 auto; padding-inline: var(--pad-x); }
.stockist .map { margin-right: calc(-1 * min(40px, var(--pad-x) / 2)); }
@media (max-width: 900px) { .stockist .map { margin: 0 -8px; } }
.stockist .eyebrow { color: var(--accent); }
.stockist .title { color: var(--white); font-size: clamp(30px, 3vw, 38px); }
.stockist-lede { margin-top: 16px; max-width: 28em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }
.stockist-rule { height: 0; margin: 28px 0 0; border: 0; }
.features { display: flex; list-style: none; margin: 0; padding: 0; }
.features li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 12px; text-align: center; font-size: 11px; line-height: 1.45; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-left: 1px solid rgba(185, 165, 144, .45); }
.features li:first-child { padding-left: 0; border-left: 0; }
.features svg { width: 30px; height: 30px; stroke: var(--cream); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.map .country { fill: rgba(236, 228, 218, .05); stroke: var(--cream); stroke-width: 2; stroke-linejoin: round; }
.map .dot { fill: var(--accent); }
.map .pin path, .map .pin circle { fill: none; stroke: var(--cream); stroke-width: 2.4; }
.map .city { fill: var(--cream); font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .16em; }
.nationwide { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 24px; }
.nationwide span { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 360px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.nationwide span::before, .nationwide span::after { content: ""; flex: 1; height: 1px; background: rgba(185, 165, 144, .6); }
.nationwide img { width: 64px; height: 64px; border-radius: 6px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.45); }

/* ---------- Footer ---------- */
.footer { padding: 48px 0; background: var(--white); border-top: 1px solid rgba(87, 76, 63, .12); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-size: 22px; letter-spacing: .06em; }
.footer-brand small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--cocoa); }
.footer-contact { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; text-decoration: none; }
.footer-contact a span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.footer-contact a:hover span { background-size: 100% 1px; }
.footer-contact svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js .reveal.is-in { will-change: auto; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Tablet & phone ---------- */
@media (max-width: 900px) {
  .hero-inner, .philosophy-inner, .stockist-card { grid-template-columns: 1fr; }
  .philosophy-text { padding-left: 0; border-left: 0; }
  .philosophy { background-image: linear-gradient(rgba(34,52,82,.8), rgba(34,52,82,.8)), url("images/philosophy-background.jpg"); background-position: 25% 50%; }
    .flavour-grid, .journey-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .features li { padding: 0 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
