/* ============================================
   SECTION 2: STRATEGIC INSIGHTS
   Transparent bg so grid shows through
   ============================================ */

.strategic-insights-section {
    background: transparent;
    padding: 0.5rem 2rem 3rem; /* Reduced top padding from 4rem to 0.5rem */
    position: relative;
    z-index: 1;
}

.strategic-insights-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* ============================================
   STRATEGIC BENTO GRID — 4-col layout
   ============================================ */

.strategic-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    user-select: none;
}


/* ============================================
   STAT CARDS — +13% height, perfectly centered
   Cormorant Garamond numbers, Telegraf labels
   ============================================ */

.bento-stat-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.75rem 1.5rem; /* +13% from 2.25rem ≈ 2.54, rounded up for balance */
    min-height: 180px;
    background: #0a2f52;
    border-radius: 12px;
    border: 1px solid rgba(244, 235, 208, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    /* Premium floating shadow - multi-layered for depth */
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(244, 235, 208, 0.03) inset;
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-intensity: 0;
    --glow-radius: 200px;
}

.bento-stat-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(244, 235, 208, 0.08) inset;
    border-color: rgba(219, 74, 43, 0.2);
}

.bento-stat-card .stat-value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.75rem, 5vw, 3.75rem);
    color: #db4a2b;
    line-height: 1;
    margin-bottom: 0.875rem;
}

.bento-stat-card .stat-suffix {
    font-size: 0.45em;
    color: rgba(244, 235, 208, 0.3);
    font-weight: 400;
}

.bento-stat-card .stat-title {
    font-family: 'Telegraf', 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #f4ebd0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.bento-stat-card .stat-description {
    font-family: 'Telegraf', 'Inter', sans-serif;
    font-size: 0.6875rem;
    color: rgba(244, 235, 208, 0.3);
    line-height: 1.5;
    max-width: 200px;
}


/* ============================================
   INSIGHT CARDS (2x2 grid) — 25% shorter, sleek
   Left-border only (Data Gold), Cormorant headlines
   ============================================ */

.bento-insight-card {
    grid-column: span 2;
    padding: 1.2rem 2rem; /* Reduced vertical height by 20%: 1.5rem * 0.8 = 1.2rem */
    background: #0a2f52;
    border-radius: 12px;
    border: none;
    border-left: 2px solid #c9a66b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    /* Premium floating shadow - multi-layered for depth */
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(244, 235, 208, 0.03) inset;
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-intensity: 0;
    --glow-radius: 200px;
}

.bento-insight-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(244, 235, 208, 0.08) inset;
    background: #0d3a63;
    border-left-color: #d4b47a;
}

.bento-insight-card .insight-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: #f4ebd0;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    text-align: left;
}

.bento-insight-card .insight-body {
    font-family: 'Telegraf', 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: rgba(244, 235, 208, 0.5);
    line-height: 1.65;
    text-align: left;
}

.bento-insight-card .insight-meta {
    font-family: 'Telegraf', 'Inter', sans-serif;
    font-size: 0.6875rem;
    color: rgba(201, 166, 107, 0.45);
    margin-top: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
}


/* ============================================
   NEWSLETTER ORANGE STRIP — Full-width floating CTA
   Grid animation passes behind, then disappears
   ============================================ */

.newsletter-hero-section {
    background: #db4a2b;
    padding: 2rem 2rem;
    position: relative;
    z-index: 2; /* Above the fixed canvas grid */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.newsletter-hero-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 100px;
}

.newsletter-hero-text {
    flex: 1;
    min-width: 0;
}

.newsletter-hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    color: #f4ebd0;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.newsletter-hero-subtitle {
    font-family: 'Telegraf', 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: rgba(244, 235, 208, 0.7);
    line-height: 1.4;
    margin: 0;
}

.newsletter-hero-form {
    display: flex;
    gap: 0.625rem;
    align-items: center;
    flex-shrink: 0;
}

.newsletter-hero-form input[type="email"] {
    width: 240px;
    padding: 0.5625rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(244, 235, 208, 0.25);
    border-radius: 6px;
    color: #f4ebd0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.875rem;
    font-style: italic;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.newsletter-hero-form input[type="email"]::placeholder {
    color: rgba(244, 235, 208, 0.45);
    font-style: italic;
}

.newsletter-hero-form input[type="email"]:focus {
    border-color: rgba(244, 235, 208, 0.6);
    background: rgba(255, 255, 255, 0.18);
}

.newsletter-hero-form button {
    padding: 0.5625rem 1.5rem; /* 35% shorter than 0.875rem ≈ 0.57rem */
    background: #f4ebd0;
    color: #db4a2b;
    border: none;
    border-radius: 6px;
    font-family: 'Telegraf', 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
    white-space: nowrap;
}

.newsletter-hero-form button:hover {
    background: #fff9e8;
    transform: translateY(-1px);
}

.newsletter-hero-form button:active {
    transform: translateY(0);
}

/* Success state */
.newsletter-hero-form.success input[type="email"] {
    border-color: rgba(244, 235, 208, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-hero-form.success button {
    background: #0a2f52;
    color: #f4ebd0;
}

/* Success message fade-in */
.newsletter-success-message {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.9375rem;
    color: rgba(244, 235, 208, 0.9);
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.6s ease, margin-top 0.6s ease;
}

.newsletter-success-message.visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 4rem;
    margin-top: 0.75rem;
}


/* ============================================
   BORDER GLOW — Softened for institutional feel
   ============================================ */

.bento-stat-card.magic-bento-card--border-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 4px;
    background: radial-gradient(
        var(--glow-radius) circle at var(--glow-x) var(--glow-y),
        rgba(201, 166, 107, calc(var(--glow-intensity) * 0.3)) 0%,
        rgba(201, 166, 107, calc(var(--glow-intensity) * 0.15)) 30%,
        transparent 60%
    );
    border-radius: inherit;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.bento-insight-card.magic-bento-card--border-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 4px;
    background: radial-gradient(
        var(--glow-radius) circle at var(--glow-x) var(--glow-y),
        rgba(201, 166, 107, calc(var(--glow-intensity) * 0.12)) 0%,
        rgba(201, 166, 107, calc(var(--glow-intensity) * 0.06)) 30%,
        transparent 55%
    );
    border-radius: inherit;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}


/* ============================================
   ENTRANCE ANIMATIONS (ScrollTrigger targets)
   ============================================ */

.bento-card-animate {
    opacity: 0;
    transform: translateY(30px);
}


/* ============================================
   SCROLL SNAP — Locks to Section 2 start
   ============================================ */

html {
    scroll-snap-type: y proximity;
}

.strategic-insights-section {
    scroll-snap-align: start;
}


/* ============================================
   RESPONSIVE — Tablet (≤1200px)
   ============================================ */

@media (max-width: 1200px) {
    .bento-stat-card {
        padding: 2rem 1.25rem;
        min-height: 150px;
    }

    .newsletter-hero-container {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-hero-form {
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE — Tablet portrait / small tablet (≤900px)
   ============================================ */

@media (max-width: 900px) {
    .strategic-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-insight-card {
        grid-column: span 1;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .bento-insight-card {
        justify-content: flex-start;
        overflow: hidden;
        padding: 1.5rem 1.25rem;
    }
}


/* ============================================
   RESPONSIVE — Mobile (≤768px)
   ============================================ */

@media (max-width: 768px) {
    .strategic-insights-section {
        padding: 0.5rem 1rem 2rem; /* Reduced top padding */
    }

    .strategic-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bento-stat-card {
        grid-column: span 1;
        padding: 1.1rem 0.75rem;
        min-height: auto;
    }

    .bento-insight-card {
        grid-column: span 2;
        padding: 1rem 1rem;
    }

    .bento-insight-card .insight-title {
        font-size: 0.9375rem;
        margin-bottom: 0.35rem;
    }

    .bento-insight-card .insight-body {
        font-size: 0.6875rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .bento-insight-card .insight-meta {
        font-size: 0.5625rem;
        margin-top: 0.5rem;
    }

    .bento-stat-card .stat-value {
        font-size: 1.75rem;
        margin-bottom: 0.4rem;
    }

    .bento-stat-card .stat-title {
        font-size: 0.6rem;
        letter-spacing: 0.08em;
        margin-bottom: 0.3rem;
    }

    .bento-stat-card .stat-description {
        font-size: 0.5625rem;
        line-height: 1.4;
    }

    .newsletter-hero-section {
        padding: 1.75rem 1rem;
    }

    .newsletter-hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
        min-height: unset;
    }

    .newsletter-hero-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-hero-form input[type="email"] {
        width: 100%;
    }

    .newsletter-hero-form button {
        width: 100%;
        text-align: center;
    }
}


/* ============================================
   RESPONSIVE — Small phone (≤480px)
   ============================================ */

@media (max-width: 480px) {
    .strategic-insights-section {
        padding: 0.5rem 0.75rem 1.5rem; /* Reduced top padding */
    }

    .bento-stat-card .stat-value {
        font-size: 1.5rem;
    }

    .bento-stat-card .stat-title {
        font-size: 0.55rem;
    }

    .bento-stat-card .stat-description {
        font-size: 0.5rem;
    }

    .bento-insight-card .insight-title {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .bento-insight-card .insight-body {
        font-size: 0.625rem;
        line-height: 1.45;
        -webkit-line-clamp: 4;
    }

    .newsletter-hero-title {
        font-size: 1.125rem;
    }
}


/* ============================================
   RESPONSIVE — Mobile landscape
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
    .strategic-insights-section {
        padding: 0.5rem 1rem 2rem; /* Reduced top padding */
    }

    .strategic-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-hero-section {
        padding: 1.25rem 1rem;
    }
}
