/* ============================================================
   Crema — Café / bakery template
   Daytime hospitality · Warm cream + espresso + caramel
   Young Serif (display) + Karla (body)

   ────────────────────────────────────────────────
   ─── TO REBRAND ───
   Edit the variables in :root below.
   --espresso, --caramel, --cream drive the palette.
   --font-display / --font-body drive the type system.
   Best for cafés, espresso bars, bakeries, brunch spots,
   tearooms and delis. Warm, rounded, menu-led.
   Evening venues should use lumen instead.
   ────────────────────────────────────────────────
   ============================================================ */

:root {
  --espresso: #2c2017;
  --espresso-2: #54453a;
  --cream: #f7f1e6;
  --cream-2: #efe5d3;
  --milk: #fffdf8;
  --caramel: #b06c33;
  --caramel-deep: #8f5526;
  --crust: #d9a566;
  --muted: #8a7a69;
  --line: #e3d7c4;
  --radius: 20px;
  --container: 1200px;
  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Karla", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16.5px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* Type */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.06; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 6.2vw, 84px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: 22px; }
p { margin: 0; }
.lead { font-size: 18px; color: var(--espresso-2); max-width: 54ch; line-height: 1.7; }
.eyebrow { font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--caramel); font-weight: 700; }
.ital { font-style: italic; color: var(--caramel); }

/* Nav */
.nav { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { font-family: var(--font-display); font-size: 27px; color: var(--espresso); display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--espresso); color: var(--cream); display: grid; place-items: center; font-size: 17px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { font-size: 14.5px; font-weight: 700; color: var(--espresso-2); padding: 9px 14px; border-radius: 999px; transition: all .15s; }
.nav-links a:hover { background: var(--cream-2); color: var(--espresso); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-hours { text-align: right; font-size: 12.5px; font-weight: 700; color: var(--espresso-2); line-height: 1.35; }
.nav-hours .sub { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--caramel); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--espresso); border-radius: 999px; padding: 8px 16px; color: var(--espresso); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 28px; border-radius: 999px; font-size: 14.5px; font-weight: 700; background: transparent; color: var(--espresso); border: 1.5px solid var(--espresso); transition: all .16s; }
.btn:hover { background: var(--espresso); color: var(--cream); }
.btn-fill { background: var(--espresso); color: var(--cream); }
.btn-fill:hover { background: var(--caramel-deep); border-color: var(--caramel-deep); }
.btn-caramel { background: var(--caramel); border-color: var(--caramel); color: var(--milk); }
.btn-caramel:hover { background: var(--caramel-deep); border-color: var(--caramel-deep); color: var(--milk); }

/* Hero */
.hero { padding: 72px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow { display: block; margin-bottom: 20px; }
.hero h1 { margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 30px; display: flex; gap: 12px; align-items: center; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.hero-note .dot { width: 9px; height: 9px; border-radius: 50%; background: #5d9b62; }
.hero-figure { position: relative; }
.hero-figure .ph { aspect-ratio: 4/4.6; border-radius: var(--radius) var(--radius) 200px 200px; background: var(--cream-2) center/cover; overflow: hidden; }
.hero-figure .badge { position: absolute; left: -18px; bottom: 36px; background: var(--milk); border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; box-shadow: 0 18px 40px -22px rgba(44,32,23,0.4); font-size: 13px; font-weight: 700; }
.hero-figure .badge strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 19px; }

/* Ticker band */
.ticker-band { background: var(--espresso); color: var(--cream); padding: 16px 0; overflow: hidden; }
.ticker-band .row { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; font-family: var(--font-display); font-size: 16px; }
.ticker-band .row span em { font-style: normal; color: var(--crust); }

/* Sections */
.section { padding: 96px 0; }
.section.milk { background: var(--milk); }
.section.dark { background: var(--espresso); color: var(--cream); }
.section.dark .eyebrow { color: var(--crust); }
.section.dark .lead { color: #cbbba8; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Menu preview cards */
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.menu-card { background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 34px; }
.section.milk .menu-card { background: var(--cream); }
.menu-card h3 { font-size: 26px; margin-bottom: 6px; }
.menu-card .sub { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--caramel); margin-bottom: 22px; }
.menu-item { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item .name { font-weight: 700; }
.menu-item .desc { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.menu-item .dots { flex: 1; }
.menu-item .price { font-family: var(--font-display); font-size: 17px; white-space: nowrap; }
.menu-cta { text-align: center; margin-top: 40px; }

/* Full menu page */
.menu-section { margin-bottom: 64px; }
.menu-section:last-child { margin-bottom: 0; }
.menu-section > h2 { margin-bottom: 8px; }
.menu-section > .note { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.menu-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-figure { border-radius: var(--radius); aspect-ratio: 5/4; background: var(--cream-2) center/cover; }
.split h2 { margin: 14px 0 18px; }
.split ul { margin: 22px 0 0; padding: 0; list-style: none; }
.split li { padding: 9px 0 9px 30px; position: relative; font-weight: 700; color: var(--espresso-2); }
.split li::before { content: ""; position: absolute; left: 0; top: 17px; width: 14px; height: 14px; border-radius: 50%; background: var(--crust); }

/* Values / why cards */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.section.milk .value { background: var(--cream); }
.value .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; color: var(--caramel-deep); margin-bottom: 18px; }
.value .ico svg { width: 24px; height: 24px; }
.value h3 { margin-bottom: 10px; }
.value p { font-size: 15px; color: var(--espresso-2); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.review .stars { color: var(--caramel); letter-spacing: 3px; font-size: 14px; }
.review p { font-size: 15.5px; color: var(--espresso-2); font-style: italic; }
.review .who { font-weight: 700; font-size: 14px; margin-top: auto; }
.review .who small { display: block; font-weight: 400; color: var(--muted); }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.person .ph { aspect-ratio: 1/1.05; border-radius: var(--radius) var(--radius) 140px 140px; background: var(--cream-2) center/cover; margin-bottom: 16px; }
.person h3 { font-size: 20px; }
.person .role { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--caramel); margin: 4px 0 8px; }
.person p { font-size: 14.5px; color: var(--espresso-2); }

/* Hours + visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 22px; }
.hours-table td { padding: 12px 0; border-bottom: 1px dashed var(--line); font-weight: 700; }
.hours-table td:last-child { text-align: right; font-family: var(--font-display); }
.hours-table tr.today td { color: var(--caramel-deep); }
.map-ph { border-radius: var(--radius); aspect-ratio: 5/4; background: var(--cream-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--espresso-2); }
.form input, .form select, .form textarea { font: inherit; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--milk); color: var(--espresso); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--caramel); }
.form textarea { min-height: 130px; resize: vertical; }

/* CTA strip */
.cta-strip { background: var(--caramel); color: var(--milk); padding: 72px 0; border-radius: var(--radius); }
.cta-strip .inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 0 56px; }
.cta-strip h2 { color: var(--milk); }
.cta-strip p { color: #f4dfc8; margin-top: 10px; }
.cta-strip .btn { border-color: var(--milk); color: var(--milk); }
.cta-strip .btn:hover { background: var(--milk); color: var(--caramel-deep); }

/* Page banner */
.page-banner { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-banner .eyebrow { display: block; margin-bottom: 14px; }
.page-banner p { margin-top: 16px; }

/* Footer */
.footer { background: var(--espresso); color: #cbbba8; padding: 72px 0 36px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #463a2e; }
.footer .logo { color: var(--cream); font-size: 24px; }
.footer .logo-mark { background: var(--caramel); color: var(--milk); }
.footer-brand p { font-size: 14.5px; margin-top: 16px; max-width: 32ch; }
.footer h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crust); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer a:hover { color: var(--cream); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: #8a7a69; }

/* ── Signature motion (all gated: classes only added by JS when
      prefers-reduced-motion is not set; static page otherwise) ── */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }

.ticker-band.marquee .wrap { max-width: none; padding: 0; overflow: hidden; }
.ticker-band.marquee .marquee-track { display: flex; width: max-content; gap: 48px; animation: crema-marquee 32s linear infinite; }
.ticker-band.marquee .row { flex-wrap: nowrap; justify-content: flex-start; gap: 48px; }
.ticker-band.marquee .row span { white-space: nowrap; }
@keyframes crema-marquee { to { transform: translateX(calc(-50% - 24px)); } }

.steam { position: absolute; top: 8%; left: 50%; pointer-events: none; }
.steam i { position: absolute; bottom: 0; left: 0; width: 15px; height: 42px; border-radius: 50%; background: rgba(255, 253, 248, 0.85); filter: blur(7px); opacity: 0; animation: crema-steam 4.4s ease-in-out infinite; }
.steam i:nth-child(2) { left: 20px; height: 34px; animation-delay: 1.5s; }
.steam i:nth-child(3) { left: -18px; height: 30px; animation-delay: 2.7s; }
@keyframes crema-steam {
  0% { transform: translateY(14px) scaleX(1); opacity: 0; }
  30% { opacity: 0.9; }
  100% { transform: translateY(-72px) translateX(8px) scaleX(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .ticker-band.marquee .marquee-track, .steam i { animation: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .menu-cols, .visit-grid, .menu-grid-2 { grid-template-columns: 1fr; }
  .values, .reviews, .team { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-hours { display: none; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hero-figure .badge { left: 12px; }
}
@media (max-width: 640px) {
  .values, .reviews, .team { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-strip .inner { padding: 0 28px; }
  .section { padding: 72px 0; }
}

/* ── Safari-safe selects ─────────────────────────────────────────────
   Safari ignores padding/height/width on a native <select> unless
   appearance is reset, which is why the dropdown rendered as a tiny
   default-styled control. Resetting appearance restores the field's own
   sizing; the caret is redrawn with currentColor so it matches each
   field's text colour on any theme. */
.form select, .field select, .book-card select,
.booking select, .reserve-form select, .shop-results-head select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
