/* ================================================
   ROOFING PAGE - PREMIUM UI SYSTEM
   Storm Lead Pipeline + Insurance Claim Tracker
   ================================================ */

:root {
    --roof-accent: #5E0ED7;
    --roof-accent-hover: #731bf0;
    --roof-border: rgba(94, 14, 215, 0.16);
    --roof-border-md: rgba(94, 14, 215, 0.28);
}

/* ================================================
   HERO
   ================================================ */
.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(--roof-border);
}

.sub-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    opacity: 0;
}

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

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

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 24px;
    opacity: 0;
}

.text-gradient-roof {
    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;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    opacity: 0;
}

.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(--roof-accent) 0%, var(--roof-accent-hover) 100%);
    color: #ffffff;
    border-radius: 10px;
    font-size: 15px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--roof-accent-hover) 0%, var(--roof-accent) 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(--roof-border-md);
    border-radius: 10px;
    font-size: 15px;
}

.btn-secondary:hover {
    border-color: var(--roof-accent);
    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(--roof-border);
    border-radius: 12px;
    opacity: 0;
}

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

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

/* ================================================
   SHARED SECTION STYLES
   ================================================ */
.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(--roof-accent);
    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;
}

/* ================================================
   STORM RESPONSE PIPELINE
   Unique: 3-lane storm lead intake flow
   ================================================ */
.storm-pipeline-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--roof-border);
}

.storm-lanes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.storm-lane {
    position: relative;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--roof-border);
    overflow: hidden;
    opacity: 0;
    background: linear-gradient(135deg, rgba(94, 14, 215, 0.08) 0%, rgba(115, 27, 240, 0.04) 100%);
}

.storm-lane::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--roof-accent), var(--roof-accent-hover));
}

.storm-lane:hover {
    background: linear-gradient(135deg, rgba(94, 14, 215, 0.14) 0%, rgba(115, 27, 240, 0.08) 100%);
    border-color: var(--roof-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(94, 14, 215, 0.2);
    transition: all 0.3s ease;
}

.storm-lane-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(94, 14, 215, 0.15);
    border: 1px solid var(--roof-border-md);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--roof-accent);
}

.storm-lane-icon svg { stroke: var(--roof-accent); }

.storm-lane-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(94, 14, 215, 0.12);
    border: 1px solid var(--roof-border-md);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--roof-accent);
    margin-bottom: 14px;
}

.storm-lane-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.storm-lane-desc {
    font-size: 13px;
    color: rgba(229, 229, 229, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
}

.storm-lane-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.storm-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.storm-step-dot {
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: var(--roof-accent);
    margin-top: 6px;
}

.storm-step p {
    font-size: 12px;
    color: rgba(229, 229, 229, 0.7);
    line-height: 1.5;
}

/* ================================================
   INSURANCE CLAIM TRACKER
   Unique: 7-stage horizontal claim pipeline
   ================================================ */
.claim-tracker-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--roof-border);
}

.claim-stages {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.claim-stages::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, var(--roof-accent), rgba(115, 27, 240, 0.3), transparent);
    z-index: 0;
}

.claim-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 8px;
    opacity: 0;
}

.claim-node {
    width: 80px;
    height: 80px;
    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: 14px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
    cursor: default;
    color: var(--roof-accent);
}

.claim-node svg { stroke: var(--roof-accent); }

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

.claim-stage-name {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 4px;
}

.claim-stage-tag {
    font-size: 10px;
    color: var(--roof-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.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(--roof-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    opacity: 0;
}

.capability-module:hover {
    background: linear-gradient(135deg, rgba(94, 14, 215, 0.11) 0%, rgba(115, 27, 240, 0.08) 100%);
    border-color: var(--roof-accent);
    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(--roof-accent);
    border-radius: 8px;
    font-weight: 800;
    color: var(--roof-accent);
    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; }

.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(--roof-border);
    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(--roof-accent);
    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(--roof-border);
    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(--roof-border);
    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(--roof-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(--roof-accent);
    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(--roof-accent); }

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

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

/* ================================================
   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); }
}

/* Reveal loading-hidden elements after page load */
body:not(.loading) .loading-hidden {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.4s ease;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .hero-title { font-size: 42px; }
    .section-title { font-size: 32px; }
    .storm-lanes { grid-template-columns: 1fr; }
    .claim-stages { grid-template-columns: repeat(4, 1fr); }
    .claim-stages::before { display: none; }
    .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; }
    .claim-stages { grid-template-columns: repeat(3, 1fr); }
    .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; }
    .hero-stats-row { gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 24px; }
    .claim-stages { grid-template-columns: repeat(2, 1fr); 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-title { font-size: 22px; }
    .section-eyebrow { font-size: 11px; }
    .capabilities-grid { gap: 12px; }
    .claim-stages { grid-template-columns: 1fr 1fr; }
}

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

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