/* ============================================================
   Wing Joint — backyard smokehouse & recipe house
   Palette: cream #f6f1e7 / ink #1c1712 / ember #ea5a0b
            bark (footer) #1c1712 / card cream #fffdf8
   Type: Fraunces (display) + Inter (body)
   ============================================================ */

:root {
    --cream: #f6f1e7;
    --card: #fffdf8;
    --ink: #1c1712;
    --ink-soft: #57504a;
    --ember: #ea5a0b;
    --ember-strong: #c2410c; /* darkened for small text & buttons (AA) */
    --ember-dark: #9a3405;
    --bark: #1c1712;
    --line: #ddd3c2;
    --star-empty: #d8cdbc;
    --radius: 6px;
    --shadow-hard: 6px 6px 0 rgba(28, 23, 18, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 16.5px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* ---------- typography ---------- */

h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
}

h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.2rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    margin-bottom: 18px;
}

h3 {
    font-size: 1.35rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ember-strong);
    margin-bottom: 16px;
}

.section-sub {
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto;
}

.lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 540px;
    margin-bottom: 36px;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-block;
    background: var(--ember-strong);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 15px 34px;
    border: 2px solid var(--bark);
    border-radius: var(--radius);
    box-shadow: 4px 4px 0 var(--bark);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:hover {
    background: var(--ember-dark);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--bark);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--bark);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--ember);
    outline-offset: 3px;
}

.btn-small {
    padding: 10px 22px;
    font-size: 0.92rem;
    box-shadow: 3px 3px 0 var(--bark);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: #fff;
}

.btn-wide {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 2px solid var(--ember);
    padding-bottom: 3px;
    transition: color 0.2s ease;
}

.link-arrow:hover {
    color: var(--ember);
}

.link-arrow svg {
    transition: transform 0.2s ease;
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 241, 231, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--bark);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 78px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text em {
    font-style: normal;
    color: var(--ember-strong);
}

.main-nav {
    margin-left: auto;
}

.main-nav ul {
    display: flex;
    gap: 26px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.93rem;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
    border-color: var(--ember);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 2px solid var(--bark);
    border-radius: var(--radius);
    cursor: pointer;
    margin-left: auto;
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 0 auto;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
    background:
        radial-gradient(1000px 500px at 85% 0%, rgba(234, 90, 11, 0.22), transparent 55%),
        var(--bark);
    color: #fff;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 88px 0 72px;
}

.hero .eyebrow {
    color: var(--ember);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-media {
    position: relative;
}

.hero-media img {
    border: 3px solid var(--cream);
    border-radius: var(--radius);
    box-shadow: 10px 10px 0 rgba(234, 90, 11, 0.85);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 11;
    transform: rotate(1.2deg);
}

.hero-badge {
    position: absolute;
    top: -30px;
    right: -18px;
    animation: slow-spin 22s linear infinite;
}

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

.hero-marquee {
    border-top: 2px solid rgba(246, 241, 231, 0.25);
    border-bottom: 2px solid rgba(246, 241, 231, 0.25);
    overflow: hidden;
    padding: 12px 0;
}

.marquee-track {
    display: flex;
    gap: 34px;
    width: max-content;
    animation: marquee 26s linear infinite;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.02rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.marquee-track span:nth-child(even) {
    color: var(--ember);
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
    padding: 92px 0;
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

/* ---------- about ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 68px;
    align-items: center;
}

.about-media {
    position: relative;
}

.about-media img {
    border: 3px solid var(--bark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.about-year {
    position: absolute;
    bottom: -22px;
    right: -16px;
    background: var(--ember-strong);
    color: #fff;
    border: 2px solid var(--bark);
    border-radius: var(--radius);
    box-shadow: 4px 4px 0 var(--bark);
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
}

.about-copy p {
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.tags li {
    background: var(--card);
    border: 2px solid var(--bark);
    border-radius: var(--radius);
    padding: 7px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 3px 3px 0 var(--bark);
}

/* ---------- recipes ---------- */

.recipes {
    background: var(--card);
    border-top: 2px solid var(--bark);
    border-bottom: 2px solid var(--bark);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.recipe-card {
    background: var(--cream);
    border: 2px solid var(--bark);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hard);
    transition: transform 0.2s ease;
}

.recipe-card:hover {
    transform: translate(-3px, -3px);
}

.card-img {
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--bark);
}

.card-img img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    transition: transform 0.35s ease;
}

.recipe-card:hover .card-img img {
    transform: scale(1.06);
}

.card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bark);
    color: var(--cream);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
}

.card-body {
    padding: 20px 20px 24px;
}

.card-body p {
    color: var(--ink-soft);
    font-size: 0.93rem;
    margin-top: 8px;
}

/* ---------- why us ---------- */

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.why-item {
    background: var(--card);
    border: 2px dashed var(--ink);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid var(--bark);
    border-radius: 50%;
    background: rgba(234, 90, 11, 0.12);
    color: var(--ember-strong);
    margin-bottom: 18px;
}

.why-item h3 {
    font-size: 1.15rem;
}

.why-item p {
    color: var(--ink-soft);
    font-size: 0.93rem;
    margin-top: 8px;
}

/* ---------- numbers ---------- */

.numbers {
    background: var(--bark);
    border-top: 2px solid var(--bark);
    border-bottom: 2px solid var(--bark);
    padding: 68px 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}

.number-value {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.6rem, 4.4vw, 3.4rem);
    font-weight: 700;
    color: var(--ember);
    line-height: 1.05;
}

.number-label {
    color: rgba(246, 241, 231, 0.75);
    font-size: 0.93rem;
}

/* ---------- reviews ---------- */

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.review-card {
    background: var(--card);
    border: 2px solid var(--bark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: var(--ember);
}

.stars svg.star-empty {
    fill: var(--star-empty);
}

.review-text {
    color: var(--ink-soft);
    font-size: 0.96rem;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 2px dashed var(--line);
}

.review-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bark);
}

.author-name {
    display: block;
    font-weight: 700;
}

.author-role {
    display: block;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

/* ---------- contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: 64px;
    align-items: start;
}

.contact-info > p {
    color: var(--ink-soft);
    margin-bottom: 28px;
}

.contact-list li {
    padding: 15px 0;
    border-top: 2px dashed var(--line);
}

.contact-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ember-strong);
    margin-bottom: 4px;
}

.contact-list a {
    font-weight: 600;
    border-bottom: 2px solid var(--ember);
    transition: color 0.2s ease;
}

.contact-list a:hover {
    color: var(--ember-strong);
}

.contact-form-wrap {
    background: var(--card);
    border: 2px solid var(--bark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--cream);
    border: 2px solid var(--bark);
    border-radius: var(--radius);
    padding: 12px 15px;
    transition: box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    box-shadow: 3px 3px 0 var(--ember);
    outline: none;
    border-color: var(--bark);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field .invalid {
    border-color: var(--ember-strong);
    background: rgba(234, 90, 11, 0.07);
}

.form-note {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin-top: 14px;
}

/* ---------- footer ---------- */

.site-footer {
    background: var(--bark);
    color: rgba(246, 241, 231, 0.75);
    border-top: 3px solid var(--ember);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.logo-light {
    color: var(--cream);
}

.footer-brand p {
    margin-top: 16px;
    max-width: 320px;
    font-size: 0.94rem;
}

.footer-nav h4 {
    font-family: 'Inter', sans-serif;
    color: var(--cream);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav a {
    font-size: 0.94rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--ember);
}

.footer-bottom {
    border-top: 1px solid rgba(246, 241, 231, 0.15);
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 0.87rem;
}

/* ---------- legal pages ---------- */

.legal-hero {
    background: var(--bark);
    color: #fff;
    padding: 72px 0 56px;
}

.legal-hero .eyebrow {
    color: var(--ember);
}

.legal-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 64px 0 96px;
}

.legal-body h2 {
    font-size: 1.45rem;
    margin-top: 40px;
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p,
.legal-body li {
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.legal-body ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 14px;
}

.legal-body a {
    color: var(--ember-strong);
    border-bottom: 2px solid var(--ember-strong);
    font-weight: 600;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--ink-soft);
    font-style: italic;
    margin-bottom: 34px;
}

/* ---------- modal ---------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(28, 23, 18, 0.66);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    position: relative;
    background: var(--cream);
    border: 3px solid var(--bark);
    border-radius: var(--radius);
    box-shadow: 10px 10px 0 var(--bark);
    max-width: 440px;
    width: 100%;
    padding: 44px 38px 38px;
    text-align: center;
}

.modal h3 {
    font-size: 1.55rem;
    margin: 18px 0 10px;
}

.modal p {
    color: var(--ink-soft);
    margin-bottom: 26px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-soft);
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: var(--line);
}

.modal-icon {
    display: flex;
    justify-content: center;
}

/* ---------- cookie banner ---------- */

.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 90;
    max-width: 360px;
    background: var(--cream);
    border: 2px solid var(--bark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
    padding: 20px 22px;
}

.cookie-banner p {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.cookie-banner strong {
    color: var(--ink);
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-actions .btn {
    box-shadow: 3px 3px 0 var(--bark);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .card-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .hero-inner {
        gap: 48px;
    }
}

@media (max-width: 860px) {
    .header-cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        background: var(--cream);
        border-bottom: 3px solid var(--bark);
        padding: 10px 4% 24px;
        transform: translateY(-135%);
        transition: transform 0.3s ease;
        margin-left: 0;
        z-index: 49;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2px;
    }

    .main-nav a {
        display: block;
        padding: 13px 8px;
        font-size: 1.1rem;
        border-bottom: none;
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: var(--ember-strong);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 56px 0 56px;
    }

    .hero-media {
        order: -1;
    }

    .hero-badge {
        top: -22px;
        right: 6px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 44px;
    }

    .about-year {
        right: 10px;
        bottom: -18px;
    }

    .section {
        padding: 72px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .card-grid,
    .why-grid,
    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .numbers-grid {
        gap: 34px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
