/* Clifton Café & Bakery — sample site. Vanilla CSS, no build step. */

:root {
  --ink: #33261c;
  --ink-2: #4e3b2e;
  --muted: #7a6a5b;
  --line: #e6dcc9;
  --paper: #faf6ef;
  --paper-2: #f3ecdf;
  --brown: #6b4f3a;
  --brown-deep: #4e3626;
  --accent: #b5622f;
  --accent-dark: #96502a;
  --accent-soft: #f3e2d3;
  --leaf: #4a6741;
  --leaf-soft: #e8efe0;
  --amber: #d97706;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(51, 38, 28, 0.05), 0 8px 24px rgba(51, 38, 28, 0.07);
  --shadow-lift: 0 2px 4px rgba(51, 38, 28, 0.06), 0 16px 40px rgba(51, 38, 28, 0.13);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  font-family: var(--font-display);
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-brown { background: var(--brown-deep); color: #fff; }
.btn-brown:hover { background: var(--brown); }
.btn-outline { border-color: var(--brown-deep); color: var(--brown-deep); background: transparent; }
.btn-outline:hover { background: var(--brown-deep); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1.02rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--brown-deep); color: #e5d5c4; font-size: 0.85rem; padding: 0.4rem 0; }
.topbar-inner { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-sep { opacity: 0.5; }
.topbar-right { margin-left: auto; }

/* open-now status (topbar) */
.open-status { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.open-status.is-open::before { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }
.open-status.is-closed::before { background: #f87171; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 16px rgba(51, 38, 28, 0.06); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.75rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { flex: 0 0 auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; line-height: 1.1; }
.brand-name small { display: block; font-size: 0.66rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-body); }

.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a { color: var(--ink-2); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.active { color: var(--accent); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 0.7rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 9px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(181, 98, 47, 0.16), transparent 60%),
    radial-gradient(600px 380px at -10% 110%, rgba(74, 103, 65, 0.12), transparent 55%),
    var(--paper);
  padding: 4rem 0 3.6rem;
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow { color: var(--accent); }
.hero .lede { color: var(--ink-2); font-size: 1.1rem; max-width: 56ch; margin-bottom: 1.4rem; }
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1.05rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
  margin-bottom: 1.3rem;
}
.status-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.status-pill.is-open { color: #3f6212; border-color: #d3e0c2; background: var(--leaf-soft); }
.status-pill.is-open::before { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3); }
.status-pill.is-closed { color: #9a3412; border-color: #ecd3bd; background: var(--accent-soft); }
.status-pill.is-closed::before { background: #f87171; }

/* ---------- Sections ---------- */
.section { padding: 3.6rem 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.03rem; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.55rem;
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.3rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.icon-circle {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem;
}
.icon-circle.leaf { background: var(--leaf-soft); color: var(--leaf); }

/* menu rows */
.menu-section { margin-bottom: 2.6rem; }
.menu-section:last-child { margin-bottom: 0; }
.menu-section > h2 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.menu-section > .menu-note { color: var(--muted); font-size: 0.92rem; margin: 0 0 1rem; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: 0.75rem 0; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: none; }
.mi-line { display: flex; align-items: baseline; gap: 0.6rem; }
.mi-name { font-weight: 700; }
.mi-dots { flex: 1; border-bottom: 2px dotted #d9cbb6; transform: translateY(-4px); }
.mi-price { font-weight: 700; color: var(--brown); white-space: nowrap; }
.mi-desc { color: var(--muted); font-size: 0.9rem; margin: 0.2rem 0 0; }
.mi-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--leaf); background: var(--leaf-soft);
  border-radius: 999px; padding: 0.05rem 0.55rem; margin-left: 0.4rem; vertical-align: middle;
}

/* bake cards */
.bake-day {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 0.12rem 0.7rem; margin-bottom: 0.6rem;
}

/* hours table */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; color: var(--ink-2); }
.hours-table tr.today td { font-weight: 700; color: var(--accent); }
.hours-table tr.today td:first-child::after {
  content: " · today"; font-size: 0.78rem; font-weight: 600;
}

/* reviews */
.stars { color: #d97706; letter-spacing: 0.1em; font-size: 0.95rem; }
.review-card blockquote { margin: 0.4rem 0 0.6rem; color: var(--ink-2); font-size: 0.95rem; }
.review-card figcaption { color: var(--muted); font-size: 0.85rem; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 2.5rem 0; }
.page-hero .breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.page-hero h1 { margin-bottom: 0.4rem; }
.page-hero p { color: var(--muted); max-width: 62ch; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-card {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.contact-card:last-child { border-bottom: none; }
.contact-card .icon-circle { margin-bottom: 0; flex: 0 0 auto; width: 42px; height: 42px; }
.contact-card strong { display: block; margin-bottom: 0.1rem; }
.contact-card p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9rem; }

.form-panel h3 { margin-bottom: 0.9rem; }
.form-panel label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0.8rem 0 0.25rem; }
.form-panel .optional { font-weight: 400; color: var(--muted); }
.form-panel input, .form-panel textarea, .form-panel select {
  width: 100%; padding: 0.65rem 0.8rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.form-panel input:focus, .form-panel textarea:focus, .form-panel select:focus {
  outline: 2px solid var(--accent); border-color: transparent;
}
.form-panel textarea { min-height: 100px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.7rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(181, 98, 47, 0.35), transparent 60%),
    var(--brown-deep);
  color: #fff; padding: 3.2rem 0;
}
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 0.3rem; }
.cta-band p { color: #e5d5c4; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #2c2018; color: #c4b3a0; padding: 2.8rem 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.7rem; }
.site-footer p { font-size: 0.9rem; max-width: 42ch; }
.site-footer h4 { color: #fff; font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.7rem; font-family: var(--font-body); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.18rem 0; font-size: 0.9rem; }
.site-footer a { color: #dccbb8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem; padding-top: 1.1rem; font-size: 0.8rem; color: #8f7d6b;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift); flex-direction: column; gap: 0; padding: 0.5rem 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem 1.5rem; }
  .section { padding: 2.7rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-right { margin-left: 0; width: 100%; }
}
