/* ==========================================================================
   LOCAL SCALE — Core Design System & Business Theme
   High-Performance Digital Growth Engine for Carolina Businesses
   ========================================================================== */

:root {
    --primary: #0a0f1d;
    --primary-light: #161f36;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --emerald: #10b981;
    --emerald-light: #ecfdf5;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-dark: #1e293b;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --max-w: 1160px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

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

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Top Announcement / Value Bar
   -------------------------------------------------------------------------- */
.top-bar {
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 8px 16px;
    text-align: center;
    border-bottom: 1px solid #1e293b;
}

.top-bar strong {
    color: #38bdf8;
}

.top-bar a {
    color: #f8fafc;
    text-decoration: underline;
    margin-left: 6px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
header.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-logo .logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #2563eb, #0f172a);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
}

.brand-logo span.highlight {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.mobile-cta-item {
    display: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff !important;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-dark {
    background: var(--primary);
    color: #ffffff !important;
}

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

.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-alt);
    border-color: var(--text-muted);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 1.5rem;
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-pill .dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 850px;
}

.hero h1 span.gradient-text {
    background: linear-gradient(135deg, #1e40af, #2563eb 60%, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 34px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Sections General
   -------------------------------------------------------------------------- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-dark {
    background: #090d16;
    color: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-header .tagline {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-dark .section-header h2 {
    color: #ffffff;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section-dark .section-header p {
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Service Cards & Grids
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    position: relative;
}

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

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 22px;
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.service-features li {
    font-size: 0.88rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.service-features li::before {
    content: "✓";
    color: var(--emerald);
    font-weight: 800;
}

.service-link {
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   Comparison Table Section
   -------------------------------------------------------------------------- */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.comp-box {
    border-radius: var(--radius-lg);
    padding: 36px 32px;
}

.comp-box.bad {
    background: #ffffff;
    border: 1px solid var(--border);
}

.comp-box.good {
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #1e293b;
    position: relative;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.comp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.comp-box.bad .comp-badge {
    background: #fee2e2;
    color: #991b1b;
}

.comp-box.good .comp-badge {
    background: var(--emerald-light);
    color: #065f46;
}

.comp-box h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.comp-box p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.comp-box.bad p { color: var(--text-muted); }
.comp-box.good p { color: #94a3b8; }

.comp-list {
    list-style: none;
}

.comp-list li {
    font-size: 0.95rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comp-box.bad .comp-list li span.icon { color: #ef4444; font-weight: bold; }
.comp-box.good .comp-list li span.icon { color: var(--emerald); font-weight: bold; }

/* --------------------------------------------------------------------------
   Process Steps
   -------------------------------------------------------------------------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.process-step {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    position: relative;
}

.step-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1;
    margin-bottom: 12px;
}

.process-step h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

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

/* --------------------------------------------------------------------------
   Case Study & Local Proof Card
   -------------------------------------------------------------------------- */
.case-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.case-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.case-card p {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.case-stats {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.case-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 12px;
}

.case-stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.case-stat-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: #38bdf8;
}

/* --------------------------------------------------------------------------
   Pricing / Packages Grid
   -------------------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.pricing-card .price-term {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-card p.tier-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.pricing-card ul li {
    font-size: 0.92rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pricing-card ul li::before {
    content: "✓";
    color: var(--emerald);
    font-weight: bold;
}

/* --------------------------------------------------------------------------
   Contact & Lead Intake Form
   -------------------------------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
}

.contact-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.contact-direct-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.contact-direct-card h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.contact-direct-card ul {
    list-style: none;
}

.contact-direct-card ul li {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #ffffff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.alert-box {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert-success {
    background: var(--emerald-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer.site-footer {
    background: #090d16;
    color: #94a3b8;
    padding: 64px 0 32px;
    border-top: 1px solid #1e293b;
    font-size: 0.92rem;
}

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

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-brand p {
    color: #64748b;
    max-width: 320px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   Mobile & Responsive Enhancements (Tailored Mobile UX)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero h1 { font-size: 2.3rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 32px; }
    .case-card { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Compact Top Bar */
    .top-bar { font-size: 0.78rem; padding: 6px 12px; line-height: 1.4; }

    /* Streamlined Mobile Header */
    .nav-wrapper { height: 64px; }
    .brand-logo { font-size: 1.1rem; }
    .brand-logo .logo-mark { width: 30px; height: 30px; font-size: 0.85rem; }
    
    .nav-actions { display: none; } /* Kept clean in header bar; accessible inside drawer */
    .menu-toggle { display: block; font-size: 1.4rem; padding: 6px 10px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px 20px 28px;
        border-bottom: 2px solid var(--border);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
        gap: 0;
        z-index: 1001;
    }

    .nav-links.open { display: flex; }

    .mobile-cta-item {
        display: block;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 4px;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--primary);
    }

    .nav-links a.active {
        color: var(--accent);
    }

    /* Hero Section Mobile Polish */
    .hero { padding: 40px 0 36px; }
    .hero-pill { font-size: 0.78rem; padding: 5px 12px; margin-bottom: 14px; }
    .hero h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
    .hero-sub { font-size: 1.05rem; margin-bottom: 24px; line-height: 1.55; }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 32px;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
        padding: 13px 20px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding-top: 24px;
    }

    .stat-item h3 { font-size: 1.5rem; margin-bottom: 4px; }
    .stat-item p { font-size: 0.8rem; line-height: 1.4; }

    /* Sections General */
    .section { padding: 48px 0; }
    .section-header { margin-bottom: 36px; }
    .section-header .tagline { font-size: 0.75rem; margin-bottom: 6px; }
    .section-header h2 { font-size: 1.7rem; margin-bottom: 12px; }
    .section-header p { font-size: 0.95rem; }

    /* Service Cards */
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card { padding: 24px 20px; border-radius: var(--radius-md); }
    .service-card h3 { font-size: 1.25rem; }
    .service-card p { font-size: 0.9rem; margin-bottom: 16px; }

    /* Comparison Box */
    .comparison-grid { grid-template-columns: 1fr; gap: 20px; }
    .comp-box { padding: 24px 20px; border-radius: var(--radius-md); }
    .comp-box h3 { font-size: 1.25rem; }
    .comp-list li { font-size: 0.88rem; margin-bottom: 10px; }

    /* Process Steps */
    .process-grid { grid-template-columns: 1fr; gap: 16px; }
    .process-step { padding: 20px 18px; }
    .step-num { font-size: 1.8rem; }
    .process-step h4 { font-size: 1.05rem; }

    /* Case Study Card */
    .case-card { padding: 24px 20px; border-radius: var(--radius-md); }
    .case-card h3 { font-size: 1.4rem; }
    .case-card p { font-size: 0.95rem; margin-bottom: 18px; }
    .case-stats { padding: 18px 16px; gap: 12px; }
    .case-stat-val { font-size: 1.1rem; }

    /* Pricing Tiers */
    .pricing-grid { grid-template-columns: 1fr; gap: 24px; }
    .pricing-card { padding: 28px 20px; border-radius: var(--radius-md); }
    .pricing-card .price { font-size: 2rem; }

    /* Forms */
    .form-box { padding: 22px 18px; border-radius: var(--radius-md); }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-group { margin-bottom: 16px; }
    .form-group label { font-size: 0.85rem; }
    .form-group input,
    .form-group select,
    .form-group textarea { padding: 10px 12px; font-size: 0.92rem; }
    .btn-lg { width: 100%; }

    /* Footer */
    footer.site-footer { padding: 48px 0 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-brand p { max-width: 100%; font-size: 0.88rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}
