/* =============================================================
   about-us.css  — Inner page styles for About Us
   Extends: css/index.css (shared design system)
   ============================================================= */

/* ── 2. Page Hero Banner ──────────────────────────────────────
   Inherits base page hero banner styling from css/index.css.
   ─────────────────────────────────────────────────────────── */

.page-breadcrumb span[aria-current] {
    color: var(--primary-color);
    font-weight: 500;
}


/* ── 3. Main Content wrapper ──────────────────────────────────
   White background, standard container.
   ─────────────────────────────────────────────────────────── */
.about-main {
    background-color: #ffffff;
}

.about-container {
    padding-top: 5rem;
    padding-bottom: 5rem;
}


/* ── 4. Two-column Top Grid ───────────────────────────────────
   Image column = 41.66666667% (5/12) — same ratio as homepage.
   Content column = remaining space after gap.
   Container max-width 1280px is already set in index.css.
   ─────────────────────────────────────────────────────────── */
.about-top-grid {
    display: grid;
    grid-template-columns: 33.33333333% 1fr;
    gap: 5rem;           /* matches .empower-grid gap on homepage */
    align-items: center; /* vertically centre like homepage */
    margin-bottom: 4rem;
}

/* Team photo */
.about-image-col {
    /* nothing extra needed — width comes from the grid column */
}

.about-team-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;   /* matches .empower-img-container img on homepage */
    box-shadow: var(--shadow-heavy);
    object-fit: cover;
}

/* Right-side intro copy — no font-size overrides, let index.css globals apply */
.about-copy-col {
    padding-top: 0;
}

/* h2 inside copy col: inherits 50px from index.css h1,h2 rule — no override needed */
.about-main-heading {
    margin: 0.4rem 0 1.5rem; /* spacing only, no size override */
}

/* h3 inside copy col: inherits Playfair 700 from index.css h3 rule */
.about-sub-heading {
    margin: 2rem 0 0.8rem;   /* spacing only */
}

/* p inside copy col: inherits 16px / 1.7 line-height from index.css p rule */
.about-copy-col p {
    margin-bottom: 1.2rem;
}

.about-copy-col p:last-child {
    margin-bottom: 0;
}


/* ── 5. Full-width body content sections (Editorial Layout) ── */
.about-body-content {
    border-top: 1px solid rgba(150, 178, 174, 0.18);
    padding-top: 2rem;
}

.about-editorial-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
    padding: 5rem 0;
    border-bottom: 1px solid rgba(150, 178, 174, 0.15);
}

.about-editorial-row:last-of-type {
    border-bottom: none;
    padding-bottom: 6rem;
}

/* Specific rows styling */
.expertise-row {
    grid-template-columns: 1.2fr 1fr;
}

/* Editorial quote card style */
.editorial-quote-card {
    background-color: var(--bg-cream);
    border-left: 3px solid var(--primary-color);
    padding: 3.5rem 2.8rem;
    border-radius: 0 24px 24px 0;
    position: relative;
    box-shadow: var(--shadow-subtle);
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--primary-light);
    position: absolute;
    top: -1rem;
    left: 1.5rem;
    line-height: 1;
    opacity: 0.8;
    user-select: none;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.quote-author {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    font-style: normal;
    display: block;
}

/* Headings & Description text */
.editorial-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.25;
    font-weight: 400;
}

.editorial-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-medium);
}

/* Minimalist list for expertise */
.expertise-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0;
}

.expertise-list li {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background-color: var(--bg-cream);
    padding: 1.2rem 1.8rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.expertise-list li:hover {
    transform: translateX(6px);
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-subtle);
}

.expertise-list .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: inline-block;
}

/* Tech Grid */
.tech-spec-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-spec-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--bg-cream);
    padding: 1.6rem 2.2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-subtle);
}

.tech-spec-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-medium);
}

.tech-spec-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.tech-spec-item span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Call to Action Card style */
.about-cta-section {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--primary-light) 100%);
    border-radius: 24px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 4rem;
    box-shadow: var(--shadow-subtle);
}

.about-cta-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
}

.about-cta-content p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
}

.about-cta-content .cta-btn {
    padding: 1.1rem 2.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(150, 178, 174, 0.3);
    transition: var(--transition-smooth);
}

.about-cta-content .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(150, 178, 174, 0.45);
}


/* ── 6. Stats Row ─────────────────────────────────────────────
   Matches the screenshot exactly:
   ─ Light grey background
   ─ 4 columns with thin vertical dividers
   ─ Large serif numbers, small uppercase labels
   ─────────────────────────────────────────────────────────── */
.about-stats-row {
    background-color: #f4f6f5;
    border-top: 1px solid #e2e8e6;
    border-bottom: 1px solid #e2e8e6;
    padding: 0;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.about-stat-item {
    position: relative;
    text-align: center;
    padding: 3.5rem 1rem;
}

/* Vertical divider between stats */
.about-stat-item + .about-stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #c8d4d2;
}

.about-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: #7e8b8b;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    line-height: 1.4;
}


/* ── 7. Responsive ────────────────────────────────────────────*/

/* Large tablet — keep percentage, reduce gap */
@media (max-width: 1024px) {
    .about-top-grid {
        grid-template-columns: 33.33333333% 1fr;
        gap: 3rem;
    }
    
    .about-editorial-row {
        gap: 3rem;
    }
}

/* Tablet / small laptop — grid collapses to single column */
@media (max-width: 860px) {
    .about-top-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-editorial-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 4rem 0;
    }

    .expertise-row {
        grid-template-columns: 1fr;
    }

    /* Keep headings first when collapsed */
    .expertise-row .editorial-left {
        order: 1;
    }
    
    .expertise-row .editorial-right {
        order: 2;
    }

    /* Image: constrain width and centre it */
    .about-team-img {
        max-width: 480px;
        margin: 0 auto;
    }

    .about-copy-col {
        padding-top: 0;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stat-item:nth-child(2)::before {
        display: block;
    }

    /* Remove divider from 3rd item (starts a new row) */
    .about-stat-item:nth-child(3)::before {
        display: none;
    }

    .about-stat-item:nth-child(3),
    .about-stat-item:nth-child(4) {
        border-top: 1px solid #c8d4d2;
    }
}

/* ─────────────────────────────────────────────────────────────
   768px — Direct element targeting for mobile center alignment.
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Image: centre the photo */
    .about-image-col {
        display: flex;
        justify-content: center;
    }

    .about-team-img {
        max-width: 90%;
    }

    /* section-tag */
    .about-copy-col .section-tag {
        text-align: center;
    }

    /* Intro column — target every element type directly */
    .about-copy-col h2,
    .about-main-heading {
        text-align: center;
    }

    .about-copy-col h3,
    .about-sub-heading {
        text-align: center;
    }

    .about-copy-col p {
        text-align: center;
    }

    /* Buttons in intro column */
    .about-copy-col .btn {
        display: block;
        width: fit-content;
        margin: 0.5rem auto 0;
    }

    /* Editorial layouts centering */
    .about-editorial-row {
        text-align: center;
    }

    .editorial-quote-card {
        border-left: none;
        border-top: 3px solid var(--primary-color);
        border-radius: 0 0 24px 24px;
        padding: 2.5rem 1.8rem;
    }

    .quote-mark {
        left: 50%;
        transform: translateX(-50%);
        top: -0.5rem;
    }

    .expertise-list li {
        justify-content: center;
    }

    .tech-spec-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    /* Buttons in body content */
    .about-body-content .btn {
        display: block;
        width: fit-content;
        margin: 0.5rem auto 0;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .about-container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Stats: font sizes only — headings inherit from index.css responsive rules */
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stat-item {
        padding: 2.5rem 0.5rem;
    }

    .about-stat-number {
        font-size: 2rem;
    }
}


.about-top-grid.reverse-grid {
    grid-template-columns: 1fr 33.33333333%;
}