/* ==========================================================================
   Nascent Grow (Pvt) Ltd — Main stylesheet
   Mobile-first. Built on Bootstrap 5.3.
   ========================================================================== */

:root {
    --ng-primary: #0f7e83;        /* extracted from the logo */
    --ng-primary-600: #0c6c70;
    --ng-dark: #0a5357;
    --ng-deep: #073c3f;
    --ng-deeper: #052b2d;
    --ng-light: #eef7f7;
    --ng-light-2: #dceff0;
    --ng-mint: #7fd1cf;
    --ng-text: #23302f;
    --ng-muted: #5a6b6b;
    --ng-border: #e1ecec;
    --ng-white: #ffffff;

    --ng-font-head: 'Lora', Georgia, 'Times New Roman', serif;
    --ng-font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --ng-radius-sm: 10px;
    --ng-radius: 18px;
    --ng-radius-lg: 28px;
    --ng-shadow-sm: 0 2px 10px rgba(7, 60, 63, .06);
    --ng-shadow: 0 12px 34px rgba(7, 60, 63, .09);
    --ng-shadow-lg: 0 24px 60px rgba(7, 60, 63, .16);
    --ng-ease: cubic-bezier(.22, .61, .36, 1);
    --ng-header-h: 72px;
    --ng-gutter: 1.25rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ng-header-h) + 12px); }

body {
    font-family: var(--ng-font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ng-text);
    background: var(--ng-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
/* Mobile browsers still let people pan sideways with only body{overflow-x:hidden}.
   `clip` stops it without creating a scroll container, so the sticky header keeps working. */
@supports (overflow: clip) {
    html, body { overflow-x: clip; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ng-font-head);
    color: var(--ng-deep);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -.01em;
}

p { color: var(--ng-muted); }
a { color: var(--ng-primary); text-decoration: none; transition: color .2s var(--ng-ease); }
a:hover { color: var(--ng-dark); }
img { max-width: 100%; height: auto; display: block; }
address { margin: 0; font-style: normal; }

.container { padding-left: var(--ng-gutter); padding-right: var(--ng-gutter); }

:focus-visible { outline: 3px solid var(--ng-mint); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--ng-deep); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }

::selection { background: var(--ng-primary); color: #fff; }

/* ---------- Buttons ---------- */
.btn-ng {
    --pad-y: .85rem; --pad-x: 1.6rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: var(--pad-y) var(--pad-x);
    font-family: var(--ng-font-body); font-weight: 500; font-size: 1rem; letter-spacing: .01em;
    border-radius: 999px; border: 2px solid transparent;
    transition: transform .25s var(--ng-ease), box-shadow .25s var(--ng-ease), background-color .25s, color .25s, border-color .25s;
    white-space: nowrap;
}
.btn-ng i { font-size: 1.05em; transition: transform .25s var(--ng-ease); }
.btn-ng:hover i.bi-arrow-right { transform: translateX(4px); }

.btn-ng-primary { background: var(--ng-primary); color: #fff; box-shadow: 0 8px 20px rgba(15, 126, 131, .28); }
.btn-ng-primary:hover, .btn-ng-primary:focus-visible { background: var(--ng-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 126, 131, .34); }

.btn-ng-light { background: #fff; color: var(--ng-deep); }
.btn-ng-light:hover, .btn-ng-light:focus-visible { background: var(--ng-light); color: var(--ng-deep); transform: translateY(-2px); }

.btn-ng-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-ng-outline-light:hover, .btn-ng-outline-light:focus-visible { background: #fff; border-color: #fff; color: var(--ng-deep); transform: translateY(-2px); }

.btn-ng-outline { border-color: var(--ng-primary); color: var(--ng-primary); background: transparent; }
.btn-ng-outline:hover, .btn-ng-outline:focus-visible { background: var(--ng-primary); color: #fff; transform: translateY(-2px); }

.btn-group-ng { display: flex; flex-wrap: wrap; gap: .85rem; }

@media (max-width: 575.98px) {
    .btn-group-ng { flex-direction: column; }
    .btn-group-ng .btn-ng, .btn-block-mobile { width: 100%; }
}

/* ---------- Header / Navbar ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s var(--ng-ease), border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(7, 60, 63, .08); border-bottom-color: var(--ng-border); }

.site-header .navbar { min-height: var(--ng-header-h); padding: .55rem 0; }
.navbar-brand { padding: 0; margin-right: 1rem; }
.brand-logo { height: 40px; width: auto; transition: height .3s var(--ng-ease); }

.navbar-toggler {
    width: 46px; height: 46px; padding: 0; border: 1px solid var(--ng-border); border-radius: 12px;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: var(--ng-light);
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(127, 209, 207, .6); }
.toggler-bar { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ng-deep); transition: transform .3s var(--ng-ease), opacity .2s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar .nav-link {
    font-weight: 500; color: var(--ng-text); font-size: 1.02rem;
    position: relative;
}
.navbar .nav-link:hover, .navbar .nav-link:focus-visible { color: var(--ng-primary); }
.navbar .nav-link.active { color: var(--ng-primary); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-actions .btn-ng { --pad-y: .62rem; --pad-x: 1.3rem; font-size: .96rem; }

/* Mobile menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin: .75rem calc(var(--ng-gutter) * -1) 0;
        padding: .5rem var(--ng-gutter) 1.25rem;
        border-top: 1px solid var(--ng-border);
        max-height: calc(100vh - var(--ng-header-h));
        max-height: calc(100dvh - var(--ng-header-h));   /* excludes the mobile browser toolbar */
        overflow-y: auto; overscroll-behavior: contain;
    }
    .navbar .nav-item { border-bottom: 1px solid var(--ng-border); }
    .navbar .nav-link { padding: .95rem .25rem; display: flex; align-items: center; justify-content: space-between; }
    .navbar .nav-link::after {
        content: "\F285"; font-family: 'bootstrap-icons'; font-size: .8rem; color: #a3b6b6;
    }
    .navbar .nav-link.active::after { color: var(--ng-primary); }
    .nav-actions { flex-direction: column; align-items: stretch; gap: .75rem; margin-top: 1.1rem; }
    .nav-actions .btn-ng { --pad-y: .85rem; width: 100%; }
}

@media (min-width: 992px) {
    .brand-logo { height: 48px; }
    .navbar .nav-link { padding: .5rem .85rem !important; }
    .navbar .nav-link::before {
        content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px;
        background: var(--ng-primary); border-radius: 2px; transform: scaleX(0); transform-origin: left;
        transition: transform .3s var(--ng-ease);
    }
    .navbar .nav-link:hover::before, .navbar .nav-link.active::before { transform: scaleX(1); }
    .site-header.is-scrolled .brand-logo { height: 42px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar .nav-link { padding: .5rem .6rem !important; font-size: .98rem; }
    .navbar .nav-link::before { left: .6rem; right: .6rem; }
    .brand-logo { height: 42px; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; position: relative; }
.section-light { background: var(--ng-light); }
.section-tint { background: linear-gradient(180deg, #fff 0%, var(--ng-light) 100%); }

@media (min-width: 768px)  { .section { padding: 5.5rem 0; } }
@media (min-width: 1200px) { .section { padding: 6.5rem 0; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--ng-font-body); font-size: .82rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; color: var(--ng-primary);
    margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--ng-mint); }

.section-head { max-width: 680px; margin: 0 auto 2.75rem; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); margin-bottom: 1rem; }
.section-lead { font-size: 1.1rem; }

.text-teal { color: var(--ng-primary) !important; }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    color: #fff;
    padding: 4.5rem 0 6.5rem;
    min-height: calc(100svh - var(--ng-header-h));
    display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.04); animation: heroZoom 14s var(--ng-ease) forwards; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 43, 45, .55) 0%, rgba(5, 43, 45, .88) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-content { max-width: 680px; }
.hero h1 {
    color: #fff; font-weight: 600;
    font-size: clamp(2.1rem, 1.3rem + 4vw, 4rem);
    line-height: 1.12; margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--ng-mint); display: block; }
.hero-lead { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); margin-bottom: 2rem; max-width: 600px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .45rem 1rem .45rem .5rem; margin-bottom: 1.5rem;
    border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
    font-size: .9rem; color: #fff; backdrop-filter: blur(6px);
}
.hero-badge i { width: 28px; height: 28px; border-radius: 50%; background: var(--ng-primary); display: inline-grid; place-items: center; font-size: .85rem; }

.hero-points {
    list-style: none; padding: 0; margin: 2.25rem 0 0;
    display: grid; gap: .65rem;
}
.hero-points li { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.9); font-size: .98rem; }
.hero-points i { color: var(--ng-mint); font-size: 1.1rem; }

@media (min-width: 576px) { .hero-points { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.5rem; } }

@media (min-width: 992px) {
    .hero { padding: 6rem 0 8rem; min-height: min(calc(100vh - var(--ng-header-h)), 820px); }
    .hero::before {
        background: linear-gradient(90deg, rgba(5, 43, 45, .94) 0%, rgba(7, 60, 63, .82) 42%, rgba(10, 83, 87, .35) 75%, rgba(10, 83, 87, .15) 100%);
    }
}

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; display: block; }
@media (min-width: 768px) { .hero-wave svg { height: 90px; } }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    padding: 4rem 0 4.5rem; text-align: center;
}
.page-banner-bg { position: absolute; inset: 0; z-index: -2; }
.page-banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-banner::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, rgba(5, 43, 45, .93) 0%, rgba(10, 83, 87, .85) 55%, rgba(15, 126, 131, .72) 100%);
}
.page-banner h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); margin-bottom: .75rem; }
.page-banner p { color: rgba(255,255,255,.86); max-width: 640px; margin: 0 auto 1.4rem; font-size: 1.08rem; }
.breadcrumb-ng {
    display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; margin: 0; padding: .45rem 1.1rem;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .92rem;
}
.breadcrumb-ng a { color: #fff; }
.breadcrumb-ng a:hover { color: var(--ng-mint); }
.breadcrumb-ng li + li::before { content: "\F285"; font-family: 'bootstrap-icons'; font-size: .7rem; margin-right: .5rem; color: var(--ng-mint); }
.breadcrumb-ng [aria-current] { color: var(--ng-mint); }

@media (min-width: 768px) { .page-banner { padding: 5.5rem 0 6rem; } }

/* ---------- Image frames ---------- */
.img-frame { position: relative; border-radius: var(--ng-radius-lg); }
.img-frame img { border-radius: var(--ng-radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--ng-shadow-lg); }
.img-frame::before {
    content: ""; position: absolute; z-index: -1; inset: auto -14px -14px auto; width: 65%; height: 65%;
    border-radius: var(--ng-radius-lg); background: linear-gradient(135deg, var(--ng-light-2), var(--ng-mint));
    opacity: .55;
}
.img-frame-left::before { inset: auto auto -14px -14px; }

.img-tag {
    position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
    display: flex; align-items: center; gap: .85rem;
    background: rgba(255,255,255,.96); border-radius: var(--ng-radius); padding: .85rem 1rem;
    box-shadow: var(--ng-shadow);
}
.img-tag .icon-circle { flex: 0 0 auto; }
.img-tag strong { display: block; font-family: var(--ng-font-head); color: var(--ng-deep); font-size: 1.05rem; line-height: 1.3; }
.img-tag div > span { font-size: .9rem; color: var(--ng-muted); line-height: 1.4; display: block; }
@media (min-width: 576px) { .img-tag { right: auto; max-width: 320px; left: 1.5rem; bottom: 1.5rem; } }
@media (min-width: 1200px) { .img-tag { left: -2rem; bottom: 2rem; } }

/* ---------- Icon circles ---------- */
.icon-circle {
    width: 56px; height: 56px; border-radius: 16px;
    display: inline-grid; place-items: center;
    background: var(--ng-light); color: var(--ng-primary); font-size: 1.5rem;
    transition: background-color .3s var(--ng-ease), color .3s, transform .3s var(--ng-ease);
}
.icon-circle-solid { background: var(--ng-primary); color: #fff; }
.icon-circle-sm { width: 46px; height: 46px; font-size: 1.2rem; border-radius: 13px; }
.icon-circle-lg { width: 68px; height: 68px; font-size: 1.8rem; border-radius: 20px; }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ng-text); }
.check-list i {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--ng-light); color: var(--ng-primary); font-size: .9rem; margin-top: .15rem;
}

/* ---------- Service cards (home) ---------- */
.service-card {
    position: relative; height: 100%;
    background: #fff; border: 1px solid var(--ng-border); border-radius: var(--ng-radius);
    padding: 2rem 1.6rem 1.75rem;
    box-shadow: var(--ng-shadow-sm);
    transition: transform .35s var(--ng-ease), box-shadow .35s var(--ng-ease), border-color .35s;
    overflow: hidden; display: flex; flex-direction: column;
}
.service-card::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, var(--ng-primary), var(--ng-mint));
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ng-ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--ng-shadow-lg); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover .icon-circle { background: var(--ng-primary); color: #fff; transform: rotate(-6deg); }
.service-card h3 { font-size: 1.22rem; margin: 1.35rem 0 .6rem; }
.service-card p { font-size: 1rem; margin-bottom: 1.25rem; flex-grow: 1; }
.service-card .card-num {
    position: absolute; top: 1.25rem; right: 1.4rem;
    font-family: var(--ng-font-head); font-size: 2.4rem; font-weight: 700; line-height: 1;
    color: var(--ng-light-2); transition: color .35s;
}
.service-card:hover .card-num { color: var(--ng-light); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--ng-primary); }
.link-arrow i { transition: transform .25s var(--ng-ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Value cards ---------- */
.values-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .values-grid { grid-template-columns: repeat(6, 1fr); }
    .values-grid > * { grid-column: span 2; }
    .values-grid > *:nth-child(4) { grid-column: 2 / span 2; }
}
@media (min-width: 1200px) { .values-grid { grid-template-columns: repeat(5, 1fr); }
    .values-grid > *, .values-grid > *:nth-child(4) { grid-column: auto; }
}
@media (min-width: 576px) and (max-width: 991.98px) { .values-grid > *:last-child { grid-column: 1 / -1; } }

.value-card {
    height: 100%; text-align: center;
    background: #fff; border-radius: var(--ng-radius); padding: 2rem 1.4rem;
    border: 1px solid var(--ng-border); box-shadow: var(--ng-shadow-sm);
    transition: transform .35s var(--ng-ease), box-shadow .35s var(--ng-ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--ng-shadow); }
.value-card .icon-circle { margin-bottom: 1.1rem; border-radius: 50%; }
.value-card:hover .icon-circle { background: var(--ng-primary); color: #fff; }
.value-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.value-card p { font-size: .98rem; margin: 0; }

.values-dark .value-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.values-dark .value-card h3 { color: #fff; }
.values-dark .value-card p { color: rgba(255,255,255,.75); }
.values-dark .value-card .icon-circle { background: rgba(127, 209, 207, .15); color: var(--ng-mint); }
.values-dark .value-card:hover { background: rgba(255,255,255,.1); }
.values-dark .value-card:hover .icon-circle { background: var(--ng-mint); color: var(--ng-deep); }

/* ---------- Dark section ---------- */
.section-dark {
    background: radial-gradient(1200px 500px at 85% -10%, rgba(127, 209, 207, .14), transparent 60%),
                linear-gradient(160deg, var(--ng-deep) 0%, var(--ng-deeper) 100%);
    color: #fff;
}
.section-dark .section-title, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.78); }

/* ---------- Vision & Mission ---------- */
.vm-card {
    position: relative; height: 100%; overflow: hidden;
    background: #fff; border-radius: var(--ng-radius-lg); padding: 2.25rem 1.75rem;
    border: 1px solid var(--ng-border); box-shadow: var(--ng-shadow);
    transition: transform .35s var(--ng-ease), box-shadow .35s var(--ng-ease);
}
.vm-card:hover { transform: translateY(-6px); box-shadow: var(--ng-shadow-lg); }
.vm-card h3 { font-size: 1.6rem; margin: 1.25rem 0 .85rem; }
.vm-card p { margin-bottom: .85rem; }
.vm-card p:last-child { margin-bottom: 0; }
.vm-card .vm-watermark {
    position: absolute; right: -20px; bottom: -30px; font-size: 9rem; line-height: 1;
    color: var(--ng-light); z-index: 0; pointer-events: none;
}
.vm-card > *:not(.vm-watermark) { position: relative; z-index: 1; }
.vm-card-teal { background: linear-gradient(150deg, var(--ng-primary) 0%, var(--ng-dark) 100%); border-color: transparent; }
.vm-card-teal h3 { color: #fff; }
.vm-card-teal p { color: rgba(255,255,255,.88); }
.vm-card-teal .icon-circle { background: rgba(255,255,255,.15); color: #fff; }
.vm-card-teal .vm-watermark { color: rgba(255,255,255,.07); }
@media (min-width: 768px) { .vm-card { padding: 2.75rem 2.5rem; } }

/* ---------- CTA ---------- */
.cta-wrap { padding: 0 0 4.5rem; }
.cta-box {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: var(--ng-radius-lg);
    padding: 3rem 1.5rem; text-align: center; color: #fff;
    background: linear-gradient(130deg, var(--ng-deep) 0%, var(--ng-primary) 100%);
    box-shadow: var(--ng-shadow-lg);
}
.cta-box::before, .cta-box::after {
    content: ""; position: absolute; z-index: -1; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.1);
}
.cta-box::before { width: 360px; height: 360px; right: -120px; top: -160px; }
.cta-box::after  { width: 260px; height: 260px; left: -100px; bottom: -140px; background: rgba(255,255,255,.04); }
.cta-box h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); margin-bottom: .85rem; }
.cta-box p { color: rgba(255,255,255,.86); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }
.cta-box .btn-group-ng { justify-content: center; }
@media (min-width: 768px) { .cta-box { padding: 4.25rem 3rem; } .cta-wrap { padding-bottom: 6rem; } }

/* ---------- Feature list (about microfinance etc.) ---------- */
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-item h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.feature-item p { font-size: .98rem; margin: 0; }

/* ---------- Highlight quote ---------- */
.quote-band {
    position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center;
    padding: 5rem 0;
}
.quote-band-bg { position: absolute; inset: 0; z-index: -2; }
.quote-band-bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5, 43, 45, .86); }
.quote-band blockquote {
    font-family: var(--ng-font-head); font-size: clamp(1.4rem, 1rem + 2vw, 2.25rem); line-height: 1.4;
    max-width: 860px; margin: 0 auto; color: #fff; font-weight: 500;
}
.quote-band .quote-mark { font-size: 3rem; color: var(--ng-mint); line-height: 1; display: block; margin-bottom: 1rem; }
@media (min-width: 768px) { .quote-band { padding: 6.5rem 0; } }

/* ---------- Services page ---------- */
.service-row + .service-row { margin-top: 4rem; }
@media (min-width: 992px) { .service-row + .service-row { margin-top: 6rem; } }
.service-row .service-index {
    font-family: var(--ng-font-head); font-weight: 700; font-size: 1rem; color: var(--ng-primary);
    display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
.service-row .service-index::after { content: ""; width: 40px; height: 2px; background: var(--ng-primary); }
.service-row h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); margin-bottom: 1rem; }
.service-row .img-frame img { aspect-ratio: 5 / 4; }
.service-row .icon-circle { margin-bottom: 1.25rem; }

.service-nav { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .service-nav { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .service-nav { grid-template-columns: repeat(4, 1fr); } }
.service-nav a {
    display: flex; align-items: center; gap: .85rem; height: 100%;
    background: #fff; border: 1px solid var(--ng-border); border-radius: var(--ng-radius); padding: 1rem 1.1rem;
    color: var(--ng-deep); font-weight: 500; line-height: 1.35; box-shadow: var(--ng-shadow-sm);
    transition: transform .3s var(--ng-ease), box-shadow .3s, border-color .3s;
}
.service-nav a:hover { transform: translateY(-4px); box-shadow: var(--ng-shadow); border-color: var(--ng-light-2); color: var(--ng-primary); }
.service-nav a:hover .icon-circle { background: var(--ng-primary); color: #fff; }
.service-nav-wrap { margin-top: -3rem; position: relative; z-index: 2; }

.note-box {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--ng-light); border-left: 4px solid var(--ng-primary);
    border-radius: var(--ng-radius-sm); padding: 1.25rem 1.4rem;
}
.note-box p { margin: 0; color: var(--ng-text); }
.note-box i { color: var(--ng-primary); font-size: 1.3rem; }

/* ---------- Team page ---------- */
.team-collage { position: relative; padding-bottom: 3rem; }
.team-collage .img-main { border-radius: var(--ng-radius-lg); width: 88%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--ng-shadow-lg); }
.team-collage .img-sub {
    position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: var(--ng-radius); border: 6px solid #fff; box-shadow: var(--ng-shadow-lg);
}
.pillar-card {
    height: 100%; background: #fff; border-radius: var(--ng-radius); padding: 1.75rem 1.5rem;
    border: 1px solid var(--ng-border); box-shadow: var(--ng-shadow-sm);
    transition: transform .3s var(--ng-ease), box-shadow .3s;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--ng-shadow); }
.pillar-card h3 { font-size: 1.2rem; margin: 1rem 0 .5rem; }
.pillar-card p { margin: 0; font-size: 1rem; }

/* ---------- Contact page ---------- */
.contact-card {
    height: 100%; display: flex; gap: 1rem; align-items: flex-start;
    background: #fff; border-radius: var(--ng-radius); padding: 1.5rem;
    border: 1px solid var(--ng-border); box-shadow: var(--ng-shadow);
    transition: transform .3s var(--ng-ease), box-shadow .3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--ng-shadow-lg); }
.contact-card h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.contact-card p, .contact-card address { margin: 0; color: var(--ng-text); }
.contact-card a { font-weight: 500; word-break: break-word; }
.contact-cards-wrap { margin-top: -3rem; position: relative; z-index: 2; }

.form-card {
    background: #fff; border-radius: var(--ng-radius-lg); padding: 1.75rem 1.25rem;
    border: 1px solid var(--ng-border); box-shadow: var(--ng-shadow);
}
@media (min-width: 576px) { .form-card { padding: 2.5rem 2.25rem; } }
.form-card h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }

.form-label { font-weight: 500; color: var(--ng-deep); margin-bottom: .4rem; font-size: .97rem; }
.form-label .req { color: #b42318; }
.form-control {
    border: 1.5px solid var(--ng-border); border-radius: 12px; padding: .8rem 1rem;
    font-size: 1rem; color: var(--ng-text); background-color: #fbfdfd;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-control::placeholder { color: #9aabab; }
.form-control:focus { border-color: var(--ng-primary); box-shadow: 0 0 0 4px rgba(15, 126, 131, .12); background-color: #fff; }
textarea.form-control { min-height: 150px; resize: vertical; }
.form-control.is-invalid { border-color: #d92d20; background-image: none; padding-right: 1rem; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(217, 45, 32, .12); }
.invalid-feedback { color: #b42318; font-size: .9rem; }
.form-hint { font-size: .9rem; color: var(--ng-muted); }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.alert-ng {
    display: flex; gap: .85rem; align-items: flex-start;
    border-radius: 14px; padding: 1rem 1.15rem; margin-bottom: 1.5rem; border: 1px solid;
}
.alert-ng i { font-size: 1.3rem; line-height: 1.3; }
.alert-ng strong { display: block; }
.alert-ng p { margin: 0; color: inherit; }
.alert-ng-success { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.alert-ng-error { background: #fef3f2; border-color: #fecdca; color: #912018; }

.btn-ng[disabled] { opacity: .75; pointer-events: none; }
.btn-ng .spinner-border { width: 1.1rem; height: 1.1rem; border-width: .15em; }

.map-card {
    border-radius: var(--ng-radius-lg); overflow: hidden; height: 100%; min-height: 360px;
    border: 1px solid var(--ng-border); box-shadow: var(--ng-shadow); background: var(--ng-light);
    display: flex; flex-direction: column;
}
.map-card iframe { width: 100%; flex: 1 1 auto; min-height: 320px; border: 0; display: block; }
.map-card-footer {
    display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; background: #fff; border-top: 1px solid var(--ng-border);
}
.map-card-footer p { margin: 0; font-size: .95rem; color: var(--ng-text); }

.social-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    background: var(--ng-light); border-radius: var(--ng-radius); padding: 1.5rem;
}
.social-strip h2 { font-size: 1.3rem; margin: 0 0 .2rem; }
.social-strip p { margin: 0; }
.btn-facebook { background: #1877f2; color: #fff; }
.btn-facebook:hover, .btn-facebook:focus-visible { background: #0e63d3; color: #fff; transform: translateY(-2px); }
@media (max-width: 575.98px) { .social-strip .btn-ng { width: 100%; } }

/* ---------- Apply for a Loan ---------- */
.loan-section { background: linear-gradient(180deg, var(--ng-light) 0%, #fff 420px); }
.loan-card { position: relative; }
.loan-card > .eyebrow { margin-bottom: .6rem; }

.loan-step {
    border: 1px solid var(--ng-border); border-radius: var(--ng-radius); padding: 1.25rem 1rem 1.4rem;
    margin: 0 0 1.25rem; background: #fff; transition: border-color .3s, box-shadow .3s var(--ng-ease);
}
.loan-step:focus-within { border-color: var(--ng-light-2); box-shadow: 0 10px 28px rgba(7, 60, 63, .07); }
@media (min-width: 576px) { .loan-step { padding: 1.6rem 1.5rem 1.75rem; } }
.loan-step-head {
    float: none; width: 100%; display: flex; align-items: center; gap: .85rem;
    padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px dashed var(--ng-light-2);
    font-family: var(--ng-font-head); font-size: 1.25rem; font-weight: 600; color: var(--ng-deep); line-height: 1.25;
}
.loan-step-head small {
    display: block; font-family: var(--ng-font-body); font-size: .75rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ng-primary); margin-bottom: .1rem;
}
.loan-step-num {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: inline-grid; place-items: center;
    background: var(--ng-primary); color: #fff; font-size: 1.2rem; box-shadow: 0 6px 16px rgba(15, 126, 131, .25);
}
.loan-step-last { margin-bottom: 0; }

.form-label .opt {
    font-size: .74rem; font-weight: 500; color: var(--ng-muted); background: var(--ng-light);
    border-radius: 999px; padding: .1rem .5rem; margin-left: .3rem; vertical-align: middle;
}
.field-hint { font-size: .85rem; color: var(--ng-muted); margin-top: .3rem; }
.form-control.is-invalid ~ .field-hint { display: none; }

/* Inputs with a leading icon */
.input-icon { position: relative; }
.input-icon > i {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); z-index: 4;
    color: #8fb0b0; font-size: 1.05rem; pointer-events: none; transition: color .2s;
}
.input-icon-top > i { top: 1.05rem; transform: none; }
.input-icon > .form-control, .input-icon > .form-select { padding-left: 2.75rem; }
.input-icon:focus-within > i { color: var(--ng-primary); }
.input-icon:has(.is-invalid) > i { color: #d92d20; }
/* Loan form messages show whenever they contain text (filled by the server or JS) */
.loan-card .invalid-feedback:not(:empty) { display: block; }
.input-icon:has(.is-invalid) ~ .field-hint { display: none; }

.form-select {
    border: 1.5px solid var(--ng-border); border-radius: 12px; padding-top: .8rem; padding-bottom: .8rem;
    font-size: 1rem; color: var(--ng-text); background-color: #fbfdfd; cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-select:hover, .form-control:hover:not(:focus) { border-color: #c5dede; }
.form-select:focus { border-color: var(--ng-primary); box-shadow: 0 0 0 4px rgba(15, 126, 131, .12); background-color: #fff; }
.form-select.is-invalid { border-color: #d92d20; }
.form-select.is-invalid:focus { box-shadow: 0 0 0 4px rgba(217, 45, 32, .12); }
.loan-card textarea.form-control { min-height: 0; }
.loan-card #details { min-height: 120px; }

/* LKR amount fields */
.input-group-lkr .input-group-text {
    border: 1.5px solid var(--ng-border); border-right: 0; border-radius: 12px 0 0 12px;
    background: var(--ng-light); color: var(--ng-deep); font-weight: 600; font-size: .9rem; letter-spacing: .04em;
    padding: 0 .95rem; transition: border-color .2s, background-color .2s, color .2s;
}
.input-group-lkr .form-control { border-radius: 0 12px 12px 0 !important; }
.input-group-lkr:focus-within .input-group-text { border-color: var(--ng-primary); background: var(--ng-primary); color: #fff; }
.input-group-lkr:has(.is-invalid) .input-group-text { border-color: #d92d20; }

/* "Other" reveal */
.other-field { animation: ngFadeDown .35s var(--ng-ease); }
@keyframes ngFadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Privacy notice + consent */
.privacy-notice { border: 1px solid var(--ng-border); border-radius: 14px; background: #fbfdfd; margin-bottom: 1rem; }
.privacy-notice summary {
    cursor: pointer; list-style: none; padding: .9rem 1.1rem; font-weight: 500; color: var(--ng-primary);
    display: flex; align-items: center; gap: .55rem; border-radius: 14px; transition: background-color .2s;
}
.privacy-notice summary::-webkit-details-marker { display: none; }
.privacy-notice summary::after { content: "\F282"; font-family: 'bootstrap-icons'; margin-left: auto; font-size: .85rem; transition: transform .25s var(--ng-ease); }
.privacy-notice[open] summary::after { transform: rotate(180deg); }
.privacy-notice summary:hover { background: var(--ng-light); }
.privacy-body { padding: .25rem 1.1rem 1.1rem; border-top: 1px solid var(--ng-border); }
.privacy-body h3 { font-size: 1.05rem; margin: 1rem 0 .75rem; }
.privacy-body p { font-size: .94rem; margin-bottom: .65rem; color: var(--ng-text); }

.consent-box {
    background: var(--ng-light); border: 1.5px solid var(--ng-light-2); border-radius: 14px; padding: 1rem 1.1rem;
    transition: border-color .2s, background-color .2s;
}
.consent-box:has(.form-check-input:checked) { border-color: var(--ng-primary); background: #e6f4f4; }
.consent-box.is-invalid, .consent-box:has(.is-invalid) { border-color: #d92d20; background: #fef3f2; }
.consent-box .form-check { margin: 0; padding-left: 2rem; }
.consent-box .form-check-input {
    width: 1.3rem; height: 1.3rem; margin-left: -2rem; margin-top: .2rem; cursor: pointer;
    border: 1.5px solid #9ec3c3;
}
.consent-box .form-check-input:checked { background-color: var(--ng-primary); border-color: var(--ng-primary); }
.consent-box .form-check-input:focus { box-shadow: 0 0 0 4px rgba(15, 126, 131, .15); border-color: var(--ng-primary); }
.consent-box .form-check-input.is-invalid { border-color: #d92d20; }
.consent-box .form-check-label { font-size: .96rem; color: var(--ng-text); line-height: 1.6; cursor: pointer; }
.consent-box .form-check-label .req { color: #b42318; }
.consent-box .invalid-feedback { margin-top: .5rem; }

.btn-lg-ng { --pad-y: 1rem; --pad-x: 2rem; font-size: 1.05rem; }

/* Success state */
.loan-success { text-align: center; padding: 1rem 0 .5rem; outline: none; }
.loan-success-icon {
    width: 84px; height: 84px; border-radius: 50%; display: inline-grid; place-items: center; margin-bottom: 1.25rem;
    background: var(--ng-primary); color: #fff; font-size: 2.6rem;
    box-shadow: 0 0 0 10px var(--ng-light), 0 14px 30px rgba(15, 126, 131, .3);
    animation: ngPop .55s var(--ng-ease);
}
@keyframes ngPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.loan-success h2 { max-width: 560px; margin: 0 auto 1rem; }
.loan-success p { max-width: 560px; margin-left: auto; margin-right: auto; }
.loan-success .lead-text { font-size: 1.15rem; color: var(--ng-deep); font-weight: 500; }
.loan-ref {
    display: inline-flex; flex-direction: column; gap: .15rem; margin: 1rem auto .75rem;
    padding: 1rem 2rem; border-radius: 14px; background: var(--ng-light); border: 2px dashed var(--ng-mint);
}
.loan-ref span { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ng-muted); }
.loan-ref strong { font-size: 1.6rem; color: var(--ng-deep); letter-spacing: .04em; font-family: var(--ng-font-head); }
.loan-success .btn-group-ng { margin-top: 1.5rem; }

/* Sidebar */
.loan-aside { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .loan-aside { position: sticky; top: calc(var(--ng-header-h) + 1.5rem); } }
.loan-aside-card {
    background: #fff; border: 1px solid var(--ng-border); border-radius: var(--ng-radius-lg);
    padding: 1.75rem 1.5rem; box-shadow: var(--ng-shadow-sm);
}
.loan-aside-card h2 { font-size: 1.3rem; margin-bottom: 1.1rem; }
.loan-steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.loan-steps-list li { display: flex; gap: .9rem; align-items: flex-start; }
.loan-steps-list li > span {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--ng-light); color: var(--ng-primary); font-weight: 600; border: 1.5px solid var(--ng-light-2);
}
.loan-steps-list strong { display: block; color: var(--ng-deep); font-weight: 600; line-height: 1.35; }
.loan-steps-list p { margin: .2rem 0 0; font-size: .94rem; line-height: 1.55; }
.loan-aside-teal { background: linear-gradient(140deg, var(--ng-primary), var(--ng-deep)); border: 0; color: #fff; }
.loan-aside-teal h2 { color: #fff; margin: 1rem 0 .4rem; }
.loan-aside-teal p { color: rgba(255,255,255,.82); margin-bottom: 1.25rem; }
.loan-aside-teal .icon-circle { background: rgba(255,255,255,.15); color: #fff; }

/* Services page call-to-action */
.loan-cta-strip {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.5rem;
    padding: 1.75rem 1.5rem; border-radius: var(--ng-radius-lg); color: #fff;
    background: radial-gradient(600px 240px at 100% 0%, rgba(127, 209, 207, .25), transparent 60%), linear-gradient(135deg, var(--ng-primary), var(--ng-deep));
    box-shadow: var(--ng-shadow);
}
.loan-cta-strip .icon-circle { background: rgba(255,255,255,.15); color: #fff; flex: 0 0 auto; }
.loan-cta-text { flex: 1 1 280px; }
.loan-cta-text h2 { color: #fff; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); margin-bottom: .3rem; }
.loan-cta-text p { color: rgba(255,255,255,.82); margin: 0; }
@media (min-width: 768px) { .loan-cta-strip { padding: 2rem 2.25rem; flex-wrap: nowrap; } }

.footer-apply i { color: var(--ng-mint); margin-right: .2rem; }
.footer-credit-link { color: rgba(255,255,255,.62); text-decoration: underline; text-underline-offset: 3px; margin-left: .35rem; }
.footer-credit-link:hover { color: var(--ng-mint); }

/* ---------- Photo credits ---------- */
.credits-list { display: grid; gap: 1rem; max-width: 900px; margin: 0 auto; }
.credit-item {
    display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--ng-border);
    border-radius: var(--ng-radius); padding: .85rem; box-shadow: var(--ng-shadow-sm);
}
.credit-item img { width: 112px; height: 84px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.credit-item h2 { font-size: 1.05rem; margin: 0 0 .2rem; }
.credit-item p { margin: 0; font-size: .93rem; line-height: 1.55; overflow-wrap: anywhere; }
.credit-note { color: var(--ng-muted); font-size: .85rem; }
@media (max-width: 479.98px) { .credit-item { align-items: flex-start; } .credit-item img { width: 80px; height: 60px; } }

/* ---------- Language switcher (English | සිංහල) ---------- */
.lang-switch {
    display: inline-flex; align-items: center; gap: .1rem;
    padding: .2rem; border-radius: 999px; border: 1px solid var(--ng-border); background: var(--ng-light);
    font-family: 'Jost', 'Noto Sans Sinhala', 'Iskoola Pota', 'Nirmala UI', var(--ng-font-body);
    line-height: 1; white-space: nowrap; flex: 0 0 auto;
}
.lang-switch .lang-link {
    display: inline-flex; align-items: center; min-height: 34px; padding: .35rem .75rem; border-radius: 999px;
    font-size: .9rem; font-weight: 500; color: var(--ng-deep); text-decoration: none;
    transition: background-color .2s, color .2s;
}
.lang-switch .lang-link:hover { color: var(--ng-primary); background: #fff; }
.lang-switch .lang-link.active { background: var(--ng-primary); color: #fff; box-shadow: 0 4px 10px rgba(15, 126, 131, .25); }
.lang-switch .lang-link:focus-visible { outline: 3px solid var(--ng-mint); outline-offset: 2px; }
.lang-switch .lang-sep { display: none; }   /* the pill shape separates the two options visually */
.lang-switch .lang-code { display: none; }
.lang-switch-mobile { margin-left: auto; margin-right: .6rem; }

/* Desktop navbar spacing now that it also holds the language switcher */
@media (min-width: 992px) {
    .navbar .nav-link { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Compact switcher (EN | සිං); full names stay available to screen readers */
    .lang-switch-desktop .lang-code { display: inline; }
    .lang-switch-desktop .lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .lang-switch-desktop .lang-link { padding: .3rem .6rem; }
    .brand-logo { height: 36px; }
    .navbar .nav-link { padding: .5rem .45rem !important; font-size: .95rem; }
    .navbar .nav-link::before { left: .45rem; right: .45rem; }
    .nav-actions { gap: .6rem; }
    .nav-actions .btn-ng { --pad-x: 1rem; }
    .nav-apply i { display: none; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar .nav-link { padding: .5rem .65rem !important; }
    .navbar .nav-link::before { left: .65rem; right: .65rem; }
}
@media (max-width: 399.98px) {
    .brand-logo { height: 30px; }
    .lang-switch-mobile .lang-link { padding: .3rem .5rem; font-size: .8rem; min-height: 32px; }
    .lang-switch-mobile { margin-right: .35rem; padding: .15rem; }
    .navbar-toggler { width: 42px; height: 42px; }
}
@media (max-width: 374.98px) {
    /* Small phones: compact EN | සිං (full names remain for screen readers) */
    .lang-switch-mobile .lang-code { display: inline; }
    .lang-switch-mobile .lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .brand-logo { height: 28px; }
}

/* ---------- Sinhala typography ---------- */
html[lang="si"] {
    --ng-font-head: 'Lora', 'Noto Serif Sinhala', 'Noto Sans Sinhala', 'Iskoola Pota', 'Nirmala UI', Georgia, serif;
    --ng-font-body: 'Jost', 'Noto Sans Sinhala', 'Iskoola Pota', 'Nirmala UI', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
html[lang="si"] body { line-height: 1.85; font-size: 1rem; }
html[lang="si"] h1, html[lang="si"] h2, html[lang="si"] h3,
html[lang="si"] h4, html[lang="si"] h5, html[lang="si"] h6 { line-height: 1.45; letter-spacing: 0; }
html[lang="si"] .hero h1 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.3rem); line-height: 1.3; }
html[lang="si"] .page-banner h1 { font-size: clamp(1.75rem, 1.25rem + 2.4vw, 2.75rem); line-height: 1.35; }
html[lang="si"] .section-title { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem); }
html[lang="si"] .eyebrow, html[lang="si"] .footer-title,
html[lang="si"] .loan-step-head small, html[lang="si"] .loan-ref span { letter-spacing: .02em; text-transform: none; }
html[lang="si"] .btn-ng { white-space: normal; text-align: center; line-height: 1.45; }
html[lang="si"] .form-label, html[lang="si"] .form-check-label { line-height: 1.6; }
html[lang="si"] .form-control, html[lang="si"] .form-select { line-height: 1.6; }
html[lang="si"] .invalid-feedback, html[lang="si"] .field-hint { line-height: 1.55; }
html[lang="si"] .service-card h3, html[lang="si"] .value-card h3,
html[lang="si"] .vm-card h3, html[lang="si"] .pillar-card h3 { overflow-wrap: anywhere; }
html[lang="si"] .loan-step-head { font-size: 1.12rem; }
html[lang="si"] .hero-points li { font-size: .95rem; }
html[lang="si"] .breadcrumb-ng { line-height: 1.5; }
/* Navbar: Sinhala labels are longer, so tighten the desktop menu and keep the phone link for very wide screens. */
@media (min-width: 992px) {
    html[lang="si"] .navbar .nav-link { font-size: .92rem; }
    html[lang="si"] .nav-actions { gap: .6rem; }
    html[lang="si"] .nav-actions .btn-ng { --pad-x: 1rem; font-size: .88rem; white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    html[lang="si"] .navbar .nav-link { font-size: .82rem; padding: .5rem .38rem !important; }
    html[lang="si"] .navbar .nav-link::before { left: .38rem; right: .38rem; }
    html[lang="si"] .nav-actions .btn-ng { font-size: .82rem; --pad-x: .9rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    html[lang="si"] .navbar .nav-link { padding: .5rem .5rem !important; }
    html[lang="si"] .navbar .nav-link::before { left: .5rem; right: .5rem; }
    html[lang="si"] .nav-apply i { display: none; }
}
@media (max-width: 575.98px) {
    html[lang="si"] body { font-size: .97rem; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: radial-gradient(900px 400px at 0% 0%, rgba(127, 209, 207, .1), transparent 60%), var(--ng-deeper);
    color: rgba(255,255,255,.75); padding-top: 2.75rem; font-size: .92rem;
}
.footer-brand img { height: 40px; width: auto; margin-bottom: .85rem; }
.footer-about { color: rgba(255,255,255,.72); max-width: 360px; margin-bottom: 1rem; line-height: 1.6; }
.footer-title {
    font-family: var(--ng-font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: #fff; margin-bottom: .85rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-links a { color: rgba(255,255,255,.75); display: inline-block; transition: color .2s, transform .25s var(--ng-ease); }
.footer-links a:hover { color: var(--ng-mint); transform: translateX(4px); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; line-height: 1.5; }
.footer-contact li { display: flex; gap: .75rem; align-items: flex-start; }
.footer-contact i { color: var(--ng-mint); margin-top: .2rem; }
.footer-contact a, .footer-contact address { color: rgba(255,255,255,.8); }
.footer-contact a:hover { color: var(--ng-mint); }
.footer-social {
    width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center;
    background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; border: 1px solid rgba(255,255,255,.14);
    transition: background-color .25s, transform .25s var(--ng-ease), color .25s;
}
.footer-social:hover { background: var(--ng-mint); color: var(--ng-deeper); transform: translateY(-3px); }
.footer-top { padding-bottom: 2rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0;
    display: flex; flex-direction: column; gap: .35rem; align-items: center; text-align: center;
}
.footer-bottom p { margin: 0; color: rgba(255,255,255,.62); font-size: .85rem; }
.footer-tagline { font-family: var(--ng-font-head); font-style: italic; color: var(--ng-mint) !important; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
@media (max-width: 767.98px) { .site-footer { padding-top: 2.25rem; } }

/* Footer: tablet + mobile, tighter rows */
@media (max-width: 991.98px) {
    .footer-top { --bs-gutter-y: 1.5rem; }
    .footer-about { max-width: 560px; margin-bottom: .85rem; }
    .footer-title { margin-bottom: .65rem; }
}
/* Large phones / small tablets: contact list in two columns since it spans the full width */
@media (min-width: 576px) and (max-width: 767.98px) {
    .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
}
/* Phones */
@media (max-width: 575.98px) {
    .site-footer { padding-top: 2rem; font-size: .9rem; }
    .footer-top { --bs-gutter-y: 1.25rem; }
    .footer-brand img { height: 34px; margin-bottom: .65rem; }
    .footer-social { width: 36px; height: 36px; font-size: 1rem; }
    /* Contact: hotline and email on full rows, Head Office | Branch side by side */
    .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem .9rem; font-size: .84rem; line-height: 1.45; }
    .footer-contact li { gap: .45rem; }
    .footer-contact i { font-size: .85rem; margin-top: .1rem; }
    .footer-contact .fc-phone, .footer-contact .fc-email { grid-column: 1 / -1; }
    .footer-contact .fc-facebook { display: none; }   /* Facebook icon already shown under the logo */
    /* Quick links + services: smaller, tighter lists */
    .footer-title { font-size: .74rem; margin-bottom: .5rem; }
    .footer-links { font-size: .84rem; line-height: 1.35; }
    .footer-bottom { padding: .85rem 0; }
    .footer-bottom p { font-size: .8rem; }
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 1020;
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: var(--ng-primary); color: #fff; font-size: 1.2rem;
    box-shadow: 0 10px 24px rgba(15, 126, 131, .35);
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity .3s, visibility .3s, transform .3s var(--ng-ease), background-color .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--ng-dark); }
@media (min-width: 768px) { .back-to-top { right: 1.75rem; bottom: 1.75rem; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ng-ease), transform .8s var(--ng-ease); }
.js .reveal.reveal-left { transform: translateX(-32px); }
.js .reveal.reveal-right { transform: translateX(32px); }
.js .reveal.reveal-zoom { transform: scale(.96); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Small screens ---------- */
@media (max-width: 575.98px) {
    body { font-size: 1rem; }
    :root { --ng-gutter: 1rem; --ng-header-h: 64px; }
    .brand-logo { height: 34px; }
    .section-head { margin-bottom: 2rem; }
    .hero { padding: 3.25rem 0 5rem; min-height: auto; }
    .hero-badge { font-size: .82rem; }
    .service-card { padding: 1.75rem 1.35rem 1.5rem; }
    .img-frame::before { inset: auto -8px -8px auto; }
    .img-frame-left::before { inset: auto auto -8px -8px; }
    .vm-card h3 { font-size: 1.4rem; }
    .value-card {
        display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center;
        text-align: left; padding: 1.25rem 1.2rem;
    }
    .value-card .icon-circle { grid-row: span 2; margin: 0; width: 56px; height: 56px; font-size: 1.4rem; align-self: start; }
    .value-card h3 { margin-bottom: .2rem; font-size: 1.12rem; }
    .team-collage .img-main { width: 100%; }
    .team-collage .img-sub { width: 48%; border-width: 4px; }
    .cta-wrap { padding-bottom: 3.5rem; }
}
@media (max-width: 359.98px) {
    .brand-logo { height: 30px; }
    .hero h1 { font-size: 1.9rem; }
    .btn-ng { --pad-x: 1.2rem; white-space: normal; }
}

/* ==========================================================================
   Responsive refinements (320px → 1920px)
   ========================================================================== */

/* Icons in flex rows must never be squeezed into ovals */
.icon-circle, .loan-step-num, .footer-contact i { flex-shrink: 0; }

/* Validation: Bootstrap's error icon collides with the dropdown caret on selects */
.form-select.is-invalid { --bs-form-select-bg-icon: none; }
.invalid-feedback { overflow-wrap: anywhere; }

/* Long words / URLs never push a layout wider than the screen */
h1, h2, h3, .hero-lead, .section-lead, .contact-card, .footer-contact { overflow-wrap: break-word; }

/* --- Phones & tablets (below the desktop navbar breakpoint) --- */
@media (max-width: 991.98px) {
    /* Side-sliding reveals pushed content past the screen edge → slide up instead */
    .js .reveal.reveal-left, .js .reveal.reveal-right { transform: translateY(28px); }
    .js .reveal.is-visible { transform: none; }

    /* Media stacked above text: shorter crops so one image doesn't fill the screen */
    .img-frame img, .service-row .img-frame img { aspect-ratio: 16 / 10; }
    .team-collage { max-width: 620px; margin-inline: auto; }

    .navbar .nav-link { min-height: 48px; }
}

/* --- Tablets (576px – 991px) --- */
@media (min-width: 576px) and (max-width: 991.98px) {
    /* Hero sized to its content instead of the full (tall) tablet screen */
    .hero { min-height: auto; padding: 5rem 0 7rem; }
    .hero-content { max-width: 600px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Three contact cards in a row: stack icon above text so nothing gets squeezed */
    .contact-card { flex-direction: column; gap: .85rem; }
    /* Loan sidebar sits below the form: show its two cards side by side */
    .loan-aside { grid-template-columns: 1fr 1fr; align-items: stretch; }
    .loan-aside-teal { display: flex; flex-direction: column; }
    .loan-aside-teal .btn-ng { margin-top: auto; }
}
.contact-card a[href^="tel:"], .loan-aside-teal a[href^="tel:"] { white-space: nowrap; }

/* --- Phones (below 576px) --- */
@media (max-width: 575.98px) {
    .section { padding: 3.5rem 0; }
    .section-lead { font-size: 1.02rem; }
    .service-row + .service-row { margin-top: 3rem; }
    .btn-ng { white-space: normal; text-align: center; line-height: 1.4; min-height: 48px; }

    /* Hero: compact, so the headline + main action fit on the first screen */
    .hero { padding: 2.5rem 0 4.25rem; }
    .hero-badge { margin-bottom: 1.1rem; }
    .hero h1 { margin-bottom: 1rem; }
    .hero-lead { font-size: 1.02rem; margin-bottom: 1.5rem; }
    .hero-points { margin-top: 1.5rem; gap: .45rem; }
    .hero-points li { font-size: .95rem; }
    .hero-bg img { object-position: 60% center; }

    .page-banner { padding: 3rem 0 3.5rem; }
    .page-banner p { font-size: 1rem; }

    .cta-box { padding: 2.5rem 1.25rem; }
    .quote-band { padding: 4rem 0; }

    /* Forms: more room for the inputs, everything single-column and full width */
    .form-card { padding: 1.5rem 1rem; border-radius: var(--ng-radius); }
    .loan-step { padding: 1rem .85rem 1.15rem; border-radius: 14px; }
    .loan-step-head { font-size: 1.1rem; gap: .7rem; }
    .loan-step-num { width: 40px; height: 40px; font-size: 1.05rem; border-radius: 12px; }
    .consent-box { padding: .9rem; }
    .privacy-notice summary { padding: .85rem .9rem; }
    .privacy-body { padding: .25rem .9rem 1rem; }
    .loan-ref { padding: .9rem 1.25rem; max-width: 100%; }
    .loan-ref strong { font-size: 1.3rem; overflow-wrap: anywhere; }
    .loan-aside-card { padding: 1.5rem 1.15rem; }
    .map-card { min-height: 0; }
    .map-card iframe { min-height: 280px; }
    .social-strip { padding: 1.25rem; }

    /* Footer: comfortable tap targets */
    .footer-links { gap: .1rem; }
    .footer-links a { padding: .22rem 0; }
    .footer-top { padding-bottom: 1.25rem; }
}

/* Hero buttons: main action full width, the two secondary actions share a row */
@media (min-width: 360px) and (max-width: 575.98px) {
    .hero .btn-group-ng { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
    .hero .btn-group-ng .btn-ng { width: 100%; --pad-x: .75rem; }
    .hero .btn-group-ng .btn-ng:first-child { grid-column: 1 / -1; }
}

/* --- Small phones (below 400px) --- */
@media (max-width: 399.98px) {
    .form-card { padding: 1.25rem .85rem; }
    .loan-step { padding: .9rem .75rem 1rem; }
    .contact-card { padding: 1.25rem 1.1rem; }
    .service-card, .pillar-card { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* --- Large desktops --- */
@media (min-width: 1600px) {
    .hero-content { max-width: 760px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
