/* ==========================================
   OUR COMPANY PAGE
   Editorial Hero & Zig-Zag Timeline
   ========================================== */

.company-section {
    background-color: #E6E4E0; /* Alabaster Background */
    min-height: 100vh;
    padding: 10rem 5% 6rem 5%;
    overflow: hidden;
}

/* --- 1. EDITORIAL HERO CARD --- */
.editorial-hero {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 8rem;
}

.hero-card {
    background-color: #ffffff; 
    width: 100%;
    max-width: 1200px;
    border-radius: 20px;
    padding: 4rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    overflow: hidden; /* Added this */
}

.micro-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555555;
    position: relative; /* Added this */
    z-index: 3;
}

.top-text {
    margin-bottom: 2rem;
}

.bottom-text {
    margin-top: 2rem;
}

.overlap-group {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 450px;
}

.hero-center-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Sends the image to the back */
}

.massive-text {
    position: relative;
    z-index: 2;
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 600;
    color: #050505;
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); 
}

.massive-text .accent-red {
    color: #8B0000; /* Deep red accent to match the site theme */
}

/* --- 2. ZIG-ZAG TIMELINE --- */
.timeline-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* The Central Axis Line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background-color: rgba(5, 5, 5, 0.15); 
    z-index: 1;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 8rem; /* Increased gap for better breathing room */
    position: relative;
    z-index: 2;
}

.timeline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

/* Reverses the DOM order (Makes it Image L / Text R) */
.timeline-row.reversed {
    flex-direction: row-reverse;
}

/* Children take exactly half the width */
.timeline-content,
.timeline-visual {
    width: 50%;
    position: relative;
}

/* Visuals (Images) */
.timeline-visual {
    display: flex;
    justify-content: center;
}

.timeline-visual img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

/* Typography */
.timeline-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #050505;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.timeline-content .accent-red {
    color: #8B0000;
}

.timeline-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555555;
    max-width: 450px;
}

/* --- ZIG-ZAG ALIGNMENT LOGIC --- */
/* Block 1 & 3: Text is on the Left */
.timeline-row:not(.reversed) .timeline-content {
    padding-right: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Pushes text towards center line */
    text-align: right;
}

.timeline-row:not(.reversed) .timeline-marker {
    position: absolute;
    top: 50%;
    right: -6px; /* Sits exactly on the center line */
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #8B0000;
    border-radius: 50%;
}

/* Block 2 & 4: Text is on the Right */
.timeline-row.reversed .timeline-content {
    padding-left: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Pushes text towards center line */
    text-align: left;
}

.timeline-row.reversed .timeline-marker {
    position: absolute;
    top: 50%;
    left: -6px; /* Sits exactly on the center line */
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #8B0000;
    border-radius: 50%;
}

/* --- ANIMATIONS --- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-trigger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-trigger.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUpEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .massive-text {
        font-size: clamp(3rem, 15vw, 5rem);
    }
    
    .timeline-line {
        left: 20px; 
    }
    
    .timeline-row,
    .timeline-row.reversed {
        flex-direction: column-reverse; /* Always keeps image on top of text on mobile */
        gap: 2rem;
    }
    
    .timeline-content,
    .timeline-visual {
        width: 100%;
    }
    
    .timeline-content p {
        max-width: 100%;
    }
    
    /* Reset alignment for mobile */
    .timeline-row:not(.reversed) .timeline-content,
    .timeline-row.reversed .timeline-content {
        padding: 0 0 0 3rem; 
        align-items: flex-start;
        text-align: left;
    }
    
    /* Move all markers to the left line */
    .timeline-row:not(.reversed) .timeline-marker,
    .timeline-row.reversed .timeline-marker {
        left: -34px; 
        right: auto;
    }
}

/* ==========================================
   NEW SECTION HEADERS (Future of Packaging Style)
   ========================================== */
.section-header {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.short-red-line {
    width: 45px;
    height: 3px;
    background-color: #8B0000;
    margin: 1.25rem 0; /* Creates breathing room between micro-text and massive text */
}

/* Ensure the massive text in standard sections inherits the hero sizing but resets alignment */
.section-header .massive-text {
    font-size: clamp(3.5rem, 8vw, 6rem); /* Slightly smaller than the hero, but still massive */
}

/* ==========================================
   OUR VALUES SECTION
   ========================================== */
.values-section {
    position: relative;
    max-width: 1200px;
    margin: 8rem auto 0 auto;
    padding: 2rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 6rem; /* Vertical gap 4rem, Horizontal gap 6rem */
}

.value-item {
    display: flex;
    flex-direction: column;
}

.value-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8B0000;
    font-weight: 700;
    margin-bottom: 1rem;
}

.value-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #050505;
}

/* ==========================================
   THE GROUP SECTION
   ========================================== */
.group-section {
    position: relative;
    max-width: 1200px;
    margin: 10rem auto 0 auto;
    padding: 2rem 0;
    border-top: 1px solid rgba(5, 5, 5, 0.1); /* Subtle divider from values */
    padding-top: 8rem;
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem; 
}

.group-division {
    display: flex;
    flex-direction: column;
}

.division-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Logo placeholder sizing */
.division-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background-color: #D8D6D2; /* Placeholder color until you drop the image in */
    border-radius: 50%; /* Keeps it circular like the screenshot */
}

.division-name {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #050505;
    font-weight: 600;
}

.division-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: #050505;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.division-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 1.5rem;
}

.division-text p:last-child {
    margin-bottom: 0;
}

/* --- MOBILE RESPONSIVENESS FOR NEW SECTIONS --- */
@media (max-width: 900px) {
    .values-grid,
    .group-grid {
        grid-template-columns: 1fr; /* Stacks to 1 column on mobile */
        gap: 3.5rem;
    }
    
    .values-section {
        margin: 5rem auto 0 auto;
    }
    
    .group-section {
        margin: 6rem auto 0 auto;
        padding-top: 5rem;
    }

    .main-nav .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        padding: 1rem 1.5rem !important;
        box-sizing: border-box; /* Prevents padding from causing overflow */
    }

    /* Hide the Logo */
    .main-nav .nav-brand {
        display: none !important;
    }

    /* Burger Menu Left (Stays Dark) */
    .main-nav .mobile-toggle {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 0 !important;
        order: 1;
        display: flex !important;
    }

    /* Force Quote Button to Show on Right */
    .main-nav .nav-actions {
        position: relative !important;
        display: block !important;
        order: 2;
    }

    /* Scale the button slightly for small screens */
    .main-nav .nav-quote-pill {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
    }

    .timeline-visual {
        padding-left: 3rem !important; /* Matches the text padding */
        box-sizing: border-box;
    }

    /* 2. Lock the red dots onto the timeline axis */
    /* Line is at 20px. Dot is 12px wide. 20px - 6px (center) = 14px */
    .timeline-row:not(.reversed) .timeline-marker,
    .timeline-row.reversed .timeline-marker {
        left: 14px !important; 
        right: auto !important;
        z-index: 10 !important; /* Forces the dot to sit visibly above the line */
    }
}