/* =========================================
   K&M Boutique
   Main Stylesheet
========================================= */


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

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Helvetica Neue",
        Arial,
        sans-serif;
    color: #292929;
    background: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}


/* ---------- Layout ---------- */

.container {
    width: min(92%, 1200px);
    margin-inline: auto;
}

.narrow-container {
    max-width: 760px;
}


/* ---------- Header ---------- */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;
}

.logo-link {
    display: inline-block;
}

.logo {
    width: 180px;
    max-height: 70px;
    object-fit: contain;
}


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

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;

    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 2px;

    background: currentColor;

    transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
}


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

.hero {
    min-height: 520px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(245, 240, 235, 0.97) 0%,
            rgba(245, 240, 235, 0.90) 45%,
            rgba(245, 240, 235, 0.40) 100%
        ),
        url("images/hero.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-content > * {
    max-width: 650px;
}

.hero-eyebrow {
    margin: 0 0 1rem;

    font-size: 0.85rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hero h1 {
    margin: 0 0 1.25rem;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 1.05;

    font-weight: 500;
}

.hero-text {
    margin-bottom: 2rem;

    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 560px;
}


/* ---------- Button ---------- */

.hero-button {
    display: inline-block;

    padding: 0.9rem 1.6rem;

    background: #242424;
    color: #ffffff;

    text-decoration: none;

    font-weight: 600;
    letter-spacing: 0.04em;

    border: 2px solid #242424;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
    background: transparent;
    color: #242424;

    transform: translateY(-2px);
}


/* ---------- Storefront ---------- */

.storefront-section {
    padding: 3rem 0;

    background: #ffffff;
}


/*
    The storefront section is intentionally
    left mostly empty.

    Your product/store code can be placed
    inside the .storefront-section container.
*/


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

.about-section {
    padding: 6rem 0;

    background: #f7f5f2;

    text-align: center;
}

.about-section h2,
.contact-section h2 {
    margin-top: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
}


/* ---------- Contact ---------- */

.contact-section {
    padding: 6rem 0;

    text-align: center;
}


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

.site-footer {
    background: #222222;
    color: #eeeeee;
}

.footer-inner {
    min-height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.site-footer p {
    margin: 0;

    font-size: 0.9rem;
}


/* =========================================
   Responsive Styles
========================================= */

@media (max-width: 760px) {

    .header-inner {
        flex-direction: column;

        justify-content: center;

        padding-top: 1rem;
        padding-bottom: 1rem;

        gap: 1rem;
    }

    .logo {
        width: 155px;
    }

    .main-nav {
        width: 100%;

        justify-content: center;
        flex-wrap: wrap;

        gap: 0.75rem 1.4rem;
    }

    .hero {
        min-height: 460px;

        background-position: 60% center;
    }

    .hero-content {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .storefront-section {
        padding: 2rem 0;
    }

    .about-section,
    .contact-section {
        padding: 4rem 0;
    }

}


@media (max-width: 480px) {

    .container {
        width: min(90%, 1200px);
    }

    .main-nav {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-button {
        width: 100%;
        max-width: 280px;

        text-align: center;
    }

}
