/* =========================================================
   Caffeine Extraction — styles
   Palette & type derived from the brand logo
   ========================================================= */

:root {
  --green-900: #2C342D;
  --green-700: #45584A;
  --green-600: #566B58;
  --green-500: #6E8169;
  --cream:     #F5F0E4;
  --cream-50:  #FBF8F0;
  --paper:     #FFFFFF;
  --accent:    #C9A36B;
  --accent-ink:#3A2E15;

  --line: rgba(44, 52, 45, 0.12);
  --shadow-sm: 0 1px 2px rgba(44, 52, 45, 0.06);
  --shadow-md: 0 14px 40px -18px rgba(44, 52, 45, 0.35);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 18px;
  --header-h: 76px;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  color: var(--green-900);
  background: var(--cream-50);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--green-700); color: var(--cream);
  padding: 0.7rem 1.1rem; border-radius: 10px;
  z-index: 100; text-decoration: none; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 1rem;
}

.section { padding-block: var(--section-y); }

.section__head { max-width: 44ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); letter-spacing: -0.02em; }
.section__lede { margin-top: 1.1rem; color: var(--green-600); font-size: 1.075rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--green-700); --btn-fg: var(--cream); }
.btn--primary:hover { background: var(--green-900); border-color: var(--green-900); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--green-900);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--green-900); color: var(--cream); border-color: var(--green-900); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(251, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--green-900);
}
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nav { display: flex; align-items: center; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--green-900);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle-bar { position: relative; }
.nav__toggle-bar::before { position: absolute; top: -6px; }
.nav__toggle-bar::after  { position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after  { transform: translateY(-6px) rotate(-45deg); }

.nav__menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  display: grid;
  gap: 0.25rem;
  padding: 1rem var(--gutter) 1.75rem;
  background: rgba(251, 248, 240, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.nav__menu a {
  display: block;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 0.85rem 0.25rem;
  color: var(--green-900);
}
.nav__menu a.btn { color: var(--cream); margin-top: 0.5rem; text-align: center; }
.nav__menu a.btn--sm { padding: 0.85rem 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem));
  padding-bottom: var(--section-y);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }

.hero__title {
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero__lede {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--green-600);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.25rem, 4vw, 2.75rem);
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  width: fit-content;
}
.hero__meta li { display: grid; gap: 0.15rem; }
.hero__meta strong {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-600);
  font-weight: 600;
}
.hero__meta span { font-size: 1.05rem; font-weight: 500; }

.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(44, 52, 45, 0.18));
}
.hero__media img {
  width: 100%;
  height: clamp(320px, 52vw, 560px);
  object-fit: cover;
}

/* ---------- Intro band ---------- */
.band {
  background: var(--green-700);
  color: var(--cream);
}
.band__inner {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  display: grid;
  gap: 1.25rem;
  max-width: 56rem;
}
.band__statement {
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.85rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
}
.band__sub {
  color: rgba(245, 240, 228, 0.78);
  font-size: 1.075rem;
  max-width: 52ch;
}

/* ---------- Menu ---------- */
.menu__nav {
  position: sticky;
  top: calc(var(--header-h) - 1px);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 0;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--cream-50);
  border-bottom: 1px solid var(--line);
}
.menu__nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--green-700);
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.menu__nav a:hover,
.menu__nav a.is-active {
  background: var(--green-700);
  color: var(--cream);
  border-color: var(--green-700);
}

.menu__cat {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.1rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 64px);
}
.menu__cat:first-of-type { border-top: 0; padding-top: 0; }

.menu__cat-head h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.menu__cat-head p {
  margin-top: 0.6rem;
  color: var(--green-600);
  max-width: 54ch;
}
.tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.menu__cat-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.menu__cat-media img {
  width: 100%;
  height: clamp(200px, 40vw, 320px);
  object-fit: cover;
}

.menu__list { margin: 0; }
.menu__list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.menu__list b {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.menu__list span {
  display: block;
  margin-top: 0.2rem;
  color: var(--green-600);
  font-size: 0.92rem;
  line-height: 1.55;
}

.menu__callout {
  margin-top: 0.4rem;
  padding: 1.1rem 1.4rem;
  background: var(--green-700);
  color: var(--cream);
  border-radius: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
}

.menu__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--green-600);
  font-size: 0.98rem;
  max-width: 60ch;
}

.order-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--green-700);
  color: var(--cream);
  border-radius: var(--radius);
}
.order-cta__text h3 {
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.7rem);
  letter-spacing: -0.01em;
}
.order-cta__text p {
  margin-top: 0.4rem;
  color: rgba(245, 240, 228, 0.8);
  font-size: 0.98rem;
  max-width: 48ch;
}
.order-cta .btn {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.order-cta .btn:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--green-900);
}

/* ---------- Find us ---------- */
.find { background: var(--cream); }
.find__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.find__block { margin-bottom: 2rem; }
.find__block h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green-600);
  margin-bottom: 0.65rem;
}
.find address { font-style: normal; font-size: 1.1rem; line-height: 1.8; }

.hours { border-collapse: collapse; width: 100%; max-width: 30rem; }
.hours th, .hours td {
  text-align: left;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.hours th { font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours__feature th, .hours__feature td { color: var(--green-700); font-weight: 700; }

.find__photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.find__photo img {
  width: 100%;
  height: clamp(260px, 44vw, 460px);
  object-fit: cover;
}

.find__map {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  height: clamp(320px, 50vw, 520px);
}
.find__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map__facade {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  border: 0;
  color: var(--cream);
  font-family: var(--font-head);
  background:
    radial-gradient(circle at 30% 25%, rgba(245, 240, 228, 0.10), transparent 45%),
    linear-gradient(160deg, var(--green-600), var(--green-900));
  transition: filter 0.25s var(--ease);
}
.map__facade:hover { filter: brightness(1.08); }
.map__facade-title { font-size: 1.15rem; font-weight: 700; }
.map__facade-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(245, 240, 228, 0.7);
  font-family: var(--font-body);
}
.map__pin {
  width: 22px;
  height: 22px;
  margin-bottom: 0.6rem;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--accent);
  box-shadow: 0 8px 18px -6px rgba(44, 52, 45, 0.6);
}
.map__pin::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  margin: 7px;
  border-radius: 50%;
  background: var(--green-900);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-700);
  color: var(--cream);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer__brand { display: grid; gap: 1rem; max-width: 36ch; }
.footer__brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer__brand p { font-family: var(--font-head); font-size: 1.2rem; }
.footer__order {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--accent);
  width: fit-content;
}
.footer__order:hover { color: var(--cream); }
.footer__social {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--cream);
  border: 1px solid rgba(245, 240, 228, 0.28);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__social a:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer__cols { display: grid; gap: 2rem; }
.footer__cols h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
  color: rgba(245, 240, 228, 0.7);
}
.footer__cols p { color: rgba(245, 240, 228, 0.9); line-height: 1.9; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.75rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(245, 240, 228, 0.16);
  font-size: 0.9rem;
  color: rgba(245, 240, 228, 0.7);
}
.footer__top { text-decoration: none; font-weight: 600; font-family: var(--font-head); }
.footer__top:hover { color: var(--cream); }

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .menu__list {
    column-count: 2;
    column-gap: clamp(2rem, 5vw, 3.5rem);
  }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1.2fr 1fr; align-items: start; }
}

@media (min-width: 920px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__menu a { padding: 0.55rem 0.95rem; border-radius: 999px; }
  .nav__menu a:not(.btn):hover { background: rgba(44, 52, 45, 0.07); }
  .nav__menu a.btn { margin-top: 0; }

  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .find__grid { grid-template-columns: 0.9fr 1.1fr; }
}

@media (min-width: 980px) {
  .menu__cat {
    grid-template-columns: 0.82fr 1.18fr;
    grid-template-areas:
      "head head"
      "media list";
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }
  .menu__cat--nomedia {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "list";
  }
  .menu__cat-head { grid-area: head; }
  .menu__cat-media {
    grid-area: media;
    position: sticky;
    top: calc(var(--header-h) + 84px);
  }
  .menu__cat-media img { height: clamp(260px, 30vw, 380px); }
  .menu__list { grid-area: list; column-count: 1; }
  .menu__cat--nomedia .menu__list {
    column-count: 2;
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}
