/* ================================
   Stress-Less Cleaning — styles.css
   ================================ */
/* Theme */
:root {
    --bg: #f8fffe;
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --accent-teal: #14b8a6;
    --fresh-green: #22c55e;
    --muted: #64748b;
    --container: 1100px;
    --brand-h: 72px;
    --brand-gap: 24px;
    --header-bg: #ffffff;
    --cta-green: #22c55e;
    --cta-green-hover: #16a34a;
    --text-dark: #0f172a;
    --text-light: #475569;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
    line-height: 1.5;
    margin: 0;
    background: linear-gradient(180deg,var(--bg),#ffffff);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
}

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

/* Header */
/* Header modern layout */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    width: 100%;
    min-height: 72px; /* Ensure consistent header height */
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: var(--brand-h);
    padding: 0.5rem 0;
}

.brand-wordmark {
    height: 68px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    margin-right: 0.3rem;
    display: block;
    transition: opacity 0.2s ease;
}

.header-logo a:hover .brand-wordmark {
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 500;
    padding: .38rem .7rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.nav a:hover {
    background: rgba(30,64,175,0.06);
    color: var(--primary-blue);
}

.nav a.active {
    color: var(--primary-blue);
    border-bottom: 3px solid var(--primary-blue);
    background: rgba(30,64,175,0.03);
    font-weight: 600;
}

.cta {
    background: var(--cta-green);
    color: #fff;
    padding: .5rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-left: 1.2rem;
    transition: background .15s;
}

.cta:hover {
    background: var(--cta-green-hover);
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
    margin-left: auto;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Removed duplicate nav styles - using main nav styles above */

/* Floating brand */
/* Remove floating brand, use flex header */
/* Hero */
/* Hero modern style */
.hero {
    padding: 2.5rem 0 2.5rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 60%, #ffffff 100%);
    display: flex;
    align-items: center;
    min-height: 320px;
    justify-content: center;
}

.hero .container {
    max-width: 700px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

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

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin: 0 0 1.2rem 0;
    color: var(--text-dark);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.hero-description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero .lead {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 2.2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn.primary {
    background: var(--cta-green);
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow: 0 2px 8px rgba(34,197,94,0.08);
}

.btn.primary:hover {
    background: var(--cta-green-hover);
}

.lead {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .2s ease;
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
    min-height: 44px; /* Minimum touch target */
    line-height: 1.2;
}

.btn.primary {
    background: var(--primary-blue);
    color: #fff;
}

.btn.primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-1px);
}

.btn.outline {
    background: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn.outline:hover {
    background: var(--blue);
    color: #fff;
}

/* Sections & headings */
main section + section {
    border-top: 0 solid transparent;
}

h2 {
    font-size: 2.2rem;
    color: var(--blue);
    text-align: center;
    margin: 0 0 1rem;
    font-weight: 600;
}

/* Cards / Services */
.services {
    padding: 2rem 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(18,32,43,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(18,32,43,0.14);
}

/* What Sets Us Apart */
.services-overview {
    padding: 3rem 0;
    background: #fff;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(191,163,255,0.05), rgba(43,108,176,0.02));
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(43,108,176,0.08);
    transition: box-shadow .3s ease, transform .25s ease;
}

.service-card:hover {
    box-shadow: 0 8px 25px rgba(18,32,43,0.12);
    transform: translateY(-2px);
}

.service-card h3 {
    color: var(--blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #4b5563;
    line-height: 1.6;
}

/* New Service Card Links */
.service-card-link {
    padding: 2rem;
    border-radius: 12px;
    background: #fafbfc;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    text-align: left;
}

.service-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card-link h3 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #233;
}

.service-card-link p {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

.service-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-highlights li {
    padding: 0.4rem 0;
    color: #555;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.service-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(4px);
}

/* Service Page Layouts */
.service-page-layout {
    padding-top: 0;
    max-width: 1200px;
}

.service-content-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

.service-sidebar {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 2rem;
}

.service-sidebar h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.service-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-nav-item {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 6px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.service-nav-item:hover {
    background: rgba(30, 64, 175, 0.05);
    border-left-color: var(--accent-teal);
}

.service-nav-item.active {
    color: white;
    background: var(--primary-blue);
    border-left-color: var(--accent-teal);
}

.service-nav-item small {
    color: #666;
    opacity: 0.8;
}

.service-nav-item.active small {
    color: white;
    opacity: 0.9;
}

/* Service page mobile responsiveness */
@media (max-width: 800px) {
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-sidebar {
        position: static;
        order: 2;
        margin-top: 2rem;
    }
    
    .service-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .service-nav-item {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        text-align: center;
        padding: 0.5rem;
    }
}

@media (max-width: 420px) {
    .service-nav {
        flex-direction: column;
    }
    
    .service-nav-item {
        min-width: auto;
    }
}

/* About / Value */
.about-content {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(191,163,255,0.03), rgba(43,108,176,0.01));
}

.content-grid {
    max-width: 800px;
    margin: 0 auto;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #374151;
}

/* Testimonials */
.testimonials {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(191,163,255,0.08), rgba(43,108,176,0.03));
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--blue);
}

blockquote {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(90deg, rgba(191,163,255,0.05), rgba(43,108,176,0.02));
    padding: 1rem;
    border-left: 4px solid var(--lavender);
    border-radius: 6px;
    color: var(--muted);
    font-style: italic;
    font-size: 1.1rem;
}

.testimonials cite {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--blue);
    font-style: normal;
}

/* CTA band variation */
.cta-band {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, rgba(191,163,255,0.08), rgba(43,108,176,0.05));
}

.center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.small {
    color: var(--muted);
    font-size: .9rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(0,0,0,0.04);
    padding: 1.25rem 0;
    margin-top: 2rem;
    background: #fff;
}

/* Forms (for request page parity) */
form {
    max-width: 700px;
    background: #fff;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(18,32,43,0.04);
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: .75rem;
}

/* Request Form Styles */
.page-title {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title h1 {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.request-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.request-intro {
    flex: 1;
    padding: 2.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.request-intro .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #505a67;
    margin-bottom: 1.5rem;
}

.request-note {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #666;
}

.request-form-section {
    flex: 1.5;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.request-form-section h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2c3e50;
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.request-form .form-row {
    margin-bottom: 1.2rem;
}

.request-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #4a5568;
    font-weight: 500;
}

.request-form input,
.request-form select,
.request-form textarea {
    padding: 0.75rem;
    font-size: 1rem;
    width: 100%;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    transition: all 0.2s;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

label {
    font-weight: 600;
    margin-bottom: .25rem;
}

input,
textarea,
select {
    padding: .6rem;
    border-radius: 6px;
    border: 1px solid #e6eef8;
}

.form-actions {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
}

.result {
    margin-top: 1rem;
    padding: .75rem;
    border-radius: 6px;
    background: #ebf8ff;
    border: 1px solid rgba(43,108,176,0.08);
}

.result.success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.result.error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

/* Motion & responsive tweaks */
@media (prefers-reduced-motion:reduce){
    .floating-brand a:hover .brand-wordmark {
        transform: none;
    }

    .btn,
    .card,
    .service-card {
        transition: none;
    }
}

@media (max-width:900px){
    .header-inner {
        padding: 0.5rem 0.5rem;
        position: relative;
    }

    .brand-wordmark {
        height: 56px;
        max-width: 280px;
    }
    
    .header-logo {
        gap: 0.4rem;
    }

    .nav {
        gap: 0.4rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Mobile navigation - move from 800px to 900px */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed !important;
        top: 73px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        background: white !important;
        background-color: white !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999 !important;
        border-top: 1px solid #eee;
        flex-wrap: nowrap !important;
        max-height: 400px;
        overflow: visible !important;
        display: flex !important;
    }

    .nav.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }

    .nav a {
        padding: 0.8rem 1rem !important;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
        width: 100% !important;
        font-size: 1rem !important;
        border-radius: 0 !important;
        display: block !important;
        margin: 0 !important;
        color: var(--text-dark) !important;
        text-decoration: none !important;
        background: transparent !important;
    }
    
    .nav a:hover {
        background: rgba(30,64,175,0.06) !important;
        color: var(--primary-blue) !important;
    }
    
    .nav a.active {
        background: rgba(30,64,175,0.1) !important;
        color: var(--primary-blue) !important;
        font-weight: 600 !important;
    }

    .nav .cta {
        margin: 1rem 0 0 0 !important;
        padding: 0.8rem 1rem !important;
        text-align: center;
        border-radius: 8px !important;
        display: block !important;
        width: 100%;
        border-bottom: none !important;
    }
}

@media (max-width:800px){
    .hero {
        padding: 2rem 0;
        min-height: 280px;
    }

    .hero .container {
        padding: 1rem;
        max-width: 90%;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .lead {
        font-size: 1rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-text p {
        font-size: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    /* Request form mobile */
    .request-content {
        flex-direction: column;
        gap: 2rem;
    }

    .request-intro {
        padding: 1.5rem;
    }

    .request-intro .lead {
        font-size: 1.1rem;
    }

    .request-note {
        font-size: 1rem;
    }

    .request-form-section {
        padding: 1.5rem;
    }

    .request-form-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .page-title h1 {
        font-size: 2.5rem;
    }
}

@media (max-width:700px){
    :root {
        --brand-h: clamp(60px, 6vw, 72px);
    }

    .floating-brand {
        left: .75rem;
        top: .5rem;
    }
}

@media (max-width:420px){
    .header-inner {
        gap: .6rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav {
        gap: 0.3rem;
        flex-wrap: wrap;
    }

    .nav a {
        padding: 0.3rem 0.4rem;
        font-size: 0.85rem;
    }

    .cta {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
        min-width: 130px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-actions {
        gap: 0.8rem;
    }

    .hero .container {
        padding: 1rem 0.5rem;
    }

    .service-card, .card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .quote-form-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Mobile form optimizations */
    .request-content {
        margin: 0 0.5rem;
    }

    .request-intro {
        padding: 1rem;
    }

    .request-form-section {
        padding: 1rem;
    }

    .request-form input,
    .request-form select,
    .request-form textarea {
        padding: 0.65rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Quote form mobile */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }

    .page-title h1 {
        font-size: 2rem;
    }
}

/* Medium phones and tablets */
@media (max-width: 640px) {
    .brand-wordmark {
        height: 52px;
        max-width: 240px;
    }
    
    .header-inner {
        padding: 0.4rem 0.75rem;
    }
}

/* Small phones */
@media (max-width: 520px) {
    .brand-wordmark {
        height: 46px;
        max-width: 200px;
    }
    
    .header-inner {
        padding: 0.4rem 0.5rem;
    }
    
    .header-logo {
        gap: 0.25rem;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .brand-wordmark {
        height: 42px;
        max-width: 180px;
    }
    
    .header-inner {
        padding: 0.3rem 0.5rem;
        min-height: 60px; /* Smaller header on very small screens */
    }
    
    .header-logo {
        gap: 0.2rem;
    }
    
    .mobile-menu-toggle {
        padding: 0.4rem;
    }
    
    .nav {
        top: 60px; /* Match smaller header height */
    }
    
    .nav a {
        padding: 0.7rem 0.8rem;
        font-size: 0.95rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .brand-wordmark {
        height: 38px;
        max-width: 160px;
    }
    
    .header-inner {
        padding: 0.25rem 0.4rem;
        min-height: 56px;
    }
    
    .mobile-menu-toggle {
        padding: 0.3rem;
    }
    
    .nav {
        top: 56px;
        padding: 0.8rem;
    }
    
    .nav a {
        padding: 0.6rem 0.7rem;
        font-size: 0.9rem;
    }
    
    .nav .cta {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}
