/* Clean Components CSS - Specific component styles for All Level Construction */
/* Typography moved to global-typography.css */

/* ========================================
   HERO SLIDER
======================================== */

.hero-slide {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.hero-slide.slide-1 {
    display: block;
}

#slide-1:checked ~ .hero-slide.slide-1,
#slide-2:checked ~ .hero-slide.slide-2,
#slide-3:checked ~ .hero-slide.slide-3 {
    display: block;
}

#slide-1:checked ~ .hero-slide:not(.slide-1),
#slide-2:checked ~ .hero-slide:not(.slide-2),
#slide-3:checked ~ .hero-slide:not(.slide-3) {
    display: none;
}

.hero-bg {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
}



/* ========================================
   MOBILE MENU
======================================== */

#mobile-menu-toggle {
    display: none;
}

#mobile-menu-toggle:checked + label + nav {
    display: block;
}

#services-toggle {
    display: none;
}

#services-toggle:checked + label + div {
    display: block;
}

/* Mobile menu styles */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

#mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
}

#mobile-menu a:hover,
#mobile-menu a.active {
    background-color: #f3f4f6;
    color: #1e40af;
}

#mobile-menu .menu-icon {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

#mobile-menu .services-icon {
    float: right;
    transition: transform 0.3s ease;
}

#mobile-menu #services-submenu {
    background-color: #f9fafb;
}

#mobile-menu #services-submenu a {
    padding-left: 3rem;
    font-size: 0.875rem;
    border-bottom: none;
}

.mobile-cta {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin: 1rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

/* ========================================
   GRADIENT TEXT
======================================== */

.text-transparent {
    color: transparent;
}

.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-primary {
    --tw-gradient-from: #1e40af;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 64, 175, 0));
}

.to-primary {
    --tw-gradient-to: #1e40af;
}

/* ========================================
   SERVICE CARDS
======================================== */

.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* ========================================
   BACK TO TOP BUTTON
======================================== */

#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top:hover {
    transform: scale(1.1);
}

/* ========================================
   FORM STYLES
======================================== */

form input,
form textarea,
form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

form input::placeholder,
form textarea::placeholder {
    color: #9ca3af;
}

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

@media (max-width: 767px) {
    .hero-overlay {
        padding: 2rem 1rem;
    }

    .hero-slide h2 {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .hero-slide h3 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .hero-slide p {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .slider-controls {
        bottom: 1rem;
    }
}

@media (min-width: 768px) {
    #mobile-menu {
        display: none !important;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
======================================== */

@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .service-card,
    .slider-arrow,
    #back-to-top,
    .transition-all,
    .transition-colors,
    .transition-transform {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles */
.slider-dot:focus,
.slider-arrow:focus,
#back-to-top:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {

    #back-to-top,
    #mobile-menu-toggle,
    #mobile-menu {
        display: none !important;
    }

    .hero-slide {
        display: block !important;
        min-height: auto;
        background: white !important;
    }

    .hero-overlay {
        background: transparent !important;
        min-height: auto;
    }

    .hero-bg {
        background: none !important;
    }
}

