/* ────────────────────────────────────────────────────────────────────
   GC Pfalz · shared design system
   Tokens from brand-spec.md · Pfalz Green on warm off-white paper
   ──────────────────────────────────────────────────────────────────── */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --fg: #15201B;
  --muted: #4A5550;
  --border: #E4E2DA;
  --accent: #006838;
  --accent-soft: color-mix(in oklch, var(--accent) 12%, transparent);
  --accent-bright: #00CE6E;
  --accent-warm: #C9A877;
  --accent-warm-soft: #F2E8D5;
  --fg-soft: color-mix(in oklch, var(--fg) 6%, transparent);
  --surface-dark: #0E1614;
  --status-open: #00CE6E;
  --status-warn: #E8A33B;
  --status-closed: #C04B3F;

  --font-display: 'Source Serif 4', 'Iowan Old Style', 'Charter', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-h1: clamp(40px, 6vw, 72px);
  --fs-h2: clamp(28px, 3.6vw, 44px);
  --fs-h3: 22px;
  --fs-lead: 19px;
  --fs-body: 16px;
  --fs-meta: 13px;

  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 56px;
  --gap-2xl: 96px;

  --container: 1200px;
  --gutter: 32px;

  --radius: 8px;
  --radius-lg: 16px;
}

/* ─── reset & base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
p { text-wrap: pretty; margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── primitives ──────────────────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, var(--gap-2xl)); }
.section + .section { border-top: 1px solid var(--border); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: start; }
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
}

/* ─── type ─────────────────────────────────────────────────────────── */
.h1, h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.025em; font-weight: 500; }
.h2, h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }
.h3, h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--gap-md); font-weight: 500; }
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ─── topnav ──────────────────────────────────────────────────────── */
.topnav { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--bg) 92%, transparent); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--border); }
.topnav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; gap: var(--gap-md); }
.topnav .brand { display: flex; align-items: center; gap: 12px; }
.topnav .brand img { width: 44px; height: 55px; }
.topnav .brand .name { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.topnav nav { display: flex; gap: var(--gap-lg); align-items: center; }
.topnav nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
  position: relative;
  padding-block: 6px;
}
.topnav nav a:hover { color: var(--fg); }
.topnav nav a.is-active {
  color: var(--fg);
  font-weight: 500;
}
.topnav nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* hamburger button — visible only on mobile */
.topnav .hamburger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--fg);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}
.topnav .hamburger:hover { border-color: var(--fg); }
.topnav nav .nav-close { display: none; }

/* mobile drawer */
@media (max-width: 920px) {
  .topnav .hamburger { display: inline-flex; }
  .topnav nav .nav-close { display: inline-flex; }
  .topnav .topnav-inner > .btn-primary { display: none; }

  .topnav nav {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg) !important;
    box-shadow: -8px 0 32px rgba(21, 32, 27, 0.18);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 72px 28px 32px;
    transform: translateX(110%);
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
    z-index: 100;
    overflow-y: auto;
  }
  .topnav nav:target { transform: translateX(0); }

  .topnav nav .nav-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 22px;
    color: var(--fg);
    line-height: 1;
  }
  .topnav nav a {
    font-size: 18px;
    padding: 16px 0 16px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--fg);
    text-align: left;
    border-left: 2px solid transparent;
  }
  .topnav nav a.is-active {
    border-left-color: var(--accent);
    color: var(--accent);
    font-weight: 500;
  }
  /* desktop ::after underline doesn't make sense in vertical drawer */
  .topnav nav a.is-active::after { display: none; }
  .topnav nav .nav-close { font-size: 22px; padding: 0; border-bottom: 0; border-left: 0; }
}

/* ─── buttons ─────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent; font-size: 15px; font-weight: 500; letter-spacing: -0.005em; transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in oklch, var(--accent) 88%, black); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 8px; }
.btn-ghost:hover { color: var(--accent); }
.btn-on-dark { background: var(--surface); color: var(--accent); border-color: var(--surface); }
.btn-arrow::after { content: '→'; transition: transform 0.15s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ─── pill / tag ──────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; }

/* ─── card ─────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }

/* ─── page hero ────────────────────────────────────────────────────── */
.page-hero { padding-block: clamp(64px, 8vw, 120px); border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-top: 24px; }

/* ─── form fields ─────────────────────────────────────────────────── */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.form-field input, .form-field textarea, .form-field select {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); font: inherit; font-size: 15px;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.form-field textarea { min-height: 88px; resize: vertical; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } }

/* ─── final cta ───────────────────────────────────────────────────── */
.final-cta { background: var(--surface-dark); color: var(--surface); text-align: center; }
.final-cta h2 { color: var(--surface); max-width: 22ch; margin-inline: auto; }
.final-cta .lead { color: rgba(250, 250, 247, 0.7); margin: 24px auto 36px; }
.final-cta .eyebrow { color: var(--accent-bright); }

/* ─── footer ──────────────────────────────────────────────────────── */
.pagefoot { background: var(--bg); padding-block: 64px 32px; border-top: 1px solid var(--border); }
.pagefoot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--gap-xl); margin-bottom: 48px; }
@media (max-width: 920px) { .pagefoot-grid { grid-template-columns: 1fr; gap: var(--gap-lg); } }
.pagefoot h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.pagefoot a { color: var(--fg); }
.pagefoot a:hover { color: var(--accent); }
.pagefoot .brand-line { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pagefoot .brand-line img { width: 28px; height: 35px; }
.pagefoot .brand-line .name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.pagefoot .contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.pagefoot .hours-table { font-size: 14.5px; line-height: 2; }
.pagefoot .hours-table .col-1 { color: var(--muted); display: inline-block; min-width: 130px; }
.pagefoot .nav-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.pagefoot .bottom-strip { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 16px; }
.pagefoot .legal-links { display: flex; gap: 20px; }
/* ─── footer reservation widget ──────────────────────────────────── */
.veranda-strip {
  background: var(--accent-warm-soft);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  gap: 20px;
  align-items: center;
}
@media (max-width: 780px) {
  .veranda-strip { grid-template-columns: 44px 1fr; row-gap: 16px; }
  .veranda-strip .veranda-cta { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}
.veranda-strip .v-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface); border-radius: 12px;
  color: var(--accent);
}
.veranda-strip .v-icon svg { width: 22px; height: 22px; }
.veranda-strip .v-info .name {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--fg);
}
.veranda-strip .v-info .meta {
  font-size: 13.5px; color: var(--muted); margin-top: 2px;
}
.veranda-strip .v-info .meta a { color: var(--accent); border-bottom: 1px solid color-mix(in oklch, var(--accent) 30%, transparent); }
.veranda-strip .v-hours {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.veranda-strip .v-hours strong { color: var(--fg); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
