/* ============================================
   ELITE CLEANERS - Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-primary: #0e7c7b;
    --color-primary-dark: #065a5a;
    --color-primary-light: #12a09f;
    --color-accent: #d4a843;
    --color-accent-dark: #b8912e;
    --color-bg: #f8f9fa;
    --color-surface: #ffffff;
    --color-text: #2d3436;
    --color-text-light: #636e72;
    --color-text-inverse: #ffffff;
    --color-success: #27ae60;
    --color-error: #e74c3c;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --max-width: 1200px;
    --spacing: 2rem;
    --spacing-sm: 1rem;
    --spacing-lg: 4rem;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* --- Header & Navigation --- */
.header {
    background: var(--color-surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: var(--color-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
    background: rgba(14, 124, 123, 0.08);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, rgba(6, 90, 90, 0.88), rgba(14, 124, 123, 0.75)),
                url('../images/hero.jpg') center/cover no-repeat;
    background-color: var(--color-primary-dark);
    color: var(--color-text-inverse);
    padding: 6rem var(--spacing);
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--color-text-inverse);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero .tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-inverse);
    border: 2px solid var(--color-text-inverse);
}

.btn-outline:hover {
    background: var(--color-text-inverse);
    color: var(--color-primary);
}

.btn-teal {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.btn-teal:hover {
    background: var(--color-primary-dark);
    color: var(--color-text-inverse);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 124, 123, 0.4);
}

/* --- Section Base --- */
.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: rgba(14, 124, 123, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-primary);
}

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card-header {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.pricing-card-header h3 {
    color: var(--color-text-inverse);
    margin-bottom: 0.25rem;
}

.pricing-card-header p {
    opacity: 0.85;
    font-size: 0.9rem;
}

.pricing-card.featured .pricing-card-header {
    background: var(--color-accent);
}

.pricing-card.featured .pricing-card-header h3,
.pricing-card.featured .pricing-card-header p {
    color: var(--color-text);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table tr {
    border-bottom: 1px solid #eee;
}

.pricing-table tr:last-child {
    border-bottom: none;
}

.pricing-table td {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
}

.pricing-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

/* --- Why Choose Us --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: rgba(14, 124, 123, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item .icon svg {
    width: 30px;
    height: 30px;
    fill: var(--color-primary);
}

.feature-item h3 {
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: 3.5rem var(--spacing);
    text-align: center;
}

.cta-banner h2 {
    color: var(--color-text-inverse);
    margin-bottom: 0.75rem;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Contact Page --- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-info-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-info-card .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: rgba(14, 124, 123, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-card .icon svg {
    width: 22px;
    height: 22px;
    fill: var(--color-primary);
}

.contact-info-card h4 {
    margin-bottom: 0.25rem;
}

.contact-info-card a {
    color: var(--color-primary);
    font-weight: 600;
}

.contact-form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
    margin-bottom: 0.5rem;
}

.contact-form-wrapper .form-subtitle {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 124, 123, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* --- Social Page --- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--color-text);
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.social-card .social-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-card .social-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.social-card .social-info h3 {
    margin-bottom: 0.15rem;
    font-size: 1.1rem;
}

.social-card .social-info p {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.social-facebook .social-icon { background: #1877f2; }
.social-instagram .social-icon { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-tiktok .social-icon { background: #010101; }
.social-google .social-icon { background: #4285f4; }
.social-nextdoor .social-icon { background: #00b246; }
.social-yelp .social-icon { background: #d32323; }

/* --- Reviews Page --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
}

.review-stars {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.review-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(14, 124, 123, 0.1);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Photo Gallery --- */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    background: var(--color-surface);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- Page Header (for inner pages) --- */
.page-header {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-text-inverse);
    padding: 3.5rem var(--spacing);
    text-align: center;
}

.page-header h1 {
    color: var(--color-text-inverse);
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.05rem;
}

/* --- Placeholder Images --- */
.placeholder-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-text-inverse);
    padding: 2.5rem var(--spacing) 1.5rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-info h3 {
    color: var(--color-text-inverse);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.footer-info p {
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-info a {
    color: var(--color-accent);
}

.footer-info a:hover {
    color: var(--color-accent-dark);
}

.footer-links h4 {
    color: var(--color-text-inverse);
    margin-bottom: 0.75rem;
}

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

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 1rem auto 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* --- Mobile Responsive --- */
@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
    }

    .hero {
        padding: 4rem var(--spacing);
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Tablet --- */
@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Desktop enhancements --- */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.25rem;
    }
}

/* --- Nav toggle animation --- */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- No photos placeholder --- */
.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-light);
}

.gallery-placeholder svg {
    width: 64px;
    height: 64px;
    fill: #ccc;
    margin-bottom: 1rem;
}
