/* =========================================================
   B&B Coffee — "Sticker Board" design tokens
   Bright, bold, hand-stuck-on-a-corkboard energy.
   Pine green is the one constant pulled from the badge mark
   (#006838); everything else is turned up loud on purpose.
   ========================================================= */
:root {
  --pine: #006838;
  --pine-soft: #0C7A44;
  --cream: #FFF7E9;
  --paper: #FFFFFF;
  --sunshine: #FFC53D;
  --coral: #FF5C39;
  --bubblegum: #FF86B0;
  --ink: #17140F;
  --ink-soft: #4A4536;

  --font-display: "Fredoka", sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1220px;
  --radius: 20px;
  --shadow: 7px 7px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* =========================================================
   Type scale
   ========================================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  transform: rotate(-2deg);
}

h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 0.98; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.05; }
h3 { font-size: 1.3rem; }

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hl-pine { color: var(--pine); }
.hl-coral { color: var(--coral); }
.hl-wavy {
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--sunshine);
  text-decoration-thickness: 4px;
  text-underline-offset: 10px;
}

/* =========================================================
   Buttons — hard-shadow "press in" interaction
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-outline { background: var(--paper); color: var(--ink); }
.btn-outline.on-dark { background: var(--sunshine); color: var(--ink); border-color: var(--ink); }
.btn-arrow::after { content: "\2197"; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
}
.brand img { height: 54px; width: 54px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1;
}
.brand-word small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--coral);
  font-weight: 400;
  margin-top: 0.4em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 1.6em; }
.main-nav ul { display: flex; gap: 0.4em; }
.main-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.5em 0.9em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}
.main-nav li:nth-child(1) a:hover, .main-nav li:nth-child(1) a[aria-current="page"] { background: var(--sunshine); border-color: var(--ink); transform: rotate(-2deg); }
.main-nav li:nth-child(2) a:hover, .main-nav li:nth-child(2) a[aria-current="page"] { background: var(--coral); border-color: var(--ink); transform: rotate(2deg); }
.main-nav li:nth-child(3) a:hover, .main-nav li:nth-child(3) a[aria-current="page"] { background: var(--bubblegum); border-color: var(--ink); transform: rotate(-2deg); }
.main-nav li:nth-child(4) a:hover, .main-nav li:nth-child(4) a[aria-current="page"] { background: var(--pine-soft); color: var(--paper); border-color: var(--ink); transform: rotate(2deg); }

.nav-toggle {
  display: none;
  background: var(--sunshine);
  border: 3px solid var(--ink);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    height: calc(100vh - 88px);
    height: calc(100dvh - 88px);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 1.6em;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0.9em; width: 100%; }
  .main-nav a { font-size: 1.3rem; display: block; }
  .nav-toggle { display: flex; }
}

/* =========================================================
   Confetti ticker
   ========================================================= */
.stamp-strip {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  border-top: 3px solid var(--ink);
  overflow: hidden;
  padding: 12px 0;
}
.stamp-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: stamp-scroll 22s linear infinite;
}
@keyframes stamp-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.stamp-track span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.5em 1.1em;
  white-space: nowrap;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
}
.stamp-track span:nth-child(4n+1) { background: var(--sunshine); }
.stamp-track span:nth-child(4n+2) { background: var(--coral); color: var(--paper); }
.stamp-track span:nth-child(4n+3) { background: var(--bubblegum); }
.stamp-track span:nth-child(4n+4) { background: var(--pine-soft); color: var(--paper); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 76px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--ink) 1px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: 0.05;
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { margin: 0.3em 0 0.35em; }
.hero-copy h1 span { display: block; }
.hero-copy .lede { margin-bottom: 2em; }
.hero-actions { display: flex; gap: 1em; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  transform: rotate(-2deg);
  background: var(--paper);
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .seal {
  position: absolute;
  top: -46px;
  right: -46px;
  width: 190px;
  height: 190px;
  filter: drop-shadow(6px 6px 0 var(--ink));
}
.hero-media .seal img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 380px; margin: 40px auto 0; }
  .hero-media .seal { width: 120px; height: 120px; top: -30px; right: -20px; }
}

/* =========================================================
   Favorites — rotated photo stickers
   ========================================================= */
.favorites { padding: 96px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2em;
  margin-bottom: 2.6em;
  flex-wrap: wrap;
}
.section-head h2 { margin-top: 0.3em; }
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.fav-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fav-card:nth-child(4n+1) { transform: rotate(-3deg); }
.fav-card:nth-child(4n+2) { transform: rotate(2deg); }
.fav-card:nth-child(4n+3) { transform: rotate(-2deg); }
.fav-card:nth-child(4n+4) { transform: rotate(3deg); }
.fav-card:hover { transform: rotate(0deg) translateY(-6px); box-shadow: var(--shadow-lg); }
.fav-card .photo { aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 3px solid var(--ink); }
.fav-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.fav-card .caption { padding: 1.1em 1.1em 1.3em; }
.fav-card .caption p {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sunshine);
  display: inline-block;
  padding: 0.3em 0.7em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  margin: 0 0 0.6em;
  transform: rotate(-2deg);
}
.fav-card .caption h3 { font-size: 1.1rem; }

@media (max-width: 980px) {
  .favorites-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .favorites-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .fav-card .caption h3 { font-size: 0.95rem; }
}

/* =========================================================
   Info band (hours + location) — bold pine block, not dark/moody
   ========================================================= */
.info-band {
  background: var(--pine);
  color: var(--cream);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.info-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--cream) 1px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: 0.06;
  pointer-events: none;
}
.info-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.info-band h2 { color: var(--paper); }
.info-band .eyebrow { background: var(--sunshine); color: var(--ink); }

.hours-table { margin-top: 1.6em; }
.hours-table div {
  display: flex;
  justify-content: space-between;
  padding: 0.7em 0;
  border-bottom: 2px dashed rgba(255, 247, 233, 0.35);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.hours-table div.closed { color: rgba(255, 247, 233, 0.55); }
.hours-table div span:first-child { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

.visit-block { margin-top: 1.6em; }
.visit-block address { font-style: normal; font-size: 1.2rem; margin-bottom: 0.5em; line-height: 1.5; font-family: var(--font-display); }
.visit-block a.phone { color: var(--sunshine); text-decoration: none; font-weight: 700; }
.visit-actions { display: flex; gap: 1em; margin-top: 1.8em; flex-wrap: wrap; }

@media (max-width: 860px) {
  .info-band .container { grid-template-columns: 1fr; }
}

/* =========================================================
   Story teaser / block
   ========================================================= */
.story { padding: 100px 0; }
.story .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.story .photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  background: var(--paper);
}
.story .photo img { aspect-ratio: 4/5; object-fit: cover; }
.story blockquote {
  position: relative;
  margin: 0.4em 0 1.4em;
  padding-left: 0.9em;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--ink);
  line-height: 1.28;
  border-left: 5px solid var(--coral);
}
@media (max-width: 860px) {
  .story .container { grid-template-columns: 1fr; }
  .story .photo { order: -1; max-width: 380px; margin: 0 auto; }
}

/* =========================================================
   Page hero (interior pages)
   ========================================================= */
.page-hero {
  padding: 68px 0 60px;
  border-bottom: 3px solid var(--ink);
}
.page-hero h1 { margin-top: 0.4em; }
.page-hero .lede { margin-top: 0.8em; }

/* =========================================================
   Order panel (menu page)
   ========================================================= */
.order-panel {
  background: var(--pine);
  color: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.order-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--cream) 1px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: 0.06;
  pointer-events: none;
}
.order-panel h2 { color: var(--paper); }
.order-panel p { color: rgba(255, 247, 233, 0.9); }
.order-panel .btn-primary { background: var(--sunshine); }
.order-panel .ticket {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  transform: rotate(4deg);
}
.order-panel .ticket .cut { border-top: 2px dashed var(--ink); margin: 12px 0; opacity: 0.4; }
.order-panel .ticket .row { display: flex; justify-content: space-between; padding: 4px 0; }

@media (max-width: 860px) {
  .order-panel { grid-template-columns: 1fr; padding: 40px 28px; }
  .order-panel .ticket { transform: none; }
}

.menu-favorites { padding: 96px 0; }

/* =========================================================
   About page extras
   ========================================================= */
.values { padding: 0 0 100px; }
.values .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.value-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.value-card .mark {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--paper);
  background: var(--coral);
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.value-card:nth-child(2) .mark { background: var(--sunshine); color: var(--ink); }
.value-card:nth-child(3) .mark { background: var(--bubblegum); color: var(--ink); }
.value-card h3 { margin-top: 0.6em; }
.value-card p { margin-top: 0.6em; color: var(--ink-soft); }
@media (max-width: 780px) {
  .values .container { grid-template-columns: 1fr; }
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid { padding: 24px 0 100px; }
.contact-grid .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-grid .container > div { min-width: 0; }
.contact-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-card + .contact-card { margin-top: 24px; }
.contact-card h3 { margin-bottom: 0.9em; }
.contact-detail { display: flex; gap: 1em; padding: 0.7em 0; border-bottom: 2px dashed rgba(23, 20, 15, 0.15); }
.contact-detail:last-child { border-bottom: none; }
.contact-detail dt {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral);
  width: 90px;
  flex-shrink: 0;
  padding-top: 0.2em;
}
.contact-detail dd { margin: 0; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.contact-detail a { text-decoration: none; color: var(--pine); font-weight: 700; }
.contact-detail a:hover { text-decoration: underline; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--ink);
  aspect-ratio: 4/3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1.2em; }
.form-row { display: flex; flex-direction: column; gap: 0.5em; }
.form-row label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--pine);
  outline: none;
  box-shadow: 3px 3px 0 var(--pine);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; }

@media (max-width: 860px) {
  .contact-grid .container { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--pine);
  color: var(--cream);
  padding: 68px 0 32px;
  border-top: 4px solid var(--ink);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 2px dashed rgba(255, 247, 233, 0.3);
}
.footer-brand { display: flex; align-items: center; gap: 0.8em; margin-bottom: 1em; }
.footer-brand img { height: 48px; width: 48px; border-radius: 50%; border: 2px solid var(--cream); }
.footer-brand span { font-family: var(--font-display); font-size: 1.2rem; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sunshine);
  margin-bottom: 1em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7em; }
.footer-col a { text-decoration: none; color: rgba(255, 247, 233, 0.9); }
.footer-col a:hover { color: var(--paper); text-decoration: underline; }
.footer-col p { color: rgba(255, 247, 233, 0.9); margin: 0 0 0.5em; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 247, 233, 0.6);
  flex-wrap: wrap;
  gap: 1em;
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* =========================================================
   Floating order button
   ========================================================= */
.order-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 96px;
  height: 96px;
  text-decoration: none;
  filter: drop-shadow(6px 6px 0 var(--ink));
  transition: transform 0.2s ease;
}
.order-fab:hover { transform: scale(1.06) rotate(-4deg); }
.order-fab .ring { width: 100%; height: 100%; animation: spin 13s linear infinite; }
.order-fab .hub {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
}
@media (max-width: 640px) {
  .order-fab {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 58px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--coral);
    border-top: 3px solid var(--ink);
    filter: none;
  }
  .order-fab .ring { display: none; }
  .order-fab .hub {
    position: static;
    width: auto;
    height: auto;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
  }
  .order-fab .hub::before { content: "Order Online"; margin-right: 0.6em; }
  body { padding-bottom: 58px; }
}

/* =========================================================
   Misc
   ========================================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pine);
  color: var(--paper);
  padding: 1em 1.4em;
  z-index: 100;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

section { position: relative; }
