/* ============================================================
   Onyancha Advocates - Complete Custom Stylesheet
   Replaces Tailwind CSS with hand-crafted utilities & components
   ============================================================ */

/* ------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   ------------------------------------------------------------ */
:root {
    /* Brand colours */
    --navy:       #1B2A5C;
    --navyDark:   #111D42;
    --navyLight:  #2A3F7A;
    --gold:       #C8A951;
    --goldDark:   #A88B3D;
    --goldLight:  #DBBE6A;
    --slate:      #1A1A2E;
    --warmGray:   #F7F8FA;
    --parchment:  #FAF8F5;
    --white:      #fff;

    /* Convenience RGB channels for alpha compositing */
    --navy-rgb:      27, 42, 92;
    --navyDark-rgb:  17, 29, 66;
    --navyLight-rgb: 42, 63, 122;
    --gold-rgb:      200, 169, 81;
    --goldDark-rgb:  168, 139, 61;
    --goldLight-rgb: 219, 190, 106;
    --slate-rgb:     26, 26, 46;

    /* Typography stacks */
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
    --shadow-md:  0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
    --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.18);

    /* Transitions */
    --ease-out:   cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--slate);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

/* ------------------------------------------------------------
   LAYOUT UTILITIES
   ------------------------------------------------------------ */

/* Container */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Display */
.hidden       { display: none; }
.block        { display: block; }
.inline-block { display: inline-block; }
.inline-flex  { display: inline-flex; }

/* Flexbox */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-row      { flex-direction: row; }
.flex-wrap     { flex-wrap: wrap; }
.flex-1        { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.self-start  { align-self: flex-start; }
.self-center { align-self: center; }

/* Grid */
.grid        { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Column spans */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }

/* Gap */
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0; }
.right-0  { right: 0; }
.bottom-0 { bottom: 0; }
.left-0   { left: 0; }

/* Z-index */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-10   { width: 2.5rem; }
.w-12   { width: 3rem; }
.w-14   { width: 3.5rem; }
.w-16   { width: 4rem; }
.w-20   { width: 5rem; }
.w-24   { width: 6rem; }

/* Height */
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-1    { height: 0.25rem; }
.h-6    { height: 1.5rem; }
.h-10   { height: 2.5rem; }
.h-12   { height: 3rem; }
.h-14   { height: 3.5rem; }
.h-16   { height: 4rem; }
.h-20   { height: 5rem; }
.h-24   { height: 6rem; }

/* Min / Max width */
.min-h-screen { min-height: 100vh; }
.max-w-xs   { max-width: 20rem; }
.max-w-sm   { max-width: 24rem; }
.max-w-md   { max-width: 28rem; }
.max-w-lg   { max-width: 32rem; }
.max-w-xl   { max-width: 36rem; }
.max-w-2xl  { max-width: 42rem; }
.max-w-3xl  { max-width: 48rem; }
.max-w-4xl  { max-width: 56rem; }
.max-w-5xl  { max-width: 64rem; }
.max-w-6xl  { max-width: 72rem; }
.max-w-7xl  { max-width: 80rem; }
.max-w-none { max-width: none; }

/* Object fit */
.object-cover  { object-fit: cover; }
.object-center { object-position: center; }

/* ------------------------------------------------------------
   SPACING UTILITIES (margin & padding)
   rem scale: 0=0, 1=0.25, 2=0.5, 3=0.75, 4=1, 5=1.25,
              6=1.5, 8=2, 10=2.5, 12=3, 16=4, 20=5, 24=6
   ------------------------------------------------------------ */

/* --- Margin --- */
.m-0  { margin: 0; }
.m-1  { margin: 0.25rem; }
.m-2  { margin: 0.5rem; }
.m-3  { margin: 0.75rem; }
.m-4  { margin: 1rem; }
.m-5  { margin: 1.25rem; }
.m-6  { margin: 1.5rem; }
.m-8  { margin: 2rem; }
.m-10 { margin: 2.5rem; }
.m-12 { margin: 3rem; }
.m-16 { margin: 4rem; }
.m-20 { margin: 5rem; }
.m-24 { margin: 6rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mx-0  { margin-left: 0;       margin-right: 0; }
.mx-1  { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2  { margin-left: 0.5rem;  margin-right: 0.5rem; }
.mx-3  { margin-left: 0.75rem; margin-right: 0.75rem; }
.mx-4  { margin-left: 1rem;    margin-right: 1rem; }
.mx-6  { margin-left: 1.5rem;  margin-right: 1.5rem; }
.mx-8  { margin-left: 2rem;    margin-right: 2rem; }

.my-0  { margin-top: 0;       margin-bottom: 0; }
.my-1  { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2  { margin-top: 0.5rem;  margin-bottom: 0.5rem; }
.my-3  { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4  { margin-top: 1rem;    margin-bottom: 1rem; }
.my-6  { margin-top: 1.5rem;  margin-bottom: 1.5rem; }
.my-8  { margin-top: 2rem;    margin-bottom: 2rem; }

.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mt-24 { margin-top: 6rem; }

.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-24 { margin-bottom: 6rem; }

.ml-0    { margin-left: 0; }
.ml-1    { margin-left: 0.25rem; }
.ml-2    { margin-left: 0.5rem; }
.ml-3    { margin-left: 0.75rem; }
.ml-4    { margin-left: 1rem; }
.ml-auto { margin-left: auto; }

.mr-0    { margin-right: 0; }
.mr-1    { margin-right: 0.25rem; }
.mr-2    { margin-right: 0.5rem; }
.mr-3    { margin-right: 0.75rem; }
.mr-4    { margin-right: 1rem; }
.mr-auto { margin-right: auto; }

.-mt-1 { margin-top: -0.25rem; }
.-mt-2 { margin-top: -0.5rem; }
.-mt-4 { margin-top: -1rem; }
.-mt-8 { margin-top: -2rem; }

/* --- Padding --- */
.p-0  { padding: 0; }
.p-1  { padding: 0.25rem; }
.p-2  { padding: 0.5rem; }
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.p-16 { padding: 4rem; }
.p-20 { padding: 5rem; }
.p-24 { padding: 6rem; }

.px-0  { padding-left: 0;       padding-right: 0; }
.px-1  { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2  { padding-left: 0.5rem;  padding-right: 0.5rem; }
.px-3  { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4  { padding-left: 1rem;    padding-right: 1rem; }
.px-5  { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6  { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8  { padding-left: 2rem;    padding-right: 2rem; }
.px-10 { padding-left: 2.5rem;  padding-right: 2.5rem; }
.px-12 { padding-left: 3rem;    padding-right: 3rem; }
.px-16 { padding-left: 4rem;    padding-right: 4rem; }
.px-20 { padding-left: 5rem;    padding-right: 5rem; }
.px-24 { padding-left: 6rem;    padding-right: 6rem; }

.py-0  { padding-top: 0;       padding-bottom: 0; }
.py-1  { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2  { padding-top: 0.5rem;  padding-bottom: 0.5rem; }
.py-3  { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4  { padding-top: 1rem;    padding-bottom: 1rem; }
.py-5  { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6  { padding-top: 1.5rem;  padding-bottom: 1.5rem; }
.py-8  { padding-top: 2rem;    padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem;  padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem;    padding-bottom: 3rem; }
.py-16 { padding-top: 4rem;    padding-bottom: 4rem; }
.py-20 { padding-top: 5rem;    padding-bottom: 5rem; }
.py-24 { padding-top: 6rem;    padding-bottom: 6rem; }

.pt-0  { padding-top: 0; }
.pt-1  { padding-top: 0.25rem; }
.pt-2  { padding-top: 0.5rem; }
.pt-3  { padding-top: 0.75rem; }
.pt-4  { padding-top: 1rem; }
.pt-6  { padding-top: 1.5rem; }
.pt-8  { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }

.pb-0  { padding-bottom: 0; }
.pb-1  { padding-bottom: 0.25rem; }
.pb-2  { padding-bottom: 0.5rem; }
.pb-3  { padding-bottom: 0.75rem; }
.pb-4  { padding-bottom: 1rem; }
.pb-6  { padding-bottom: 1.5rem; }
.pb-8  { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-24 { padding-bottom: 6rem; }

.pl-0 { padding-left: 0; }
.pl-2 { padding-left: 0.5rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pl-5 { padding-left: 1.25rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-8 { padding-left: 2rem; }

.pr-0 { padding-right: 0; }
.pr-2 { padding-right: 0.5rem; }
.pr-3 { padding-right: 0.75rem; }
.pr-4 { padding-right: 1rem; }
.pr-6 { padding-right: 1.5rem; }
.pr-8 { padding-right: 2rem; }

/* --- Space-Y (vertical spacing between children) --- */
.space-y-1 > * + *  { margin-top: 0.25rem; }
.space-y-2 > * + *  { margin-top: 0.5rem; }
.space-y-3 > * + *  { margin-top: 0.75rem; }
.space-y-4 > * + *  { margin-top: 1rem; }
.space-y-5 > * + *  { margin-top: 1.25rem; }
.space-y-6 > * + *  { margin-top: 1.5rem; }
.space-y-8 > * + *  { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* --- Space-X (horizontal spacing between children) --- */
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

/* ------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ------------------------------------------------------------ */

/* Font size */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1.15; }
.text-6xl  { font-size: 3.75rem;  line-height: 1.1; }
.text-7xl  { font-size: 4.5rem;   line-height: 1.05; }

/* Font weight */
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

/* Line height */
.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.25; }
.leading-snug    { line-height: 1.375; }
.leading-normal  { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose   { line-height: 2; }

/* Letter spacing */
.tracking-tight  { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Text transform */
.uppercase   { text-transform: uppercase; }
.lowercase   { text-transform: lowercase; }
.capitalize  { text-transform: capitalize; }
.normal-case { text-transform: none; }

/* White space & wrapping */
.whitespace-nowrap { white-space: nowrap; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Text decoration */
.underline    { text-decoration: underline; }
.no-underline { text-decoration: none; }
.line-through { text-decoration: line-through; }

/* Font style */
.italic { font-style: italic; }

/* --- Text colours --- */
.text-white     { color: var(--white); }
.text-slate     { color: var(--slate); }
.text-navy      { color: var(--navy); }
.text-navyDark  { color: var(--navyDark); }
.text-navyLight { color: var(--navyLight); }
.text-gold      { color: var(--gold); }
.text-goldDark  { color: var(--goldDark); }
.text-goldLight { color: var(--goldLight); }
.text-parchment { color: var(--parchment); }

/* Gray scale */
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }

/* Semantic colours */
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-indigo-600  { color: #4f46e5; }
.text-indigo-700  { color: #4338ca; }
.text-amber-600   { color: #d97706; }
.text-amber-700   { color: #b45309; }
.text-rose-600    { color: #e11d48; }
.text-rose-700    { color: #be123c; }
.text-green-600   { color: #16a34a; }
.text-red-600     { color: #dc2626; }

/* White with opacity */
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/75 { color: rgba(255, 255, 255, 0.75); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }

/* Opacity */
.opacity-0   { opacity: 0; }
.opacity-50  { opacity: 0.5; }
.opacity-60  { opacity: 0.6; }
.opacity-70  { opacity: 0.7; }
.opacity-80  { opacity: 0.8; }
.opacity-90  { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* ------------------------------------------------------------
   BACKGROUND UTILITIES
   ------------------------------------------------------------ */
.bg-white       { background-color: var(--white); }
.bg-parchment   { background-color: var(--parchment); }
.bg-warmGray    { background-color: var(--warmGray); }
.bg-navy        { background-color: var(--navy); }
.bg-navyDark    { background-color: var(--navyDark); }
.bg-navyLight   { background-color: var(--navyLight); }
.bg-gold        { background-color: var(--gold); }
.bg-goldDark    { background-color: var(--goldDark); }
.bg-slate       { background-color: var(--slate); }
.bg-transparent { background-color: transparent; }

/* Semantic backgrounds */
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-red-50     { background-color: #fef2f2; }
.bg-green-50   { background-color: #f0fdf4; }

/* Gradient backgrounds */
.bg-gradient-navy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navyDark) 100%);
}
.bg-gradient-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--goldDark) 100%);
}

/* Opacity / tinted backgrounds */
.bg-navy-5  { background-color: rgba(var(--navy-rgb), 0.05); }
.bg-navy-10 { background-color: rgba(var(--navy-rgb), 0.10); }
.bg-gold-10 { background-color: rgba(var(--gold-rgb), 0.10); }
.bg-gold-15 { background-color: rgba(var(--gold-rgb), 0.15); }

.bg-emerald-10 { background-color: rgba(5, 150, 105, 0.10); }
.bg-indigo-10  { background-color: rgba(79, 70, 229, 0.10); }
.bg-amber-10   { background-color: rgba(217, 119, 6, 0.10); }
.bg-rose-10    { background-color: rgba(225, 29, 72, 0.10); }

/* Cover background */
.bg-cover  { background-size: cover; }
.bg-center { background-position: center; }

/* ------------------------------------------------------------
   BORDERS & RADIUS
   ------------------------------------------------------------ */

/* Borders */
.border     { border: 1px solid #e5e7eb; }
.border-t   { border-top: 1px solid #e5e7eb; }
.border-b   { border-bottom: 1px solid #e5e7eb; }
.border-l   { border-left: 1px solid #e5e7eb; }
.border-r   { border-right: 1px solid #e5e7eb; }
.border-l-4 { border-left: 4px solid #e5e7eb; }
.border-2   { border-width: 2px; }
.border-0   { border-width: 0; }
.border-none { border: none; }

/* Border colours */
.border-gray-100    { border-color: #f3f4f6; }
.border-gray-200    { border-color: #e5e7eb; }
.border-gray-300    { border-color: #d1d5db; }
.border-white-20    { border-color: rgba(255, 255, 255, 0.2); }
.border-white-10    { border-color: rgba(255, 255, 255, 0.1); }
.border-navy        { border-color: var(--navy); }
.border-gold        { border-color: var(--gold); }
.border-goldDark    { border-color: var(--goldDark); }
.border-transparent { border-color: transparent; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-red-200     { border-color: #fecaca; }

/* Border radius */
.rounded-none { border-radius: 0; }
.rounded-sm   { border-radius: 0.25rem; }
.rounded      { border-radius: 0.375rem; }
.rounded-md   { border-radius: 0.5rem; }
.rounded-lg   { border-radius: 0.625rem; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-3xl  { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Box shadows */
.shadow-sm   { box-shadow: var(--shadow-sm); }
.shadow-md   { box-shadow: var(--shadow-md); }
.shadow-lg   { box-shadow: var(--shadow-lg); }
.shadow-2xl  { box-shadow: var(--shadow-2xl); }
.shadow-none { box-shadow: none; }

/* Ring (focus) */
.ring-1 { box-shadow: 0 0 0 1px rgba(var(--navy-rgb), 0.15); }
.ring-2 { box-shadow: 0 0 0 2px rgba(var(--navy-rgb), 0.15); }

/* ------------------------------------------------------------
   TRANSITION & HOVER UTILITIES
   ------------------------------------------------------------ */
.transition           { transition: all 0.15s ease; }
.transition-all       { transition: all 0.3s ease; }
.transition-shadow    { transition: box-shadow 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }
.transition-colors    { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.transition-opacity   { transition: opacity 0.3s ease; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.hover-shadow-md:hover { box-shadow: var(--shadow-md); }
.hover-shadow-lg:hover { box-shadow: var(--shadow-lg); }

.hover-translate-y-neg-1:hover { transform: translateY(-4px); }
.hover-translate-y-neg-2:hover { transform: translateY(-8px); }
.hover-translate-y-neg-6:hover { transform: translateY(-24px); }

.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:opacity-90:hover { opacity: 0.9; }

/* Transform utilities */
.scale-100     { transform: scale(1); }
.scale-105     { transform: scale(1.05); }
.scale-110     { transform: scale(1.1); }
.translate-y-0 { transform: translateY(0); }

/* Group hover */
.group:hover .group-hover-scale-110 {
    transform: scale(1.1);
}
.group:hover .group-hover-gap-2 {
    gap: 0.5rem;
}
.group:hover .group-hover-translate-x-1 {
    transform: translateX(0.25rem);
}

/* Cursor */
.cursor-pointer      { cursor: pointer; }
.cursor-default      { cursor: default; }
.select-none         { user-select: none; }
.pointer-events-none { pointer-events: none; }

/* ------------------------------------------------------------
   ACCESSIBILITY
   ------------------------------------------------------------ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.focus\:outline-none:focus { outline: none; }
.outline-none { outline: none; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* ------------------------------------------------------------
   NAV LINK
   ------------------------------------------------------------ */
.nav-link {
    position: relative;
    color: var(--white);
    transition: color 0.3s ease;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--navy), var(--gold));
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link.active {
    color: var(--gold);
}

/* Variant for dark text on light backgrounds */
.nav-link-dark {
    color: var(--slate);
}
.nav-link-dark::after {
    background: linear-gradient(90deg, var(--navy), var(--gold));
}
.nav-link-dark:hover {
    color: var(--navy);
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navyDark) 100%);
    color: var(--white);
    border-radius: 0.75rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.5;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(var(--navy-rgb), 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 0.75rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.5;
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--navyDark);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* White-outline variant */
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    border-radius: 0.75rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Small button modifier */
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
}

/* Large button modifier */
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
    border-radius: 1rem;
}

/* ------------------------------------------------------------
   GLASS CARD
   ------------------------------------------------------------ */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

/* ------------------------------------------------------------
   STAT CARD
   ------------------------------------------------------------ */
.stat-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* ------------------------------------------------------------
   HERO BACKGROUNDS
   ------------------------------------------------------------ */
.hero-bg {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(27, 42, 92, 0.92) 0%,
        rgba(17, 29, 66, 0.88) 40%,
        rgba(26, 26, 46, 0.90) 100%
    );
    min-height: 92vh;
    overflow: hidden;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--white));
    pointer-events: none;
    z-index: 2;
}

/* Page hero (sub-pages) */
.page-hero {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(27, 42, 92, 0.92) 0%,
        rgba(17, 29, 66, 0.88) 40%,
        rgba(26, 26, 46, 0.90) 100%
    );
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--white));
    pointer-events: none;
    z-index: 2;
}

/* ------------------------------------------------------------
   GRADIENT TEXT
   ------------------------------------------------------------ */
.gradient-text {
    background: linear-gradient(135deg, var(--gold), var(--goldLight), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ------------------------------------------------------------
   SECTION DIVIDER
   ------------------------------------------------------------ */
.section-divider {
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--navy) 0px,
        var(--navy) 20px,
        var(--gold) 20px,
        var(--gold) 40px,
        var(--navyLight) 40px,
        var(--navyLight) 60px,
        var(--goldDark) 60px,
        var(--goldDark) 80px
    );
}

/* ------------------------------------------------------------
   CTA BANNER
   ------------------------------------------------------------ */
.cta-banner {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navyDark) 60%, #0b1128 100%);
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--gold-rgb), 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ------------------------------------------------------------
   LEGAL PATTERN (SVG background)
   ------------------------------------------------------------ */
.legal-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231B2A5C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------------------------------------
   MOBILE MENU
   ------------------------------------------------------------ */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(180deg, var(--navyDark) 0%, var(--navy) 100%);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
    overflow-y: auto;
    padding: 2rem;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ------------------------------------------------------------
   CHAT FLOAT BUTTON
   ------------------------------------------------------------ */
.chat-float {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navyLight) 100%);
    color: var(--white);
    box-shadow: 0 8px 24px -4px rgba(var(--navy-rgb), 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

.chat-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 32px -4px rgba(var(--navy-rgb), 0.5);
}

/* ------------------------------------------------------------
   PRACTICE CARD
   ------------------------------------------------------------ */
.practice-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.practice-card .card-accent {
    height: 4px;
    transition: height 0.3s ease;
    background: linear-gradient(90deg, var(--navy), var(--gold));
}

.practice-card:hover .card-accent {
    height: 6px;
}

/* ------------------------------------------------------------
   FORM INPUTS
   ------------------------------------------------------------ */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background-color: var(--white);
    font-size: 0.9375rem;
    color: var(--slate);
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(var(--navy-rgb), 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Textarea variant */
textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Select variant */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 0.375rem;
}

/* ------------------------------------------------------------
   STEP PROGRESS (Multi-step form)
   ------------------------------------------------------------ */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    background: var(--white);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, var(--navy), var(--navyDark));
    color: var(--white);
    border-color: var(--navy);
    box-shadow: 0 4px 12px rgba(var(--navy-rgb), 0.3);
}

.step-item.completed .step-circle {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.step-connector {
    position: absolute;
    top: 20px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.step-item.completed .step-connector {
    background: var(--gold);
}

.step-label {
    font-size: 0.6875rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-item.active .step-label {
    color: var(--navy);
    font-weight: 700;
}

.step-item.completed .step-label {
    color: var(--gold);
}

/* Form step visibility */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease-out forwards;
}

/* ------------------------------------------------------------
   TIMELINE
   ------------------------------------------------------------ */
.timeline-line {
    position: relative;
}

.timeline-line::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--navy));
}

/* ------------------------------------------------------------
   PROSE (Rich text / bio content)
   ------------------------------------------------------------ */
.prose {
    max-width: none;
    color: var(--slate);
    line-height: 1.75;
}

.prose p + p {
    margin-top: 1.25rem;
}

.prose h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.prose ul, .prose ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }

.prose li + li {
    margin-top: 0.375rem;
}

.prose a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--gold);
}

.prose blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4b5563;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Float */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Pulse Gold */
@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 169, 81, 0.4); }
    50%      { box-shadow: 0 0 0 15px rgba(200, 169, 81, 0); }
}

.pulse-gold {
    animation: pulseGold 2s infinite;
}

/* Spin (for loading indicators) */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   BLAZOR-SPECIFIC
   ============================================================ */

/* Blazor error UI */
#blazor-error-ui {
    background: #ffffcc;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    text-align: center;
    font-size: 0.875rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E") no-repeat 1rem center / 1.5rem;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #fca5a5;
    border-radius: 0.5rem;
    background-color: #fef2f2;
    color: #991b1b;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Blazor form validation */
.valid.modified input:not([type="checkbox"]),
.valid.modified textarea,
.valid.modified select {
    border-color: #059669;
}

.invalid input:not([type="checkbox"]),
.invalid textarea,
.invalid select {
    border-color: #dc2626;
}

.validation-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Loading indicator for Blazor */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem;
}

.loading-progress circle {
    fill: none;
    stroke: var(--navy);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--gold);
    stroke-dasharray: calc(3.14 * var(--blazor-load-percentage, 0) * 0.8), 500;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   Mobile-first: defaults are mobile, overrides go up
   ============================================================ */

/* --- sm: 640px --- */
@media (min-width: 640px) {
    .sm-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm-text-5xl    { font-size: 3rem; line-height: 1.15; }
    .sm-text-6xl    { font-size: 3.75rem; line-height: 1.1; }
    .sm-px-6        { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm-flex        { display: flex; }
    .sm-hidden      { display: none; }
    .sm-block       { display: block; }
    .sm-col-span-2  { grid-column: span 2 / span 2; }
    .sm-text-lg     { font-size: 1.125rem; line-height: 1.75rem; }
    .sm-text-xl     { font-size: 1.25rem; line-height: 1.75rem; }
}

/* --- md: 768px --- */
@media (min-width: 768px) {
    .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md-flex        { display: flex; }
    .md-hidden      { display: none; }
    .md-block       { display: block; }
    .md-col-span-1  { grid-column: span 1 / span 1; }
    .md-col-span-2  { grid-column: span 2 / span 2; }
    .md-text-lg     { font-size: 1.125rem; line-height: 1.75rem; }
    .md-text-xl     { font-size: 1.25rem; line-height: 1.75rem; }
    .md-text-2xl    { font-size: 1.5rem; line-height: 2rem; }
    .md-text-4xl    { font-size: 2.25rem; line-height: 2.5rem; }
    .md-px-6        { padding-left: 1.5rem; padding-right: 1.5rem; }
    .md-py-8        { padding-top: 2rem; padding-bottom: 2rem; }
    .md-p-8         { padding: 2rem; }
    .md-gap-6       { gap: 1.5rem; }
    .md-gap-8       { gap: 2rem; }
}

/* --- lg: 1024px --- */
@media (min-width: 1024px) {
    .lg-flex        { display: flex; }
    .lg-grid        { display: grid; }
    .lg-hidden      { display: none; }
    .lg-block       { display: block; }
    .lg-inline-flex { display: inline-flex; }
    .lg-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg-col-span-1  { grid-column: span 1 / span 1; }
    .lg-col-span-2  { grid-column: span 2 / span 2; }
    .lg-col-span-3  { grid-column: span 3 / span 3; }
    .lg-text-5xl    { font-size: 3rem; line-height: 1.15; }
    .lg-text-6xl    { font-size: 3.75rem; line-height: 1.1; }
    .lg-text-7xl    { font-size: 4.5rem; line-height: 1.05; }
    .lg-text-lg     { font-size: 1.125rem; line-height: 1.75rem; }
    .lg-text-xl     { font-size: 1.25rem; line-height: 1.75rem; }
    .lg-px-8        { padding-left: 2rem; padding-right: 2rem; }
    .lg-py-12       { padding-top: 3rem; padding-bottom: 3rem; }
    .lg-py-16       { padding-top: 4rem; padding-bottom: 4rem; }
    .lg-p-10        { padding: 2.5rem; }
    .lg-p-12        { padding: 3rem; }
    .lg-gap-8       { gap: 2rem; }
    .lg-gap-12      { gap: 3rem; }
    .lg-gap-16      { gap: 4rem; }
    .lg-w-1\/2      { width: 50%; }
    .lg-w-1\/3      { width: 33.333333%; }
    .lg-w-2\/3      { width: 66.666667%; }
    .lg-max-w-xl    { max-width: 36rem; }
    .lg-max-w-2xl   { max-width: 42rem; }
    .lg-max-w-3xl   { max-width: 48rem; }
    .lg-items-start { align-items: flex-start; }
    .lg-text-left   { text-align: left; }

    /* Show desktop nav, hide mobile nav */
    .hidden-lg-flex {
        display: flex;
    }

    /* Mobile menu should not be visible on desktop */
    .mobile-menu {
        display: none;
    }
    .mobile-menu-overlay {
        display: none;
    }
}

/* --- xl: 1280px --- */
@media (min-width: 1280px) {
    .xl-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xl-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .xl-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .xl-col-span-2  { grid-column: span 2 / span 2; }
    .xl-col-span-3  { grid-column: span 3 / span 3; }
    .xl-text-6xl    { font-size: 3.75rem; line-height: 1.1; }
    .xl-text-7xl    { font-size: 4.5rem; line-height: 1.05; }
    .xl-px-10       { padding-left: 2.5rem; padding-right: 2.5rem; }
    .xl-gap-10      { gap: 2.5rem; }
    .xl-gap-16      { gap: 4rem; }
    .xl-max-w-4xl   { max-width: 56rem; }
}

/* ============================================================
   MISCELLANEOUS / UTILITY EXTRAS
   ============================================================ */

/* Group utility: mark a parent as .group for child hover states */
.group {
    position: relative;
}

/* List style */
.list-none    { list-style: none; }
.list-disc    { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }

/* Aspect ratio */
.aspect-video  { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Divider bar */
.divide-y > * + * {
    border-top: 1px solid #e5e7eb;
}

/* Backdrop */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Scroll margin for anchor links under sticky header */
[id] {
    scroll-margin-top: 5rem;
}

/* Selection colour */
::selection {
    background-color: rgba(var(--gold-rgb), 0.25);
    color: var(--navyDark);
}

/* Scrollbar styling (WebKit) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--warmGray);
}
::-webkit-scrollbar-thumb {
    background: #c1c5cc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a0a4ab;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth image loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* Print styles */
@media print {
    .no-print,
    .chat-float,
    .mobile-menu,
    .mobile-menu-overlay,
    #blazor-error-ui {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .hero-bg,
    .page-hero,
    .cta-banner {
        background: var(--navy) !important;
        min-height: auto !important;
    }

    .shadow-sm, .shadow-md, .shadow-lg, .shadow-2xl {
        box-shadow: none !important;
    }
}

/* ============================================================
   HEADER / NAV MENU
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--navy-rgb),.08);
    transition: box-shadow .3s ease;
}
.header.scrolled {
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-img {
    height: 48px;
    width: auto;
}
.logo-fallback {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--gold);
    border-radius: 8px;
    font-size: 1.25rem;
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.header-cta {
    display: inline-flex;
    text-decoration: none;
    font-size: .875rem;
    gap: .5rem;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
    padding: .5rem;
}
.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid rgba(var(--navy-rgb),.08);
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
}
.mobile-menu.open {
    max-height: 500px;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
}
.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    text-decoration: none;
    color: var(--slate);
    border-radius: 8px;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(var(--navy-rgb),.06);
    color: var(--navy);
}
.mobile-cta {
    margin-top: .5rem;
    text-align: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .desktop-nav, .header-cta {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .mobile-menu {
        display: block;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--slate);
    color: rgba(255,255,255,.8);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-logo {
    display: flex;
    align-items: center;
}
.footer-logo-img {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
}
.logo-fallback-lg {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--gold);
    border-radius: 8px;
    font-size: 1.5rem;
}
.footer-desc {
    font-size: .875rem;
    line-height: 1.6;
    color: rgba(255,255,255,.65);
}
.lsk-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(var(--gold-rgb),.15);
    color: var(--gold);
    padding: .5rem .75rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
}
.lsk-label {
    border-right: 1px solid rgba(var(--gold-rgb),.3);
    padding-right: .5rem;
}
.lsk-since {
    font-weight: 400;
    opacity: .8;
}
.footer-heading {
    font-family: var(--font-heading);
    font-size: .85rem;
    letter-spacing: .08em;
    color: var(--gold);
    margin-bottom: 1rem;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.footer-links a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .875rem;
    transition: color .2s;
}
.footer-links a:hover {
    color: var(--gold);
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.footer-contact a,
.footer-contact span {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .875rem;
    transition: color .2s;
}
.footer-contact a:hover {
    color: var(--gold);
}
.footer-contact i {
    width: 16px;
    text-align: center;
    color: var(--gold);
    font-size: .8rem;
}
.footer-social {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: var(--white);
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.social-btn:hover {
    transform: translateY(-2px);
}
.social-btn.whatsapp:hover {
    background: #25D366;
}
.social-btn.email-btn:hover {
    background: var(--gold);
}
.disclaimer {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0;
    margin-bottom: 0;
}
.disclaimer p {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    line-height: 1.6;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0 1.5rem;
    font-size: .8rem;
    color: rgba(255,255,255,.45);
}
.powered-by {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.powered-brand {
    color: var(--gold);
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: .5rem;
        text-align: center;
    }
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .75rem;
}
.chat-float {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navyDark));
    color: var(--gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: var(--shadow-lg);
    transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.chat-float:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-2xl);
}
.chat-icon-open,
.chat-icon-close {
    transition: transform .3s ease;
}
.chat-icon-close {
    color: var(--white);
}
.chat-panel {
    width: 380px;
    max-height: 520px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp .3s var(--ease-out);
}
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--navy), var(--navyDark));
    color: var(--white);
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.chat-header-icon {
    width: 36px;
    height: 36px;
    background: rgba(var(--gold-rgb),.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: .9rem;
}
.chat-header-title {
    font-family: var(--font-heading);
    font-size: .95rem;
    font-weight: 600;
}
.chat-header-subtitle {
    font-size: .7rem;
    opacity: .7;
}
.chat-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    font-size: 1rem;
    padding: .25rem;
    transition: color .2s;
}
.chat-close-btn:hover {
    color: var(--white);
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    max-height: 320px;
}
.chat-msg {
    display: flex;
    gap: .5rem;
    animation: fadeInUp .25s ease;
}
.chat-msg-user {
    justify-content: flex-end;
}
.chat-msg-bot {
    justify-content: flex-start;
}
.chat-msg-avatar {
    width: 28px;
    height: 28px;
    background: rgba(var(--navy-rgb),.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: .65rem;
    flex-shrink: 0;
}
.chat-msg-bubble {
    max-width: 80%;
    padding: .6rem .9rem;
    border-radius: 12px;
    font-size: .85rem;
    line-height: 1.5;
}
.chat-msg-bubble p {
    margin: 0;
}
.chat-bubble-user {
    background: var(--navy);
    color: var(--white);
    border-bottom-right-radius: 4px;
}
.chat-bubble-bot {
    background: var(--parchment);
    color: var(--slate);
    border-bottom-left-radius: 4px;
}
.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .5rem 0;
}
.chat-quick-btn {
    background: rgba(var(--navy-rgb),.06);
    border: 1px solid rgba(var(--navy-rgb),.12);
    color: var(--navy);
    padding: .35rem .65rem;
    border-radius: 16px;
    font-size: .75rem;
    cursor: pointer;
    font-weight: 500;
    transition: background .2s, border-color .2s;
}
.chat-quick-btn:hover {
    background: rgba(var(--navy-rgb),.12);
    border-color: rgba(var(--navy-rgb),.2);
}
.chat-input-area {
    padding: .75rem 1rem;
    border-top: 1px solid rgba(var(--navy-rgb),.08);
}
.chat-input-row {
    display: flex;
    gap: .5rem;
}
.chat-input {
    flex: 1;
    border: 1px solid rgba(var(--navy-rgb),.15);
    border-radius: 20px;
    padding: .5rem 1rem;
    font-size: .85rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color .2s;
}
.chat-input:focus {
    border-color: var(--navy);
}
.chat-send-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    transition: background .2s, transform .2s;
}
.chat-send-btn:hover {
    background: var(--navyDark);
    transform: scale(1.05);
}
.chat-disclaimer {
    font-size: .65rem;
    color: rgba(var(--slate-rgb),.5);
    text-align: center;
    margin-top: .4rem;
}

@media (max-width: 480px) {
    .chat-panel {
        width: calc(100vw - 2rem);
        max-height: 70vh;
    }
    .chat-widget {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ============================================================
   PAGE HERO (Sub-pages)
   ============================================================ */
.page-hero-content {
    padding: 5rem 0 4rem;
    position: relative;
    z-index: 1;
}
.page-hero-text {
    max-width: 680px;
}
.page-hero-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.page-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    line-height: 1.6;
    max-width: 560px;
}
.page-hero-decoration {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    font-size: 8rem;
    color: rgba(255,255,255,.04);
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   STEP PROGRESS INDICATOR
   ============================================================ */
.step-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 160px;
}
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .9rem;
    border: 2px solid rgba(var(--navy-rgb),.2);
    background: var(--white);
    color: rgba(var(--navy-rgb),.4);
    transition: all .3s ease;
    position: relative;
    z-index: 1;
}
.step-item.active .step-circle {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(var(--navy-rgb),.15);
}
.step-item.completed .step-circle {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--white);
}
.step-label {
    font-size: .75rem;
    color: rgba(var(--slate-rgb),.5);
    margin-top: .5rem;
    text-align: center;
    font-weight: 500;
}
.step-item.active .step-label {
    color: var(--navy);
    font-weight: 600;
}
.step-item.completed .step-label {
    color: var(--goldDark);
}
.step-connector {
    position: absolute;
    top: 20px;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 2px;
    background: rgba(var(--navy-rgb),.15);
}
.step-item.completed .step-connector {
    background: var(--gold);
}

/* ============================================================
   SECTION HEADER (Shared)
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: .75rem;
}
.section-subtitle {
    font-size: 1.05rem;
    color: rgba(var(--slate-rgb),.65);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .9rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: .75rem;
}
.badge-navy {
    background: rgba(var(--navy-rgb),.08);
    color: var(--navy);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(var(--navy-rgb),.08);
    text-decoration: none;
    color: var(--slate);
    transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: .75rem;
}
.icon-navy {
    background: rgba(var(--navy-rgb),.1);
    color: var(--navy);
}
.icon-gold {
    background: rgba(var(--gold-rgb),.15);
    color: var(--goldDark);
}
.icon-emerald {
    background: rgba(16,185,129,.1);
    color: #059669;
}
.icon-green {
    background: rgba(37,211,102,.1);
    color: #25D366;
}
.icon-indigo {
    background: rgba(99,102,241,.1);
    color: #6366F1;
}
.contact-card-title {
    font-family: var(--font-heading);
    font-size: .9rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: .25rem;
}
.contact-card-value {
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: .15rem;
}
.contact-card-sub {
    font-size: .75rem;
    color: rgba(var(--slate-rgb),.5);
}

/* Text color utilities */
.text-navy { color: var(--navy); }
.text-gold { color: var(--goldDark); }
.text-emerald { color: #059669; }
.text-green { color: #25D366; }
.text-muted { color: rgba(var(--slate-rgb),.5); }

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 2rem;
    align-items: start;
}
.contact-form-col,
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================================
   FORM STYLES (Shared by Contact & Affidavit)
   ============================================================ */
.form-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(var(--navy-rgb),.08);
    box-shadow: var(--shadow-sm);
}
.form-header {
    margin-bottom: 1.5rem;
}
.form-title {
    font-size: 1.5rem;
    color: var(--slate);
    margin-bottom: .35rem;
}
.form-subtitle {
    font-size: .9rem;
    color: rgba(var(--slate-rgb),.6);
    line-height: 1.5;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-textarea {
    resize: vertical;
    min-height: 100px;
}
.required {
    color: #EF4444;
}
.consent-box {
    background: var(--parchment);
    border: 1px solid rgba(var(--navy-rgb),.08);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}
.consent-label {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    font-size: .85rem;
    line-height: 1.5;
    color: rgba(var(--slate-rgb),.75);
    cursor: pointer;
}
.consent-checkbox {
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    flex-shrink: 0;
    accent-color: var(--navy);
}
.submit-btn {
    width: 100%;
    font-size: 1rem;
    padding: .85rem 1.5rem;
    gap: .5rem;
}

/* Alert messages */
.alert {
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.25rem;
    text-align: center;
}
.alert-success {
    background: rgba(16,185,129,.08);
    border: 1px solid rgba(16,185,129,.2);
}
.alert-error {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
}
.alert-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto .75rem;
}
.alert-icon.success {
    background: rgba(16,185,129,.15);
    color: #059669;
}
.alert-icon.error {
    background: rgba(239,68,68,.15);
    color: #EF4444;
}
.alert-title {
    font-size: 1.1rem;
    color: var(--slate);
    margin-bottom: .25rem;
}
.alert-text {
    font-size: .9rem;
    color: rgba(var(--slate-rgb),.6);
}

/* ============================================================
   OFFICE INFO CARD + MAP
   ============================================================ */
.info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(var(--navy-rgb),.08);
    box-shadow: var(--shadow-sm);
}
.info-card-title {
    font-size: 1.1rem;
    color: var(--slate);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.info-card-title i {
    color: var(--navy);
}
.info-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.info-item {
    display: flex;
    gap: .75rem;
}
.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}
.icon-navy-light {
    background: rgba(var(--navy-rgb),.08);
    color: var(--navy);
}
.icon-gold-light {
    background: rgba(var(--gold-rgb),.12);
    color: var(--goldDark);
}
.icon-emerald-light {
    background: rgba(16,185,129,.1);
    color: #059669;
}
.icon-indigo-light {
    background: rgba(99,102,241,.1);
    color: #6366F1;
}
.info-item-title {
    font-weight: 600;
    font-size: .85rem;
    color: var(--slate);
    margin-bottom: .15rem;
}
.info-item-text {
    font-size: .85rem;
    color: rgba(var(--slate-rgb),.6);
    line-height: 1.5;
}
.map-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(var(--navy-rgb),.08);
    box-shadow: var(--shadow-sm);
}
.map-header {
    padding: 1rem 1.5rem;
}
.map-title {
    font-size: 1rem;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.map-title i {
    color: var(--navy);
}
.map-embed {
    height: 220px;
}
.map-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
}
.map-footer {
    padding: .75rem 1.5rem;
    border-top: 1px solid rgba(var(--navy-rgb),.06);
}
.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    transition: color .2s;
}
.directions-btn:hover {
    color: var(--goldDark);
}

/* Urgent CTA */
.urgent-cta {
    background: linear-gradient(135deg, var(--navy), var(--navyDark));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: var(--white);
}
.urgent-icon {
    width: 56px;
    height: 56px;
    background: rgba(var(--gold-rgb),.2);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto .75rem;
    animation: pulse-gold 2s infinite;
}
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb),.4); }
    50% { box-shadow: 0 0 0 12px rgba(var(--gold-rgb),0); }
}
.urgent-title {
    font-size: 1.25rem;
    margin-bottom: .25rem;
}
.urgent-subtitle {
    font-size: .9rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 1rem;
}
.urgent-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--gold);
    color: var(--navyDark);
    padding: .6rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.urgent-btn:hover {
    background: var(--goldLight);
    transform: translateY(-2px);
}

/* ============================================================
   COUNTIES SERVED
   ============================================================ */
.counties-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.county-card {
    background: var(--white);
    border: 1px solid rgba(var(--navy-rgb),.08);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.county-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.county-card i {
    color: var(--navy);
    font-size: 1.25rem;
    margin-bottom: .5rem;
}
.county-card.county-primary {
    background: linear-gradient(135deg, var(--navy), var(--navyDark));
    border-color: transparent;
    color: var(--white);
}
.county-primary i {
    color: var(--gold);
}
.county-name {
    font-size: .95rem;
    margin-bottom: .25rem;
}
.county-primary .county-name {
    color: var(--white);
}
.county-label {
    font-size: .75rem;
    color: rgba(var(--slate-rgb),.5);
}
.county-label.primary {
    color: var(--gold);
}

@media (max-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .counties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 480px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
    }
    .counties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   AFFIDAVIT SERVICE PAGE
   ============================================================ */
.container-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1rem;
}
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.how-step-card {
    text-align: center;
    padding: 1.5rem 1rem;
}
.how-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto .75rem;
}
.how-step-title {
    font-size: .95rem;
    color: var(--slate);
    margin-bottom: .25rem;
}
.how-step-desc {
    font-size: .8rem;
    color: rgba(var(--slate-rgb),.6);
    line-height: 1.5;
}
.form-step-content {
    animation: fadeInUp .4s var(--ease-out);
}
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: .5rem;
}
.form-actions-end {
    justify-content: flex-end;
}
.form-actions-between {
    justify-content: space-between;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.25rem;
    border: 2px solid rgba(var(--navy-rgb),.2);
    border-radius: 8px;
    background: transparent;
    color: var(--navy);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    font-family: var(--font-body);
}
.btn-outline:hover {
    border-color: var(--navy);
    background: rgba(var(--navy-rgb),.04);
}
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--goldDark));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    font-family: var(--font-body);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--gold-rgb),.35);
}
.btn-gold:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* Radio card group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.radio-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    border: 2px solid rgba(var(--navy-rgb),.1);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.radio-card:hover {
    border-color: rgba(var(--navy-rgb),.25);
}
.radio-card.selected {
    border-color: var(--navy);
    background: rgba(var(--navy-rgb),.03);
}
.radio-card input[type="radio"] {
    margin-top: .15rem;
    accent-color: var(--navy);
}
.radio-card-title {
    font-weight: 600;
    font-size: .9rem;
    color: var(--slate);
    margin-bottom: .15rem;
}
.radio-card-desc {
    font-size: .8rem;
    color: rgba(var(--slate-rgb),.6);
}

/* File upload */
.file-upload {
    border: 2px dashed rgba(var(--navy-rgb),.15);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    color: rgba(var(--slate-rgb),.5);
}
.file-upload:hover {
    border-color: rgba(var(--navy-rgb),.3);
    background: rgba(var(--navy-rgb),.02);
}
.file-upload i {
    font-size: 1.5rem;
    margin-bottom: .5rem;
    color: var(--navy);
}
.file-upload p {
    font-size: .85rem;
    margin-bottom: .2rem;
}
.file-upload-hint {
    font-size: .75rem;
    color: rgba(var(--slate-rgb),.4);
}

/* Review summary */
.review-summary {
    background: var(--parchment);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--navy-rgb),.06);
}
.review-title {
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(var(--navy-rgb),.08);
}
.review-items {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.review-row {
    display: flex;
    justify-content: space-between;
    font-size: .875rem;
    padding: .35rem 0;
}
.review-row span:first-child {
    color: rgba(var(--slate-rgb),.6);
    font-weight: 500;
}
.review-row span:last-child {
    color: var(--slate);
    font-weight: 600;
    text-align: right;
}
.review-purpose {
    flex-direction: column;
    gap: .25rem;
}
.review-purpose p {
    font-size: .85rem;
    color: var(--slate);
    line-height: 1.5;
}

/* Pricing card */
.pricing-card {
    background: var(--white);
    border: 2px solid rgba(var(--gold-rgb),.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.pricing-header {
    margin-bottom: 1rem;
}
.pricing-title {
    font-size: 1.1rem;
    color: var(--slate);
    margin-bottom: .25rem;
}
.pricing-desc {
    font-size: .85rem;
    color: rgba(var(--slate-rgb),.6);
    line-height: 1.5;
}
.pricing-mpesa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(var(--gold-rgb),.08);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: .75rem;
}
.mpesa-info {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.mpesa-info i {
    font-size: 1.5rem;
    color: var(--goldDark);
}
.mpesa-title {
    font-weight: 600;
    font-size: .9rem;
    color: var(--slate);
}
.mpesa-desc {
    font-size: .75rem;
    color: rgba(var(--slate-rgb),.5);
}
.mpesa-amount {
    text-align: right;
}
.mpesa-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}
.mpesa-from {
    font-size: .7rem;
    color: rgba(var(--slate-rgb),.5);
}
.pricing-note {
    font-size: .8rem;
    color: rgba(var(--slate-rgb),.6);
    display: flex;
    align-items: flex-start;
    gap: .4rem;
}
.pricing-note i {
    color: var(--navy);
    margin-top: .15rem;
}

/* Confirmation step */
.confirmation-step {
    text-align: center;
    padding: 2rem 1rem;
}
.confirmation-icon {
    font-size: 3.5rem;
    color: #059669;
    margin-bottom: 1rem;
}
.confirmation-title {
    font-size: 1.75rem;
    color: var(--slate);
    margin-bottom: .5rem;
}
.confirmation-text {
    font-size: .95rem;
    color: rgba(var(--slate-rgb),.6);
    max-width: 480px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}
.next-steps-card {
    background: var(--parchment);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.next-steps-title {
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: 1rem;
}
.next-steps-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.next-step {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
    color: rgba(var(--slate-rgb),.7);
}
.next-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(var(--navy-rgb),.1);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}
.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Info notes grid */
.info-notes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.info-note-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(var(--navy-rgb),.06);
    transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.info-note-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.info-note-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: .75rem;
}
.info-note-title {
    font-size: .9rem;
    color: var(--slate);
    margin-bottom: .35rem;
}
.info-note-text {
    font-size: .8rem;
    color: rgba(var(--slate-rgb),.6);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .confirmation-actions {
        flex-direction: column;
        align-items: center;
    }
    .page-hero-title {
        font-size: 2rem;
    }
    .page-hero-content {
        padding: 3rem 0 2.5rem;
    }
}
@media (max-width: 480px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
    .info-notes-grid {
        grid-template-columns: 1fr;
    }
    .step-progress {
        overflow-x: auto;
    }
}
