/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('/static/home-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    padding: var(--header-height) 1rem 3rem;
    position: relative;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.hero-content {
    color: white;
}

.hero-title, .hero-subtitle {
    color: white;
}

/* Hide call button on mobile */
.hero-cta {
    display: none; /* Hidden by default for mobile */
}



/* Service Items (shared styles) */
.service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 1.5rem;
    border-radius: 10px;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
}

.service-icon {
    min-width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

.service-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.service-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    font-size: 0.9rem;
}

/* Hero Right Section - Quote Form */
.hero-right {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-self: center;
    transition: all 0.3s ease;
}

/* Compact form styles */
.hero-right .form-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.hero-right .contact-phone {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.hero-right .phone-number-large {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

/* Compact form controls */
.hero-right .form-group {
    margin-bottom: 0.75rem;
}

.hero-right .form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

.hero-right textarea.form-control {
    min-height: 40px;
    height: 40px;
    overflow-y: hidden;
    resize: none;
    transition: all 0.3s ease;
}

/* Expanded textarea style */
.hero-right textarea.form-control.expanded {
    min-height: 120px;
    height: auto;
    resize: vertical;
}

/* Hide consent checkboxes by default */
.hero-right .checkbox-group {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 0.75rem;
}

/* Show checkboxes when form is focused */
.hero-right.form-focused .checkbox-group {
    display: block;
    opacity: 1;
}

/* Expand form vertically on focus */
.hero-right.form-focused {
    background: rgba(255, 255, 255, 0.98);
}

.hero-right.form-focused .form-control {
    padding: 0.75rem 1rem;
}

.hero-right.form-focused textarea.form-control {
    min-height: 120px;
}

/* Submit button */
.hero-right .submit-button {
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Privacy note */
.hero-right .form-privacy {
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Checkbox styles */
.hero-right .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.hero-right .checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
}

.hero-right .checkbox label {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-right {
        display: none; 
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 2rem) 1rem 4rem;
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/static/home-bg-800.jpg') center/cover;
    }

    .hero-title {
        font-size: 2.25rem;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .services-preview {
        background: none;
        backdrop-filter: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }

    .service-item {
        background: rgba(0, 0, 0, 0.3);
        margin-bottom: 0.5rem;
        padding: 1rem;
        width: 100%; 
        border-radius: var(--border-radius);
    }

    .service-icon {
        min-width: 40px; 
        height: 40px;
        margin-right: 1rem;
    }

    .service-item:last-child {
        margin-bottom: 0;
    }

    .service-content {
        flex: 1;
    }
}

/* Smaller Mobile Screens */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding: calc(var(--header-height) + 1rem) 1rem 3rem;
    }

    .services-preview {
        background: none;
        backdrop-filter: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }

    .hero-container {
        gap: 0rem;
    }

    .service-item {
        border-radius: 0;
        margin-bottom: 0.5rem;
    }

    .cta-phone {
        font-size: 1.25rem;
        padding: 0.875rem 1.5rem;
        width: 100%;
        justify-content: center;
    }
}

/* Desktop-only hero content styles */
@media (min-width: 769px) {
    .hero-cta {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 3rem;
        flex-wrap: wrap;
    }

    .hero-content {
        max-width: 900px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        opacity: 0.9;
        text-align: center;
    }

    .services-preview {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 0 auto;
        width: 100%;
        max-width: 1200px;  
        padding: 0 0.5rem;
    }

    /* Adjusting the grid for the last item to span full width if it's alone */
    .services-preview > .service-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc(50% - 1rem);
        margin: 0 auto;
    }

    .service-item {
        position: relative;
        padding: 1rem 0.5rem; 
        text-align: center;
        width: 100%;
    }
    

    .service-icon {
        width: 60px;
        height: 60px;
        margin: 0rem 1rem 0.5rem 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
    }

    .service-icon i {
        font-size: 1.5rem;
        color: white;
    }

    .service-content {
        width: 100%;
        text-align: left;
    }

    .service-content h3 {
        margin-bottom: 0.75rem;
        font-size: 1.2rem;
        text-align: left;
        width: 100%;
    }

    .service-content p {
        text-align: left;
        width: 100%;
        font-size: 1rem;
    }

    .cta-phone,
    .cta-booking,
    .cta-quote {
        font-size: 1.5rem;
        padding: 1rem 2.5rem;
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        color: white;
        text-decoration: none;
        border-radius: var(--border-radius);
        transition: var(--transition);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .cta-phone:hover,
    .cta-booking:hover,
    .cta-quote:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    .cta-phone i,
    .cta-booking i,
    .cta-quote i {
        font-size: 1.25rem;
    }
}