/* --- Editorial Hero Layout --- */
.editorial-hero {
    position: relative;
    height: 75vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Creates a dark gradient from bottom to top so text is highly visible */
    background: linear-gradient(to top, rgba(17,17,17,1) 0%, rgba(17,17,17,0.4) 60%, rgba(17,17,17,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 1rem;
    /* Textured/distressed look optional: using plain solid for clean scaling */
    color: var(--text-light); 
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #e0e0e0;
}

/* --- Stats / Timeline Blocks --- */
.stats-section {
    padding: 2rem 0;
    margin-top: -2rem; /* Pulls it up slightly into the dark section for contrast */
    position: relative;
    z-index: 3;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.stat-block {
    text-align: center;
    padding: 0 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--bg-dark);
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-divider {
    height: 1px;
    width: 100%;
    background-color: #d0d0d0;
    margin: 0 auto 1rem auto;
    position: relative;
}

/* Adds the tiny square node to the line, mimicking a timeline */
.stat-divider::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background-color: var(--brand-purple);
}

.stat-text {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    line-height: 1.4;
}

/* --- Overview Text Section --- */
.overview-section {
    padding: 4rem 0 8rem 0;
}

.overview-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.overview-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.overview-content .lead-paragraph {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    color: var(--bg-dark);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
}

.slide-up {
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    transition: opacity 1s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Kicker (Overline) --- */
.overview-kicker {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--brand-purple);
    margin-bottom: 1.5rem;
}

/* --- Pull Quote --- */
.pull-quote {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-style: italic;
    color: var(--bg-dark);
    line-height: 1.3;
    text-align: center;
    margin: 3.5rem auto;
    padding: 0 1rem;
    max-width: 90%;
    position: relative;
}

/* Minimalist top and bottom borders for the quote */
.pull-quote::before,
.pull-quote::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--brand-purple);
    margin: 0 auto;
}

.pull-quote::before {
    margin-bottom: 1.5rem;
}

.pull-quote::after {
    margin-top: 1.5rem;
}

/* --- Comprehensive Responsive Adjustments --- */

/* Tablet & Smaller Desktop */
@media (max-width: 992px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
}

/* Tablet / Large Mobile */
@media (max-width: 768px) {
    .editorial-hero {
        height: 60vh;
        min-height: 400px;
        padding-bottom: 3rem;
    }
    
    .hero-title {
        line-height: 1.1;
    }
    
    .hero-subtitle {
        letter-spacing: 2px;
    }
    
    .overview-section {
        padding: 3rem 0 5rem 0;
    }

    .pull-quote {
        font-size: 1.6rem;
        margin: 2.5rem auto;
        padding: 0 0.5rem;
    }
}

/* Mobile Devices */
@media (max-width: 576px) {
    /* Override global padding to prevent horizontal screen bleeding */
    .container {
        padding: 2rem 1rem !important; 
    }

    /* Reduce Hero text size to fit strictly inside the screen */
    .hero-title {
        font-size: 2.2rem; /* Reduced from 3rem */
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        padding: 0 1rem;
    }

    /* Compact Stats Grid */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 0.5rem; /* Tighter horizontal gap */
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .stat-text {
        font-size: 0.8rem;
    }

    /* Force Center Alignment & Prevent Container Overflow */
    .overview-container {
        text-align: center; /* Centers all paragraphs */
        padding: 0; 
    }

    .overview-content .lead-paragraph {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
    }
    
    .overview-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }
    
    .overview-kicker {
        font-size: 0.75rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
        text-align: center; /* Centers the kicker */
    }
    
    .pull-quote {
        font-size: 1.35rem; /* Scaled down for mobile */
        margin: 2rem auto;
        padding: 0 0.5rem;
    }
    
    .pull-quote::before,
    .pull-quote::after {
        width: 40px; 
    }
}

/* --- Editorial Section Headers (Values & Group) --- */
.editorial-header {
    text-align: left;
    margin-bottom: 4rem;
}

.editorial-kicker {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 1rem;
}

.editorial-accent-line {
    width: 45px;
    height: 3px;
    background-color: var(--brand-purple);
    margin-bottom: 1.5rem;
}

.editorial-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    color: var(--bg-dark);
    line-height: 1.1;
    letter-spacing: -1px;
}

.purple-text {
    color: var(--brand-purple);
}

/* --- Our Values Grid --- */
.values-section {
    padding: 6rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 6rem;
    text-align: left;
}

.value-item h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--brand-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

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

/* --- The Group Grid --- */
.group-section {
    padding: 6rem 0 8rem 0;
}

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

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

.brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #000; /* Fallback for transparent logos */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.brand-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--bg-dark);
    letter-spacing: 3px;
}

.brand-subhead {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.group-col p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

/* --- New Heading Styles (Matched to Image) --- */
.sub-heading {
    display: block;
    color: var(--brand-purple);
    font-size: 0.85em; /* Scales proportionately with the parent heading */
    font-weight: 400;
    text-transform: none; /* Ensures standard capitalization like the image */
}

.title-dash {
    display: inline-block;
    width: 80px;
    height: 4px;
    background-color: var(--brand-purple);
    margin-bottom: 0.2em;
    margin-right: 20px;
    vertical-align: middle;
}

.title-accent {
    color: var(--brand-purple);
}

/* Responsive adjustment for the dash */
@media (max-width: 768px) {
    .title-dash {
        width: 50px;
        margin-bottom: 0.3em;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .values-grid {
        gap: 3rem 2rem;
    }
    
    .group-grid {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .editorial-title {
        font-size: 3.5rem;
    }

    .values-grid,
    .group-grid {
        grid-template-columns: 1fr; /* Stacks to a single column on mobile */
    }

    .values-section, 
    .group-section {
        padding: 4rem 0;
    }

    .group-grid {
        gap: 5rem;
    }
}

@media (max-width: 576px) {
    .editorial-title {
        font-size: 2.8rem;
    }
    
    .brand-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .brand-header h3 {
        font-size: 1.25rem;
    }
    
    .brand-subhead {
        font-size: 1.15rem;
    }
    
    .value-item h4 {
        font-size: 1.15rem;
    }
}