/*
Theme Name: Just Local Marketing
Theme URI: https://justlocalmarketing.com
Author: Just Local Marketing
Author URI: https://justlocalmarketing.com
Description: Custom theme for Just Local Marketing — built for use with Elementor Free. Includes full design system, typography, colors, and page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
License URI: https://justlocalmarketing.com
Text Domain: justlocalmarketing
Tags: elementor, local-seo, business, one-page
*/

/* =============================================
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    --bg:              #F5F4F0;
    --white:           #FFFFFF;
    --ink:             #0D0D0D;
    --ink-2:           #2A2A2A;
    --muted:           #6B6B6B;
    --muted-light:     #9A9A9A;
    --accent:          #1A4FFF;
    --accent-hover:    #0A3AE0;
    --accent-light:    #EEF2FF;
    --green:           #00C97F;
    --green-light:     #E6FAF3;
    --amber:           #F59E0B;
    --border:          rgba(0,0,0,0.08);
    --border-strong:   rgba(0,0,0,0.15);

    --font-base:       'DM Sans', sans-serif;
    --radius-sm:       10px;
    --radius-md:       14px;
    --radius-lg:       20px;
    --radius-xl:       28px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-base);
    background-color: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

body.elementor-page { background-color: var(--bg); }

img { max-width: 100%; height: auto; }
a { transition: color 0.2s ease; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-base);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-top: 0;
}

h1 { font-size: clamp(48px, 7vw, 92px); letter-spacing: -2px; line-height: 1.0; }
h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -1px; }
h3 { font-size: clamp(20px, 2.5vw, 26px); letter-spacing: -0.3px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }

p { line-height: 1.75; color: var(--muted); }

/* =============================================
   ELEMENTOR OVERRIDES — Remove default padding/margin
   ============================================= */
.elementor-section.elementor-section-full_width .elementor-container,
.elementor-section .elementor-container {
    max-width: 1240px;
}

.elementor-widget-container { line-height: inherit; }

/* Prevent Elementor adding extra body padding at top */
.elementor-template-full-width .elementor-section:first-child { margin-top: 0; }

/* =============================================
   CARD SYSTEM
   ============================================= */
.jlm-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.jlm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.09);
    border-color: rgba(26,79,255,0.15);
}
.jlm-card-flat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* =============================================
   BUTTONS
   ============================================= */
.jlm-btn,
.elementor-button.jlm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-base);
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 13px 24px;
    font-size: 14px;
    line-height: 1;
}
.jlm-btn-blue {
    background: var(--accent);
    color: #fff !important;
}
.jlm-btn-blue:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(26,79,255,0.3);
    color: #fff !important;
}
.jlm-btn-outline {
    background: transparent;
    color: var(--ink) !important;
    border: 1.5px solid var(--border-strong);
}
.jlm-btn-outline:hover {
    background: var(--ink);
    color: #fff !important;
    border-color: var(--ink);
}
.jlm-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

/* Elementor button widget compatibility */
.elementor-widget-button .elementor-button {
    font-family: var(--font-base) !important;
    font-weight: 700 !important;
    border-radius: var(--radius-md) !important;
}
.elementor-widget-button .elementor-button.jlm-btn-blue {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
}

/* =============================================
   SECTION SYSTEM
   ============================================= */
.jlm-section { padding: 100px 24px; }
.jlm-section-white { background: var(--white); }
.jlm-section-bg { background: var(--bg); }
.jlm-section-dark { background: var(--ink); }

.jlm-section-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.jlm-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.jlm-eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    flex-shrink: 0;
}

/* =============================================
   NAVIGATION
   ============================================= */
#jlm-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    padding: 20px 24px;
    transition: padding 0.3s ease;
}
.jlm-nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.3s ease;
}
.jlm-nav-inner.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.jlm-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.jlm-nav-logo-icon {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.jlm-nav-logo-text {
    font-family: var(--font-base);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.3px;
    color: var(--ink);
}
.jlm-nav-logo-text span { color: var(--accent); }
.jlm-nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.jlm-nav-links a {
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.jlm-nav-links a:hover { color: var(--ink); }

/* =============================================
   HERO
   ============================================= */
.jlm-hero {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}
.jlm-hero-blob-1 {
    position: absolute;
    top: -100px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(26,79,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.jlm-hero-blob-2 {
    position: absolute;
    bottom: -100px; left: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,201,127,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.jlm-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent);
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}
.jlm-hero-title {
    font-family: var(--font-base);
    font-weight: 800;
    font-size: clamp(52px, 7vw, 96px);
    line-height: 1.0;
    letter-spacing: -2px;
    color: var(--ink);
    margin-bottom: 28px;
}
.jlm-hero-title .accent { color: var(--accent); display: block; }
.jlm-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.jlm-hero-stat-num {
    font-family: var(--font-base);
    font-weight: 800;
    font-size: 32px;
    color: var(--ink);
    line-height: 1;
}
.jlm-hero-stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* =============================================
   TRUST MARQUEE
   ============================================= */
.jlm-trust-bar {
    background: var(--ink);
    padding: 20px 0;
    overflow: hidden;
}
.jlm-marquee-track {
    display: flex;
    gap: 60px;
    animation: jlm-marquee 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}
.jlm-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    flex-shrink: 0;
}
.jlm-trust-item .dot {
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}
@keyframes jlm-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   SERVICES GRID
   ============================================= */
.jlm-services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
.jlm-svc-span-5  { grid-column: span 5; }
.jlm-svc-span-7  { grid-column: span 7; }
.jlm-svc-span-4  { grid-column: span 4; }
.jlm-svc-span-12 { grid-column: span 12; }
.jlm-svc-rowspan-2 { grid-row: span 2; }

.jlm-svc-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.jlm-svc-card { padding: 36px; }
.jlm-svc-title {
    font-family: var(--font-base);
    font-weight: 800;
    font-size: 22px;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 12px;
}
.jlm-svc-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}
.jlm-svc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1.5px solid currentColor;
    margin-top: 20px;
}
.jlm-svc-dark {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
}
.jlm-svc-dark .jlm-svc-title,
.jlm-svc-dark p { color: white; }
.jlm-svc-dark p { color: rgba(255,255,255,0.55); }

/* =============================================
   PROCESS / STEPS
   ============================================= */
.jlm-process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    align-items: start;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.jlm-process-step:last-child { border-bottom: none; }
.jlm-step-num {
    font-family: var(--font-base);
    font-weight: 800;
    font-size: 72px;
    color: var(--border);
    line-height: 1;
    user-select: none;
}
.jlm-step-title {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 10px;
}
.jlm-step-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* =============================================
   VETTED SHIELD
   ============================================= */
.jlm-shield-badge {
    background: linear-gradient(160deg, #0D0D0D 0%, #1a1a2e 100%);
    border-radius: var(--radius-xl);
    padding: 56px;
    position: relative;
    overflow: hidden;
}
.jlm-shield-badge::before {
    content: '';
    position: absolute;
    top: -80px; left: -80px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(26,79,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.jlm-shield-badge::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,201,127,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.jlm-check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
    z-index: 1;
}
.jlm-check-item:last-child { border-bottom: none; }
.jlm-check-circle {
    width: 28px; height: 28px;
    background: rgba(0,201,127,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--green);
    flex-shrink: 0;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.jlm-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.jlm-testimonial-card { padding: 32px; }
.jlm-stars { display: flex; gap: 4px; color: var(--amber); margin-bottom: 20px; }
.jlm-testimonial-text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-2);
    margin-bottom: 24px;
}
.jlm-testimonial-author { display: flex; align-items: center; gap: 12px; }
.jlm-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-base);
    font-weight: 800;
    font-size: 14px;
    color: white;
}
.jlm-author-name { font-weight: 700; font-size: 14px; }
.jlm-author-role { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* =============================================
   PRICING
   ============================================= */
.jlm-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}
.jlm-pricing-card { padding: 40px 36px; position: relative; }
.jlm-pricing-card.featured {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    margin-top: -16px;
    margin-bottom: -16px;
}
.jlm-price-badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    white-space: nowrap;
}
.jlm-price-tier {
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.jlm-price-amount {
    font-family: var(--font-base);
    font-weight: 800;
    font-size: 52px;
    line-height: 1;
    margin: 20px 0 4px;
    letter-spacing: -2px;
    color: var(--ink);
}
.jlm-price-period { font-size: 14px; color: var(--muted); }
.jlm-price-features { margin: 28px 0; display: flex; flex-direction: column; gap: 14px; }
.jlm-price-feature { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }
.jlm-price-feature .check { color: var(--green); flex-shrink: 0; }
.jlm-price-feature.disabled { color: var(--muted); opacity: 0.45; }
.featured .jlm-price-tier  { color: rgba(255,255,255,0.5); }
.featured .jlm-price-amount { color: white; }
.featured .jlm-price-period { color: rgba(255,255,255,0.4); }
.featured .jlm-price-feature { color: rgba(255,255,255,0.8); }
.featured hr { border-color: rgba(255,255,255,0.12); }

/* =============================================
   LOCAL TRADES TABLE
   ============================================= */
.jlm-county-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 16px 8px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: all 0.2s;
}
.jlm-county-pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.jlm-county-pill-dot {
    width: 24px; height: 24px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.jlm-faq-item { border-bottom: 1px solid var(--border); }
.jlm-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
    text-align: left;
    gap: 20px;
}
.jlm-faq-question:hover { color: var(--accent); }
.jlm-faq-icon {
    width: 28px; height: 28px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.2s;
}
.jlm-faq-item.open .jlm-faq-icon {
    transform: rotate(45deg);
    background: var(--accent);
    color: white;
}
.jlm-faq-answer {
    display: none;
    padding-bottom: 24px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--muted);
}
.jlm-faq-item.open .jlm-faq-answer { display: block; }

/* =============================================
   CONTACT FORM
   ============================================= */
.jlm-form-group { margin-bottom: 20px; }
.jlm-form-label {
    display: block;
    font-family: var(--font-base);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 8px;
}
.jlm-form-input,
.jlm-form-select,
.jlm-form-textarea {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: var(--font-base);
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
}
.jlm-form-input:focus,
.jlm-form-select:focus,
.jlm-form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26,79,255,0.1);
}
.jlm-form-textarea { resize: vertical; min-height: 120px; }

/* =============================================
   CTA SECTION
   ============================================= */
.jlm-cta-section {
    background: var(--ink);
    border-radius: var(--radius-xl);
    padding: 80px 64px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.jlm-cta-section::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(26,79,255,0.3) 0%, transparent 70%);
    pointer-events: none;
}
.jlm-cta-title {
    font-family: var(--font-base);
    font-weight: 800;
    font-size: clamp(36px, 5vw, 64px);
    color: white;
    line-height: 1.1;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

/* =============================================
   PULSE ANIMATION
   ============================================= */
.jlm-pulse-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    animation: jlm-pulse 2s infinite;
}
@keyframes jlm-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,201,127,0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(0,201,127,0); }
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.jlm-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.jlm-reveal.visible { opacity: 1; transform: translateY(0); }
.jlm-reveal-d1 { transition-delay: 0.1s; }
.jlm-reveal-d2 { transition-delay: 0.2s; }
.jlm-reveal-d3 { transition-delay: 0.3s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .jlm-services-grid { grid-template-columns: repeat(2, 1fr); }
    .jlm-svc-span-5,
    .jlm-svc-span-7,
    .jlm-svc-span-4,
    .jlm-svc-span-12 { grid-column: span 1; }
    .jlm-svc-span-12 { grid-column: span 2; }
    .jlm-svc-rowspan-2 { grid-row: span 1; }
    .jlm-testimonials-grid { grid-template-columns: 1fr; }
    .jlm-pricing-grid { grid-template-columns: 1fr; }
    .jlm-pricing-card.featured { margin-top: 0; margin-bottom: 0; }
}
@media (max-width: 768px) {
    .jlm-hero { padding-top: 120px; }
    .jlm-hero-stats { gap: 24px; }
    .jlm-services-grid { grid-template-columns: 1fr; }
    .jlm-svc-span-12 { grid-column: span 1; }
    .jlm-cta-section { padding: 56px 32px; }
    .jlm-nav-links { display: none; }
}

/* =============================================
   ELEMENTOR SECTION BACKGROUND HELPERS
   ============================================= */
.jlm-bg-default  { background-color: var(--bg) !important; }
.jlm-bg-white    { background-color: var(--white) !important; }
.jlm-bg-dark     { background-color: var(--ink) !important; }
