/*
Theme Name: Fresh Food Nest Child
Theme URI: https://freshfoodnest.com/
Description: Custom lightweight child theme for Fresh Food Nest, built on GeneratePress.
Author: Fresh Food Nest
Template: generatepress
Version: 1.0.0
Text Domain: fresh-food-nest
*/

/* =========================
   Design tokens
========================= */
:root {
    --ffn-green: #315b3a;
    --ffn-green-dark: #24472d;
    --ffn-green-soft: #edf4ed;
    --ffn-orange: #e58a3a;
    --ffn-orange-dark: #c96e22;
    --ffn-cream: #fffaf2;
    --ffn-white: #ffffff;
    --ffn-text: #263128;
    --ffn-muted: #667068;
    --ffn-border: #e3e9e2;
    --ffn-shadow: 0 12px 35px rgba(36, 71, 45, 0.10);
    --ffn-radius: 18px;
    --ffn-max: 1180px;
}

/* =========================
   GeneratePress cleanup
========================= */
body {
    background: var(--ffn-white);
    color: var(--ffn-text);
}

.site-header,
.site-footer {
    display: none;
}

.site-content {
    padding: 0 !important;
}

.content-area {
    width: 100% !important;
}

.inside-article {
    padding: 0 !important;
}

.entry-content {
    margin: 0 !important;
}

/* =========================
   Global
========================= */
.ffn-container {
    width: min(var(--ffn-max), calc(100% - 40px));
    margin-inline: auto;
}

.ffn-section {
    padding: 76px 0;
}

.ffn-eyebrow {
    margin: 0 0 10px;
    color: var(--ffn-orange-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ffn-section-title {
    margin: 0;
    color: var(--ffn-green-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.ffn-section-intro {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--ffn-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.ffn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--ffn-orange);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ffn-btn:hover,
.ffn-btn:focus {
    background: var(--ffn-orange-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 110, 34, .20);
}

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

.ffn-btn--outline:hover,
.ffn-btn--outline:focus {
    background: var(--ffn-green);
    color: #fff;
}

/* =========================
   Header
========================= */
.ffn-header {
    position: relative;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid var(--ffn-border);
}

.ffn-header__inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ffn-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ffn-green-dark);
    text-decoration: none;
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: -.025em;
}

.ffn-brand:hover,
.ffn-brand:focus {
    color: var(--ffn-green-dark);
}

.ffn-brand__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--ffn-green);
    color: #fff;
    font-size: 1.2rem;
}

.ffn-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.ffn-nav a {
    color: #445048;
    font-size: .93rem;
    font-weight: 700;
    text-decoration: none;
}

.ffn-nav a:hover,
.ffn-nav a:focus {
    color: var(--ffn-orange-dark);
}

.ffn-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ffn-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ffn-green-dark);
    cursor: pointer;
}

/* =========================
   Hero
========================= */
.ffn-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 25%, rgba(229, 138, 58, .10), transparent 30%),
        linear-gradient(135deg, #fffaf2 0%, #ffffff 55%, #edf4ed 100%);
}

.ffn-hero__inner {
    min-height: 610px;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 58px;
    padding: 72px 0;
}

.ffn-hero h1 {
    max-width: 640px;
    margin: 0;
    color: var(--ffn-green-dark);
    font-size: clamp(3rem, 6vw, 5.25rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.ffn-hero__text {
    max-width: 570px;
    margin: 24px 0 30px;
    color: var(--ffn-muted);
    font-size: 1.15rem;
    line-height: 1.75;
}

.ffn-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ffn-hero-card {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border-radius: 30px;
    background: var(--ffn-green);
    box-shadow: var(--ffn-shadow);
}

.ffn-hero-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
}

/* =========================
   Categories
========================= */
.ffn-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ffn-category {
    min-height: 155px;
    padding: 24px;
    border: 1px solid var(--ffn-border);
    border-radius: var(--ffn-radius);
    background: #fff;
    box-shadow: 0 5px 20px rgba(36, 71, 45, .04);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ffn-category:hover,
.ffn-category:focus {
    border-color: rgba(49, 91, 58, .28);
    box-shadow: var(--ffn-shadow);
    transform: translateY(-3px);
}

.ffn-category__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--ffn-green-soft);
    font-size: 1.35rem;
}

.ffn-category h2 {
    margin: 0 0 6px;
    color: var(--ffn-green-dark);
    font-size: 1.08rem;
}

.ffn-category p {
    margin: 0;
    color: var(--ffn-muted);
    font-size: .9rem;
    line-height: 1.5;
}

/* =========================
   Latest recipes
========================= */
.ffn-latest {
    background: #fbfcfa;
}

.ffn-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.ffn-recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ffn-recipe-card {
    overflow: hidden;
    border: 1px solid var(--ffn-border);
    border-radius: var(--ffn-radius);
    background: #fff;
    box-shadow: 0 6px 24px rgba(36, 71, 45, .05);
}

.ffn-recipe-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ffn-green-soft);
}

.ffn-recipe-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

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

.ffn-recipe-card__body {
    padding: 22px;
}

.ffn-recipe-card__meta {
    margin: 0 0 8px;
    color: var(--ffn-orange-dark);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ffn-recipe-card h3 {
    margin: 0;
    color: var(--ffn-green-dark);
    font-size: 1.22rem;
    line-height: 1.25;
}

.ffn-recipe-card h3 a {
    color: inherit;
    text-decoration: none;
}

.ffn-recipe-card p {
    margin: 10px 0 0;
    color: var(--ffn-muted);
    font-size: .92rem;
    line-height: 1.6;
}

/* =========================
   Storage CTA
========================= */
.ffn-storage {
    padding: 82px 0;
}

.ffn-storage__box {
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    overflow: hidden;
    border-radius: 28px;
    background: var(--ffn-green);
    color: #fff;
}

.ffn-storage__content {
    padding: 56px;
}

.ffn-storage .ffn-eyebrow {
    color: #f4bb83;
}

.ffn-storage h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.ffn-storage p {
    max-width: 580px;
    margin: 16px 0 26px;
    color: rgba(255,255,255,.82);
    line-height: 1.7;
}

.ffn-storage__image {
    height: 100%;
    min-height: 320px;
    background: var(--ffn-green-soft);
}

.ffn-storage__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================
   Newsletter
========================= */
.ffn-newsletter {
    background: var(--ffn-cream);
}

.ffn-newsletter__box {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.ffn-newsletter h2 {
    margin: 0;
    color: var(--ffn-green-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.035em;
}

.ffn-newsletter p {
    max-width: 620px;
    margin: 14px auto 25px;
    color: var(--ffn-muted);
    line-height: 1.7;
}

.ffn-newsletter__form {
    display: flex;
    max-width: 610px;
    margin: 0 auto;
    gap: 10px;
}

.ffn-newsletter input[type="email"] {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 17px;
    border: 1px solid #d8dfd7;
    border-radius: 999px;
    background: #fff;
    color: var(--ffn-text);
    outline: none;
}

.ffn-newsletter input[type="email"]:focus {
    border-color: var(--ffn-green);
    box-shadow: 0 0 0 3px rgba(49, 91, 58, .10);
}

/* =========================
   Footer
========================= */
.ffn-footer {
    padding: 38px 0;
    background: var(--ffn-green-dark);
    color: rgba(255,255,255,.78);
}

.ffn-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.ffn-footer__brand {
    color: #fff;
    font-weight: 900;
}

.ffn-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.ffn-footer a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: .9rem;
}

.ffn-footer a:hover,
.ffn-footer a:focus {
    color: #fff;
}

.ffn-footer__copy {
    margin: 0;
    font-size: .82rem;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
    .ffn-hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 35px;
        padding: 55px 0 65px;
    }

    .ffn-hero-card {
        min-height: 360px;
    }

    .ffn-hero-card img {
        min-height: 360px;
    }

    .ffn-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ffn-storage__box {
        grid-template-columns: 1fr;
    }

    .ffn-storage__content {
        padding: 44px 32px;
    }

    .ffn-storage__image {
        min-height: 270px;
    }
}

@media (max-width: 700px) {
    .ffn-container {
        width: min(var(--ffn-max), calc(100% - 28px));
    }

    .ffn-header__inner {
        min-height: 70px;
    }

    .ffn-menu-toggle {
        display: grid;
        place-items: center;
    }

    .ffn-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        border: 1px solid var(--ffn-border);
        border-radius: 16px;
        background: #fff;
        box-shadow: var(--ffn-shadow);
    }

    .ffn-nav.is-open {
        display: flex;
    }

    .ffn-nav a {
        padding: 13px 14px;
        border-radius: 10px;
    }

    .ffn-nav a:hover,
    .ffn-nav a:focus {
        background: var(--ffn-green-soft);
    }

    .ffn-section {
        padding: 58px 0;
    }

    .ffn-hero h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    .ffn-hero__text {
        font-size: 1rem;
    }

    .ffn-category-grid,
    .ffn-recipe-grid {
        grid-template-columns: 1fr;
    }

    .ffn-section-head {
        align-items: start;
        flex-direction: column;
    }

    .ffn-newsletter__form {
        flex-direction: column;
    }

    .ffn-newsletter input[type="email"],
    .ffn-newsletter .ffn-btn {
        width: 100%;
    }

    .ffn-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
