/* ==========================================================================
   Evercream Gelati — homepage
   Design language: product-as-hero discipline (Apple-anchored), warmed into a
   green + cream Italian palette. Editorial serif display, clean humanist body.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --green:        #15543b;   /* brand deep green — sections, headings accent  */
  --green-deep:   #0f3d2b;   /* darker green for footers / depth              */
  --green-soft:   #3e7d5a;   /* hover / links                                 */
  --pistachio:    #a8c6a0;   /* soft decorative accent                        */
  --ink:          #20271f;   /* primary text                                  */
  --ink-soft:     #54604f;   /* secondary text                               */
  --cream:        #faf6ec;   /* page background (warm)                        */
  --cream-2:      #f2ead9;   /* alternate section background                  */
  --line:         #e4dcc8;   /* hairlines on cream                            */
  --white:        #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --measure: 60ch;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 18px 50px -24px rgba(15, 61, 43, 0.45);
  --shadow-card: 0 10px 30px -18px rgba(15, 61, 43, 0.40);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;          /* 17px */
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(72px, 11vw, 132px); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 18px;
}
.lead { max-width: var(--measure); color: var(--ink-soft); font-size: 1.1875rem; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 460; line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; }
h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: var(--cream); }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--green); border-color: rgba(21, 84, 59, 0.32); }
.btn--ghost:hover { border-color: var(--green); background: rgba(21, 84, 59, 0.06); transform: translateY(-2px); }
.btn--light { background: var(--cream); color: var(--green); }
.btn--light:hover { background: var(--white); transform: translateY(-2px); }
.btn--on-green { background: var(--cream); color: var(--green-deep); }
.btn--on-green:hover { background: var(--white); transform: translateY(-2px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 236, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), padding .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(250, 246, 236, 0.9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; transition: padding .3s var(--ease); }
.nav.is-stuck .nav__inner { padding-block: 12px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; }
.brand__mark { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--green); }
.brand__sub { font-family: var(--font-body); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--green-soft); }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: 0.95rem; font-weight: 500; color: var(--ink); position: relative; padding-block: 4px; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--green); transition: width .3s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: inline-flex; align-items: center; gap: 8px; }
.nav .nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-block: clamp(56px, 8vw, 96px);
}
.hero__title { margin-bottom: 24px; }
.hero__title em { font-style: italic; color: var(--green); font-weight: 460; }
.hero__lead { margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__meta { margin-top: 34px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__meta div { display: flex; flex-direction: column; gap: 2px; }
.hero__meta dt { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-soft); font-weight: 600; }
.hero__meta dd { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.hero__figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft); aspect-ratio: 4 / 5;
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: 22px; bottom: 22px;
  background: rgba(250, 246, 236, 0.94); color: var(--green-deep);
  border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-card); backdrop-filter: blur(6px);
}

/* ---------- Story strip ---------- */
.story { background: var(--cream-2); }
.story__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story__points { display: grid; gap: 22px; margin-top: 14px; }
.point { display: flex; gap: 16px; align-items: flex-start; }
.point__dot { flex: none; width: 11px; height: 11px; border-radius: 50%; margin-top: 9px; background: var(--green); }
.point h3 { margin-bottom: 4px; }
.point p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Flavours ---------- */
.flavours__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.flavours__list { columns: 3; column-gap: 40px; }
.flavour {
  break-inside: avoid; display: flex; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.flavour__dot { flex: none; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.flavour span { font-size: 1.02rem; font-weight: 500; }
.flavour small { margin-left: auto; color: var(--ink-soft); font-size: 0.8rem; letter-spacing: 0.04em; }
.flavours__note { margin-top: 36px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Feature split (desserts) ---------- */
.desserts { background: var(--cream-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split__media img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: 100%; }
.split__media img:first-child { margin-top: 28px; }
.menu-list { margin-top: 26px; display: grid; gap: 2px; }
.menu-list div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-list dt { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.menu-list dd { color: var(--ink-soft); text-align: right; max-width: 22ch; font-size: 0.92rem; }

/* ---------- Wholesale (green band) ---------- */
.wholesale { background: var(--green); color: var(--cream); }
.wholesale .eyebrow { color: var(--pistachio); }
.wholesale h2 { color: var(--white); }
.wholesale__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.wholesale p { color: rgba(250, 246, 236, 0.82); max-width: 52ch; }
.wholesale__card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md); padding: 36px;
}
.wholesale__card h3 { color: var(--white); margin-bottom: 6px; }
.wholesale__phone { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--white); display: inline-block; margin: 14px 0 22px; letter-spacing: -0.02em; }
.wholesale__phone:hover { color: var(--pistachio); }

/* ---------- Visit ---------- */
.visit__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.hours { display: grid; gap: 0; margin: 26px 0 30px; }
.hours div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 600; }
.hours dd { color: var(--ink-soft); }
.hours div.is-closed dd { color: var(--green-soft); }
.visit__address { display: grid; gap: 6px; margin-bottom: 26px; }
.visit__address span { color: var(--ink-soft); }
.map { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); min-height: 360px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: saturate(0.92); }
.map__facade {
  width: 100%; height: 100%; min-height: 360px; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(168,198,160,0.35), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(21,84,59,0.10), transparent 55%),
    var(--cream-2);
  color: var(--green); text-align: center; transition: background-color .3s var(--ease);
}
.map__facade:hover { background-color: var(--pistachio); }
.map__pin { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: var(--cream); box-shadow: var(--shadow-card); }
.map__label { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.map__hint { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--green-deep); color: rgba(250,246,236,0.72); padding-block: 60px 36px; }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer__brand .brand__mark { color: var(--cream); }
.footer__brand p { margin-top: 12px; max-width: 30ch; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__cols h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pistachio); margin-bottom: 14px; }
.footer__cols a, .footer__cols span { display: block; color: rgba(250,246,236,0.82); padding: 5px 0; font-size: 0.95rem; }
.footer__cols a:hover { color: var(--cream); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; font-size: 0.85rem; color: rgba(250,246,236,0.55); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav .nav__toggle { display: inline-flex; }
  .hero__grid, .story__grid, .split, .wholesale__grid, .visit__grid { grid-template-columns: 1fr; }
  .hero__figure { aspect-ratio: 4 / 3; order: -1; }
  .split__media img:first-child { margin-top: 0; }
  .flavours__list { columns: 2; column-gap: 28px; }
}
@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .flavours__list { columns: 1; }
  .hero__meta { gap: 26px; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions { gap: 12px; }
  .footer__top { flex-direction: column; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--cream);
  display: flex; flex-direction: column; padding: 26px 24px;
  transform: translateY(-100%); transition: transform .45s var(--ease); visibility: hidden;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav { display: grid; gap: 6px; margin-top: 40px; }
.mobile-menu nav a { font-family: var(--font-display); font-size: 2rem; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 28px; }
.icon-btn { background: none; border: 0; color: var(--green); display: inline-flex; padding: 8px; }
