/* ============================================================
   cafesweets.xyz — Pop-art antiquarian confectionery
   Colors: #1A0A0D #F0E6D3 #5C1A2E #C4956A #E8D0B5 #8C3A50
   Fonts: Bebas Neue / Libre Baskerville / Space Mono
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #F0E6D3;
    color: #1A0A0D;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

/* ---- Custom Cursor ---- */
#cursor-dot {
    width: 10px;
    height: 10px;
    background: #5C1A2E;
    border: 2px solid #1A0A0D;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: background 0.15s;
}

/* ---- Navigation ---- */
#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 44px;
    background: #1A0A0D;
    border-bottom: 4px solid #1A0A0D;
}

.nav-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 0.08em;
    color: #F0E6D3;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E8D0B5;
    text-decoration: none;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: #C4956A;
}

/* ---- Main Grid Container ---- */
#grid-container {
    padding-top: 44px; /* nav height */
    display: block;
    width: 100%;
}

/* ---- Block Base Styles ---- */
.block {
    position: relative;
    border: 4px solid #1A0A0D;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Block color variants */
.block-dark {
    background: #1A0A0D;
    color: #F0E6D3;
}

.block-parchment {
    background: #F0E6D3;
    color: #1A0A0D;
}

.block-parchment-alt {
    background: #E8D0B5;
    color: #1A0A0D;
}

.block-burgundy {
    background: #5C1A2E;
    color: #F0E6D3;
}

/* Block width classes */
.block-full {
    width: 100%;
    margin-left: 24px;
    margin-right: 24px;
    width: calc(100% - 48px);
    margin-left: 24px;
}

/* Block rows — 12 column grid */
.block-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    margin: 0 24px;
    margin-top: -4px;
}

.block-row .block {
    margin-top: 0;
}

.block-row .block + .block {
    margin-left: -4px;
}

.block-4col {
    grid-column: span 4;
}

.block-8col {
    grid-column: span 8;
}

.block-12col {
    grid-column: span 12;
}

/* Halftone canvas */
.halftone-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ---- Ben-Day halftone texture on dark blocks ---- */
.block-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Ccircle cx='5' cy='5' r='1.5' fill='%23C4956A'/%3E%3C/svg%3E");
    background-size: 10px 10px;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
}

.block-burgundy::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Ccircle cx='5' cy='5' r='1.5' fill='%23E8D0B5'/%3E%3C/svg%3E");
    background-size: 10px 10px;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
}

/* All block content above z-index layers */
.block > *:not(.halftone-canvas) {
    position: relative;
    z-index: 2;
}

/* ---- Printer's slug labels ---- */
.block-slug {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C4956A;
    padding: 12px 20px 0;
    display: block;
}

.light-slug {
    color: #E8D0B5;
    opacity: 0.7;
}

/* ---- HERO BLOCK ---- */
#hero-block {
    min-height: 60vh;
    margin: 0 24px;
    margin-top: 0;
    padding: 0;
}

.hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 60vh;
    padding: 40px 40px 40px;
    position: relative;
}

.hero-text {
    flex: 0 0 65%;
    padding-top: 40px;
    z-index: 3;
}

.hero-wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(72px, 9vw, 120px);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #F0E6D3;
    line-height: 0.9;
    text-transform: uppercase;
    display: block;
}

.hero-tagline {
    font-family: 'Libre Baskerville', serif;
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    color: #E8D0B5;
    margin-top: 20px;
    max-width: 460px;
    line-height: 1.6;
}

.hero-illustration {
    flex: 0 0 32%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    width: 34%;
    z-index: 3;
}

#magnolia-svg {
    width: 100%;
    height: 90%;
    max-height: 520px;
    opacity: 0.9;
}

/* ---- PHILOSOPHY BLOCK ---- */
#philosophy-block {
    margin: 0 24px;
    margin-top: -4px;
    padding: 60px 40px;
    min-height: 200px;
    text-align: center;
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #F0E6D3;
    text-transform: uppercase;
    line-height: 1;
}

.ochre-rule {
    border: none;
    border-top: 2px solid #C4956A;
    margin: 20px auto;
    width: 320px;
}

.philosophy-sub {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    font-style: italic;
    color: #E8D0B5;
    line-height: 1.7;
}

/* ---- PRODUCTS SECTION ---- */
#products {
    margin-top: -4px;
}

.product-block {
    min-height: 360px;
    padding: 0;
}

.product-image-wrap {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.35) contrast(1.15) brightness(0.92) saturate(0.75);
}

/* Placeholder styled product images using CSS gradients */
.product-image-1 {
    background: linear-gradient(135deg, #8C3A50 0%, #5C1A2E 40%, #C4956A 70%, #E8D0B5 100%);
    filter: sepia(0.35) contrast(1.15) brightness(0.92) saturate(0.75);
}

.product-image-2 {
    background: linear-gradient(135deg, #1A0A0D 0%, #5C1A2E 35%, #8C3A50 65%, #C4956A 100%);
    filter: sepia(0.35) contrast(1.15) brightness(0.92) saturate(0.75);
}

.product-image-3 {
    background: linear-gradient(135deg, #C4956A 0%, #E8D0B5 30%, #8C3A50 65%, #5C1A2E 100%);
    filter: sepia(0.35) contrast(1.15) brightness(0.92) saturate(0.75);
}

.halftone-image-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Ccircle cx='2.5' cy='2.5' r='1' fill='%23C4956A'/%3E%3C/svg%3E");
    background-size: 5px 5px;
    opacity: 0.18;
    pointer-events: none;
}

.product-info {
    flex: 1;
    padding: 14px 20px 16px;
    display: flex;
    flex-direction: column;
    background: inherit;
}

.product-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1A0A0D;
    line-height: 1;
    margin-bottom: 8px;
}

.product-desc {
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1A0A0D;
    flex: 1;
}

.product-price {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #5C1A2E;
    letter-spacing: 0.05em;
    text-align: right;
    display: block;
    margin-top: 10px;
}

/* ---- SEASONAL FEATURE ---- */
#seasonal {
    margin-top: -4px;
}

.seasonal-block {
    min-height: 400px;
    padding: 0;
}

.seasonal-image-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.seasonal-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #5C1A2E 0%, #8C3A50 30%, #C4956A 65%, #1A0A0D 100%);
    filter: sepia(0.35) contrast(1.15) brightness(0.92) saturate(0.75);
}

.seasonal-caption {
    padding: 20px 24px;
    flex: 1;
}

.seasonal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #F0E6D3;
    line-height: 1;
    margin-bottom: 10px;
}

.seasonal-desc {
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    color: #E8D0B5;
    line-height: 1.7;
}

.seasonal-text-block {
    min-height: 400px;
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.seasonal-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    font-style: italic;
    color: #E8D0B5;
    line-height: 1.8;
    flex: 1;
    margin-top: 16px;
}

.leaf-motif {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.leaf-motif svg {
    width: 60px;
    height: 85px;
}

/* ---- STORY / BOTANICAL SECTION ---- */
#story {
    margin-top: -4px;
}

.story-text-block {
    min-height: 360px;
    padding: 20px 24px 28px;
}

.story-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1A0A0D;
    line-height: 1.1;
    margin-top: 12px;
    margin-bottom: 14px;
}

.ochre-rule-thin {
    border-top: 2px solid #C4956A;
    margin: 0 0 16px 0;
    width: 80px;
}

.story-body {
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    color: #1A0A0D;
    line-height: 1.75;
    margin-bottom: 12px;
}

.botanical-block {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.botanical-illustration svg {
    width: 80%;
    max-width: 220px;
    height: auto;
}

.info-block {
    min-height: 360px;
    padding: 20px 24px 28px;
}

.info-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1A0A0D;
    margin-top: 12px;
    margin-bottom: 14px;
}

.craft-list {
    list-style: none;
    margin-top: 8px;
}

.craft-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1A0A0D;
}

.petal-bullet {
    width: 10px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- CONTACT SECTION ---- */
#contact {
    margin-top: -4px;
}

.contact-block {
    min-height: 280px;
    padding: 20px 24px 28px;
}

.contact-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #F0E6D3;
    margin-top: 12px;
    margin-bottom: 16px;
}

.contact-address {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-style: normal;
    color: #C4956A;
    line-height: 2;
    display: flex;
    flex-direction: column;
    letter-spacing: 0.04em;
}

.contact-hours {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #E8D0B5;
    line-height: 2;
    letter-spacing: 0.05em;
}

.hours-label {
    font-weight: 700;
    color: #8C3A50;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.closing-block {
    min-height: 280px;
    padding: 40px 40px;
    display: flex;
    align-items: center;
}

.closing-content {
    width: 100%;
    text-align: left;
}

.closing-rule-top {
    border-top: 4px solid #1A0A0D;
    margin-bottom: 28px;
    width: 100%;
}

.closing-tagline {
    font-family: 'Libre Baskerville', serif;
    font-size: 22px;
    font-style: italic;
    color: #5C1A2E;
    margin-bottom: 10px;
}

.closing-mono {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8C3A50;
    margin-bottom: 24px;
}

.closing-botanical svg {
    width: 100%;
    max-width: 360px;
    height: 80px;
}

/* ---- Hover states for links on dark blocks ---- */
.block-dark a,
.block-burgundy a {
    color: #C4956A;
    text-decoration: none;
    transition: color 0.15s;
}

.block-dark a:hover {
    color: #8C3A50;
}

.block-burgundy a:hover {
    color: #E8D0B5;
}

/* ---- Decorative thick rule between major sections ---- */
.section-rule {
    display: block;
    height: 4px;
    background: #1A0A0D;
    margin: 0 24px;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .block-row {
        margin: 0 12px;
        grid-template-columns: repeat(6, 1fr);
    }

    #hero-block,
    #philosophy-block {
        margin-left: 12px;
        margin-right: 12px;
        width: calc(100% - 24px);
    }

    .block-4col {
        grid-column: span 3;
    }

    .block-8col {
        grid-column: span 6;
    }

    .hero-content {
        padding: 28px 24px;
    }

    .hero-wordmark {
        font-size: clamp(56px, 11vw, 90px);
    }
}

@media (max-width: 680px) {
    .block-row {
        grid-template-columns: 1fr;
        margin: 0 12px;
    }

    #hero-block,
    #philosophy-block {
        margin-left: 12px;
        margin-right: 12px;
        width: calc(100% - 24px);
    }

    .block-4col,
    .block-8col {
        grid-column: span 1;
    }

    .block-row .block + .block {
        margin-left: 0;
        margin-top: -4px;
    }

    .hero-illustration {
        opacity: 0.25;
    }

    .hero-wordmark {
        font-size: clamp(56px, 14vw, 80px);
    }

    #site-nav {
        padding: 0 12px;
    }

    .nav-links {
        gap: 16px;
    }

    .philosophy-headline {
        font-size: 36px;
    }
}
