/* ═══════════════════════════════════════════════════════════
   Knife & Knead — Main Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --color-bg:           #14141c;
  --color-surface:      #1c1c28;
  --color-surface-2:    #242434;
  --color-text:         #f0ebe0;
  --color-text-muted:   #9a9282;
  --color-accent:       #c0392b;
  --color-accent-hover: #a93226;
  --color-border:       #2c2c3e;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --max-w: 1100px;
  --header-h: 70px;
  --radius: 4px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }
button { font-family: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

main { flex: 1; }

.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--color-border); }
.page-hero + .section { padding-top: 48px; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 680px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-text-muted); color: var(--color-text); }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo { display: flex; align-items: center; gap: 16px; }
.site-logo img { height: 44px; width: auto; }
img.site-logo-badge { height: 36px; width: auto; }

/* ── Nav ───────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover { color: var(--color-text); }

.site-nav a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.site-nav a.nav-store {
  color: var(--color-accent);
  border-bottom-color: transparent;
}
.site-nav a.nav-store:hover { color: var(--color-accent-hover); }

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  color: var(--color-text);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.28s, opacity 0.28s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 52px 0 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 36px; width: auto; }
.footer-logo img.site-logo-badge { height: 28px; width: auto; }

.footer-inner address {
  font-style: normal;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.footer-inner address a {
  color: var(--color-text-muted);
}
.footer-inner address a:hover { color: var(--color-text); }

.footer-copy {
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ── Page hero ─────────────────────────────────────────────── */
.page-hero {
  padding: 72px 0 56px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 16px;
}

.page-hero .lead { margin-top: 4px; }

/* ── Home: feature sections ────────────────────────────────── */
.feature-section {
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-inner.reverse { direction: rtl; }
.feature-inner.reverse > * { direction: ltr; }

.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-image:hover img { transform: scale(1.03); }

.feature-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

.feature-text p {
  color: var(--color-text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ── Home: intro hero ──────────────────────────────────────── */
.home-hero {
  padding: 96px 0 80px;
  text-align: center;
}

.home-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.home-hero .tagline {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ── Veteran section ───────────────────────────────────────── */
.veteran-section {
  padding: 80px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.veteran-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.veteran-inner img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.veteran-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.veteran-inner p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ── Testimonial ───────────────────────────────────────────── */
.testimonial-section {
  padding: 80px 0;
}

blockquote.pullquote {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.5;
  position: relative;
  padding: 0 0 0 24px;
}

blockquote.pullquote::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--color-accent);
  line-height: 0;
  position: absolute;
  top: 24px;
  left: 0;
  font-style: normal;
}

blockquote.pullquote::after {
  content: '\201D';
  font-size: 5rem;
  color: var(--color-accent);
  line-height: 0;
  position: absolute;
  bottom: 0;
  right: -80;
  font-style: normal;
}

/* ── About: bios ───────────────────────────────────────────── */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
}

.bio-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}

.bio-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--color-text);
}

.bio-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.owners-photo {
  margin: 56px auto 0;
  max-width: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* ── FAQs ──────────────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}

.faq-item {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--color-border); }

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.faq-answer {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-top: 48px;
}

.contact-info h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.contact-info address {
  font-style: normal;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 2;
}

.contact-info address a { color: var(--color-text-muted); }
.contact-info address a:hover { color: var(--color-text); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-muted); }

.form-group textarea { min-height: 140px; resize: vertical; }

.form-message {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}
.form-message.success { background: #1a3a24; color: #6ee7a0; border: 1px solid #2d6641; display: block; }
.form-message.error   { background: #3a1a1a; color: #f08080; border: 1px solid #6e2929; display: block; }

/* ── Events ────────────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.event-card .event-date {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.event-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.event-card .event-venue {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.event-card .event-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.events-status {
  margin-top: 48px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.events-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-text-muted);
  margin-top: 48px;
}

/* Simple spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────────────────── */
@media (min-width: 769px) {
  :root { --header-h: 100px; }
  .site-logo img { height: 70px; }
  img.site-logo-badge { height: 52px; }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; }
  img.site-logo-badge { height: 36px; }

  .section { padding: 56px 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 15px 24px;
    border-bottom: 1px solid var(--color-border);
    border-bottom-width: 1px !important;
    font-size: 14px;
  }

  .site-nav a.active { border-bottom-width: 1px; color: var(--color-accent); }

  /* Layouts */
  .feature-inner,
  .feature-inner.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .feature-inner.reverse { direction: ltr; }

  .bio-grid { grid-template-columns: 1fr; gap: 24px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .home-hero { padding: 60px 0 48px; }
  .page-hero { padding: 48px 0 36px; }
  .page-hero + .section { padding-top: 36px; }

  .veteran-inner img { width: 70px; height: 70px; }

  blockquote.pullquote { padding: 0 16px; font-size: 1.2rem; }
  blockquote.pullquote::before { font-size: 4rem; top: 16px; }
}
