/*
 * TrustESD - Commercial & Promotional
 * Hero logo, hero flag/stars, countdown timer, promo images,
 * incentive cards/badges, math breakdown
 * See also: pages-commercial-details.css (stats, buttons, incentive details, comparison, timeline)
 */

/* ========== TRUSTESD: PATRIOT THEME ========== */

/* Hero Logo */
.hero-logo {
    max-height: 320px;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5));
}

@media (max-width: 600px) {
    .hero-logo {
        max-height: 200px;
    }
}

/* Hero Stars */
.hero-flag {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ========== COUNTDOWN TIMER ========== */
.countdown-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #8b1a28 100%);
    padding: 2.5rem 0;
    text-align: center;
}

.countdown-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.countdown-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.countdown-header .lucide {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.countdown-subtext {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.countdown-unit {
    background: rgba(0,0,0,0.25);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    min-width: 80px;
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 500px) {
    .countdown-unit {
        padding: 0.75rem 1rem;
        min-width: 60px;
    }
}

.countdown-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-family: var(--font-display);
}

@media (max-width: 500px) {
    .countdown-num {
        font-size: 1.75rem;
    }
}

.countdown-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.85);
    margin-top: 0.25rem;
}

.countdown-warning {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
}

.deadline-passed {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

/* ========== PROMOTIONAL IMAGES ========== */
.promo-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.promo-banner {
    margin-bottom: 2rem;
}

.promo-banner-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.promo-feature {
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-feature .promo-image {
    max-width: 100%;
    height: auto;
}

/* Countdown grid with promo image */
.countdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.countdown-promo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-promo .promo-image {
    max-width: 500px;
    width: 100%;
    border: 3px solid rgba(255,255,255,0.2);
}

@media (max-width: 900px) {
    .countdown-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .countdown-promo {
        order: -1;
    }
    .countdown-promo .promo-image {
        max-width: 90%;
        width: 90%;
    }
}

/* ========== INCENTIVE CARDS ========== */
.incentives-section .section-header h2 {
    color: var(--color-primary);
}

.incentive-card {
    position: relative;
    padding-top: 2.5rem !important;
}

.incentive-badge {
    position: absolute;
    top: -12px;
    right: 1rem;
    background: var(--color-secondary);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.incentive-badge.gold {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
}

.highlight-card {
    border: 2px solid var(--color-accent) !important;
    background: linear-gradient(180deg, rgba(178,34,52,0.05) 0%, transparent 100%);
}

/* ========== MATH BREAKDOWN ========== */
.lead-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.math-breakdown {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
}

.math-line {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.math-line:last-child {
    border-bottom: none;
}

.math-line.highlight {
    background: rgba(178, 34, 52, 0.05);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.math-line.total {
    background: var(--color-primary);
    color: #fff;
    margin: 0.5rem -1.5rem -1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    font-weight: 700;
    font-size: 1.1rem;
}

.math-label {
    font-weight: 500;
}

.math-value {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 600;
}

.math-value.negative {
    color: var(--color-secondary);
}

.math-line.total .math-value {
    color: var(--color-accent);
}

.math-footnote {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

