/* ============================================================
   MowScout Design System
   ============================================================ */

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

:root {
    --green-dark: #1a3a2a;
    --green-mid: #2d6a4f;
    --green-light: #52b788;
    --green-pale: #b7e4c7;
    --cream: #f8f6f0;
    --white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --border: #e0ddd5;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

/* ============================================================
   Navigation
   ============================================================ */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(248, 246, 240, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--green-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--green-mid);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

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

.nav-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--green-mid);
    background: var(--green-pale);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green-mid);
    background: var(--green-pale);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ============================================================
   Search Card / Form
   ============================================================ */

.search-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    text-align: left;
}

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

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--green-light);
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.services-group {
    margin-bottom: 1.5rem;
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.chip-check {
    cursor: pointer;
}

.chip-check input {
    display: none;
}

.chip {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-secondary);
    transition: all 0.2s;
    user-select: none;
}

.chip-check input:checked + .chip {
    background: var(--green-pale);
    border-color: var(--green-light);
    color: var(--green-dark);
    font-weight: 600;
}

.chip:hover {
    border-color: var(--green-light);
}

.btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    background: var(--green-mid);
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

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

.btn-primary:active {
    transform: scale(0.99);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary.loading {
    pointer-events: none;
}

.btn-secondary {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--green-light);
    color: var(--green-mid);
}

/* ============================================================
   How It Works
   ============================================================ */

.section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--green-dark);
    margin-bottom: 2.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--green-pale);
    color: var(--green-dark);
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.1rem;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================================
   Results Section
   ============================================================ */

.results-section {
    padding-top: 2rem;
}

.results-header {
    margin-bottom: 1.5rem;
}

.results-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.results-title-row h2 {
    font-size: 1.6rem;
    color: var(--green-dark);
}

.results-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-controls label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sort-controls select {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.filter-check input[type="checkbox"] {
    accent-color: var(--green-mid);
    width: 16px;
    height: 16px;
}

.rating-filter {
    gap: 0.4rem;
}

.rating-filter select {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--cream);
    outline: none;
}

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

/* ============================================================
   Provider Card
   ============================================================ */

.provider-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

.provider-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-pale);
}

.provider-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.provider-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.provider-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-dark);
}

.provider-badges {
    display: flex;
    gap: 0.35rem;
}

.badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-licensed {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-insured {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-booking {
    background: #fff3e0;
    color: #e65100;
}

.provider-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stars {
    color: #f59e0b;
    letter-spacing: -1px;
}

.provider-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.provider-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.provider-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.service-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: var(--cream);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.service-tag.matched {
    background: var(--green-pale);
    color: var(--green-dark);
    border-color: var(--green-light);
}

.provider-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    min-width: 140px;
}

.price-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-dark);
}

.price-freq {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.btn-quote {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--green-mid);
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-quote:hover {
    background: var(--green-dark);
}

/* No results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-results-icon {
    margin-bottom: 1rem;
    opacity: 0.4;
}

.no-results h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ============================================================
   Trust / Stats Section
   ============================================================ */

.trust-section {
    padding: 3rem 2rem;
    max-width: 900px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.trust-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--green-mid);
}

.trust-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ============================================================
   Modal
   ============================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--cream);
}

.modal-provider-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.modal-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 0.75rem;
}

.modal-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.modal-pricing-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.modal-pricing-table td {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.modal-pricing-table tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    color: var(--green-dark);
}

.modal-contact {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: opacity 0.2s;
}

.modal-contact a:hover {
    opacity: 0.85;
}

.modal-contact .btn-call {
    background: var(--green-mid);
    color: var(--white);
}

.modal-contact .btn-web {
    background: var(--cream);
    color: var(--green-dark);
    border: 1.5px solid var(--border);
}

/* ============================================================
   Footer
   ============================================================ */

footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 2rem;
    margin-top: 2rem;
}

footer .footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .logo {
    color: var(--white);
    font-size: 1.1rem;
}

footer .logo-icon {
    background: var(--green-mid);
    width: 28px;
    height: 28px;
}

.footer-tagline {
    font-size: 0.82rem;
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.5);
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   Loading Spinner
   ============================================================ */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    nav {
        padding: 0.85rem 1.25rem;
    }

    .hero {
        padding: 6rem 1.25rem 3rem;
        min-height: auto;
    }

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

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

    .hero-sub br {
        display: none;
    }

    .search-card {
        padding: 1.25rem;
    }

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

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

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

    .provider-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .provider-price-col {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: auto;
    }

    .price-amount {
        font-size: 1.6rem;
    }

    .results-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    footer .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .results-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .checkbox-row {
        gap: 0.4rem;
    }

    .chip {
        font-size: 0.78rem;
        padding: 0.4rem 0.75rem;
    }
}
