/* ============================================================
   Coroner Files — Home Page Styles
   Redesign 2026 | Bootstrap 5 + Custom
   ============================================================ */

/* --- CSS Variables ----------------------------------------- */
:root {
    --cf-navy:       #02015a;
    --cf-blue:       #1a56db;
    --cf-blue-mid:   #0d1f7a;
    --cf-accent:     #6389ff;
    --cf-gold:       #f59e0b;
    --cf-gray-bg:    #f4f6fb;
    --cf-border:     #e2e8f0;
    --cf-text:       #1e293b;
    --cf-muted:      #64748b;
    --cf-white:      #ffffff;
    --cf-shadow:     0 4px 24px rgba(2,1,90,0.10);
    --cf-shadow-lg:  0 8px 40px rgba(2,1,90,0.16);
    --cf-radius:     14px;
    --cf-radius-sm:  8px;
}

/* --- Global tweaks ----------------------------------------- */
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--cf-text);
    -webkit-font-smoothing: antialiased;
}

/* Section utility */
.cf-section {
    padding: 80px 0;
}
.cf-section-sm {
    padding: 48px 0;
}
.cf-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    background: linear-gradient(279deg, #a15ee8 0%, #8879f4 52%, #6d8dff 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero-section {
    background: linear-gradient(150deg, #02015a 0%, #0a1870 45%, #1a3aad 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

#hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 40%, rgba(99,137,255,0.18) 0%, transparent 60%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #c7d8ff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #a8c0ff;
    font-weight: 500;
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 32px;
}

/* Hero badges row */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
}
.hero-badge {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 50px;
    backdrop-filter: blur(6px);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.hero-badge i {
    color: var(--cf-gold);
    font-size: 11px;
}

/* Hero CTA buttons */
.btn-hero-primary {
    background: var(--cf-blue);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(26,86,219,0.45);
}
.btn-hero-primary:hover {
    background: #1647c5;
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 8px 28px rgba(26,86,219,0.55);
}
.btn-hero-secondary {
    background: transparent;
    color: #c7d8ff;
    border: 1px solid rgba(255,255,255,0.30);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.10);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

/* ============================================================
   US SVG MAP
   ============================================================ */
.map-container {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}
.map-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
}
.map-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.legend-dot.active  { background: var(--cf-gold); }
.legend-dot.inactive { background: rgba(255,255,255,0.2); }

/* SVG map styles */
#us-map {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.3));
}
#us-map .state {
    fill: rgba(255,255,255,0.12);
    stroke: rgba(255,255,255,0.25);
    stroke-width: 1;
    transition: fill 0.2s;
    cursor: default;
}
#us-map .state.cf-active {
    fill: var(--cf-gold);
    stroke: rgba(255,255,255,0.5);
    filter: drop-shadow(0 0 6px rgba(245,158,11,0.6));
}
#us-map .state:hover {
    fill: rgba(255,255,255,0.25);
}
#us-map .state.cf-active:hover {
    fill: #fbbf24;
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
#social-proof {
    background: var(--cf-white);
    border-bottom: 1px solid var(--cf-border);
    padding: 20px 0;
}
.social-proof-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
.proof-stat {
    text-align: center;
    padding: 12px 32px;
    border-right: 1px solid var(--cf-border);
}
.proof-stat:last-child {
    border-right: none;
}
.proof-stat .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--cf-navy);
    line-height: 1;
    display: block;
}
.proof-stat .stat-label {
    font-size: 12px;
    color: var(--cf-muted);
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

@media (max-width: 576px) {
    .proof-stat {
        padding: 10px 16px;
        border-right: none;
        border-bottom: 1px solid var(--cf-border);
        width: 50%;
    }
    .proof-stat:nth-child(odd) {
        border-right: 1px solid var(--cf-border);
    }
    .proof-stat:last-child {
        border-bottom: none;
    }
}

/* ============================================================
   DIFFERENTIATORS SECTION
   ============================================================ */
#differentiators {
    background: var(--cf-gray-bg);
}

.diff-card {
    background: var(--cf-white);
    border: 1px solid var(--cf-border);
    border-radius: var(--cf-radius);
    padding: 28px 24px;
    height: 100%;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.diff-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cf-blue) 0%, var(--cf-accent) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}
.diff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cf-shadow-lg);
    border-color: transparent;
}
.diff-card:hover::before {
    transform: scaleX(1);
}
.diff-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff3ff 0%, #dbe4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
    color: var(--cf-blue);
}
.diff-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cf-navy);
    margin-bottom: 8px;
}
.diff-card p {
    font-size: 0.9rem;
    color: var(--cf-muted);
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   OVERVIEW SECTION (modernized)
   ============================================================ */

/* Text columns: padding lateral para separar del carrusel */
#overview .col-lg-4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

@media (max-width: 991px) {
    #overview .col-lg-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

#overview .section-feature-img {
    border-radius: var(--cf-radius);
    box-shadow: var(--cf-shadow-lg);
    max-width: 100%;
}
#carouselConfig,
#carouselReporting,
#carouselQuickEntry {
    border-radius: var(--cf-radius);
    box-shadow: var(--cf-shadow-lg);
}
#carouselConfig .carousel-item,
#carouselReporting .carousel-item,
#carouselQuickEntry .carousel-item {
    height: 460px;
}
#carouselConfig .carousel-item img,
#carouselReporting .carousel-item img,
#carouselQuickEntry .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: var(--cf-radius);
}
#overview h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--cf-navy);
    margin-bottom: 16px;
}
#overview p.lead {
    color: var(--cf-muted);
    font-size: 1rem;
}
.btn-cf-outline {
    border: 2px solid var(--cf-blue);
    color: var(--cf-blue);
    background: transparent;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-cf-outline:hover {
    background: var(--cf-blue);
    color: #fff;
}

/* ============================================================
   INTEGRATIONS SECTION
   ============================================================ */
#integrations {
    background: var(--cf-white);
}
.integration-card {
    background: var(--cf-white);
    border: 1.5px solid var(--cf-border);
    border-radius: var(--cf-radius);
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    transition: all 0.25s ease;
}
.integration-card:hover {
    border-color: var(--cf-blue);
    box-shadow: var(--cf-shadow);
    transform: translateY(-3px);
}
.integration-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff3ff, #c7d8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: var(--cf-blue);
}
.integration-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cf-navy);
    margin-bottom: 8px;
}
.integration-card p {
    font-size: 0.82rem;
    color: var(--cf-muted);
    margin: 0;
    line-height: 1.55;
}

/* ============================================================
   FLAGSHIP PARTNER SECTION
   ============================================================ */
#flagship {
    background: linear-gradient(135deg, var(--cf-navy) 0%, #0d1f7a 100%);
    color: #fff;
}
.flagship-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.flagship-benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--cf-gold);
}
.flagship-benefit-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.flagship-benefit-text p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
}
.btn-flagship {
    background: var(--cf-gold);
    color: var(--cf-navy);
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}
.btn-flagship:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,158,11,0.45);
    color: var(--cf-navy);
}

/* ============================================================
   FEATURES GRID (existing, modernized)
   ============================================================ */
#features {
    background: var(--cf-gray-bg);
}
.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--cf-white);
    border-radius: var(--cf-radius);
    border: 1px solid var(--cf-border);
    padding: 22px 20px;
    height: 100%;
    transition: all 0.22s ease;
}
.feature-card:hover {
    box-shadow: var(--cf-shadow);
    border-color: transparent;
    transform: translateY(-3px);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff3ff, #dbe4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--cf-blue);
}
.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cf-navy);
    margin-bottom: 6px;
}
.feature-card p {
    font-size: 0.85rem;
    color: var(--cf-muted);
    margin: 0;
    line-height: 1.55;
}

/* ============================================================
   METRICS SECTION
   ============================================================ */
#metrics {
    background: var(--cf-white);
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
#reviews {
    background: var(--cf-gray-bg);
}
.testimonial-wrap {
    position: relative;
    padding: 0 40px;
}
/* Override carousel SVG arrows to use themed colors */
#carouselReviews .carousel-control-prev-icon,
#carouselReviews .carousel-control-next-icon {
    background-color: var(--cf-navy);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background-size: 50%;
}
#carouselReviews .carousel-item {
    padding: 10px 20px 40px;
}
.review-card {
    background: var(--cf-white);
    border-radius: var(--cf-radius);
    border: 1px solid var(--cf-border);
    padding: 32px;
    box-shadow: var(--cf-shadow);
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}
.review-card::before {
    content: "\201C";
    position: absolute;
    top: 16px;
    left: 28px;
    font-size: 5rem;
    line-height: 1;
    color: var(--cf-blue);
    opacity: 0.12;
    font-family: Georgia, serif;
}
.review-card .review-text {
    font-size: 1rem;
    color: var(--cf-text);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}
.review-card .review-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cf-border);
}
.review-author-info .author-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--cf-navy);
}
.review-author-info .author-position {
    font-size: 0.8rem;
    color: var(--cf-muted);
}
.review-stars {
    margin-bottom: 16px;
    color: var(--cf-gold);
    font-size: 1rem;
}

/* ============================================================
   FINAL CTA BANNER
   ============================================================ */
#cta-banner {
    background: linear-gradient(135deg, var(--cf-navy) 0%, #0d1f7a 100%);
    color: #fff;
    text-align: center;
    padding: 72px 0;
}
#cta-banner h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}
#cta-banner p {
    color: rgba(255,255,255,0.70);
    font-size: 1.1rem;
    margin-bottom: 32px;
}
.btn-cta-white {
    background: #fff;
    color: var(--cf-navy);
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(255,255,255,0.25);
}
.btn-cta-white:hover {
    background: #e8eeff;
    transform: translateY(-2px);
    color: var(--cf-navy);
    box-shadow: 0 8px 28px rgba(255,255,255,0.35);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate].cf-visible {
    opacity: 1;
    transform: translateY(0);
}
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
    .cf-section { padding: 56px 0; }
    .hero-badges { gap: 8px; }
    .hero-badge { font-size: 12px; padding: 6px 14px; }
    .proof-stat { padding: 12px 16px; }
    .proof-stat .stat-number { font-size: 1.4rem; }
    #us-map { margin-top: 32px; }
    .testimonial-wrap { padding: 0 10px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; }
}

/* ============================================================
   COMING SOON RIBBON (future modules)
   ============================================================ */
.coming-soon-badge {
    background: var(--cf-gold);
    color: var(--cf-navy);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    vertical-align: middle;
    margin-left: 8px;
}
