/* ============================================================
   SMASH Catering — Base layer
   Tokens · reset · typography · layout · header · footer · UI
   Brand: rose #dc6874 · ink · warm cream · white
   ============================================================ */

:root {
  /* Palette (sourced from the live SMASH brand) */
  --rose: #dc6874;
  --rose-deep: #c14b58;
  --rose-soft: #f3c9cd;
  --ink: #16110f;
  --ink-soft: #3a312d;
  --paper: #fffcf4;
  --paper-2: #f6efe3;
  --white: #ffffff;
  --line: #e7ddcb;

  /* Semantic */
  --bg: var(--paper);
  --text: var(--ink);
  --muted: #6b6058;
  --accent: var(--rose);

  /* Type */
  --font-display: "Clash Display", "Telegraf", system-ui, sans-serif;
  --font-sans: "General Sans", "Telegraf", system-ui, -apple-system, sans-serif;

  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --text-lg: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  --text-2xl: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);
  --text-hero: clamp(3.4rem, 1.2rem + 9vw, 11rem);

  /* Space */
  --space-section: clamp(5rem, 3.5rem + 6vw, 11rem);
  --gutter: clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  --maxw: 1320px;

  /* Motion */
  --dur: 0.6s;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
  --radius-lg: 32px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.8rem; height: 2px;
  background: var(--rose);
  display: inline-block;
}
.display { font-size: var(--text-2xl); }
.lead { font-size: var(--text-lg); color: var(--ink-soft); line-height: 1.45; }
.muted { color: var(--muted); }
/* Signature SMASH dot — a round rose mark, used after words/sentences.
   Always rose, on cream and ink alike. Use empty <span class="dot"></span>. */
.dot {
  display: inline-block;
  width: 0.16em; height: 0.16em;
  border-radius: 50%;
  background: var(--rose);
  vertical-align: baseline;
  margin-left: 0.08em;
}
.dot--lg { width: 0.2em; height: 0.2em; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.stack > * + * { margin-top: 1.1rem; }
.grid { display: grid; gap: clamp(1.2rem, 0.8rem + 1.6vw, 2.4rem); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.center { text-align: center; }
.measure { max-width: 46ch; }
.measure-wide { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.6em;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease); }
.btn--primary { background: var(--rose); color: var(--white); box-shadow: 0 12px 30px -12px rgba(193, 75, 88, 0.7); }
.btn--primary:hover { background: var(--rose-deep); transform: translateY(-3px); box-shadow: 0 18px 38px -14px rgba(193, 75, 88, 0.8); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { transform: translateY(-3px); background: #000; }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.btn--light { border: 1.5px solid rgba(255,255,255,0.5); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; color: var(--ink);
  border-bottom: 2px solid var(--rose);
  padding-bottom: 2px;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-arrow:hover { gap: 0.9em; color: var(--rose); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: clamp(0.8rem, 0.5rem + 1vw, 1.3rem);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 252, 244, 0.97);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: baseline; gap: 0.04em; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--ink); }
.brand .dot { font-size: 1.1em; line-height: 0; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 0.4rem + 1.6vw, 2.2rem); }
.nav-links a { font-weight: 500; font-size: var(--text-sm); position: relative; padding-block: 0.3em; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--rose); transition: width var(--dur) var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; z-index: 120;
  }
  .nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.4s var(--ease), opacity 0.3s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 110;
    background: var(--paper);
    display: flex; flex-direction: column; justify-content: center; gap: 0.2rem;
    padding: 6rem var(--gutter) 2rem;
    overflow-y: auto;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.6s var(--ease), visibility 0s linear 0.6s;
  }
  .nav-open .mobile-menu { transform: translateY(0); visibility: visible; transition: transform 0.6s var(--ease), visibility 0s; }
  .mobile-menu a { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3.4rem); font-weight: 600; padding-block: 0.2em; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { display: inline-flex; margin-top: 1.4rem; align-self: flex-start; }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2.5rem; }
.site-footer a { color: var(--paper); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 1.5rem + 4vw, 4rem); letter-spacing: -0.03em; line-height: 0.95; }
.footer-brand .dot { color: var(--rose); }
.footer-tag { color: #b6a89c; margin-top: 0.8rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-sans); font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose); margin-bottom: 1.1rem; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #d8cdc0; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: var(--text-xs); color: #897d72; }

/* ---------- Motion reveal defaults ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
.reveal-ready [data-reveal] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Brand logos (real SMASH wordmark) ---------- */
.brand { line-height: 0; }
.brand-logo { display: block; height: clamp(30px, 4.4vw, 44px); width: auto; }
.footer-logo { width: clamp(180px, 30vw, 300px); height: auto; }

/* ---------- WhatsApp floating button (all pages) ---------- */
.wa-fab {
  position: fixed; z-index: 95;
  right: clamp(14px, 2vw, 28px);
  bottom: max(clamp(14px, 2vw, 28px), env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--rose); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 32px -8px rgba(193,75,88,0.55);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.wa-fab:hover { transform: translateY(-4px) scale(1.05); background: var(--rose-deep); }
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--rose); opacity: 0.5; animation: waPulse 2.6s var(--ease) infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.5; } 70% { transform: scale(1.55); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 560px) { .wa-fab { width: 52px; height: 52px; } .wa-fab svg { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { .wa-fab::after { display: none; } }

/* ---------- Gingham (signature rose check) ---------- */
.gingham {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(220,104,116,0.30) 14px 28px),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(220,104,116,0.30) 14px 28px);
}
.gingham-strip { height: 16px; width: 100%; }
.gingham-strip--tall { height: 26px; }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Footer cities (local SEO) ---------- */
.footer-cities { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-cities b { color: var(--rose-soft); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.7rem; display: block; margin-bottom: 0.6rem; }
.footer-cities p { font-size: var(--text-xs); line-height: 1.9; color: #8a7e72; }
