/* SBMPC adaptation of Porto's Marketing 1 demo. */
:root {
    --primary: #0b4f8a;
    --primary-100: #094579;
    --primary-200: #073d6d;
    --primary-300: #06355f;
    --primary--100: #1769aa;
    --primary--200: #2b7dbb;
    --primary--300: #4c93c7;
    --primary-rgba-10: rgba(11, 79, 138, .1);
    --primary-rgba-20: rgba(11, 79, 138, .2);
    --primary-rgba-30: rgba(11, 79, 138, .3);
    --primary-rgba-40: rgba(11, 79, 138, .4);
    --primary-rgba-50: rgba(11, 79, 138, .5);
    --primary-rgba-60: rgba(11, 79, 138, .6);
    --primary-rgba-70: rgba(11, 79, 138, .7);
    --primary-rgba-80: rgba(11, 79, 138, .8);
    --primary-rgba-90: rgba(11, 79, 138, .9);
    --secondary: #f28c28;
    --secondary-100: #de7c19;
    --secondary-200: #c96e0e;
    --secondary-300: #b45f06;
    --secondary--100: #f59d47;
    --secondary--200: #f7ab61;
    --secondary--300: #f9b97b;
    --secondary-rgba-10: rgba(242, 140, 40, .1);
    --secondary-rgba-20: rgba(242, 140, 40, .2);
    --secondary-rgba-30: rgba(242, 140, 40, .3);
    --secondary-rgba-40: rgba(242, 140, 40, .4);
    --secondary-rgba-50: rgba(242, 140, 40, .5);
    --secondary-rgba-60: rgba(242, 140, 40, .6);
    --secondary-rgba-70: rgba(242, 140, 40, .7);
    --secondary-rgba-80: rgba(242, 140, 40, .8);
    --secondary-rgba-90: rgba(242, 140, 40, .9);
    --tertiary: #bfe4f4;
    --quaternary: #fde0bb;
    --dark: #071f33;
    --dark-100: #051827;
    --dark-200: #04131f;
    --dark-300: #020d15;
}

html { scroll-behavior: smooth; }

body {
    overflow-x: hidden;
    overflow-y: auto;
    color: #304559;
}

/* Keep essential content visible even when a browser blocks or delays motion. */
.appear-animation,
.appear-animation:not(.animated) {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.appear-animation .mark.mark-color::before { width: 105% !important; }

a { text-decoration: none; }

.body { background: #fff; }

#header .header-body {
    background: transparent;
    transition: background .25s ease, box-shadow .25s ease;
}

#header.header-effect-shrink .header-body,
#header.sticky-header-active .header-body {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 30px rgba(5, 31, 51, .08) !important;
    backdrop-filter: blur(14px);
}

.header-logo .sbmpc-logo {
    width: 210px;
    height: auto;
    max-height: 68px;
    object-fit: contain;
}

#header .header-nav-main nav > ul > li > a {
    color: #102b42;
    font-weight: 600;
}

#header .header-nav-main nav > ul > li > a.active,
#header .header-nav-main nav > ul > li:hover > a {
    color: var(--primary) !important;
}

#header .header-nav-main.header-nav-main-text-size-4 nav > ul > li > a.nav-link-custom-1 {
    display: inline-flex;
    align-items: center;
    align-self: center;
    height: 48px !important;
    min-height: 48px;
    margin-left: .7rem;
    padding: .65rem 1.35rem !important;
    border-radius: 999px !important;
    background: var(--dark) !important;
    color: #fff !important;
}

#header .header-nav-main.header-nav-main-text-size-4 nav > ul > li > a.nav-link-custom-1 span {
    border-bottom: 0;
}

.hero {
    min-height: 790px;
    display: flex;
    align-items: center;
    background-color: #f7fbff !important;
}

.hero .section-angled-content { width: 100%; }

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: linear-gradient(90deg, var(--primary), #188ac1);
    color: #fff;
    border-radius: 999px;
    padding: .55rem 1rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.custom-hero-font-1 {
    color: var(--dark);
    letter-spacing: -.055em;
    max-width: 760px;
}

.custom-hero-font-1 mark { color: var(--primary); }

.hero-copy {
    max-width: 610px;
    color: #4c6072;
    font-size: 1.08rem;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem 1.6rem;
    margin: 1.5rem 0 1.75rem;
}

.hero-proof span {
    color: #19364e;
    font-weight: 600;
}

.hero-proof i { color: var(--secondary); }

.hero-proof .hero-proof-assets {
    padding: .45rem .8rem;
    border-radius: 999px;
    background: #fff0dc;
    color: #8b4304;
}

.sbmpc-mosaic {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 72px);
    gap: .9rem;
    max-width: 620px;
    margin-left: auto;
    transform: rotate(2deg);
}

.mosaic-card {
    overflow: hidden;
    border: 7px solid #fff;
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(7, 31, 51, .13);
    background: #fff;
}

.mosaic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosaic-card:nth-child(1) { grid-area: 1 / 1 / 4 / 4; }
.mosaic-card:nth-child(2) { grid-area: 1 / 4 / 3 / 7; }
.mosaic-card:nth-child(3) { grid-area: 4 / 1 / 7 / 3; }
.mosaic-card:nth-child(4) { grid-area: 3 / 4 / 7 / 7; }
.mosaic-card:nth-child(5) { grid-area: 4 / 3 / 7 / 4; }

.mosaic-seal {
    position: absolute;
    z-index: 4;
    left: 38%;
    top: 42%;
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 14px 35px rgba(7, 31, 51, .24);
    transform: rotate(-2deg);
}

.mosaic-seal img { width: 98px; height: 98px; object-fit: contain; }

.mosaic-assets {
    position: absolute;
    z-index: 5;
    right: -18px;
    bottom: -26px;
    display: flex;
    align-items: baseline;
    gap: .55rem;
    padding: .8rem 1.2rem;
    border-radius: 999px;
    background: var(--dark);
    color: #fff;
    box-shadow: 0 16px 34px rgba(7, 31, 51, .24);
    transform: rotate(-2deg);
}

.mosaic-assets strong {
    color: #fff;
    font-family: Lexend, sans-serif;
    font-size: 1.8rem;
    letter-spacing: -.05em;
}

.mosaic-assets span { color: #bfe4f4; font-size: .82rem; font-weight: 700; }

.custom-pos-1 .marquee p { letter-spacing: .01em; }

.section-label {
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: 999px;
    color: var(--primary);
    background: #e4f3fa;
    font-size: .82rem;
    font-weight: 700;
}

.cooperative-intro { padding: 7rem 0 6rem; }

.intro-photo {
    min-height: 475px;
    border-radius: 22px;
    background: linear-gradient(0deg, rgba(7, 31, 51, .12), rgba(7, 31, 51, .12)), url('img/bg-img/MAIN.jpg') center/cover;
    box-shadow: 0 28px 60px rgba(7, 31, 51, .14);
}

.mini-value-card {
    height: 100%;
    padding: 1.6rem;
    border: 1px solid #dce9f2;
    border-radius: 16px;
    background: #fff;
}

.mini-value-card h4 { color: var(--dark); font-size: 1.05rem; }
.mini-value-card p { margin: 0; font-size: .9rem; }

.impact-band { background: var(--dark); }

.impact-number {
    color: #fff;
    font-family: Lexend, sans-serif;
    font-size: clamp(3.2rem, 5.4vw, 6rem);
    font-weight: 700;
    letter-spacing: -.07em;
    line-height: 1;
}

.impact-number .accent { color: var(--secondary); }

.impact-card {
    height: 100%;
    padding-right: 1.8rem;
    border-right: 1px solid rgba(255,255,255,.13);
}

.impact-card h3 { color: #fff; font-size: 1.25rem; }
.impact-card p { color: #9fb0c1; font-size: .9rem; }

.impact-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.impact-grid .impact-card {
    padding: 0 1.6rem;
}

.impact-grid .impact-card:first-child { padding-left: 0; }
.impact-grid .impact-card:last-child { border-right: 0; }

.impact-card-featured .impact-number { color: #ffc26f; }

.service-section { background: #f3f8fc; padding: 7rem 0; }

.service-feature {
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 2.25rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #dce8f1;
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 55px rgba(7, 31, 51, .1);
}

.service-feature .service-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: #e6f3fa;
    color: var(--primary);
    font-size: 1.6rem;
}

.service-feature h3 { color: var(--dark); font-size: 1.55rem; }
.service-feature p { color: #5b6e7f; }
.service-feature a { margin-top: auto; color: var(--primary); font-weight: 700; }
.service-feature a i { color: var(--secondary); }
.service-feature.is-allied { background: #fff8ed; border-color: #f5d6aa; }
.service-feature.is-allied .service-icon { background: #ffe5c5; color: #b75d07; }

.loan-list { list-style: none; padding: 0; margin: 0; }
.loan-list li { border-top: 1px solid #dce5ec; }
.loan-list li:last-child { border-bottom: 1px solid #dce5ec; }
.loan-list a {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.6rem .4rem;
    color: var(--dark);
}
.loan-list .loan-num { color: #8da0b1; font-size: .82rem; font-weight: 700; }
.loan-list .loan-name { font-family: Lexend, sans-serif; font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 600; }
.loan-list .loan-type { color: #73879a; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.loan-list a:hover .loan-name { color: var(--primary); }
.loan-list a:hover i { transform: translate(3px, -3px); color: var(--secondary); }
.loan-list i { transition: .2s ease; }

.photo-callout {
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(0deg, rgba(7,31,51,.88), rgba(7,31,51,.05) 65%), url('img/front/agri-c.jpg') center/cover;
}

.photo-callout-content { max-width: 760px; padding-bottom: 5rem; color: #fff; }
.photo-callout-content h2 {
    margin: 1.5rem 0 1.75rem;
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 5rem);
    letter-spacing: -.055em;
    line-height: 1.08;
}
.photo-callout-content p {
    max-width: 680px;
    margin-bottom: 1.35rem;
    color: rgba(255,255,255,.86);
    line-height: 1.8;
}

@media (min-width: 992px) {
    .photo-callout-content { padding-bottom: 6.5rem; }
    .photo-callout-content .btn { margin-top: 1.25rem !important; }
}

.branch-panel {
    background: #f7f4ff;
    border-radius: 24px;
    overflow: hidden;
}

.branch-panel-image {
    min-height: 460px;
    background: url('img/front/opening.jpg') center/cover;
}

.contact-strip {
    margin-top: -1px;
    background: linear-gradient(105deg, var(--primary), #127cad);
    color: #fff;
}

.contact-strip h2 { color: #fff; letter-spacing: -.045em; }
.contact-strip p { color: rgba(255,255,255,.78); }

#footer { padding-top: 0; }
.footer-logo-mark { width: 220px; max-width: 100%; background: #fff; border-radius: 10px; padding: .45rem; }
#footer a { color: #b8c6d2; }
#footer a:hover { color: #fff; }
.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-list li { margin-bottom: .75rem; color: #b8c6d2; }
.footer-contact-list i { color: var(--secondary); width: 22px; }

@media (max-width: 1199px) {
    .hero { min-height: 730px; }
    .sbmpc-mosaic { grid-template-rows: repeat(6, 60px); }
    .impact-grid { grid-template-columns: repeat(3, 1fr); }
    .impact-grid .impact-card { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.13); }
}

@media (max-width: 991px) {
    #header .header-body { background: rgba(255,255,255,.96); }
    #header .header-btn-collapse-nav {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: var(--dark) !important;
        color: #fff !important;
        border-radius: 10px;
    }
    .hero { padding-top: 115px; min-height: auto; }
    .hero .row { padding-bottom: 7rem !important; }
    .sbmpc-mosaic { margin: 2.5rem auto 0; transform: none; }
    .impact-card { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); padding: 1.5rem 0; }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-photo { min-height: 380px; }
}

@media (max-width: 575px) {
    .appear-animation,
    .appear-animation:not(.animated) {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
    .appear-animation .mark.mark-color::before { width: 105% !important; }
    .header-logo .sbmpc-logo { width: 165px; }
    .custom-hero-font-1 { font-size: 2.7rem; }
    .sbmpc-mosaic { grid-template-rows: repeat(6, 45px); gap: .5rem; }
    .mosaic-card { border-width: 4px; border-radius: 12px; }
    .mosaic-seal { width: 80px; height: 80px; }
    .mosaic-seal img { width: 68px; height: 68px; }
    .mosaic-assets { right: 0; bottom: -18px; padding: .55rem .85rem; }
    .mosaic-assets strong { font-size: 1.3rem; }
    .impact-grid { grid-template-columns: 1fr; }
    .impact-grid .impact-card { padding: 1.35rem 0; }
    .cooperative-intro, .service-section { padding: 5rem 0; }
    .loan-list a { grid-template-columns: 42px 1fr auto; }
    .loan-list .loan-type { display: none; }
    .photo-callout { min-height: 520px; }
}
