/* --- LUXURY VARIABLES & RESET --- */
:root {
    --bg-color: #FAF9F6; /* Alabaster / Plaster */
    --text-main: #2A2522; /* Deep Espresso */
    --accent: #C5A880; /* Champagne Gold */
    --accent-dark: #A4865D;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --easing: cubic-bezier(0.16, 1, 0.3, 1); /* Apple-style liquid smooth easing */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--white); }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; }
a { text-decoration: none; color: inherit; transition: color 0.4s var(--easing); }

/* --- CINEMATIC REVEAL ANIMATIONS --- */
.reveal-text, .reveal-fade {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s var(--easing), transform 1.2s var(--easing);
}

.reveal-img-container {
    overflow: hidden;
    position: relative;
    visibility: hidden;
}

.reveal-img-container img, .reveal-img-container .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3);
    transition: transform 2s var(--easing);
}

.reveal-img-container.active { visibility: visible; }
.reveal-img-container.active img, .reveal-img-container.active .bg-img { transform: scale(1); }
.reveal-text.active, .reveal-fade.active { opacity: 1; transform: translateY(0); }

/* --- NAVIGATION --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 2rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
    background: transparent;
    transition: background 0.5s ease, padding 0.5s ease;
}

.navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 4rem;
    border-bottom: 1px solid rgba(42, 37, 34, 0.05);
}

.logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; letter-spacing: -0.5px; z-index: 2001; }
.nav-links { display: flex; gap: 3rem; }
.nav-links a { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; position: relative; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
    background: var(--text-main); transition: width 0.4s var(--easing);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.menu-toggle { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-main); z-index: 2001; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; position: relative; overflow: hidden;
    background-color: var(--text-main);
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('crumbs-bakehouse-luxury-desserts-sussex.jpg') center/cover no-repeat;
    opacity: 0.6; 
    z-index: 0;
}

.hero-content { position: relative; z-index: 1; color: var(--white); padding: 0 2rem; max-width: 900px; }
.hero-content h1 { font-size: clamp(3rem, 6vw, 6rem); line-height: 1; margin-bottom: 2rem; font-style: italic; font-weight: 300; }
.hero-content p { font-size: 1.2rem; font-weight: 300; letter-spacing: 1px; margin-bottom: 3rem; text-transform: uppercase; }

.btn-primary {
    display: inline-block; padding: 1.2rem 3rem;
    border: 1px solid var(--white); color: var(--white);
    text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem;
    position: relative; overflow: hidden; transition: color 0.4s var(--easing);
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--white); transition: transform 0.6s var(--easing); z-index: -1;
}
.btn-primary:hover { color: var(--text-main); }
.btn-primary:hover::before { transform: translateX(100%); }

/* --- EDITORIAL MENU SHOWCASE --- */
.editorial-section { padding: 10rem 4rem; max-width: 1400px; margin: 0 auto; }
.section-title { font-size: 3.5rem; text-align: center; margin-bottom: 8rem; }

.editorial-block {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10rem; gap: 4rem;
}
.editorial-block:nth-child(even) { flex-direction: row-reverse; } 

.block-img-wrapper { 
    flex: 1; 
    max-width: 55%; 
    height: 70vh; 
    border-radius: 16px; 
}
.block-text { flex: 1; padding: 0 3rem; }

.block-text h3 { font-size: 3rem; margin-bottom: 1.5rem; font-style: italic; }
.block-text p { font-size: 1.1rem; color: #555; margin-bottom: 2rem; }

.editorial-line { width: 40px; height: 2px; background: var(--accent); margin-bottom: 2rem; }

/* --- INSTAGRAM CAROUSEL (Upgraded with Color Banner) --- */
.insta-carousel-section {
    padding: 0 0 10rem 0;
    background-color: var(--bg-color);
    overflow: hidden;
    text-align: center; 
}

/* THE NEW COLOUR BANNER */
.insta-carousel-header {
    background-color: var(--accent); /* Champagne Gold background */
    padding: 5rem 2rem; /* Thick, luxurious padding */
    margin-bottom: 6rem; /* Huge separation before the photos start */
}

.insta-carousel-header p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white); /* White text pops elegantly off the gold */
    margin-bottom: 1rem;
}

.insta-header-handle {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-body); 
    font-size: 1.6rem; /* Made slightly larger for the banner */
    letter-spacing: 1px;
    color: var(--text-main); /* Deep espresso handle */
    transition: color 0.4s var(--easing);
}

.insta-header-handle i {
    font-size: 2.2rem; 
}

.insta-header-handle:hover {
    color: var(--white); /* Turns white when they hover */
}

.carousel-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scrollCarousel 40s linear infinite;
    gap: 0; 
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-slide {
    display: flex;
}

.carousel-item {
    display: block;
    position: relative;
    width: 280px;
    height: 280px;
    margin-right: 2rem; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--easing); 
}

.insta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(42, 37, 34, 0.7); 
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0; 
    transition: opacity 0.5s var(--easing);
    padding: 2rem;
}

.insta-overlay i {
    font-size: 3rem; 
}

.insta-overlay span {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

.carousel-item:hover .carousel-img {
    transform: scale(1.1); 
}

.carousel-item:hover .insta-overlay {
    opacity: 1; 
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- EVENTS SECTION --- */
.events-section { background-color: var(--text-main); color: var(--white); padding: 10rem 4rem; text-align: center; }
.events-section h2 { font-size: 3.5rem; margin-bottom: 2rem; color: var(--accent); }
.events-section p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 5rem auto; font-weight: 300; opacity: 0.8; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; max-width: 1200px; margin: 0 auto; }
.event-item h4 { font-size: 2rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
.event-item p { font-size: 1rem; opacity: 0.7; }

/* --- LARGE CONTACT TEXT --- */
.mega-contact { font-size: clamp(3rem, 8vw, 8rem); line-height: 1; color: var(--text-main); transition: color 0.4s ease; display: block; margin: 2rem 0; }
.mega-contact:hover { color: var(--accent); }

/* --- FOOTER --- */
footer { padding: 6rem 4rem; display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-left h2 { font-size: 2rem; margin-bottom: 1rem; }
.footer-left p { opacity: 0.6; font-size: 0.9rem; }
.social-links a { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; margin-right: 2rem; }
.social-links a:hover { color: var(--accent); }

/* --- MOBILE RESPONSIVENESS (Upgraded 2-Column App Grid) --- */
@media (max-width: 900px) {
    .navbar { padding: 1.5rem 2rem; }
    .navbar.scrolled { padding: 1rem 2rem; }
    .menu-toggle { display: block; }
    
    .logo { font-size: 1.4rem; } 
    
    .nav-links {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--bg-color); flex-direction: column; justify-content: center; align-items: center;
        gap: 3rem; font-size: 2rem; opacity: 0; visibility: hidden; transition: all 0.5s var(--easing);
    }
    .nav-links.nav-active { opacity: 1; visibility: visible; }
    
    .events-section { padding: 6rem 2rem; }
    .events-section h2 { font-size: 2.2rem; }
    .event-grid { gap: 3rem; }

    .editorial-section { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 1.5rem; 
        padding: 5rem 1.5rem; 
    }
    .section-title { 
        grid-column: 1 / -1; 
        font-size: 2.5rem; 
        margin-bottom: 3rem; 
    }
    
    .editorial-block, .editorial-block:nth-child(even) { 
        flex-direction: column; 
        gap: 1rem; 
        margin-bottom: 2rem; 
        align-items: flex-start; 
    }
    
    .block-img-wrapper { 
        width: 100%; 
        max-width: 100%; 
        height: 220px; 
        border-radius: 12px; 
    }
    
    .block-text { flex: 1; padding: 0; text-align: left; }
    .block-text h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
    .block-text p { font-size: 0.85rem; margin-bottom: 0; line-height: 1.4; }
    .editorial-line { display: none; }

    /* Carousel Banner Mobile Fixes */
    .insta-carousel-header { padding: 4rem 1.5rem; margin-bottom: 4rem; }
    .insta-carousel-header p { font-size: 0.9rem; letter-spacing: 2px; }
    .insta-header-handle { font-size: 1.2rem; }
    .insta-header-handle i { font-size: 1.6rem; }
    
    .carousel-item { width: 180px; height: 180px; margin-right: 1.5rem; border-radius: 12px; }
    .carousel-track { animation-duration: 30s; }
    
    .insta-overlay i { font-size: 2rem; }
    .insta-overlay span { font-size: 0.75rem; letter-spacing: 1px; }

    footer { flex-direction: column; align-items: center; text-align: center; gap: 3rem; padding: 4rem 2rem; }
    .social-links a { margin: 0 1rem; }
}