/* ============================================================
   SP TRUST — Modern design system
   Shantha Pitchai Trust, Madurai
   ============================================================ */

:root {
    /* Brand palette — matched to the SP Trust logo: sky cyan + steel navy */
    --ink: #0e2233;
    --ink-soft: #3b566b;
    --muted: #61788c;
    --primary: #0698d1;
    --primary-dark: #0574a3;
    --primary-deep: #123650;
    --accent: #f7941d;
    --accent-dark: #d97b0b;
    --bg: #ffffff;
    --bg-soft: #f4f8fb;
    --bg-tint: #e3f2fb;
    --line: #dae7f0;
    --white: #ffffff;

    --grad-hero: linear-gradient(115deg, rgba(16, 45, 70, .92) 0%, rgba(9, 77, 115, .82) 45%, rgba(6, 152, 209, .55) 100%);
    --grad-brand: linear-gradient(120deg, #0f4d7a, #0698d1 55%, #27b6ea);
    --grad-accent: linear-gradient(120deg, #f7941d, #fbb03b);

    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 10px rgba(15, 53, 80, .06);
    --shadow: 0 12px 34px rgba(15, 53, 80, .10);
    --shadow-lg: 0 24px 60px rgba(15, 53, 80, .16);

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

    --container: 1180px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ink-soft);
    background: var(--bg);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -.01em;
}

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

.container {
    width: min(var(--container), 92%);
    margin-inline: auto;
}

.section { padding: clamp(44px, 6vw, 76px) 0; }
.section.tinted { background: var(--bg-soft); }

/* ---------- Section headings ---------- */
.section-head { max-width: 720px; margin: 0 auto clamp(26px, 3.6vw, 42px); text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--primary); background: var(--bg-tint);
    padding: 7px 16px; border-radius: 100px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section-head h2 em { font-style: italic; color: var(--primary); }
.section-head p { margin-top: 14px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-weight: 700; font-size: .95rem;
    padding: 14px 30px; border-radius: 100px; border: 2px solid transparent;
    cursor: pointer; transition: all .3s ease; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .3s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(6, 152, 209, .32); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(6, 152, 209, .42); }

.btn-accent { background: var(--grad-accent); color: #3d2800; box-shadow: 0 10px 24px rgba(247, 148, 29, .35); }
.btn-accent:hover { color: #3d2800; transform: translateY(-2px); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--primary-deep); color: #cde4f2;
    font-size: .82rem; padding: 9px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #cde4f2; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar .reg-badge {
    background: rgba(255, 255, 255, .12); border-radius: 100px; padding: 2px 12px;
    font-weight: 600; letter-spacing: .04em;
}
@media (max-width: 640px) { .topbar .hide-sm { display: none; } }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s ease, border-color .3s ease;
}
/* Glass effect lives on a pseudo-element: backdrop-filter on the header itself
   would turn it into the containing block for the fixed mobile drawer. */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 53, 80, .08); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 54px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li { position: relative; }
.nav-links a {
    display: inline-flex; align-items: center; gap: 5px;
    font-weight: 600; font-size: .93rem; color: var(--ink);
    padding: 10px 15px; border-radius: 100px; transition: all .25s ease;
}
.nav-links a:hover { color: var(--primary); background: var(--bg-tint); }
.nav-links a.active { color: var(--primary); background: var(--bg-tint); }
.nav-links svg.caret { width: 13px; height: 13px; transition: transform .25s ease; }
.nav-links li:hover svg.caret, .nav-links li.open svg.caret { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-lg); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .28s ease; z-index: 50;
}
.nav-links li:hover > .dropdown, .nav-links li.open > .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { display: block; padding: 10px 14px; border-radius: 10px; font-size: .9rem; }

.nav-cta { display: inline-flex; }
.nav-cta .btn { padding: 11px 24px; font-size: .88rem; }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; border-radius: 12px; color: var(--ink);
    align-items: center; justify-content: center;
    position: relative; z-index: 1002; /* stays tappable above the open drawer */
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.active .icon-menu { display: none; }
.nav-toggle.active .icon-close { display: block; }

@media (max-width: 991px) {
    .nav-toggle { display: inline-flex; }
    .nav-cta { display: none; }
    .nav-links {
        position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw);
        background: #fff; flex-direction: column; align-items: stretch;
        padding: 90px 26px 40px; gap: 4px; z-index: 999;
        transform: translateX(100%); transition: transform .35s cubic-bezier(.4, 0, .2, 1);
        box-shadow: -20px 0 60px rgba(15, 53, 80, .18);
        overflow-y: auto;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { border-radius: 12px; padding: 13px 16px; font-size: 1rem; }
    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; padding: 0 0 0 16px; display: none; min-width: 0;
    }
    .nav-links li.open > .dropdown { display: block; }
    .nav-overlay {
        position: fixed; inset: 0; background: rgba(8, 26, 42, .5);
        opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 998;
        backdrop-filter: blur(3px);
    }
    .nav-overlay.show { opacity: 1; visibility: visible; }
    body.no-scroll { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: min(78vh, 680px);
    display: flex; align-items: center; overflow: hidden;
    color: #fff;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.08);
    transition: opacity 1.4s ease, transform 7s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--grad-hero); }

.hero-inner { position: relative; z-index: 2; padding: clamp(64px, 8vw, 100px) 0; width: 100%; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
    padding: 8px 18px; border-radius: 100px; font-size: .82rem; font-weight: 600;
    letter-spacing: .05em; margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(247, 148, 29, .55); }
    50% { box-shadow: 0 0 0 8px rgba(247, 148, 29, 0); }
}

.hero h1 {
    color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.2rem);
    font-weight: 600; max-width: 15ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead {
    margin-top: 22px; max-width: 56ch; font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: rgba(255, 255, 255, .88);
}
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.hero-chips { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 100px; padding: 9px 18px; font-size: .85rem; font-weight: 600;
    backdrop-filter: blur(6px);
}
.hero-chip svg { width: 16px; height: 16px; color: var(--accent); }

.hero-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button {
    width: 34px; height: 5px; border-radius: 100px; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .35); transition: all .3s ease;
}
.hero-dots button.active { background: var(--accent); width: 52px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative; color: #fff; overflow: hidden;
    background: var(--primary-deep);
    padding: clamp(48px, 6vw, 76px) 0 clamp(40px, 5vw, 60px);
}
.page-hero .bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: .28;
}
.page-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, rgba(15, 53, 80, .9), rgba(6, 152, 209, .55));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero p { margin-top: 12px; color: rgba(255, 255, 255, .85); max-width: 62ch; }

.crumbs { display: flex; gap: 8px; align-items: center; font-size: .84rem; font-weight: 600; margin-bottom: 18px; color: rgba(255, 255, 255, .75); flex-wrap: wrap; }
.crumbs a { color: var(--accent); }
.crumbs svg { width: 13px; height: 13px; opacity: .7; }

/* ---------- Pillar cards (Vision / Mission / Motto) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 38px 32px;
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pillar::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: var(--grad-brand);
}
.pillar:nth-child(2)::before { background: var(--grad-accent); }
.pillar:nth-child(3)::before { background: linear-gradient(120deg, #27b6ea, #f7941d); }

.pillar .icon {
    width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-tint); color: var(--primary); margin-bottom: 22px;
}
.pillar .icon svg { width: 27px; height: 27px; }
.pillar h3 { font-size: 1.35rem; margin-bottom: 12px; }
.pillar p { font-size: .95rem; color: var(--muted); }

/* ---------- About split ---------- */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px);
    align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-media { position: relative; }
.about-media .main-img {
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    width: 100%; height: 460px; object-fit: cover;
}
.about-media .float-img {
    position: absolute; bottom: -34px; right: -20px; width: 46%;
    border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.about-media .exp-badge {
    position: absolute; top: 26px; left: -20px;
    background: var(--grad-accent); color: #3d2800;
    border-radius: 16px; padding: 16px 22px; box-shadow: var(--shadow);
    font-weight: 800; line-height: 1.25; font-size: .85rem;
}
.about-media .exp-badge strong { display: block; font-family: var(--font-display); font-size: 1.7rem; }
@media (max-width: 640px) {
    .about-media .float-img { right: 0; }
    .about-media .exp-badge { left: 0; }
    .about-media .main-img { height: 340px; }
}

.check-list { margin-top: 26px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .97rem; }
.check-list .tick {
    flex: 0 0 24px; width: 24px; height: 24px; margin-top: 2px;
    border-radius: 50%; background: var(--bg-tint); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.check-list .tick svg { width: 13px; height: 13px; }

/* ---------- Bento / activities ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.bento-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    padding: 36px 32px; transition: transform .35s ease, box-shadow .35s ease;
    display: flex; flex-direction: column;
}
.bento-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-8 { grid-column: span 8; }
.bento-card.span-12 { grid-column: span 12; }
@media (max-width: 991px) {
    .bento-card.span-4, .bento-card.span-6, .bento-card.span-8 { grid-column: span 12; }
}

.bento-card .icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--grad-brand); color: #fff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.bento-card.alt .icon { background: var(--grad-accent); color: #3d2800; }
.bento-card .icon svg { width: 26px; height: 26px; }
.bento-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.bento-card p { font-size: .95rem; color: var(--muted); }
.bento-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bento-card .tags span {
    font-size: .76rem; font-weight: 700; padding: 5px 13px; border-radius: 100px;
    background: var(--bg-tint); color: var(--primary-dark);
}
.bento-card.feature {
    background: var(--grad-brand); color: #fff; border: 0;
    justify-content: center;
}
.bento-card.feature h3, .bento-card.feature p { color: #fff; }
.bento-card.feature p { color: rgba(255, 255, 255, .85); }
.bento-card.feature .icon { background: rgba(255, 255, 255, .16); }

/* ---------- Stats band ---------- */
.stats-band {
    position: relative; background: var(--primary-deep); color: #fff;
    border-radius: var(--radius-lg); overflow: hidden;
    padding: clamp(44px, 6vw, 70px) clamp(28px, 5vw, 64px);
}
.stats-band::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(600px 300px at 85% 15%, rgba(247, 148, 29, .18), transparent 60%),
        radial-gradient(500px 320px at 10% 90%, rgba(39, 182, 234, .35), transparent 60%);
}
.stats-grid {
    position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 30px; text-align: center;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat h3 {
    font-size: clamp(2.2rem, 4.4vw, 3.4rem); color: #fff; font-weight: 600;
}
.stat h3 span.suffix { color: var(--accent); }
.stat p { color: rgba(255, 255, 255, .75); font-size: .9rem; font-weight: 600; margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- News / event cards ---------- */
.news-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: stretch; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .35s ease, box-shadow .35s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card .thumb { position: relative; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 300px; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .date-chip {
    position: absolute; top: 18px; left: 18px;
    background: var(--grad-accent); color: #3d2800; font-weight: 800;
    border-radius: 14px; padding: 8px 14px; font-size: .8rem; box-shadow: var(--shadow);
}
.news-card .body { padding: 28px 30px 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card h3 { font-size: 1.3rem; }
.news-card p { font-size: .95rem; color: var(--muted); }

.mini-report {
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 32px; display: flex; flex-direction: column; gap: 6px;
}
.mini-report h3 { font-size: 1.25rem; margin-bottom: 12px; }
.report-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    font-weight: 600; font-size: .92rem; color: var(--ink);
    transition: all .25s ease; margin-bottom: 10px;
}
.report-item:hover { border-color: var(--primary); transform: translateX(5px); }
.report-item .ric {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px;
    background: var(--bg-tint); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.report-item .ric svg { width: 18px; height: 18px; }

/* ---------- Partners ---------- */
.partners-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 900px) { .partners-strip { grid-template-columns: repeat(2, 1fr); } }
.partner-logo {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 24px; display: flex; align-items: center; justify-content: center;
    min-height: 120px; transition: all .3s ease; box-shadow: var(--shadow-sm);
}
.partner-logo img { max-height: 62px; width: auto; filter: grayscale(1); opacity: .75; transition: all .35s ease; }
.partner-logo:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--grad-brand); color: #fff;
    padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 72px);
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(560px 280px at 90% 10%, rgba(247, 148, 29, .25), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 22ch; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: 10px; max-width: 52ch; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.team-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 40px 26px 34px; text-align: center; box-shadow: var(--shadow-sm);
    transition: transform .35s ease, box-shadow .35s ease; position: relative; overflow: hidden;
}
.team-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 90px;
    background: linear-gradient(120deg, var(--bg-tint), #fdf3e0);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.avatar {
    position: relative; width: 96px; height: 96px; margin: 0 auto 20px;
    border-radius: 50%; background: var(--grad-brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.9rem; font-weight: 600;
    border: 5px solid #fff; box-shadow: var(--shadow);
}
.team-card:nth-child(even) .avatar { background: var(--grad-accent); color: #3d2800; }
.team-card h3 { font-size: 1.06rem; line-height: 1.4; position: relative; }
.team-card .quali { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 3px; position: relative; }
.team-card .role {
    display: inline-block; margin-top: 14px; position: relative;
    background: var(--bg-tint); color: var(--primary-dark);
    font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    border-radius: 100px; padding: 6px 16px;
}
.team-card.founder { border: 2px solid var(--accent); }
.team-card.founder .role { background: var(--grad-accent); color: #3d2800; }

/* ---------- Facts table ---------- */
.facts-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
}
.facts-row { display: grid; grid-template-columns: 300px 1fr; border-bottom: 1px solid var(--line); }
.facts-row:last-child { border-bottom: 0; }
.facts-row:nth-child(odd) { background: var(--bg-soft); }
.facts-row dt {
    padding: 18px 26px; font-weight: 700; color: var(--ink); font-size: .92rem;
    display: flex; align-items: center; gap: 12px;
}
.facts-row dt svg { width: 17px; height: 17px; color: var(--primary); flex: 0 0 17px; }
.facts-row dd { padding: 18px 26px; font-size: .94rem; }
.facts-row dd ul li { padding: 3px 0; display: flex; gap: 9px; align-items: baseline; }
.facts-row dd ul li::before { content: "★"; color: var(--accent); font-size: .7rem; }
@media (max-width: 720px) {
    .facts-row { grid-template-columns: 1fr; }
    .facts-row dt { padding-bottom: 2px; }
    .facts-row dd { padding-top: 4px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 18px; align-content: start; }
.contact-card {
    display: flex; gap: 18px; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 26px; box-shadow: var(--shadow-sm); transition: all .3s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.contact-card .icon {
    flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px;
    background: var(--grad-brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.contact-card:nth-child(2) .icon { background: var(--grad-accent); color: #3d2800; }
.contact-card .icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 5px; }
.contact-card p, .contact-card a { font-size: .93rem; color: var(--muted); }
.contact-card a:hover { color: var(--primary); }

.map-card {
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
    border: 1px solid var(--line); min-height: 420px;
}
.map-card iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Article (partner pages) ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
@media (max-width: 991px) { .article-layout { grid-template-columns: 1fr; } }

.article-body { font-size: 1rem; }
.article-body .logo-plate {
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; display: flex; justify-content: center; margin-bottom: 30px;
}
.article-body .logo-plate img { max-height: 90px; width: auto; }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 18px; }
.article-body h3 { font-size: 1.3rem; margin: 34px 0 14px; }
.article-body p { margin-bottom: 16px; text-align: justify; }

.quote-plate {
    background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg);
    padding: 34px 36px; margin: 28px 0; position: relative; overflow: hidden;
}
.quote-plate::before {
    content: "“"; position: absolute; top: -14px; right: 18px;
    font-family: var(--font-display); font-size: 7rem; opacity: .16; line-height: 1;
}
.quote-plate p { color: rgba(255, 255, 255, .92); margin-bottom: 12px; font-size: .98rem; }
.quote-plate p:last-child { margin-bottom: 0; }
.quote-plate strong { color: var(--accent); }

.side-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 26px;
}
.side-card .head {
    background: var(--primary-deep); color: #fff; font-weight: 700;
    padding: 15px 24px; font-size: .95rem; letter-spacing: .03em;
}
.side-card .body { padding: 22px 24px; }
.side-card .body img.person { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; margin: 6px auto 14px; border: 5px solid var(--bg-tint); }
.side-card ul li {
    padding: 10px 0; border-bottom: 1px dashed var(--line);
    font-size: .92rem; display: flex; gap: 10px; align-items: baseline;
}
.side-card ul li:last-child { border-bottom: 0; }
.side-card ul li::before { content: "◆"; color: var(--accent); font-size: .6rem; }
.side-card .center { text-align: center; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-grid a {
    display: block; border-radius: var(--radius); overflow: hidden; position: relative;
    box-shadow: var(--shadow-sm); aspect-ratio: 4/3;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-grid a::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 53, 80, .55));
    opacity: 0; transition: opacity .35s ease;
}
.gallery-grid a:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; background: rgba(5, 19, 32, .92); z-index: 2000;
    display: none; align-items: center; justify-content: center; padding: 4vw;
    backdrop-filter: blur(6px);
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox .close {
    position: absolute; top: 22px; right: 26px; background: rgba(255, 255, 255, .12);
    border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%;
    font-size: 1.5rem; cursor: pointer; transition: background .25s ease; z-index: 2;
}
.lightbox .close:hover { background: rgba(255, 255, 255, .25); }

.lightbox .lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .14); color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .25s ease, transform .25s ease;
}
.lightbox .lb-nav svg { width: 26px; height: 26px; }
.lightbox .lb-nav:hover { background: var(--primary); }
.lightbox .lb-prev { left: 22px; }
.lightbox .lb-next { right: 22px; }
.lightbox .lb-count {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: .88rem; font-weight: 600; letter-spacing: .06em;
    background: rgba(255, 255, 255, .12); border-radius: 100px; padding: 6px 18px;
}
@media (max-width: 640px) {
    .lightbox .lb-nav { width: 44px; height: 44px; }
    .lightbox .lb-prev { left: 10px; }
    .lightbox .lb-next { right: 10px; }
}

/* ---------- Video embed ---------- */
.video-wrap {
    position: relative; max-width: 900px; margin: 0 auto;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    aspect-ratio: 16 / 9; background: var(--primary-deep);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrap img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .6s ease;
}
.video-wrap:hover img { transform: scale(1.04); }
.video-wrap::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 53, 80, .45));
}
.video-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 2; width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--grad-accent); color: #3d2800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 12px rgba(255, 255, 255, .2), var(--shadow-lg);
    transition: transform .3s ease, box-shadow .3s ease;
    animation: play-pulse 2.4s infinite;
}
.video-play svg { width: 34px; height: 34px; margin-left: 5px; }
.video-play:hover { transform: translate(-50%, -50%) scale(1.08); }
@keyframes play-pulse {
    0%, 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, .2), var(--shadow-lg); }
    50% { box-shadow: 0 0 0 22px rgba(255, 255, 255, .08), var(--shadow-lg); }
}

/* ---------- Objectives (about page) ---------- */
.objectives-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) { .objectives-grid { grid-template-columns: 1fr; } }
.objective {
    display: flex; gap: 18px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm);
    transition: all .3s ease; align-items: flex-start;
}
.objective:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.objective .num {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px;
    background: var(--bg-tint); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.objective p { font-size: .94rem; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative; background: var(--primary-deep); color: #b7cfe0;
    margin-top: clamp(40px, 5vw, 64px);
}
.footer-cta-lift { position: relative; z-index: 5; margin-bottom: -70px; transform: translateY(-70px); }

.footer-main { padding: clamp(40px, 5.5vw, 60px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 44px; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 20px; font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; }
.site-footer .brand-blurb img { height: 56px; width: auto; margin-bottom: 18px; background: #fff; border-radius: 12px; padding: 6px 10px; }
.site-footer .brand-blurb p { font-size: .92rem; }

.footer-links li { padding: 6px 0; }
.footer-links a { color: #b7cfe0; font-size: .93rem; display: inline-flex; align-items: center; gap: 9px; transition: all .25s ease; }
.footer-links a::before { content: "→"; color: var(--accent); font-size: .8rem; transition: transform .25s ease; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }

.footer-contact li { display: flex; gap: 12px; padding: 8px 0; font-size: .92rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 17px; margin-top: 4px; }
.footer-contact a { color: #b7cfe0; }
.footer-contact a:hover { color: #fff; }

.footer-social { display: flex; gap: 11px; margin-top: 20px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255, 255, 255, .09); color: #fff;
    display: flex; align-items: center; justify-content: center; transition: all .3s ease;
}
.footer-social a:hover { background: var(--accent); color: #3d2800; transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0;
    font-size: .85rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-bottom strong { color: #fff; }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 900;
    width: 50px; height: 50px; border-radius: 16px; border: 0; cursor: pointer;
    background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: all .35s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
