/* ==========================================================================
   corporate-trust — Corporate Trust
   Structured, navy blue + gold, professional and trustworthy.
   Design language: institutional authority, structured precision, premium trust.
   DM Sans body + Lora serif headings.
   ========================================================================== */

/* NOTE: --primary/--primary-rgb/--primary-dark/--primary-light come from the
   inline color scheme in base_frontend.html. Do NOT override them here. */
:root {
    --bg: #f0f4f8;
    --text: #1a202c;
    --text-light: #4a5568;
    --text-muted: #718096;
    --border: #d1dce6;
    --card-bg: #fff;
    --accent: #c53030;
    --ink: #1a202c;
    --gold: #d4af37;
    --shadow-sm: 0 1px 3px rgba(30, 58, 138, .06);
    --shadow-md: 0 4px 16px rgba(30, 58, 138, .1);
    --shadow-lg: 0 8px 32px rgba(30, 58, 138, .14);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-sans: 'DM Sans', 'Noto Sans SC', -apple-system, sans-serif;
    --font-heading: 'Lora', Georgia, 'Noto Sans SC', serif;
    --glow-primary: 0 0 16px color-mix(in srgb, var(--primary) 25%, transparent);
    --glow-accent: 0 0 16px color-mix(in srgb, var(--accent) 25%, transparent);
    --hero-bg: linear-gradient(135deg, #172554 0%, #1e3a8a 50%, #2c5282 100%);
    --hero-text: #fff;
    --hero-subtext: rgba(255, 255, 255, .6);
    --footer-bg: #172554;
    --footer-text: rgba(255, 255, 255, .6);
    --footer-link: rgba(255, 255, 255, .55);
    --footer-heading: #fff;
    --footer-border: rgba(255, 255, 255, .1);
    --footer-bottom-text: rgba(255, 255, 255, .35);
    --header-bg: color-mix(in srgb, var(--card-bg) 88%, transparent);
}

/* === Fluid Typography === */
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -.01em;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
}

/* === Corporate: navy header with bottom border === */
.site-header {
    border-bottom: 2px solid var(--primary);
}

/* === Section header: navy rule line with structured look === */
.section-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
    position: relative;
}
.section-header h2 {
    color: var(--primary);
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

/* === Hero: gold stat numbers === */
.hero-stat .num {
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
}

/* === Deal cards: structured, professional hover === */
.deal-card {
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.deal-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* === Deal CTA: navy with hover === */
.deal-cta-card {
    background: var(--primary);
    font-weight: 700;
    transition: background-color .2s var(--ease-out);
}
.deal-cta-card:hover {
    background: var(--primary-dark);
}

/* === Brand showcase: navy + gold bar === */
.brand-showcase::before {
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
    height: 3px;
}

/* === Cookie consent: gold top line === */
.cookie-consent {
    border-top: 3px solid var(--gold);
}

/* === Footer: gold hover on links === */
.footer-col h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: .5px;
}
.footer-col a:hover {
    color: var(--gold);
    transition: color .2s var(--ease-out);
}

/* === Pagination: navy active === */
.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(30, 58, 138, .25);
}
.pagination a {
    transition: all .2s var(--ease-out);
}
.pagination a:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* === Trust bar: navy icons === */
.trust-bar i {
    color: var(--primary);
}

/* === Hero CTA: gold gradient button === */
.hero-cta-btn {
    background: linear-gradient(135deg, var(--gold), #b8941e);
    color: #172554;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(212, 175, 55, .3);
    transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.hero-cta-btn:hover {
    box-shadow: 0 8px 28px rgba(212, 175, 55, .4);
    transform: translateY(-1px);
}

/* === Category pills: navy active === */
.cat-pill:hover,
.cat-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* === Article headings: serif === */
.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: var(--font-heading);
    color: var(--primary);
}

/* === Article links: navy with underline === */
.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color .2s var(--ease-out);
}
.article-content a:hover {
    color: var(--primary-dark);
}

/* === Deal badge: navy with gold accent === */
.deal-badge {
    background: var(--primary);
    color: #fff;
    border-left: 3px solid var(--gold);
    font-weight: 600;
    font-size: .72rem;
}

/* === Breadcrumb: structured === */
.breadcrumb {
    font-size: .82rem;
}
.breadcrumb a:hover {
    color: var(--primary);
}

/* === Selection: navy === */
::selection {
    background: var(--primary);
    color: #fff;
}

/* === Focus ring: navy === */
:focus-visible {
    outline-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

/* === Scrollbar: navy tinted === */
::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--primary) 25%, var(--border));
}
::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--primary) 40%, var(--border));
}

/* === Mobile bottom nav: navy active === */
.mobile-bottom-nav .active {
    color: var(--primary);
}

/* === Article blockquote: corporate style === */
.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 12px 20px;
    margin: 20px 0;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-light);
    background: color-mix(in srgb, var(--primary-light) 40%, transparent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
