/* =================================
   THE MEAL INDEX
   Main Website Styles
================================= */

:root {
    --background: #111111;
    --surface: #1c1c1c;
    --surface-light: #262626;
    --text: #ffffff;
    --text-muted: #b5b5b5;
    --border: #333333;
    --accent: #ffffff;
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Gidole', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

/* GENERAL LAYOUT */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 55px 0;
}

/* HEADINGS */

h1,
h2,
h3,
h4 {
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: clamp(36px, 5vw, 58px);
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 21px;
}

/* LINKS */

a {
    color: inherit;
    text-decoration: none;
}

/* BUTTONS */

button {
    font-family: inherit;
    cursor: pointer;
}

/* IMAGES */


    }
}
/* =================================
   HEADER & NAVIGATION
================================= */

.site-header {
    width: 100%;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */

.logo {
    font-size: 27px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* DESKTOP NAVIGATION */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.desktop-nav a {
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--text);
}

/* MOBILE MENU BUTTON */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 6px 0;
}

/* MOBILE NAVIGATION */

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--surface);
    padding: 10px 24px 20px;
}

.mobile-nav a {
    padding: 12px 0;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

/* MOBILE LAYOUT */

@media (max-width: 760px) {

    .header-inner {
        min-height: 72px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-nav.open {
        display: flex;
    }
}
/* =================================
   HERO SECTION
================================= */

.hero {
    padding: 105px 0 95px;
}

.hero-content {
    max-width: 1200px;
}

.hero h1 {
    max-width: 750px;
    margin-bottom: 22px;
}

.hero p {
    color: var(--text-muted);
    font-size: 19px;
    margin-bottom: 35px;
}

/* SEARCH BAR */

.hero-search {
    display: flex;
    max-width: 560px;
    height: 56px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0 18px;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: inherit;
    font-size: 16px;
}

.hero-search input::placeholder {
    color: #888888;
}

.hero-search button {
    padding: 0 25px;
    background: white;
    color: #111111;
    border: none;
    font-size: 15px;
}

/* MOBILE HERO */

@media (max-width: 600px) {

    .hero {
        padding: 75px 0 65px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-search {
        height: 52px;
    }

}
/* BROWSE CATEGORIES */
.categories-section {
    padding-top: 25px;
    }

    .section-heading {
        margin-bottom: 28px;
        }

        .category-grid {
            display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                    gap: 28px 24px;
                    }

                    .category-card {
                        display: block;
                        }

                        .category-card img {
                            width: 100%;
                                aspect-ratio: 4 / 3;
                                    object-fit: cover;
                                        border-radius: 4px;
                                        }

                                        .category-card h3 {
                                            margin-top: 12px;
                                                font-size: 20px;
                                                }

                                                @media (max-width: 600px) {
                                                    .category-grid {
                                                            gap: 22px 14px;
                                                                }

                                                                    .category-card h3 {
                                                                            font-size: 18px;
                                                                                }
                                                                                }
                                                                                /* HERO POSITIONING - MOBILE AND DESKTOP */

.hero {
    padding: 20px 0 13px;
}

.hero-content {
    max-width: 1200px;
}

.hero h1,
.hero p {
    text-align: left;
}

/* DESKTOP */
@media (min-width: 761px) {
    .hero {
        padding-top: 35px;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        margin-left: auto;
        margin-right: auto;
    }

    .hero p {
        text-align: center;
    }

    .hero-search {
        margin-left: auto;
        margin-right: auto;
    }
}

/* MOBILE */
@media (max-width: 760px) {
    .hero {
        padding-top: 20px;
    }

    .hero-content {
        text-align: left;
    }

    .hero h1 {
        white-space: nowrap;
    }
}
/* HOMEPAGE HEADING AND CATEGORY ALIGNMENT */

/* Keep main heading on one line */
.hero h1 {
    white-space: nowrap;
    max-width: none;
    width: 100%;
    font-size: 14.4px;
}

/* Centre category titles underneath images */
.category-card {
    text-align: center;
}

.category-card h3 {
    width: 100%;
    text-align: center;
}

/* Mobile heading */
@media (max-width: 760px) {
    .hero h1 {
        font-size: 14.4px;
    }
}
/* MAIN HEADING - LARGER BUT ONE LINE */

.hero h1 {
    font-size: 24px;
    white-space: nowrap;
    max-width: none;
    width: 100%;
}

@media (max-width: 760px) {
    .hero h1 {
        font-size: 14.4px;
    }
}
/* DESKTOP HEADING */
@media (min-width: 761px) {
    .hero h1 {
        font-size: 48px;
        text-align: center;
        white-space: nowrap;
        max-width: none;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* MOBILE HEADING */
@media (max-width: 760px) {
    .hero h1 {
        font-size: 14.4px;
        text-align: left;
        white-space: nowrap;
    }
}
/* INCREASE HERO DESCRIPTION SIZE */
.hero p {
    font-size: 11px;
}
/* HERO DESCRIPTION SIZE */
.hero p {
    font-size: 28px !important;
}
/* TIGHTEN HERO CONTENT SPACING */

.hero h1 {
    margin-bottom: 7px !important;
}

.hero p {
    margin-bottom: 7px !important;
}
/* LOWER SEARCH BAR SLIGHTLY */
.hero-search {
    margin-top: 6px;
}
.hero p {
    margin-bottom: 16px !important;
}
.hero h1 {
    margin-bottom: 10px !important;
}

.hero p {
    margin-bottom: 10px !important;
}
.hero-search {
    margin-top: 4px !important;
}
.hero-search {
    margin-top: 8px !important;
}
.hero p {
    margin-bottom: 20px !important;
}
.hero p {
    margin-bottom: 24px !important;
}
/* FEATURED RECIPES */

.featured-section {
    padding: 40px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

.featured-card {
    display: block;
    text-align: center;
}

.featured-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.featured-card h3 {
    margin-top: 12px;
    font-size: 20px;
    text-align: center;
}

@media (max-width: 600px) {
    .featured-grid {
        gap: 22px 14px;
    }

    .featured-card h3 {
        font-size: 18px;
    }
}
/* REDUCE SPACE ABOVE FEATURED RECIPES */
.featured-section {
    padding-top: 15px;
}
.featured-section {
    padding-top: 10px;
}
.featured-section {
    padding-top: 5px;
}
/* MOVE HERO SECTION DOWN SLIGHTLY */
.hero {
    padding-top: 45px !important;
}

/* LATEST RECIPES */
.latest-section {
    padding: 40px 0;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

.latest-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.latest-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.latest-card h3 {
    margin-top: 12px;
    font-size: 20px;
    text-align: center;
}

@media (max-width: 600px) {
    .latest-grid {
        gap: 22px 14px;
    }

    .latest-card h3 {
        font-size: 18px;
    }
}
/* MOST POPULAR RECIPES */
.popular-section {
    padding: 40px 0;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

.popular-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.popular-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.popular-card h3 {
    margin-top: 12px;
    font-size: 20px;
    text-align: center;
}

@media (max-width: 600px) {
    .popular-grid {
        gap: 22px 14px;
    }

    .popular-card h3 {
        font-size: 18px;
    }
}
/* FOOTER */
.site-footer {
    background: #0b0b0b;
    border-top: 1px solid #333;
    padding: 45px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-about h3 {
    font-size: 21px;
    margin-bottom: 2px;
}

.footer-about p {
    color: #999;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #292929;
    margin-top: 35px;
    padding-top: 18px;
    text-align: center;
}

.footer-bottom p {
    color: #777;
    font-size: 12px;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 25px;
    }

    .footer-links {
        gap: 16px;
    }
}
/* MOBILE HERO TEXT ADJUSTMENTS */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 19px !important;
    }

    .hero p {
        font-size: 12px !important;
    }
}
/* MOBILE SPACING AND TEXT ADJUSTMENTS */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 23px !important;
    }

    .hero p {
        font-size: 15px !important;
    }

    .categories-section,
    .featured-section,
    .latest-section,
    .popular-section {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
}
/* MOBILE HERO HEADING */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 26px !important;
        white-space: normal !important;
        line-height: 1.25 !important;
        max-width: 340px !important;
    }

    .hero p {
        font-size: 16px !important;
    }
}
/* MOBILE HERO FINAL ADJUSTMENTS */
@media (max-width: 600px) {
    .hero {
        padding-top: 12px !important;
        padding-bottom: 10px !important;
    }

    .hero h1 {
        font-size: 29px !important;
        white-space: normal !important;
        max-width: 320px !important;
        line-height: 1.2 !important;
    }

    .hero p {
        font-size: 16px !important;
    }
}
/* MOBILE HERO ADJUSTMENTS */
@media (max-width: 600px) {
    .hero {
        padding-top: 19px !important;
        padding-bottom: 10px !important;
    }

    .hero h1 {
        font-size: 36px !important;
        white-space: normal !important;
        max-width: 320px !important;
        line-height: 1.2 !important;
    }

    .hero p {
        font-size: 15px !important;
        white-space: nowrap !important;
    }
}
/* MOBILE SECTION HEADING SPACING */
@media (max-width: 600px) {
    .section-heading {
        margin-bottom: 16px !important;
    }
}
/* SQUARE IMAGES ON MOBILE */
@media (max-width: 600px) {
    .category-card img,
    .featured-card img,
    .latest-card img,
    .popular-card img {
        aspect-ratio: 1 / 1 !important;
    }
    }
    /* CATEGORY PAGE TITLE FIX */
#category-title,
#recipe-list-title {
    font-family: 'Gidole', sans-serif !important;
    font-size: 35px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}

.categories-page {
    padding-top: 25px !important;
}