/* ===========================================================================
   232 SPECIALTY COFFEE SHOP — styles
   Warm paper + sunlight. Mobile-first. No framework, no build step.
   =========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --cream:      #F6EFE4;  /* primary background */
  --cream-deep: #EFE5D4;  /* slightly darker paper for alternating bands */
  --ink:        #2A211B;  /* primary text */
  --terracotta: #C66B3D;  /* primary accent */
  --terracotta-dk: #A8542C;
  --olive:      #7C7A52;  /* secondary accent */
  --caramel:    #D9B382;  /* tints, cards, dividers */
  --caramel-soft:#EAD8BE;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;
  --shadow: 0 18px 50px -28px rgba(42, 33, 27, 0.55);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--cream);
  /* Subtle paper grain — pure CSS, very low opacity, no asset needed. */
  background-image:
    radial-gradient(circle at 18% 22%, rgba(124,122,82,0.05) 0, transparent 40%),
    radial-gradient(circle at 82% 8%, rgba(198,107,61,0.05) 0, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img, iframe { max-width: 100%; display: block; }

/* ---------- Typography helpers ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; }
p { margin: 0 0 1rem; }
a { color: var(--terracotta-dk); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--olive);
  margin: 0 0 1rem;
}

.section-title {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.section-title .accent, .accent { color: var(--terracotta); }
.section-title--center { text-align: center; }

/* Hand-drawn squiggle underline under key headings */
.u-underline { position: relative; white-space: nowrap; }
.u-underline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -0.12em;
  height: 0.5em;
  background: no-repeat center/100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16'%3E%3Cpath d='M2 11 C 40 3, 70 14, 100 8 S 165 2, 198 9' fill='none' stroke='%23C66B3D' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  z-index: -1;
}

/* ---------- Layout ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero, .pillars, .menu, .about, .gallery, .find { padding-inline: var(--pad); }
.pillars__grid, .menu__cols, .about__grid, .gallery__grid, .find__grid,
.hero__grid, .nav__inner, .footer__grid, .menu__head, .menu__foot {
  max-width: var(--maxw); margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.98rem;
  text-decoration: none; cursor: pointer;
  padding: 0.7rem 1.3rem; border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 0.9rem 1.7rem; font-size: 1.05rem; }
.btn--accent { background: var(--terracotta); color: #fff; box-shadow: 0 10px 24px -12px rgba(198,107,61,0.85); }
.btn--accent:hover { background: var(--terracotta-dk); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(42,33,27,0.25); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(42,33,27,0.04); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--olive); outline-offset: 3px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream);
  padding: 0.7rem 1rem; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* =======================================================================
   NAV
   ======================================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 239, 228, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.nav.is-scrolled { border-bottom-color: rgba(217,179,130,0.5); box-shadow: 0 6px 24px -20px rgba(42,33,27,0.8); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem var(--pad);
}
.wordmark { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1; }
.wordmark__num { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; color: var(--terracotta); letter-spacing: -0.02em; }
.wordmark__sub { font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--olive); margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.8rem); }
.nav__links > a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.96rem;
  position: relative; padding: 0.2rem 0;
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--terracotta); transition: width 0.22s ease;
}
.nav__links > a:not(.btn):hover::after { width: 100%; }
.nav__cta { padding: 0.55rem 1.15rem; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--cream-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  animation: fade-in 0.25s ease;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.mobile-menu__links a:not(.btn) {
  font-family: var(--serif); font-size: 2rem; text-decoration: none; color: var(--ink);
}
.mobile-menu__links a:not(.btn):active { color: var(--terracotta); }
.mobile-menu__foot { color: var(--olive); letter-spacing: 0.05em; }

/* =======================================================================
   HERO
   ======================================================================= */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__watermark {
  position: absolute; right: -3vw; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-weight: 700;
  font-size: 48vw; line-height: 0.7; color: var(--caramel);
  opacity: 0.22; letter-spacing: -0.05em; user-select: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 8.5vw, 4.7rem);
  letter-spacing: -0.02em; margin-bottom: 1.3rem;
}
.hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 32ch; color: #4a3d33; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1.6rem; }

.trust-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  font-weight: 600; font-size: 0.92rem; color: #4a3d33;
}
.trust-row li { display: flex; align-items: center; gap: 0.4rem; }
.trust-row__star { color: var(--terracotta); font-size: 1.1rem; }

.hero__photo { min-height: 340px; }

/* =======================================================================
   PHOTO SLOTS (designed placeholders until real photos drop in)
   ======================================================================= */
.photo-slot {
  position: relative; margin: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--caramel-soft), var(--caramel));
  border: 1px solid rgba(166,84,44,0.18);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 220px;
}
.photo-slot::before { /* faint 232 watermark inside every slot */
  content: "232";
  position: absolute; right: -0.1em; bottom: -0.32em;
  font-family: var(--serif); font-weight: 700; font-size: 8rem;
  color: rgba(255,255,255,0.35); letter-spacing: -0.04em; line-height: 1;
}
.photo-slot__paw { font-size: 2rem; opacity: 0.7; filter: saturate(0.8); }
.photo-slot__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.7rem 1rem;
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  background: linear-gradient(transparent, rgba(246,239,228,0.85) 55%);
  text-align: center;
}
.photo-slot--tall { min-height: 420px; }
/* When a real photo is added: give the figure a background-image and these
   placeholder marks are hidden automatically, and the photo covers the slot. */
.photo-slot[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.photo-slot[style*="background-image"]::before,
.photo-slot[style*="background-image"] .photo-slot__paw { display: none; }
/* Caption sits a touch stronger over real photography for legibility. */
.photo-slot[style*="background-image"] .photo-slot__label {
  color: #fff;
  background: linear-gradient(transparent, rgba(42,33,27,0.72) 60%);
}

/* =======================================================================
   PILLARS
   ======================================================================= */
.pillars { background: var(--cream-deep); }
.pillars__grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.pillar {
  background: var(--cream); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; border: 1px solid rgba(217,179,130,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--caramel-soft); font-size: 1.5rem; margin-bottom: 1rem;
}
.pillar h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.pillar p { margin: 0; color: #4a3d33; }

/* =======================================================================
   MENU
   ======================================================================= */
.menu__head { text-align: center; margin-bottom: 2.5rem; }
.menu__intro { max-width: 48ch; margin-inline: auto; color: #4a3d33; }
.menu__cols { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }

.menu-group__title {
  font-size: 1.05rem; font-family: var(--sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--olive);
  padding-bottom: 0.6rem; margin-bottom: 0.4rem;
  border-bottom: 2px solid var(--caramel);
}
.menu-group__title--spaced { margin-top: 2rem; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: 0.7rem 0; border-bottom: 1px dashed rgba(217,179,130,0.7); }
.menu-item:last-child { border-bottom: 0; }
.menu-item__head { display: flex; align-items: baseline; gap: 0.6rem; justify-content: space-between; }
.menu-item__name { font-weight: 600; font-size: 1.05rem; }
.menu-item__price { font-family: var(--serif); font-weight: 600; color: var(--terracotta-dk); white-space: nowrap; }
.menu-item__note { margin: 0.3rem 0 0; font-size: 0.9rem; color: #6a5b4d; font-style: italic; }
.menu-item--signature .menu-item__name { color: var(--ink); }

.tag {
  display: inline-block; vertical-align: middle;
  font-family: var(--sans); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; background: var(--olive);
  padding: 0.12rem 0.5rem; border-radius: 999px; margin-left: 0.35rem;
}
.menu__foot { text-align: center; margin-top: 2.5rem; color: #4a3d33; font-size: 0.95rem; }
.menu__foot em { color: var(--olive); }

/* =======================================================================
   ABOUT
   ======================================================================= */
.about { background: var(--cream-deep); }
.about__grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; align-items: center; }
.about__photo { min-height: 320px; }
.about__copy p { color: #4a3d33; font-size: 1.06rem; }
.about__callout {
  margin: 1.6rem 0 0; padding: 1.2rem 1.4rem 1.2rem 1.6rem;
  background: var(--cream); border-left: 4px solid var(--terracotta);
  border-radius: 0 12px 12px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--ink);
  position: relative;
}
.about__callout-mark { color: var(--terracotta); font-style: normal; margin-right: 0.4rem; }

/* =======================================================================
   GALLERY
   ======================================================================= */
.gallery__grid {
  display: grid; gap: 0.8rem;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 150px;
}
.gallery__item { min-height: 0; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: 1 / -1; }

/* =======================================================================
   FIND US
   ======================================================================= */
.find__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch; }
.find__badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0 0 1.2rem; }

.open-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem;
  background: rgba(124,122,82,0.15); color: var(--olive);
}
.open-badge__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.open-badge.is-open { background: rgba(80,140,70,0.16); color: #3f7a35; }
.open-badge.is-open .open-badge__dot { box-shadow: 0 0 0 0 rgba(63,122,53,0.5); animation: pulse 2s infinite; }
.open-badge.is-closed { background: rgba(168,84,44,0.14); color: var(--terracotta-dk); }
.find__next { font-size: 0.9rem; color: #6a5b4d; }

.find__address { font-style: normal; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 1.2rem; }

.hours { list-style: none; margin: 0 0 1.6rem; padding: 0; max-width: 360px; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0; border-bottom: 1px dashed rgba(217,179,130,0.7);
  font-weight: 500;
}
.hours li.is-today { color: var(--terracotta-dk); font-weight: 700; }
.hours li.is-today span:first-child::after { content: " · azi"; font-weight: 600; color: var(--olive); }

.find__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.2rem; }
.find__phone { font-family: var(--serif); font-size: 1.25rem; margin: 0; }
.find__phone a { text-decoration: none; }

.find__map {
  min-height: 320px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(166,84,44,0.18);
}
.find__map iframe { width: 100%; height: 100%; min-height: 320px; }

/* =======================================================================
   FOOTER
   ======================================================================= */
.footer { background: var(--ink); color: var(--cream); padding: clamp(2.5rem,6vw,4rem) var(--pad) 2rem; }
.footer__grid {
  display: grid; grid-template-columns: 1fr; gap: 1.6rem;
  border-bottom: 1px solid rgba(246,239,228,0.15); padding-bottom: 2rem;
}
.footer__num { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; color: var(--terracotta); line-height: 1; }
.footer__brand p { margin: 0.3rem 0 0; letter-spacing: 0.04em; }
.footer__col p { margin: 0 0 0.6rem; color: rgba(246,239,228,0.8); }
.footer a { color: var(--caramel); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__love { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin: 1.8rem 0 0.3rem; }
.footer__credit { text-align: center; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246,239,228,0.4); margin: 0; }

/* =======================================================================
   SCROLL REVEAL + animations
   ======================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63,122,53,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(63,122,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,122,53,0); }
}

/* =======================================================================
   RESPONSIVE — tablet & up
   ======================================================================= */
@media (min-width: 700px) {
  .pillars__grid { grid-template-columns: repeat(3, 1fr); }
  .menu__cols { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 205px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 920px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .about__grid { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
  .find__grid { grid-template-columns: 0.95fr 1.05fr; }
}

/* =======================================================================
   RESPONSIVE — mobile nav
   ======================================================================= */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}
