/* ========================================
   Page2Lead - Master Stylesheet
   One CSS to rule them all - Fully Responsive
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --text-dark: #0b1a33;
    --text: #1e293b;
    --text-light: #475569;
    --text-muted: #64748b;
    --background: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #eef2f6;
    --success: #16a34a;
    --warning: #fbbf24;
    --error: #dc2626;
    --shadow-sm: 0 4px 20px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 50px;
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.02em;
}

h1 span {
    color: var(--primary);
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-top: 0.25rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h2.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* ---------- Navigation ---------- */
.navbar {
    background: var(--background);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: clamp(16px, 3vw, 32px);
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .cta-btn {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 16px rgba(37,99,235,0.15);
    transition: all 0.2s;
}

.nav-links .cta-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37,99,235,0.25);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- Hero Section ---------- */
.hero {
    padding: 40px 0 60px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--background) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: start;
}

.hero-content {
    padding-right: 20px;
}

.hero-badge {
    background: var(--bg-gray);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stars {
    color: var(--warning);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* ---------- Feature List ---------- */
.feature-list {
    margin: 28px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
}

.feature-item .check {
    width: 24px;
    height: 24px;
    background: #dbeafe;
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* ---------- Lead Form (Universal) ---------- */
.lead-form {
    background: var(--background);
    padding: clamp(24px, 4vw, 36px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: sticky;
    top: 100px;
}

.lead-form h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--bg-light);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--background);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37,99,235,0.25);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.form-message {
    margin-top: 16px;
    text-align: center;
    font-size: 0.95rem;
    min-height: 24px;
}

/* ---------- Trust Section ---------- */
.trust-section {
    padding: 60px 0;
    background: var(--background);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-card {
    background: var(--bg-light);
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-light);
}

.trust-number {
    font-size: clamp(2rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.trust-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ---------- Services Section ---------- */
.services-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--background);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #dbeafe;
}

.service-icon {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card p {
    margin-bottom: 20px;
}

.service-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    border-top: 1px dashed var(--border);
    padding-top: 16px;
}

/* ---------- Why Choose Us ---------- */
.why-section {
    padding: 60px 0;
    background: var(--background);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-item {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    height: 100%;
}

.why-item h3 {
    font-size: 1.3rem;
    margin: 16px 0 8px;
}

.why-icon {
    font-size: 2.2rem;
}

/* ---------- Service Areas Grid ---------- */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 40px auto;
}

.area-item {
    background: var(--bg-gray);
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ---------- Emergency Box ---------- */
.emergency-box {
    background: #eff6ff;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    margin-top: 24px;
}

.emergency-box p {
    margin: 0;
    font-weight: 500;
}

/* ---------- FAQ Section ---------- */
.faq-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    padding: 24px 28px;
    border: 1px solid var(--border-light);
}

.faq-question {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 80px 0;
    color: white;
    text-align: center;
}

.cta-section.ac { background: linear-gradient(135deg, #1e3a8a, var(--primary)); }
.cta-section.plumber { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.cta-section.electrician { background: linear-gradient(135deg, #854d0e, #eab308); }
.cta-section.cleaning { background: linear-gradient(135deg, #059669, #10b981); }
.cta-section.pest { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 2.4rem);
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 32px;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--text-dark);
    padding: 18px 48px;
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 35px rgba(0,0,0,0.25);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col a {
    color: #9aa9b9;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-col p {
    color: #9aa9b9;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #1e2f44;
    padding-top: 30px;
    text-align: center;
    color: #7f8fa3;
    font-size: 0.9rem;
}

/* ---------- Responsive Design ---------- */
@media screen and (max-width: 1024px) {
    .hero-grid,
    .trust-grid,
    .why-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 20px 0;
        gap: 16px;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .lead-form {
        position: static;
        margin-top: 20px;
    }
    
    .trust-grid,
    .services-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-badge {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .feature-item {
        font-size: 0.95rem;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 24px 16px;
    }
    
    .faq-item {
        padding: 20px 16px;
    }
    
    .cta-btn {
        padding: 16px 32px;
        font-size: 1.1rem;
        width: 100%;
    }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.hidden { display: none; }
.visible { display: block; }