@import url("tokens.css");

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1.0625rem; overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
a { text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.script, .script-inline {
  font-family: var(--thk-font-script);
  font-weight: 700;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  transition: background .3s, padding .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(2, 53, 54, .96); padding-block: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.brand img { width: clamp(130px, 14vw, 180px); height: auto; }
.nav-list { display: flex; gap: clamp(16px, 2.5vw, 36px); align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-family: var(--thk-font-display); font-size: 1.35rem; letter-spacing: .04em;
  color: var(--thk-warm-sand); text-decoration: none;
}
.nav-list a:hover { color: var(--thk-healing-blue); }
.nav-list .pill {
  background: var(--thk-healing-blue); color: var(--thk-forest-teal);
  padding: .35em 1.1em; border-radius: var(--thk-radius-pill);
}
.nav-list .pill:hover { background: var(--thk-warm-sand); color: var(--thk-forest-teal); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--thk-font-display); font-size: 1.4rem; letter-spacing: .04em;
  padding: .55em 1.5em; border-radius: var(--thk-radius-pill);
  text-decoration: none; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--thk-healing-blue); color: var(--thk-forest-teal); }
.btn-primary:hover { background: var(--thk-warm-sand); }
.btn-ghost { color: var(--thk-warm-sand); box-shadow: inset 0 0 0 2px var(--thk-warm-sand); }
.btn-ghost:hover { background: var(--thk-warm-sand); color: var(--thk-forest-teal); }
.btn-ghost-light { color: var(--thk-warm-sand); box-shadow: inset 0 0 0 2px var(--thk-blue-tint-2); }
.btn-ghost-light:hover { background: var(--thk-blue-tint-2); color: var(--thk-forest-teal); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 85% 30%, rgba(42,170,158,.35), transparent 60%),
    var(--thk-forest-teal);
  color: var(--thk-warm-sand);
  padding: clamp(96px, 9vw, 124px) 0 calc(23vw * .92 + 28px);
  overflow: hidden;
  isolation: isolate;
}
.hero-inner {
  width: min(1320px, 100% - 32px); margin-inline: auto; padding-inline: clamp(0px, 3vw, 40px);
  display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 24px;
  position: relative; z-index: 2;
}
.eyebrow {
  font-family: var(--thk-font-display); font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: .12em; color: var(--thk-healing-blue);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 36px; height: 3px; background: currentColor; border-radius: 3px; }
.hero-title { margin: .2em 0 .35em; line-height: .9; }
.hero-title .script {
  display: block; font-size: clamp(3.4rem, 7.4vw, 7rem); color: var(--thk-warm-sand);
  transform: rotate(-4deg); transform-origin: left bottom;
  text-shadow: 0 6px 0 rgba(0,0,0,.18);
}
.hero-title .display {
  display: block; font-family: var(--thk-font-display); font-weight: 400;
  font-size: clamp(2.6rem, 5.6vw, 5.4rem); letter-spacing: .02em; text-transform: uppercase;
  color: var(--thk-healing-blue); margin-top: .1em; padding-left: .35em;
}
.hero-lede { max-width: 34ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--thk-blue-tint-3); }
.script-inline { color: var(--thk-healing-blue); font-size: 1.2em; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.hero-visual { position: relative; aspect-ratio: 16 / 11; }
.sun {
  position: absolute; inset: 2% 6% auto auto; width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--thk-healing-blue), #1e8f85 70%);
  opacity: .9;
}
.truck {
  position: relative; z-index: 2; width: 112%; max-width: none; height: auto;
  margin-left: -4%; margin-top: 10%;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.35));
  animation: drive-in 1.4s cubic-bezier(.2,.8,.2,1) both .2s, bob 5s ease-in-out infinite 1.8s;
}
.badge {
  position: absolute; z-index: 3; top: 0; left: 2%; width: clamp(96px, 12vw, 150px);
  animation: spin 22s linear infinite;
}
.badge text { font-family: var(--thk-font-display); font-size: 28px; fill: var(--thk-forest-teal); }

@keyframes drive-in { from { transform: translateX(40%) rotate(1deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Healing Waves */
.waves-art { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1; pointer-events: none; }
.waves-art img { width: 100%; height: auto; }
/* Animated hero waves: three stacked layers, slightly oversized so the sway never shows an edge */
.waves-live { --ww: 100%; }
.waves-live .wl { display: block; width: calc(var(--ww) * 1.04); max-width: none; height: auto; margin-left: calc(var(--ww) * -0.02); }
.waves-live .wl-mid, .waves-live .wl-front { position: absolute; left: 0; top: 0; }
.wl-back  { animation: sway-back 13s ease-in-out infinite alternate; }
.wl-mid   { animation: sway-mid 9s ease-in-out infinite alternate; }
.wl-front { animation: sway-front 7s ease-in-out infinite alternate; }
@keyframes sway-back  { from { transform: translateX(-3px); } to { transform: translateX(3px); } }
@keyframes sway-mid   { from { transform: translateX(5px); } to { transform: translateX(-5px); } }
@keyframes sway-front { from { transform: translateX(-7px); } to { transform: translateX(7px); } }
/* the whole sea rises and falls together, so layers never separate vertically */
.waves-live { animation: sea-bob 6s ease-in-out infinite alternate; }
@keyframes sea-bob { from { transform: translateY(0); } to { transform: translateY(5px); } }
.wave-edge { position: absolute; left: 0; bottom: -2px; z-index: 1; width: 100%; height: clamp(22px, 3.6vw, 52px); fill: var(--thk-forest-teal); pointer-events: none; transform: scaleX(-1); }

/* ---------- Truck run ---------- */
.truck-run {
  position: relative; overflow: hidden;
  height: clamp(120px, 13vw, 190px);
  background: var(--thk-warm-sand);
}
.tr-text {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; align-items: flex-end; justify-content: center; gap: .35em;
  font-family: var(--thk-font-display); text-transform: uppercase; white-space: nowrap;
  font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: .9; letter-spacing: 0;
  color: var(--thk-forest-teal);
}
.tr-text .dot { color: var(--thk-healing-blue); }
.tr-truck {
  position: absolute; left: 0; bottom: 3px; z-index: 2;
  height: 88%; width: auto; max-width: none;
  will-change: transform;
  filter: drop-shadow(0 8px 6px rgba(2, 53, 54, .18));
}
.tr-road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--thk-blue-tint-2) 0 28px, transparent 28px 46px);
}

/* ---------- Sections ---------- */
.kicker {
  font-family: var(--thk-font-display); letter-spacing: .12em; font-size: 1.2rem;
  color: var(--thk-healing-blue-text);
}
.kicker-light { color: var(--thk-healing-blue); }
.h2 {
  font-family: var(--thk-font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem, 6vw, 5rem); line-height: .95; color: var(--thk-forest-teal);
  margin: .15em 0 .35em;
}
.h2 .script { text-transform: none; color: var(--thk-healing-blue); font-size: 1.05em; display: inline-block; transform: rotate(-3deg); }
.h2-light { color: var(--thk-warm-sand); }
.lede { font-size: 1.2rem; max-width: 60ch; }
.light { color: var(--thk-blue-tint-3); max-width: 46ch; font-size: 1.15rem; }

.pattern-sand {
  background:
    linear-gradient(rgba(252,242,227,.82), rgba(252,242,227,.82)),
    url("../assets/img/kiwivegepattern-sand-sage.jpg") center / 520px repeat;
}
.pattern-teal {
  background:
    linear-gradient(#023536 0, rgba(2,53,54,.86) 140px),
    url("../assets/img/kiwivegepattern-teal-blue.jpg") center / 520px repeat;
}

/* About */
.about { padding: clamp(64px, 9vw, 120px) 0 0; }
.about .truck-run { background: transparent; margin-top: clamp(48px, 6vw, 88px); }
.section-head { text-align: center; display: grid; justify-items: center; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.pillar {
  background: var(--thk-white); border-radius: var(--thk-radius-lg);
  padding: 36px 30px; position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(2,53,54,.06);
  transition: transform .3s;
}
.pillar:hover { transform: translateY(-6px) rotate(-.6deg); }
.pillar:nth-child(2) { background: var(--thk-blue-tint-3); }
.pillar:nth-child(2):hover { transform: translateY(-6px) rotate(.6deg); }
.pillar-icon {
  width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center;
  background: var(--thk-healing-blue); margin-bottom: 20px;
}
.pillar-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--thk-forest-teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-family: var(--thk-font-script); font-size: 2.2rem; line-height: 1; margin-bottom: 10px; }

/* ---------- Menu ---------- */
.menu { background: var(--thk-blue-tint-3); padding: clamp(72px, 9vw, 130px) 0; }
.menu-head {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
}
.menu-head .lede { max-width: 46ch; }
.menu-bowl-wrap {
  position: relative; width: clamp(240px, 30vw, 400px); margin: -30px 0 -24px; z-index: 1;
}
.menu-bowl-wrap::before {
  content: ""; position: absolute; inset: 4% 8% 0 8%; border-radius: 50%;
  background: var(--thk-blue-tint-2);
}
.menu-bowl {
  position: relative; width: 100%; height: auto;
  transform: rotate(-7deg);
  filter: drop-shadow(0 22px 22px rgba(2, 53, 54, .22));
  animation: bowl-float 6s ease-in-out infinite;
}
@keyframes bowl-float { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-10px); } }
.menu-grid { position: relative; z-index: 2; }
@media (max-width: 700px) {
  .menu-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .menu-head .lede { margin-inline: auto; }
  .menu-bowl-wrap { order: -1; width: 62vw; margin: 0 0 8px; }
}
.menu-grid {
  display: grid; gap: 22px; margin-top: 52px;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-areas:
    "smoothies juices shots"
    "smoothies icies  hot";
}
.menu-cat { background: var(--thk-white); border-radius: var(--thk-radius-lg); padding: 28px 26px; }
.menu-cat:nth-of-type(2) { grid-area: juices; }
.menu-cat:nth-of-type(3) { grid-area: shots; }
.menu-cat:nth-of-type(4) { grid-area: icies; }
.menu-cat:nth-of-type(5) { grid-area: hot; }
.menu-cat-feature { grid-area: smoothies; background: var(--thk-forest-teal); color: var(--thk-warm-sand); padding: 34px 32px; }
.menu-cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px dashed var(--thk-blue-tint-2); }
.menu-cat-feature .menu-cat-head { border-color: rgba(174,211,201,.35); }
.menu-cat-head h3 { font-family: var(--thk-font-display); font-weight: 400; font-size: 2.4rem; line-height: 1; letter-spacing: .02em; }
.menu-cat-feature .menu-cat-head h3 { font-size: 3rem; color: var(--thk-healing-blue); }
.menu-cat-head p { font-size: .95rem; opacity: .85; }

.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.menu-item { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.menu-item h4 { font-family: var(--thk-font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.05; letter-spacing: .02em; }
.mi-meaning { font-family: var(--thk-font-script); font-size: 1.05rem; letter-spacing: 0; color: var(--thk-healing-blue-text); margin-left: 6px; white-space: nowrap; }
.menu-cat-feature .mi-meaning { color: var(--thk-healing-blue); }
.mi-text p { font-size: 1rem; line-height: 1.45; margin-top: 4px; }
.menu-cat-feature .mi-text p { color: var(--thk-blue-tint-3); }
.mystery { position: relative; background: rgba(42,170,158,.14); border-radius: var(--thk-radius); padding: 14px; margin: 0 -14px; }

.tags-allergen { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 6px; }
.tags-allergen li, .tag-mini, .legend span {
  font-family: var(--thk-font-display); font-size: .95rem; letter-spacing: .04em; line-height: 1;
  padding: .3em .55em .25em; border-radius: 8px;
  background: var(--thk-warm-sand); color: var(--thk-forest-teal);
}
.tags-allergen li.vg, .legend span.vg { background: var(--thk-soft-sage); }
.menu-note { font-size: .95rem; margin-top: 20px; font-style: italic; opacity: .9; }


.boost { background: var(--thk-white); border-radius: var(--thk-radius-lg); padding: 28px 26px; margin-top: 22px; }
.boost-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.boost-list li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--thk-blue-tint-3); border-radius: var(--thk-radius-pill); padding: .45em 1em; font-weight: 600;
}
.boost-list b { font-family: var(--thk-font-display); font-weight: 400; font-size: 1.2rem; color: var(--thk-healing-blue-text); }

@media (min-width: 1200px) {
  .boost-list { flex-wrap: nowrap; gap: 8px; }
  .boost-list li { flex: 1 1 auto; justify-content: center; padding: .45em .7em; font-size: 1rem; white-space: nowrap; }
}
.menu-legend { margin-top: 28px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .95rem; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.menu-legend p { max-width: 62ch; font-size: .95rem; }

@media (max-width: 900px) {
  .menu-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "smoothies smoothies" "juices shots" "icies hot"; }
}
@media (max-width: 600px) {
  .menu-grid { grid-template-columns: 1fr; grid-template-areas: "smoothies" "juices" "shots" "icies" "hot"; }
  .menu-cat-feature { padding: 28px 22px; }
}

/* Food */
.food { position: relative; overflow-x: clip; background: var(--thk-white); padding: clamp(80px, 10vw, 140px) 0 calc(23vw * .92 + 24px); }
.food .food-grid { position: relative; z-index: 2; }
.food-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.food-photos { position: relative; min-height: 520px; }
.photo { margin: 0; position: absolute; border-radius: var(--thk-radius-lg); overflow: hidden; box-shadow: 0 24px 50px rgba(2,53,54,.22); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-a { width: 58%; aspect-ratio: 3/4; left: 0; top: 0; transform: rotate(-4deg); border: 8px solid var(--thk-warm-sand); }
.photo-b { width: 52%; aspect-ratio: 3/4; right: 0; bottom: 0; transform: rotate(5deg); border: 8px solid var(--thk-blue-tint-3); }
.sticker {
  position: absolute; left: 44%; top: 42%; z-index: 2;
  width: 118px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--thk-soft-sage); color: var(--thk-forest-teal);
  font-family: var(--thk-font-script); font-size: 1.5rem; line-height: 1;
  transform: rotate(-12deg); box-shadow: 0 10px 24px rgba(2,53,54,.2);
}
.food-copy p { font-size: 1.15rem; max-width: 48ch; }
.tags { list-style: none; padding: 0; margin: 26px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  font-family: var(--thk-font-display); font-size: 1.2rem; letter-spacing: .05em;
  padding: .3em 1em; border-radius: var(--thk-radius-pill);
  background: var(--thk-blue-tint-3); color: var(--thk-forest-teal);
}
.tags li:nth-child(odd) { background: var(--thk-warm-sand); }
.note { font-size: 1rem !important; opacity: .85; }

/* Find */
.find { position: relative; z-index: 0; background: var(--thk-forest-teal); }
.find-body { padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 9vw, 130px); color: var(--thk-warm-sand); }
.find-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.schedule li {
  display: flex; align-items: center; gap: 20px;
  background: rgba(252,242,227,.08); border: 1px solid rgba(174,211,201,.25);
  border-radius: var(--thk-radius); padding: 18px 22px; backdrop-filter: blur(2px);
}
.schedule .day {
  flex: none; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center;
  background: var(--thk-healing-blue); color: var(--thk-forest-teal);
  font-family: var(--thk-font-display); font-size: 1.7rem;
}
.schedule .where { font-family: var(--thk-font-display); font-size: 1.6rem; letter-spacing: .03em; display: grid; }
.schedule small { font-family: var(--thk-font-body); font-size: 1rem; letter-spacing: 0; color: var(--thk-blue-tint-2); }

/* Footer */
.site-footer { background: var(--thk-forest-teal); color: var(--thk-warm-sand); padding: 56px 0 32px; border-top: 1px solid rgba(174,211,201,.15); }
.footer-grid { display: grid; justify-items: center; text-align: center; gap: 14px; }
.footer-grid img { width: 220px; height: auto; }
.footer-tag { font-size: 1.8rem; color: var(--thk-healing-blue); }
.footer-links { list-style: none; padding: 0; margin: 8px 0; display: flex; gap: 28px; }
.footer-links a { color: var(--thk-warm-sand); font-family: var(--thk-font-display); font-size: 1.3rem; letter-spacing: .06em; text-decoration: none; }
.footer-links a:hover { color: var(--thk-healing-blue); }
.fine { font-size: .9rem; color: var(--thk-blue-tint-2); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; margin: -8px 0 8px; }
  .hero { padding-top: 96px; padding-bottom: calc(23vw * 1.7 * .98 + 24px); }
  .waves-art img { width: 170%; max-width: none; }
  .waves-live { --ww: 170%; }
  .food { padding-bottom: calc(23vw * 1.7 * .98 + 16px); }
  .truck { width: 104%; margin-left: -2%; margin-top: 6%; }
  .pillars { grid-template-columns: 1fr; }
  .food-grid, .find-grid { grid-template-columns: 1fr; }
  .food-photos { min-height: 0; aspect-ratio: 1 / 1.05; }

  .nav-toggle {
    display: grid; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) { display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--thk-warm-sand); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4.5px) rotate(-45deg); }
  .nav-list {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 96px 24px 32px;
    flex-direction: column; gap: 18px; background: var(--thk-forest-teal);
    transform: translateY(-110%); transition: transform .4s cubic-bezier(.2,.8,.2,1); z-index: -1;
  }
  .nav-list.open { transform: none; }
  .nav-list a { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Hero entrance (runs on load, no JS needed) */
.rise { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero-title.rise { animation-delay: .1s; }
.hero-lede.rise { animation-delay: .2s; }
.hero-actions.rise { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
