/* ==========================================================================
   FRESHNEST CLEANING CO. - PREMIUM LOCAL SERVICE CSS DESIGN SYSTEM
   ========================================================================== */

/* 1. Theme Variables & Design Tokens */
:root {
    /* Fresh Curated Colors (Mint, Teal & Slate) */
    --clr-bg-primary: #ffffff;
    --clr-bg-secondary: #f8fafc; /* Cool slate white */
    --clr-bg-dark: #0f172a;      /* Deep navy slate */
    --clr-bg-card-dark: #1e293b; /* Medium slate */
    
    --clr-txt-primary: #0f172a;  /* Deep charcoal slate */
    --clr-txt-secondary: #475569;/* Slate grey */
    --clr-txt-light: #f8fafc;
    --clr-txt-muted: #94a3b8;
    
    --clr-accent: #0d9488;       /* Clean Mint Teal */
    --clr-accent-hover: #0f766e;
    --clr-accent-light: #f0fdfa; /* Soft teal white */
    --clr-accent-gold: #eab308;  /* Shine Gold for trust stats */
    --clr-border: #e2e8f0;       /* Soft borders */
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Global Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Global Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--clr-bg-primary);
    color: var(--clr-txt-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--clr-txt-primary);
}

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

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

/* Section Dividers */
section {
    padding: 4.5rem 0;
}

.sub-title {
    display: inline-block;
    color: var(--clr-accent);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.section-title-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-lead {
    color: var(--clr-txt-secondary);
    font-size: 1.1rem;
}

/* 3. Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-txt-light);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}

.btn-secondary {
    background-color: var(--clr-bg-dark);
    color: var(--clr-txt-light);
}

.btn-secondary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--clr-accent);
    color: var(--clr-txt-light);
}

.btn-full {
    width: 100%;
}

/* 4. Header & Navigation */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--clr-border);
    position: relative;
    z-index: 100;
    backdrop-filter: blur(8px);
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 850;
    color: var(--clr-txt-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.accent-dot {
    width: 10px;
    height: 10px;
    background-color: var(--clr-accent);
    border-radius: var(--radius-full);
}

.nav-menu {
    display: none; /* Hidden on mobile & tablet */
    align-items: center;
    gap: 1.75rem;
}

.nav-menu a {
    font-weight: 500;
    color: var(--clr-txt-secondary);
}

.nav-menu a:hover {
    color: var(--clr-accent);
}

.header-phone {
    display: flex;
    align-items: center;
}

.phone-link-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--clr-accent-light);
    color: var(--clr-accent-hover);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.phone-link-pill:hover {
    background-color: var(--clr-accent);
    color: var(--clr-txt-light);
    transform: translateY(-1px);
}

.nav-cta {
    background-color: var(--clr-accent) !important;
    color: var(--clr-txt-light) !important;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3) !important;
    border: none !important;
    padding: 0.55rem 1.35rem !important;
    font-size: 0.95rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 700 !important;
}

/* Phone link text hides on screen sizes smaller than 400px and tablets up to 1023px */
@media (max-width: 400px), (min-width: 768px) and (max-width: 1023px) {
    .phone-link-pill .phone-number-text {
        display: none;
    }
    .phone-link-pill {
        padding: 0.5rem 0.6rem;
        border-radius: var(--radius-full);
    }
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    width: 24px;
    height: 3px;
    background-color: var(--clr-txt-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

/* Mobile Menu Open state animation */
.mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 5. Hero Section (Mobile First) */
.hero-section {
    background-color: var(--clr-bg-secondary);
    padding: 2.5rem 0 3.5rem 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--clr-accent-light);
    color: var(--clr-accent-hover);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.hero-content h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--clr-txt-secondary);
    margin-bottom: 1.75rem;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.trust-pill {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-txt-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trust-check {
    color: var(--clr-accent);
    font-weight: bold;
}

.hero-graphic-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* 6. Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

.service-card {
    background-color: var(--clr-bg-secondary);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-accent-light);
}

.featured-service {
    background-color: var(--clr-bg-dark);
    color: var(--clr-txt-light);
    border: 2px solid var(--clr-accent);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background-color: var(--clr-accent-gold);
    color: var(--clr-txt-primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-service h3 {
    color: var(--clr-txt-light);
}

.featured-service .service-description {
    color: var(--clr-txt-muted);
}

.service-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--clr-accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.featured-service .service-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

.service-description {
    color: var(--clr-txt-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.service-features li {
    position: relative;
    padding-left: 1.25rem;
}

.service-features li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--clr-accent);
}

.featured-service .service-features li::before {
    color: var(--clr-accent-gold);
}

/* 7. Why Choose Us */
.why-choose-us-section {
    background-color: var(--clr-bg-secondary);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.why-card {
    background-color: var(--clr-bg-primary);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.why-num {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-accent-light);
    line-height: 1;
}

.why-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--clr-txt-secondary);
}

/* 8. Service Area Cities */
.cities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.city-card {
    background-color: var(--clr-bg-secondary);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.city-card h4 {
    font-size: 1.35rem;
    color: var(--clr-accent-hover);
    margin-bottom: 0.5rem;
}

.city-neighborhoods {
    font-size: 0.85rem;
    color: var(--clr-txt-secondary);
}

/* 9. Simple Process Section */
.process-section {
    background-color: var(--clr-bg-secondary);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.process-card {
    text-align: center;
    padding: 1rem;
}

.process-icon {
    width: 60px;
    height: 60px;
    background-color: var(--clr-accent);
    color: var(--clr-txt-light);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.process-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.process-card p {
    font-size: 0.9rem;
    color: var(--clr-txt-secondary);
    max-width: 260px;
    margin: 0 auto;
}

/* 10. Quote Booking Form */
.quote-form-section {
    background-color: var(--clr-bg-primary);
    border-top: 1px solid var(--clr-border);
}

.quote-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.quote-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.quote-info p {
    color: var(--clr-txt-secondary);
    margin-bottom: 2rem;
}

.contact-quick-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-block {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.25rem;
    background-color: var(--clr-bg-secondary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.info-block h5 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.info-block p {
    font-size: 0.85rem;
    color: var(--clr-txt-secondary);
}

.quote-form-wrapper {
    background-color: var(--clr-bg-secondary);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.quote-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-txt-secondary);
}

.required {
    color: #ef4444;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--clr-txt-primary);
    background-color: var(--clr-bg-primary);
    transition: var(--transition-fast);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Success Message Classes */
.hidden {
    display: none !important;
}

.form-success-alert {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.form-success-alert h4 {
    font-size: 1.35rem;
    color: #0d9488;
    margin-bottom: 0.5rem;
}

.form-success-alert p {
    color: var(--clr-txt-secondary);
    font-size: 0.9rem;
}

/* 11. Footer */
.main-footer {
    background-color: var(--clr-bg-dark);
    color: var(--clr-txt-muted);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.demo-disclaimer {
    color: var(--clr-accent-light);
    opacity: 0.85;
    font-weight: 500;
}

/* ==========================================================================
   12. MEDIA QUERIES (RESPONSIVE RESPONSIVENESS)
   ========================================================================== */

/* Tablet Layout (768px and up) */
@media (min-width: 768px) {
    /* Hero layout */
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-ctas {
        flex-direction: row;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Why choose us cards */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Cities footprint */
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Booking grid block */
    .quote-container {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 2rem;
    }
}

/* Desktop Large Layout (1024px and up) */
@media (min-width: 1024px) {
    /* Header toggling on desktop */
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
    }
    
    /* Why Us 4 columns */
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Cities footprint 4 columns */
    .cities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Booking form row layout (two columns on desktop) */
    .form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    /* Process 3 columns */
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.75rem 1.25rem;
    }
    
    .quote-form-wrapper {
        padding: 1.5rem 1rem;
    }
}
