:root {
    --primary-indigo: #2c3e50;
    --accent-blue: #a8dadc;
    --deep-blue: #1b2631;
    --bee-yellow: #fdfcf0;
    --bee-gold: #f0e68c;
    --bee-accent: #e67e22;
    --text-dark: #333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --honey-gold: #f7e1a0;
    --honey-gradient: linear-gradient(135deg, #fffcf0 0%, #f7e1a0 100%);
}

/* Fix for anchor links cutting off headings */
#home, #featured, #collections, #catalogue, #family { 
    scroll-margin-top: 120px; 
}

body { 
    margin: 0; font-family: 'Lora', serif; background-color: var(--bg-light); 
    color: var(--text-dark); line-height: 1.6; scroll-behavior: smooth; 
}

h1, h2, h3, h4, .logo, .label { font-family: 'Montserrat', sans-serif; text-transform: uppercase; margin: 0; }

/* --- NAVIGATION --- */
nav { 
    display: flex; justify-content: space-between; align-items: stretch;
    padding: 10px 5% 0; background: var(--white); border-bottom: 5px solid var(--primary-indigo); 
    position: sticky; top: 0; z-index: 1000; min-height: 85px;
}
.nav-branding-area { display: flex; align-items: center; gap: 20px; }
.logo-group { display: flex; flex-direction: column; justify-content: center; }
.logo a { font-size: 2.8rem; font-weight: 800; letter-spacing: -1px; text-decoration: none; color: var(--primary-indigo); line-height: 1; }
.series-tag-subtle { font-family: 'Montserrat'; font-size: 0.8rem; font-weight: 700; color: var(--bee-accent); letter-spacing: 1px; margin-top: 2px; }
.nav-character-placeholder { height: 65px; width: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.1)); }
nav ul { display: flex; list-style: none; gap: 30px; margin: 0; align-items: flex-end; padding-bottom: 8px; }
nav a { text-decoration: none; color: var(--primary-indigo); font-weight: 700; font-size: 0.9rem; transition: color 0.3s; text-transform: uppercase; }
nav a:hover { color: var(--accent-blue); }
nav.subsite-nav { background: #fffdf0; border-bottom: 5px solid var(--bee-gold); }

/* --- 1. BRAND INTRO SECTION --- */
.brand-intro-section { background-color: var(--white); padding: 100px 5% 60px; text-align: center; }
.brand-intro-container { max-width: 900px; margin: 0 auto; }
.brand-intro-section h2 { font-size: 2.8rem; color: var(--primary-indigo); margin-bottom: 25px; font-weight: 800; line-height: 1.2; }
.brand-intro-section p { font-family: 'Lora', serif; font-size: 1.3rem; color: #444; line-height: 1.6; max-width: 800px; margin: 0 auto 40px; }
.boutique-divider { width: 60px; height: 4px; background-color: var(--accent-blue); margin: 0 auto; }

/* --- 2. FEATURED HERO (Main Page 3D) --- */
.featured-hero { 
    background: linear-gradient(135deg, var(--primary-indigo) 0%, var(--deep-blue) 100%), url('images/SampleColours.jpg') center/cover; 
    color: var(--white); padding: 80px 5% 40px 5%; min-height: 900px; display: flex; align-items: flex-start; 
}
.hero-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: flex-start; gap: 60px; width: 100%; }
.hero-left-column, .hero-right-column { display: flex; flex-direction: column; align-items: center; width: 100%; }
.brand-header-block { width: 100%; text-align: left; }
.brand-header-block h1 { font-size: 2.8rem; margin: 0 0 10px; line-height: 1.1; font-weight: 800; white-space: nowrap; }
.tagline-sub { font-size: 1.2rem; opacity: 0.9; font-style: italic; width: 100%; max-width: 500px; text-align: left; margin: 0; line-height: 1.4; min-height: 3.4rem; }

.top-character-anchor { width: 100%; height: 7.5rem; display: flex; justify-content: center; align-items: flex-end; }
.top-bee-visual { max-height: 100%; width: auto; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3)); }
.tagline-alignment-zone { width: 100%; display: flex; justify-content: center; align-items: center; height: 5rem; margin-top: 10px; }
.section-tagline { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.8rem; color: var(--accent-blue); margin: 0; text-transform: uppercase; letter-spacing: 5px; }

.interaction-alignment-wrapper { width: 100%; display: flex; justify-content: center; align-items: center; min-height: 500px; margin-top: 10px; }
.meet-family-btn-link, .book-link-wrapper-square { width: 350px; text-decoration: none; transition: transform 0.3s; display: block; position: relative; }

/* 3D MIRROR EFFECTS */
.book-placeholder-3d.is-square { 
    background: #333; border-radius: 4px; display: flex; align-items: center; justify-content: center; 
    box-shadow: 15px 25px 50px rgba(0,0,0,0.6); transform: perspective(1000px) rotateY(-10deg); 
    border-left: 10px solid #111; position: relative; aspect-ratio: 1 / 1; overflow: hidden; 
}
.book-placeholder-3d img { width: 100%; height: 100%; object-fit: contain; position: absolute; top: 0; left: 0; }
.family-placeholder-3d { 
    width: 100%; display: flex; justify-content: center; align-items: center; box-shadow: 0 15px 25px rgba(0,0,0,0.4); 
    border-radius: 4px; position: relative; transform: perspective(1000px) rotateY(10deg); overflow: hidden; 
}
.family-cta-image { width: 100%; height: auto; display: block; }

/* --- 3. COLLECTIONS GRID --- */
.container { max-width: 1200px; margin: 80px auto; padding: 0 5%; }
/* RESTORED: margin-bottom fixed to 60px as per baseline */
.section-intro { text-align: center; margin-bottom: 60px; }
.section-intro h2 { font-size: 2.8rem; color: var(--primary-indigo); font-weight: 800; }

.series-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.series-card { background: var(--white); border: 1px solid #ddd; padding: 30px; text-align: center; text-decoration: none; color: inherit; transition: 0.3s; width: 100%; max-width: 400px; }
.series-card:hover { transform: translateY(-10px); border-color: var(--primary-indigo); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.image-box { height: 280px; background: #f9f9f9; margin-bottom: 25px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.image-box img { max-width: 80%; max-height: 80%; object-fit: contain; } 
.card-info h3 { font-size: 1.8rem; margin-bottom: 10px; color: var(--primary-indigo); }
.status { display: inline-block; margin-top: 15px; font-family: 'Montserrat'; font-weight: 700; font-size: 0.9rem; color: var(--primary-indigo); border-bottom: 3px solid var(--accent-blue); }

/* --- 4. 10 BEES SUBSITE --- */
.bees-theme { background: var(--honey-gradient); }
.book-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin: 40px auto; max-width: 1200px; }
.book-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.flat-book-cover { width: 250px; height: 250px; margin-bottom: 20px; background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; }
.flat-book-cover img { max-width: 90%; max-height: 90%; object-fit: contain; }
.book-item h3 { font-size: 1.3rem; color: var(--primary-indigo); min-height: 3rem; margin-bottom: 5px; }
.lesson-note { font-size: 0.95rem; color: #555; margin-bottom: 20px; max-width: 280px; }

.character-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 40px auto; max-width: 1200px; }
.star-card { background: #fff; padding: 20px; border-radius: 12px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); cursor: pointer; transition: 0.3s; }
.star-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(230, 126, 34, 0.2); }

/* Video container locked at 200px */
.char-img-container { 
    position: relative; height: 200px; width: 100%; display: flex; 
    align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden;
}
.video-loop, .video-main { max-height: 100%; max-width: 180px; width: 100%; height: 100%; object-fit: contain; }
.video-main { display: none; position: absolute; }

/* --- FOOTER --- */
footer { padding: 60px; text-align: center; background: var(--primary-indigo); color: #fff; margin-top: 80px; }
.btn-primary { background: var(--primary-indigo); color: var(--white); padding: 12px 30px; text-decoration: none; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; transition: 0.3s; display: inline-block; }
.btn-primary:hover { background: var(--bee-accent); color: white; }

/* --- MOBILE RESPONSIVENESS (THE DEFINITIVE FIX) --- */
@media (max-width: 900px) {
    nav { flex-direction: column; align-items: center; padding-bottom: 15px; min-height: auto; }
    nav ul { gap: 15px; margin-top: 15px; padding-bottom: 0; }
    
    .hero-container { display: flex; flex-direction: column; gap: 40px; }
    .brand-header-block { text-align: center; }
    .brand-header-block h1 { white-space: normal; font-size: 2.2rem; }
    .tagline-sub { text-align: center; margin: 0 auto; }
    
    /* MANDATORY FIX: Forces the stacked containers to have height so images appear */
    .interaction-alignment-wrapper { 
        min-height: 400px; 
        margin-top: 20px;
        margin-bottom: 20px; 
        display: block; 
    }
    
    .meet-family-btn-link, .book-link-wrapper-square { 
        width: 320px; 
        height: auto;
        margin: 0 auto; 
    }

    /* DISABLE MOBILE 3D: Forces images out of absolute ghosting and into real space */
    .book-placeholder-3d.is-square, .family-placeholder-3d { 
        transform: none !important; 
        border-left: 0 !important; 
        height: auto;
        width: 100%;
    }
    
    /* Change position from absolute to relative to force container to open */
    .book-placeholder-3d img, .family-cta-image {
        position: relative !important; 
        width: 100%;
        height: auto;
    }

    .book-grid-3 { grid-template-columns: 1fr; }
    .character-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .section-intro h2 { font-size: 2.2rem; }
    .logo a { font-size: 2.2rem; }
    .nav-character-placeholder { height: 45px; }
    .container { margin: 40px auto; }
}