/* ---------- Blackfen Bakes 002 - Square / Champagne ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --sand: #B8A28E;
    --sand-light: #CDB99F;
    --sand-pale: #F0E9DF;
    --ivory: #FAFAF7;
    --bg: #F4EFE8;
    --white: #FFFFFF;
    --ink: #2D2A27;
    --muted: #7A726A;
    --light: #B5ADA5;
    --line: #E6DFD5;
    --sage: #8FA68A;
    --sage-pale: #EDF1EB;
    --shadow-sm: 0 1px 4px rgba(45, 42, 39, .06);
    --shadow-md: 0 4px 20px rgba(45, 42, 39, .08);
    --radius: 0px;
    --radius-sm: 2px;
    --serif: 'Cormorant Garant', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max: 900px;
    --header-h: 68px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--sand);
    text-decoration: none;
    transition: color .25s ease;
}

a:hover {
    color: var(--sand-light);
}

/* ---------- Utilities ---------- */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5.5rem 0;
}

.section-label {
    display: block;
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: .75rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.15;
}

.section-subtitle {
    font-size: .975rem;
    color: var(--muted);
    max-width: 540px;
    margin: 0 0 3rem;
    line-height: 1.75;
    font-weight: 300;
}

.section-head {
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(250, 250, 247, .95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
    transition: box-shadow .3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    text-decoration: none;
}

.brand-name {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: .5px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.primary-nav a {
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color .25s ease;
}

.primary-nav a:hover {
    color: var(--ink);
}

.nav-cta {
    background: var(--ink) !important;
    color: var(--white) !important;
    padding: .5rem 1.25rem;
    font-size: .75rem !important;
    letter-spacing: 1px !important;
}

.nav-cta:hover {
    background: var(--sand) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--ink);
    margin: 6px 0;
    transition: all .3s ease;
}

/* ---------- Hero ---------- */
.hero {
    margin-top: var(--header-h);
    background: var(--ivory);
}

.hero-text {
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 1.5rem;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--sand);
}

.hero-desc {
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.85;
    margin: 0 auto 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .9rem 2rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.btn-primary:hover {
    background: var(--sand);
    border-color: var(--sand);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--sand);
    color: var(--sand);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-outline:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.hero-visual {
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: var(--bg);
}

.hero-visual video,
.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* ---------- Featured ---------- */
.featured {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--line);
}

.featured-card {
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--line);
    transition: background .25s ease;
}

.featured-card:last-child {
    border-right: none;
}

.featured-card:hover {
    background: var(--ivory);
}

.featured-accent {
    width: 32px;
    height: 2px;
    background: var(--sand);
    margin-bottom: 1.75rem;
}

.featured-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    display: block;
}

.featured-card h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 .75rem;
    color: var(--ink);
}

.featured-card p {
    font-size: .88rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 1.5rem;
}

.featured-link {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sand);
    text-decoration: none;
    border-bottom: 1px solid var(--sand-pale);
    padding-bottom: 1px;
    transition: border-color .25s ease, color .25s ease;
}

.featured-link:hover {
    color: var(--ink);
    border-color: var(--ink);
}

/* ---------- About ---------- */
.about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: center;
}

.about-media {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    max-height: 520px;
    background: var(--line);
}

.about-media img,
.about-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text p {
    font-size: .95rem;
    font-weight: 300;
    color: var(--muted);
    margin: 0 0 1.25rem;
    line-height: 1.85;
}

.about-text p:last-of-type {
    margin-bottom: 2rem;
}

.badge-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--white);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 400;
    padding: .4rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    letter-spacing: .5px;
}

/* ---------- Offerings ---------- */
.offerings {
    background: var(--ivory);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
}

.offering-card {
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background .25s ease;
}

.offering-card:nth-child(4n) {
    border-right: none;
}

.offering-card:nth-last-child(-n+4) {
    border-bottom: none;
}

.offering-card:hover {
    background: var(--white);
}

.offering-num {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--line);
    margin-bottom: .75rem;
    line-height: 1;
}

.offering-card h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 .5rem;
    color: var(--ink);
}

.offering-card p {
    font-size: .85rem;
    font-weight: 300;
    color: var(--muted);
    margin: 0;
    line-height: 1.65;
}

/* ---------- Gallery ---------- */
.gallery {
    background: var(--white);
    border-top: 1px solid var(--line);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg);
    cursor: pointer;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.03);
}

/* ---------- How to Order ---------- */
.order {
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 2.5rem;
}

.step {
    flex: 1;
    padding: 0 2rem;
    text-align: center;
}

.step:first-child {
    padding-left: 0;
}

.step:last-child {
    padding-right: 0;
}

.step-num {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--sand);
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.step h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 .5rem;
    color: var(--ink);
}

.step p {
    font-size: .875rem;
    font-weight: 300;
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

.step-divider {
    width: 1px;
    height: 80px;
    background: var(--line);
    align-self: center;
    flex-shrink: 0;
    margin-top: -1.5rem;
}

.order-note {
    text-align: center;
    font-size: .85rem;
    font-weight: 300;
    font-style: italic;
    color: var(--light);
    margin: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: var(--ivory);
    border-top: 1px solid var(--line);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, .5);
    letter-spacing: .5px;
}

.footer-copy {
    font-size: .78rem;
    font-weight: 300;
    color: rgba(255, 255, 255, .5);
    margin: 0;
    letter-spacing: .3px;
}

.footer-copy a {
    color: rgba(255, 255, 255, .7);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .3);
    text-underline-offset: 2px;
}

.footer-copy a:hover {
    color: var(--white);
}

/* ---------- Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 2rem;
    opacity: 0;
    transition: opacity .3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, .25);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .featured-card:last-child {
        border-bottom: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-media {
        max-height: 380px;
        margin: 0 auto;
        width: 100%;
    }

    .offerings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offering-card:nth-child(4n) {
        border-right: 1px solid var(--line);
    }

    .offering-card:nth-child(2n) {
        border-right: none;
    }

    .offering-card:nth-last-child(-n+4) {
        border-bottom: 1px solid var(--line);
    }

    .offering-card:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .step {
        padding: 0;
        max-width: 320px;
    }

    .step-divider {
        width: 40px;
        height: 1px;
        margin: 0;
        align-self: center;
    }
}

@media (max-width: 750px) {
    .primary-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        height: calc(100vh - var(--header-h));
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.25rem;
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease;
    }

    .primary-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .primary-nav a {
        font-size: 1rem;
        color: var(--ink);
        letter-spacing: 1.5px;
    }

    .primary-nav .nav-cta {
        margin-top: .5rem;
        padding: .75rem 2.5rem;
        font-size: .85rem !important;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 3.5rem 0;
    }

    .hero-text {
        padding: 3.5rem 1.5rem 3rem;
    }

    .hero-visual {
        height: 320px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

    .offering-card {
        border-right: none;
    }

    .offering-card:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .offering-card:last-child {
        border-bottom: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
