/* ===================================
   ELEMENT528 LANDING PAGE STYLES
   High-Conversion B2B Design for HVAC
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-blue: #2463EB;
    --primary-dark: #1E40AF;
    --accent-blue: #3B82F6;
    --dark-text: #0F172A;
    --gray-text: #475569;
    --light-gray: #F1F5F9;
    --border-color: #E2E8F0;
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    --error-red: #EF4444;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-primary);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    background: #ffffff;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   NAVIGATION
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-phone:hover {
    color: var(--primary-blue);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary-nav {
    background: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-primary:disabled {
    background: var(--gray-text);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===================================
   FLOATING ACTION BUTTONS
   =================================== */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-actions.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.floating-checkout {
    background: var(--success-green);
}

.floating-checkout:disabled {
    background: var(--gray-text);
    cursor: not-allowed;
    opacity: 0.6;
}

.floating-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.floating-phone {
    width: 56px;
    height: 56px;
    padding: 0;
    background: var(--primary-blue);
}

.floating-chat {
    width: 56px;
    height: 56px;
    padding: 0;
    background: var(--accent-blue);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #EEF2FF 0%, #ffffff 100%);
    margin-top: 77px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-headline {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark-text);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-size: 22px;
    line-height: 1.5;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subheadline strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.hero-trust {
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray-text);
}

/* ===================================
   CALCULATOR SECTION
   =================================== */
.calculator-section {
    padding: var(--section-padding);
    background: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 20px;
    color: var(--gray-text);
    line-height: 1.6;
}

.calculator-container {
    max-width: 1100px;
    margin: 0 auto;
}

.calculator-box {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.calculator-box:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.calculator-header {
    margin-bottom: 32px;
}

.calculator-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 12px;
    margin-bottom: 20px;
}

.calculator-icon svg {
    stroke: white;
}

.calculator-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.calculator-description {
    font-size: 16px;
    color: var(--gray-text);
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.input-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-primary);
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(36, 99, 235, 0.1);
}

.input-hint {
    display: block;
    font-size: 13px;
    color: var(--gray-text);
    margin-top: 6px;
}

.calculator-result {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.result-label {
    font-size: 16px;
    color: var(--gray-text);
    margin-bottom: 12px;
    font-weight: 500;
}

.result-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--error-red);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.result-breakdown {
    padding-top: 16px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.result-breakdown small {
    font-size: 13px;
    color: var(--gray-text);
    line-height: 1.5;
}

/* Total Leak */
.total-leak {
    margin: 40px 0;
    padding: 48px;
    background: linear-gradient(135deg, var(--error-red), #DC2626);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.total-leak-content {
    text-align: center;
    color: white;
}

.total-leak-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.total-leak-value {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.total-leak-description {
    font-size: 18px;
    opacity: 0.95;
}

/* Segmentation Section */
.segmentation-section {
    margin-top: 48px;
    padding: 40px;
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: 16px;
}

.segmentation-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
    text-align: center;
}

.segmentation-subtitle {
    font-size: 18px;
    color: var(--gray-text);
    text-align: center;
    margin-bottom: 32px;
}

.truck-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.truck-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    background: white;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.truck-btn:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.truck-btn.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
}

.truck-btn-icon {
    font-size: 36px;
}

.truck-btn-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text);
}

/* Tier Confirmation */
.tier-confirmation {
    margin-top: 32px;
}

.tier-card {
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border: 2px solid var(--primary-blue);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.tier-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.tier-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 24px;
}

.tier-pricing {
    margin-bottom: 20px;
}

.tier-price-main {
    font-size: 56px;
    font-weight: 800;
    color: var(--dark-text);
    letter-spacing: -0.02em;
}

.tier-price-setup {
    font-size: 18px;
    color: var(--gray-text);
    margin-top: 8px;
}

.tier-due-today {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 20px;
}

.tier-due-today strong {
    font-size: 32px;
    font-weight: 800;
    color: var(--success-green);
}

.tier-description {
    font-size: 15px;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   SOLUTION SECTION (4 PHASES)
   =================================== */
.solution-section {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.phase-card {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.phase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.phase-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 48px;
    font-weight: 800;
    color: var(--light-gray);
    line-height: 1;
}

.phase-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 16px;
    margin-bottom: 24px;
}

.phase-icon svg {
    stroke: white;
}

.phase-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.phase-description {
    font-size: 16px;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.phase-features {
    list-style: none;
    padding: 0;
}

.phase-features li {
    font-size: 14px;
    color: var(--gray-text);
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}

.phase-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 700;
    font-size: 16px;
}

/* ===================================
   TRUST SECTION
   =================================== */
.trust-section {
    padding: 80px 0;
    background: white;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.trust-stat {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border-radius: 12px;
}

.trust-stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.trust-stat-label {
    font-size: 16px;
    color: var(--gray-text);
    font-weight: 500;
}

/* ===================================
   FINAL CTA SECTION
   =================================== */
.final-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-text), #1E293B);
    color: white;
}

.final-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.final-cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.final-cta-content p {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-support {
    font-size: 16px !important;
    opacity: 0.8 !important;
    margin-bottom: 0 !important;
    margin-top: 24px !important;
}

.cta-support a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.cta-support a:hover {
    text-decoration: underline;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--dark-text);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

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

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.6;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
    .hero-headline {
        font-size: 42px;
    }
    
    .hero-subheadline {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .phases-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr;
    }
    
    .truck-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-headline {
        font-size: 32px;
    }
    
    .hero-subheadline {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .calculator-box {
        padding: 24px;
    }
    
    .result-value {
        font-size: 36px;
    }
    
    .total-leak-value {
        font-size: 48px;
    }
    
    .truck-buttons {
        grid-template-columns: 1fr;
    }
    
    .nav-actions {
        gap: 12px;
    }
    
    .nav-phone span {
        display: none;
    }
    
    .btn-primary-nav {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .floating-actions {
        bottom: 16px;
        right: 16px;
    }
    
    .floating-checkout span {
        display: none;
    }
    
    .floating-checkout {
        width: 56px;
        height: 56px;
        padding: 0;
    }
    
    .tier-card {
        padding: 32px 24px;
    }
    
    .tier-price-main {
        font-size: 42px;
    }
    
    .final-cta-content h2 {
        font-size: 32px;
    }
    
    .final-cta-content p {
        font-size: 16px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}
