/* ==========================================================================
   TAXLENZ CONSULTING — Design System
   Pattern: Trust & Authority (ui-ux-pro-max)  |  Fonts: Playfair Display + IBM Plex Sans
   Palette: Navy (brand) · Maroon (accent) · Gold (prosperity) · Teal (secondary)
   ========================================================================== */

/* ---- 1. Tokens & Themes -------------------------------------------------- */
:root {
    /* Brand constants (same in both themes) */
    /* === "Emerald Prosperity" signature palette ===
       Deep emerald-teal + warm gold + plum — distinctive for a finance/legal
       brand (most competitors are plain navy/blue). */
    --navy:        #0B3D3A;   /* deep emerald (primary "dark") */
    --navy-700:    #12514C;
    --navy-900:    #072A28;
    --maroon:      #6D3A57;   /* plum (secondary accent) */
    --maroon-600:  #834569;
    --gold:        #D4A22A;   /* rich gold */
    --gold-400:    #E6C25E;
    --teal:        #17A398;   /* bright emerald highlight */
    --teal-400:    #2DD4BF;

    /* Radii, shadow, motion */
    --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-pill: 999px;
    --shadow-sm: 0 1px 3px rgba(16,27,49,.08), 0 1px 2px rgba(16,27,49,.06);
    --shadow-md: 0 8px 24px rgba(16,27,49,.10), 0 2px 6px rgba(16,27,49,.06);
    --shadow-lg: 0 24px 60px rgba(16,27,49,.16), 0 8px 20px rgba(16,27,49,.08);
    --ease: cubic-bezier(.22,.61,.36,1);
    --dur: .28s;

    --container: 1200px;
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Light theme (DEFAULT) — emerald prosperity */
[data-theme="light"] {
    --bg:           #FBF3E2;
    --bg-alt:       #FCF6E9;
    --surface:      #FCF6E9;
    --surface-2:    #F3E9D2;
    --text:         #12211E;
    --text-muted:   #4F6863;
    --heading:      #0B3D3A;
    --border:       #DBE9E4;
    --primary:      var(--navy);            /* deep emerald */
    --primary-ink:  #FFFFFF;
    --accent:       var(--gold);            /* gold accent */
    --accent-ink:   #2a2109;
    --accent-2:     var(--maroon);          /* plum secondary */
    --gold-ink:     #7a5f22;
    --hero-grad: radial-gradient(1200px 620px at 12% -10%, rgba(212,162,42,.20), transparent 60%),
                 radial-gradient(1000px 520px at 100% 0%, rgba(11,61,58,.16), transparent 55%),
                 radial-gradient(800px 500px at 60% 110%, rgba(109,58,87,.10), transparent 60%),
                 linear-gradient(160deg, #FCF6E9 0%, #F3E9D2 100%);
    /* Glassmorphism (iOS-style) */
    --glass:        rgba(252,246,233,.55);
    --glass-brd:    rgba(252,246,233,.65);
    --glass-blur:   18px;
    --glass-shadow: 0 20px 50px rgba(11,61,58,.14);
    --mesh-1: rgba(212,162,42,.28);
    --mesh-2: rgba(11,61,58,.22);
    --mesh-3: rgba(109,58,87,.18);
}

/* Dark theme — emerald night (inverted cream + emerald + gold) */
[data-theme="dark"] {
    --bg:           #061816;                /* deep forest base */
    --bg-alt:       #0B2522;                /* alt sections */
    --surface:      #12332E;                /* cards — lifted off bg */
    --surface-2:    #1A3F39;                /* chips / nested */
    --text:         #EAF3F0;                /* soft mint body */
    --text-muted:   #8BA9A2;                /* secondary copy */
    --heading:      #F8F0DC;                /* warm cream headings */
    --border:       #2C5A52;                /* clear card edges */
    --primary:      #1CB8AB;                /* bright emerald for CTAs */
    --primary-ink:  #031A18;
    --accent:       #E8C76A;                /* luminous gold */
    --accent-ink:   #1a1405;
    --accent-2:     #D08BB0;                /* soft plum */
    --gold-ink:     #E8C76A;
    --hero-grad: radial-gradient(1200px 620px at 12% -10%, rgba(232,199,106,.16), transparent 60%),
                 radial-gradient(1000px 520px at 100% 0%, rgba(28,184,171,.18), transparent 55%),
                 radial-gradient(800px 500px at 60% 110%, rgba(208,139,176,.10), transparent 60%),
                 linear-gradient(165deg, #0B2522 0%, #061816 100%);
    --glass:        rgba(18,51,46,.62);
    --glass-brd:    rgba(150,200,185,.24);
    --glass-blur:   18px;
    --glass-shadow: 0 22px 56px rgba(0,0,0,.55);
    --mesh-1: rgba(232,199,106,.18);
    --mesh-2: rgba(28,184,171,.20);
    --mesh-3: rgba(208,139,176,.14);
}

/* ---- 2. Reset & base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
    overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { color: var(--text); }
a { color: var(--primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 2000;
    background: var(--primary); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ---- 3. Buttons ---------------------------------------------------------- */
.btn {
    --_bg: var(--primary); --_ink: var(--primary-ink);
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-body); font-weight: 600; font-size: .98rem;
    padding: .85rem 1.6rem; border-radius: var(--r-pill); border: 2px solid transparent;
    background: var(--_bg); color: var(--_ink); cursor: pointer;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
    box-shadow: var(--shadow-sm); text-align: center; line-height: 1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--_ink); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem 1.1rem; font-size: .86rem; }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn-primary { --_bg: var(--primary); --_ink: var(--primary-ink); }
.btn-accent  { --_bg: var(--accent); --_ink: var(--accent-ink); }
.btn-gold    { --_bg: linear-gradient(135deg, var(--gold), var(--gold-400)); --_ink: #2a2109; }
.btn-outline {
    background: transparent; color: var(--primary); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: none; }

/* ---- 4. Header / nav ----------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--glass); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { border-radius: 8px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--heading); letter-spacing: .06em; }
.brand-sub { font-size: .62rem; letter-spacing: .34em; color: var(--accent); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: .35rem; }
.nav-link {
    position: relative; padding: .55rem .85rem; border-radius: var(--r-sm);
    color: var(--text); font-weight: 500; font-size: .96rem;
}
.nav-link::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav-link:hover { color: var(--heading); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--heading); font-weight: 600; }
.nav-cta { margin-left: .5rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-pill);
    background: var(--surface-2); border: 1px solid var(--border); color: var(--heading); cursor: pointer;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.06); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); cursor: pointer; padding: 0 10px; }
.nav-toggle span { height: 2px; background: var(--heading); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- 5. Hero ------------------------------------------------------------- */
.hero { position: relative; background: var(--hero-grad); overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-ink);
    font-weight: 600; font-size: .8rem; letter-spacing: .04em; margin-bottom: 1.25rem; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 42ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.hero-trust-item { display: flex; align-items: center; gap: .5rem; color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.hero-trust-item svg { color: var(--teal); flex: none; }

.hero-visual { position: relative; }
.hero-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); padding: 1.75rem; position: relative; z-index: 2;
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.hero-card-head h3 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--text-muted); }
.hero-badge { font-size: .7rem; font-weight: 700; color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); padding: .3rem .6rem; border-radius: var(--r-pill); }
.hero-stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.hero-stat { background: var(--surface-2); border-radius: var(--r-md); padding: 1rem; }
.hero-stat .num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--heading); }
.hero-stat .lbl { font-size: .78rem; color: var(--text-muted); }
.hero-float {
    position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: .75rem 1rem; display: flex; gap: .6rem; align-items: center;
    font-size: .85rem; font-weight: 600; color: var(--heading);
}
.hero-float svg { color: var(--gold); }
.hero-float.f1 { top: -18px; right: 8%; }
.hero-float.f2 { bottom: -20px; left: -14px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; }
.blob.b1 { width: 320px; height: 320px; background: var(--gold); top: -60px; right: -40px; }
.blob.b2 { width: 260px; height: 260px; background: var(--teal); bottom: -50px; left: -30px; }

/* ---- 6. Section headers -------------------------------------------------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section-eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; display: block; margin-bottom: .75rem; }
.section-head p { color: var(--text-muted); margin-top: .75rem; font-size: 1.05rem; }
.text-center { text-align: center; }

/* ---- 7. Cards / grids ---------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 1.9rem; box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    position: relative; overflow: hidden;
}
.card::before { content:""; position:absolute; inset:0 0 auto 0; height:4px; background:linear-gradient(90deg,var(--accent),var(--gold)); transform: scaleX(0); transform-origin:left; transition: transform var(--dur) var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: 1.25rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--accent) 14%, transparent));
    color: var(--accent);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--text-muted); font-size: .96rem; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 600; color: var(--accent); }
.card-link svg { transition: transform var(--dur) var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---- 8. Stats band ------------------------------------------------------- */
.stats-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; border-radius: var(--r-lg); }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-item { text-align: center; padding: .5rem; }
.stat-item .num { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: var(--gold-400); }
.stat-item .lbl { color: #c3cfe4; font-size: .95rem; margin-top: .25rem; }

/* ---- 9. Why-us / feature split ------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-list { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); display: grid; place-items: center; }
.feature-item h4 { font-family: var(--font-body); font-weight: 600; margin-bottom: .2rem; color: var(--heading); }
.feature-item p { color: var(--text-muted); font-size: .93rem; }
.media-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: var(--surface); }

/* ---- 10. CTA band -------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--maroon) 0%, var(--navy) 100%); color: #fff; border-radius: var(--r-lg); text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 1rem auto 2rem; }
.cta-band .blob { opacity: .3; }

/* ---- 11. Blog ------------------------------------------------------------ */
.post-card { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; }
.post-card .post-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy), var(--maroon)); position: relative; }
.post-thumb .post-cat { position: absolute; top: 1rem; left: 1rem; background: var(--gold); color: #2a2109; font-weight: 700; font-size: .72rem; padding: .3rem .7rem; border-radius: var(--r-pill); letter-spacing: .03em; }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .8rem; color: var(--text-muted); display: flex; gap: .75rem; margin-bottom: .6rem; }
.post-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--heading); }
.post-card h3 a:hover { color: var(--accent); }
.post-excerpt { color: var(--text-muted); font-size: .93rem; flex: 1; }
.post-foot { margin-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; }

/* Article body (single post) */
.article { max-width: 760px; margin-inline: auto; }
.article-hero { text-align: center; margin-bottom: 2.5rem; }
.article-hero h1 { margin: 1rem 0; }
.article-content { font-size: 1.12rem; line-height: 1.85; }
.article-content p { margin-bottom: 1.4rem; color: var(--text); }
.article-content h2 { margin: 2.2rem 0 1rem; }
.article-content h3 { margin: 1.8rem 0 .8rem; }
.article-content ul, .article-content ol { margin: 0 0 1.4rem 1.4rem; }
.article-content li { margin-bottom: .5rem; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content blockquote { border-left: 4px solid var(--gold); padding: .5rem 1.25rem; margin: 1.5rem 0; background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; color: var(--text-muted); }
.article-content img { border-radius: var(--r-md); margin: 1.5rem 0; }
.article-content a { text-decoration: underline; }

/* ---- 12. Forms ----------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--heading); }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
    font-family: var(--font-body); font-size: 1rem; padding: .8rem 1rem;
    border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
.field textarea { min-height: 150px; resize: vertical; }
.field .helper { font-size: .8rem; color: var(--text-muted); }
.field .error-msg { font-size: .82rem; color: #d64550; }
.form-note { font-size: .85rem; color: var(--text-muted); }

.alert { padding: 1rem 1.25rem; border-radius: var(--r-sm); font-size: .95rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert-success { background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); }
.alert-error { background: color-mix(in srgb, #d64550 12%, transparent); color: #c0303b; border: 1px solid color-mix(in srgb, #d64550 40%, transparent); }
[data-theme="dark"] .alert-error { color: #ff9aa2; }

/* ---- 13. Info / contact cards ------------------------------------------- */
.info-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.info-card .card-icon { width: 46px; height: 46px; margin: 0; flex: none; }
.info-card h4 { font-family: var(--font-body); margin-bottom: .2rem; color: var(--heading); }
.info-card p, .info-card a { color: var(--text-muted); font-size: .93rem; }

/* ---- 14. About / profile ------------------------------------------------- */
.profile-card { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-md); }
.profile-photo { width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--navy), var(--maroon)); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 3.5rem; font-weight: 800; }
.profile-social { display: flex; gap: .6rem; margin-top: 1rem; }

/* ---- 15. Social + back-to-top ------------------------------------------- */
.social-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.profile-social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.social-link {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--heading) !important;
    text-decoration: none; flex: 0 0 auto;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.social-link svg {
    width: 18px; height: 18px; display: block;
    fill: currentColor !important;
    color: inherit;
    pointer-events: none;
    flex-shrink: 0;
}
.social-link:hover {
    transform: translateY(-3px);
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.social-link:hover svg { fill: currentColor !important; color: #fff; }
[data-theme="dark"] .social-link {
    background: rgba(140,190,175,.12);
    border-color: rgba(140,190,175,.30);
    color: #E8F2EF !important;
}

.back-to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--dur) var(--ease); z-index: 900; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); }

/* ---- 16. Footer ---------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: clamp(3rem, 6vw, 4.5rem); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-tagline { color: var(--gold-ink); font-style: italic; font-family: var(--font-head); margin: .75rem 0 .5rem; font-size: 1.05rem; }
.footer-about { color: var(--text-muted); font-size: .92rem; max-width: 38ch; }
.footer-heading { font-family: var(--font-body); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--heading); margin-bottom: 1.1rem; }
.footer-links { display: grid; gap: .7rem; }
.footer-links a { color: var(--text-muted); font-size: .93rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 1.4rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-muted); font-size: .86rem; }

/* ---- 17. Breadcrumb ------------------------------------------------------ */
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--text-muted); margin-bottom: 1.25rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---- 18. Page hero (inner pages) ---------------------------------------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--hero-grad); text-align: center; padding-block: clamp(3.5rem, 8vw, 5.5rem); border-bottom: 1px solid var(--border); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: .75rem; }
.page-hero h1 .text-gradient { display: inline; }
.page-hero p { color: var(--text-muted); max-width: 56ch; margin-inline: auto; font-size: 1.08rem; }

/* ---- 19. Empty state ----------------------------------------------------- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-state .card-icon { margin: 0 auto 1.25rem; }

/* ---- 20. Admin ----------------------------------------------------------- */
.admin-shell { min-height: 100dvh; background: var(--bg); }
.admin-topbar { background: var(--navy); color: #fff; padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
.admin-topbar .container { display: flex; align-items: center; justify-content: space-between; }
.admin-topbar a { color: #fff; }
.admin-login-wrap { min-height: 100dvh; display: grid; place-items: center; background: var(--hero-grad); padding: 1.5rem; }
.admin-login-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 2.5rem; }
.admin-login-card .brand { justify-content: center; margin-bottom: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
.admin-table th, .admin-table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--border); font-size: .93rem; }
.admin-table th { background: var(--surface-2); font-weight: 600; color: var(--heading); }
.admin-table tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: .25rem .65rem; border-radius: var(--r-pill); font-size: .74rem; font-weight: 600; }
.badge-pub { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.badge-draft { background: var(--surface-2); color: var(--text-muted); }
.table-actions { display: flex; gap: .5rem; }

/* ---- 21. Utilities & motion --------------------------------------------- */
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:1rem}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.bg-alt { background: var(--bg-alt); }

/* ---- 22a. Splash loader ------------------------------------------------- */
.splash { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
    background: var(--bg-alt); transition: opacity .5s var(--ease), visibility .5s var(--ease); }
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { text-align: center; }
.splash-logo { width: clamp(90px, 18vw, 130px); height: auto; margin-inline: auto;
    animation: splashPop .7s var(--ease) both, splashFloat 3s ease-in-out .7s infinite; }
@keyframes splashPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes splashFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.splash-bar { width: 200px; height: 3px; margin: 1.75rem auto .75rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 40%;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: splashSlide 1.4s ease-in-out infinite; }
@keyframes splashSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.splash-tag { color: var(--text-muted); font-family: var(--font-head); font-style: italic; font-size: .95rem; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .splash-logo, .splash-bar span { animation: none !important; } }

/* Founder photo (round, brand ring, on the About page) */
.founder-photo { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
    background: linear-gradient(135deg, var(--navy), var(--maroon));
    border: 4px solid var(--surface);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--primary) 22%, transparent),
                0 0 0 6px color-mix(in srgb, var(--gold) 35%, transparent); }

/* ---- 22b. WhatsApp float ------------------------------------------------- */
.whatsapp-float {
    position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 900;
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.45);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,.55); }
.whatsapp-float::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
    animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float::after { animation: none; } }

/* ---- 22c. Cookie consent ------------------------------------------------- */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1200; margin-inline: auto;
    max-width: 720px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 1.1rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { font-size: .9rem; color: var(--text-muted); margin: 0; flex: 1; min-width: 240px; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; flex: none; }

/* ---- 22d. Testimonials --------------------------------------------------- */
.testimonial-card { display: flex; flex-direction: column; height: 100%; }
.stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: 1rem; }
.testimonial-quote { font-size: 1.02rem; color: var(--text); line-height: 1.7; flex: 1; }
.testimonial-quote::before { content: "\201C"; font-family: var(--font-head); font-size: 2.5rem; color: color-mix(in srgb, var(--accent) 40%, transparent); line-height: 0; vertical-align: -0.4em; margin-right: .15em; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; margin-top: 1.25rem; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--maroon)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; flex: none; }
.testimonial-author .name { font-weight: 600; color: var(--heading); font-size: .95rem; }
.testimonial-author .role { font-size: .82rem; color: var(--text-muted); }

/* ---- 22e. FAQ accordion -------------------------------------------------- */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: .9rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 1.15rem 1.3rem; font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; color: var(--heading);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-q:hover { color: var(--accent); }
.faq-q .faq-icon { flex: none; transition: transform var(--dur) var(--ease); color: var(--accent); }
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease); }
.faq-a-inner { padding: 0 1.3rem 1.2rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 500px; }

/* ---- 22f. Category chips + legal pages ----------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.chip { padding: .5rem 1.1rem; border-radius: var(--r-pill); border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 500; transition: all var(--dur) var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip.is-active:hover { color: var(--primary-ink); }

.legal-content { max-width: 800px; margin-inline: auto; }
.legal-content h2 { margin: 2rem 0 .8rem; font-size: 1.5rem; }
.legal-content p, .legal-content li { color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.legal-content ul { list-style: disc; margin-left: 1.4rem; }
.legal-updated { color: var(--text-muted); font-size: .9rem; font-style: italic; margin-bottom: 2rem; }

.footer-legal-links { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.footer-legal-links a { color: var(--text-muted); font-size: .86rem; }
.footer-legal-links a:hover { color: var(--accent); }
.footer-legal-links span { color: var(--text-muted); font-size: .8rem; }

/* ==========================================================================
   23. FUTURISTIC LAYER — glassmorphism · gradient mesh · 3D tilt · morphism
   ========================================================================== */

/* Animated gradient-mesh background (drop into any section as first child) */
.mesh-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.mesh-bg::before, .mesh-bg::after {
    content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
    border-radius: 50%; filter: blur(90px); opacity: .8; will-change: transform;
}
.mesh-bg::before { background: radial-gradient(circle, var(--mesh-1), transparent 70%); top: -20%; left: -10%; animation: meshFloat1 18s ease-in-out infinite; }
.mesh-bg::after  { background: radial-gradient(circle, var(--mesh-2), transparent 70%); bottom: -25%; right: -10%; animation: meshFloat2 22s ease-in-out infinite; }
.mesh-orb { position: absolute; width: 40vw; height: 40vw; max-width: 460px; max-height: 460px; border-radius: 50%; filter: blur(80px); background: radial-gradient(circle, var(--mesh-3), transparent 70%); top: 30%; left: 40%; opacity: .7; animation: meshFloat3 26s ease-in-out infinite; z-index: 0; pointer-events: none; }
@keyframes meshFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, 8%) scale(1.15); } }
@keyframes meshFloat2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-8%, -6%) scale(1.2); } }
@keyframes meshFloat3 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-10%, 6%) scale(1.1); } 66% { transform: translate(8%, -8%) scale(.95); } }

/* Fine grid / scanline overlay for a "hi-tech" feel */
.grid-overlay { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }

/* iOS-style glass card */
.glass {
    background: var(--glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    border: 1px solid var(--glass-brd);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.25);
    border-radius: var(--r-lg);
}

/* Gold gradient text */
.text-gradient {
    background: linear-gradient(120deg, var(--gold-400), var(--gold) 40%, var(--accent-2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
[data-theme="dark"] .text-gradient { background: linear-gradient(120deg, #E7C878, var(--gold-400) 50%, #E8A0AE); -webkit-background-clip: text; background-clip: text; }

/* Shimmering gold pill / eyebrow */
.pill-glow {
    display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1.1rem; border-radius: var(--r-pill);
    background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 22%, transparent), color-mix(in srgb, var(--gold) 8%, transparent));
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); color: var(--gold-ink);
    font-weight: 600; font-size: .82rem; letter-spacing: .04em; position: relative; overflow: hidden;
}
.pill-glow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* 3D tilt wrapper — JS sets --rx/--ry from pointer */
.tilt { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .2s var(--ease); will-change: transform; }
.tilt-layer { transform: translateZ(40px); }
.tilt-layer-deep { transform: translateZ(70px); }

/* Morphism blob (organic animated shape) */
.morph {
    background: linear-gradient(135deg, var(--navy), var(--accent-2));
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    animation: morph 12s ease-in-out infinite; will-change: border-radius;
}
@keyframes morph {
    0%,100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
    33% { border-radius: 62% 38% 41% 59% / 59% 63% 37% 41%; }
    66% { border-radius: 38% 62% 57% 43% / 43% 39% 61% 57%; }
}

/* Gold gradient border wrapper (for feature cards) */
.grad-border { position: relative; border-radius: var(--r-lg); }
.grad-border::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 70%, transparent), transparent 40%, color-mix(in srgb, var(--accent-2) 50%, transparent));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .8;
}

/* Marquee trust strip */
.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); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: .6rem; color: var(--text-muted); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.marquee-item svg { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Glow button variant */
.btn-glow { position: relative; background: linear-gradient(135deg, var(--gold), var(--gold-400)); color: #2a2109; box-shadow: 0 8px 30px color-mix(in srgb, var(--gold) 45%, transparent); }
.btn-glow:hover { box-shadow: 0 12px 40px color-mix(in srgb, var(--gold) 60%, transparent); color: #2a2109; }

/* Number badge with glow (stat cards) */
.glow-num { text-shadow: 0 0 24px color-mix(in srgb, var(--gold) 50%, transparent); }

/* Animation-library fallback: if AOS/GSAP fail to load, content stays visible.
   Overrides aos.css initial hidden state. */
html.no-aos [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
html.no-aos .reveal { opacity: 1 !important; transform: none !important; }

/* Hero futuristic layout */
.hero-fx { position: relative; isolation: isolate; }
.hero-fx .container { position: relative; z-index: 2; }
.hero-stage { position: relative; }
.hero-morph { position: absolute; width: 115%; height: 115%; top: -7%; left: -7%; z-index: 0; opacity: .16; filter: blur(6px); }
.hero-stage .hero-card { position: relative; z-index: 2; }
.hero-stage .hero-float { position: absolute; z-index: 3; }
[data-theme="dark"] .hero-morph { opacity: .28; }

@media (prefers-reduced-motion: reduce) {
    .mesh-bg::before, .mesh-bg::after, .mesh-orb, .morph, .marquee-track, .pill-glow .dot { animation: none !important; }
    .tilt { transform: none !important; }
}

/* ---- 22. Responsive ------------------------------------------------------ */
@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-band .container { grid-template-columns: repeat(2, 1fr); }
    .hero-grid, .split { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 480px; margin-inline: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .profile-card { grid-template-columns: 1fr; text-align: center; }
    .profile-photo { max-width: 180px; margin-inline: auto; }
    .profile-social { justify-content: center; }
}
@media (max-width: 760px) {
    .main-nav {
        position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
        background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 1rem;
        gap: .25rem; box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: transform var(--dur) var(--ease);
    }
    .main-nav.open { transform: translateY(0); }
    .nav-link { padding: .85rem 1rem; }
    .nav-link::after { display: none; }
    .nav-cta { margin: .5rem 0 0; }
    .nav-toggle { display: flex; }
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   24. LOGO (wide) — for header/footer/splash so 609x300 renders correctly
   ========================================================================== */
.brand-logo-wide { height: 44px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.site-header .brand-logo-wide { height: 46px; }
.splash-logo-wide { height: clamp(80px, 14vw, 120px); width: auto; max-width: 320px; object-fit: contain; margin-inline: auto;
    animation: splashPop .7s var(--ease) both, splashFloat 3s ease-in-out .7s infinite; filter: drop-shadow(0 12px 30px color-mix(in srgb, var(--primary) 30%, transparent)); }
@media (max-width: 760px) { .brand-logo-wide { height: 38px; max-width: 170px; } }

/* ==========================================================================
   25. BAR COUNCIL DISCLAIMER MODAL
   ========================================================================== */
.bci-modal { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 1rem; }
.bci-modal[hidden] { display: none !important; }
.bci-backdrop { position: absolute; inset: 0; background: rgba(4,20,18,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bci-card { position: relative; z-index: 2; max-width: 620px; width: 100%; max-height: 90vh; overflow: auto;
    padding: clamp(1.5rem, 4vw, 2.4rem); background: var(--surface); border-radius: var(--r-lg);
    box-shadow: 0 40px 100px rgba(0,0,0,.35), 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent);
    animation: bciPop .5s var(--ease) both; }
@keyframes bciPop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.bci-logo { height: 42px; width: auto; margin-bottom: 1rem; }
.bci-card h2 { margin-bottom: 1rem; font-size: 1.6rem; }
.bci-card p, .bci-card li { color: var(--text-muted); font-size: .93rem; line-height: 1.65; margin-bottom: .8rem; }
.bci-card ul { list-style: disc; margin: 0 0 1rem 1.3rem; }
.bci-fine { font-style: italic; font-size: .88rem !important; padding-top: .5rem; border-top: 1px dashed var(--border); }
.bci-actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.25rem; }
.footer-bci-note { text-align: center; font-size: .82rem; color: var(--text-muted); padding: 1rem 0; border-top: 1px dashed var(--border); margin: 0; }
.footer-bci-note a { color: var(--accent); text-decoration: underline; }

/* ==========================================================================
   26. AURORA · NEUMORPHISM · ENHANCED GLASS · MOTION
   Advanced design layer for a modern legal-professional feel.
   ========================================================================== */

/* Aurora background — soft flowing color bands (drop as first child) */
.aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora::before, .aurora::after {
    content: ""; position: absolute; width: 140%; height: 140%; left: -20%; top: -20%;
    background:
      radial-gradient(60% 40% at 20% 30%, color-mix(in srgb, var(--teal) 25%, transparent), transparent 60%),
      radial-gradient(50% 50% at 80% 20%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 60%),
      radial-gradient(55% 45% at 60% 90%, color-mix(in srgb, var(--maroon) 22%, transparent), transparent 60%);
    filter: blur(70px); animation: auroraShift 24s ease-in-out infinite; opacity: .9;
}
.aurora::after { animation-duration: 32s; animation-direction: reverse; opacity: .6; mix-blend-mode: screen; }
@keyframes auroraShift {
    0%,100% { transform: translate3d(0,0,0) rotate(0); }
    33% { transform: translate3d(-4%, 3%, 0) rotate(3deg); }
    66% { transform: translate3d(3%, -4%, 0) rotate(-2deg); }
}

/* Neumorphism card — soft extruded surface */
.neu {
    background: var(--surface);
    border-radius: var(--r-lg); padding: 1.9rem;
    box-shadow:
        10px 10px 30px color-mix(in srgb, var(--primary) 12%, rgba(0,0,0,.06)),
        -10px -10px 30px color-mix(in srgb, #fff 90%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
    transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.neu:hover { transform: translateY(-4px); box-shadow: 14px 14px 40px color-mix(in srgb, var(--primary) 18%, rgba(0,0,0,.10)), -14px -14px 40px color-mix(in srgb, #fff 96%, transparent); }
[data-theme="dark"] .neu {
    box-shadow: 10px 10px 30px rgba(0,0,0,.5), -6px -6px 20px color-mix(in srgb, var(--teal) 10%, transparent);
}

/* Enhanced glass card — brighter edge, iOS 26 style */
.glass-pro {
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 60%, transparent), color-mix(in srgb, var(--surface) 30%, transparent));
    backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid color-mix(in srgb, #fff 25%, transparent);
    border-radius: var(--r-lg);
    box-shadow: 0 30px 80px color-mix(in srgb, var(--primary) 18%, transparent), inset 0 1px 0 rgba(255,255,255,.35);
    position: relative; overflow: hidden;
}
.glass-pro::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,.25) 0%, transparent 40%, transparent 60%, rgba(255,255,255,.12) 100%);
    mix-blend-mode: overlay; opacity: .8;
}

/* Shine sweep on hover (useful on service cards / CTAs) */
.shine { position: relative; overflow: hidden; }
.shine::after {
    content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform .8s var(--ease);
}
.shine:hover::after { transform: translateX(100%); }

/* Animated gradient border (aurora ring) */
.aurora-ring { position: relative; border-radius: var(--r-lg); isolation: isolate; }
.aurora-ring::before {
    content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
    background: conic-gradient(from 0deg, var(--gold), var(--teal), var(--maroon), var(--gold));
    animation: auroraSpin 6s linear infinite; filter: blur(6px); opacity: .8;
}
@keyframes auroraSpin { to { transform: rotate(360deg); } }

/* Kinetic underline for links */
.kinetic-link { position: relative; display: inline-block; }
.kinetic-link::after { content:""; position:absolute; left:0; bottom:-3px; height:2px; width:100%;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.kinetic-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Card lift on scroll (works with .reveal) */
.card, .neu, .info-card, .post-card, .glass, .glass-pro { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease); }

/* Smooth momentum scroll & perf boost */
html { scroll-padding-top: 80px; }
body { overscroll-behavior-y: none; }
img, video, iframe { content-visibility: auto; }
section { contain: layout paint; }

@media (prefers-reduced-motion: reduce) {
    .aurora::before, .aurora::after, .aurora-ring::before, .shine::after { animation: none !important; transform: none !important; }
}
