/*
Theme Name: Local Service Engine
Theme URI: https://github.com/antigravity/local-service-engine
Author: Antigravity
Author URI: https://github.com/antigravity
Description: A high-performance, SEO-optimized WordPress theme for local services with dynamic city routing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: local-service-engine
Tags: local-seo, dynamic-routing, pricing-table, fast
*/

:root {
    /* Colors - ALL PURPLE THEME */
    --color-primary: #6B21A8;
    /* Deep Purple */
    --color-primary-dark: #4C1D95;
    /* Darker Purple */
    --color-secondary: #A855F7;
    /* Lighter Purple */
    --color-accent: #D946EF;
    /* Fuchsia/Magenta (instead of Orange) */
    --color-text: #1F2937;
    --color-text-light: #4B5563;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F3E8FF;
    /* Light Purple Tint Background */
    --color-border: #E9D5FF;
    /* Purple Tint Border */
    --color-success: #10B981;

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 70px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(107, 33, 168, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(107, 33, 168, 0.1), 0 2px 4px -1px rgba(107, 33, 168, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(107, 33, 168, 0.1), 0 4px 6px -2px rgba(107, 33, 168, 0.05);
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    /* Best for legibility */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary-dark);
    /* Purple Headings */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--color-primary);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.main-navigation a {
    color: var(--color-text);
    font-weight: 600;
}

.main-navigation a:hover {
    color: var(--color-accent);
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(217, 70, 239, 0.39);
}

.btn-primary:hover {
    background-color: #C026D3;
    /* Darker Fuchsia */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 70, 239, 0.23);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--color-primary);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.best-value {
    border: 2px solid var(--color-accent);
    transform: scale(1.05);
    /* Slight pop */
    z-index: 10;
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: white;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-header {
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.price-period {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.features-list {
    list-style: none;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    /* Pushes button to bottom */
}

.features-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list li::before {
    content: "✓";
    color: var(--color-success);
    font-weight: bold;
}

/* Cities List */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-sm);
}

.city-link {
    display: block;
    background: white;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.city-link:hover {
    border-color: var(--color-primary);
    background-color: var(--color-bg-alt);
}

/* Footer */
.site-footer {
    background: #111827;
    color: #F3F4F6;
    padding: var(--spacing-xl) 0 var(--spacing-xl);
    /* Extra padding bottom for sticky mobile */
    margin-top: var(--spacing-xl);
}

.footer-credits {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 0.8rem;
    color: #9CA3AF;
}

/* Sticky Mobile CTA */
.mobile-sticky-cta {
    display: none;
    /* Desktop hidden */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
    /* Re-enabled in query */
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .mobile-sticky-cta {
        display: block;
        /* Show on mobile */
    }

    .site-footer {
        padding-bottom: 80px;
        /* Space for sticky CTA */
    }

    .main-navigation {
        display: none;
        /* Simplified for now - can be toggled */
    }

    .pricing-card.best-value {
        transform: scale(1);
        /* Reset scaling on mobile */
    }
}