/* ==========================================================================
   LEGAL COLLECTIONS PORTAL - EXECUTIVE DESIGN SYSTEM & STYLESHEET
   Managed by Deon Smit & Associates • Council for Debt Collectors Reg: 0110965/18
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

/* --- 1. DESIGN TOKENS & SYSTEM VARIABLES --- */
:root {
    /* Obsidian & Navy Palette */
    --color-navy-deep: #071421;
    --color-navy-surface: #0B1F33;
    --color-navy-elevated: #112942;
    --color-navy-border: rgba(201, 162, 39, 0.25);

    /* Regal Gold Palette */
    --color-gold-primary: #C9A227;
    --color-gold-hover: #dfb52b;
    --color-gold-light: #F4E8C1;
    --color-gold-muted: rgba(201, 162, 39, 0.12);
    --color-gold-border: rgba(201, 162, 39, 0.35);

    /* Surface & Background Canvas */
    --color-canvas: #F8FAFC;
    --color-card-bg: #FFFFFF;
    --color-card-border: #E2E8F0;
    --color-card-hover-border: #CBD5E1;

    /* Text & Content */
    --color-text-heading: #0F172A;
    --color-text-body: #334155;
    --color-text-muted: #64748B;
    --color-text-gold: #926F11;

    /* Status Accents */
    --color-emerald-accent: #059669;
    --color-emerald-bg: #ECFDF5;
    --color-red-accent: #DC2626;
    --color-red-bg: #FEF2F2;

    /* Typography */
    --font-cinzel: 'Cinzel', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Elevation & Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    --shadow-elevated: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --shadow-gold: 0 4px 20px -2px rgba(201, 162, 39, 0.35);
}

/* --- 2. BASE STYLING & ACCESSIBILITY --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--color-canvas);
    color: var(--color-text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: var(--color-canvas);
}

/* Typography Helpers */
.font-cinzel {
    font-family: var(--font-cinzel);
    letter-spacing: 0.03em;
}

.open-text {
    line-height: 1.75;
    color: var(--color-text-body);
}

/* Container */
.page-container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

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

/* Subtle Architectural Grid Pattern (Deactivated for clean, watermark-free presentation) */
.bg-debt-overlay {
    display: none !important;
}

/* --- 3. NAVIGATION & HEADER --- */
.legal-nav-bar {
    position: relative !important; /* Static in document flow, does not float or stick on scroll */
    top: auto !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #071421 !important; /* Rich Dark Blue like Front Page */
    border-bottom: 2px solid rgba(201, 162, 39, 0.4);
    z-index: 40;
}

.legal-nav-link {
    position: relative;
    color: #C9A227 !important; /* Regal Gold */
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.35rem;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
}

.legal-nav-link:hover {
    color: #FFF0B3 !important; /* Luminous Light Gold on Hover */
    text-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.legal-nav-link.active {
    color: #FBBF24 !important; /* Prominent Active Gold */
    font-weight: 800;
}

.legal-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-gold-primary);
    transition: width 0.2s ease-in-out;
}

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

/* Top Nav Primary CTA Button */
.legal-instruction-btn {
    background: linear-gradient(135deg, #dfb52b, #C9A227);
    color: #071421;
    font-weight: 800;
    font-size: 0.8125rem;
    padding: 0.55rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.legal-instruction-btn:hover {
    background: linear-gradient(135deg, #f0c946, #dfb52b);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.45);
}

/* Regional Dropdown Menu (Dark Blue Background + Gold Text) */
.legal-dropdown-menu {
    background-color: #071421 !important;
    border: 1px solid rgba(201, 162, 39, 0.35) !important;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.7) !important;
}

.legal-dropdown-item {
    color: #C9A227 !important;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.legal-dropdown-item:hover {
    color: #FFF0B3 !important;
    background-color: #0B1F33 !important;
    padding-left: 1.25rem !important;
}

/* Mobile Menu Drawer (Dark Blue Background + Gold Text) */
.legal-mobile-drawer {
    background-color: #071421 !important;
    border-top: 1px solid rgba(201, 162, 39, 0.35) !important;
}

.legal-drawer-heading {
    color: #C9A227 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    font-size: 0.65rem;
}

.legal-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #C9A227 !important;
    background-color: #0B1F33;
    border: 1px solid rgba(201, 162, 39, 0.15);
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px; /* Cell phone friendly touch target */
}

.legal-drawer-link:hover,
.legal-drawer-link:active {
    color: #FFF0B3 !important;
    background-color: #122840;
    border-color: rgba(201, 162, 39, 0.5);
    transform: translateX(2px);
}

.legal-drawer-link.active {
    color: #FBBF24 !important;
    background-color: #122840;
    border-color: #C9A227;
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.2);
}

/* Permanent Mobile Quick Navigation Pills */
.legal-mobile-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #C9A227 !important;
    background-color: #0B1F33;
    border: 1px solid rgba(201, 162, 39, 0.35);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.legal-mobile-pill:hover,
.legal-mobile-pill:active {
    color: #FFF0B3 !important;
    background-color: #122840;
    border-color: #C9A227;
}

.legal-mobile-pill.active {
    color: #071421 !important;
    background: linear-gradient(135deg, #dfb52b, #C9A227) !important;
    border-color: #dfb52b;
    font-weight: 800;
}

/* Hide scrollbar utility for mobile strip */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- 4. CARDS & SECTIONS --- */
.compact-section {
    width: 100%;
    margin-bottom: 0;
}

/* Sophisticated Elevation Micro-Interactions */
.interactive-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 1rem;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease;
    box-shadow: var(--shadow-card);
}

.interactive-card:hover {
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: var(--shadow-elevated);
}

/* Badges & Pills */
.gold-pill {
    background-color: var(--color-gold-muted);
    border: 1px solid var(--color-gold-border);
    color: var(--color-text-gold);
    font-weight: 700;
}

.stamp-badge-light {
    background-color: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* --- 5. HERO SECTION & ENHANCED DISPLAY --- */
.hero-gradient-overlay {
    background: linear-gradient(180deg, rgba(7, 20, 33, 0.98) 0%, rgba(11, 31, 51, 0.95) 100%);
}

.hero-stat-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    backdrop-filter: blur(8px);
}

/* --- 6. CALCULATOR STYLES --- */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: #E2E8F0;
    outline: none;
    transition: background 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-gold-primary);
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--color-gold-hover);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-gold-primary);
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

/* --- 7. DROPZONE & INTAKE FORM --- */
.form-step-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    background-color: var(--color-gold-primary);
    color: #071421;
}

.dropzone-container {
    position: relative;
    border: 2px dashed #CBD5E1;
    border-radius: 1rem;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropzone-container:hover,
.dropzone-active {
    border-color: var(--color-gold-primary) !important;
    background-color: #FFFDF5 !important;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
}

/* Focus States for WCAG AA Compliance */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-gold-primary);
    outline-offset: 2px;
}

/* --- 8. FAQ ACCORDION --- */
details.faq-item summary {
    list-style: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item[open] summary svg {
    transform: rotate(180deg);
}

details.faq-item p {
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 9. CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #071421;
}

::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 4px;
    border: 2px solid #071421;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-primary);
}

/* --- 10. FAST FADING BANNER CAROUSEL --- */
.banner-carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1981 / 794;
    max-height: 500px;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #0B1F33;
}

@media (max-width: 640px) {
    .banner-carousel-container {
        aspect-ratio: 1981 / 794;
        border-radius: 0.5rem;
    }
}

.banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}
