/*
Theme Name: Meals 4 Mums
Theme URI:
Author: Nomy
Author URI:
Description: Custom WordPress theme for Meals 4 Mums.
Version: 1.0
Text Domain: meals4mums
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');
/*  GLOBAL DESIGN SYSTEM  */

:root {

    /* Brand Colors */
    --color-primary: #04AA6D;
    --color-secondary: #DDA73A;

    /* Backgrounds */
    --color-background: #e1edde;
    --color-surface:  #FAF9F4;
    --color-surface-warm: #F7F1E4;

    /* Text */
    --color-text: #173F32;
    --color-text-muted: #66756E;

    /* Utility */
    --color-white: #FFFFFF;
}
/*  BASE RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: Inter, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}
/*  TYPOGRAPHY   */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: 1.5rem;
}

body {
    font-size: 16px;
}

p {
    font-size: 1rem;
}
/*  LAYOUT & SPACING  */

.container {
    width: min(92%, 1200px);
    margin-inline: auto;
}

.section {
    padding-block: 80px;
}

.section-small {
    padding-block: 50px;
}

.section-large {
    padding-block: 110px;
}

@media (max-width: 768px) {

    .section {
        padding-block: 60px;
    }

    .section-small {
        padding-block: 40px;
    }

    .section-large {
        padding-block: 80px;
    }
}
/*  BUTTONS   */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 13px 26px;

    border: 2px solid transparent;
    border-radius: 50px;

    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-text);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-text);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/*  HOMEPAGE  */


/* Hero */

.home-hero {
    min-height: 70vh;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(4, 170, 109, 0.12),
            transparent 35%
        ),
        var(--color-background);
}

.home-hero-content {
    max-width: 760px;
}

.section-eyebrow {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--color-primary);

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero h1 {
    margin-bottom: 25px;
}

.home-hero p {
    max-width: 620px;

    margin-bottom: 30px;

    color: var(--color-text-muted);

    font-size: 1.15rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* Introduction */

.home-intro {
    background: var(--color-surface);
}

.home-intro h2,
.home-intro p {
    max-width: 750px;
}

.home-intro p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}


/* Programs */

.home-programs {
    background: var(--color-background);
}

.programs-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin-top: 45px;
}

.program-card {
    padding: 35px;

    background: var(--color-surface);

    border-radius: 20px;

    border: 1px solid rgba(23, 63, 50, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.program-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(23, 63, 50, 0.08);
}

.program-card h3 {
    margin-bottom: 12px;

    font-size: 1.35rem;
}

.program-card p {
    margin-bottom: 0;

    color: var(--color-text-muted);
}


/* Homepage CTA */

.home-cta {
    text-align: center;

    background: var(--color-primary);
    color: var(--color-white);
}

.home-cta h2 {
    color: var(--color-white);
}

.home-cta .section-eyebrow {
    color: var(--color-secondary);
}

.home-cta p {
    max-width: 600px;

    margin: 0 auto 25px;

    color: rgba(255, 255, 255, 0.85);
}


/* Responsive */

@media (max-width: 768px) {

    .home-hero {
        min-height: 65vh;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        padding: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}