/* ==========================================
   HOMEPAGE STYLES - Clean, No Bloat
   ========================================== */

/* Hero Section - Construction Industry Enterprise Design */
.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 120px 0 140px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Subtle Professional Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-section h1 {
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Hero Content Container - Elevated */
.hero-section .container {
    position: relative;
    z-index: 10;
    max-width: 100%;
    overflow: hidden;
}

/* Construction-Themed Decorative Corner Elements - Fixed Overflow */
.hero-section .col-lg-6:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-top: 3px solid rgba(255, 255, 255, 0.15);
    border-left: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    z-index: -1;
}

.hero-section .col-lg-6:last-child::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.15);
    border-right: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    z-index: -1;
}

/* Animated Accent Lines - Construction Beam Style */
.hero-section .row::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.2) 80%,
            transparent 100%);
    transform: translateY(-50%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* Hero Buttons - Enterprise Grade */
.hero-section .btn-custom {
    background: white;
    border: none;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    color: #1e3a8a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.hero-section .btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    color: #1e3a8a;
    background: #f8fafc;
}

.hero-section .btn-outline-primary {
    background-color: rgba(255, 255, 255, 0.15);
    border: 3px solid white;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 38px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.hero-section .btn-outline-primary:hover {
    background-color: white;
    border-color: white;
    color: #1e3a8a;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3);
}

/* Feature Cards - Enterprise Professional */
.feature-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    background: white;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(30, 64, 175, 0.15);
    border-color: #1e40af;
}

.feature-icon {
    font-size: 3.5rem;
    color: #1e40af;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(30, 64, 175, 0.2));
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(30, 64, 175, 0.3));
}

.feature-card .card-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.feature-card .card-text {
    color: #475569;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Text Contrast - Light Mode */
.container h2,
.container h3,
.container h5 {
    color: #0f172a;
}

.container p,
.container .lead {
    color: #334155;
}

.text-muted {
    color: #6c757d;
}

/* Section-Specific Styling */
#pricing {
    background-color: #f8f9fa;
}

#contact {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
}

#contact h2,
#contact h5,
#contact p,
#contact .lead {
    color: white;
}

/* Dark Theme Overrides */
[data-theme="dark"] .container h2,
[data-theme="dark"] .container h3,
[data-theme="dark"] .container h5 {
    color: #f8fafc;
}

[data-theme="dark"] .container p,
[data-theme="dark"] .container .lead {
    color: #e2e8f0;
}

[data-theme="dark"] .text-muted {
    color: #94a3b8;
}

[data-theme="dark"] #pricing {
    background-color: #1e293b;
}

[data-theme="dark"] .feature-card {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .feature-card h5,
[data-theme="dark"] .feature-card p {
    color: #f8fafc;
}

/* Numbered Steps - Minimal custom sizing for homepage circles */
#how-it-works .rounded-circle {
    width: 60px;
    height: 60px;
}

/* =============================================================================
   HERO SECTION & HOMEPAGE MOBILE RESPONSIVENESS
   ============================================================================= */

/* Tablet and below */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 80px 0 100px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .hero-section .btn-custom,
    .hero-section .btn-outline-primary {
        font-size: 1rem;
        padding: 14px 32px;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        gap: 0 !important;
    }

    /* Simplify decorative elements on mobile */
    .hero-section .col-lg-6:first-child::before,
    .hero-section .col-lg-6:last-child::after {
        display: none;
    }

    .hero-section .row::before {
        display: none;
    }

    /* Simplify background pattern on mobile for performance */
    .hero-section::before {
        opacity: 0.2;
        animation: none;
    }

    .hero-section::after {
        opacity: 0.2;
    }
}

/* Mobile landscape and portrait */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0 80px 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .feature-card .card-title {
        font-size: 1.2rem;
    }

    .feature-card .card-text {
        font-size: 1rem;
    }

    .feature-icon {
        font-size: 3rem;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 50px 0 70px 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }

    .hero-section .btn-custom,
    .hero-section .btn-outline-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }
}