/* ─── TOKENS ─── */
:root {
    --cream: #F5F0E8;
    --bark: #3B2A1A;
    --moss: #4A6741;
    --terra: #B85C38;
    --wheat: #D4A853;
    --muted: #7A6E60;
    --ink: #1E1810;

    --ff-heading: 'Playfair Display', Georgia, serif;
    --ff-body: 'Lora', Georgia, serif;
    --ff-ui: 'DM Sans', system-ui, sans-serif;

    --nav-h: 64px;
    --section-px: clamp(1.25rem, 4vw, 4rem);
    --max-w: 1200px;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--ff-body);
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }
button, input { font: inherit; border: none; outline: none; }

/* ─── NAV ─── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
    background: rgba(30, 24, 16, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}
.nav__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 var(--section-px);
    gap: 2rem;
}
.nav__logo {
    font-family: var(--ff-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.nav__logo-fork {
    font-style: italic;
    color: var(--wheat);
}
.nav__links {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
}
.nav__links a {
    font-family: var(--ff-ui);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s;
}
.nav__links a:hover { color: #fff; }
.nav__cta {
    font-family: var(--ff-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    background: var(--terra);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s;
}
.nav__cta:hover { background: #a04e2e; }

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(175deg, #1a2e1a 0%, #253a22 30%, #2e4830 50%, #1e3320 70%, #162814 100%);
}
.hero__vines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero__content {
    position: relative;
    text-align: center;
    max-width: 720px;
    padding: calc(var(--nav-h) + 2rem) var(--section-px) 3rem;
}
.hero__eyebrow {
    display: inline-block;
    font-family: var(--ff-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wheat);
    margin-bottom: 1.25rem;
}
.hero__title {
    font-family: var(--ff-heading);
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.25rem;
}
.hero__title em {
    font-style: italic;
    color: var(--wheat);
}
.hero__sub {
    font-family: var(--ff-body);
    font-size: 1.125rem;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
}
.hero__search {
    display: flex;
    max-width: 520px;
    margin: 0 auto 1.75rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.hero__search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: transparent;
    color: #fff;
    font-family: var(--ff-ui);
    font-size: 0.9375rem;
}
.hero__search-input::placeholder { color: rgba(255,255,255,0.45); }
.hero__search-btn {
    padding: 0.875rem 1.5rem;
    background: var(--terra);
    color: #fff;
    font-family: var(--ff-ui);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}
.hero__search-btn:hover { background: #a04e2e; }
.hero__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.hero__tag {
    font-family: var(--ff-ui);
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.hero__tag:hover { color: var(--wheat); }
.hero__tag-dot { color: rgba(255,255,255,0.25); font-size: 0.75rem; }

/* ─── CATEGORY STRIP ─── */
.categories {
    background: var(--bark);
    padding: 3.5rem var(--section-px);
}
.categories__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.categories__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1.5rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}
.categories__item:hover { background: rgba(255,255,255,0.06); }
.categories__icon { font-size: 2rem; line-height: 1; }
.categories__name {
    font-family: var(--ff-ui);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
}
.categories__count {
    font-family: var(--ff-ui);
    font-size: 0.75rem;
    color: var(--wheat);
}

/* ─── FEATURED SPOTS ─── */
.featured {
    padding: 5rem var(--section-px);
}
.featured__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.featured__eyebrow {
    display: block;
    font-family: var(--ff-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terra);
    margin-bottom: 0.5rem;
}
.featured__heading {
    font-family: var(--ff-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2.5rem;
}
.featured__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

/* card */
.card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30,24,16,0.1);
}
.card__img {
    height: 200px;
    border-radius: 10px 10px 0 0;
}
.card--wide .card__img { height: 240px; }

/* gradient placeholders */
.card__img--vine   { background: linear-gradient(135deg, #2e4830, #4A6741 50%, #3a5838); }
.card__img--shore  { background: linear-gradient(135deg, #3a6478, #6ba3b5 60%, #4a8090); }
.card__img--farm   { background: linear-gradient(135deg, #7a8a3a, #a5b84a 50%, #8a9a40); }
.card__img--dusk   { background: linear-gradient(135deg, #5a3a50, #a06848 60%, #c0855a); }
.card__img--field  { background: linear-gradient(135deg, #6a5a9a, #8a7ab0 50%, #a08ec0); }
.card__img--harbor { background: linear-gradient(135deg, #2a3a5a, #4a6080 60%, #5a7a98); }

.card__badge {
    position: absolute;
    top: 12px; left: 12px;
    font-family: var(--ff-ui);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    color: #fff;
}
.card__badge--editor { background: var(--terra); }
.card__badge--family { background: var(--moss); }
.card__badge--must   { background: var(--bark); }
.card__badge--new    { background: var(--wheat); color: var(--ink); }
.card__name {
    font-family: var(--ff-heading);
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0.875rem 1rem 0.25rem;
    color: var(--ink);
}
.card__meta {
    font-family: var(--ff-ui);
    font-size: 0.8125rem;
    color: var(--muted);
    padding: 0 1rem 1rem;
}
.card__stars { color: var(--wheat); letter-spacing: 1px; }

/* second row reversal */
.featured__grid .card:nth-child(4) { grid-column: 1; }
.featured__grid .card:nth-child(5) { grid-column: 2; }
.featured__grid .card:nth-child(6) { grid-column: 3; }

/* ─── EVENTS STRIP ─── */
.events {
    background: #fff;
    padding: 5rem var(--section-px);
}
.events__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.events__eyebrow {
    display: block;
    font-family: var(--ff-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terra);
    margin-bottom: 0.5rem;
}
.events__heading {
    font-family: var(--ff-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2rem;
}
.events__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.events__row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.125rem 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(30,24,16,0.06);
    transition: padding-left 0.25s, background 0.2s;
}
.events__row:hover {
    padding-left: 1.75rem;
    background: rgba(245,240,232,0.6);
}
.events__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    background: var(--bark);
    border-radius: 8px;
    flex-shrink: 0;
}
.events__month {
    font-family: var(--ff-ui);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wheat);
}
.events__day {
    font-family: var(--ff-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.events__info { flex: 1; min-width: 0; }
.events__name {
    font-family: var(--ff-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.125rem;
}
.events__detail {
    font-family: var(--ff-ui);
    font-size: 0.8125rem;
    color: var(--muted);
}
.events__pill {
    font-family: var(--ff-ui);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}
.events__pill--wine   { background: #f3e8ea; color: #8a3a4a; }
.events__pill--family  { background: #e8f0e6; color: #3a6a34; }
.events__pill--market  { background: #f0ece0; color: #7a6430; }
.events__pill--music   { background: #e8eaf3; color: #3a3a7a; }

/* ─── MAP TEASER ─── */
.map-teaser {
    background: var(--ink);
    padding: 5rem var(--section-px);
}
.map-teaser__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.map-teaser__heading {
    font-family: var(--ff-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}
.map-teaser__desc {
    font-family: var(--ff-body);
    font-style: italic;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
}
.map-teaser__cta {
    display: inline-block;
    font-family: var(--ff-ui);
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: var(--terra);
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    transition: background 0.2s;
}
.map-teaser__cta:hover { background: #a04e2e; }
.map-teaser__svg {
    width: 100%;
    height: auto;
    opacity: 0.85;
}

/* ─── APP BANNER ─── */
.app-banner {
    background: var(--moss);
    padding: 5rem var(--section-px);
    overflow: hidden;
}
.app-banner__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.app-banner__eyebrow {
    display: inline-block;
    font-family: var(--ff-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wheat);
    margin-bottom: 0.75rem;
}
.app-banner__heading {
    font-family: var(--ff-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}
.app-banner__desc {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}
.app-banner__buttons {
    display: flex;
    gap: 0.75rem;
}
.app-banner__store {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ff-ui);
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.35);
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}
.app-banner__store:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}
.app-banner__visual {
    display: flex;
    justify-content: center;
}
.app-banner__phone {
    width: 200px;
    height: auto;
}

/* ─── FOOTER ─── */
.footer {
    background: #151210;
    padding: 4rem var(--section-px) 0;
    color: rgba(255,255,255,0.5);
}
.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo {
    font-family: var(--ff-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: inline-block;
    margin-bottom: 0.75rem;
}
.footer__logo-fork {
    font-style: italic;
    color: var(--wheat);
}
.footer__tagline {
    font-family: var(--ff-body);
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.4);
    max-width: 280px;
}
.footer__col-title {
    font-family: var(--ff-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}
.footer__list { display: flex; flex-direction: column; gap: 0.625rem; }
.footer__list a {
    font-family: var(--ff-ui);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
}
.footer__list a:hover { color: var(--wheat); }
.footer__bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-family: var(--ff-ui);
    font-size: 0.75rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .nav__links { display: none; }

    .categories__inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured__grid {
        grid-template-columns: 1fr;
    }
    .featured__grid .card:nth-child(n) { grid-column: auto; }
    .card__img, .card--wide .card__img { height: 180px; }

    .events__row { flex-wrap: wrap; gap: 0.75rem; }
    .events__pill { margin-left: auto; }

    .map-teaser__inner,
    .app-banner__inner {
        grid-template-columns: 1fr;
    }
    .map-teaser__visual { order: -1; }
    .app-banner__visual { display: none; }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer__brand { grid-column: 1 / -1; }

    .hero__search { flex-direction: column; }
    .hero__search-btn { padding: 0.875rem; }
}
