/* ==========================================================
   About Page Template (tpl-about.php)
   Prefix: sw-ab
   Mobile first, breakpoints at 640px and 1024px
   ========================================================== */

.sw-ab-page {
    font-family: CachetProRegular, sans-serif;
    color: #231f20;
    background-color: #ffffff;
}

.sw-ab-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.sw-ab-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sw-ab-section {
    padding: 56px 0;
}

.sw-ab-heading {
    margin: 0 0 16px;
    font-family: 'CachetW05-Medium', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: normal;
    line-height: 1.2;
    color: #006b6b;
}

.sw-ab-intro {
    max-width: 680px;
    margin: 0 0 36px;
    font-size: 1.15rem;
    line-height: 1.7;
    letter-spacing: 0.04rem;
    color: #231f20;
}

.sw-ab-page a:focus-visible {
    outline: 3px solid #00aeef;
    outline-offset: 3px;
}


/* Intro / Hero
   ---------------------------------------------------------- */

.sw-ab-hero {
    padding: 24px 0 48px;
    background-color: #0060af;
    color: #ffffff;
}

.sw-ab-crumbs {
    margin-bottom: 24px;
    font-size: 1rem;
    color: #ffffff!important;
}

.sw-ab-crumbs a{
    color: #ffffff!important;
}

.sw-ab-crumbs #breadcrumbs a:link,
.sw-ab-crumbs #breadcrumbs a:visited {
    color: #ffffff!important;
    text-decoration: none;
}

.sw-ab-crumbs #breadcrumbs a:hover,
.sw-ab-crumbs a:hover {
    text-decoration: underline;
}

.sw-ab-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.sw-ab-hero-media {
    order: -1;
}

.sw-ab-hero-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
}

.sw-ab-hero-title {
    margin: 0 0 20px;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: clamp(2.2rem, 7vw, 3.6rem);
    font-weight: normal;
    line-height: 1.05;
    color: #ffffff;
}

.sw-ab-hero-lead {
    max-width: 560px;
    margin: 0 0 16px;
    font-family: 'CachetW05-Book', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.5;
    letter-spacing: 0.02rem;
    color: #ffffff;
}

.sw-ab-hero-sub {
    max-width: 560px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    letter-spacing: 0.04rem;
    color: #ffffff;
}


/* Jump links
   ---------------------------------------------------------- */

.sw-ab-jump {
    padding: 16px 0;
    background-color: #f1f1f1;
    border-bottom: 1px solid #e4e4e7;
}

.sw-ab-jump-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    padding: 0 0 4px;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sw-ab-jump-list li {
    flex: 0 0 auto;
}

.sw-ab-jump-link {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid #d4d4d8;
    border-radius: 999px;
    background-color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    color: #231f20;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.sw-ab-jump-link:link,
.sw-ab-jump-link:visited {
    color: #231f20;
}

.sw-ab-jump-link:hover {
    border-color: #0060af;
    color: #0060af;
}


/* What we do
   ---------------------------------------------------------- */

.sw-ab-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.sw-ab-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    border-top: 8px solid #0060af;
    border-radius: 10px;
    background-color: #ffffff;
}

.sw-ab-card-green {
    border-top-color: #01a490;
}

.sw-ab-card-purple {
    border-top-color: #92278f;
}

.sw-ab-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.sw-ab-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.sw-ab-card-title {
    margin: 0 0 12px;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.2;
    color: #0060af;
}

.sw-ab-card-green .sw-ab-card-title {
    color: #006b6b;
}

.sw-ab-card-purple .sw-ab-card-title {
    color: #92278f;
}

.sw-ab-card-text {
    flex-grow: 1;
    margin: 0 0 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    letter-spacing: 0.04rem;
    color: #231f20;
}

.sw-ab-card-link:link,
.sw-ab-card-link:visited {
    align-self: flex-start;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: 1.05rem;
    color: #0060af;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.sw-ab-card-link:hover {
    text-decoration: none;
}


/* Impact stats
   ---------------------------------------------------------- */

.sw-ab-impact {
    background-color: #006b6b;
    color: #ffffff;
}

.sw-ab-impact-heading {
    color: #ffffff;
}

.sw-ab-impact-year {
    margin: 0 0 32px;
    font-size: 1.1rem;
    color: #ffffff;
}

.sw-ab-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.sw-ab-stat {
    display: flex;
    flex-direction: column;
    padding: 24px 16px 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.sw-ab-stat:nth-child(odd) {
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.sw-ab-stat:nth-child(even) {
    padding-left: 16px;
}

.sw-ab-stat-number {
    display: block;
    margin-bottom: 8px;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: clamp(2.2rem, 9vw, 4.5rem);
    line-height: 1;
    color: #fcaf17;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sw-ab-stat-label {
    display: block;
    font-size: 1rem;
    line-height: 1.4;
    color: #ffffff;
}

.sw-ab-impact-link:link,
.sw-ab-impact-link:visited {
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.sw-ab-impact-link:hover {
    text-decoration: none;
}

.sw-ab-impact .sw-ab-impact-link:focus-visible {
    outline-color: #fcaf17;
}


/* Get to know the Y
   ---------------------------------------------------------- */

.sw-ab-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    background-color: #e4e4e7;
    border: 1px solid #e4e4e7;
}

.sw-ab-tiles li {
    display: flex;
    background-color: #ffffff;
}

.sw-ab-tile {
    display: block;
    width: 100%;
    padding: 24px 22px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.sw-ab-tile:hover {
    background-color: #f1f1f1;
}

.sw-ab-tile-title {
    margin: 0 0 6px;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: 1.35rem;
    font-weight: normal;
    line-height: 1.25;
    color: #0060af;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.sw-ab-tile:hover .sw-ab-tile-title {
    text-decoration: none;
}

.sw-ab-tile-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #636466;
}


/* Call to action
   ---------------------------------------------------------- */

.sw-ab-cta {
    padding: 64px 0;
    background-color: #f1f1f1;
    text-align: center;
}

.sw-ab-cta-title {
    margin: 0 0 12px;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: normal;
    line-height: 1.15;
    color: #0060af;
}

.sw-ab-cta-text {
    max-width: 560px;
    margin: 0 auto 28px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #231f20;
}

.sw-ab-cta-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sw-ab-btn {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid #0060af;
    border-radius: 30px;
    font-family: 'CachetW05-Bold', sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sw-ab-btn-primary:link,
.sw-ab-btn-primary:visited {
    background-color: #0060af;
    color: #ffffff;
}

.sw-ab-btn-primary:hover {
    background-color: #004d8c;
    border-color: #004d8c;
    color: #ffffff;
}

.sw-ab-btn-outline:link,
.sw-ab-btn-outline:visited {
    background-color: #ffffff;
    color: #0060af;
}

.sw-ab-btn-outline:hover {
    background-color: #0060af;
    color: #ffffff;
}


/* Tablet
   ---------------------------------------------------------- */

@media (min-width: 640px) {

    .sw-ab-inner {
        padding: 0 32px;
    }

    .sw-ab-section {
        padding: 72px 0;
    }

    .sw-ab-jump-list {
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .sw-ab-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .sw-ab-cta-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* Desktop
   ---------------------------------------------------------- */

@media (min-width: 1024px) {

    .sw-ab-hero {
        padding: 32px 0 72px;
    }

    .sw-ab-hero-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 56px;
        align-items: center;
    }

    .sw-ab-hero-media {
        order: 0;
    }

    .sw-ab-hero-img {
        aspect-ratio: 4 / 3;
    }

    .sw-ab-section {
        padding: 96px 0;
    }

    .sw-ab-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

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

    .sw-ab-stat,
    .sw-ab-stat:nth-child(odd),
    .sw-ab-stat:nth-child(even) {
        padding: 32px 24px;
        border-right: 1px solid rgba(255, 255, 255, 0.35);
    }

    .sw-ab-stat:first-child {
        padding-left: 0;
    }

    .sw-ab-stat:last-child {
        border-right: 0;
    }

    .sw-ab-stat-number {
        font-size: clamp(2.6rem, 4vw, 4.2rem);
    }

    .sw-ab-tiles {
        grid-template-columns: repeat(3, 1fr);
    }

    .sw-ab-cta {
        padding: 88px 0;
    }
}


/* Reduced motion
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .sw-ab-jump-link,
    .sw-ab-tile,
    .sw-ab-btn {
        transition: none;
    }
}
