/* ────────────────────────────────────────────────────────────────────
 * JACK — Jack Russell Farm Brewery
 * Site stylesheet — neutral, earthy palette pulled from JRFB brand:
 *   forest green (#0e3d23 / #18602f), barn red (#a8221f), parchment (#f6efdf),
 *   wheat (#d6a85a), dark text (#1b1b1b).
 * Mobile-first; one-column up to 720px, then breakpoints for laptop/desktop.
 * ──────────────────────────────────────────────────────────────────── */

:root {
    --color-forest:  #18602f;
    --color-forest-dark: #0e3d23;
    --color-barn:    #a8221f;
    --color-parchment: #f6efdf;
    --color-wheat:   #d6a85a;
    --color-ink:     #1b1b1b;
    --color-muted:   #5a5a5a;
    --color-rule:    #e3dec9;

    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

    --radius:        8px;
    --shadow-soft:   0 2px 8px rgba(0,0,0,0.08);
    --shadow-strong: 0 10px 30px rgba(0,0,0,0.18);

    --container-max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-parchment);
    line-height: 1.55;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-forest); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; color: var(--color-forest-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.2; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--color-muted); }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--color-forest-dark);
    color: var(--color-parchment);
    border-bottom: 4px solid var(--color-barn);
}
.brand-link { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.brand-link img { border-radius: 50%; background: var(--color-parchment); padding: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.brand-sub { font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.85; }
.site-nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--color-parchment); padding: 0.4rem 0.2rem; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.is-active { border-bottom-color: var(--color-wheat); text-decoration: none; }
.cart-link { background: var(--color-barn); padding: 0.4rem 0.9rem !important; border-radius: var(--radius); }

/* ── Layout ────────────────────────────────────────────────────────── */
.site-main { min-height: 60vh; }
.band {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.band-three {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 720px) {
    .band-three { grid-template-columns: repeat(3, 1fr); }
}
.band-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--color-forest);
}
.band-card a { font-weight: 600; }

.band-cta { text-align: center; background: var(--color-forest-dark); color: var(--color-parchment); border-radius: var(--radius); margin-bottom: 3rem; }
.band-cta h2 { color: var(--color-parchment); }

.band-404 { text-align: center; padding: 5rem 1.5rem; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 60vh;
    display: grid;
    grid-template-rows: 1fr;
    color: white;
    overflow: hidden;
}
.hero-media, .hero-media img, .hero-media video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,61,35,0.30) 0%, rgba(14,61,35,0.75) 100%);
}
.hero-content {
    position: relative; z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
    width: 100%;
}
.hero-content h1 { color: white; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero-content .lede { color: var(--color-parchment); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--color-barn); color: white; }
.btn-primary:hover { background: #8a1c19; color: white; }
.btn-ghost   { background: transparent; color: var(--color-parchment); border: 2px solid var(--color-parchment); }
.btn-ghost:hover { background: var(--color-parchment); color: var(--color-forest-dark); }
.cta-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Event card ────────────────────────────────────────────────────── */
.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
@media (min-width: 720px) {
    .event-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
.event-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex; flex-direction: column;
}
.event-card-media img { aspect-ratio: 16/10; object-fit: cover; }
.event-card-body { padding: 1.25rem; }
.event-when { color: var(--color-muted); font-size: 0.9rem; margin: 0 0 0.5rem; }
.band-cta { padding-bottom: 3rem; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-forest-dark);
    color: var(--color-parchment);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}
.footer-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-col h4 { color: var(--color-wheat); margin-bottom: 0.5em; }
.footer-col a { color: var(--color-parchment); }
.footer-social { list-style: none; padding: 0; margin: 0; }
.footer-social li + li { margin-top: 0.4rem; }
.footer-meta {
    max-width: var(--container-max);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    color: rgba(255,255,255,0.6);
}
