/**
 * SkillXarc — About Us Page Styles
 * File: assets/css/about.css
 *
 * Leapfrog Technology-inspired design.
 * All classes are prefixed with "ap-" (about-page) to avoid
 * conflicts with the global theme stylesheet.
 *
 * Sections:
 *  1.  Shared tokens & utilities
 *  2.  Intro section (Image 3 layout)
 *  3.  Stats band (dark)
 *  4.  Mission section (Image 4 layout)
 *  5.  How We Work — principle cards
 *  6.  Team section (Image 5 layout)
 *  7.  Where We Work — global visual
 *  8.  Responsive breakpoints
 */

/* ─────────────────────────────────────────────────────
   1. SHARED TOKENS & UTILITIES
───────────────────────────────────────────────────── */
.ap-green       { color: #006644; }
.ap-green-dark  { color: #0d7a34; }

/* Section label — ALL CAPS, muted, letter-spaced */
.ap-lbl {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0a0e1a;
    margin-bottom: 1.25rem;
}

/* Main headline — bold, tight tracking, ink colour */
.ap-headline {
    font-family: var(--font-body);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #0a0e1a;
    margin-bottom: 1.5rem;
}
.ap-headline--md {
    font-size: clamp(2rem, 4vw, 3rem);
}
.ap-headline__green { color: #006644; }

/* Lead paragraph — larger, muted */
.ap-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #1f2937;
    max-width: 52ch;
    margin-bottom: 1.25rem;
}

/* Body paragraph — standard */
.ap-body {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #374151;
    max-width: 58ch;
    margin-bottom: 1rem;
}
.ap-body:last-of-type { margin-bottom: 0; }

/* CTA text link — uppercase, green, animated arrow */
.ap-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #006644;
    text-decoration: none;
    margin-top: 1.75rem;
    transition: gap 0.2s ease;
}
.ap-cta-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.ap-cta-link:hover { gap: 0.75rem; }

/* Green pill tag */
.ap-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #006644;
    background: #dcfce7;
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    letter-spacing: 0.01em;
}

/* Tag override for dark-background principle cards */
.ap-principles .ap-tag {
    color: #22c55e;
    background: rgba(22, 163, 74, 0.12);
}

/* Section header block */
.ap-section-header {
    max-width: 680px;
    margin-bottom: 3.5rem;
}

/* ─────────────────────────────────────────────────────
   2. INTRO SECTION
   Left text | Right tech visual card + stats strip
   Inspired by Leapfrog Image 3
───────────────────────────────────────────────────── */
.ap-intro {
    padding: calc(var(--header-height) + 2rem) 0 clamp(4rem, 7vw, 5rem);
    background: #ffffff;
}

.ap-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.ap-intro__text {}

/* Tech visual card */
.ap-vis-card {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3.6;
    background: linear-gradient(135deg, #081520 0%, #0a2018 50%, #081520 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ap-vis-card__inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* DNA stem */
.ap-dna-stem {
    width: 4px;
    height: 70%;
    background: linear-gradient(to bottom, #006644, #22c55e, #006644);
    border-radius: 4px;
    position: relative;
}

/* DNA icon badges */
.ap-dna-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
    left: 50%;
    line-height: 1;
}
.ap-dna-icon--1 { top: 4%;  left: calc(50% + 72px); }
.ap-dna-icon--2 { top: 19%; left: calc(50% - 80px); }
.ap-dna-icon--3 { top: 36%; left: calc(50% + 76px); }
.ap-dna-icon--4 { top: 53%; left: calc(50% - 72px); }
.ap-dna-icon--5 { top: 69%; left: calc(50% + 74px); }
.ap-dna-icon--6 { top: 84%; left: calc(50% - 78px); }

/* Stats strip below visual card */
.ap-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 1.25rem;
}
.ap-hero-stat {
    background: #ffffff;
    padding: 1.25rem 1rem;
    text-align: center;
}
.ap-hero-stat__num {
    display: block;
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0a0e1a;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.ap-hero-stat__lbl {
    display: block;
    font-size: 0.75rem;
    color: #374151;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────
   3. STATS BAND (dark, animated counters)
───────────────────────────────────────────────────── */
.ap-stats-band {
    background: #0a0e1a;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    overflow: hidden;
    position: relative;
}

/* Animated shimmer line at the top */
.ap-stats-band::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #006644, #22c55e, #006644);
    background-size: 200% 100%;
    animation: ap-shimmer 4s linear infinite;
}
@keyframes ap-shimmer {
    from { background-position: 0% 0%; }
    to   { background-position: 200% 0%; }
}

.ap-stats-band__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.ap-stat-cell {
    background: #0a0e1a;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: background 0.2s ease;
}
.ap-stat-cell:hover { background: rgba(255, 255, 255, 0.04); }

/* Green underline that appears on hover */
.ap-stat-cell::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: #22c55e;
    transition: width 0.4s ease;
}
.ap-stat-cell:hover::after { width: 60%; }

.ap-stat-cell__num {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.ap-stat-cell__num .ap-green { color: #22c55e; }
.ap-stat-counter { display: inline; }

.ap-stat-cell__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.70);
    margin-bottom: 0.25rem;
}
.ap-stat-cell__sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────
   4. MISSION SECTION
   Left: quote card | Right: label + headline + body
   Inspired by Leapfrog Image 4
───────────────────────────────────────────────────── */
.ap-mission {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #f7f8fa;
}

.ap-mission__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Left visual card */
.ap-mission__visual {}

.ap-mission__card {
    border-radius: 24px;
    overflow: hidden;
    min-height: 340px;
    background: linear-gradient(160deg, #e8f0fe 0%, #dbeafe 40%, #d1fae5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
}

.ap-mission__quote-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    border-left: 4px solid #006644;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    width: 100%;
}
.ap-mission__quote-block p {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.55;
    color: #0a0e1a;
    font-style: italic;
    margin: 0 0 0.75rem;
    max-width: none;
}
.ap-mission__quote-block cite {
    display: block;
    font-style: normal;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #006644;
}

.ap-mission__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #006644;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-body);
}
.ap-mission__pill svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Right text column */
.ap-mission__text {}

/* ─────────────────────────────────────────────────────
   5. HOW WE WORK — horizontal connected process flow
───────────────────────────────────────────────────── */
.ap-principles {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #0a0e1a;
}

/* Section header overrides for dark background */
.ap-principles .ap-lbl { color: #22c55e; }
.ap-principles .ap-headline { color: #ffffff; }
.ap-principles .ap-body { color: #d1d5db; }

/* Process flow row */
.ap-process {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 1rem 0 0.5rem;
    overflow: hidden;
}

/* Horizontal connecting line at node-centre height (40px = half of 80px node) */
.ap-process::before {
    content: '';
    position: absolute;
    top: calc(1rem + 40px);
    left: calc(10% + 4px);
    right: calc(10% + 4px);
    height: 3px;
    background: linear-gradient(90deg, #006644 0%, #22c55e 50%, #006644 100%);
    transform: translateY(-50%);
    z-index: 0;
}

/* Individual step */
.ap-process__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 0.5rem;
    cursor: default;
}

/* Circular node */
.ap-process__node {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #0d1321;
    border: 2.5px solid #006644;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    position: relative;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Subtle glow ring on hover */
.ap-process__step:hover .ap-process__node {
    background: #006644;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.18), 0 0 32px rgba(22, 163, 74, 0.25);
    transform: translateY(-4px);
}

.ap-process__node svg {
    width: 28px;
    height: 28px;
    color: #22c55e;
    transition: color 0.3s ease;
}
.ap-process__step:hover .ap-process__node svg { color: #ffffff; }

/* Step number badge */
.ap-process__num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #22c55e;
    margin-bottom: 0.4rem;
}

/* Step title */
.ap-process__title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f9fafb;
    margin: 0 0 0.625rem;
    transition: color 0.25s ease;
}
.ap-process__step:hover .ap-process__title { color: #22c55e; }

.ap-process__body {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #374151;
    margin: 0;
    transition: color 0.25s ease;
}
.ap-process__step:hover .ap-process__body { color: #9ca3af; }

/* ─────────────────────────────────────────────────────
   6. TEAM SECTION
   Image left | Green stats panel right
───────────────────────────────────────────────────── */
.ap-team {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #f7f8fa;
}

/* Two-column banner */
.ap-team-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 320px;
    align-items: stretch;
}

/* Left: team photo */
.ap-team-banner__image {
    border-radius: 20px;
    background: #e9ecef;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.ap-team-banner__img {
    flex: 1;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 10px;
}

/* Right: green content panel */
.ap-team-banner__content {
    background: #006644;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px 20px 80px 20px;
}

/* Globe icon */
.ap-team-banner__globe {
    width: 40px;
    height: 40px;
    color: #ffffff;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}
.ap-team-banner__globe svg {
    width: 100%;
    height: 100%;
}

/* Large count number */
.ap-team-banner__count {
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #ffffff;
    line-height: 1;
    margin: 0 0 0.5rem;
}

/* Primary description */
.ap-team-banner__desc {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.625rem;
    max-width: 30ch;
}

/* Secondary text */
.ap-team-banner__sub {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 1rem;
    max-width: 42ch;
}

/* LinkedIn CTA link */
.ap-team-banner__linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
    padding-bottom: 0.25rem;
    width: fit-content;
    transition: border-color 0.2s ease, gap 0.2s ease;
}
.ap-team-banner__linkedin svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}
.ap-team-banner__linkedin:hover {
    border-color: rgba(255, 255, 255, 0.9);
    gap: 0.75rem;
}


/* ─────────────────────────────────────────────────────
   6b. MEET THE TEAM — individual member cards
───────────────────────────────────────────────────── */
.ap-team-meet {
    padding-bottom: clamp(3rem, 5vw, 4rem);
}

.ap-team-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.ap-team-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.ap-team-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
}

.ap-team-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    margin-bottom: 0.25rem;
}
.ap-team-card__avatar--green  { background: #dcfce7; color: #006644; }
.ap-team-card__avatar--blue   { background: #dbeafe; color: #2563eb; }
.ap-team-card__avatar--amber  { background: #fef3c7; color: #d97706; }
.ap-team-card__avatar--purple { background: #ede9fe; color: #7c3aed; }

.ap-team-card__name {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a0e1a;
    margin: 0;
}

.ap-team-card__role {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #006644;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.ap-team-card__bio {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #374151;
    margin: 0;
    flex: 1;
}

.ap-team-card__linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0a0e1a;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.2s ease, gap 0.2s ease;
}
.ap-team-card__linkedin svg { width: 15px; height: 15px; flex-shrink: 0; }
.ap-team-card__linkedin:hover { color: #006644; gap: 0.625rem; }

/* Disciplines pill row */
.ap-disciplines {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

/* ─────────────────────────────────────────────────────
   7. WHERE WE WORK — global presence
───────────────────────────────────────────────────── */
.ap-global {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #ffffff;
    overflow: hidden;
}

.ap-global__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.ap-global__text {}

/* Regions list */
.ap-regions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}
.ap-region {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #0a0e1a;
}
.ap-region__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #006644;
    flex-shrink: 0;
}

/* Dark globe / map visual */
.ap-global__visual {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1 / 0.85;
    background: #07111f;
    position: relative;
}

.ap-global__map-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(22, 163, 74, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.ap-global__dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ap-map-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: ap-twinkle 4s ease-in-out infinite alternate;
}
@keyframes ap-twinkle {
    from { opacity: 0.1; }
    to   { opacity: 0.55; }
}

/* Pulsing city markers */
.ap-pulse {
    position: absolute;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.ap-pulse span {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}
.ap-pulse span:nth-child(1) {
    width: 8px;
    height: 8px;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.9);
}
.ap-pulse span:nth-child(2) {
    width: 28px;
    height: 28px;
    border: 1.5px solid rgba(34, 197, 94, 0.35);
    animation: ap-pulse-ring 2.8s ease-out infinite;
}
@keyframes ap-pulse-ring {
    from { transform: translate(-50%, -50%) scale(0.4); opacity: 0.8; }
    to   { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}

/* ─────────────────────────────────────────────────────
   8. RESPONSIVE BREAKPOINTS
───────────────────────────────────────────────────── */

/* Tablet landscape — 1024px */
@media (max-width: 1024px) {
    /* Intro: stack, visual moves above text */
    .ap-intro__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ap-intro__visual { order: -1; }
    .ap-vis-card { aspect-ratio: 16 / 9; }
    .ap-hero-stats { grid-template-columns: repeat(3, 1fr); }

    /* Stats band: 2-col */
    .ap-stats-band__grid { grid-template-columns: repeat(2, 1fr); }

    /* Mission: stack */
    .ap-mission__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ap-mission__card { min-height: auto; aspect-ratio: 16 / 9; }

    /* Process: wrap to 2-3 per row on tablet */
    .ap-process { flex-wrap: wrap; gap: 2rem 0; }
    .ap-process::before { display: none; }
    .ap-process__step { flex: 0 0 33.333%; }

    /* Team banner: stack vertically on tablet */
    .ap-team-banner { grid-template-columns: 1fr; height: auto; }
    .ap-team-banner__image { border-radius: 20px; height: 240px; }
    .ap-team-banner__content { border-radius: 20px 20px 60px 20px; }

    /* Team cards: 2-col on tablet */
    .ap-team-cards { grid-template-columns: repeat(2, 1fr); }

    /* Global: stack */
    .ap-global__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Tablet portrait — 768px */
@media (max-width: 768px) {
    /* Intro */
    .ap-headline { font-size: clamp(2rem, 8vw, 3rem); }
    .ap-hero-stats { grid-template-columns: repeat(3, 1fr); }

    /* Stats: 2-col */
    .ap-stats-band__grid { grid-template-columns: 1fr 1fr; }

    /* Team banner: tighten bottom-right radius on mobile */
    .ap-team-banner__content { border-radius: 20px 20px 48px 20px; }

    /* Regions: single column */
    .ap-regions { grid-template-columns: 1fr; }

    /* Global visual: shorter */
    .ap-global__visual { aspect-ratio: 16 / 9; }
}

/* Mobile — 480px */
@media (max-width: 480px) {
    /* Process: 2 per row on small screens */
    .ap-process__step { flex: 0 0 50%; }

    /* Team cards: single column */
    .ap-team-cards { grid-template-columns: 1fr; }

    /* Stats strip */
    .ap-hero-stats { grid-template-columns: 1fr 1fr; }

    /* Stats band: 2-col */
    .ap-stats-band__grid { grid-template-columns: 1fr 1fr; }

    /* Mission card: auto height */
    .ap-mission__card {
        aspect-ratio: auto;
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    .ap-mission__quote-block p { font-size: 0.9375rem; }
}
