/*
Theme Name: Astra Child
Theme URI: http://wpastra.com/theme/astra-child/
Template: astra
Author: Black Box Reviews
Author URI: http://wpastra.com/about/
Description: Astra Child Theme for Black Box Reviews
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    /* Editorial Luxury Palette */
    --bb-bg-body:   #FDFBF7;
    --bb-bg-card:   #FFFFFF;
    --bb-bg-dark:   #1C1409;
    --bb-bg-footer: #110D05;

    --bb-text-main:     #1A1208;
    --bb-text-muted:    #7C6F5E;
    --bb-text-light:    #F5F0E8;
    --bb-text-inverted: #FFFFFF;

    --bb-accent:       #C4622D;
    --bb-accent-hover: #A8501F;

    --bb-border: rgba(0, 0, 0, 0.07);

    --bb-font-serif: 'DM Serif Display', Georgia, serif;
    --bb-font-stack: 'Outfit', system-ui, -apple-system, sans-serif;

    --bb-radius: 6px;
    --bb-shadow:       0 1px 3px rgba(0, 0, 0, 0.04);
    --bb-shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body {
    background-color: var(--bb-bg-body);
    font-family: var(--bb-font-stack);
    color: var(--bb-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Sticky Footer Fix --- */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1;
}

/* Hide Page Headers (Comparisons, Blog, Reviews) as requested */
.bb-page-header {
    display: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bb-font-serif);
    color: var(--bb-text-main);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a {
    color: var(--bb-accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--bb-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
    /* Reset default list style */
}

/* --- Search Bar (Premium Fixed) --- */
.bb-search-container {
    max-width: 700px;
    margin: 0 auto 50px;
    position: relative;
    /* Anchor for absolute dropdown */
    padding: 0 20px;
    z-index: 10;
    /* Ensure container is above other content */
    overflow: visible !important;
    /* Critical: allow dropdown to spill out */
}

.bb-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--bb-border);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 54px;
    position: relative;
    z-index: 11;
}

.bb-search-form:focus-within {
    box-shadow: 0 4px 20px rgba(196, 98, 45, 0.12);
    border-color: var(--bb-accent);
}

.bb-search-field {
    flex-grow: 1;
    border: none !important;
    background: transparent !important;
    padding: 0 24px;
    font-size: 1.05rem;
    outline: none !important;
    box-shadow: none !important;
    color: var(--bb-text-main);
    height: 100%;
    border-radius: 0;
}

.bb-search-field::placeholder {
    color: #94A3B8;
}

.bb-search-submit {
    background-color: var(--bb-accent);
    color: #fff;
    border: none;
    height: 100%;
    padding: 0 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.bb-search-submit:hover {
    background-color: var(--bb-accent-hover);
    transform: translateY(0);
}

/* --- Live Search Dropdown --- */
.bb-live-search-results {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid var(--bb-border);
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 99;
    /* Max Z-Index for visibility */
    padding: 10px 0;
    max-width: 660px;
    /* Match form width roughly minus padding */
    margin: 5px auto 0;
}

.bb-live-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bb-live-search-results li {
    border-bottom: 1px solid #f1f5f9;
}

.bb-live-search-results li:last-child {
    border-bottom: none;
}

.bb-live-search-results a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--bb-text-main);
    transition: background 0.2s;
    gap: 15px;
}

.bb-live-search-results a:hover {
    background-color: #f8fafc;
}

.bb-live-search-results img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.search-item-info {
    flex-grow: 1;
}

.search-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.search-item-date {
    font-size: 0.8rem;
    color: #94A3B8;
}

/* =========================================
   2. COMPONENT STYLES
   ========================================= */

/* --- Buttons --- */
.bb-btn,
.btn-hero,
.final-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--bb-font-stack);
    font-weight: 600;
    border-radius: 9999px;
    transition: transform 200ms cubic-bezier(0.32, 0.72, 0, 1),
                background-color 200ms ease;
    text-decoration: none;
    cursor: pointer;
    padding: 12px 24px;
    font-size: 0.95rem;
    line-height: 1;
}

.bb-btn,
.btn-hero,
.final-cta-btn {
    background-color: var(--bb-text-main);
    color: var(--bb-text-inverted);
    border: none;
}

.bb-btn:hover,
.btn-hero:hover,
.final-cta-btn:hover {
    background-color: #2D2010;
    color: var(--bb-text-inverted);
    transform: scale(0.98);
}

.bb-btn:active,
.btn-hero:active,
.final-cta-btn:active {
    transform: scale(0.96);
}

.bb-btn-outline {
    background-color: transparent;
    color: var(--bb-text-main);
    border: 1px solid var(--bb-border);
}

.bb-btn-outline:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--bb-text-main);
    border-color: rgba(0, 0, 0, 0.15);
    transform: scale(0.98);
}

/* Button trailing icon wrapper */
.btn-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
    font-size: 0.85rem;
}

.bb-btn:hover .btn-icon-circle,
.final-cta-btn:hover .btn-icon-circle {
    transform: translateX(3px);
}

/* --- Cards --- */
.bb-post-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .bb-post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .bb-post-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Outer double-bezel shell */
.bb-post-card {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--bb-border);
    border-radius: 20px;
    padding: 4px;
    transition: box-shadow 200ms ease, transform 200ms cubic-bezier(0.32, 0.72, 0, 1), border-color 200ms ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bb-post-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
    border-color: rgba(196, 98, 45, 0.3);
}

/* Inner core */
.bb-post-card-inner {
    background: var(--bb-bg-card);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.bb-card-thumb {
    height: 200px;
    background-color: #F0EBE3;
    overflow: hidden;
}

.bb-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.bb-post-card:hover .bb-card-thumb img {
    transform: scale(1.03);
}

.bb-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bb-card-title {
    font-family: var(--bb-font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.bb-card-title a { color: var(--bb-text-main); }
.bb-card-title a:hover { color: var(--bb-accent); }

.bb-card-excerpt {
    font-size: 0.9rem;
    color: var(--bb-text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.bb-card-meta {
    margin-top: auto;
    padding-top: 16px;
}

/* =========================================
   3. SPECIFIC SECTIONS
   ========================================= */

/* Fix for General Home Section Alignment (Comparisons, Reviews, Articles) */
.home-section-wrapper .ast-container,
.final-cta-section .ast-container {
    display: block !important;
    width: 100%;
}

/* --- Article Lists (Blog) --- */
.bb-article-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--bb-border);
    transition: padding-left 200ms ease;
}

.bb-article-item:hover {
    padding-left: 6px;
}

.bb-article-item > a:first-child {
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background: #F0EBE3;
    display: block;
}

.bb-article-item > a:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Wrappers --- */
.home-section-wrapper {
    padding: 100px 20px;
}

.bg-gray-50 {
    background-color: #F5F0E8;
}

.home-section-title {
    font-family: var(--bb-font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 16px;
    color: var(--bb-text-main);
}

.home-section-subtitle {
    text-align: center;
    color: var(--bb-text-muted);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 56px;
    line-height: 1.65;
}

/* --- Comparison Badge (Hidden) --- */
.comparison-badge {
    display: none;
}

/* --- Button meta alignment --- */
.bb-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 16px;
}


/* --- Author Section --- */
.author-section {
    background-color: var(--bb-bg-body);
    padding: 120px 20px;
    border-top: 1px solid var(--bb-border);
}

.author-container {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.author-container img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 28px;
    display: block;
    border: 3px solid var(--bb-border);
}

.author-container h3 {
    font-family: var(--bb-font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.author-container p {
    color: var(--bb-text-muted);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 24px;
}

/* --- Trust / Transparency --- */
.trust-section {
    background-color: var(--bb-bg-body);
    color: var(--bb-text-muted);
    padding: 28px 20px;
    text-align: center;
    font-size: 0.82rem;
    border-top: 1px solid var(--bb-border);
    border-bottom: 1px solid var(--bb-border);
    line-height: 1.6;
}

/* --- Final CTA --- */
.final-cta-section {
    background-color: var(--bb-bg-dark);
    padding: 140px 20px;
    text-align: center;
}

.final-cta-section h2 {
    font-family: var(--bb-font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--bb-text-light);
    margin-bottom: 24px;
}

.final-cta-section p {
    color: rgba(245, 240, 232, 0.6);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.65;
}

.final-cta-btn {
    background-color: var(--bb-text-light);
    color: var(--bb-bg-dark);
    padding: 16px 36px;
    font-size: 1rem;
    margin-top: 0;
}

.final-cta-btn:hover {
    background-color: #FFFFFF;
    color: var(--bb-bg-dark);
    transform: scale(0.98);
}

/* =========================================
   4. FOOTER STYLES (Unified)
   ========================================= */

.custom-blackbox-footer {
    background-color: var(--bb-bg-footer);
    color: #94A3B8;
    padding-top: 80px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(196, 98, 45, 0.3);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--bb-text-inverted);
    margin-bottom: 24px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a,
.footer-menu ul li a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-menu ul li a:hover {
    color: var(--bb-text-inverted);
}

.footer-links li,
.footer-menu ul li {
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #64748B;
    font-size: 0.85rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bb-article-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* =========================================
   5. LAYOUT FIXES & PAGINATION
   ========================================= */

/* Fix: Specific fix for Archive/Page direct containers to stack Grid and Pagination vertically */
.site-main>.ast-container {
    display: block !important;
    width: 100%;
}

/* Pagination Styling */
.pagination {
    margin-top: 50px;
    text-align: center;
    width: 100%;
    clear: both;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    color: var(--bb-text-main);
    background: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--bb-accent);
    color: #fff;
    border-color: var(--bb-accent);
    transform: translateY(-2px);
}

/* Ensure no weird list styles if theme uses UL for pagination */
.pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- Custom Homepage Logo Styles --- */
.custom-home-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    gap: 5px;
}

.logo-circle-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- Circular Logo Styling for Astra Default Logo --- */
/* This styles the logo set via Astra Customizer */
.custom-logo-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    gap: 5px;
}

.custom-logo-link .custom-logo {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    object-fit: contain;
    padding: 5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.custom-logo-link:hover .custom-logo {
    border-color: var(--bb-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(196, 98, 45, 0.12);
}

/* Add site title below logo */
.ast-site-identity .site-title {
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 5px;
}

/* --- Mobile Fixes (Clean) --- */
@media (max-width: 768px) {

    /* Ensure header elements don't block each other */
    .ast-primary-header-bar,
    .site-branding,
    .ast-site-identity {
        pointer-events: auto !important;
        position: relative;
        z-index: auto !important;
    }

    /* Scale down logo on mobile */
    .custom-logo-link .custom-logo {
        width: 40px !important;
        height: 40px !important;
    }

    .ast-site-identity .site-title {
        font-size: 8px !important;
        white-space: nowrap;
    }
}

/* --- Force Mobile Menu Z-Index --- */
/* Ensure the dropdown menu sits on top of all page content */
.ast-mobile-header-wrap,
.ast-mobile-popup-drawer,
#ast-mobile-popup,
.ast-main-header-bar-alignment {
    z-index: 100000 !important;
    position: relative;
}

/* Fix visibility if accidentally hidden */
.ast-mobile-menu-active .ast-mobile-header-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* --- ULTIMATE MENU FIX --- */
/* Break the menu out of any hidden containers */
.ast-mobile-menu-active .ast-mobile-header-wrap,
.ast-mobile-menu-active .ast-mobile-popup-drawer {
    display: block !important;
    position: fixed !important;
    /* Force it to be relative to screen, not parent */
    top: 50px !important;
    /* Push it down below header */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 999999 !important;
    /* Higher than anything */
    background: #fff !important;
    /* Ensure it has background */
    overflow-y: auto !important;
    /* Enable scrolling */
}

/* Ensure content inside is visible */
.ast-mobile-header-content,
.ast-mobile-popup-content,
.main-header-bar-navigation {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 20px !important;
}

/* Fix Text Colors & Visibility */
.ast-mobile-menu-active .menu-item a,
.ast-mobile-menu-active .page_item a {
    color: #1a1a1a !important;
    display: block !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    border-bottom: 1px solid #eee;
}

/* Fix Sub-menu visibility */
.ast-mobile-menu-active .sub-menu {
    display: block !important;
    position: relative !important;
    left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #f9f9f9 !important;
    margin-left: 10px !important;
}

/* Fix dark mode background if needed */
.dark .ast-mobile-menu-active .ast-mobile-header-wrap {
    background: #1a1a1a !important;
}


/* =========================================
   6. ASTRA HEADER OVERRIDES (Green Theme)
   ========================================= */

/* Main Navigation Links Hover/Active */
.main-header-menu .menu-item:hover>.menu-link,
.main-header-menu .menu-item.current-menu-item>.menu-link,
.main-header-menu .menu-item.current-menu-ancestor>.menu-link {
    color: var(--bb-accent) !important;
}

/* Header Button (Subscribe/CTA) */
.ast-header-button-1 .ast-custom-button-link .ast-custom-button {
    background-color: var(--bb-accent) !important;
    border-color: var(--bb-accent) !important;
    color: #fff !important;
}

.ast-header-button-1 .ast-custom-button-link .ast-custom-button:hover {
    background-color: var(--bb-accent-hover) !important;
    border-color: var(--bb-accent-hover) !important;
}

/* Mobile Menu Toggles */
.ast-mobile-menu-trigger-fill path {
    fill: var(--bb-text-main) !important;
}

.ast-button-wrap .menu-toggle:hover {
    color: var(--bb-accent) !important;
}

/* Search Icon */
.ast-search-icon .astra-search-icon:hover {
    color: var(--bb-accent) !important;
}

/* Mobile Menu Active Items */
.ast-mobile-menu-active .menu-item.current-menu-item>a {
    color: var(--bb-accent) !important;
    font-weight: 700 !important;
    background-color: rgba(196, 98, 45, 0.06) !important;
}

/* =========================================
   5. BACK TO TOP BUTTON
   ========================================= */

#bb-scroll-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background-color: var(--bb-accent) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease !important;
}

#bb-scroll-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

#bb-scroll-to-top:hover {
    background-color: var(--bb-accent-hover) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3) !important;
}

#bb-scroll-to-top span {
    font-size: 24px !important;
    line-height: 1 !important;
}


/* ============================================================
   WORLD-CLASS EFFECTS
   ============================================================ */

/* 1. SCROLL PROGRESS BAR */
#bb-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--bb-accent);
    z-index: 9999999;
    transition: width 0.1s linear;
}

/* 2. FROSTED GLASS HEADER */
#masthead.bb-scrolled,
.site-header.bb-scrolled {
    background-color: rgba(253, 251, 247, 0.85) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) !important;
}

/* ============================================================
   ENTRANCE ANIMATIONS — Editorial Spring
   ============================================================ */

@keyframes editReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero load animations — CSS-driven (no JS needed) */
.hp-hero-label    { animation: editReveal 0.7s cubic-bezier(0.32, 0.72, 0, 1) 0.05s both; }
.hp-hero-title    { animation: editReveal 0.8s cubic-bezier(0.32, 0.72, 0, 1) 0.18s both; }
.hp-hero-subtitle { animation: editReveal 0.7s cubic-bezier(0.32, 0.72, 0, 1) 0.34s both; }
.hp-hero-btns     { animation: editReveal 0.7s cubic-bezier(0.32, 0.72, 0, 1) 0.46s both; }
.hp-trust-row     { animation: editReveal 0.65s cubic-bezier(0.32, 0.72, 0, 1) 0.58s both; }
.hp-stat-panel    { animation: editReveal 0.8s cubic-bezier(0.32, 0.72, 0, 1) 0.30s both; }

/* Scroll-triggered — base invisible state */
.hp-anim {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity  0.7s cubic-bezier(0.32, 0.72, 0, 1),
        transform 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

.hp-anim.hp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger via CSS custom property --i */
.hp-anim { transition-delay: calc(var(--i, 0) * 90ms); }


/* ============================================================
   HOMEPAGE — EDITORIAL LUXURY — hp-* namespace
   ============================================================ */

/* ---------- HERO ---------- */
.hp-hero {
    background: var(--bb-bg-body);
    position: relative;
    overflow: hidden;
    padding: 100px 20px 120px;
    min-height: 90dvh;
    display: flex;
    align-items: center;
}

/* Subtle warm ambient radial */
.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(196, 98, 45, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 70%, rgba(196, 98, 45, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hp-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Eyebrow badge */
.hp-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(196, 98, 45, 0.08);
    border: 1px solid rgba(196, 98, 45, 0.18);
    border-radius: 9999px;
    padding: 5px 14px;
    margin-bottom: 28px;
}

.hp-hero-label em {
    font-style: normal;
    font-family: var(--bb-font-stack);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bb-accent);
}

/* Main heading */
.hp-hero-title {
    font-family: var(--bb-font-serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 400;
    color: var(--bb-text-main);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.035em;
}

.hp-hero-title em {
    font-style: italic;
    color: var(--bb-accent);
}

/* Subtitle */
.hp-hero-subtitle {
    font-size: 1.1rem;
    color: var(--bb-text-muted);
    max-width: 460px;
    line-height: 1.75;
    margin-bottom: 44px;
}

.hp-hero-subtitle strong {
    color: var(--bb-text-main);
    font-weight: 600;
}

/* Buttons */
.hp-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 9999px;
    font-family: var(--bb-font-stack);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 200ms cubic-bezier(0.32, 0.72, 0, 1),
                background-color 200ms ease;
    cursor: pointer;
    line-height: 1;
}

.hp-btn-primary {
    background: var(--bb-text-main);
    color: #FFFFFF;
    border: none;
}

.hp-btn-primary:hover {
    background: #2D2010;
    color: #FFFFFF;
    transform: scale(0.98);
}

.hp-btn-primary:active { transform: scale(0.96); }

.hp-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    transition: transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
}

.hp-btn-primary:hover .hp-btn-icon { transform: translateX(3px); }

.hp-btn-ghost {
    background: transparent;
    color: var(--bb-text-main);
    border: 1px solid var(--bb-border);
}

.hp-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--bb-text-main);
    transform: scale(0.98);
}

/* Trust row */
.hp-trust-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hp-trust-label {
    font-size: 0.8rem;
    color: var(--bb-text-muted);
}

.hp-trust-avatars {
    display: flex;
    align-items: center;
}

.hp-trust-avatars img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bb-bg-body);
    margin-left: -8px;
    background: #F0EBE3;
    display: block;
}

.hp-trust-avatars img:first-child { margin-left: 0; }

.hp-avatar-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bb-accent);
    color: #FFFFFF;
    font-size: 7px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bb-bg-body);
    margin-left: -8px;
}

/* ---------- HERO VISUAL — Editorial Stat Panel ---------- */
.hp-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer bezel */
.hp-stat-panel {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--bb-border);
    border-radius: 24px;
    padding: 6px;
    width: 100%;
    max-width: 420px;
}

/* Inner core */
.hp-stat-panel-inner {
    background: var(--bb-bg-card);
    border-radius: 19px;
    padding: 40px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hp-stat-panel-label {
    font-family: var(--bb-font-stack);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bb-text-muted);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-stat-panel-label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bb-accent);
    flex-shrink: 0;
}

.hp-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 32px;
}

.hp-stat-item strong {
    display: block;
    font-family: var(--bb-font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: var(--bb-text-main);
    line-height: 1;
    margin-bottom: 4px;
}

.hp-stat-item span {
    font-size: 0.78rem;
    color: var(--bb-text-muted);
    font-family: var(--bb-font-stack);
}

.hp-stat-divider {
    height: 1px;
    background: var(--bb-border);
    margin-bottom: 28px;
}

.hp-stat-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hp-stat-brand-tag {
    font-family: var(--bb-font-stack);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(196, 98, 45, 0.08);
    color: var(--bb-accent);
    border: 1px solid rgba(196, 98, 45, 0.15);
    border-radius: 9999px;
    padding: 4px 12px;
}

/* ---------- FEATURE BENTO SECTION ---------- */
.hp-cards-section {
    background: var(--bb-bg-body);
    padding: 0 20px 120px;
    position: relative;
}

.hp-section-divider {
    max-width: 1240px;
    margin: 0 auto 80px;
    height: 1px;
    background: var(--bb-border);
}

.hp-bento-header {
    max-width: 1240px;
    margin: 0 auto 48px;
}

.hp-bento-eyebrow {
    font-family: var(--bb-font-stack);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bb-text-muted);
    margin-bottom: 12px;
}

.hp-bento-title {
    font-family: var(--bb-font-serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--bb-text-main);
}

/* Asymmetric bento grid */
.hp-cards-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.hp-feat-card:nth-child(1) { grid-column: span 4; }
.hp-feat-card:nth-child(2) { grid-column: span 2; }
.hp-feat-card:nth-child(3) { grid-column: span 2; }
.hp-feat-card:nth-child(4) { grid-column: span 4; }

/* Outer bezel */
.hp-feat-card {
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid var(--bb-border);
    border-radius: 20px;
    padding: 4px;
    transition: box-shadow 200ms ease, transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
}

.hp-feat-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Inner core */
.hp-feat-card-inner {
    background: var(--bb-bg-card);
    border-radius: 16px;
    padding: 36px;
    height: 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hp-feat-card:nth-child(1) .hp-feat-card-inner { min-height: 240px; }

.hp-feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(196, 98, 45, 0.08);
    border: 1px solid rgba(196, 98, 45, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--bb-accent);
    flex-shrink: 0;
}

.hp-feat-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

.hp-feat-card h3 {
    font-family: var(--bb-font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--bb-text-main);
}

.hp-feat-card p {
    font-size: 0.875rem;
    color: var(--bb-text-muted);
    line-height: 1.55;
}

/* ---------- STATS BAR ---------- */
.hp-stats-bar {
    max-width: 1240px;
    margin: 48px auto 0;
    display: flex;
    align-items: center;
    background: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: 16px;
    padding: 28px 36px;
}

.hp-stat {
    flex: 1;
    text-align: center;
}

.hp-stat strong {
    display: block;
    font-family: var(--bb-font-serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--bb-text-main);
}

.hp-stat span {
    font-size: 0.78rem;
    color: var(--bb-text-muted);
    font-family: var(--bb-font-stack);
    letter-spacing: 0.02em;
}

.hp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 9999px;
    background: var(--bb-text-main);
    color: #FFFFFF;
    font-family: var(--bb-font-stack);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 200ms cubic-bezier(0.32, 0.72, 0, 1), background-color 200ms ease;
    white-space: nowrap;
    margin-left: 24px;
}

.hp-cta-btn:hover {
    background: #2D2010;
    color: #FFFFFF;
    transform: scale(0.98);
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
    .hp-hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hp-hero-visual { order: -1; }

    .hp-stat-panel { max-width: 100%; }

    .hp-cards-grid {
        grid-template-columns: 1fr;
    }

    .hp-feat-card:nth-child(1),
    .hp-feat-card:nth-child(2),
    .hp-feat-card:nth-child(3),
    .hp-feat-card:nth-child(4) {
        grid-column: span 1;
    }

    .hp-stats-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hp-cta-btn { margin-left: 0; }
}


/* ============================================================
   FULL-WIDTH FIX — break Astra's boxed layout on front page
   ============================================================ */

body.home {
    background-color: var(--bb-bg-body) !important;
}
body.home #page {
    max-width: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #FFFFFF !important;
}

/* The key fix: Astra wraps #primary inside an .ast-container div inside #content.
   That container has max-width:1240px which boxes our full-width sections. */
body.home #content > .ast-container,
body.home .site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Astra forces display:flex on .site-content .ast-container at ≥922px —
   that breaks inner containers inside our custom sections (stacks items in a row).
   Reset to block for all nested .ast-container on the homepage. */
body.home .hp-cards-section .ast-container,
body.home .home-section-wrapper .ast-container,
body.home .final-cta-section .ast-container,
body.home .trust-section .ast-container,
body.home .author-section .ast-container {
    display: block !important;
}

body.home .ast-article-single,
body.home .entry-content,
body.home #primary,
body.home .ast-post-format-single {
    padding: 0 !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    background: transparent !important;
}
body.home .hp-hero,
body.home .hp-cards-section {
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensure hero + cards section edge-to-edge */
.hp-hero,
.hp-cards-section,
.hp-section-divider {
    width: 100%;
    max-width: 100%;
}


/* ============================================================
   LAMP WIDGET — hanging light toggle
   ============================================================ */

#bb-lamp {
    position: fixed;
    right: 36px;
    top: 0;
    z-index: 999998;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* Mount point at top of cord */
.bb-lamp-mount {
    width: 14px;
    height: 8px;
    background: linear-gradient(180deg, #444, #666);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* The cord */
.bb-lamp-cord {
    width: 2px;
    height: 72px;
    background: linear-gradient(180deg, #555 0%, #888 100%);
    position: relative;
    transform-origin: top center;
    transition: height 0.15s ease;
}

/* Small pull ring at bottom of cord */
.bb-lamp-knob {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border: 2px solid #888;
    border-radius: 50%;
    background: transparent;
}

/* Bulb */
.bb-lamp-head {
    width: 36px;
    height: 46px;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.18);
    /* Bulb shape: wider at top, tapers at bottom */
    border-radius: 50% 50% 36% 36% / 55% 55% 45% 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.35);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Filament hint */
.bb-lamp-head::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 2px;
    background: rgba(255,255,255,0.12);
    border-radius: 1px;
}

/* Glow cast below bulb */
.bb-lamp-glow {
    width: 50px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    filter: blur(14px);
    margin-top: -8px;
    transition: background 0.4s ease;
    pointer-events: none;
}

/* Pull animation */
@keyframes bbCordPull {
    0%   { transform: scaleY(1); }
    30%  { transform: scaleY(1.55); }
    65%  { transform: scaleY(0.88); }
    100% { transform: scaleY(1); }
}
@keyframes bbBulbSwing {
    0%   { transform: translateY(0) rotate(0deg); }
    30%  { transform: translateY(22px) rotate(-4deg); }
    65%  { transform: translateY(-5px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

#bb-lamp.bb-pulling .bb-lamp-cord {
    animation: bbCordPull 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#bb-lamp.bb-pulling .bb-lamp-head {
    animation: bbBulbSwing 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* LIT state (light mode active) */
#bb-lamp.bb-lit .bb-lamp-head {
    background: #FFC107;
    border-color: #FFA000;
    color: #FFFFFF;
    box-shadow:
        0 0 12px rgba(255, 193, 7, 0.95),
        0 0 28px rgba(255, 193, 7, 0.55),
        inset 0 2px 6px rgba(255, 255, 255, 0.3);
}
#bb-lamp.bb-lit .bb-lamp-head::after {
    background: rgba(255, 200, 50, 0.6);
}
#bb-lamp.bb-lit .bb-lamp-glow {
    background: radial-gradient(ellipse, rgba(255, 193, 7, 0.55) 0%, transparent 70%);
}
#bb-lamp.bb-lit .bb-lamp-cord {
    background: linear-gradient(180deg, #333 0%, #777 100%);
}
#bb-lamp.bb-lit .bb-lamp-knob {
    border-color: #666;
}

/* Light mode: flip body bg */
body.light-mode.home {
    background-color: #F8FAFC !important;
}


/* ============================================================
   LIGHT MODE — comprehensive overrides
   ============================================================ */

/* Hero background */
body.light-mode .hp-hero {
    background: linear-gradient(160deg, #EEF2FF 0%, #F0F7FF 50%, #F8FAFC 100%);
}
body.light-mode .hp-grid-overlay {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
}

/* Text */
body.light-mode .hp-hero-title         { color: #0F172A; }
body.light-mode .hp-hero-subtitle      { color: #475569; }
body.light-mode .hp-hero-subtitle strong { color: #0F172A; }
body.light-mode .hp-hero-label em      { color: #2563EB; }
body.light-mode .hp-trust-label        { color: #64748B; }
body.light-mode .hp-trust-avatars img  { border-color: #EEF2FF; }
body.light-mode .hp-avatar-more        { border-color: #EEF2FF; }

/* Ghost button */
body.light-mode .hp-btn-ghost {
    background: rgba(0, 0, 0, 0.05);
    color: #0F172A;
    border-color: rgba(0, 0, 0, 0.15);
}
body.light-mode .hp-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.09);
    color: #0F172A;
    border-color: rgba(0, 0, 0, 0.25);
}

/* Cards section */
body.light-mode .hp-cards-section { background: #F1F5F9; }
body.light-mode .hp-feat-card {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}
body.light-mode .hp-feat-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.12);
}
body.light-mode .hp-feat-card h3 { color: #0F172A; }
body.light-mode .hp-feat-card p  { color: #64748B; }
body.light-mode .hp-feat-card.hp-feat-card-active {
    background: linear-gradient(145deg, #EFF6FF, #DBEAFE);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
}
body.light-mode .hp-feat-card.hp-feat-card-active h3 { color: #1E40AF; }
body.light-mode .hp-feat-card.hp-feat-card-active p  { color: #475569; }
body.light-mode .hp-feat-card.hp-feat-card-active .hp-feat-icon {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}

/* Stats bar in light mode */
body.light-mode .hp-stats-bar {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
body.light-mode .hp-stat strong { color: #0F172A; }
body.light-mode .hp-stat span   { color: #64748B; }
body.light-mode .hp-stat-divider { background: #E2E8F0; }

/* Tagline + divider */
body.light-mode .hp-section-divider {
    background: linear-gradient(180deg, #F1F5F9 0%, #F8FAFC 100%);
}

/* Lamp cord color on light bg */
body.light-mode .bb-lamp-mount { background: linear-gradient(180deg, #999, #bbb); }
body.light-mode .bb-lamp-cord  { background: linear-gradient(180deg, #888, #aaa); }
body.light-mode .bb-lamp-knob  { border-color: #aaa; }


/* ============================================================
   HEADER — Dark navy, consistent across all pages
   ============================================================ */

/* Override Astra's white header */
#masthead,
.site-header,
#ast-desktop-header,
.ast-desktop-header,
.ast-desktop-header-content,
.ast-primary-header-bar,
.ast-main-header-wrap,
.main-header-bar {
    background-color: #060C1A !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.18) !important;
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.12), 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

/* Sticky header */
#masthead,
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

/* Nav links */
.main-header-menu .menu-item > .menu-link,
.main-header-menu .menu-item > a,
.ast-header-break-point .main-header-menu .menu-item > a {
    color: #94A3B8 !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    transition: color 0.2s !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .menu-item:hover > a,
.main-header-menu .menu-item.current-menu-item > .menu-link,
.main-header-menu .menu-item.current-menu-ancestor > .menu-link {
    color: #60A5FA !important;
}

/* Active underline indicator (Astra uses ::after) */
.main-header-menu .menu-item.current-menu-item > .menu-link::after,
.main-header-menu .menu-item.current-menu-ancestor > .menu-link::after {
    background-color: #2563EB !important;
}

/* Dropdown sub-menus */
.main-header-menu .sub-menu,
.ast-header-break-point .main-header-menu .sub-menu {
    background-color: #0D1626 !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    border-top: 2px solid #2563EB !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}
.main-header-menu .sub-menu .menu-item > a {
    color: #94A3B8 !important;
}
.main-header-menu .sub-menu .menu-item:hover > a {
    color: #60A5FA !important;
    background-color: rgba(37, 99, 235, 0.08) !important;
}

/* Site title */
.site-title a,
.ast-site-identity .site-title a {
    color: #FFFFFF !important;
}

/* Site branding area */
.ast-site-identity { color: #FFFFFF !important; }

/* Social icons in header */
.ast-header-html .ahfb-social-icon a svg,
.ast-header-html .ahfb-social-icon a {
    color: #94A3B8 !important;
    fill: #94A3B8 !important;
}
.ast-header-html .ahfb-social-icon a:hover svg,
.ast-header-html .ahfb-social-icon a:hover {
    color: #60A5FA !important;
    fill: #60A5FA !important;
}

/* Header CTA button (Let's Talk) */
.ast-header-button-1 .ast-custom-button-link .ast-custom-button {
    background-color: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
}
.ast-header-button-1 .ast-custom-button-link .ast-custom-button:hover {
    background-color: #1D4ED8 !important;
    border-color: #1D4ED8 !important;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4) !important;
}

/* Mobile hamburger icon */
.ast-mobile-menu-trigger-fill path,
.menu-toggle svg path {
    fill: #CBD5E1 !important;
}
.ast-button-wrap .menu-toggle {
    color: #CBD5E1 !important;
}


/* ============================================================
   FOOTER — Dark navy, matching hero
   ============================================================ */

.custom-blackbox-footer {
    background-color: var(--bb-bg-footer) !important;  /* #060C1A */
    border-top: 3px solid var(--bb-accent) !important; /* blue line */
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-links a,
.footer-menu ul li a {
    color: #64748B;
    transition: color 0.2s;
}
.footer-links a:hover,
.footer-menu ul li a:hover {
    color: #60A5FA;
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
    color: #334155;
}

/* Astra's own footer (if rendered) - hide / override */
.ast-footer-copyright {
    display: none !important;
}


/* ============================================================
   TRUST SECTION — dark navy (replaces old dark green)
   ============================================================ */

.trust-section {
    background-color: #0D1626 !important;
    border-top: 1px solid rgba(37, 99, 235, 0.15) !important;
    color: #64748B !important;
}
.trust-section strong {
    color: #94A3B8 !important;
}


/* ============================================================
   AUTHOR SECTION — clean light card
   ============================================================ */

.author-section {
    background-color: #F8FAFC !important;
}
.author-container {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}
.author-container a {
    color: var(--bb-accent) !important;
}
.author-container a:hover {
    color: var(--bb-accent-hover) !important;
}


/* ============================================================
   FINAL CTA SECTION — updated gradient
   ============================================================ */

.final-cta-section {
    background: linear-gradient(180deg, #EEF2FF 0%, #FFFFFF 100%) !important;
}


/* ============================================================
   ARTICLE ITEMS — blue accent
   ============================================================ */

.bb-article-item:hover {
    border-color: var(--bb-accent) !important;
}


/* ============================================================
   PAGINATION — blue accent
   ============================================================ */

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--bb-accent) !important;
    border-color: var(--bb-accent) !important;
}


/* ============================================================
   LIGHT MODE — header & footer overrides
   ============================================================ */

body.light-mode #masthead,
body.light-mode .site-header,
body.light-mode #ast-desktop-header,
body.light-mode .ast-desktop-header,
body.light-mode .ast-desktop-header-content,
body.light-mode .ast-primary-header-bar,
body.light-mode .ast-main-header-wrap,
body.light-mode .main-header-bar {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #E8EEFF !important;
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.08), 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .main-header-menu .menu-item > .menu-link,
body.light-mode .main-header-menu .menu-item > a {
    color: #475569 !important;
}
body.light-mode .main-header-menu .menu-item:hover > .menu-link,
body.light-mode .main-header-menu .menu-item.current-menu-item > .menu-link {
    color: #2563EB !important;
}
body.light-mode .site-title a,
body.light-mode .ast-site-identity .site-title a {
    color: #0F172A !important;
}
body.light-mode .ast-mobile-menu-trigger-fill path,
body.light-mode .menu-toggle svg path {
    fill: #0F172A !important;
}
body.light-mode .main-header-menu .sub-menu {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    border-top-color: #2563EB !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .main-header-menu .sub-menu .menu-item > a {
    color: #475569 !important;
}

/* Footer in light mode */
body.light-mode .custom-blackbox-footer {
    background-color: #F1F5F9 !important;
    border-top-color: var(--bb-accent) !important;
}
body.light-mode .custom-blackbox-footer .footer-col h4 {
    color: #0F172A !important;
}
body.light-mode .custom-blackbox-footer .footer-links a,
body.light-mode .custom-blackbox-footer .footer-menu ul li a {
    color: #475569 !important;
}
body.light-mode .custom-blackbox-footer .footer-links a:hover,
body.light-mode .custom-blackbox-footer .footer-menu ul li a:hover {
    color: var(--bb-accent) !important;
}
body.light-mode .custom-blackbox-footer .footer-bottom {
    color: #64748B !important;
    border-top-color: #CBD5E1 !important;
}

/* Trust section in light mode */
body.light-mode .trust-section {
    background-color: #F1F5F9 !important;
    border-top-color: #E2E8F0 !important;
    color: #64748B !important;
}
body.light-mode .trust-section strong { color: #475569 !important; }

/* Final CTA in light mode */
body.light-mode .final-cta-section {
    background: linear-gradient(180deg, #EEF2FF 0%, #F8FAFC 100%) !important;
}

/* ============================================================
   MOBILE RESPONSIVE — full coverage
   Breakpoints: 1024px (tablet land), 768px (tablet port), 480px (mobile)
   ============================================================ */

/* ── 1024px: tablet landscape ── */
@media (max-width: 1024px) {

    /* Header nav spacing */
    .main-header-menu .menu-item > a,
    .main-header-menu .menu-item > .menu-link {
        font-size: 0.75rem !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Section padding */
    .home-section-wrapper { padding: 60px 20px; }
    .final-cta-section    { padding: 80px 20px; }
    .author-section       { padding: 60px 20px; }

    /* Author card */
    .author-container { padding: 36px 24px; }

    /* Footer grid */
    .footer-container { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── 768px: tablet portrait ── */
@media (max-width: 768px) {

    /* ---- HERO ---- */
    .hp-hero { padding: 80px 24px 80px; min-height: auto; }
    .hp-hero-title { font-size: clamp(2rem, 6vw, 2.8rem); }
    .hp-hero-subtitle { font-size: 1rem; }
    .hp-hero-btns { flex-direction: column; align-items: center; gap: 12px; }
    .hp-btn { width: 100%; max-width: 320px; justify-content: center; text-align: center; }

    /* ---- CARDS SECTION ---- */
    .hp-cards-section { padding: 0 16px 48px; }
    .hp-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-feat-card { padding: 22px 16px; }
    .hp-feat-card h3 { font-size: 0.85rem; }
    .hp-stats-bar {
        flex-direction: column;
        padding: 24px 20px;
        gap: 20px;
        text-align: center;
    }
    .hp-stat-divider { width: 60%; height: 1px; margin: 0 auto; }
    .hp-cta-btn { width: 100%; justify-content: center; }
    .hp-stat strong { font-size: 1.6rem; }

    /* Section divider */
    .hp-section-divider { height: 48px; }

    /* ---- CONTENT SECTIONS ---- */
    .home-section-wrapper { padding: 48px 16px; }
    .home-section-title { font-size: 1.6rem; margin-bottom: 28px; }
    .final-cta-section { padding: 64px 16px; }
    .final-cta-section h2 { font-size: 1.8rem !important; }
    .final-cta-section p  { font-size: 1rem !important; }

    /* ---- POST GRID ---- */
    .bb-post-grid { grid-template-columns: 1fr; gap: 20px; }
    .bb-card-thumb { height: 180px; }

    /* ---- ARTICLE LIST ---- */
    .bb-article-item {
        flex-wrap: wrap;
        gap: 12px;
    }
    .bb-article-item > a:first-child {
        width: 100% !important;
        height: 140px !important;
        flex-shrink: unset;
    }

    /* ---- AUTHOR ---- */
    .author-section { padding: 48px 16px; }
    .author-container { padding: 28px 20px; }

    /* ---- FOOTER ---- */
    .footer-container { grid-template-columns: 1fr 1fr; gap: 28px; padding: 0 16px; }
    .custom-blackbox-footer { padding-top: 56px; padding-bottom: 32px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    /* ---- HEADER ---- */
    .ast-primary-header-bar .ast-container { padding: 0 16px !important; }

    /* ---- TRUST ---- */
    .trust-section { padding: 24px 16px; font-size: 0.82rem; }

    /* Disable 3D tilt on touch (no mouse) */
    .hp-feat-card { transform: none !important; }
}

/* ── 480px: mobile ── */
@media (max-width: 480px) {

    /* ---- HERO ---- */
    .hp-hero { padding: 60px 16px 64px; }
    .hp-hero-label em { font-size: 0.8rem; }
    .hp-hero-title { font-size: clamp(1.8rem, 8vw, 2.4rem); letter-spacing: -0.02em; }
    .hp-hero-subtitle { font-size: 0.95rem; margin-bottom: 32px; }
    .hp-trust-row { flex-direction: column; gap: 10px; align-items: center; }
    .hp-trust-label { font-size: 0.78rem; }
    .hp-trust-avatars img { width: 28px; height: 28px; }

    /* ---- CARDS ---- */
    .hp-cards-grid { grid-template-columns: 1fr; gap: 12px; }
    .hp-feat-card { padding: 20px 16px; }
    .hp-stats-bar { border-radius: 12px; }
    .hp-stat strong { font-size: 1.4rem; }

    /* ---- SECTIONS ---- */
    .home-section-wrapper { padding: 40px 16px; }
    .home-section-title { font-size: 1.4rem; }
    .final-cta-section h2 { font-size: 1.5rem !important; }
    .final-cta-btn { font-size: 1rem; padding: 14px 24px; width: 100%; text-align: center; }

    /* ---- POST CARDS ---- */
    .bb-card-content { padding: 18px 16px; }
    .bb-card-title { font-size: 1rem; }

    /* ---- FOOTER ---- */
    .footer-container { grid-template-columns: 1fr; gap: 24px; }
    .footer-col h4 { margin-bottom: 12px; }

    /* ---- BUTTONS ---- */
    .bb-btn, .bb-btn-outline { font-size: 0.82rem; padding: 10px 18px; }

    /* Progress bar thinner on mobile */
    #bb-progress-bar { height: 2px; }

    /* Scroll-to-top button */
    #bb-scroll-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; font-size: 1rem; }
}
/* ============================================================
   TABLE OF CONTENTS — sticky left nav on single posts
   ============================================================ */

.bb-toc-nav {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Only the list scrolls — title stays fixed */
.bb-toc-nav > ul {
    overflow-y: auto;
    flex: 1;
    padding: 0 0 12px;
    scrollbar-width: thin;
    scrollbar-color: #E2E8F0 transparent;
}
.bb-toc-nav > ul::-webkit-scrollbar { width: 4px; }
.bb-toc-nav > ul::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 2px; }

.bb-toc-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94A3B8;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 14px 14px 0 0;
}
.bb-toc-title svg { width: 14px; height: 14px; color: #94A3B8; flex-shrink: 0; }

.bb-toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bb-toc-nav li { margin: 0; }

.bb-toc-nav a {
    display: block;
    padding: 6px 20px 6px 18px;
    color: #64748B;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.45;
    border-left: 2px solid transparent;
    transition: all 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bb-toc-nav a:hover {
    color: #1E293B;
    border-left-color: #CBD5E1;
    background: rgba(15, 23, 42, 0.03);
}
.bb-toc-nav a.bb-toc-active {
    color: #0F172A;
    border-left-color: #334155;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.04);
}

/* h3 indent */
.bb-toc-nav .toc-h3 a {
    padding-left: 32px;
    font-size: 0.76rem;
    color: #94A3B8;
}
.bb-toc-nav .toc-h3 a:hover { color: #1E293B; }
.bb-toc-nav .toc-h3 a.bb-toc-active {
    color: #334155;
    border-left-color: #334155;
}

/* Progress dot on active */
.bb-toc-nav a.bb-toc-active::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #334155;
    margin-right: 7px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* TOC accordion — H3 children hidden by default, expand when parent H2 active */
.bb-toc-nav .toc-children,
#bb-toc-mobile .toc-children {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
}
.bb-toc-nav .toc-h2.toc-expanded > .toc-children,
#bb-toc-mobile .toc-h2.toc-expanded > .toc-children {
    max-height: 800px;
}

/* Empty state — hide TOC col if no headings */
#bb-toc-col:empty { display: none; }
#bb-toc-col.toc-empty { display: none !important; }

/* Mobile TOC */
#bb-toc-mobile a {
    display: block;
    padding: 5px 0 5px 12px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 500;
    border-left: 2px solid transparent;
    text-decoration: none;
    transition: all 0.18s;
}
#bb-toc-mobile a.bb-toc-active {
    color: #0F172A;
    border-left-color: #334155;
    font-weight: 600;
}
#bb-toc-mobile .toc-h3 a { padding-left: 24px; font-size: 0.78rem; }

/* TOC floating tooltip */
#bb-toc-tooltip {
    position: fixed;
    z-index: 9999;
    background: #1E293B;
    color: #F1F5F9;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 500;
    max-width: 260px;
    line-height: 1.5;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Logo size override */
header .custom-logo-link img,
.ast-site-identity .custom-logo-link img,
.site-branding .custom-logo-link img {
    height: 44px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 10px !important;
    display: block !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.45)) !important;
    transition: filter 0.3s ease, transform 0.3s ease !important;
}
header .custom-logo-link:hover img,
.ast-site-identity .custom-logo-link:hover img {
    filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.75)) !important;
    transform: scale(1.05) !important;
}
@media (max-width: 768px) {
    header .custom-logo-link img,
    .ast-site-identity .custom-logo-link img {
        height: 36px !important;
    }
}
