/* =====================================================
   ABOUT US PAGE — Kingsland Bright Design System
   Scoped with ab- prefix to avoid conflicts
   ===================================================== */

/* ===== SCOPED VARIABLES ===== */
.ab-page {
    --ab-sun:        #FF6B35;
    --ab-sky:        #00B4D8;
    --ab-lime:       #06D6A0;
    --ab-rose:       #FF4D6D;
    --ab-violet:     #7B2FBE;
    --ab-yellow:     #FFD166;
    --ab-dark:       #1A1A2E;
    --ab-text:       #2D2D44;
    --ab-muted:      #6B7280;
    --ab-border:     #E5E7EB;
    --ab-bg:         #F8F9FF;
    --ab-white:      #FFFFFF;
    --ab-radius:     16px;
    --ab-radius-sm:  10px;
    --ab-shadow:     0 4px 20px rgba(0,0,0,.06);
    --ab-shadow-lg:  0 16px 48px rgba(0,0,0,.12);
    --ab-font:       'Nunito', sans-serif;
    --ab-heading:    'Righteous', cursive;
    --ab-ease:       cubic-bezier(.4,0,.2,1);
    font-family: var(--ab-font);
    color: var(--ab-text);
    background: var(--ab-bg);
}

.ab-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== REVEAL ===== */
.ab-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s var(--ab-ease), transform .6s var(--ab-ease);
}
.ab-reveal.ab-on {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTION LABELS & HEADINGS ===== */
.ab-section-label {
    display: inline-block;
    font-family: var(--ab-font);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ab-sun);
    margin-bottom: 10px;
}

.ab-section-heading {
    font-family: var(--ab-heading);
    font-size: clamp(26px, 4vw, 40px);
    color: var(--ab-dark);
    margin: 0 0 40px;
    line-height: 1.2;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.ab-hero {
    position: relative;
    padding: 110px 24px 160px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0D0D2B 0%, #16213E 30%, #1A1A3E 60%, #0F3460 100%);
    z-index: 1;
}

/* Floating orbs */
.ab-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    animation: abOrbFloat 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.ab-orb--1 { width:400px; height:400px; background:var(--ab-sun); top:-100px; left:-60px; }
.ab-orb--2 { width:300px; height:300px; background:var(--ab-violet); top:40px; right:-60px; animation-delay:2s; }
.ab-orb--3 { width:260px; height:260px; background:var(--ab-sky); bottom:-40px; left:35%; animation-delay:4s; }

@keyframes abOrbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(20px,-20px) scale(1.05); }
}

.ab-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 740px;
    margin: 0 auto;
}

.ab-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
    padding: 8px 22px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.ab-hero__title {
    font-family: var(--ab-heading);
    font-size: clamp(32px, 5vw, 56px);
    color: #fff;
    line-height: 1.15;
    margin: 0 0 18px;
}

.ab-hero__sub {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,.75);
    max-width: 560px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Hero image */
.ab-hero__img-wrap {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}
.ab-hero__img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* Wave transition */
.ab-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}
.ab-hero__wave svg {
    width: 100%;
    height: 80px;
}

/* ==========================================================================
   2. STATS — Floating cards inside hero overlap
   ========================================================================== */
.ab-stats {
    position: relative;
    z-index: 4;
    margin-top: -60px;
    padding-bottom: 60px;
}

.ab-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ab-stat {
    background: var(--ab-white);
    border-radius: var(--ab-radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--ab-shadow);
    transition: transform .3s var(--ab-ease), box-shadow .3s var(--ab-ease);
    border-top: 4px solid transparent;
}
.ab-stat:hover {
    transform: translateY(-6px);
    box-shadow: var(--ab-shadow-lg);
}
.ab-stat--sun  { border-top-color: var(--ab-sun); }
.ab-stat--sky  { border-top-color: var(--ab-sky); }
.ab-stat--lime { border-top-color: var(--ab-lime); }
.ab-stat--rose { border-top-color: var(--ab-rose); }

.ab-stat__num {
    display: block;
    font-family: var(--ab-heading);
    font-size: 36px;
    line-height: 1;
    margin-bottom: 6px;
}
.ab-stat--sun  .ab-stat__num { color: var(--ab-sun); }
.ab-stat--sky  .ab-stat__num { color: var(--ab-sky); }
.ab-stat--lime .ab-stat__num { color: var(--ab-lime); }
.ab-stat--rose .ab-stat__num { color: var(--ab-rose); }

.ab-stat__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ab-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   3. OUR STORY — Image + Text split
   ========================================================================== */
.ab-story {
    padding: 80px 0;
}

.ab-story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ab-story__content .ab-section-label {
    margin-bottom: 8px;
}
.ab-story__content .ab-section-heading {
    margin-bottom: 24px;
}

.ab-story__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ab-muted);
    margin-bottom: 16px;
}

.ab-story__visual {
    position: relative;
}

.ab-story__img-frame {
    border-radius: var(--ab-radius);
    overflow: hidden;
    box-shadow: var(--ab-shadow-lg);
    position: relative;
    z-index: 1;
}
.ab-story__img-frame img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.ab-story__accent {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 16px;
    left: 16px;
    border-radius: var(--ab-radius);
    background: linear-gradient(135deg, var(--ab-sun), var(--ab-rose));
    opacity: .2;
    z-index: 0;
}

/* ==========================================================================
   4. VALUES — 4-card grid
   ========================================================================== */
.ab-values {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--ab-bg) 0%, var(--ab-white) 100%);
    text-align: center;
}

.ab-values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 10px;
    text-align: left;
}

.ab-vcard {
    background: var(--ab-white);
    border-radius: var(--ab-radius);
    padding: 32px 24px;
    box-shadow: var(--ab-shadow);
    transition: transform .3s var(--ab-ease), box-shadow .3s var(--ab-ease);
    border-bottom: 4px solid transparent;
}
.ab-vcard:hover {
    transform: translateY(-6px);
    box-shadow: var(--ab-shadow-lg);
}
.ab-vcard--sun  { border-bottom-color: var(--ab-sun); }
.ab-vcard--sky  { border-bottom-color: var(--ab-sky); }
.ab-vcard--lime { border-bottom-color: var(--ab-lime); }
.ab-vcard--rose { border-bottom-color: var(--ab-rose); }

.ab-vcard__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 28px;
}
.ab-vcard--sun  .ab-vcard__icon { background: rgba(255,107,53,.12); color: var(--ab-sun); }
.ab-vcard--sky  .ab-vcard__icon { background: rgba(0,180,216,.12);  color: var(--ab-sky); }
.ab-vcard--lime .ab-vcard__icon { background: rgba(6,214,160,.12);  color: var(--ab-lime); }
.ab-vcard--rose .ab-vcard__icon { background: rgba(255,77,109,.12); color: var(--ab-rose); }

.ab-vcard__title {
    font-family: var(--ab-font);
    font-size: 18px;
    font-weight: 800;
    color: var(--ab-dark);
    margin: 0 0 10px;
}

.ab-vcard__desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ab-muted);
    margin: 0;
}

/* ==========================================================================
   5. TIMELINE — Alternating left/right
   ========================================================================== */
.ab-timeline {
    padding: 80px 0;
    text-align: center;
}

.ab-timeline__track {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.ab-timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--ab-sun), var(--ab-violet));
    border-radius: 3px;
    transform: translateX(-50%);
}

.ab-tl-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px;
    box-sizing: border-box;
}
.ab-tl-item--left  { padding-right: 50px; text-align: right; }
.ab-tl-item--right { padding-left: 50px; margin-left: 50%; }

.ab-tl-item__dot {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ab-sun);
    border: 4px solid var(--ab-bg);
    top: 4px;
    z-index: 1;
}
.ab-tl-item--left  .ab-tl-item__dot { right: -9px; }
.ab-tl-item--right .ab-tl-item__dot { left: -9px; }

.ab-tl-item__card {
    background: var(--ab-white);
    border-radius: var(--ab-radius-sm);
    padding: 22px 24px;
    box-shadow: var(--ab-shadow);
    transition: transform .3s var(--ab-ease);
}
.ab-tl-item__card:hover {
    transform: translateY(-4px);
}

.ab-tl-item__year {
    display: inline-block;
    font-family: var(--ab-heading);
    font-size: 22px;
    color: var(--ab-sun);
    margin-bottom: 6px;
}

.ab-tl-item__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ab-dark);
    margin: 0 0 6px;
}

.ab-tl-item__desc {
    font-size: 14px;
    color: var(--ab-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   6. TEAM — Card grid
   ========================================================================== */
.ab-team {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--ab-white) 0%, var(--ab-bg) 100%);
    text-align: center;
}

.ab-team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 10px;
}

.ab-member {
    background: var(--ab-white);
    border-radius: var(--ab-radius);
    padding: 36px 24px 28px;
    box-shadow: var(--ab-shadow);
    transition: transform .3s var(--ab-ease), box-shadow .3s var(--ab-ease);
    text-align: center;
}
.ab-member:hover {
    transform: translateY(-6px);
    box-shadow: var(--ab-shadow-lg);
}

.ab-member__photo-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 18px;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(var(--ab-white), var(--ab-white)) padding-box,
                linear-gradient(135deg, var(--ab-sun), var(--ab-violet)) border-box;
}
.ab-member__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ab-member__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ab-bg);
    color: var(--ab-muted);
}
.ab-member__photo-placeholder .material-symbols-outlined {
    font-size: 42px;
}

.ab-member__name {
    font-size: 18px;
    font-weight: 800;
    color: var(--ab-dark);
    margin: 0 0 4px;
}

.ab-member__role {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ab-sun);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ab-member__quote {
    font-size: 14px;
    font-style: italic;
    color: var(--ab-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   7. CTA — Dark gradient banner
   ========================================================================== */
.ab-cta {
    position: relative;
    padding: 80px 24px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0D0D2B 0%, #16213E 40%, #0F3460 100%);
}

.ab-orb--cta1 { width:300px; height:300px; background:var(--ab-sun); top:-60px; right:-40px; opacity:.25; }
.ab-orb--cta2 { width:250px; height:250px; background:var(--ab-violet); bottom:-40px; left:-30px; opacity:.2; animation-delay:3s; }

.ab-cta__inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.ab-cta__title {
    font-family: var(--ab-heading);
    font-size: clamp(28px, 4vw, 44px);
    color: #fff;
    margin: 0 0 14px;
}

.ab-cta__sub {
    font-size: 18px;
    color: rgba(255,255,255,.7);
    margin: 0 0 32px;
    line-height: 1.6;
}

.ab-cta__btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--ab-font);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .25s var(--ab-ease), box-shadow .25s var(--ab-ease);
    cursor: pointer;
}
.ab-btn:hover {
    transform: translateY(-3px);
}

.ab-btn--primary {
    background: linear-gradient(135deg, var(--ab-sun), var(--ab-rose));
    color: #fff;
    box-shadow: 0 6px 24px rgba(255,107,53,.35);
}
.ab-btn--primary:hover {
    box-shadow: 0 10px 36px rgba(255,107,53,.5);
}

.ab-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.4);
}
.ab-btn--outline:hover {
    border-color: #fff;
    box-shadow: 0 6px 20px rgba(255,255,255,.15);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .ab-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .ab-values__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ab-hero { padding: 80px 20px 120px; }
    .ab-hero__title { font-size: 32px; }

    .ab-stats { margin-top: -40px; }
    .ab-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ab-stat { padding: 20px 14px; }
    .ab-stat__num { font-size: 28px; }

    .ab-story__grid { grid-template-columns: 1fr; gap: 32px; }
    .ab-story__visual { order: -1; }
    .ab-story__accent { display: none; }

    .ab-values__grid { grid-template-columns: 1fr; }

    /* Timeline — single column */
    .ab-timeline__line { left: 16px; }
    .ab-tl-item,
    .ab-tl-item--left,
    .ab-tl-item--right {
        width: 100%;
        margin-left: 0;
        padding: 0 0 32px 48px;
        text-align: left;
    }
    .ab-tl-item__dot,
    .ab-tl-item--left .ab-tl-item__dot,
    .ab-tl-item--right .ab-tl-item__dot {
        left: 7px;
        right: auto;
    }

    .ab-team__grid { grid-template-columns: 1fr 1fr; }

    .ab-cta { padding: 60px 20px; }
    .ab-cta__title { font-size: 28px; }
    .ab-cta__btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .ab-stats__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ab-team__grid { grid-template-columns: 1fr; }
    .ab-btn { width: 100%; justify-content: center; }
}
