/* ============================================================
   Wingcraft — chicken wing recipe studio
   Palette: paper #fff / ink #161616 / accent #ff194a
            deep teal #15363A / footer #222
   Type: Jost
   ============================================================ */

:root {
    --paper: #ffffff;
    --ink: #161616;
    --ink-soft: #4d4d4d;
    --accent: #ff194a;
    --accent-strong: #d50e3b; /* same red, darkened for small text & buttons (4.5:1) */
    --accent-dark: #b00c31;
    --teal: #15363A;
    --footer-bg: #222222;
    --line: #e8e4e0;
    --cream: #faf7f2;
    --radius: 14px;
    --shadow: 0 18px 45px rgba(22, 22, 22, 0.09);
}

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

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 17px;
    -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 helpers ---------- */

h1, h2, h3, h4 {
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.9rem);
    margin-bottom: 22px;
}

h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    margin-bottom: 18px;
}

h3 {
    font-size: 1.25rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 14px;
}

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

.lead {
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 540px;
    margin-bottom: 34px;
}

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

.btn {
    display: inline-block;
    background: var(--accent-strong);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 34px;
    border: 2px solid var(--accent-strong);
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn:active {
    transform: translateY(1px);
}

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

.btn-small {
    padding: 10px 24px;
    font-size: 0.92rem;
}

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

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

.btn-wide {
    width: 100%;
}

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

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

.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(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

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

.nav-link {
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--ink-soft);
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.burger span {
    display: block;
    width: 24px;
    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(900px 480px at 88% -10%, rgba(255, 25, 74, 0.07), transparent 60%),
        var(--cream);
    padding: 84px 0 96px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-meta {
    display: flex;
    gap: 40px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.hero-meta strong {
    display: block;
    font-size: 1.5rem;
    color: var(--ink);
    font-weight: 700;
}

.hero-media {
    position: relative;
}

.hero-media::before {
    content: '';
    position: absolute;
    inset: -18px 18px 18px -18px;
    border: 2px solid var(--accent);
    border-radius: 24px;
    z-index: 0;
}

.hero-media img {
    position: relative;
    z-index: 1;
    border-radius: 24px;
    box-shadow: var(--shadow);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 11;
}

/* ---------- generic section ---------- */

.section {
    padding: 96px 0;
}

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

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

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

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

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

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

.tags li {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.recipes {
    background: var(--cream);
}

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

.recipe-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(22, 22, 22, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

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

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

.card-img {
    overflow: hidden;
}

.card-body {
    padding: 22px 22px 26px;
}

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

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

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

.why-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: border-color 0.25s ease;
}

.why-item:hover {
    border-color: var(--accent);
}

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 25, 74, 0.08);
    color: var(--accent);
    margin-bottom: 20px;
}

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

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

.numbers {
    background: var(--teal);
    padding: 72px 0;
}

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

.number-value {
    display: block;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.number-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

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

.reviews {
    background: var(--cream);
}

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

.review-card {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: 0 8px 26px rgba(22, 22, 22, 0.06);
    display: flex;
    flex-direction: column;
}

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

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

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

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

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.review-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

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

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

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

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

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

.contact-list li {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.contact-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 4px;
}

.contact-list a {
    border-bottom: 1px solid var(--accent);
    transition: color 0.2s ease;
}

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

.contact-form-wrap {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 38px;
}

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

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

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

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 16px;
    transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent);
}

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

.form-field .invalid {
    border-color: var(--accent);
    background: rgba(255, 25, 74, 0.04);
}

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

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

.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.78);
    padding: 64px 0 0;
}

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

.logo-light {
    color: #fff;
}

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

.footer-nav h4 {
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    padding-bottom: 22px;
    font-size: 0.88rem;
}

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

.legal-hero {
    background: var(--cream);
    padding: 72px 0 56px;
}

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

.legal-body h2 {
    font-size: 1.4rem;
    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(--accent-strong);
    border-bottom: 1px solid var(--accent-strong);
}

.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(22, 22, 22, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal {
    position: relative;
    background: #fff;
    border-radius: 18px;
    max-width: 440px;
    width: 100%;
    padding: 44px 38px 38px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

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

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

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    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(--cream);
}

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

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

.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 90;
    max-width: 360px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    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;
}

/* ============================================================
   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: 44px;
    }
}

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

    .burger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 10px 4% 24px;
        transform: translateY(-130%);
        transition: transform 0.3s ease;
        margin-left: 0;
        z-index: 49;
    }

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

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

    .main-nav a {
        display: block;
        padding: 12px 8px;
        font-size: 1.1rem;
    }

    .nav-link::after {
        display: none;
    }

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

    .hero {
        padding: 56px 0 72px;
    }

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

    .hero-media {
        order: -1;
    }

    .about-grid {
        gap: 40px;
    }

    .section {
        padding: 72px 0;
    }

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

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

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .card-grid,
    .why-grid,
    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .numbers-grid {
        gap: 36px;
    }

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

    .contact-form-wrap {
        padding: 26px 20px;
    }

    .hero-meta {
        gap: 24px;
    }

    .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;
    }
}
