/* ==========================================================================
   About Us v2 (Nov 2026): hero (light) -> mission + who we are (white) ->
   why choose us (ice, white cards + enquiry form) -> journey (navy, partial).
   Every colour comes from gateway-theme.css. Gold TEXT only on navy; on light
   backgrounds accents use --gw-gold-dark.
   ========================================================================== */

.ab-page {
    font-family: var(--gw-font);
    color: var(--gw-slate);
    overflow-x: clip;
}

.ab-page *,
.ab-page *::before,
.ab-page *::after { box-sizing: border-box; }

/* Headings: the site has gradient/transparent heading rules in places, so every heading here is set explicitly. */
.ab-page h1,
.ab-page h2,
.ab-page h3 {
    font-family: var(--gw-font);
    color: var(--gw-navy);
    -webkit-text-fill-color: var(--gw-navy);
    background: none;
    text-shadow: none;
    letter-spacing: -0.01em;
}

.ab-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.ab-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gw-gold-dark);
}
.ab-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--gw-gold);
}

.ab-h2 {
    margin: 0 0 16px;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
}

.ab-lead {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--gw-slate);
}

/* Page title bar (navy, under the header): "About Us" label + breadcrumb. Not an h1 (the hero has the only h1). */
.ab-page .page-title-wrapper .about-page-title {
    font-family: var(--gw-font);
    font-weight: 600;
    color: var(--gw-white);
    -webkit-text-fill-color: var(--gw-white);
}

/* ---------- Buttons ---------- */
.ab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 26px;
    border-radius: 12px;
    font-family: var(--gw-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.ab-btn svg { width: 18px; height: 18px; flex: none; }
.ab-btn:hover { transform: translateY(-2px); text-decoration: none; }
.ab-btn:focus-visible { outline: 3px solid rgba(var(--gw-navy-rgb), .35); outline-offset: 3px; }

.ab-btn--gold {
    background: var(--gw-gold-shine);
    background-color: var(--gw-gold);
    color: var(--gw-navy);
    box-shadow: var(--gw-gold-glow);
}
.ab-btn--gold:hover { color: var(--gw-navy); box-shadow: 0 10px 24px rgba(var(--gw-gold-rgb), .55); }

.ab-btn--outline {
    background: transparent;
    color: var(--gw-navy);
    border-color: var(--gw-navy);
}
.ab-btn--outline:hover { background: var(--gw-navy); color: var(--gw-white); }

/* ---------- HERO ---------- */
.ab-hero {
    position: relative;
    padding: 90px 0;
    background: linear-gradient(180deg, var(--gw-white) 0%, var(--gw-ice) 100%);
    overflow: hidden;
}
.ab-hero::before {
    /* faint navy grid */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--gw-navy-rgb), .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--gw-navy-rgb), .05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
    pointer-events: none;
}
.ab-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 64px;
}
.ab-hero-title {
    margin: 0 0 20px;
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
}
.ab-page .ab-hero-title .ab-hero-accent {
    display: block;
    color: var(--gw-gold-dark);
    -webkit-text-fill-color: var(--gw-gold-dark);
    background: none;
}
.ab-hero-intro {
    max-width: 540px;
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--gw-slate);
}
.ab-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.ab-hero-media {
    position: relative;
    max-width: 480px;
    width: 100%;
    margin-left: auto;
}
.ab-hero-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    border: 2px solid var(--gw-gold);
    background: var(--gw-ice);
    box-shadow: 0 24px 60px rgba(var(--gw-navy-rgb), .18), 0 0 0 10px rgba(var(--gw-gold-rgb), .12);
    overflow: hidden;
}
.ab-hero-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ab-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 270px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--gw-white);
    box-shadow: 0 12px 30px rgba(var(--gw-navy-rgb), .16);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--gw-navy);
}
.ab-chip-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gw-navy);
    color: var(--gw-gold);
}
.ab-chip-icon svg { width: 20px; height: 20px; }
.ab-chip--top { top: 36px; left: -56px; }
.ab-chip--bottom { bottom: 40px; right: -36px; }

/* ---------- MISSION + WHO WE ARE ---------- */
.ab-about {
    padding: 90px 0;
    background: var(--gw-white);
}
.ab-about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px;
    align-items: start;
}
.ab-about-col--who {
    padding-left: 48px;
    border-left: 1px solid rgba(var(--gw-navy-rgb), .12);
}
.ab-who-lead {
    margin: 0 0 22px;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--gw-navy);
}
.ab-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
.ab-checks li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gw-slate);
}
.ab-checks li strong { color: var(--gw-navy); font-weight: 600; }
.ab-check {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(var(--gw-gold-rgb), .2);
    color: var(--gw-gold-dark);
}
.ab-check svg { width: 14px; height: 14px; }

/* ---------- WHY CHOOSE US ---------- */
.ab-why {
    padding: 90px 0;
    background: var(--gw-ice);
}
.ab-why-head { max-width: 720px; margin: 0 0 40px; }
.ab-why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 48px;
    align-items: start;
}
.ab-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.ab-card {
    padding: 26px 24px;
    border-radius: 18px;
    background: var(--gw-white);
    border: 1px solid rgba(var(--gw-navy-rgb), .08);
    box-shadow: 0 6px 20px rgba(var(--gw-navy-rgb), .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ab-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--gw-gold-rgb), .7);
    box-shadow: 0 12px 28px rgba(var(--gw-navy-rgb), .1);
}
.ab-card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--gw-navy);
    color: var(--gw-gold);
}
.ab-card-icon svg { width: 24px; height: 24px; }
.ab-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
}
.ab-card-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gw-slate);
}
.ab-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 24px 0 0;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--gw-white);
    border-left: 4px solid var(--gw-gold);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gw-navy);
}
.ab-note strong { font-weight: 700; color: var(--gw-navy); }
.ab-note .ab-check { margin-top: 0; }

/* ---------- Enquiry form card (restyles the existing #counselor-form) ---------- */
.ab-page .ab-why .form-wrapper {
    width: 100%;
    padding: 32px 30px;
    border: 2px solid var(--gw-gold);
    border-radius: 22px;
    background: var(--gw-white);
    box-shadow: 0 0 0 6px rgba(var(--gw-gold-rgb), .12), 0 18px 44px rgba(var(--gw-navy-rgb), .12);
    color: var(--gw-slate);
}
.ab-page .ab-why .form-title {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
}
.ab-form-sub {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gw-slate);
}
.ab-page .ab-why .mb-22 { margin-bottom: 14px; }

.ab-page .ab-why .why-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-family: var(--gw-font);
    font-size: 15px;
    line-height: 44px;
    color: var(--gw-navy);
    background-color: var(--gw-white);
    border: 1px solid rgba(var(--gw-navy-rgb), .18);
    border-radius: 10px;
    letter-spacing: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.ab-page .ab-why .why-input::placeholder { color: var(--gw-slate); opacity: 1; }
.ab-page .ab-why .why-input:focus {
    outline: none;
    border-color: var(--gw-gold-dark);
    box-shadow: 0 0 0 3px rgba(var(--gw-gold-rgb), .35);
}
.ab-page .ab-why textarea.why-input.text-box {
    height: auto;
    min-height: 92px;
    padding: 12px 14px;
    line-height: 1.5;
    resize: vertical;
}

/* select2 (v3 markup: .select2-container.why-input > a.select2-choice) */
.ab-page .ab-why .select2-container.why-input {
    padding: 0 !important;
    border: 0;
    height: 46px;
    line-height: normal;
    box-shadow: none;
}
.ab-page .ab-why .select2-container.why-input .select2-choice {
    display: flex !important;
    align-items: center;
    height: 46px !important;
    padding: 0 40px 0 14px !important;
    border: 1px solid rgba(var(--gw-navy-rgb), .18) !important;
    border-radius: 10px !important;
    background: var(--gw-white) !important;
    background-image: none !important;
    color: var(--gw-navy) !important;
    box-shadow: none !important;
    line-height: 44px;
}
.ab-page .ab-why .select2-container.why-input .select2-choice > .select2-chosen {
    margin-right: 0;
    font-size: 15px !important;
    line-height: 44px;
    color: var(--gw-navy);
}
.ab-page .ab-why .select2-container.why-input .select2-default,
.ab-page .ab-why .select2-container.why-input .select2-default .select2-chosen { color: var(--gw-slate) !important; }
.ab-page .ab-why .select2-container.why-input .select2-arrow {
    top: 0;
    right: 6px;
    height: 100%;
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
}
.ab-page .ab-why .select2-container.why-input.select2-container-active .select2-choice,
.ab-page .ab-why .select2-container.why-input.select2-dropdown-open .select2-choice {
    border-color: var(--gw-gold-dark) !important;
    box-shadow: 0 0 0 3px rgba(var(--gw-gold-rgb), .35) !important;
}
/* native select fallback, if select2 is unavailable */
.ab-page .ab-why select.why-input { padding: 0 14px !important; }

.ab-page .ab-why .consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 20px;
    cursor: pointer;
    text-align: left;
}
.ab-page .ab-why .consent-wrapper input[type="checkbox"] {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--gw-navy);
    cursor: pointer;
}
.ab-page .ab-why .consent-wrapper span,
.ab-page .ab-why .consent-wrapper .text-white {
    font-size: 13px;
    line-height: 1.55;
    color: var(--gw-slate) !important;
    -webkit-text-fill-color: var(--gw-slate);
}

.ab-page .ab-why .submit-counselor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0 !important;
    padding: 12px 20px !important;
    border: 0;
    border-radius: 12px;
    background: var(--gw-gold-shine);
    background-color: var(--gw-gold);
    box-shadow: var(--gw-gold-glow);
    font-family: var(--gw-font);
    font-size: 16px;
    font-weight: 600;
    color: var(--gw-navy);
    -webkit-text-fill-color: var(--gw-navy);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ab-page .ab-why .submit-counselor::after,
.ab-page .ab-why .submit-counselor::before { display: none; }
.ab-page .ab-why .submit-counselor:hover { transform: translateY(-2px); }
.ab-page .ab-why .submit-counselor:disabled { opacity: .7; cursor: progress; transform: none; }

.ab-page .ab-why .error-message { font-size: 13px; color: var(--gw-danger); }

/* success state replaces the form inside the card */
.ab-page .ab-why #counselor-success-msg { padding: 24px 0; text-align: center; }
.ab-page .ab-why .success-img { max-width: 96px; margin: 0 auto 20px; }
.ab-page .ab-why .success-msg { font-size: 20px; line-height: 1.4; color: var(--gw-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .ab-hero-title { font-size: 48px; }
    .ab-why-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 36px; }
    .ab-chip--top { left: -24px; }
    .ab-chip--bottom { right: -12px; }
}

@media (max-width: 991px) {
    .ab-hero,
    .ab-about,
    .ab-why { padding: 72px 0; }

    .ab-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .ab-hero-copy { text-align: left; }
    .ab-hero-media { margin: 0 auto; max-width: 400px; }
    .ab-chip--top { left: -16px; }
    .ab-chip--bottom { right: -16px; }

    .ab-about-grid { grid-template-columns: 1fr; gap: 48px; }
    .ab-about-col--who {
        padding: 48px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(var(--gw-navy-rgb), .12);
    }

    .ab-why-grid { grid-template-columns: 1fr; gap: 40px; }
    .ab-why-form { max-width: 460px; width: 100%; margin: 0 auto; }
    .ab-h2 { font-size: 32px; }
}

@media (max-width: 767px) {
    .ab-hero-title { font-size: 40px; }
    .ab-hero-intro { font-size: 17px; }
}

@media (max-width: 600px) {
    .ab-wrap { padding: 0 18px; }
    .ab-hero,
    .ab-about,
    .ab-why { padding: 56px 0; }

    .ab-hero-title { font-size: 34px; }
    .ab-hero-ctas { flex-direction: column; }
    .ab-hero-ctas .ab-btn { width: 100%; }

    .ab-hero-media { max-width: 340px; }
    /* chips sit inside the frame edges on phones so nothing overflows */
    .ab-chip { max-width: 230px; padding: 10px 12px; font-size: 13px; }
    .ab-chip-icon { width: 32px; height: 32px; }
    .ab-chip--top { top: 18px; left: -8px; }
    .ab-chip--bottom { bottom: 18px; right: -8px; }

    .ab-h2 { font-size: 28px; }
    .ab-lead { font-size: 16px; }
    .ab-who-lead { font-size: 17px; }

    .ab-cards { grid-template-columns: 1fr; gap: 14px; }
    .ab-card { padding: 22px 20px; }
    .ab-why-head { margin-bottom: 28px; }

    .ab-page .ab-why .form-wrapper { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .ab-btn,
    .ab-card,
    .ab-page .ab-why .submit-counselor { transition: none; }
    .ab-btn:hover,
    .ab-card:hover,
    .ab-page .ab-why .submit-counselor:hover { transform: none; }
}
