/* ============================================================
   Coastal Fermentory — shared stylesheet
   Dark & moody craft theme
   ============================================================ */

/* Brand font — Como (Coastal Fermentory logo font) */
@font-face {
  font-family: "Como";
  src: url("../fonts/Como.woff2") format("woff2"),
       url("../fonts/Como.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand: "black and white with a bright secondary color" — the flame */
  --bg: #0e0d0c;
  --bg-soft: #141312;
  --surface: #1a1918;
  --surface-2: #232120;
  --line: rgba(244, 241, 234, 0.12);
  --cream: #f4f1ea;
  --muted: #b0aca3;
  --amber: #f09020;
  --amber-bright: #ffab3c;
  --amber-deep: #e05a28;
  --flame: linear-gradient(115deg, #f0c010 0%, #f09020 48%, #f04a2c 100%);
  --sea: #f09020;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --font-display: "Como", "Outfit", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-bright); }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--amber);
  opacity: 0.7;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-solid { background: var(--flame); color: #171006; }
.btn-solid:hover { filter: brightness(1.12); color: #171006; }

.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(242, 234, 217, 0.35); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-bright); }

.btn svg { width: 16px; height: 16px; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(16, 13, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.7rem 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  font-family: "Como", var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand:hover { color: var(--cream); }
.brand svg { width: 30px; height: 30px; color: var(--amber); flex-shrink: 0; }
.brand span em { font-style: normal; color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav-links a {
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.85;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber-bright); opacity: 1; }
.nav-links .btn { padding: 0.55rem 1.25rem; font-size: 0.85rem; }

/* dropdown */
.has-drop { position: relative; }
.has-drop > a::after { content: " ▾"; font-size: 0.7em; opacity: 0.7; }
.drop {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease 0.15s, transform 0.2s ease 0.15s, visibility 0s linear 0.35s;
  box-shadow: var(--shadow);
  list-style: none;
}
/* invisible bridge so the mouse can cross the gap without closing the menu */
.drop::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 1rem;
}
.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.drop a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.drop a:hover { background: rgba(240, 144, 32, 0.12); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 9rem 0 5rem;
  isolation: isolate;
  overflow: hidden;
}
.hero.hero-sub { min-height: 68vh; padding-bottom: 4rem; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
/* Brand hero — crisp vector hop mark as watermark (home page) */
.hero-brand { background: radial-gradient(90% 120% at 70% 20%, #171614 0%, var(--bg) 60%); }
.hero-brand::after { background: linear-gradient(180deg, rgba(14, 13, 12, 0.2) 0%, rgba(14, 13, 12, 0) 45%, rgba(14, 13, 12, 0.75) 100%); }
.hero-mark {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 56%;
  transform: translateY(-52%);
  width: min(46vw, 700px);
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 720px) {
  .hero-mark { left: 30%; width: 90vw; opacity: 0.3; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 13, 10, 0.55) 0%, rgba(16, 13, 10, 0.25) 40%, rgba(16, 13, 10, 0.94) 100%),
    linear-gradient(100deg, rgba(16, 13, 10, 0.6) 0%, rgba(16, 13, 10, 0) 60%);
}
.hero-content { max-width: 760px; }
.hero-content .kicker { margin-bottom: 1.2rem; }
.hero-content h1 { margin-bottom: 1.3rem; }
.hero-content .lead { margin-bottom: 2.2rem; max-width: 560px; color: rgba(242, 234, 217, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Sections ---------- */

.section { padding: 6.5rem 0; }
.section-tight { padding: 4.5rem 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 3.2rem; }
.section-head .kicker { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }

/* ---------- Location cards ---------- */

.loc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.loc-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  isolation: isolate;
  border: 1px solid var(--line);
}
.loc-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.loc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 13, 10, 0.05) 30%, rgba(16, 13, 10, 0.92) 100%);
  transition: background 0.4s ease;
}
.loc-card:hover img { transform: scale(1.06); }
.loc-card:hover { color: var(--cream); }
.loc-card-body { padding: 1.5rem; width: 100%; }
.loc-card-body .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-bright);
  margin-bottom: 0.5rem;
}
.loc-card-body h3 { margin-bottom: 0.35rem; }
.loc-card-body p { font-size: 0.86rem; color: rgba(242, 234, 217, 0.75); margin-bottom: 0.8rem; }
.loc-card-body .go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.loc-card:hover .go { color: var(--amber-bright); gap: 0.65rem; }
.loc-card .go { transition: gap 0.25s ease; }

/* ---------- Story ---------- */

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.story-copy p { margin-bottom: 1.2rem; color: var(--muted); }
.story-copy p strong { color: var(--cream); font-weight: 600; }
.story-copy .kicker { margin-bottom: 1rem; }
.story-copy h2 { margin-bottom: 1.5rem; }

.story-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.story-photos img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.story-photos img:nth-child(1) { aspect-ratio: 4 / 5; }
.story-photos img:nth-child(2) { aspect-ratio: 4 / 5; margin-top: 2.2rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.4rem;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  background: var(--surface);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--flame);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat span { font-size: 0.83rem; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Info panel (location pages) ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.info-card .kicker { margin-bottom: 1rem; }
.info-card .kicker::before { width: 22px; }
.info-card p { color: var(--muted); font-size: 0.95rem; }
.info-card p b { color: var(--cream); }
.info-card address { font-style: normal; color: var(--muted); }
.info-card address b { color: var(--cream); font-size: 1.05rem; }

.hours { list-style: none; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px dashed rgba(242, 234, 217, 0.12);
  font-size: 0.93rem;
}
.hours li:last-child { border-bottom: none; }
.hours li span:first-child { color: var(--muted); }
.hours li span:last-child { color: var(--cream); font-weight: 500; }
.hours li.closed span:last-child { color: var(--muted); font-weight: 400; }

.perks { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.perk {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--amber-bright);
  border: 1px solid rgba(240, 144, 32, 0.4);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

/* ---------- Gallery ---------- */

.gallery {
  columns: 3;
  column-gap: 1.1rem;
}
.gallery img {
  width: 100%;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* ---------- Menu cards (food pages) ---------- */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.menu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.menu-card:hover { transform: translateY(-5px); border-color: rgba(240, 144, 32, 0.5); }
.menu-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.menu-card-body { padding: 1.3rem 1.5rem 1.6rem; }
.menu-card-body h3 { margin-bottom: 0.3rem; }
.menu-card-body p { font-size: 0.9rem; color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  isolation: isolate;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  padding: 4.2rem 3rem;
  text-align: center;
  border: 1px solid var(--line);
  background: radial-gradient(120% 160% at 50% 0%, rgba(240, 144, 32, 0.16) 0%, rgba(26, 25, 24, 0.6) 55%), var(--surface);
}
.cta-band h2 { margin-bottom: 0.9rem; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 1.8rem; }

/* ---------- Contact / form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-side .kicker { margin-bottom: 1rem; }
.contact-side h2 { margin-bottom: 1.1rem; }
.contact-side p { color: var(--muted); margin-bottom: 1.6rem; }
.contact-side .contact-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.contact-side .contact-line svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; }

form.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.contact-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.contact-form .field-full { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--amber); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 4.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 1rem; max-width: 280px; }
.footer-logo { width: 170px; height: auto; display: block; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; font-size: 0.92rem; color: var(--muted); }
.footer-col li a { color: var(--muted); }
.footer-col li a:hover { color: var(--amber-bright); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .info-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
  .menu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(16, 13, 10, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    font-size: 1.2rem;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: -1;
  }
  .nav-links.open { transform: translateY(0); z-index: 99; }
  .nav-links a { font-size: 1.1rem; }
  .has-drop .drop {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    text-align: center;
  }
  .has-drop > a { display: none; }
  .loc-grid { grid-template-columns: 1fr; }
  .loc-card { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  form.contact-form { grid-template-columns: 1fr; padding: 1.4rem; }
  .hero { min-height: 88vh; padding-top: 7rem; }
  .section { padding: 4.2rem 0; }
  .cta-band { padding: 3rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- BLZN announcement banner ---------- */

.blzn-banner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 1.5rem;
  background: #000;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  padding: 2rem;
}
.blzn-banner img { width: 100%; max-width: 520px; justify-self: center; }
.blzn-banner-panel {
  background: #6db85b;
  border-radius: 22px;
  padding: 2.4rem 2rem;
  text-align: center;
  color: #fff;
}
.blzn-banner-panel h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  color: #fff;
}
.blzn-banner-panel p {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  color: #f3fbef;
}
@media (max-width: 1020px) {
  .blzn-banner { grid-template-columns: 1fr; padding: 1.5rem; }
}

/* keep anchored sections clear of the fixed nav */
[id] { scroll-margin-top: 84px; }

/* ---------- Live draft list (Untappd) ---------- */

.draft-list {
  columns: 2 420px;
  column-gap: 1.4rem;
  min-height: 120px;
}
.draft-section {
  break-inside: avoid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem 0.6rem;
  margin-bottom: 1.4rem;
}
.draft-section h3 {
  font-size: 1.25rem;
  color: var(--amber);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.draft-section ul { list-style: none; }
.draft-item {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.draft-item:last-child { border-bottom: 0; }
.draft-tap {
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 600;
  color: var(--cream);
}
.draft-tap-empty { visibility: hidden; }
.draft-body { min-width: 0; }
.draft-body h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--cream); }
.draft-meta { font-size: 0.85rem; color: var(--muted); line-height: 1.4; margin-top: 0.15rem; }
.draft-meta .draft-style { color: var(--amber-bright); }
.draft-dot { margin: 0 0.4rem; opacity: 0.5; }
.draft-prices { display: flex; gap: 0.9rem; text-align: center; }
.draft-price { display: flex; flex-direction: column; line-height: 1.15; min-width: 2.6rem; }
.draft-price b { font-size: 1rem; color: var(--cream); }
.draft-price small { font-size: 0.68rem; color: var(--muted); max-width: 4.4rem; margin: 0 auto; }
.draft-status { color: var(--muted); column-span: all; }

@media (max-width: 520px) {
  .draft-section { padding: 1.1rem 1.1rem 0.4rem; }
  .draft-item { grid-template-columns: 2rem 1fr; }
  .draft-tap { width: 2rem; height: 2rem; font-size: 0.78rem; }
  .draft-prices { grid-column: 2; gap: 0.8rem; text-align: left; }
}
