/* =====================================================
   HOME: FOUNDER (fd-) and CONTACT (ct-), royal sapphire palette
===================================================== */
:root{
    --brand: #0f2d5c;
    --brand-deep: #0a1e3f;
    --brand-soft: #1d4b8f;
    --gold: #FFB400;
    --cream: #FDF8EA;
}

/* ---------- founder ---------- */
.fd-section{
    background: var(--brand-deep);
    color: var(--cream);
    padding: 96px 0;
}
.fd-grid{
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
}
.fd-media{ position: sticky; top: 110px; }
.fd-photo{
    border-radius: 18px;
    overflow: hidden;
    background: var(--gold);
    aspect-ratio: 4 / 5;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.fd-photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-facts{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}
.fd-fact{
    background: var(--brand);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 16px 18px;
}
.fd-fact strong{
    display: block;
    font-family: "Josefin Sans", sans-serif;
    font-size: 28px;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 6px;
}
.fd-fact span{ font-size: 13px; color: rgba(253,248,234,.7); }

.fd-eyebrow{
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.fd-title{
    color: #fff;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.12;
    margin-bottom: 28px;
}
.fd-quote{
    margin: 0 0 28px;
    padding: 20px 24px;
    background: rgba(255,180,0,.08);
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-style: italic;
    color: #fff;
    line-height: 1.55;
}
.fd-person{ margin-bottom: 16px; }
.fd-person h3{ color: #fff; font-size: 1.6rem; margin: 0 0 4px; }
.fd-person span{
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
}
.fd-text{
    color: rgba(253,248,234,.78);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}
.fd-text strong{ color: #fff; }

.fd-values{
    list-style: none;
    padding: 0;
    margin: 28px 0 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
}
.fd-values li{
    background: var(--brand);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 18px;
}
.fd-values i{
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--gold);
    color: var(--brand-deep);
    margin-bottom: 12px;
}
.fd-values h6{ color: #fff; margin: 0 0 4px; font-size: 15px; }
.fd-values p{ color: rgba(253,248,234,.68); font-size: 13.5px; line-height: 1.55; margin: 0; }

.fd-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--brand-deep);
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 50px;
    transition: transform .25s, box-shadow .25s;
}
.fd-btn:hover{ color: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,180,0,.3); }
.fd-btn:active{ transform: none; }

@media (max-width: 991.98px){
    .fd-section{ padding: 64px 0; }
    .fd-grid{ grid-template-columns: 1fr; gap: 36px; }
    .fd-media{ position: static; max-width: 420px; width: 100%; margin: 0 auto; }
    .fd-values{ grid-template-columns: 1fr; }
    .fd-values li{ display: flex; gap: 14px; align-items: flex-start; }
    .fd-values i{ flex-shrink: 0; margin: 0; }
}
@media (max-width: 575.98px){
    .fd-quote{ padding: 16px 18px; }
    .fd-btn{ width: 100%; justify-content: center; }
}

/* ---------- contact ---------- */
.ct-section{ background: var(--cream); padding: 88px 0; }
.ct-card{
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10,30,63,.12);
}
.ct-top{
    background: var(--brand);
    color: #fff;
    padding: 48px 52px 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}
.ct-intro{ max-width: 620px; }
.ct-eyebrow{
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.ct-title{
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 12px;
}
.ct-sub{ color: rgba(255,255,255,.75); margin: 0; }
.ct-btn{
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--brand-deep);
    font-family: "Josefin Sans", sans-serif;
    font-weight: 700;
    padding: 15px 28px;
    border-radius: 50px;
    transition: transform .25s, box-shadow .25s;
}
.ct-btn:hover{ color: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,180,0,.35); }

/* the three action tiles overlap the green band */
.ct-actions{
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
    padding: 0 52px;
    margin-top: -84px;
    position: relative;
}
.ct-action{
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e4eaf5;
    border-radius: 16px;
    padding: 20px;
    color: var(--brand-deep);
    box-shadow: 0 10px 30px rgba(10,30,63,.10);
    transition: transform .25s, border-color .25s, box-shadow .25s;
    min-width: 0;
}
.ct-action:hover{
    color: var(--brand-deep);
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 14px 34px rgba(10,30,63,.14);
}
.ct-icon{
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold);
    color: var(--brand-deep);
    font-size: 18px;
}
.ct-icon--wa{ background: #25D366; color: #fff; font-size: 22px; }
.ct-action-text{ min-width: 0; font-weight: 700; font-size: 16px; }
.ct-action-text small{
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7a8394;
    margin-bottom: 3px;
}

.ct-offices{
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    padding: 36px 52px 44px;
}
.ct-office{ padding: 8px 28px 8px 0; }
.ct-office + .ct-office{ padding-left: 28px; border-left: 1px solid #e4eaf5; }
.ct-tag{
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-soft);
    margin-bottom: 8px;
}
.ct-office h5{ color: var(--brand-deep); margin-bottom: 8px; }
.ct-office h5 a{ color: var(--brand-deep); }
.ct-office p{ color: #5f6b7d; line-height: 1.6; margin-bottom: 8px; font-size: 15px; }
.ct-office .ct-meta{ font-size: 14px; }
.ct-meta i{ color: var(--gold); margin-right: 6px; }
.ct-dir{
    font-weight: 700;
    font-size: 14px;
    color: var(--brand);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
}
.ct-dir i{ margin-left: 6px; font-size: 12px; transition: transform .25s; }
.ct-dir:hover{ color: var(--brand-deep); }
.ct-dir:hover i{ transform: translateX(3px); }

@media (max-width: 1199.98px){
    .ct-action-text{ font-size: 14.5px; }
    .ct-action{ padding: 16px; }
}
@media (max-width: 991.98px){
    .ct-section{ padding: 60px 0; }
    .ct-top{ flex-direction: column; align-items: flex-start; padding: 40px 28px; }
    .ct-actions{ grid-template-columns: 1fr; margin-top: 0; padding: 24px 28px 0; }
    .ct-action{ box-shadow: none; }
    .ct-offices{ grid-template-columns: 1fr; padding: 12px 28px 28px; }
    .ct-office, .ct-office + .ct-office{ padding: 20px 0; border-left: 0; border-top: 1px solid #e4eaf5; }
    .ct-office:first-child{ border-top: 0; }
}
@media (max-width: 575.98px){
    .ct-top, .ct-actions, .ct-offices{ padding-left: 20px; padding-right: 20px; }
    .ct-btn{ width: 100%; justify-content: center; }
}

/* =====================================================
   HOME: glass touches + sliding cards on phones
===================================================== */

/* hero slide text sits on a frosted panel over the textured ground */
.header-carousel .carousel-text{
    background: rgba(255,255,255,.42);
    border: 1px solid rgba(255,255,255,.75);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border-radius: 24px;
    padding: 36px 36px 40px;
    box-shadow: 0 18px 44px rgba(10,30,63,.10);
}

/* founder: glow behind, frosted fact and value cards */
.fd-section{
    background:
        radial-gradient(circle at 12% 18%, rgba(29,75,143,.55), transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(255,180,0,.10), transparent 40%),
        var(--brand-deep);
}
.fd-fact, .fd-values li{
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

/* contact: tiles over the blue band are frosted */
.ct-action{
    background: rgba(255,255,255,.86);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border-color: rgba(255,255,255,.9);
}

/* gallery "more photos" tile: frosted label */
.hg-more-text{
    inset: auto 14px 14px 14px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.hg-more img{ filter: brightness(.7); }

/* sliding cards on phones: initiatives, events, founder values */
@media (max-width: 767.98px){
    .m-swipe{
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        gap: 14px;
        margin-left: -12px !important;
        margin-right: -12px !important;
        padding: 4px 12px 16px !important;
        scroll-padding-left: 12px;
        scrollbar-width: none;
        --bs-gutter-x: 0;
    }
    .m-swipe::-webkit-scrollbar{ display: none; }
    .m-swipe > *{
        flex: 0 0 85% !important;
        max-width: 85% !important;
        width: auto !important;
        scroll-snap-align: start;
        margin-top: 0 !important;
    }
    .fd-values.m-swipe > li{ display: block; }
    .fd-values.m-swipe i{ margin-bottom: 12px; }
    .header-carousel .carousel-text{ padding: 24px 22px 28px; border-radius: 18px; }
}

/* QA: thumb-sized tap targets on phones */
@media (max-width: 767.98px){
    .hg-link{ display: inline-flex; align-items: center; min-height: 40px; }
    .event-link{ display: inline-flex; align-items: center; min-height: 40px; }
    .ct-dir{ display: inline-flex; align-items: center; min-height: 40px; }
    .ct-office h5 a{ display: inline-block; padding: 8px 0; }
}

/* QA: homepage impact tiles as a compact 2x2 grid on phones */
@media (max-width: 575.98px){
    .rounded.overflow-hidden > .row.g-0 > .col-sm-6{ flex: 0 0 50%; max-width: 50%; }
    .rounded.overflow-hidden > .row.g-0 > .col-sm-6 > div{ padding: 22px 10px !important; }
    .rounded.overflow-hidden > .row.g-0 > .col-sm-6 .fa-3x{ font-size: 1.6em; margin-bottom: 8px !important; }
    .rounded.overflow-hidden > .row.g-0 > .col-sm-6 .display-5{ font-size: 1.8rem; }
    .rounded.overflow-hidden > .row.g-0 > .col-sm-6 span{ font-size: 13px; }
}
@media (max-width: 575.98px){
    .fd-media{ max-width: 300px; }
    .fd-photo{ aspect-ratio: 1 / 1; }
}
