/* ==========================================================================
   APEX SHIELD / ARCHITECTURAL MODERN REDESIGN SYSTEM
   Bespoke Design System for A&P INS Services LLC
   Colors: Obsidian (#0B0F17), Deep Navy (#0F172A), Cobalt (#1D4ED8), 
           Electric Teal (#0D9488), Light Canvas (#F8FAFC), Ice Tint (#EEF2F6)
   ========================================================================== */

:root {
    --bg-canvas: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-subtle: #F1F5F9;
    --bg-dark: #0B0F17;
    --bg-dark-card: #131B2A;
    --bg-dark-elevated: #1B2538;
    
    --brand-primary: #1D4ED8;
    --brand-primary-hover: #1E40AF;
    --brand-primary-glow: rgba(29, 78, 216, 0.22);
    
    --brand-teal: #0D9488;
    --brand-teal-light: #CCFBF1;
    --brand-teal-glow: rgba(13, 148, 136, 0.2);

    --brand-amber: #D97706;
    --brand-amber-light: #FEF3C7;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-inverted: #F8FAFC;
    --text-inverted-muted: #94A3B8;

    --border-light: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.16);
    --border-dark: rgba(255, 255, 255, 0.1);
    --border-dark-hover: rgba(255, 255, 255, 0.2);

    --shadow-subtle: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 12px 36px -8px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-float: 0 24px 64px -16px rgba(15, 23, 42, 0.16);
    --shadow-dark-card: 0 20px 50px -10px rgba(0, 0, 0, 0.5);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;
}

/* Typography Base */
body {
    background-color: var(--bg-canvas) !important;
    color: var(--text-secondary) !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    letter-spacing: -0.03em;
    font-weight: 700;
}

/* Ensure any element explicitly given text-white or inside dark containers always has pure readable white text */
.text-white,
[class*="text-white"],
.bg-slate-900 h1, .bg-slate-900 h2, .bg-slate-900 h3, .bg-slate-900 h4, .bg-slate-900 h5, .bg-slate-900 h6,
.bg-slate-950 h1, .bg-slate-950 h2, .bg-slate-950 h3, .bg-slate-950 h4, .bg-slate-950 h5, .bg-slate-950 h6,
[class*="bg-slate-900"] h1, [class*="bg-slate-900"] h2, [class*="bg-slate-900"] h3, [class*="bg-slate-900"] h4, [class*="bg-slate-900"] h5, [class*="bg-slate-900"] h6,
[class*="bg-slate-950"] h1, [class*="bg-slate-950"] h2, [class*="bg-slate-950"] h3, [class*="bg-slate-950"] h4, [class*="bg-slate-950"] h5, [class*="bg-slate-950"] h6,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: #FFFFFF !important;
}

/* Ensure high contrast for secondary text inside dark sections */
.bg-slate-900 p.text-slate-400,
.bg-slate-950 p.text-slate-400,
[class*="bg-slate-900"] p.text-slate-400,
[class*="bg-slate-950"] p.text-slate-400,
.bg-slate-900 span.text-slate-400,
.bg-slate-950 span.text-slate-400,
[class*="bg-slate-900"] span.text-slate-400,
[class*="bg-slate-950"] span.text-slate-400 {
    color: #CBD5E1 !important; /* High contrast light slate 300 */
}

footer p.text-slate-400,
footer span.text-slate-400,
footer a.text-slate-400 {
    color: #94A3B8;
}
footer a.text-slate-400:hover {
    color: #FFFFFF !important;
}

/* Redesigned Brand Header Pill */
.nav-pill-blur {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-dark-blur {
    background: rgba(11, 15, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Apex Buttons */
.btn-apex-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 24px -4px rgba(29, 78, 216, 0.38);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    text-decoration: none;
}
.btn-apex-primary:hover {
    background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -4px rgba(29, 78, 216, 0.48);
}

.btn-apex-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: #FFFFFF;
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
}
.btn-apex-secondary:hover {
    background: #F1F5F9;
    border-color: rgba(15, 23, 42, 0.22);
    transform: translateY(-2px);
}

.btn-apex-teal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 24px -4px rgba(13, 148, 136, 0.38);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
}
.btn-apex-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -4px rgba(13, 148, 136, 0.48);
}

.btn-apex-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: #0B0F17;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
}
.btn-apex-dark:hover {
    background: #1B2538;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Badges & Chips */
.apex-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.875rem;
    border-radius: var(--radius-pill);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.apex-badge-blue {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}
.apex-badge-teal {
    background: #F0FDFA;
    color: #0D9488;
    border: 1px solid #99F6E4;
}
.apex-badge-dark {
    background: rgba(255, 255, 255, 0.08);
    color: #93C5FD;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Card Skins */
.apex-card {
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.apex-card:hover {
    border-color: rgba(29, 78, 216, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
}

.apex-card-dark {
    background: linear-gradient(145deg, #131B2A 0%, #0B0F17 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dark-card);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.apex-card-dark:hover {
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-4px);
}

/* Geometric Blueprint Grid Accent */
.bg-blueprint-grid {
    background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}
.bg-blueprint-grid-dark {
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Input Fields Redesign */
.apex-input {
    width: 100%;
    background: #FFFFFF;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.125rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}
.apex-input:focus {
    border-color: #1D4ED8;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}
.apex-input::placeholder {
    color: #94A3B8;
}

/* Interactive Tabs / Accordion */
.apex-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    text-align: left;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}
.apex-accordion-item {
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}
.apex-accordion-item:hover {
    border-color: rgba(29, 78, 216, 0.25);
}

/* Fluid Responsive Typography Tweaks */
@media (min-width: 1024px) {
    .hero-title-clamp {
        font-size: clamp(3rem, 5vw, 4.75rem);
        line-height: 1.05;
    }
}

/* ==========================================================================
   Executive Brand Identity Typography & Crest System
   ========================================================================== */
.brand-logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.brand-logo-mark.is-light {
    background: linear-gradient(135deg, #0f172a 0%, #0b132b 50%, #172554 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.25);
}
.brand-logo-mark.is-dark {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #0f172a 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 24px -4px rgba(29, 78, 216, 0.45);
}
.brand-logo-name {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}
.brand-logo-sub {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.6875rem;
    line-height: 1;
}

