/* ============================================
   BBOTTL.com - Bauhaus Bottling Design System
   ============================================ */

/* === CSS Custom Properties === */
:root {
    --bottled-ink: #2B3A42;
    --aged-cream: #F2E8D5;
    --rust-label: #C4573A;
    --faded-teal: #5E8B8A;
    --mustard-seal: #D4A843;
    --press-black: #1A1A1E;
    --foxed-paper: #E8DCC8;

    --font-heading: 'Nunito', sans-serif;
    --font-subheading: 'Varela Round', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-accent: 'Comfortaa', sans-serif;

    --gutter: 32px;
    --section-padding: 48px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--bottled-ink);
    background: linear-gradient(135deg, var(--aged-cream) 0%, var(--foxed-paper) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Texture Overlays === */
.texture-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

.texture-folds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    background:
        linear-gradient(to right, transparent 49.8%, rgba(43, 58, 66, 0.02) 49.8%, rgba(43, 58, 66, 0.02) 50.2%, transparent 50.2%),
        linear-gradient(to bottom, transparent 49.8%, rgba(43, 58, 66, 0.02) 49.8%, rgba(43, 58, 66, 0.02) 50.2%, transparent 50.2%);
}

.texture-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9996;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(26, 26, 30, 0.08) 100%);
}

/* === Navigation === */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 20px 40px;
    transition: padding 0.4s ease, background-color 0.4s ease;
    background: linear-gradient(to right,
        var(--aged-cream) 0%,
        var(--aged-cream) 100%
    );
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 7px,
            rgba(43, 58, 66, 0.08) 7px,
            rgba(43, 58, 66, 0.08) 8px
        );
}

#main-nav.scrolled {
    padding: 10px 40px;
    background-color: rgba(242, 232, 213, 0.96);
    box-shadow: 0 2px 12px rgba(43, 58, 66, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-monogram {
    font-family: var(--font-accent);
    font-size: 28px;
    font-weight: 700;
    color: var(--bottled-ink);
    text-decoration: none;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#main-nav.scrolled .nav-links {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
}

.nav-dot {
    color: var(--bottled-ink);
    font-size: 18px;
    opacity: 0.4;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--bottled-ink);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--rust-label);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scale(1);
}

/* === Scroll Indicator === */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: spin 6s linear infinite;
    transition: opacity 0.5s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* === Spread (Section) Layout === */
.spread {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

.spread-inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--gutter);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
    align-items: center;
}

.spread-inner.spread-reverse {
    grid-template-columns: 7fr 5fr;
}

.spread-inner.spread-centered {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}

/* === Alternate section backgrounds === */
.spread-alt {
    background: var(--foxed-paper);
}

.spread-dark {
    background: var(--press-black);
    color: var(--aged-cream);
}

.spread-accent {
    background:
        repeating-radial-gradient(
            circle at 50% 50%,
            transparent 0px,
            transparent 40px,
            rgba(94, 139, 138, 0.05) 40px,
            rgba(94, 139, 138, 0.05) 42px
        ),
        linear-gradient(135deg, var(--aged-cream) 0%, var(--foxed-paper) 100%);
}

/* === Section Divider Rules === */
.section-rule {
    width: 120px;
    height: 4px;
    background: var(--rust-label);
    margin: 24px 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-rule.animated {
    transform: scaleX(1);
}

.section-rule-center {
    margin-left: auto;
    margin-right: auto;
    transform-origin: center center;
}

/* === Hero === */
.hero-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--faded-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.hero-circle-inner {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 2px solid rgba(242, 232, 213, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle-text {
    font-family: var(--font-accent);
    font-size: 120px;
    font-weight: 700;
    color: var(--aged-cream);
    letter-spacing: -4px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 900;
    color: var(--bottled-ink);
    letter-spacing: 8px;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
}

.hero-title .char.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-subtitle {
    font-family: var(--font-subheading);
    font-size: clamp(18px, 2.4vw, 28px);
    color: var(--faded-teal);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-body {
    font-size: 18px;
    line-height: 1.75;
    max-width: 520px;
    color: var(--bottled-ink);
    opacity: 0.85;
}

/* === Section Content === */
.section-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-number {
    font-family: var(--font-accent);
    font-size: 64px;
    font-weight: 700;
    color: var(--mustard-seal);
    opacity: 0.25;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    color: var(--bottled-ink);
    line-height: 1.15;
    letter-spacing: 1px;
}

.spread-dark .section-heading {
    color: var(--aged-cream);
}

.section-heading .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
}

.section-heading .word.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-body {
    font-size: 17px;
    line-height: 1.75;
    max-width: 560px;
    color: var(--bottled-ink);
    margin-top: 12px;
}

.section-body.light-text,
.light-text {
    color: var(--aged-cream);
    opacity: 0.9;
}

/* === Drop Caps === */
.drop-cap {
    font-family: var(--font-accent);
    font-size: 4em;
    float: left;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 6px;
    color: var(--mustard-seal);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.drop-cap.animated {
    opacity: 1;
    transform: translateY(0);
}

.drop-cap-light {
    color: var(--mustard-seal);
}

/* === Bottle Frame === */
.bottle-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    padding: 40px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.bottle-frame.visible {
    opacity: 1;
    transform: scale(1);
}

.bottle-svg {
    width: 120px;
    height: auto;
    filter: saturate(0.85) sepia(0.08);
}

/* === Geometric Composition === */
.geometric-composition {
    position: relative;
    width: 360px;
    height: 360px;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.geometric-composition.visible {
    opacity: 1;
    transform: scale(1);
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--faded-teal);
}

.geo-circle-1 {
    width: 200px;
    height: 200px;
    top: 20px;
    left: 20px;
    background: rgba(94, 139, 138, 0.1);
}

.geo-circle-2 {
    width: 140px;
    height: 140px;
    bottom: 40px;
    right: 30px;
    background: rgba(212, 168, 67, 0.12);
    border-color: var(--mustard-seal);
}

.geo-rect {
    position: absolute;
    width: 160px;
    height: 100px;
    bottom: 80px;
    left: 60px;
    border: 2px solid var(--bottled-ink);
    border-radius: 4px;
    background: rgba(43, 58, 66, 0.04);
}

.geo-triangle {
    position: absolute;
    top: 120px;
    right: 60px;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid var(--rust-label);
    opacity: 0.2;
}

/* === Process Steps === */
.process-steps {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-icon {
    opacity: 0.7;
}

.step-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bottled-ink);
    opacity: 0.7;
}

/* === Pull Quote === */
.pull-quote {
    margin-top: 32px;
    padding: 28px 32px;
    position: relative;
    background:
        repeating-radial-gradient(
            circle,
            rgba(212, 168, 67, 0.12) 0px,
            rgba(212, 168, 67, 0.12) 3px,
            transparent 3px,
            transparent 24px
        );
    border-radius: 4px;
}

.pull-quote p {
    font-family: var(--font-subheading);
    font-size: 20px;
    color: var(--aged-cream);
    font-style: normal;
    line-height: 1.5;
}

/* === Concentric Rings (Philosophy Visual) === */
.philosophy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.philosophy-visual.visible {
    opacity: 1;
    transform: scale(1);
}

.concentric {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.concentric-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(94, 139, 138, 0.25);
}

.concentric-ring-1 {
    width: 320px;
    height: 320px;
}

.concentric-ring-2 {
    width: 240px;
    height: 240px;
}

.concentric-ring-3 {
    width: 160px;
    height: 160px;
}

.concentric-ring-4 {
    width: 80px;
    height: 80px;
    border-color: var(--mustard-seal);
}

.concentric-center {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--mustard-seal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.concentric-center span {
    font-family: var(--font-accent);
    font-size: 28px;
    font-weight: 700;
    color: var(--press-black);
}

/* === Collection Grid === */
.collection-grid {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: center;
    padding: 40px 0;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.collection-grid.visible {
    opacity: 1;
    transform: scale(1);
}

.collection-bottle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.collection-bottle:hover {
    transform: translateY(-4px);
}

.collection-bottle svg {
    width: 80px;
    height: auto;
    filter: saturate(0.85) sepia(0.08);
}

.bottle-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bottled-ink);
    opacity: 0.7;
}

/* === Legacy Section === */
.legacy-badge {
    margin-bottom: 32px;
}

.legacy-heading {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    color: var(--bottled-ink);
    line-height: 1.1;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.legacy-heading .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
}

.legacy-heading .word.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.legacy-text {
    font-size: 18px;
    line-height: 1.75;
    max-width: 600px;
    color: var(--bottled-ink);
    opacity: 0.85;
    margin-top: 12px;
}

/* === Footer === */
#site-footer {
    background: var(--press-black);
    color: var(--aged-cream);
    padding: 40px 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-mark {
    font-family: var(--font-accent);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--aged-cream);
}

.footer-year {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--aged-cream);
    opacity: 0.5;
}

.footer-tagline {
    font-family: var(--font-subheading);
    font-size: 14px;
    color: var(--aged-cream);
    opacity: 0.6;
}

/* === Link Hover Effect === */
a:not(.nav-link):not(.nav-monogram) {
    color: var(--bottled-ink);
    text-decoration: none;
    background-image: linear-gradient(var(--rust-label), var(--rust-label));
    background-size: 0% 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

a:not(.nav-link):not(.nav-monogram):hover {
    background-size: 100% 2px;
}

/* === Card Hover with Hatching === */
.card-hover-zone {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(196, 87, 58, 0.1) 10px,
        rgba(196, 87, 58, 0.1) 12px
    );
    transition: opacity 0.3s ease;
    border-radius: 4px;
    z-index: -1;
}

.card-hover-zone:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(43, 58, 66, 0.1);
}

.card-hover-zone:hover::before {
    opacity: 1;
}

/* === Concentric Circle Section Background Pattern === */
.spread-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-radial-gradient(
        circle at 30% 60%,
        transparent 0px,
        transparent 60px,
        rgba(94, 139, 138, 0.04) 60px,
        rgba(94, 139, 138, 0.04) 62px
    );
    pointer-events: none;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .spread-inner,
    .spread-inner.spread-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 40px;
    }

    .spread-inner.spread-reverse > .spread-left {
        order: 1;
    }

    .spread-inner.spread-reverse > .spread-right {
        order: 2;
    }

    .hero-circle {
        width: 240px;
        height: 240px;
    }

    .hero-circle-inner {
        width: 190px;
        height: 190px;
    }

    .hero-circle-text {
        font-size: 80px;
    }

    .geometric-composition {
        width: 280px;
        height: 280px;
    }

    .geo-circle-1 {
        width: 160px;
        height: 160px;
    }

    .geo-circle-2 {
        width: 110px;
        height: 110px;
    }

    .geo-rect {
        width: 120px;
        height: 80px;
    }

    .concentric {
        width: 260px;
        height: 260px;
    }

    .concentric-ring-1 { width: 260px; height: 260px; }
    .concentric-ring-2 { width: 200px; height: 200px; }
    .concentric-ring-3 { width: 140px; height: 140px; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 32px;
    }

    #main-nav {
        padding: 14px 20px;
    }

    .nav-links {
        display: none;
    }

    .spread-inner,
    .spread-inner.spread-reverse {
        padding: 0 24px;
    }

    .hero-title {
        letter-spacing: 4px;
    }

    .collection-grid {
        gap: 16px;
    }

    .collection-bottle svg {
        width: 60px;
    }

    .process-steps {
        gap: 20px;
    }

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

    .footer-left {
        flex-direction: column;
        gap: 8px;
    }
}
