/* ============================================================
   ScotiaCapital - editorial content sections
   Used by "About Us" and "A brief history about us"
   ------------------------------------------------------------
   Loaded from layouts/base.blade.php (after scotia-live-sections)
   so the classes below actually reach the pages that use them.

   The section chrome (eyebrow / title / lead) mirrors the live
   market sections, so both halves of the page read as one type
   system:
     eyebrow -> Montserrat 11/700 .18em uppercase
     title   -> Montserrat 30/700, -.01em
     lead    -> Open Sans 16/1.75
     copy    -> Open Sans 16/1.82, capped at 66ch
   "sc-history--spotlight" upgrades the history section to the big
   editorial headline treatment, and section 7 keeps the homepage
   hero to a single <h1> without changing how the slides look.
   ============================================================ */

/* ---------- 1. SHARED SECTION CHROME ---------- */

.sc-sec,
.sc-history,
.sc-about__media {
    --sc-font: 'Montserrat', sans-serif;
    position: relative;
}

.sc-sec__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    font-family: var(--sc-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #3C66AD;
}

.sc-sec__dot {
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: currentColor;
    animation: sc-sec-pulse 2.2s ease-out infinite;
}

@keyframes sc-sec-pulse {
    0% { box-shadow: 0 0 0 0 rgba(60, 102, 173, .45); }
    70% { box-shadow: 0 0 0 10px rgba(60, 102, 173, 0); }
    100% { box-shadow: 0 0 0 0 rgba(60, 102, 173, 0); }
}

.sc-sec__title {
    margin: 0 0 14px;
    font-family: var(--sc-font);
    font-size: 30px;
    line-height: 1.24;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #101820;
}

.sc-sec__title--center {
    text-align: center;
}

.sc-sec__lead {
    max-width: 62ch;
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.75;
    color: #5B6775;
}

.sc-sec__lead--center {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 2. BODY COPY (readable measure) ---------- */

.sc-copy {
    max-width: 66ch;
}

.sc-copy p {
    margin: 0;
    font-size: 16px;
    line-height: 1.82;
    color: #5B6775;
}

.sc-copy p + p {
    margin-top: 1.15em;
}

.sc-copy strong,
.sc-copy b {
    color: #101820;
}

/* ---------- 3. ABOUT US ---------- */

.sc-about__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 26px 60px rgba(10, 24, 48, .16);
}

.sc-about__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

.sc-about__media:hover img {
    transform: scale(1.035);
}

.sc-about__media:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(10, 24, 48, 0) 42%, rgba(10, 24, 48, .58) 100%);
    pointer-events: none;
}

.sc-about__stamp {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    font-family: var(--sc-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1B3A6B;
}

/* ---------- 4. A BRIEF HISTORY ABOUT US ---------- */

.sc-history__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 46px;
    align-items: start;
}

.sc-history__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 26px 60px rgba(10, 24, 48, .16);
}

.sc-history__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.sc-history__media:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(10, 24, 48, 0) 50%, rgba(10, 24, 48, .5) 100%);
    pointer-events: none;
}

/* vertical milestone rail (homepage) */

.sc-history__rail {
    margin: 0 0 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid #E1E6ED;
}

.sc-milestone {
    position: relative;
    padding: 0 0 24px 26px;
}

.sc-milestone:last-child {
    padding-bottom: 0;
}

.sc-milestone:before {
    content: "";
    position: absolute;
    left: -5px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3C66AD;
    box-shadow: 0 0 0 4px rgba(60, 102, 173, .14);
}

.sc-milestone__year {
    display: block;
    font-family: var(--sc-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #3C66AD;
}

.sc-milestone__title {
    margin: 3px 0 4px;
    font-family: var(--sc-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #101820;
}

.sc-milestone__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #5B6775;
}

/* horizontal milestone timeline (about page) */

.sc-history__timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 46px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #E1E6ED;
}

.sc-history__timeline .sc-milestone {
    padding: 26px 22px 0 0;
    border-right: 1px solid #E1E6ED;
}

.sc-history__timeline .sc-milestone + .sc-milestone {
    padding-left: 22px;
}

.sc-history__timeline .sc-milestone:last-child {
    padding-right: 0;
    border-right: 0;
}

.sc-history__timeline .sc-milestone:before {
    left: 0;
    top: -5px;
}

/* section tint so it reads differently from the white About Us block */

.sc-history--tint {
    background: #F7F8FA;
}

/* ---------- 4b. SPOTLIGHT HEADLINE (big, bold history section) ---------- */

/* Same section, read as the page's statement: oversized headline,
   bold standfirst, short copy. Add class "sc-history--spotlight" to
   the <section>. */

.sc-history--spotlight .sc-sec__eyebrow {
    margin-bottom: 16px;
    font-size: 12px;
    letter-spacing: .2em;
}

.sc-history--spotlight .sc-sec__title {
    max-width: 15ch;
    margin: 0 0 20px;
    font-size: clamp(2.3rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.03em;
    color: #0A1220;
}

/* brand rule under the headline */
.sc-history--spotlight .sc-sec__title:after {
    content: "";
    display: block;
    width: 78px;
    height: 6px;
    margin-top: 24px;
    border-radius: 3px;
    background: linear-gradient(90deg, #3C66AD 0%, #6F9BE0 100%);
}

.sc-history--spotlight .sc-sec__lead {
    max-width: 44ch;
    margin: 0 0 26px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    color: #101820;
}

.sc-history--spotlight .sc-copy p {
    font-size: 17px;
    line-height: 1.8;
}

.sc-history--spotlight .sc-milestone__title {
    font-size: 16px;
}

@media (max-width: 767.98px) {
    .sc-history--spotlight .sc-sec__title {
        font-size: 2rem;
    }

    .sc-history--spotlight .sc-sec__lead {
        font-size: 18px;
    }

    .sc-history--spotlight .sc-copy p {
        font-size: 16px;
    }
}

/* ---------- 5. RESPONSIVE ---------- */

@media (max-width: 1199.98px) {
    .sc-history__grid {
        gap: 36px;
    }
}

@media (max-width: 991.98px) {
    .sc-sec__title {
        font-size: 26px;
    }

    .sc-history__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .sc-about__media img,
    .sc-history__media img {
        min-height: 280px;
    }

    .sc-history__timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sc-history__timeline .sc-milestone {
        padding: 22px 20px 22px 0;
    }

    .sc-history__timeline .sc-milestone + .sc-milestone {
        padding-left: 20px;
    }

    .sc-history__timeline .sc-milestone:nth-child(2n) {
        padding-right: 0;
        border-right: 0;
    }

    .sc-history__timeline .sc-milestone:nth-child(-n+2) {
        border-bottom: 1px solid #E1E6ED;
    }
}

@media (max-width: 767.98px) {
    .sc-sec__title {
        font-size: 22px;
    }

    .sc-sec__lead,
    .sc-copy p {
        font-size: 15px;
    }

    .sc-history__timeline {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 34px;
    }

    .sc-history__timeline .sc-milestone,
    .sc-history__timeline .sc-milestone + .sc-milestone {
        padding: 20px 0 20px 24px;
        border-right: 0;
        border-bottom: 1px solid #E1E6ED;
    }

    .sc-history__timeline .sc-milestone:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .sc-history__timeline .sc-milestone:before {
        left: -5px;
        top: 24px;
    }
}

@media (max-width: 575.98px) {
    .sc-about__media img,
    .sc-history__media img {
        min-height: 230px;
    }

    .sc-about__stamp {
        left: 12px;
        bottom: 12px;
        padding: 7px 12px;
        font-size: 10px;
    }

    .sc-milestone__text {
        font-size: 13.5px;
    }
}

/* ---------- 6. REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    .sc-sec__dot {
        animation: none !important;
    }

    .sc-about__media img {
        transition: none;
    }

    .sc-about__media:hover img {
        transform: none;
    }
}

.sc-about__stamp i {
    margin-right: 8px;
    font-size: 14px;
    color: #3C66AD;
}

/* the existing mission/vision tabs sit under the copy */
.sc-sec .feature-tabs-wrap {
    margin-top: 26px;
}

.sc-sec .feature-tab-content p {
    font-size: 15px;
    line-height: 1.78;
    color: #5B6775;
}

/* ---------- 7. HERO HEADING SCALE (one h1 per page) ---------- */

/* The second homepage hero slide is an <h2> so the page exposes a
   single <h1> to assistive tech. It mirrors the h1 scale (style.css
   h1 -> 3.052em, responsive.css h1 -> 2.25rem under 576px) so both
   slides stay visually identical. */

.hero-content-wrap h2 {
    margin: 0 0 1rem;
    font-size: 3.052em;
    line-height: 1.21;
}

@media (min-width: 320px) and (max-width: 575px) {
    .hero-content-wrap h2 {
        font-size: 2.25rem;
    }
}