/**
 * Washington Home Improvements - Homepage Sections
 * Company Story Hero, Why Choose Us, Service Coverage, Hero CTA
 * Option B Layout
 */

/* ========================================
   COMPANY STORY HERO (Above Tools)
   ======================================== */

.company-story-hero {
    background: #ffffff;
    padding: var(--space-3xl) 0;
    position: relative;
}

/* Single Column Centered Layout */
.story-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.story-hero-heading {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #1a2332;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(-20px);
    animation: headingSlideDown 0.8s ease-out forwards;
}

@keyframes headingSlideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-hero-text {
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: textFadeIn 0.8s ease-out 0.3s forwards;
}

@keyframes textFadeIn {
    to {
        opacity: 1;
    }
}

.story-hero-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: var(--space-lg);
}

.story-hero-text strong {
    color: #1a2332;
    font-weight: 700;
}

/* Inline Stats with Animations */
.story-hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: statFadeIn 0.6s ease-out forwards;
}

.hero-stat:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-stat:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-stat:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes statFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff9100;
    line-height: 1;
    animation: numberPop 0.5s ease-out forwards;
    animation-delay: inherit;
}

@keyframes numberPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-stat-icon {
    font-size: 2.5rem;
    color: #87CEEB;
    line-height: 1;
    animation: iconGlow 2s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(135, 206, 235, 0));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(135, 206, 235, 0.8));
    }
}

.hero-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a2332;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Scroll Down Button with Animation */
.btn-scroll-down {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, #ff9100 0%, #ff7c00 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: btnFadeIn 0.6s ease-out 0.8s forwards;
}

@keyframes btnFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-scroll-down:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 145, 0, 0.4);
}

.arrow-down {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite 1.5s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* Photo section removed - using single column layout */

/* ========================================
   WHY CHOOSE US (Below Tools)
   ======================================== */

.why-choose-us {
    background: #f8f9fa;
    padding: var(--space-3xl) 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #1a2332;
    margin-bottom: var(--space-3xl);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.why-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.why-card:hover {
    transform: translateY(-8px);
    border-color: #ff9100;
    box-shadow: 0 12px 30px rgba(255, 145, 0, 0.15);
}

/* Dark Blue Quality First Card */
.why-card-dark {
    background: linear-gradient(135deg, #1a2332 0%, #2a4050 100%);
    border: 2px solid #87CEEB;
}

.why-card-dark .why-heading {
    color: #ff9100;
}

.why-card-dark .why-text {
    color: rgba(255, 255, 255, 0.9);
}

.why-card-dark:hover {
    border-color: #ff9100;
    box-shadow: 0 12px 30px rgba(255, 145, 0, 0.25);
}

.why-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.why-icon-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.why-card:hover .why-icon-img {
    transform: scale(1.1);
}

.why-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: var(--space-md);
}

/* Colored Headings - Only Quality First in yellow */
.why-card:nth-child(1) .why-heading {
    color: #ff9100;
}

.why-card:nth-child(2) .why-heading {
    color: #1a2332;
}

.why-card:nth-child(3) .why-heading {
    color: #1a2332;
}

.why-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

/* ========================================
   SERVICE COVERAGE (Cities)
   ======================================== */

.service-coverage {
    background: white;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.coverage-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #1a2332;
    margin-bottom: var(--space-md);
}

.coverage-subtitle {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: var(--space-2xl);
}

.coverage-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.coverage-pill {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, #87CEEB 0%, #5FA8D3 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(135, 206, 235, 0.2);
}

.coverage-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(135, 206, 235, 0.4);
    background: linear-gradient(135deg, #5FA8D3 0%, #4A90BA 100%);
}

.coverage-footer {
    font-size: 1rem;
    color: #4a5568;
    font-weight: 500;
}

/* ========================================
   HERO CTA (Bottom) - Centered Single Column
   ======================================== */

.hero-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2332 0%, #2a4050 100%);
    padding: var(--space-3xl) 0;
}

/* Blueprint pattern overlay */
.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(135, 206, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(135, 206, 235, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 1;
}

.hero-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-cta-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: white;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero-cta-subtext {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-2xl);
}

.hero-cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero-call {
    background: linear-gradient(135deg, #ff9100 0%, #ff7c00 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 145, 0, 0.3);
}

.btn-hero-call:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 145, 0, 0.5);
}

.btn-hero-quote {
    background: linear-gradient(135deg, #87CEEB 0%, #5FA8D3 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.3);
}

.btn-hero-quote:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(135, 206, 235, 0.5);
}

.hero-cta-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-trust-item {
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
}

.hero-trust-divider {
    color: #87CEEB;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 968px) {
    .story-hero-content {
        padding: 0 var(--space-md);
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .story-hero-heading {
        font-size: 2rem;
    }

    .story-hero-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .coverage-pills {
        gap: var(--space-sm);
    }

    .coverage-pill {
        font-size: 0.875rem;
        padding: var(--space-xs) var(--space-md);
    }

    .hero-cta-trust {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .hero-trust-divider {
        display: none;
    }

    /* Gradient backgrounds - mobile */
    .section-bg-gradient {
        opacity: 0.03;
    }

    .gradient-top-left,
    .gradient-bottom-right,
    .gradient-center,
    .gradient-right,
    .gradient-left,
    .gradient-top-right,
    .gradient-bottom-left {
        width: 250px;
        height: 250px;
    }

    .gradient-diagonal {
        opacity: 0.02;
    }

    .gradient-center-large {
        width: 300px;
        height: 300px;
        opacity: 0.04;
    }
}

/* ========================================
   BACKGROUND GRADIENT DECORATIONS
   ======================================== */

/* Position sections for backgrounds */
.quote-bar,
.company-story-hero,
.why-choose-us,
.service-coverage,
.hero-cta {
    position: relative;
    overflow: hidden;
}

/* Ensure content is above gradients */
.quote-bar .container,
.company-story-hero .container,
.why-choose-us .container,
.service-coverage .container,
.hero-cta .container {
    position: relative;
    z-index: 2;
}

/* Gradient Background Styling */
.section-bg-gradient {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.gradient-top-left {
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    animation: gradientFloat1 12s ease-in-out infinite;
}

.gradient-bottom-right {
    bottom: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    animation: gradientFloat2 15s ease-in-out infinite;
}

.gradient-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    animation: gradientPulse 10s ease-in-out infinite;
}

.gradient-right {
    top: 20%;
    right: -150px;
    width: 400px;
    height: 400px;
    animation: gradientFloat1 14s ease-in-out infinite;
}

.gradient-left {
    top: 30%;
    left: -120px;
    width: 420px;
    height: 420px;
    animation: gradientFloat2 13s ease-in-out infinite;
}

.gradient-top-right {
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    opacity: 0.08;
    animation: gradientFloat1 11s ease-in-out infinite;
}

.gradient-bottom-left {
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    opacity: 0.12;
    animation: gradientFloat2 16s ease-in-out infinite;
}

.gradient-diagonal {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    animation: gradientPulse 15s ease-in-out infinite;
}

.gradient-center-large {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    opacity: 0.08;
    animation: gradientPulse 12s ease-in-out infinite;
}

/* Circular Gradient Corner for Why Choose Us */
.gradient-circle-corner {
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    opacity: 0.15;
    border-radius: 50%;
    animation: gradientPulse 14s ease-in-out infinite;
}

/* Tool Showcase Floating Gradients */
.gradient-float-1 {
    top: 15%;
    left: 10%;
    width: 350px;
    height: 350px;
    opacity: 0.04;
    animation: gradientFloat1 18s ease-in-out infinite;
}

.gradient-float-2 {
    top: 45%;
    right: 8%;
    width: 400px;
    height: 400px;
    opacity: 0.05;
    animation: gradientFloat2 20s ease-in-out infinite;
}

.gradient-float-3 {
    bottom: 20%;
    left: 15%;
    width: 380px;
    height: 380px;
    opacity: 0.045;
    animation: gradientPulse 16s ease-in-out infinite;
}

/* Gradient Animations */
@keyframes gradientFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, 30px) scale(1.05);
    }
}

@keyframes gradientFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.08);
    }
}

@keyframes gradientPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.06;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.08;
    }
}
