@charset "UTF-8";
/* ========================================
   QUANTRACT ELECTRICAL & BUILDING SERVICES
   VERSION C++ (UNASSAILABLE) SHARED STYLESHEET
   ======================================== */

/* ===== CSS RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Dark Backgrounds */
    --bg-black: #0F1115;
    --bg-charcoal: #151922;
    --bg-panel: #1C2230;
    --bg-elevated: #232A3B;

    /* Brand Colors */
    --brand-blue: #1E90FF;
    --brand-blue-dark: #1565C0;
    --brand-blue-soft: #4FA3FF;

    /* Accent */
    --accent-gold: #D4AF37;

    /* Text on Dark */
    --text-primary: #FFFFFF;
    --text-body: #E6E8EC;
    --text-muted: #A0A4AE;

    /* Light Sections */
    --bg-light: #FFFFFF;
    --bg-light-grey: #F5F7FA;
    --text-dark: #1A1A1A;
    --text-mid: #4A5568;

    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Spacing System */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* iOS safe area insets */
    padding-bottom: env(safe-area-inset-bottom);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(36px, 5vw, 52px);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(28px, 4vw, 40px);
}

h3 {
    font-size: 24px;
    font-weight: 700;
}

h4 {
    font-size: 20px;
    font-weight: 700;
}

p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== EMERGENCY BAR ===== */
.emergency-bar {
    background: var(--brand-blue);
    color: var(--text-primary);
    padding: var(--space-sm) 0;
    padding-top: calc(var(--space-sm) + env(safe-area-inset-top));
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.emergency-bar a {
    color: var(--text-primary);
    text-decoration: underline;
    margin-left: var(--space-sm);
}

.emergency-bar a:hover {
    opacity: 0.9;
}

/* ===== SITE HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(21, 25, 34, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    max-width: 1440px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-image {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.logo-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== NAVIGATION ===== */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: var(--text-body);
    font-weight: 600;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--brand-blue);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 1001;
    position: relative;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    font-family: inherit;
    line-height: 1;
}

.btn-primary {
    background: var(--brand-blue);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 144, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 26px;
}

.btn-secondary:hover {
    border-color: var(--brand-blue);
    background: rgba(30, 144, 255, 0.1);
}

.btn-emergency {
    background: var(--error);
    color: var(--text-primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-emergency:hover {
    background: #DC2626;
}

.btn-large {
    padding: 18px 36px;
    font-size: 17px;
}

.btn-white {
    background: var(--text-primary);
    color: var(--brand-blue);
    font-weight: 900;
}

.btn-white:hover {
    background: #F5F5F5;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn-full {
    width: 100%;
}

/* ===== HERO SECTIONS ===== */
.hero {
    background: var(--bg-charcoal);
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(30, 144, 255, 0.12), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: var(--space-md);
}

.hero-content .highlight {
    color: var(--brand-blue);
}

.hero-content .subheadline {
    font-size: 19px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    max-width: 580px;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.hero-trust {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 14px;
    color: var(--text-body);
}

.trust-icon {
    color: var(--success);
    font-size: 18px;
}

/* ===== SERVICE HERO ===== */
.service-hero {
    background: var(--bg-charcoal);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breadcrumb {
    display: flex;
    gap: var(--space-xs);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.breadcrumb a {
    color: var(--brand-blue);
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.service-badge,
.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(30, 144, 255, 0.15);
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.service-hero h1 {
    margin-bottom: var(--space-sm);
}

.service-hero .subtitle {
    font-size: 18px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.hero-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.meta-icon {
    color: var(--brand-blue);
    font-size: 18px;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-2xl) 0;
}

.section-dark {
    background: var(--bg-black);
}

.section-charcoal {
    background: var(--bg-charcoal);
}

.section-elevated {
    background: var(--bg-elevated);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== FIXED: LIGHT SECTIONS WITH READABLE TEXT ===== */
.section-light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
    color: var(--text-dark) !important;
}

.section-light p,
.section-light li,
.section-light span {
    color: var(--text-mid);
}

.section-light a {
    color: var(--brand-blue);
}

.section-light a:hover {
    color: var(--brand-blue-dark);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
    color: var(--text-dark) !important;
}

.section-light p,
.section-light li,
.section-light span {
    color: var(--text-mid);
}

.section-light a {
    color: var(--brand-blue);
}

.section-light a:hover {
    color: var(--brand-blue-dark);
}
/* ===== END FIX ===== */

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(30, 144, 255, 0.1);
    border: 1px solid rgba(30, 144, 255, 0.2);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    font-size: 18px;
    color: var(--text-body);
    line-height: 1.7;
}

.section-light .section-header h2 {
    color: var(--text-dark);
}

.section-light .section-header p {
    color: var(--text-mid);
}

/* ===== GRIDS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-blue);
}

.card-light {
    background: var(--bg-light);
    border: 1px solid #E2E8F0;
    max-width: 800px;
    margin: 0 auto;
}

.section-light .card {
    background: var(--bg-light-grey);
    border: 1px solid #E2E8F0;
}

.section-light .card:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 12px 32px rgba(30, 144, 255, 0.15);
}

.card h3 {
    margin-bottom: var(--space-xs);
}

.card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.section-light .card h3 {
    color: var(--text-dark);
}

.section-light .card p {
    color: var(--text-mid);
}

/* ===== UNASSAILABLE MODULES ===== */

/* Compliance Proof Module */
.compliance-proof {
    background: var(--bg-panel);
    border: 2px solid rgba(30, 144, 255, 0.2);
    border-radius: 8px;
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.compliance-proof h3 {
    color: var(--brand-blue) !important;
    margin-bottom: var(--space-md);
    font-size: 24px;
}

.compliance-list {
    list-style: none;
    padding: 0;
}

.compliance-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: #E6E8EC !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compliance-list li:last-child {
    border-bottom: none;
}

.compliance-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
    font-size: 18px;
}

/* Downloadable Evidence */
.downloadable-evidence {
    background: var(--bg-light);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: var(--space-lg);
    max-width: 600px;
    margin: var(--space-xl) auto;
}

.downloadable-evidence h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.download-list {
    list-style: none;
    padding: 0;
}

.download-list li {
    margin-bottom: var(--space-sm);
}

.download-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-light-grey);
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    color: var(--brand-blue);
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

.download-icon {
    font-size: 18px;
}

.download-note {
    font-size: 13px;
    color: var(--text-mid);
    margin-top: var(--space-sm);
    font-style: italic;
}

/* What Happens Next Module */
.what-happens-next {
    background: var(--bg-panel);
    border-left: 4px solid var(--brand-blue);
    border-radius: 4px;
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.what-happens-next h4 {
    color: #FFFFFF !important;
    margin-bottom: var(--space-md);
}

.next-steps {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.next-steps li {
    counter-increment: step-counter;
    padding: var(--space-sm) 0 var(--space-sm) var(--space-xl);
    position: relative;
    color: #E6E8EC !important;
}

.next-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: var(--space-sm);
    width: 28px;
    height: 28px;
    background: var(--brand-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* ===== CONTENT LAYOUT ===== */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
}

.content-main h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.content-main ul {
    list-style: none;
    margin-bottom: var(--space-md);
}

.content-main li {
    padding-left: var(--space-md);
    margin-bottom: var(--space-xs);
    position: relative;
    line-height: 1.7;
}

.content-main li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--brand-blue);
    font-weight: 900;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar .card {
    margin-bottom: var(--space-md);
}

.sidebar h3 {
    font-size: 20px;
    margin-bottom: var(--space-sm);
}

.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li {
    padding: var(--space-xs) 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.price-highlight {
    font-size: 36px;
    font-weight: 900;
    color: var(--brand-blue);
    margin: var(--space-sm) 0;
}

.price-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* ===== ALERTS & INFO BOXES ===== */
.alert {
    border-left: 4px solid;
    border-radius: 4px;
    padding: var(--space-md);
    margin: var(--space-md) 0;
}

.alert-title {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.alert-compliance {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}

.alert-compliance .alert-title {
    color: var(--error);
}

.alert-info {
    background: var(--bg-panel);
    border-color: var(--brand-blue);
}

.alert-info .alert-title {
    color: var(--brand-blue);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.alert-success .alert-title {
    color: var(--success);
}

.info-box {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: var(--space-md);
    margin: var(--space-md) 0;
}

.info-box-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 900;
    color: var(--brand-blue);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin: 0;
}

/* ===== FORMS ===== */
.form-container {
    background: var(--bg-light);
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: var(--space-xl);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--space-md);
}

label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
    font-size: 15px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-note {
    font-size: 13px;
    color: var(--text-mid);
    margin-top: var(--space-xs);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.testimonial-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--brand-blue);
    border-radius: 8px;
    padding: var(--space-lg);
}

.testimonial-rating {
    color: var(--accent-gold);
    font-size: 18px;
    margin-bottom: var(--space-sm);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.testimonial-meta {
    font-size: 14px;
    color: var(--text-mid);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-md);
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--brand-blue);
}

.faq-icon {
    color: var(--brand-blue);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--text-mid);
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===== CTA SECTIONS ===== */
.cta-section {
    background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 100%);
    padding: var(--space-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="1" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 44px;
    margin-bottom: var(--space-sm);
}

.cta-section p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-black);
    color: var(--text-muted);
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 340px;
}

.footer-brand .site-logo {
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-section h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--space-xs);
}

.footer-section a {
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--brand-blue);
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 13px;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    font-size: 13px;
}

/* ===== PROJECT / CASE STUDY CARDS ===== */
.project-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-blue);
}

.project-image {
    width: 100%;
    height: 240px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 48px;
}

.project-content {
    padding: var(--space-lg);
}

.project-meta {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.project-tag {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(30, 144, 255, 0.15);
    border-radius: 12px;
    color: var(--brand-blue);
    font-weight: 600;
}

.project-card h3 {
    margin-bottom: var(--space-xs);
}

.project-card p {
    font-size: 15px;
    color: var(--text-body);
    margin-bottom: var(--space-sm);
}

/* ===== FILTERS ===== */
.filters {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.filter-btn {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

/* ===== SERVICE LEVELS TABLE ===== */
.service-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.service-level-card {
    background: var(--bg-panel);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: center;
}

.service-level-card.featured {
    border-color: var(--brand-blue);
    background: var(--bg-elevated);
}

.level-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.level-features {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
    text-align: left;
}

.level-features li {
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
    font-size: 14px;
}

.level-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-levels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-charcoal);
        padding: 80px 24px 24px;
        gap: 0;
        z-index: 999;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
        animation: slideInRight 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.mobile-active li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.mobile-active a {
        display: block;
        padding: 18px 16px;
        font-size: 18px;
        color: var(--text-primary);
        transition: all 0.2s ease;
    }

    .nav-links.mobile-active a:hover {
        background: rgba(30, 144, 255, 0.1);
        padding-left: 24px;
    }

    .nav-links.mobile-active .btn {
        margin-top: 16px;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile header improvements */
    .main-nav .btn {
        display: none;
    }

    .nav-links.mobile-active .btn {
        display: inline-flex;
    }
}

/* Small mobile screens - hide subtitle */
@media (max-width: 480px) {
    .logo-sub {
        display: none;
    }

    .logo-main {
        font-size: 16px;
    }

    .logo-image {
        width: 40px;
        height: 40px;
    }

    .emergency-bar {
        font-size: 12px;
        padding: var(--space-xs) var(--space-sm);
    }

    .emergency-bar a {
        display: block;
        margin-top: 4px;
        margin-left: 0;
    }

    /* Quote form mobile fixes */
    .form-container {
        padding: var(--space-md);
        margin: 0 var(--space-sm);
    }

    .form-step h2 {
        font-size: 20px;
        text-align: center;
        margin-bottom: var(--space-md);
    }

    .btn-full,
    .form-step .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .form-step > div[style*="display: flex"] {
        flex-direction: column;
    }

    .form-step .btn-secondary {
        order: 2;
    }

    .form-step .btn-primary {
        order: 1;
    }

    /* What happens next section */
    .what-happens-next {
        padding: var(--space-md);
        margin-top: var(--space-md);
    }

    .what-happens-next h4 {
        font-size: 16px;
        text-align: center;
    }

    .next-steps {
        padding-left: var(--space-md);
    }

    .next-steps li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: var(--space-sm);
    }

    /* Section text improvements */
    .section-dark h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .section-dark p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Container padding */
    .container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    /* Card padding on mobile */
    .card {
        padding: var(--space-md);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .emergency-bar,
    .site-header,
    .site-footer,
    .cta-section {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
