/* ============================================
   CP ENTITLEMENTS - REFERENCE PALETTE (NO GREEN)
   Based on Reference Image Colors
   ============================================ */

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

:root {
    /* Reference Image Palette - Warm Tones */
    --charcoal: #2B2520;          /* Deep charcoal brown */
    --warm-brown: #6B5D52;        /* Medium warm brown */
    
    --brick-red: #D62A1E;         /* Signature brick red */
    --red-dark: #B61E22;          /* Dark red */
    --red-light: #E84A3D;         /* Light red */
    
    --sand: #E8DCC8;              /* Warm sand */
    --cream: #F5EBD9;             /* Light cream */
    --off-white: #FAF6F0;         /* Off-white */
    --white: #FFFFFF;             /* Pure white */
    
    --tan: #C9B89A;               /* Warm tan */
    --beige-dark: #D4C4AE;        /* Darker beige */
    
    --text-primary: #2B2520;      /* Primary text */
    --text-secondary: #6B5D52;    /* Secondary text */
    --text-light: #8A7968;        /* Light text */
    
    --border: #E8DCC8;            /* Soft borders */
    
    /* Modern Typography */
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing (4px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(43, 37, 32, 0.04);
    --shadow-sm: 0 2px 8px rgba(43, 37, 32, 0.06);
    --shadow-md: 0 4px 16px rgba(43, 37, 32, 0.08);
    --shadow-lg: 0 8px 32px rgba(43, 37, 32, 0.10);
    --shadow-xl: 0 16px 48px rgba(43, 37, 32, 0.12);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* TYPOGRAPHY */
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--charcoal);
    letter-spacing: -0.03em;
}

h1 { font-size: 56px; font-weight: 800; }
h2 { font-size: 40px; font-weight: 700; }
h3 { font-size: 28px; font-weight: 600; }
h4 { font-size: 22px; font-weight: 600; }

p { margin-bottom: 20px; color: var(--text-secondary); line-height: 1.8; }

/* LAYOUT */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-10);
}

.section {
    padding: var(--space-24) 0;
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.nav-logo {
    height: 48px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav-info h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0;
}

.nav-tagline {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nav-links {
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--brick-red);
}

/* Portal nav button — stands out */
.nav-link.nav-portal-btn {
    background: var(--brick-red);
    color: var(--white) !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(214,42,30,0.25);
}

.nav-link.nav-portal-btn:hover {
    background: var(--red-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(214,42,30,0.35);
}

.nav-phone {
    color: var(--charcoal);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-phone::before {
    content: '📞';
    font-size: 16px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--brick-red);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(214, 42, 30, 0.35);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 42, 30, 0.45);
}

.btn-secondary {
    background: var(--white);
    color: var(--charcoal);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--off-white);
    border-color: var(--beige-dark);
}

/* HERO */
.hero {
    margin-top: 72px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 100%);
    padding: var(--space-20) 0 var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(214, 42, 30, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Background animation orbs ── */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 55%;
    height: 180%;
    background: radial-gradient(circle, rgba(214, 42, 30, 0.04) 0%, transparent 65%);
    pointer-events: none;
    animation: orb-drift 12s ease-in-out infinite alternate;
}

@keyframes orb-drift {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
    33%  { transform: translate(4%, -6%) scale(1.08); opacity: 1; }
    66%  { transform: translate(-3%, 5%) scale(0.95); opacity: 0.7; }
    100% { transform: translate(2%, -3%) scale(1.05); opacity: 0.9; }
}

/* Floating particles canvas sits behind everything */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

/* Make sure all content stays above canvas */
nav, section, footer, .hero {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-10);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--brick-red);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.hero-badge::before {
    content: '✨';
    font-size: 14px;
}

.hero-headline {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--charcoal);
    letter-spacing: -0.04em;
}

.hero-highlight {
    color: var(--brick-red);
}

.hero-subheadline {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--space-10);
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

.hero-stat {
    text-align: left;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--charcoal);
    display: block;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-group {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16) auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--brick-red);
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-xs);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: var(--space-5);
    color: var(--charcoal);
}

.section-intro {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CARDS */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--brick-red);
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-6);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--brick-red);
}

.service-card.featured {
    border: 2px solid var(--brick-red);
    background: linear-gradient(135deg, var(--white) 0%, rgba(214, 42, 30, 0.02) 100%);
}

.service-badge {
    display: inline-block;
    background: var(--brick-red);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--space-5);
}

.service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--sand);
    color: var(--brick-red);
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: var(--space-5);
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--charcoal);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
    line-height: 1.7;
}

.service-price {
    color: var(--brick-red);
    font-weight: 700;
    font-size: 18px;
}

/* INFO CARDS */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.info-card-icon {
    font-size: 40px;
    margin-bottom: var(--space-5);
    display: block;
}

.info-card h4 {
    color: var(--charcoal);
    margin-bottom: var(--space-3);
    font-size: 20px;
    font-weight: 700;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* SHOWCASE */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-6);
}

.showcase-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.showcase-item:hover {
    transform: scale(1.02);
}

.showcase-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(43, 37, 32, 0.95) 0%, transparent 100%);
    padding: var(--space-8);
    color: var(--white);
}

.showcase-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-2);
}

.showcase-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

/* DARK SECTION */
.dark-section {
    background: var(--charcoal);
    color: var(--white);
    padding: var(--space-20) 0;
    text-align: center;
}

.dark-section .section-title {
    color: var(--white);
}

.dark-section .section-intro {
    color: rgba(255, 255, 255, 0.8);
}

/* FOOTER */
.footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-20) 0 var(--space-10) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-16);
    margin-bottom: var(--space-16);
}

.footer-logo {
    height: 52px;
    margin-bottom: var(--space-5);
    filter: brightness(0) invert(1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.footer h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--space-5);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-3);
    font-size: 15px;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--brick-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-8);
    text-align: center;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-headline {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    .hero-headline { font-size: 40px; }
    .section-title { font-size: 36px; }
    .hero-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

/* SERVICE PAGES */
.service-hero {
    margin-top: 72px;
    background: var(--sand);
    padding: var(--space-16) 0 var(--space-12) 0;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: var(--space-6);
}

.breadcrumb a {
    color: var(--brick-red);
}

.service-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: var(--space-5);
}

.service-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: var(--space-8);
}

.service-hero-ctas {
    display: flex;
    gap: var(--space-4);
}

.service-included {
    padding: var(--space-20) 0;
    background: var(--white);
}

.section-headline {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-16);
    color: var(--charcoal);
}

.phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-6);
}

.phase-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--brick-red);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
}

.phase-number {
    background: var(--sand);
    color: var(--brick-red);
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    margin-bottom: var(--space-5);
}

.phase-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.phase-card p {
    color: var(--text-secondary);
}

.phase-card ul {
    list-style: none;
    padding: 0;
    margin: var(--space-5) 0 0 0;
}

.phase-card li {
    padding-left: var(--space-8);
    position: relative;
    margin-bottom: var(--space-3);
}

.phase-card li:before {
    content: "✓";
    color: var(--brick-red);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.service-pricing {
    padding: var(--space-20) 0;
    background: var(--sand);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
    max-width: 1080px;
    margin: 0 auto;
}

.price-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-10) var(--space-8);
    text-align: center;
}

.price-card:hover {
    border-color: var(--brick-red);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-card.featured {
    border: 2px solid var(--brick-red);
}

.price-badge {
    background: var(--brick-red);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
    display: inline-block;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: var(--space-2);
}

.price-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: var(--space-8);
}

.price-features {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
    text-align: left;
}

.price-features li {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
    padding-left: var(--space-8);
    position: relative;
}

.price-features li:before {
    content: "✓";
    color: var(--brick-red);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.service-timeline {
    padding: var(--space-20) 0;
    background: var(--white);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
}

.timeline-item {
    text-align: center;
}

.timeline-marker {
    background: var(--brick-red);
    color: var(--white);
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin: 0 auto var(--space-4) auto;
}

.timeline-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.timeline-item p {
    font-size: 15px;
    color: var(--text-secondary);
}

.service-cta {
    padding: var(--space-20) 0;
    background: var(--charcoal);
    color: var(--white);
    text-align: center;
}

.service-cta h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-5);
}

.service-cta p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto var(--space-10) auto;
}

/* ============================================
   CUSTOM ICONS - CP ENTITLEMENTS AESTHETIC
   Designed specifically for the brand
   ============================================ */

/* Remove generic emoji icons - replace with custom styled icons */
.info-card-icon,
.hero-badge::before,
.section-badge::before,
.nav-phone::before {
    font-style: normal;
    font-family: var(--font-display);
}

/* INFO CARD ICONS - Custom Styled */
.info-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(214, 42, 30, 0.08) 0%, rgba(214, 42, 30, 0.04) 100%);
    border: 2px solid rgba(214, 42, 30, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--brick-red);
    margin-bottom: var(--space-6);
    position: relative;
    transition: all 0.3s ease;
    font-weight: 700;
}

/* Custom icon designs using text/symbols */
.info-card:nth-child(1) .info-card-icon::before {
    content: '§';  /* Code/regulations symbol */
    font-size: 36px;
}

.info-card:nth-child(2) .info-card-icon::before {
    content: '⚖';  /* Balance/legal symbol */
    font-size: 32px;
}

.info-card:nth-child(3) .info-card-icon::before {
    content: '$';  /* Dollar/value symbol */
    font-size: 36px;
    font-weight: 800;
}

.info-card:nth-child(4) .info-card-icon::before {
    content: '⌂';  /* House/building symbol */
    font-size: 32px;
}

.info-card:hover .info-card-icon {
    background: linear-gradient(135deg, rgba(214, 42, 30, 0.12) 0%, rgba(214, 42, 30, 0.06) 100%);
    border-color: var(--brick-red);
    transform: translateY(-4px);
}

/* SERVICE NUMBERS - Custom Design */
.service-number {
    background: var(--charcoal);
    color: var(--brick-red);
    border: 2px solid rgba(214, 42, 30, 0.2);
    position: relative;
    overflow: hidden;
}

.service-number::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(214, 42, 30, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.service-card:hover .service-number::before {
    transform: translateX(100%);
}

/* PHASE NUMBERS - Custom Design */
.phase-number {
    background: var(--charcoal);
    color: var(--brick-red);
    border: 2px solid rgba(214, 42, 30, 0.2);
    box-shadow: 0 2px 12px rgba(43, 37, 32, 0.15);
}

/* TIMELINE MARKERS - Custom Design */
.timeline-marker {
    background: linear-gradient(135deg, var(--brick-red) 0%, var(--red-dark) 100%);
    box-shadow: 
        0 4px 16px rgba(214, 42, 30, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* SERVICE BADGES - Custom Style */
.service-badge {
    background: linear-gradient(135deg, var(--brick-red) 0%, var(--red-dark) 100%);
    box-shadow: 
        0 2px 12px rgba(214, 42, 30, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.service-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* HERO BADGE - Custom Icon */
.hero-badge {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(43, 37, 32, 0.08);
}

.hero-badge::before {
    content: '✦';  /* Star/quality symbol */
    font-size: 14px;
    color: var(--brick-red);
    font-weight: 700;
}

/* SECTION BADGES - Minimalist */
.section-badge {
    background: var(--white);
    border: 1px solid var(--border);
    position: relative;
}

.section-badge::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--brick-red);
    border-radius: 50%;
    position: relative;
    top: 0;
}

/* NAV PHONE ICON - Custom */
.nav-phone::before {
    content: '☎';
    font-size: 16px;
    color: var(--brick-red);
    font-weight: 400;
}

/* CHECKMARKS - Custom Style */
.phase-card li:before,
.price-features li:before {
    content: "✓";
    color: var(--brick-red);
    font-weight: 800;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* PRICE BADGE - Premium Style */
.price-badge {
    background: linear-gradient(135deg, var(--brick-red) 0%, var(--red-dark) 100%);
    box-shadow: 
        0 2px 12px rgba(214, 42, 30, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* BREADCRUMB - Custom Separator */
.breadcrumb a::after {
    content: '→';
    margin-left: 12px;
    color: var(--border);
    font-weight: 300;
}

.breadcrumb span {
    color: var(--text-secondary);
    font-weight: 600;
}

/* CUSTOM DECORATIVE ELEMENTS */
.section-header::before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--brick-red) 0%, transparent 100%);
    margin: 0 auto var(--space-6) auto;
    border-radius: 2px;
}

/* SERVICE CARD CORNER ACCENT */
.service-card.featured::before {
    content: '★';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    color: var(--brick-red);
    opacity: 0.3;
    font-weight: 700;
}

/* PHASE CARD CORNER ACCENT */
.phase-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, rgba(214, 42, 30, 0.05) 50%);
    border-top-right-radius: var(--radius-lg);
}

.phase-card {
    position: relative;
    overflow: hidden;
}

/* SHOWCASE OVERLAY ICON */
.showcase-overlay::after {
    content: '↗';
    position: absolute;
    bottom: 32px;
    right: 32px;
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.showcase-item:hover .showcase-overlay::after {
    color: var(--white);
    transform: translate(4px, -4px);
}

/* CTA BUTTON ICON */
.btn-primary::after {
    content: '';
}

.btn-primary:hover::after {
    transform: none;
}

/* FOOTER SECTION DIVIDER */
.footer-grid > div:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -32px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent 100%
    );
}

.footer-grid > div {
    position: relative;
}

/* STAT NUMBER UNDERLINE */
.stat-number::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--brick-red);
    margin-top: 8px;
    border-radius: 2px;
}

/* CUSTOM BULLET POINTS */
.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}

.info-card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--brick-red);
    font-weight: 700;
}

/* LOADING STATE ANIMATION */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.service-card.loading .service-number {
    animation: pulse 2s ease-in-out infinite;
}

/* PREMIUM QUALITY INDICATORS */
.quality-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--brick-red);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px rgba(214, 42, 30, 0.5);
}

/* RESPONSIVE ICON ADJUSTMENTS */
@media (max-width: 768px) {
    .info-card-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .service-number,
    .phase-number {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .timeline-marker {
        width: 64px;
        height: 64px;
        font-size: 14px;
    }
}

/* FIXED CUSTOM ICONS - Using data attributes */
.info-card-icon[data-icon]::before {
    display: block;
}

.info-card-icon[data-icon="code"]::before {
    content: '§';
    font-size: 36px;
}

.info-card-icon[data-icon="legal"]::before {
    content: '⚖';
    font-size: 32px;
}

.info-card-icon[data-icon="value"]::before {
    content: '$';
    font-size: 36px;
    font-weight: 800;
}

.info-card-icon[data-icon="building"]::before {
    content: '⌂';
    font-size: 32px;
}

/* Override previous nth-child selectors */
.info-card:nth-child(1) .info-card-icon::before,
.info-card:nth-child(2) .info-card-icon::before,
.info-card:nth-child(3) .info-card-icon::before,
.info-card:nth-child(4) .info-card-icon::before {
    content: none;
}

/* SIMPLIFIED LOGO - No text */
.nav-brand {
    display: inline-block;
}

.nav-logo {
    height: 56px;
    width: auto;
    transition: opacity 0.2s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav-brand:hover .nav-logo {
    opacity: 0.8;
}

/* Remove old nav-info styles */
.nav-info {
    display: none;
}

/* ══════════════════════════════════════════════════════════════
   SITE PLANNER SECTION
══════════════════════════════════════════════════════════════ */
.sp-section {
  padding: var(--space-20) 0;
}

/* Subtle dot-grid background */
.sp-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(214,42,30,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Two-column layout */
.sp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* LEFT COPY */
.sp-badge {
  background: rgba(214,42,30,0.15) !important;
  color: #ff8a80 !important;
  border: 1px solid rgba(214,42,30,0.3) !important;
  margin-bottom: 16px;
}

.sp-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 420px;
}

.sp-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.93rem;
  font-weight: 500;
}

.sp-feat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: rgba(214,42,30,0.12);
  border: 1px solid rgba(214,42,30,0.25);
  border-radius: 9px;
  color: #D62A1E;
}

.sp-feat-icon svg {
  width: 15px;
  height: 15px;
}

.sp-cta-btn {
  display: inline-flex !important;
  align-items: center;
}

.sp-free-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  align-self: center;
}

/* RIGHT PREVIEW */
.sp-preview {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  transform: perspective(900px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}

.sp-preview:hover {
  transform: perspective(900px) rotateY(0deg) rotateX(0deg);
}

.sp-browser-chrome {
  background: #1a1614;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-chrome-dots {
  display: flex;
  gap: 5px;
}

.sp-chrome-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.sp-chrome-dots span:nth-child(1) { background: #ff5f57; }
.sp-chrome-dots span:nth-child(2) { background: #ffbd2e; }
.sp-chrome-dots span:nth-child(3) { background: #28c840; }

.sp-chrome-bar {
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  font-family: 'Inter', sans-serif;
  flex: 1;
}

.sp-app-frame {
  background: #1e1a18;
  position: relative;
}

.sp-map-bg {
  width: 100%;
  height: 220px;
  background:
    linear-gradient(135deg, #1c1a18 0%, #222018 40%, #1a1c1e 100%);
  position: relative;
  overflow: hidden;
}

.sp-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-parcel-lines {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.sp-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Mini property card inside preview */
.sp-mini-card {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #1e1a18;
}

.sp-mini-addr {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

.sp-mini-zone {
  font-size: 10px;
  color: rgba(214,42,30,0.9);
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.sp-mini-stats {
  display: flex;
  gap: 8px;
}

.sp-mini-stats span {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Responsive */
@media (max-width: 900px) {
  .sp-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sp-preview {
    transform: none;
    max-width: 480px;
    margin: 0 auto;
  }
  .sp-preview:hover {
    transform: none;
  }
}

/* ── Site Planner section polish ── */
@keyframes parcelPulse {
  0%, 100% { stroke-opacity: 0.7; fill-opacity: 0.08; }
  50% { stroke-opacity: 1; fill-opacity: 0.18; }
}

.sp-map-bg {
  height: 240px;
}

/* Animate the selected parcel rect */
.sp-parcel-lines rect:nth-child(4) {
  animation: parcelPulse 2.5s ease-in-out infinite;
}

/* Make the preview card a bit larger on desktop */
@media (min-width: 901px) {
  .sp-preview {
    max-width: 520px;
  }
}

/* "Free · No login required" badge line */
.cta-group .sp-free-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-group .sp-free-label::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

/* ── Site Planner nav tab ── */
.nav-link.nav-planner-btn {
  background: transparent;
  border: 1.5px solid var(--brick-red);
  color: var(--brick-red) !important;
  border-radius: 6px;
  padding: 5px 14px !important;
  font-weight: 700;
  transition: background .15s, color .15s;
}
.nav-link.nav-planner-btn:hover {
  background: var(--brick-red);
  color: #fff !important;
}


/* ══════════════════════════════════════════════════════════════
   MOBILE NAV — HAMBURGER + DRAWER
══════════════════════════════════════════════════════════════ */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    z-index: 1001;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all .25s ease;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    opacity: 0;
    transition: opacity .3s ease;
}
.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 85vw);
    height: 100dvh;
    background: var(--off-white);
    border-left: 1px solid var(--border);
    z-index: 1200;
    padding: 28px 24px 40px;
    display: none;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mobile-nav-drawer.open {
    display: flex;
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 18px; right: 18px;
    background: none;
    border: none;
    color: var(--charcoal);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background .15s;
}
.mobile-nav-close:hover { background: var(--cream); }

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav-links a {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--charcoal);
    text-decoration: none;
    border-radius: 10px;
    transition: background .15s, color .15s;
}
.mobile-nav-links a:hover { background: var(--cream); color: var(--brick-red); }
.mobile-nav-links .nav-planner-btn {
    color: var(--brick-red);
    border: 1.5px solid var(--brick-red);
    margin-top: 4px;
}
.mobile-nav-links .nav-portal-btn {
    background: var(--brick-red);
    color: #fff !important;
    margin-top: 4px;
}
.mobile-nav-links .nav-portal-btn:hover { background: #b01f15; }
.mobile-nav-phone {
    margin-top: 16px;
    padding-top: 20px !important;
    border-top: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
    font-size: 13px !important;
}
body.nav-open { overflow: hidden; }

/* ── Site Planner nav tab ── */
.nav-link.nav-planner-btn {
    background: transparent;
    border: 1.5px solid var(--brick-red);
    color: var(--brick-red) !important;
    border-radius: 6px;
    padding: 5px 14px !important;
    font-weight: 700;
    transition: background .15s, color .15s;
}
.nav-link.nav-planner-btn:hover {
    background: var(--brick-red);
    color: #fff !important;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE — ALL FIXES (≤768px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Show hamburger, hide desktop nav */
  .nav-hamburger { display: flex; }
  .nav-links { display: none !important; }

  /* Nav bar compact */
  .nav-container { height: 56px; padding: 0 16px; }
  .nav-logo { height: 30px !important; }

  /* Kill background canvas animation — kills perf + looks odd on small screens */
  #bg-canvas { display: none !important; }
  .hero::after { display: none !important; }

  /* ── HERO ── */
  .hero {
    margin-top: 56px;
    padding: 32px 0 28px;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 0 20px;
  }
  .hero-image { display: none; } /* hide photo — keeps hero tight */
  .hero-content { max-width: 100%; }
  .hero-badge { font-size: 12px; margin-bottom: 12px; }
  .hero-headline {
    font-size: 32px !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }
  .hero-subheadline {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  /* ── Stats ── */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat-number { font-size: 24px; }
  .stat-label  { font-size: 11px; }

  /* ── CTA buttons ── */
  .cta-group {
    flex-direction: column !important;
    gap: 10px;
    align-items: stretch !important;
  }
  .btn {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 14px !important;
  }

  /* ── Section spacing ── */
  .section { padding: 36px 0 !important; }
  .container { padding: 0 20px !important; }
  .section-header { margin-bottom: 28px !important; }
  .section-title { font-size: 24px !important; line-height: 1.2; }
  .section-intro { font-size: 14px !important; line-height: 1.65; }
  .section-badge { font-size: 11px !important; margin-bottom: 8px !important; }

  /* ── Info cards ── */
  .info-cards { grid-template-columns: 1fr; gap: 12px; }
  .info-card { padding: 18px; }
  .info-card h4 { font-size: 16px; }
  .info-card p  { font-size: 14px; }

  /* ── Service cards ── */
  .services-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .service-card { padding: 18px 16px !important; }
  .service-title { font-size: 20px !important; }
  .service-description { font-size: 14px !important; margin-bottom: 12px !important; }
  .service-price { font-size: 16px !important; }
  .service-number { width: 40px; height: 40px; font-size: 17px; margin-bottom: 12px; }

  /* ── Showcase / project grid ── */
  .showcase-grid { grid-template-columns: 1fr; gap: 12px; }
  .showcase-item img { height: 200px; }

  /* ── Why Us section ── */
  .hero-grid {
    padding: 0 20px;
  }
  .why-item { gap: 10px; margin-bottom: 16px; }
  .why-item-icon { width: 36px; height: 36px; }
  .why-item-text h4 { font-size: 15px; }
  .why-item-text p  { font-size: 13px; }

  /* ── Dark CTA section ── */
  .dark-section { padding: 44px 20px !important; }
  .dark-section .section-title { font-size: 24px !important; }
  .dark-section .section-intro { font-size: 14px !important; }

  /* ── Footer ── */
  .footer { padding: 36px 0 20px !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 0 20px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 14px 20px 0;
    font-size: 12px;
  }
  .footer-logo { height: 28px !important; }

  /* ── Service hero pages ── */
  .service-hero { padding: 28px 20px 24px !important; margin-top: 56px !important; }
  .service-title { font-size: 26px !important; }
  .service-subtitle { font-size: 14px !important; }
  .service-hero-ctas { flex-direction: column; gap: 10px; }
  .section-headline { font-size: 22px !important; margin-bottom: 20px !important; }
  .phases-grid { grid-template-columns: 1fr !important; gap: 12px; }

  /* ── About page ── */
  .team-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .about-stats { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .mission-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

  /* Hamburger → X animation */
  body.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Push content below compact nav */
  .hero { padding-top: 32px; }
  .service-hero { margin-top: 56px !important; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 26px !important; }
  .stat-number   { font-size: 20px; }
  .section-title { font-size: 21px !important; }
  .dark-section .section-title { font-size: 21px !important; }
}

/* ── Final targeted mobile fixes ── */
@media (max-width: 768px) {
  /* Why Us grid: override inline style padding and force single column */
  #why-us .hero-grid {
    grid-template-columns: 1fr !important;
    padding: 0 20px !important;
    gap: 24px;
  }
  /* Hide the photo in Why Us section too */
  #why-us .hero-image { display: none !important; }

  /* Hero stats — 3 columns but more breathing room */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 16px 0 !important;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 16px 0 20px !important;
  }
  .hero-stat { text-align: center; }
  .stat-number { font-size: 22px; margin-bottom: 2px; }
  .stat-label  { font-size: 10px; line-height: 1.3; }

  /* Tighten hero headline */
  .hero-headline { font-size: 30px !important; }
  .hero-subheadline { font-size: 14px !important; margin-bottom: 16px !important; }

  /* Services grid — already 1 col but fix minmax floor */
  .services-grid {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }

  /* Section container override for inline-styled sections */
  [style*="padding: 0 var(--space-10)"] {
    padding: 0 20px !important;
  }

  /* Showcase images taller so they look intentional */
  .showcase-item img { height: 180px; object-position: center; }

  /* Footer logo invert — already handled but make sure height is right */
  .footer-logo { height: 26px !important; }
}

/* ── Mobile polish pass 3 ── */
@media (max-width: 768px) {

  /* Hero: clean up badge + top spacing */
  .hero-badge { display: none; } /* remove on mobile — saves vertical space */

  /* Info cards section: fix section padding */
  .section[style*="background: var(--white)"],
  .section[style*="background:var(--white)"] {
    padding: 32px 0 !important;
  }
  .info-cards {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .info-card-icon { font-size: 28px; margin-bottom: 10px; }

  /* Why Us / California Code Experts — force single column */
  .section#why-us .hero-grid,
  [id="why-us"] .hero-grid {
    grid-template-columns: 1fr !important;
    padding: 0 20px !important;
  }
  [id="why-us"] .hero-image,
  [id="why-us"] img.hero-image { display: none !important; }

  /* Remove hover lift on cards (touch devices don't need it) */
  .service-card:hover,
  .info-card:hover,
  .showcase-item:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  /* Services section heading alignment */
  .section-header { text-align: left !important; }
  #services .section-header { text-align: center !important; }
  .section-intro { text-align: inherit; }

  /* Project showcase images consistent */
  .showcase-grid { gap: 10px; }
  .showcase-item img { height: 190px; }
  .showcase-overlay { padding: 16px; }
  .showcase-title { font-size: 15px; }
  .showcase-tag { font-size: 10px; }

  /* Footer col spacing */
  .footer-col h4 { font-size: 13px; margin-bottom: 10px; }
  .footer-col a, .footer-col p { font-size: 13px; }
  .footer-brand p { font-size: 13px; line-height: 1.6; }
}

/* ── Mobile final fixes ── */
@media (max-width: 768px) {

  /* Why Us / California Code Experts — precise override */
  .why-us-grid {
    grid-template-columns: 1fr !important;
    padding: 0 20px !important;
    gap: 24px !important;
  }
  .why-us-grid .hero-image { display: none !important; }
  .why-us-grid .hero-content { max-width: 100%; }
  .why-us-grid .hero-subheadline { font-size: 14px !important; margin-bottom: 16px !important; }

  /* Info cards icons — fix SVG alignment */
  .info-card-icon {
    display: flex !important;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(214,42,30,0.07);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
    font-size: 20px;
  }
  .info-card-icon svg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
  }

  /* Services grid: fix auto-fit minmax collapsing */
  #services .container > div,
  .services-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .service-card { width: 100% !important; box-sizing: border-box; }

  /* Showcase: two per row on mobile looks better than one */
  .showcase-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .showcase-item img { height: 130px !important; }
  .showcase-title { font-size: 12px !important; }
  .showcase-tag { display: none; }

  /* Why items inside the why-us section */
  .why-us-grid .why-item { margin-bottom: 12px; }
}

/* why-us-grid desktop padding (was inline, now CSS-controlled) */
.why-us-grid {
  padding: 0 var(--space-10);
}
@media (max-width: 768px) {
  .why-us-grid {
    grid-template-columns: 1fr !important;
    padding: 0 20px !important;
  }
  .why-us-grid .hero-image { display: none !important; }
}
