:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg: #f7f8fc;
    --bg-white: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e5e7eb;
    --green: #059669;
    --green-light: #d1fae5;
    --red: #dc2626;
    --max-width: 1200px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-xl: 0 24px 50px rgba(0,0,0,0.12);
    --radius: 10px;
    --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

a { text-decoration: none; color: inherit; }

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

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

/* ============ HEADER ============ */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.logo-text span {
    color: var(--text-secondary);
    font-weight: 500;
}

nav { display: none; }

.header-cta .btn-quote {
    background: var(--accent);
    color: var(--text);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.header-cta .btn-quote:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    nav {
        display: flex;
        gap: 1.5rem;
        font-weight: 600;
        font-size: 0.9rem;
    }
    nav a { color: var(--text-secondary); transition: color 0.2s; }
    nav a:hover { color: var(--primary); }
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(160deg, #0c1d4d 0%, #1e3a8a 30%, #1e40af 60%, #2563eb 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
    max-width: 540px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Hero Quote Form */
.hero-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-form h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.hero-form .form-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30,64,175,0.08);
    background: var(--bg-white);
}

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

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
    text-transform: none;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5,150,105,0.35);
}

.form-trust {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

@media (min-width: 768px) {
    .hero { padding: 4rem 0; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
}

/* ============ STATS BAR ============ */
.stats-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

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

.stat-item {
    padding: 0.5rem;
}

.stat-item strong {
    display: block;
    font-size: 1.75rem;
    color: var(--primary);
    letter-spacing: -0.03em;
    font-weight: 800;
}

.stat-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============ SECTIONS ============ */
section { padding: 3.5rem 0; }
section:nth-child(even) { background: var(--bg-white); }

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

/* ============ COMPANY CARDS ============ */
.companies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.company-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.25s ease;
    position: relative;
}

.company-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(30,64,175,0.2);
    transform: translateY(-2px);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.company-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.company-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
}

.company-rating .stars { color: var(--accent); }

.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.company-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.company-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tag {
    background: #eff6ff;
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.company-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-card {
    flex: 1;
    padding: 0.6rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-card-primary {
    background: var(--primary);
    color: white;
}

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

.btn-card-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-card-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (min-width: 768px) {
    .companies-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ HOW IT WORKS ============ */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.step {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(30,64,175,0.2);
}

.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ PRICING TABLE ============ */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.2s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pricing-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pricing-range {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

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

@media (min-width: 768px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ FAQ ============ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.faq-question {
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
    content: '−';
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 0.75rem;
}

/* ============ CITY LINKS ============ */
.city-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.city-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.city-link:hover {
    background: #eff6ff;
    color: var(--primary);
    border-color: rgba(30,64,175,0.1);
}

.city-link i {
    font-size: 0.7rem;
    color: var(--primary-light);
}

@media (min-width: 768px) {
    .city-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: linear-gradient(160deg, #0c1d4d 0%, #1e3a8a 50%, #2563eb 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--text);
    padding: 0.95rem 2.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245,158,11,0.4);
}

/* ============ FOOTER ============ */
footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============ CONTENT PAGES ============ */
.page-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.breadcrumb a { color: var(--primary-light); }
.breadcrumb a:hover { text-decoration: underline; }

.content-body {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.content-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 0.75rem;
}

.content-body h3 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.5rem;
}

.content-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.content-body ul, .content-body ol {
    margin: 0.75rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.content-body li { margin-bottom: 0.4rem; }

/* Sidebar form for content pages */
.content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.sidebar-form {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
    height: fit-content;
}

@media (min-width: 992px) {
    .content-layout { grid-template-columns: 1fr 340px; }
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }

/* ============ PHONE BUTTON (header) ============ */
.btn-phone {
    background: var(--green);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-phone:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.phone-text { display: none; }

@media (min-width: 640px) {
    .phone-text { display: inline; }
}

/* ============ MOBILE MENU ============ */
.mobile-menu-btn {
    display: none;
    position: absolute;
    top: 0.75rem;
    right: 4.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

@media (max-width: 767px) {
    .mobile-menu-btn { display: block; }

    header { position: sticky; top: 0; z-index: 100; }

    nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
    }

    nav.nav-open {
        display: flex !important;
    }

    nav a {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border);
        font-weight: 600;
        color: var(--text);
    }

    nav a:last-child { border-bottom: none; }

    .header-cta .btn-quote .quote-text { display: none; }
    .header-cta .btn-quote { padding: 0.6rem 0.8rem; }
}

/* ============ CALL BAR ============ */
.call-bar {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 1rem 0;
    text-align: center;
}

/* ============ COMPANY PROFILE EXPAND ============ */
.company-profile {
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.profile-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.profile-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.profile-details div {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.profile-details div:last-child { border-bottom: none; }

.profile-details strong {
    color: var(--text);
    font-weight: 600;
}

/* ============ MOBILE STICKY CTA ============ */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem;
    gap: 0.5rem;
}

.mobile-sticky-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}

.sticky-call {
    background: var(--green);
    color: white !important;
}

.sticky-quote {
    background: var(--primary);
    color: white !important;
}

@media (max-width: 767px) {
    .mobile-sticky-cta { display: flex; }
    body { padding-bottom: 70px; }
    footer { padding-bottom: 4rem; }
}

/* ============ THANK YOU ============ */
.thankyou-section {
    text-align: center;
    padding: 4rem 0;
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    background: var(--green-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 1.5rem;
}
