/* PRO HomeWash Website Styles */
/* Extracted from index.html for better maintainability */

/* Base styles */
:root {
    --primary: #3498db;
    --secondary: #4a4a4a;
    --tertiary: #7f8c8d;
    --light: #F5F5F5;
    --dark: #333333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

/* Accessibility - Visually hidden labels */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}

.logo span {
    color: var(--primary);
}

/* Header Contact Info */
.contact-info-header {
    display: flex;
    align-items: center;
}

.phone-cta {
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.phone-cta:hover {
    background-color: #2980b9;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--secondary);
    color: white;
    padding: 40px 0;
    overflow: hidden;
}

.hero::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(74, 74, 74, 0.6), rgba(74, 74, 74, 0.6)),
                url('prohomewash-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    flex: 1;
    order: 1;
}

/* Swapped layout - form on left, content on right */
.hero-container.swapped .hero-content {
    order: 2;
}

.hero-container.swapped .hero-form-wrapper {
    order: 1;
}

/* Internal SEO links - make them nearly invisible for better UX */
.hero-content p a:not(.cta-button),
.service-card p a:not(.cta-button),
.benefit-card p a:not(.cta-button),
footer nav a[href*="../"] {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.hero-content p a:not(.cta-button):hover,
.service-card p a:not(.cta-button):hover,
.benefit-card p a:not(.cta-button):hover,
footer nav a[href*="../"]:hover {
    opacity: 1;
    border-bottom-color: rgba(52, 152, 219, 0.5);
}

/* Make footer internal links even more subtle */
footer nav a[href*="../"] {
    opacity: 0.6;
    font-size: 0.9em;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid white;
    margin-left: 15px;
    transition: background-color 0.3s;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Trust Indicators */
.trust-indicators {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.trust-indicators span {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.service-area {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-top: 15px;
    font-size: 16px;
}

/* Hero Form Styling */
.hero-form-wrapper {
    flex: 1;
    max-width: 450px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    order: 2;
}

.hero-form-header {
    text-align: center;
    margin-bottom: 25px;
}

.hero-form-header h3 {
    color: var(--secondary);
    font-size: 24px;
    margin-bottom: 8px;
}

.hero-form-header p {
    color: var(--tertiary);
    font-size: 14px;
    margin-bottom: 15px;
}

.special-offer {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.hero-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.half {
    flex: 1;
}

.hero-contact-form input,
.hero-contact-form select,
.hero-contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.hero-contact-form input:focus,
.hero-contact-form select:focus,
.hero-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Required field indicators */
.hero-contact-form input[required],
.hero-contact-form select[required] {
    border-left: 3px solid var(--primary);
}

.hero-submit-btn {
    background: var(--primary);
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-submit-btn:hover {
    background: #2980b9;
}

/* Custom dropdown with checkboxes */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
    color: #333 !important;
}

.dropdown-selected span {
    color: #333 !important;
}

.dropdown-selected:hover,
.dropdown-selected.active {
    border-color: var(--primary);
}

.dropdown-arrow {
    transition: transform 0.3s;
    color: #666;
}

.dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.dropdown-options.show {
    display: block;
}

.dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    color: #333;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #f8f9fa;
}

.dropdown-option input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.dropdown-option span {
    font-size: 16px;
    color: #333;
}

.services-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}


/* Results Section */
.welcome-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

/* Carousel Styles */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin: 40px 0;
    padding: 30px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 33.333%;
    padding: 0 10px;
}

/* Carousel responsive breakpoints */
@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 100%;
    }
}

.carousel-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: auto;
    display: flex;
    flex-direction: column;
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* @media (min-width: 769px) {
    .carousel-slide img {
        max-height: 250px;
    }
} */

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: #5a5a5a;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--tertiary);
    max-width: 700px;
    margin: 0 auto;
}

.benefits .section-header h2 {
    color: white;
}

.benefits .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Services Section */
.services {
    padding: 40px 0;
    background-color: white;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    flex: 0 1 calc(33.333% - 20px);
    max-width: 350px;
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

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

.service-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-card p {
    margin-bottom: 20px;
    color: var(--tertiary);
    flex-grow: 1;
}

@media (max-width: 900px) {
    .service-card {
        flex: 0 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .service-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

/* Social Follow Section */
.social-follow {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.social-follow h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    padding: 12px;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.social-link svg {
    width: 100%;
    height: 100%;
    fill: white;
}

@media (max-width: 768px) {
    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        padding: 10px;
    }
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

@media (min-width: 993px) {
    .footer-column:nth-child(2) {
        text-align: center;
    }

    .footer-column:nth-child(3) {
        text-align: right;
    }
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-indicators {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-container {
        flex-direction: column;
        gap: 30px;
    }

    .hero-form-wrapper {
        max-width: 100%;
        order: 1;
    }
    .hero-content {
        order: 2;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .benefits-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-header {
        display: none;
    }

    .trust-indicators {
        flex-direction: column;
        align-items: center;
    }

    .trust-indicators span {
        text-align: center;
    }

}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta-button,
    .secondary-button {
        display: block;
        margin: 0 0 15px 0;
        text-align: center;
    }

    .carousel-wrapper {
        padding: 20px;
    }
}

.test-rule {
    background: red !important;
}
