/* ========================================
   Global: CSS Variables & Base Styles
   ======================================== */

:root {
    --primary-color: #3876b7;
    --secondary-color: #4a8bc2;
    --primary-dark: #2d5a8f;
    --primary-light: #5a94d1;
    --dark-bg: #0a0e27;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #3876b7 0%, #4a8bc2 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Standardized Spacing */
    --section-padding: 55px;
    --section-padding-mobile: 30px;
    --section-margin: 32px;
    --element-margin: 20px;
    --small-margin: 12px;
    --large-margin: 48px;
    --card-padding: 24px;
    --grid-gap: 20px;

    /* Professional Font Stack */
    --font-primary: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Poppins', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Global Font Application */
*, *::before, *::after, body, html {
    font-family: var(--font-primary) !important;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .site-title,
.feature-card h3, .service-content h3 {
    font-family: var(--font-heading) !important;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.storefront-primary-navigation,
.main-navigation,
.site-header,
.site-content,
.bioalign-landing,
.bioalign-landing * {
    font-family: var(--font-primary) !important;
}

/* Layout */
.bioalign-landing {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.bioalign-landing .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    padding: 0 !important;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
}

#primary.bioalign-landing {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.content-area.bioalign-landing {
    max-width: none !important;
    width: 100% !important;
    margin-top: 0 !important;
    position: relative;
}

.site-main {
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}

/* Shared Section Header */
.why-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--section-margin) auto;
}

.why-title {
    font-size: 2.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: var(--small-margin);
    letter-spacing: -0.03em;
}

.why-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    font-family: var(--font-primary);
    font-weight: 400;
}

/* Shared CTA */
.cta-center {
    text-align: center;
    margin-top: var(--section-margin);
}

.cta-trust {
    margin-top: var(--small-margin);
    font-size: 0.875rem;
    color: #6b7280;
    font-family: var(--font-primary);
}

.btn-cta {
    background: var(--primary-color);
    color: white;
    padding: 16px 36px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(56, 118, 183, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 118, 183, 0.4);
    background: var(--primary-dark);
    color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: var(--element-margin);
    letter-spacing: -0.03em;
}

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

@keyframes float {
    0%,  100% { transform: translateY(0px)   translateX(0px); }
    25%        { transform: translateY(-8px)  translateX(4px); }
    50%        { transform: translateY(-4px)  translateX(-6px); }
    75%        { transform: translateY(-12px) translateX(2px); }
}

/* ========================================
   Section Spacing — 55px between sections
   Alternating backgrounds + accent border
   ======================================== */

/* Base rule for all sections */
.bioalign-landing > section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.bioalign-landing > section:last-of-type {
    padding-bottom: 30px !important;
}

/* Alternating backgrounds */
.bioalign-landing > section:nth-child(odd) {
    background-color: #ffffff;
}

.bioalign-landing > section:nth-child(even) {
    background-color: #f4f8fd;
}

/* Accent border — sits at the very top edge of each section */
.bioalign-landing > section:not(.hero-section)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(56,118,183,0.2) 20%, rgba(56,118,183,0.5) 50%, rgba(56,118,183,0.2) 80%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Dark sections keep their own bg — override nth-child alternating colors */
.bioalign-landing > section.faq-section,
.bioalign-landing > section.stats-section,
.bioalign-landing > section.cta-section {
    background-color: transparent !important;
}

.bioalign-landing > section.faq-section {
    background: linear-gradient(135deg, #1a2f4a 0%, #2d4f7a 50%, #1e3a5f 100%) !important;
}



.bioalign-landing > section.cta-section {
    background: linear-gradient(135deg, #1a2f4a 0%, #2d4f7a 50%, #1e3a5f 100%) !important;
}

.faq-section::before,
.stats-section::before,
.cta-section::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 20%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 80%, transparent 100%) !important;
}

@media (max-width: 576px) {
    .bioalign-landing > section {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    .bioalign-landing > section:not(.hero-section)::before {
        top: 0;
        left: 5%;
        right: 5%;
    }
}
