/* ============================================
   John's BBRL — Premium Dark Luxury Bakery
   Forest Green + Off-White + Gold Accents
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-bg-deep: #071410;
    --color-bg-primary: #0B1F14;
    --color-bg-secondary: #0F2A1A;
    --color-bg-card: #112E1D;
    --color-bg-card-hover: #163822;
    
    --color-green-dark: #0B2B16;
    --color-green-mid: #1A4A2B;
    --color-green-accent: #2D6B42;
    --color-green-light: #4A9B64;
    
    --color-gold: #C9A84C;
    --color-gold-light: #D4B96A;
    --color-gold-dark: #A8893D;
    --color-gold-subtle: rgba(201, 168, 76, 0.12);
    --color-gold-glow: rgba(201, 168, 76, 0.25);
    
    --color-cream: #F5F0E8;
    --color-cream-light: #FAF7F2;
    --color-cream-muted: #E8E0D0;
    --color-text-primary: #F5F0E8;
    --color-text-secondary: #C8BFB0;
    --color-text-muted: #8A8078;
    
    --color-border: rgba(201, 168, 76, 0.15);
    --color-border-light: rgba(245, 240, 232, 0.08);
    
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --container-max: 1200px;
    --section-padding: clamp(80px, 12vw, 140px);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-deep);
    color: var(--color-text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
    display: block;
}

.section-eyebrow.light {
    color: var(--color-gold-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-cream);
    margin-bottom: 24px;
}

.section-title.light {
    color: var(--color-cream);
}

.section-title .gold {
    color: var(--color-gold);
    font-style: italic;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

.lead {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--color-cream-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-bg-deep);
}

.btn-primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-cream);
    border: 1.5px solid rgba(245, 240, 232, 0.3);
}

.btn-outline:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-cream);
    border: 1.5px solid rgba(245, 240, 232, 0.35);
}

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

.btn-gold {
    background: var(--color-gold);
    color: var(--color-bg-deep);
}

.btn-gold:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.35);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 20, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: var(--color-gold);
    color: var(--color-bg-deep);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    letter-spacing: 0.05em;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-cream);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-gold);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--color-gold-subtle) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-gold) !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--color-gold) !important;
    color: var(--color-bg-deep) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-cream);
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-cream);
    transition: all var(--transition-fast);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 16, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--color-cream);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.mobile-close:hover {
    color: var(--color-gold);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-cream);
    transition: color var(--transition-fast);
}

.mobile-link:hover {
    color: var(--color-gold);
}

.mobile-cta {
    margin-top: 16px;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    color: var(--color-gold) !important;
    border: 1.5px solid var(--color-gold) !important;
    padding: 14px 36px !important;
    border-radius: 50px !important;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(7, 20, 16, 0.92) 0%,
        rgba(11, 31, 20, 0.85) 40%,
        rgba(15, 42, 26, 0.75) 70%,
        rgba(7, 20, 16, 0.88) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding-top: 80px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-cream);
    margin-bottom: 28px;
}

.hero-title .gold {
    color: var(--color-gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-text-secondary);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 44px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* --- Section Base --- */
.section {
    padding: var(--section-padding) 0;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: clamp(400px, 50vw, 650px);
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.about-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--color-gold);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0.35;
}

.about-content {
    max-width: 520px;
}

.about-content p {
    color: var(--color-text-secondary);
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border-light);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--color-border);
}

/* --- Products --- */
.products {
    background: var(--color-bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 72px);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.product-card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image {
    height: 240px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-cream);
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --- Craft --- */
.craft {
    position: relative;
    padding: clamp(80px, 12vw, 140px) 0;
    overflow: hidden;
}

.craft-bg {
    position: absolute;
    inset: 0;
}

.craft-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.craft-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(7, 20, 16, 0.94) 0%,
        rgba(7, 20, 16, 0.88) 50%,
        rgba(7, 20, 16, 0.82) 100%
    );
}

.craft-content {
    position: relative;
    z-index: 1;
}

.craft-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: clamp(48px, 6vw, 64px);
}

.craft-item {
    padding: 36px;
    background: rgba(15, 42, 26, 0.5);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}

.craft-item:hover {
    border-color: var(--color-border);
    background: rgba(15, 42, 26, 0.7);
    transform: translateY(-4px);
}

.craft-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.craft-item h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-cream);
    margin-bottom: 12px;
}

.craft-item p {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
}

/* --- Visit --- */
.visit {
    background: var(--color-bg-primary);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.visit-info {
    max-width: 480px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 40px 0;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border-light);
}

.visit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.visit-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold-subtle);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-gold);
}

.visit-item h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-cream);
    margin-bottom: 4px;
}

.visit-item p,
.visit-item a {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.visit-item a:hover {
    color: var(--color-gold);
}

.visit-map {
    height: clamp(360px, 40vw, 500px);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--color-green-dark);
    padding: clamp(72px, 10vw, 100px) 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-cream);
    margin-bottom: 20px;
}

.cta-title .gold {
    color: var(--color-gold);
    font-style: italic;
}

.cta-text {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    line-height: 1.75;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* --- Footer --- */
.footer {
    background: var(--color-bg-deep);
    border-top: 1px solid var(--color-border-light);
    padding: clamp(56px, 8vw, 80px) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(48px, 6vw, 64px);
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-top: 16px;
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--color-gold);
    color: var(--color-bg-deep);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-cream);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-cream);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-contact p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 4px;
}

.footer-contact a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid var(--color-border-light);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- Reveal Animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .about-grid,
    .visit-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrap {
        order: -1;
    }

    .about-image-wrap img {
        height: clamp(300px, 40vw, 450px);
    }

    .about-image-accent {
        top: -10px;
        right: -10px;
    }

    .about-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }

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

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }
}
