/* ==========================================================================
   Blue Sprix Investments — Site Stylesheet
   Style: "Gracious" — warm, community-led charity aesthetic.
   Sage green + gold palette, Merriweather italic display serif. Plain CSS.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Brand: professional blue identity + sky-blue accent (white/blue theme) */
    --primary: #0E5FB4;          /* professional blue — brand, links, CTAs, gradients */
    --primary-600: #0B5299;
    --primary-700: #083D73;
    --primary-rgb: 14, 95, 180;
    --secondary: #0EA5E9;        /* sky blue — accents, underlines, highlights */
    --secondary-600: #0284C7;
    --secondary-rgb: 14, 165, 233;
    --accent: #38BDF8;           /* light sky highlight (checks, suffixes on dark) */
    --dark: #0B1F3A;             /* deep navy — footer + dark sections */
    --bistre: #0F2742;
    --light: #F0F7FF;

    --ink-900: #0F1B2D;          /* cool near-black for headings */
    --ink-700: #334155;
    --ink-500: #51607A;          /* body copy (cool slate) */
    --ink-400: #94A3B8;
    --line: #E2E8F0;             /* cool slate hairline */
    --surface: #ffffff;
    --muted-bg: #EEF4FB;         /* sky-tinted muted panel */
    --page-bg: #F5F9FD;          /* white with sky tint */

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;

    --shadow-sm: 0 1px 2px rgba(15, 39, 66, .05), 0 1px 3px rgba(15, 39, 66, .07);
    --shadow: 0 10px 25px -8px rgba(15, 39, 66, .12), 0 4px 10px -4px rgba(15, 39, 66, .08);
    --shadow-lg: 0 28px 55px -18px rgba(15, 39, 66, .22);

    --container: 1180px;
    --gutter: clamp(1rem, 4vw, 2.25rem);

    --font: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --t: .25s var(--ease);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
    font-family: var(--font);
    color: var(--ink-500);
    background: var(--page-bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
/* <picture> is only a wrapper for <source>+<img>; make it transparent to layout
   so container sizing rules (e.g. ".cause-media img{height:100%}") still apply. */
picture { display: contents; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--secondary-600); }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 {
    color: var(--ink-900); line-height: 1.25; font-weight: 700;
    font-family: var(--font-heading); font-style: italic; letter-spacing: 0;
}
strong { color: var(--ink-900); font-weight: 600; }
[x-cloak] { display: none !important; }
.no-js [x-cloak] { display: revert !important; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--primary); color: #fff; padding: .7rem 1.1rem;
    border-radius: var(--radius-sm); transition: top var(--t);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); background: var(--surface); }
.section-muted { background: var(--muted-bg); }
.center-cta { text-align: center; margin-top: 2.75rem; }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; }
.icon-sm { width: 18px; height: 18px; flex: none; }
.icon-lg { width: 40px; height: 40px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-weight: 600; font-size: .95rem; line-height: 1; letter-spacing: .01em;
    padding: .9rem 1.6rem; border-radius: 10px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
    white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .icon-sm { transition: transform var(--t); }
.btn:hover .icon-sm { transform: translateX(3px); }

/* Professional blue is the lead action colour; navy is the secondary action */
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(var(--primary-rgb),.6); }
.btn-primary:hover { background: var(--primary-700); color: #fff; box-shadow: 0 14px 28px -10px rgba(var(--primary-rgb),.7); }
.btn-secondary { background: var(--dark); color: #fff; box-shadow: 0 8px 20px -8px rgba(15,39,66,.5); }
.btn-secondary:hover { background: #06152b; color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { color: var(--secondary-600); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); background: rgba(var(--primary-rgb),.06); color: var(--primary); }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- Header / Navbar ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent; transition: box-shadow var(--t), background var(--t), border-color var(--t), backdrop-filter var(--t);
}
/* Gracious "header-anim fixed-top": drops in + blurs + shadows once scrolled */
.site-header.is-scrolled {
    background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
    border-bottom-color: var(--line);
    box-shadow: rgba(15,39,66,.1) 0 20px 25px -5px, rgba(15,39,66,.04) 0 10px 10px -5px;
    animation: headerDropIn .45s var(--ease);
}
@keyframes headerDropIn {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .site-header.is-scrolled { animation: none; } }

.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; transition: min-height var(--t); }
.site-header.is-scrolled .nav-inner { min-height: 64px; }
/* Logo shrinks slightly on scroll (Gracious navbar-brand shrink) */
.brand-mark, .brand-name { transition: transform var(--t), font-size var(--t); transform-origin: left center; }
.site-header.is-scrolled .brand-mark { transform: scale(.88); }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { width: 55px; height: 35px; display: block; }
.brand-mark svg { width: 55px; height: 35px; display: block; }
.brand-mark .hm-dark { fill: #1F4E79; }
.brand-light .brand-mark .hm-dark { fill: #ffffff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 1.18rem; color: var(--primary); letter-spacing: -.02em; }
.brand-sub { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-500); font-weight: 500; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: rgba(255,255,255,.6); }

.nav-desktop { display: none; align-items: center; gap: .35rem; margin-left: auto; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: .3rem;
    padding: .6rem .85rem; border-radius: var(--radius-sm); color: var(--ink-700);
    font-weight: 500; font-size: .95rem; transition: color var(--t), background var(--t);
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); }
/* Animated underline — grows on hover, stays on the active link (Gracious accent) */
.nav-link::after {
    content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
    background: var(--secondary); border-radius: 2px;
    transform: scaleX(0); transform-origin: center; transition: transform .28s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.caret { width: 16px; height: 16px; transition: transform var(--t); }

/* Right-side actions cluster (Gracious request-btn group) */
.nav-actions { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.nav-cta { display: none; }
.nav-search {
    width: 42px; height: 42px; flex: none; display: grid; place-items: center; cursor: pointer;
    border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--primary);
    transition: color var(--t), background var(--t), border-color var(--t), transform var(--t);
}
.nav-search:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.nav-search .icon-sm { width: 19px; height: 19px; }

.nav-dropdown { position: relative; }
.mega-menu {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    width: min(640px, 88vw); background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: .9rem; z-index: 1200;
    animation: megaIn .3s var(--ease);
}
@keyframes megaIn {
    0% { opacity: 0; transform: translateX(-50%) translateY(14px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .mega-menu { animation: none; } }
.mega-menu::before {
    content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.mega-item { display: flex; gap: .85rem; padding: .8rem; border-radius: var(--radius); transition: background var(--t); align-items: flex-start; }
.mega-item:hover { background: var(--muted-bg); }
.mega-icon {
    width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--g1), var(--g2));
}
.mega-icon .icon { width: 22px; height: 22px; }
.mega-copy { display: flex; flex-direction: column; }
.mega-title { font-weight: 600; color: var(--ink-900); font-size: .95rem; }
.mega-desc { font-size: .82rem; color: var(--ink-500); line-height: 1.4; }

/* Mobile toggle */
.nav-toggle {
    width: 46px; height: 46px; display: inline-flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px; background: transparent; border: 0; cursor: pointer;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { border-top: 1px solid var(--line); background: #fff; padding-block: .75rem 1.5rem; }
.nav-mobile nav { display: flex; flex-direction: column; gap: .15rem; }
.m-link {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: .9rem .25rem; font-weight: 500; color: var(--ink-900); font-size: 1.05rem;
    border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer;
}
.m-group-toggle .caret.rot { transform: rotate(180deg); }
.m-sub { padding-left: .75rem; }
.m-sublink { display: block; padding: .7rem .25rem; color: var(--ink-700); border-bottom: 1px solid var(--line); }
.m-sublink:hover { color: var(--primary); }
.m-cta { margin-top: 1.1rem; }

@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
    .nav-cta { display: inline-flex; }
    .nav-toggle { display: none; }
    .nav-mobile { display: none !important; }
    /* On desktop the nav links carry the auto-margin; actions sit flush beside them */
    .nav-actions { margin-left: .75rem; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 100%);
    padding-block: clamp(4.5rem, 12vw, 8rem);
    isolation: isolate;
}
.hero-compact { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
/* Photo hero: real sector image behind the brand gradient for readable white text */
.hero-photo { background: var(--g2); }
.hero-photo::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background-image: var(--hero-img); background-size: cover; background-position: center;
}
.hero-photo::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, color-mix(in srgb, var(--g1) 88%, transparent) 0%, color-mix(in srgb, var(--g2) 62%, transparent) 100%);
}
.hero-photo .hero-bg { z-index: -1; mix-blend-mode: soft-light; opacity: .7; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.hero-blob-1 { width: 480px; height: 480px; background: rgba(255,255,255,.25); top: -160px; right: -120px; }
.hero-blob-2 { width: 420px; height: 420px; background: rgba(var(--secondary-rgb),.45); bottom: -180px; left: -120px; }
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; max-width: 860px; }
.hero-eyebrow, .eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .18em;
    text-transform: uppercase; margin-bottom: 1.1rem;
}
.hero-eyebrow { color: rgba(255,255,255,.85); background: rgba(255,255,255,.12); padding: .45rem .9rem; border-radius: 999px; }
.hero-title { font-size: clamp(2.1rem, 5.2vw, 3.7rem); color: #fff; margin-bottom: 1.25rem; letter-spacing: -.03em; }
.hero-subtitle { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 680px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.1rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.4rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 500;
    color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    padding: .5rem .95rem; border-radius: 999px;
}
.hero-badge .icon-sm { color: var(--accent); width: 16px; height: 16px; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; margin-bottom: 1.3rem; color: rgba(255,255,255,.7); }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs a:hover { color: #fff; }
.crumb-sep { opacity: .5; }
.breadcrumbs [aria-current] { color: #fff; font-weight: 500; }

/* ---------- Section title ---------- */
.section-title { max-width: 680px; margin-bottom: 3rem; }
.section-title.is-center { margin-inline: auto; text-align: center; }
.section-title.is-left { text-align: left; }
.eyebrow { color: var(--primary); display: inline-flex; align-items: center; gap: .6rem; }
.section-title.is-light .eyebrow { color: var(--secondary); }
.section-heading { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-top: .2rem; }
.section-title.is-light .section-heading { color: #fff; }
.section-subtitle { margin-top: .9rem; font-size: 1.08rem; color: var(--ink-500); }
.section-title.is-light .section-subtitle { color: rgba(255,255,255,.78); }
.lead { font-size: 1.15rem; color: var(--ink-700); margin-bottom: 1.1rem; }
.muted { color: var(--ink-500); }

/* ---------- About summary ---------- */
.about-summary { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-summary-copy .btn { margin-top: 1.4rem; }
.about-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-stat { background: var(--muted-bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.4rem; text-align: center; transition: transform var(--t), box-shadow var(--t); }
.mini-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-stat-num { display: block; font-size: 2.2rem; font-weight: 700; color: var(--primary); letter-spacing: -.03em; }
.mini-stat-label { font-size: .85rem; color: var(--ink-500); font-weight: 500; }
@media (max-width: 860px) { .about-summary { grid-template-columns: 1fr; } }

/* ---------- Cards (service / feature) ---------- */
.service-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2rem 1.75rem; overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--g1), var(--g2)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--g1), var(--g2)); margin-bottom: 1.3rem; box-shadow: 0 10px 22px -10px var(--g1);
    transition: transform var(--t);
}
.service-card:hover .service-card-icon { transform: scale(1.08) rotate(-3deg); }
.service-card-title { font-size: 1.3rem; margin-bottom: .35rem; }
.service-card-tagline { font-size: .92rem; color: var(--primary); font-weight: 600; margin-bottom: .8rem; }
.service-card-text { font-size: .97rem; color: var(--ink-500); margin-bottom: 1.4rem; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--primary); }
.card-link .icon-sm { transition: transform var(--t); }
.card-link:hover .icon-sm { transform: translateX(4px); }

.feature-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.75rem;
    transition: transform var(--t), box-shadow var(--t);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-icon {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
    color: var(--primary); background: rgba(var(--primary-rgb),.09);
}
.feature-card:hover .feature-icon { background: var(--primary); color: #fff; }
.feature-title { font-size: 1.2rem; margin-bottom: .55rem; }
.feature-text { color: var(--ink-500); font-size: .96rem; }

/* ---------- Statistics ---------- */
.stats-section { background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; position: relative; overflow: hidden; }
.stats-grid { margin-top: .5rem; }
.stat-card {
    text-align: center; padding: 1.75rem 1rem; border-radius: var(--radius-lg);
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    transition: transform var(--t), background var(--t);
}
.stat-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.12); }
.stat-icon { width: 50px; height: 50px; margin: 0 auto .9rem; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; }
.stat-value { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: #fff; }
.stat-suffix { color: var(--accent); }
.stat-label { margin-top: .6rem; font-size: .95rem; color: rgba(255,255,255,.82); font-weight: 500; }

/* ---------- Blog cards ---------- */
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--t), box-shadow var(--t); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-media {
    position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; color: rgba(255,255,255,.9);
    background: linear-gradient(135deg, var(--g1), var(--g2)); overflow: hidden;
}
.blog-card-media::after { content:''; position:absolute; inset:0; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.25), transparent 55%); }
.blog-card-glyph svg { width: 60px; height: 60px; opacity: .55; transition: transform .4s var(--ease); }
.blog-card:hover .blog-card-glyph svg { transform: scale(1.12); }
.blog-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-card-img { transform: scale(1.06); }
/* keep the category chip legible over any photo */
.blog-card-media:has(.blog-card-img)::after { background: linear-gradient(180deg, rgba(11,31,58,.28), transparent 45%, rgba(11,31,58,.12)); }
.blog-card-cat {
    position: absolute; top: 1rem; left: 1rem; z-index: 2; font-size: .72rem; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--primary); background: #fff; padding: .35rem .75rem; border-radius: 999px;
}
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ink-400); margin-bottom: .7rem; }
.blog-card-title { font-size: 1.2rem; line-height: 1.3; margin-bottom: .6rem; }
.blog-card-title a { color: var(--ink-900); }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { color: var(--ink-500); font-size: .95rem; margin-bottom: 1.2rem; flex: 1; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 1rem; }
.blog-author { font-size: .85rem; color: var(--ink-500); font-weight: 500; }
.dot { color: var(--ink-400); }

/* ---------- Service detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.detail-subhead { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.25rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.tag { font-size: .85rem; font-weight: 500; color: var(--primary); background: rgba(var(--primary-rgb),.08); border: 1px solid rgba(var(--primary-rgb),.18); padding: .5rem 1rem; border-radius: 999px; }
.detail-aside { position: sticky; top: 100px; }
.benefits-card { background: linear-gradient(150deg, var(--g1), var(--g2)); color: #fff; border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-lg); }
.benefits-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 1.1rem; }
.benefits-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 1.1rem; }
.benefits-list { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.6rem; }
.benefits-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; color: rgba(255,255,255,.92); }
.benefits-list .icon-sm { color: var(--accent); margin-top: 2px; }
@media (max-width: 880px) { .detail-grid { grid-template-columns: 1fr; } .detail-aside { position: static; } }

.solutions-grid { gap: 1.25rem; }
.solution-card { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; transition: transform var(--t), box-shadow var(--t); }
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.solution-num { font-size: 1.6rem; font-weight: 700; color: var(--secondary); line-height: 1; opacity: .7; }
.solution-title { font-size: 1.12rem; margin-bottom: .4rem; }
.solution-text { font-size: .94rem; color: var(--ink-500); }

/* Service photo gallery (real sector imagery) */
.service-gallery { gap: 1.1rem; }
.service-gallery-item { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.service-gallery-item img {
    display: block; width: 100%; height: 260px; object-fit: cover;
    transition: transform .5s var(--ease);
}
.service-gallery-item:hover img { transform: scale(1.06); }
/* Mobile: show the photo galleries as an Instagram-style album — a tight
   3-column square grid instead of stacking into one tall column. The two-class
   selector outranks the generic .grid-3 → 1fr collapse at this width. */
@media (max-width: 620px) {
    .grid.service-gallery { grid-template-columns: repeat(3, 1fr); gap: 3px; }
    .service-gallery-item { border-radius: 4px; box-shadow: none; }
    .service-gallery-item img { height: auto; aspect-ratio: 1; }
}

/* Feature spotlight: showcase video + supporting media */
.feature-video { margin: 0 0 1.6rem; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.feature-video video { display: block; width: 100%; max-height: 560px; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.feature-gallery { margin-top: 0; }

.mini-services { gap: 1rem; }
.mini-service { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.mini-service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.mini-service-icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.mini-service-title { font-weight: 600; font-size: .95rem; color: var(--ink-900); flex: 1; }
.mini-arrow { color: var(--ink-400); }
.mini-service:hover .mini-arrow { color: var(--primary); }

/* ---------- Process steps ---------- */
.process-step { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; position: relative; }
.process-num { font-size: 2.4rem; font-weight: 700; color: rgba(var(--secondary-rgb),.5); letter-spacing: -.04em; }
.process-step h3 { font-size: 1.2rem; margin: .3rem 0 .5rem; }
.process-step p { color: var(--ink-500); font-size: .93rem; }

/* ---------- About: story / vision / mission / team / csr ---------- */
.story-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story-copy p { margin-bottom: 1rem; }
.story-card { background: linear-gradient(150deg, var(--g1), var(--g2)); color: #fff; border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-lg); }
.story-card .icon-lg { margin-bottom: 1.2rem; }
.story-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: .7rem; }
.story-card p { color: rgba(255,255,255,.9); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.vm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.25rem; transition: transform var(--t), box-shadow var(--t); }
.vm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.vm-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); margin-bottom: 1.3rem; }
.vm-title { font-size: 1.45rem; margin-bottom: .7rem; }
.vm-card p { color: var(--ink-500); }
@media (max-width: 700px) { .vm-grid { grid-template-columns: 1fr; } }

.team-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.5rem; transition: transform var(--t), box-shadow var(--t); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-avatar { width: 84px; height: 84px; margin: 0 auto 1.1rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); letter-spacing: .02em; }
.team-name { font-size: 1.2rem; }
.team-role { color: var(--primary); font-weight: 600; font-size: .9rem; margin: .25rem 0 .7rem; }
.team-bio { font-size: .9rem; color: var(--ink-500); }

.csr-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.check-list { display: flex; flex-direction: column; gap: .85rem; margin-top: 1.3rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-700); }
.check-list .icon-sm { color: var(--secondary-600); margin-top: 3px; }
.csr-stats { display: flex; flex-direction: column; gap: 1rem; }
.csr-stat { display: flex; align-items: center; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; transition: transform var(--t), box-shadow var(--t); }
.csr-stat:hover { transform: translateX(5px); box-shadow: var(--shadow); }
.csr-stat .icon { width: 44px; height: 44px; flex: none; padding: 9px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.csr-stat strong { display: block; color: var(--ink-900); }
.csr-stat span { font-size: .9rem; color: var(--ink-500); }
@media (max-width: 860px) { .csr-grid { grid-template-columns: 1fr; } }

/* ---------- Blog listing layout ---------- */
.blog-layout { display: grid; grid-template-columns: 290px 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.blog-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.75rem; }
.search-box { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .5rem .5rem 1rem; position: relative; }
.search-icon { color: var(--ink-400); }
.search-input { flex: 1; border: 0; outline: 0; font-family: inherit; font-size: .92rem; background: transparent; color: var(--ink-900); min-width: 0; }
.cat-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; }
.sidebar-heading { font-size: 1.05rem; margin-bottom: .9rem; }
.cat-list { display: flex; flex-direction: column; gap: .2rem; }
.cat-link { display: block; padding: .6rem .85rem; border-radius: var(--radius-sm); color: var(--ink-700); font-weight: 500; font-size: .93rem; transition: background var(--t), color var(--t); }
.cat-link:hover { background: var(--muted-bg); color: var(--primary); }
.cat-link.active { background: var(--primary); color: #fff; }
.blog-results { margin-bottom: 1.5rem; color: var(--ink-500); }
.clear-filter { margin-left: .5rem; font-weight: 600; font-size: .85rem; }
@media (max-width: 860px) { .blog-layout { grid-template-columns: 1fr; } .blog-sidebar { position: static; } }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--ink-500); }
.empty-state .icon-lg { margin: 0 auto 1rem; color: var(--ink-400); }
.empty-state h3 { margin-bottom: .5rem; }
.empty-state .btn { margin-top: 1.3rem; }

/* ---------- Pagination ---------- */
.pagination-wrap { margin-top: 2.5rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.page-btn { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .8rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink-700); font-weight: 600; font-size: .9rem; transition: all var(--t); }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.is-disabled { opacity: .45; pointer-events: none; }
.page-ellipsis { display: inline-grid; place-items: center; min-width: 30px; color: var(--ink-400); }

/* ---------- Blog post ---------- */
.post-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); padding-block: clamp(3rem, 8vw, 5rem); isolation: isolate; }
.post-hero.has-media { padding-block: clamp(4rem, 10vw, 6.5rem); }
.post-hero-media { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.post-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--g1), var(--g2)); opacity: .85; }
.post-hero-inner { max-width: 820px; }
.post-cat-badge { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.16); padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.1rem; }
.post-title { font-size: clamp(1.9rem, 4.5vw, 3rem); color: #fff; margin-bottom: 1.3rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: rgba(255,255,255,.85); font-size: .92rem; }
.post-author-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(255,255,255,.2); color: #fff; }
.post-author-avatar.lg { width: 64px; height: 64px; font-size: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); margin: 0 auto .9rem; }

.post-layout { display: grid; grid-template-columns: 1fr 280px; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.post-content { font-size: 1.07rem; color: var(--ink-700); }
.post-content > p { margin-bottom: 1.35rem; }
.post-lead { font-size: 1.25rem; font-weight: 500; color: var(--ink-900); line-height: 1.55; margin-bottom: 1.6rem; padding-left: 1.2rem; border-left: 4px solid var(--secondary); }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share-label { font-weight: 600; color: var(--ink-900); }
.share-links { display: flex; gap: .6rem; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--muted-bg); color: var(--ink-700); transition: all var(--t); }
.share-btn:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.post-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.25rem; }
.author-card { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem 1.5rem; }
.author-card h3 { font-size: 1.15rem; }
.author-role { color: var(--primary); font-weight: 600; font-size: .88rem; margin: .2rem 0 .7rem; }
.author-bio { font-size: .9rem; color: var(--ink-500); }
@media (max-width: 880px) { .post-layout { grid-template-columns: 1fr; } .post-aside { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-form-wrap > .muted { margin-bottom: 1.6rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field label { font-weight: 600; font-size: .9rem; color: var(--ink-900); }
.req { color: #dc2626; }
.opt { color: var(--ink-400); font-weight: 400; font-size: .82rem; }
.form-field input, .form-field textarea {
    font-family: inherit; font-size: 1rem; color: var(--ink-900); background: #fff;
    border: 1.5px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; transition: border-color var(--t), box-shadow var(--t); width: 100%;
}
.form-field input:focus, .form-field textarea:focus { outline: 0; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(var(--secondary-rgb),.15); }
.form-field input.has-error, .form-field textarea.has-error { border-color: #dc2626; }
.field-error { color: #dc2626; font-size: .82rem; font-weight: 500; }
.contact-form > .btn { align-self: flex-start; margin-top: .4rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.alert { display: flex; gap: .7rem; align-items: flex-start; border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-size: .94rem; }
.alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #15803d; }
.alert-success .icon-sm { color: #15803d; margin-top: 2px; }
.alert-error { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.3); color: #b91c1c; flex-direction: column; gap: .4rem; }
.alert-error ul { padding-left: 1.1rem; list-style: disc; }

.info-card { background: linear-gradient(155deg, var(--g1), var(--g2)); color: #fff; border-radius: var(--radius-xl); padding: 2.25rem; box-shadow: var(--shadow-lg); }
.info-card h3 { color: #fff; font-size: 1.35rem; }
.info-legal { font-weight: 600; color: rgba(255,255,255,.92); margin: .4rem 0 1.5rem; font-size: .95rem; }
.info-list { display: flex; flex-direction: column; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; color: rgba(255,255,255,.92); font-size: .95rem; }
.info-list a { color: #fff; }
.info-list a:hover { text-decoration: underline; }
.info-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.info-socials { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); }
.info-socials > span { display: block; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: .8rem; }

.map-section { line-height: 0; }
.map-section iframe { filter: grayscale(.15); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; padding-block: clamp(3.5rem, 8vw, 5.5rem); isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-bottom: 1rem; }
.cta-text { font-size: 1.15rem; color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--dark); background-image: url('../images/topography.webp'); background-size: 260px; background-blend-mode: soft-light; color: rgba(255,255,255,.7); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-about .brand { margin-bottom: 1.2rem; }
.footer-legal-name { color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }
.footer-blurb { font-size: .92rem; line-height: 1.6; max-width: 320px; margin-bottom: 1.4rem; }
.footer-heading { color: #fff; font-size: 1.02rem; margin-bottom: 1.2rem; }
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .93rem; transition: color var(--t), padding var(--t); }
.footer-links a:hover { color: #fff; padding-left: 5px; }
.footer-contact { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.footer-contact .icon { width: 19px; height: 19px; flex: none; color: var(--secondary); margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,.7); }
.footer-contact a:hover { color: #fff; }
.social-list { display: flex; gap: .6rem; }
.social-link { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background var(--t), transform var(--t); }
.social-link:hover { background: var(--secondary); transform: translateY(-3px); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .87rem; }
.footer-bottom-links { display: flex; gap: .6rem; align-items: center; }
.footer-bottom-links a { color: rgba(255,255,255,.7); }
.footer-bottom-links a:hover { color: #fff; }
.footer-credit { color: rgba(255,255,255,.55); }
.footer-credit a { display: inline-flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.8); font-weight: 600; transition: color var(--t); }
.footer-credit a:hover { color: #25D366; }
.footer-credit .wa-icon { width: 1.05em; height: 1.05em; flex: none; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ---------- Gracious topography texture on dark bands ---------- */
.hero, .stats-section, .cta-band, .post-hero {
    background-image: url('../images/topography.webp'), linear-gradient(135deg, var(--g1), var(--g2));
    background-size: 240px, cover;
    background-position: center, center;
    background-repeat: repeat, no-repeat;
    background-blend-mode: soft-light, normal;
}

/* ---------- Eyebrow accent (gracious gold dash) ---------- */
.eyebrow::before {
    content: ''; width: 26px; height: 2px; background: var(--secondary);
    display: inline-block; flex: none; border-radius: 2px;
}
.section-title.is-center .eyebrow { justify-content: center; }

/* ---------- Scroll reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Stagger children inside a grid */
.grid > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4) { transition-delay: .24s; }
.grid > .reveal:nth-child(5) { transition-delay: .32s; }

/* ---------- Guest layout ---------- */
.guest-body { background: var(--muted-bg); }
.guest-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 2rem; }

/* ==========================================================================
   GRACIOUS LAYOUT-2 COMPONENTS
   ========================================================================== */

/* ---------- Page loader (4-circle bouncer) ---------- */
#pageloader {
    position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center;
    background: var(--page-bg); transition: opacity .5s ease, visibility .5s ease;
}
.page-ready #pageloader { opacity: 0; visibility: hidden; }
.no-js #pageloader { display: none; }
.loader { display: flex; gap: .55rem; }
.loader .circle {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--primary); animation: loaderBounce 1.1s ease-in-out infinite;
}
.loader .circle:nth-child(2) { background: var(--secondary); animation-delay: .14s; }
.loader .circle:nth-child(3) { background: var(--primary); animation-delay: .28s; }
.loader .circle:nth-child(4) { background: var(--secondary); animation-delay: .42s; }
@keyframes loaderBounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-16px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #pageloader { transition: none; } .loader .circle { animation: none; } }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 900;
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; color: #fff; background: var(--primary);
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity var(--t), transform var(--t), background var(--t);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--secondary); transform: translateY(-3px); }
.back-to-top .icon { width: 22px; height: 22px; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--dark); color: rgba(255,255,255,.72); font-size: .8rem; }
.top-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 42px; padding-block: .3rem; }
.top-contact { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem; }
.top-contact li { display: inline-flex; align-items: center; gap: .45rem; }
.top-contact .icon-sm { color: var(--secondary); }
.top-contact a, .top-contact li { color: rgba(255,255,255,.82); }
.top-contact a:hover { color: var(--secondary); }
.top-socials { display: inline-flex; align-items: center; gap: .35rem; }
.top-socials a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: rgba(255,255,255,.72); transition: color var(--t), transform var(--t); }
.top-socials a:hover { color: var(--secondary); transform: translateY(-2px); }
@media (max-width: 768px) { .top-hide-sm { display: none; } .top-bar-inner { justify-content: center; } }

/* ---------- Hero slider (main-banner home-style-second) ---------- */
.main-banner { position: relative; isolation: isolate; overflow: hidden; }
.hero-slides { position: relative; min-height: clamp(520px, 82vh, 780px); }
.hero-slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    background-size: cover; background-position: center;
    opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,31,58,.86) 0%, rgba(11,31,58,.55) 45%, rgba(11,31,58,.2) 100%); }
.hero-slide .container { position: relative; z-index: 2; width: 100%; }
.hero-slide-text { max-width: 640px; color: #fff; padding-block: 3rem; }
.hero-slide-text > * { opacity: 0; transform: translateY(26px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.hero-slide.is-active .hero-slide-text > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-slide-eyebrow { transition-delay: .15s; }
.hero-slide.is-active .hero-slide-title { transition-delay: .3s; }
.hero-slide.is-active .hero-slide-sub { transition-delay: .45s; }
.hero-slide.is-active .hero-slide-actions { transition-delay: .6s; }
.hero-slide-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font); font-style: normal;
    font-size: .82rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: var(--dark); background: var(--secondary); padding: .5rem 1rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.hero-slide-title { font-size: clamp(2.2rem, 5.5vw, 4rem); color: #fff; line-height: 1.12; margin-bottom: 1.2rem; }
.hero-slide-sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 560px; margin-bottom: 2rem; }
.hero-slide-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4);
    background: rgba(11,31,58,.35); color: #fff; cursor: pointer; display: grid; place-items: center;
    transition: background var(--t), border-color var(--t); backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--secondary); border-color: var(--secondary); }
.hero-arrow-prev { left: clamp(.5rem, 2vw, 1.5rem); transform: translateY(-50%) rotate(180deg); }
.hero-arrow-next { right: clamp(.5rem, 2vw, 1.5rem); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 1.6rem; z-index: 5; display: flex; justify-content: center; gap: .55rem; }
.hero-dots.is-light { position: static; margin-top: 2rem; }
.hero-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: transparent; cursor: pointer; padding: 0; transition: background var(--t), transform var(--t), border-color var(--t); }
.hero-dot.is-active { background: var(--secondary); border-color: var(--secondary); transform: scale(1.25); }
.testimonial-band .hero-dot { border-color: rgba(255,255,255,.6); }
@media (max-width: 640px) { .hero-arrow { display: none; } }

/* ---------- heading-main ---------- */
.heading-main { font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.2; margin-bottom: 1.1rem; }
.heading-main small {
    display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font); font-style: normal;
    font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--primary); margin-bottom: .85rem;
}
.heading-main small::before { content: ''; width: 26px; height: 2px; background: var(--secondary); border-radius: 2px; }
.heading-main.mb-0 { margin-bottom: 0; }
.heading-main.light-mode, .heading-main.light-mode small { color: #fff; }

/* ---------- Welcome + icon-box grid ---------- */
.welcome-head { max-width: 720px; margin-bottom: 3rem; }
.icon-box-grid { gap: 1.75rem; }
.icon-box-img { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--t), box-shadow var(--t); }
.icon-box-img:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.iconbox-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.iconbox-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.icon-box-img:hover .iconbox-media img { transform: scale(1.07); }
.iconbox-badge { position: absolute; left: 1rem; bottom: -22px; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: var(--shadow); }
.iconbox-badge .icon { width: 24px; height: 24px; }
.iconbox-body { padding: 2rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.iconbox-body h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.iconbox-body p { font-size: .94rem; color: var(--ink-500); margin-bottom: 1rem; flex: 1; }
.read-more-line { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; color: var(--primary); align-self: flex-start; }
.read-more-line .icon-sm { transition: transform var(--t); }
.icon-box-img:hover .read-more-line, a:hover > .read-more-line { color: var(--secondary); }
.read-more-line:hover .icon-sm, .icon-box-img:hover .read-more-line .icon-sm { transform: translateX(4px); }

/* ---------- Counter band ---------- */
.counter-band { padding-block: clamp(2.5rem, 5vw, 3.5rem); background: var(--surface); }
.counter-grid { gap: 1.25rem; }
.counter-box { text-align: center; padding: 1.75rem 1rem; border-radius: var(--radius-lg); background: var(--muted-bg); border: 1px solid var(--line); transition: transform var(--t), box-shadow var(--t); }
.counter-box:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.counter-ic { width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.counter-num { font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 700; color: var(--ink-900); line-height: 1; letter-spacing: -.02em; }
.counter-label { margin-top: .6rem; font-size: .95rem; color: var(--ink-500); font-weight: 500; }

/* ---------- Section head row ---------- */
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 2.75rem; }

/* ---------- Cause cards (sectors) ---------- */
.cause-grid { gap: 1.75rem; }
.cause-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--t), box-shadow var(--t); }
.cause-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cause-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.cause-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cause-card:hover .cause-media img { transform: scale(1.07); }
.cause-progress { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; background: rgba(255,255,255,.95); border-radius: 10px; padding: .7rem .85rem; box-shadow: var(--shadow); }
.cause-progress-meta { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 600; color: var(--ink-700); margin-bottom: .4rem; }
.cause-bar { height: 7px; border-radius: 999px; background: var(--muted-bg); overflow: hidden; }
.cause-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--secondary)); width: 0; transition: width 1.1s var(--ease); }
.cause-body { padding: 1.6rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.cause-body .tag { align-self: flex-start; color: #fff; background: linear-gradient(135deg, var(--g1, var(--primary)), var(--g2, var(--secondary))); border: 0; margin-bottom: .9rem; font-size: .78rem; }
.cause-body h3 { font-size: 1.25rem; line-height: 1.3; margin-bottom: .6rem; }
.cause-body h3 a { color: var(--ink-900); }
.cause-body h3 a:hover { color: var(--primary); }
.cause-body p { font-size: .94rem; color: var(--ink-500); margin-bottom: 1.3rem; flex: 1; }
.cause-body .btn { align-self: flex-start; }

/* ---------- Callout band ---------- */
.callout-band { position: relative; isolation: isolate; background-size: cover; background-position: center; background-attachment: fixed; padding-block: clamp(4rem, 9vw, 7rem); color: #fff; }
.callout-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,31,58,.85), rgba(14,95,180,.55)); }
.callout-inner { max-width: 640px; }
.eyebrow-light { color: #fff; }
.eyebrow-light::before { background: var(--secondary); }
.callout-title { font-size: clamp(1.8rem, 4vw, 2.9rem); color: #fff; margin: .6rem 0 1rem; line-height: 1.2; }
.callout-inner p { font-size: 1.1rem; color: rgba(255,255,255,.9); margin-bottom: 1.8rem; }
.callout-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 768px) { .callout-band { background-attachment: scroll; } }

/* ---------- Testimonials ---------- */
.testimonial-band { position: relative; isolation: isolate; padding-block: clamp(3.5rem, 8vw, 6rem); color: #fff; --g1: var(--primary); --g2: var(--primary-700); }
.testimonial-band { background-image: url('../images/topography.webp'), linear-gradient(135deg, var(--g1), var(--g2)); background-size: 240px, cover; background-repeat: repeat, no-repeat; background-blend-mode: soft-light, normal; }
.testimonial-band .section-title { margin-bottom: 2.5rem; }
.testimonial-stage { position: relative; min-height: 260px; max-width: 820px; margin-inline: auto; }
.testimonial-item { position: absolute; inset: 0; text-align: center; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; margin: 0; }
.testimonial-item.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.testimonial-quote { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.14); color: var(--secondary); margin-bottom: 1.3rem; }
.testimonial-quote .icon { width: 28px; height: 28px; }
.testimonial-item blockquote { font-family: var(--font-heading); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.55; color: #fff; margin-bottom: 1.6rem; }
.testimonial-person { display: inline-flex; align-items: center; gap: .9rem; }
.testimonial-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.5); }
.testimonial-person span { display: flex; flex-direction: column; text-align: left; }
.testimonial-name { font-weight: 700; color: #fff; }
.testimonial-role { font-size: .88rem; color: var(--secondary); }

/* ---------- Blog post-wrap ---------- */
.post-grid { gap: 1.75rem; }
.post-wrap { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--t), box-shadow var(--t); }
.post-wrap:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-wrap:hover .post-media img { transform: scale(1.07); }
.post-date { position: absolute; left: 1rem; top: 1rem; display: flex; flex-direction: column; align-items: center; line-height: 1; background: var(--primary); color: #fff; border-radius: 10px; padding: .6rem .7rem; font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.post-date strong { font-size: 1.25rem; font-weight: 800; }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); margin-bottom: .6rem; }
.post-title { font-size: 1.2rem; line-height: 1.3; margin-bottom: .6rem; }
.post-title a { color: var(--ink-900); }
.post-title a:hover { color: var(--primary); }
.post-body p { font-size: .94rem; color: var(--ink-500); margin-bottom: 1.1rem; flex: 1; }

/* ---------- Partners / clients ---------- */
.partners-band { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--surface); border-top: 1px solid var(--line); }
.partners-label { text-align: center; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 2rem; }
.partners-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); }
.partner-logo img { height: 46px; width: auto; object-fit: contain; opacity: .55; filter: grayscale(1); transition: opacity var(--t), filter var(--t); }
.partner-logo:hover img { opacity: 1; filter: none; }

/* ---------- Footer (second style) ---------- */
.footer-second .footer-grid { grid-template-columns: 1.05fr 1.45fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.logo-footer { margin-bottom: 1.3rem; }
.footer-wide { width: 100%; }
.footer-subscribe { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem; margin-bottom: 2rem; }
.footer-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font); font-style: normal; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); margin-bottom: .4rem; }
.footer-subscribe-title { color: #fff; font-size: 1.4rem; margin-bottom: 1.1rem; }
.subscribe-wrap { display: flex; gap: .6rem; flex-wrap: wrap; }
.subscribe-wrap input { flex: 1; min-width: 200px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; border-radius: 10px; padding: .85rem 1rem; font-family: inherit; font-size: .95rem; }
.subscribe-wrap input::placeholder { color: rgba(255,255,255,.55); }
.subscribe-wrap input:focus { outline: 0; border-color: var(--secondary); }
.footer-sub-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.footer-menu { display: flex; flex-direction: column; gap: .6rem; }
.footer-menu a { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.7); font-size: .93rem; transition: color var(--t), padding var(--t); }
.footer-menu a:hover { color: #fff; padding-left: 4px; }
.footer-menu .icon-sm { color: var(--secondary); }
.photo-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; max-width: 240px; }
.photo-thumbs li { aspect-ratio: 1; }
.photo-thumbs a { display: block; width: 100%; height: 100%; border-radius: 6px; overflow: hidden; }
.photo-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t), opacity var(--t); opacity: .85; }
.photo-thumbs a:hover img { transform: scale(1.05); opacity: 1; }
.give-us-call { display: flex; align-items: center; gap: .85rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12); }
.give-us-call .icon { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 11px; color: #fff; background: var(--secondary); }
.give-us-call span { display: block; font-size: .8rem; color: rgba(255,255,255,.6); }
.give-us-call a { color: #fff; font-weight: 700; font-size: 1.1rem; }
.copyright-wrap { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid rgba(255,255,255,.1); }
.copyright-wrap .footer-bottom { border-top: 0; }
.copyright-name { color: #fff; }
@media (max-width: 860px) {
    .footer-second .footer-grid { grid-template-columns: 1fr; }
    .footer-sub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .photo-thumbs { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   GRACIOUS INTERACTIONS — search overlay, lightbox, partner marquee
   ========================================================================== */

/* Lock background scroll while an overlay is open */
.no-scroll { overflow: hidden; }


/* ---------- Search overlay (full-screen) ---------- */
.search-overlay {
    position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
    padding: var(--gutter);
    background: linear-gradient(135deg, rgba(11,31,58,.97), rgba(8,61,115,.97));
    backdrop-filter: blur(6px);
}
.search-overlay-close {
    position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem);
    width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center;
    transition: background var(--t), transform var(--t), border-color var(--t);
}
.search-overlay-close:hover { background: var(--secondary); border-color: var(--secondary); transform: rotate(90deg); }
.search-overlay-close .icon { width: 24px; height: 24px; }
.search-overlay-inner { width: min(680px, 100%); text-align: center; }
.search-overlay-eyebrow {
    display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .26em;
    text-transform: uppercase; color: var(--secondary); margin-bottom: 1.4rem;
}
.search-overlay-form { display: flex; gap: .7rem; flex-wrap: wrap; }
.search-overlay-input {
    flex: 1; min-width: 200px; font-family: inherit; font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: #fff; background: transparent; border: 0; border-bottom: 2px solid rgba(255,255,255,.35);
    padding: .6rem .2rem; outline: 0; transition: border-color var(--t);
}
.search-overlay-input::placeholder { color: rgba(255,255,255,.55); }
.search-overlay-input:focus { border-bottom-color: var(--secondary); }
.search-overlay-form .btn { flex: none; }
.search-overlay-hint { margin-top: 1.4rem; font-size: .88rem; color: rgba(255,255,255,.65); }
.search-overlay-hint kbd {
    font-family: inherit; font-size: .8rem; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2); border-radius: 5px; padding: .1rem .45rem; color: #fff;
}
@media (max-width: 540px) { .search-overlay-form .btn { width: 100%; } }

/* ---------- Image lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 3500; display: grid; place-items: center;
    padding: clamp(1rem, 5vw, 3.5rem);
    background: rgba(14,18,28,.92); backdrop-filter: blur(4px);
}
.lightbox-stage { margin: 0; position: relative; max-width: min(1000px, 100%); }
.lightbox-stage img {
    max-width: 100%; max-height: 82vh; border-radius: var(--radius); object-fit: contain;
    box-shadow: var(--shadow-lg); background: #000;
}
.lightbox-count {
    position: absolute; left: 50%; bottom: -2.2rem; transform: translateX(-50%);
    font-size: .85rem; color: rgba(255,255,255,.75); font-weight: 500; letter-spacing: .04em;
}
.lightbox-close {
    position: absolute; top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem);
    width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center;
    transition: background var(--t), transform var(--t), border-color var(--t); z-index: 2;
}
.lightbox-close:hover { background: var(--secondary); border-color: var(--secondary); transform: rotate(90deg); }
.lightbox-close .icon { width: 24px; height: 24px; }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center;
    transition: background var(--t), border-color var(--t);
}
.lightbox-nav:hover { background: var(--secondary); border-color: var(--secondary); }
.lightbox-nav .icon { width: 26px; height: 26px; }
.lightbox-prev { left: clamp(.5rem, 3vw, 2rem); }
.lightbox-prev .icon { transform: rotate(180deg); }
.lightbox-next { right: clamp(.5rem, 3vw, 2rem); }
@media (max-width: 560px) { .lightbox-nav { width: 42px; height: 42px; } }

/* ---------- Partners marquee (auto-scrolling logos) ---------- */
.partners-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
    display: flex; align-items: center; width: max-content;
    gap: clamp(1.5rem, 5vw, 3.5rem);
    animation: partnersScroll 38s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partners-track .partner-logo { flex: none; }
@keyframes partnersScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .partners-marquee { -webkit-mask-image: none; mask-image: none; }
    .partners-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
    .partner-logo.partner-extra { display: none; }
}
