/* ---------- Blackfen Bakes ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --rose: #832b38;
    --rose-light: #a94455;
    --rose-pale: #f9e8eb;
    --blush: #fdf2f4;
    --cream: #fefbfa;
    --bg: #fdfafb;
    --ink: #3a2a2e;
    --muted: #7a6a6e;
    --light: #b5a3a7;
    --line: #f1cbd0;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(131, 43, 56, .05);
    --shadow-md: 0 8px 30px rgba(131, 43, 56, .08);
    --shadow-lg: 0 16px 50px rgba(131, 43, 56, .10);
    --radius: 16px;
    --radius-lg: 24px;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max: 850px;
    --header-h: 72px;
}

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(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--rose);
    text-decoration: none;
    transition: color .3s ease;
}

a:hover {
    color: var(--rose-light);
}

/* ---------- Utilities ---------- */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-label {
    display: block;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: .75rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 540px;
    margin: 0 0 2.5rem;
    line-height: 1.7;
}

.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(253, 250, 251, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    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.35rem;
    font-weight: 600;
    color: var(--rose);
    letter-spacing: -.5px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.primary-nav a {
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .5px;
    color: var(--ink);
    text-decoration: none;
    transition: color .3s ease;
}

.primary-nav a:hover {
    color: var(--rose);
}

.nav-cta {
    background: var(--rose);
    color: var(--white) !important;
    padding: .55rem 1.25rem;
    border-radius: 30px;
    font-size: .82rem !important;
}

.nav-cta:hover {
    background: var(--rose-light);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 2px;
    transition: all .3s ease;
}

/* ---------- Hero ---------- */
.hero {
    margin-top: var(--header-h);
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--cream);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    padding: 3rem 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--rose-pale);
    color: var(--rose);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 1.25rem;
}

.hero-title em {
    font-style: italic;
    color: var(--rose);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.8;
    margin: 0 0 2rem;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--sans);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .3px;
    padding: .85rem 1.75rem;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--rose);
    color: var(--white);
    border-color: var(--rose);
}

.btn-primary:hover {
    background: var(--rose-light);
    border-color: var(--rose-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(131, 43, 56, .2);
}

.btn-outline {
    background: transparent;
    color: var(--rose);
    border-color: var(--line);
}

.btn-outline:hover {
    border-color: var(--rose);
    background: var(--rose-pale);
    transform: translateY(-2px);
}

.hero-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 380px;
    max-width: 320px;
    margin-left: auto;
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- About ---------- */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 3 / 4;
    max-height: 420px;
    background: var(--ink);
}

.about-image img,
.about-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text p {
    color: var(--muted);
    margin: 0 0 1.25rem;
    line-height: 1.8;
}

.about-text p:last-of-type {
    margin-bottom: 2rem;
}

.badge-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--rose-pale);
    color: var(--rose);
    font-size: .78rem;
    font-weight: 500;
    padding: .4rem .9rem;
    border-radius: 20px;
}

/* ---------- Offerings ---------- */
.offerings {
    background: var(--bg);
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.offering-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(241, 203, 208, .3);
    transition: transform .3s ease, box-shadow .3s ease;
}

.offering-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.offering-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.offering-card h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 .5rem;
    color: var(--ink);
}

.offering-card p {
    font-size: .9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* ---------- Gallery ---------- */
.gallery {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
    justify-content: center;
    gap: .75rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.featured {
    grid-column: span 1;
    aspect-ratio: 1;
}

/* ---------- How to Order ---------- */
.order {
    background: var(--bg);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--rose-pale);
    color: var(--rose);
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
}

.step h3 {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin: 0 0 .5rem;
    color: var(--ink);
}

.step p {
    font-size: .9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.step-optional {
    opacity: .7;
    font-style: italic;
}

.step-optional .step-num {
    background: transparent;
    border: 2px dashed var(--line);
    color: var(--light);
}

.order-cta {
    text-align: center;
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

.order-cta p {
    color: var(--muted);
    margin: 0 0 1.5rem;
    font-size: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .88);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-brand {
    height: 40px;
    width: auto;
    margin: 0 auto 1.5rem;
    border-radius: 6px;
    filter: brightness(1.8);
    opacity: .8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, .88);
    font-size: .85rem;
    transition: color .3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    font-size: .8rem;
    color: rgba(255, 255, 255, .78);
    margin: 0;
}

.footer-copy a {
    color: rgba(255, 255, 255, .92);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .5);
    text-underline-offset: 2px;
}

.footer-copy a:hover {
    color: var(--white);
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    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,
.lightbox video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, .3);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid {
        display: block;
    }

    .hero-content {
        text-align: center;
        padding: 2rem 0 0;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-media {
        max-height: 340px;
        margin: 2rem auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-height: 360px;
        margin: 0 auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
        justify-content: center;
    }

    .gallery-item.featured {
        grid-column: span 1;
        aspect-ratio: 1;
    }
}

@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: 2rem;
        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: 1.2rem;
        color: var(--ink);
    }

    .primary-nav .nav-cta {
        margin-top: 1rem;
        padding: .75rem 2rem;
        font-size: 1rem;
    }

    .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);
    }
}

@media (max-width: 600px) {
    .section {
        padding: 3.5rem 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 150px));
        justify-content: center;
        gap: .5rem;
    }

    .gallery-item.featured {
        grid-column: span 1;
    }

    .offerings-grid {
        display: block;
    }

    .offering-card {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}
