/* ================================================
   HVAC PAGE - PREMIUM UI SYSTEM
   Emergency Dispatch Pipeline + Seasonal Maintenance
   ================================================ */

:root {
    --primary-accent: #5E0ED7;
    --secondary-blue: #731bf0;
    --accent-emergency: #5E0ED7;
    --accent-maintenance: #731bf0;
    --dark-bg: #0b0d12;
    --light-text: #f6f7fb;
    --border-subtle: rgba(94, 14, 215, 0.16);
    --border-medium: rgba(94, 14, 215, 0.28);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    padding: 140px 0 100px;
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(94, 14, 215, 0.22), transparent 28%),
        radial-gradient(circle at right center, rgba(115, 27, 240, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(11, 13, 18, 0.98) 0%, rgba(12, 10, 22, 0.96) 35%, rgba(18, 10, 38, 0.95) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.sub-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.sub-hero-eyebrow .eyebrow-line {
    width: 24px;
    height: 2px;
    background: var(--accent-emergency);
    border-radius: 1px;
}

.sub-hero-eyebrow .eyebrow-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-emergency);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.text-gradient-fire {
    background: linear-gradient(135deg, #5E0ED7 0%, #731bf0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(229, 229, 229, 0.8);
    max-width: 700px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-actions a {
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-emergency) 0%, #731bf0 100%);
    color: #ffffff;
    border-radius: 10px;
    font-size: 15px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #731bf0 0%, var(--accent-emergency) 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(94, 14, 215, 0.35);
}

.btn-secondary {
    padding: 14px 28px;
    background: transparent;
    color: white;
    border: 2px solid var(--border-medium);
    border-radius: 10px;
    font-size: 15px;
}

.btn-secondary:hover {
    border-color: var(--accent-emergency);
    background: rgba(94, 14, 215, 0.06);
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(15, 17, 22, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-emergency);
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: rgba(229, 229, 229, 0.7);
    line-height: 1.4;
}

/* ================================================
   DISPATCH PIPELINE
   Unique: Horizontal dispatch status flow
   ================================================ */
.dispatch-pipeline-section {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-emergency);
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 12px;
}

.section-title span {
    background: linear-gradient(135deg, #5E0ED7 0%, #731bf0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Horizontal Pipeline */
.dispatch-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.dispatch-flow::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-emergency), rgba(115, 27, 240, 0.7), transparent);
    z-index: 0;
}

.dispatch-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
}

.dispatch-stage:nth-child(1) { animation-delay: 0.1s; }
.dispatch-stage:nth-child(2) { animation-delay: 0.2s; }
.dispatch-stage:nth-child(3) { animation-delay: 0.3s; }
.dispatch-stage:nth-child(4) { animation-delay: 0.4s; }

.stage-badge {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(94, 14, 215, 0.16) 0%, rgba(115, 27, 240, 0.08) 100%);
    border: 1px solid rgba(94, 14, 215, 0.38);
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dispatch-stage:hover .stage-badge {
    background: linear-gradient(135deg, rgba(94, 14, 215, 0.25) 0%, rgba(115, 27, 240, 0.2) 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(94, 14, 215, 0.25);
}

.stage-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

.stage-time {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-emergency);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stage-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
}

.stage-desc {
    font-size: 12px;
    color: rgba(229, 229, 229, 0.6);
    text-align: center;
    line-height: 1.5;
}

/* ================================================
   SEASONAL MAINTENANCE CALENDAR
   Unique: 4-quarter system with maintenance checklist
   ================================================ */
.seasonal-calendar-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.quarters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.quarter-card {
    position: relative;
    padding: 32px;
    background: linear-gradient(135deg, rgba(94, 14, 215, 0.08) 0%, rgba(115, 27, 240, 0.05) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
}

.quarter-card:nth-child(1) { animation-delay: 0.1s; }
.quarter-card:nth-child(2) { animation-delay: 0.2s; }
.quarter-card:nth-child(3) { animation-delay: 0.3s; }
.quarter-card:nth-child(4) { animation-delay: 0.4s; }

.quarter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-emergency), var(--accent-maintenance));
    opacity: 0.6;
}

.quarter-card:hover {
    background: linear-gradient(135deg, rgba(94, 14, 215, 0.15) 0%, rgba(115, 27, 240, 0.08) 100%);
    border-color: var(--accent-maintenance);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(94, 14, 215, 0.2);
}

.quarter-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quarter-season {
    font-size: 12px;
    color: var(--accent-maintenance);
    margin-bottom: 16px;
    font-weight: 600;
}

.maintenance-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.maintenance-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(229, 229, 229, 0.8);
    padding: 8px 0;
}

.maintenance-item::before {
    content: '✓';
    font-weight: 700;
    color: var(--accent-maintenance);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: -2px;
}

/* ================================================
   SERVICE CAPABILITIES
   ================================================ */
.service-capabilities-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.capability-module {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: linear-gradient(135deg, rgba(94, 14, 215, 0.06) 0%, rgba(115, 27, 240, 0.04) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

.capability-module:nth-child(1) { animation-delay: 0s; }
.capability-module:nth-child(2) { animation-delay: 0.1s; }
.capability-module:nth-child(3) { animation-delay: 0.2s; }
.capability-module:nth-child(4) { animation-delay: 0.3s; }
.capability-module:nth-child(5) { animation-delay: 0.4s; }
.capability-module:nth-child(6) { animation-delay: 0.5s; }

.capability-module:hover {
    background: linear-gradient(135deg, rgba(94, 14, 215, 0.11) 0%, rgba(115, 27, 240, 0.08) 100%);
    border-color: var(--accent-emergency);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(94, 14, 215, 0.2);
}

.capability-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(94, 14, 215, 0.2);
    border: 2px solid var(--accent-emergency);
    border-radius: 8px;
    font-weight: 800;
    color: var(--accent-emergency);
    font-size: 18px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.capability-label {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.capability-text {
    font-size: 13px;
    color: rgba(229, 229, 229, 0.7);
    line-height: 1.6;
}

/* ================================================
   CTA SECTION
   ================================================ */
.ghl-cta-section {
    padding: 80px 0;
    position: relative;
}

.cta-banner-glass {
    padding: 60px 48px;
    background: linear-gradient(135deg, rgba(94, 14, 215, 0.12) 0%, rgba(115, 27, 240, 0.05) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.cta-eyebrow {
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-emergency);
    margin-bottom: 16px;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-desc {
    font-size: 16px;
    color: rgba(229, 229, 229, 0.8);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-large {
    padding: 16px 40px !important;
    font-size: 16px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ================================================
   FOOTER PRE-CTA
   ================================================ */
.footer-pre-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(94, 14, 215, 0.12) 0%, rgba(115, 27, 240, 0.05) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    margin-bottom: 60px;
}

.footer-pre-cta-content {
    flex: 1;
}

.footer-pre-cta-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-pre-cta-desc {
    font-size: 14px;
    color: rgba(229, 229, 229, 0.8);
    line-height: 1.6;
}

/* ================================================
   SITE FOOTER
   ================================================ */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 40px;
}

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

.footer-brand {
    max-width: 300px;
}

.logo {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}

.logo-dot {
    color: var(--primary-accent);
}

.footer-desc {
    font-size: 13px;
    color: rgba(229, 229, 229, 0.7);
    line-height: 1.6;
    margin-top: 12px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-emergency);
    margin-bottom: 4px;
}

.footer-links-group a {
    font-size: 14px;
    color: rgba(229, 229, 229, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: var(--accent-emergency);
}

.footer-links-group a.active {
    color: var(--accent-emergency);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-copyright {
    font-size: 12px;
    color: rgba(229, 229, 229, 0.6);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    font-size: 12px;
    color: rgba(229, 229, 229, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--accent-emergency);
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 32px;
    }

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

    .footer-pre-cta {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 80px;
    }

    .hero-title {
        font-size: 32px;
    }

    .sub-hero-description {
        font-size: 16px;
    }

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

    .hero-actions a {
        width: 100%;
        justify-content: center;
    }

    .hero-stats-row {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 26px;
    }

    .dispatch-flow {
        grid-template-columns: 1fr;
    }

    .dispatch-flow::before {
        left: 60px;
        top: 0;
        bottom: 0;
        height: auto;
        width: 2px;
        background: linear-gradient(180deg, var(--accent-emergency), rgba(115, 27, 240, 0.3), transparent);
    }

    .stage-badge {
        width: 100px;
        height: 100px;
    }

    .cta-banner-glass {
        padding: 40px 24px;
    }

    .cta-title {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 28px;
    }

    .sub-hero-description {
        font-size: 15px;
    }

    .hero-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .quarters-grid,
    .capabilities-grid {
        gap: 16px;
    }

    .cta-banner-glass {
        padding: 32px 16px;
    }

    .cta-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-eyebrow {
        font-size: 11px;
    }

    .section-title {
        font-size: 22px;
    }

    .dispatch-flow {
        gap: 12px;
    }

    .stage-badge {
        width: 80px;
        height: 80px;
    }

    .quarters-grid,
    .capabilities-grid {
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
