/* Demo Bagels — design tokens & layout */

:root {
  --c-bg: #faf6ef;
  --c-bg-alt: #f1ead9;
  --c-ink: #1a1410;
  --c-ink-soft: #4a3f33;
  --c-accent: #b8451f;
  --c-accent-deep: #8a3318;
  --c-gold: #c89a3e;
  --c-rule: rgba(26, 20, 16, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 24px;

  --max: 1180px;
  --gut: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

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

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-rule);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-mark {
  color: var(--c-accent);
  font-size: 28px;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--c-ink-soft);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--c-accent); }
.nav-cta {
  background: var(--c-ink);
  color: var(--c-bg) !important;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--c-accent); color: var(--c-bg) !important; }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 140px) var(--gut) clamp(80px, 12vw, 160px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  color: var(--c-accent);
  font-weight: 600;
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--c-ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--c-ink);
  color: var(--c-bg);
}
.btn-primary:hover {
  background: var(--c-accent);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--c-ink);
  border: 1.5px solid var(--c-rule);
}
.btn-ghost:hover {
  border-color: var(--c-ink);
}
.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* hero rings */
.hero-mark {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--c-accent);
  opacity: 0.18;
  animation: pulse 4s ease-in-out infinite;
}
.ring-1 { width: 60%; height: 60%; }
.ring-2 { width: 80%; height: 80%; animation-delay: 0.4s; opacity: 0.13; }
.ring-3 { width: 100%; height: 100%; animation-delay: 0.8s; opacity: 0.08; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.hero-mark::after {
  content: '';
  width: 35%;
  height: 35%;
  background: radial-gradient(circle at 35% 35%, #e8c890 0%, #b8762a 65%, #6b3d12 100%);
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), inset -8px -12px 24px rgba(0,0,0,0.25);
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { max-width: 280px; margin: 0 auto; }
}

/* sections */
.section {
  padding: clamp(70px, 10vw, 120px) var(--gut);
  max-width: var(--max);
  margin: 0 auto;
}
.section-alt {
  background: var(--c-bg-alt);
  max-width: none;
  margin: 0;
}
.section-alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 70px);
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-lede {
  color: var(--c-ink-soft);
  font-size: 18px;
}

/* menu */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.menu-card {
  background: var(--c-bg);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.menu-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-accent);
  box-shadow: 0 8px 30px rgba(184, 69, 31, 0.08);
}
.menu-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 8px;
}
.menu-card p {
  color: var(--c-ink-soft);
  font-size: 15px;
  margin-bottom: 16px;
  min-height: 2.6em;
}
.menu-card .price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-accent);
  font-size: 18px;
}

/* story */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.story-text p { color: var(--c-ink-soft); margin-bottom: 16px; max-width: 520px; }
.story-text h2 { margin-bottom: 24px; }
.story-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stat {
  background: var(--c-bg);
  border-radius: var(--r-md);
  padding: 28px 22px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  color: var(--c-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--c-ink-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 720px) { .story-grid { grid-template-columns: 1fr; } }

/* locations */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.location {
  border: 1px solid var(--c-rule);
  border-radius: var(--r-md);
  padding: 28px;
  background: var(--c-bg);
}
.location h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.location p {
  color: var(--c-ink-soft);
  font-size: 15px;
  margin-bottom: 14px;
}
.location .hours {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-rule);
  font-size: 14px;
  margin-bottom: 0;
}

/* cta-section */
.cta-section {
  background: var(--c-ink);
  color: var(--c-bg);
  text-align: center;
  padding: clamp(80px, 12vw, 140px) var(--gut);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(250, 246, 239, 0.75);
  font-size: 18px;
  margin-bottom: 32px;
}
.cta-section .btn-primary {
  background: var(--c-accent);
}
.cta-section .btn-primary:hover {
  background: var(--c-bg);
  color: var(--c-ink);
}

/* footer */
.footer {
  background: var(--c-bg-alt);
  padding: 32px var(--gut);
  border-top: 1px solid var(--c-rule);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--c-ink-soft);
}
.footer-meta { opacity: 0.6; }
