/* ------------------------------
   Basic Reset
------------------------------ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fcfbf8;
    color: #2f2b27;
    font-family: "Inter", sans-serif;
    line-height: 1.7;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* ------------------------------
   Shared Styles
------------------------------ */

.section {
    padding: 100px 7%;
}

.section-label,
.eyebrow {
    color: #a37850;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

h1,
h2,
h3,
.brand {
    font-family: "Cormorant Garamond", serif;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

h2 {
    font-size: clamp(2.25rem, 4vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.button {
    align-items: center;
    border: 1px solid transparent;
    display: inline-flex;
    justify-content: center;
    min-height: 52px;
    padding: 12px 28px;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background-color: #86613f;
    border-color: #86613f;
    color: #ffffff;
}

.button-primary:hover {
    background-color: #6f4e32;
    border-color: #6f4e32;
}

.button-secondary {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.button-secondary:hover {
    background-color: #ffffff;
    color: #2f2b27;
}

.button-light {
    background-color: #fcfbf8;
    border-color: #fcfbf8;
    color: #4c3a2a;
}

.button-light:hover {
    background-color: transparent;
    color: #ffffff;
}

.text-link {
    border-bottom: 1px solid #a37850;
    color: #86613f;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    padding-bottom: 3px;
    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.text-link:hover {
    border-color: #4c3a2a;
    color: #4c3a2a;
}


/* ------------------------------
   Navigation
------------------------------ */

.navbar {
    background-color: rgba(252, 251, 248, 0.97);
    border-bottom: 1px solid #e5ddd3;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1500px;
    min-height: 84px;
    padding: 0 7%;
}

.brand {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 34px;
}

.nav-links a {
    color: #4c4640;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    background-color: #a37850;
    bottom: 0;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
    width: 100%;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-button {
    background: none;
    border: none;
    color: #2f2b27;
    cursor: pointer;
    display: none;
    font-size: 1.6rem;
}


/* ------------------------------
   Hero
------------------------------ */

.hero {
    align-items: center;
    background-image: url("../images/hero-bakery.jpg");
    background-position: center;
    background-size: cover;
    display: flex;
    min-height: calc(100vh - 84px);
    padding: 100px 7%;
    position: relative;
}

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(30, 24, 19, 0.72) 0%,
            rgba(30, 24, 19, 0.42) 50%,
            rgba(30, 24, 19, 0.1) 100%
        );
    inset: 0;
    position: absolute;
}

.hero-content {
    color: #ffffff;
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.hero .eyebrow {
    color: #eadaca;
}

.hero-description {
    font-size: 1.05rem;
    margin: 28px 0 36px;
    max-width: 570px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* ------------------------------
   Introduction
------------------------------ */

.intro {
    display: flex;
    justify-content: center;
    text-align: center;
}

.intro-content {
    max-width: 800px;
}

.intro h2 {
    margin-bottom: 28px;
}

.intro p:last-child {
    color: #625b54;
    font-size: 1.05rem;
    margin: 0 auto;
    max-width: 650px;
}


/* ------------------------------
   Featured Products
------------------------------ */

.featured {
    background-color: #f4efe8;
}

.section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

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

.product-card {
    background-color: #fcfbf8;
    overflow: hidden;
}

.product-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.03);
}

.product-card-content {
    padding: 30px;
}

.product-card-content h3 {
    margin-bottom: 12px;
}

.product-card-content p {
    color: #665f58;
    margin-bottom: 20px;
}


/* ------------------------------
   Markets Preview
------------------------------ */

.markets-preview {
    background-color: #745238;
    color: #ffffff;
    padding: 85px 7%;
}

.markets-preview-content {
    align-items: center;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1300px;
}

.markets-preview-content div {
    max-width: 700px;
}

.markets-preview h2 {
    margin-bottom: 20px;
}

.markets-preview p:last-child {
    color: #eadfd4;
}

.light-label {
    color: #ead2bb;
}


/* ------------------------------
   About
------------------------------ */

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

.about-image img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.about-content h2 {
    margin-bottom: 28px;
}

.about-content p {
    color: #625b54;
    margin-bottom: 20px;
}

.about-content .text-link {
    margin-top: 10px;
}


/* ------------------------------
   Order Callout
------------------------------ */

.order-callout {
    align-items: center;
    background-color: #eee5da;
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.order-callout h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
}


/* ------------------------------
   Footer
------------------------------ */

.footer {
    background-color: #28231f;
    color: #f8f3ed;
    padding: 75px 7% 30px;
}

.footer-grid {
    display: grid;
    gap: 50px;
    grid-template-columns: 2fr 1fr 1fr;
    margin-bottom: 60px;
}

.footer h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.footer h3 {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.footer p,
.footer a {
    color: #cfc5bb;
}

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

.footer a {
    transition: color 0.25s ease;
}

.footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #514941;
    font-size: 0.8rem;
    padding-top: 25px;
}


/* ------------------------------
   Tablet and Mobile
------------------------------ */

@media (max-width: 900px) {

    .section {
        padding: 75px 6%;
    }

    .nav-container {
        padding: 0 6%;
    }

    .menu-button {
        display: block;
    }

    .nav-links {
        align-items: flex-start;
        background-color: #fcfbf8;
        border-top: 1px solid #e5ddd3;
        display: none;
        flex-direction: column;
        gap: 0;
        left: 0;
        padding: 20px 6% 30px;
        position: absolute;
        top: 84px;
        width: 100%;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        width: 100%;
    }

    .hero {
        background-position: 60% center;
        min-height: 700px;
        padding: 90px 6%;
    }

    .hero-overlay {
        background: rgba(30, 24, 19, 0.58);
    }

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

    .product-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
    }

    .markets-preview {
        padding: 70px 6%;
    }

    .markets-preview-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .about {
        gap: 45px;
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 650px;
    }

    .order-callout {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}


@media (max-width: 600px) {

    .section {
        padding: 65px 5%;
    }

    .nav-container {
        padding: 0 5%;
    }

    .brand {
        font-size: 1.45rem;
    }

    .hero {
        min-height: 650px;
        padding: 75px 5%;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

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

    .product-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .markets-preview {
        padding: 60px 5%;
    }

    .footer {
        padding: 60px 5% 25px;
    }

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

    .footer-grid > div:first-child {
        grid-column: auto;
    }
}