/* =========================================================
   CITYHIKERS Specialty Coffee — styles
   Brand: bold red on white, brutalist / Swiss editorial
   ========================================================= */

:root {
  --red: #e1251b;
  --red-deep: #b81810;
  --ink: #161412;
  --paper: #ffffff;
  --bone: #f6f2ea;      /* warm off-white */
  --line: rgba(22, 20, 18, 0.12);
  --muted: #6f6a63;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;        /* sharp, brutalist */
  --shadow: 0 24px 60px -32px rgba(22, 20, 18, 0.4);

  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.02; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 11vw, 130px); position: relative; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 1em;
}

.section__head { max-width: 640px; margin-bottom: clamp(36px, 6vw, 64px); }
.section__head h2 {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(2.2rem, 6vw, 4rem);
}
.section__sub { color: var(--muted); font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.84rem;
  padding: 0.95em 1.7em; border-radius: var(--radius);
  border: 2px solid var(--ink); cursor: pointer;
  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(--red); border-color: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

.link { color: var(--red); border-bottom: 2px solid rgba(225, 37, 27, 0.3); font-weight: 600; }
.link:hover { border-color: var(--red); }
.muted { color: var(--muted); font-size: 0.85em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-block: 20px;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 0.55em; }
.brand__mark { width: 30px; height: 30px; }
.brand__word {
  font-family: var(--font-head); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; font-size: 1.3rem; color: var(--red);
}

.nav__links { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.nav__links a {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 0.82rem; color: var(--ink);
}
.nav__links a:hover { color: var(--red); }
.nav__cta { color: #fff !important; }
.nav__cta:hover { color: #fff !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s, background 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 120px; padding-bottom: clamp(40px, 8vw, 90px); background: var(--paper); overflow: hidden; }
.hero__vertical {
  position: absolute; left: clamp(8px, 2vw, 28px); top: 50%;
  transform: rotate(180deg) translateY(50%); writing-mode: vertical-rl;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4em; font-size: 0.8rem; color: var(--red);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__splat { width: clamp(56px, 8vw, 92px); margin-bottom: 18px; }
.hero__title {
  font-family: var(--font-head); font-weight: 900; text-transform: uppercase;
  color: var(--red); letter-spacing: -0.03em; line-height: 0.9;
  font-size: clamp(3.2rem, 12vw, 7rem); margin-bottom: 0.25em;
}
.hero__tag { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.15; margin-bottom: 0.7em; }
.hero__lead { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--muted); max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__media::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 2px solid var(--red); border-radius: var(--radius); z-index: -1;
}

/* ---------- Marquee ---------- */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding-block: 16px; }
.marquee__track {
  display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 1.1rem; animation: marquee 26s linear infinite;
}
.marquee__track .dot { opacity: 0.65; font-size: 0.7em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Story ---------- */
.story { background: var(--bone); }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.story__text h2 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.story__text p { color: #45403a; }
.story__points { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 0.7em; }
.story__points li { display: flex; align-items: center; gap: 0.7em; font-weight: 500; }
.story__points span { color: var(--red); font-size: 0.7em; }

/* ---------- Menu (shared) ---------- */
.menu { background: var(--paper); }
.brunch { background: var(--bone); }
.sweet { background: var(--paper); }

.menu__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 30px); }
.menu__cols--2 { grid-template-columns: repeat(2, 1fr); }
.menu__cols--3 { grid-template-columns: repeat(3, 1fr); }

.menu__card {
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brunch .menu__card { background: var(--paper); }
.menu__card:hover { transform: translateY(-5px); box-shadow: 8px 8px 0 var(--red); }
.menu__card h3 {
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.02em; font-size: 1.2rem; color: var(--red);
  padding-bottom: 0.55em; margin-bottom: 0.7em; border-bottom: 2px solid var(--ink);
}
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7em; }
.menu__list li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 8px; }
.menu__list li > span:first-child { font-weight: 600; display: flex; flex-direction: column; }
.menu__list li > span:first-child small { font-weight: 400; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.menu__list li > span:last-child { font-family: var(--font-head); font-weight: 800; color: var(--ink); white-space: nowrap; }
.leader { align-self: end; height: 0; border-bottom: 2px dotted rgba(22, 20, 18, 0.25); transform: translateY(-4px); }

/* ---------- Gallery ---------- */
.gallery { background: var(--bone); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery__grid img { aspect-ratio: 3/4; object-fit: cover; width: 100%; transition: transform 0.5s ease; }
.gallery__grid figure:hover img { transform: scale(1.06); }

/* ---------- Visit ---------- */
.visit { background: var(--paper); }
.visit__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.visit__info h2 { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.visit__lead { color: var(--muted); font-size: 1.08rem; }
.visit__details { display: grid; gap: 1.3em; margin: 2em 0; }
.visit__details dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--red); font-weight: 700; margin-bottom: 0.3em; }
.visit__details dd { margin: 0; font-weight: 500; }
.visit__map { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; min-height: 380px; }
.visit__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding-top: clamp(48px, 7vw, 80px); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-bottom: 40px; align-items: start; }
.footer__splat { width: 44px; margin-bottom: 12px; }
.footer__word { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; color: var(--red); display: block; }
.footer__brand p { margin-top: 0.8em; color: rgba(255, 255, 255, 0.6); font-size: 0.94rem; }
.footer__nav, .footer__social { display: flex; flex-direction: column; gap: 0.7em; }
.footer__nav a, .footer__social a { color: rgba(255, 255, 255, 0.8); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: 0.84rem; letter-spacing: 0.04em; }
.footer__nav a:hover, .footer__social a:hover { color: var(--red); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,0.14); padding-block: 22px; font-size: 0.84rem; color: rgba(255,255,255,0.55); }
.footer__bottom p { margin: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 40px; background: var(--paper);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -30px 0 60px -30px rgba(0,0,0,0.4); border-left: 4px solid var(--red);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; }
  .nav__toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero__grid, .story__grid, .visit__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero__media img { aspect-ratio: 4 / 3; max-height: 44vh; }
  .hero__media::before { display: none; }
  .hero__vertical { display: none; }
  .menu__cols, .menu__cols--2, .menu__cols--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .menu__cols, .menu__cols--2, .menu__cols--3 { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1; justify-content: center; }
}

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