/* =========================================================
   MealsAll.com
   Main Website Stylesheet
   Visual Identity — Clean Food / Warm Neutral / Orange Accent
   ========================================================= */


/* =========================================================
   Brand Variables
   ========================================================= */

:root {
    --color-white: #ffffff;
    --color-background: #fffdf9;
    --color-cream: #f8f4ee;
    --color-cream-dark: #f1ebe3;

    --color-text: #292524;
    --color-text-soft: #6b6560;
    --color-text-muted: #8a837c;

    --color-border: #e8e2dc;
    --color-border-light: #eee9e3;

    --color-orange: #e86a2a;
    --color-orange-dark: #c94f16;
    --color-orange-light: #fff1e8;

    --color-footer: #211f1d;

    --shadow-card: 0 10px 30px rgba(41, 37, 36, 0.06);
    --shadow-card-hover: 0 16px 38px rgba(41, 37, 36, 0.09);
}


/* =========================================================
   Base
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text);
    white-space: nowrap;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--color-orange);
    color: var(--color-white);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    color: var(--color-text-soft);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--color-orange);
}

.header-search {
    display: flex;
    align-items: center;
}

.header-search a {
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-soft);
    font-size: 0.9rem;
    font-weight: 600;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.header-search a:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
    padding: 72px 0 64px;
    background: var(--color-white);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 55px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--color-orange-light);
    color: var(--color-orange-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 20px;
    max-width: 700px;
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--color-text);
}

.hero-text {
    max-width: 650px;
    margin: 0 0 28px;
    color: var(--color-text-soft);
    font-size: 1.1rem;
}

.hero-search {
    display: flex;
    max-width: 640px;
    margin-bottom: 18px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 17px;
    border: 1px solid var(--color-border);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 1rem;
    outline: none;
}

.hero-search input:focus {
    border-color: var(--color-orange);
}

.hero-search button {
    height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: var(--color-orange);
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-search button:hover {
    background: var(--color-orange-dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.btn-primary {
    background: var(--color-orange);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-orange-dark);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero-card-image {
    min-height: 280px;
    display: grid;
    place-items: center;
    background: var(--color-cream);
    color: var(--color-orange-dark);
    font-size: 4rem;
}

.hero-card-content {
    padding: 24px;
}

.hero-card-content h2 {
    margin: 8px 0 10px;
    font-size: 1.6rem;
    line-height: 1.2;
}

.hero-card-content h2 a:hover {
    color: var(--color-orange);
}

.hero-card-content p {
    margin: 0 0 16px;
    color: var(--color-text-soft);
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}


/* =========================================================
   Advertisement Placeholder
   ========================================================= */

.ad-slot {
    width: 100%;
    min-height: 90px;
    margin: 28px 0;
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--color-cream);
    color: var(--color-text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================================
   Sections
   ========================================================= */

.section {
    padding: 70px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--color-text-soft);
}

.text-link {
    color: var(--color-orange-dark);
    font-weight: 800;
    white-space: nowrap;
}

.text-link:hover {
    color: var(--color-orange);
}


/* =========================================================
   Recipe Grid
   ========================================================= */

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.recipe-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.recipe-card:hover {
    transform: translateY(-3px);
    border-color: #dfd7cf;
    box-shadow: var(--shadow-card-hover);
}

.recipe-image {
    min-height: 210px;
    display: grid;
    place-items: center;
    background: var(--color-cream);
    color: var(--color-orange-dark);
    font-size: 3.2rem;
}

.recipe-card-body {
    padding: 20px;
}

.category-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--color-orange-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.recipe-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.recipe-card h3 a:hover {
    color: var(--color-orange);
}

.recipe-card p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.94rem;
}


/* =========================================================
   Categories
   ========================================================= */

.categories-section {
    background: var(--color-cream);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    display: block;
    padding: 22px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #ddd5cd;
    box-shadow: var(--shadow-card);
}

.category-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--color-orange-light);
    color: var(--color-orange-dark);
    font-size: 1.15rem;
}

.category-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.category-card p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.9rem;
}


/* =========================================================
   Newsletter
   ========================================================= */

.newsletter-section {
    padding: 70px 0;
    background: var(--color-white);
}

.newsletter-card {
    padding: 42px;
    border-radius: 20px;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-align: center;
}

.newsletter-card h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
}

.newsletter-card p {
    max-width: 650px;
    margin: 0 auto 24px;
    color: var(--color-text-soft);
}

.newsletter-form {
    max-width: 650px;
    margin: 0 auto;
}

.newsletter-form-row {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: var(--color-white);
    color: var(--color-text);
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--color-text-muted);
}

.newsletter-form input:focus {
    border-color: var(--color-orange);
}

.newsletter-form button {
    min-width: 120px;
    border: 0;
    border-radius: 9px;
    background: var(--color-orange);
    color: var(--color-white);
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--color-orange-dark);
}

.newsletter-note {
    margin-top: 12px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    padding: 55px 0 25px;
    background: var(--color-footer);
    color: #e7e5e4;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    max-width: 450px;
    color: #aaa39c;
}

.site-footer .logo {
    color: var(--color-white);
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--color-white);
    font-size: 1rem;
}

.site-footer a {
    display: block;
    margin-bottom: 9px;
    color: #aaa39c;
}

.site-footer a:hover {
    color: #f08a52;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #3d3935;
    color: #817a73;
    font-size: 0.85rem;
}


/* =========================================================
   Accessibility
   ========================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   Responsive — Tablet
   ========================================================= */

@media (max-width: 900px) {

    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 4px;
        border-top: 1px solid var(--color-border-light);
    }

    .hero {
        padding: 55px 0 45px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-card {
        max-width: 650px;
        width: 100%;
        margin: 0 auto;
    }

    .recipe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   Responsive — Mobile
   ========================================================= */

@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: auto;
        padding: 14px 0;
        gap: 14px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .header-search {
        margin-left: auto;
    }

    .header-search a {
        padding: 8px 11px;
        font-size: 0.82rem;
    }

    .main-nav {
        gap: 14px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .main-nav a {
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .hero {
        padding: 42px 0 35px;
    }

    .hero h1 {
        font-size: clamp(2.35rem, 13vw, 3.4rem);
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-search {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-search input {
        border-right: 1px solid var(--color-border);
        border-radius: 9px;
    }

    .hero-search button {
        border-radius: 9px;
        width: 100%;
    }

    .hero-card-image {
        min-height: 220px;
    }

    .section {
        padding: 50px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading .text-link {
        display: inline-block;
        margin-top: 10px;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-section {
        padding: 50px 0;
    }

    .newsletter-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .newsletter-form-row {
        flex-direction: column;
    }

    .newsletter-form button {
        min-height: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}