/*
Theme Name: Energy Solutions NW
Theme URI: https://energysolutionsnw.com
Author: Jason Bonavia
Description: Custom WordPress theme for Energy Solutions NW - Solar, Battery Storage & Renewable Energy Services
Version: 1.0.0
Text Domain: energy-solutions-nw
*/

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1B4F72;
    --primary-dark: #0F2E44;
    --primary-light: #2E86C1;
    --accent: #1B4F72;
    --accent-hover: #0F2E44;
    --green: #27AE60;
    --green-light: #E8F8F0;
    --text: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F0F4F8;
    --bg-pale: #F8FAFB;
    --white: #FFFFFF;
    --border: #E1E8ED;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    line-height: 1.4;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}
.btn-secondary {
    background: var(--primary);
    color: var(--white);
}
.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ═══════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════ */
.site-header {
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.site-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-logo img {
    height: 45px;
    width: auto;
}
.site-logo span.logo-text {
    line-height: 1.2;
}
.site-logo .logo-sub {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Desktop Nav */
.main-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}
.main-nav a:hover { color: var(--primary); }
.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius);
    font-weight: 600 !important;
    text-decoration: none;
    font-size: 0.95rem;
    margin-left: auto;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
    background: var(--accent-hover);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}
.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    background: var(--white);
    min-width: 260px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 8px 0;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: none;
}
.nav-dropdown-menu a::after {
    display: none;
}
.nav-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.location-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.location-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.location-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.location-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}
.location-card a {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Case Study Cards */
.case-study-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}
.case-study-image {
    height: 100%;
    min-height: 300px;
    background: var(--bg-light);
    overflow: hidden;
}
.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.case-study-content {
    padding: 40px 40px 40px 0;
}
.case-study-tag {
    display: inline-block;
    background: var(--green-light);
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.case-study-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.case-study-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* About Page Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.feature-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.feature-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ═══════════════════════════════════════
   HERO SECTION (VIDEO)
   ═══════════════════════════════════════ */
.hero {
    background: #0F2E44;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-video-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}
.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}
.hero h1 {
    color: var(--white);
    font-size: 3.4rem;
    margin-bottom: 24px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero-scroll-indicator span {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 13px;
    position: relative;
}
.hero-scroll-indicator span::after {
    content: '';
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* ═══════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════ */
.stats-bar {
    background: var(--primary-dark);
    padding: 40px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-card {
    color: var(--white);
}
.stat-card .stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════ */
.trust-bar {
    background: var(--bg-light);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--green);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════
   CATEGORY FILTER
   ═══════════════════════════════════════ */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.filter-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-light);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
}
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ═══════════════════════════════════════
   PROCESS STEPS
   ═══════════════════════════════════════ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.process-step {
    text-align: center;
    padding: 32px 20px;
}
.process-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
    line-height: 1;
}
.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.process-step p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   LINK CARDS
   ═══════════════════════════════════════ */
.link-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.link-card {
    display: block;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
}
.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}
.link-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.link-card-cta {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════
   SCROLLING ACCREDITATION BANNER
   ═══════════════════════════════════════ */
.accreditation-scroll {
    padding: 30px 0;
    background: var(--white);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.accreditation-scroll-label {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 20px;
}
.scroll-track {
    display: flex;
    animation: scrollLogos 30s linear infinite;
    width: max-content;
}
.scroll-track:hover {
    animation-play-state: paused;
}
.scroll-logos {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 30px;
}
.scroll-logos img {
    height: 40px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}
.scroll-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════
   SECTIONS (Generic)
   ═══════════════════════════════════════ */
.section {
    padding: 80px 0;
}
.section-light {
    background: var(--bg-light);
}
.section-pale {
    background: var(--bg-pale);
}
.section-dark {
    background: var(--primary-dark);
    color: var(--white);
}
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}
.section-header .section-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.section-header h2 {
    margin-bottom: 16px;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════
   SERVICES GRID
   ═══════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.5rem;
}
.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}
.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}
.service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 16px;
}
.service-card .service-link:hover {
    gap: 10px;
}

/* ═══════════════════════════════════════
   ABOUT / SPLIT SECTION
   ═══════════════════════════════════════ */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.split-content h2 {
    margin-bottom: 20px;
}
.split-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}
.accreditation-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.accreditation-logos img {
    height: 45px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}
.accreditation-logos img:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
}
.testimonial-card .quote-mark {
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
    font-family: Georgia, serif;
}
.testimonial-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.testimonial-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.testimonial-location {
    font-size: 0.8rem;
    color: var(--text-light);
}
.testimonial-stars {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

/* ═══════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
}
.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}
.faq-question:hover {
    color: var(--primary);
    background: var(--bg-pale);
}
.faq-question .faq-toggle {
    font-size: 1.5rem;
    color: var(--accent);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}
.faq-answer {
    display: none;
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    display: block;
}

/* ═══════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 70px 0;
    text-align: center;
    color: var(--white);
}
.cta-section h2 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 2rem;
}
.cta-section p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════
   QUOTE FORM
   ═══════════════════════════════════════ */
.quote-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.quote-form .form-group {
    margin-bottom: 20px;
}
.quote-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--text);
}
.quote-form label .required {
    color: #E74C3C;
}
.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    transition: var(--transition);
    background: var(--bg-pale);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.15);
    background: var(--white);
}
.quote-form textarea {
    resize: vertical;
    min-height: 100px;
}
.quote-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.quote-form .form-submit {
    text-align: center;
    margin-top: 28px;
}
.quote-form .form-submit .btn {
    padding: 16px 48px;
    font-size: 1.1rem;
}
.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 16px;
}
.form-ref {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
    font-style: italic;
}

/* Hidden tracking field */
.esnw-hidden { display: none !important; }

/* Form errors */
.field-error {
    border-color: #E74C3C !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
    background: #FFF5F5 !important;
}
.error-msg {
    display: block;
    color: #E74C3C;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
}
.error-summary {
    background: #FFF5F5;
    border: 1px solid #E74C3C;
    color: #E74C3C;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
}

/* Form success message */
.form-success {
    text-align: center;
    padding: 40px;
}
.form-success .success-icon {
    font-size: 3rem;
    color: var(--green);
    margin-bottom: 16px;
}
.form-success h3 {
    color: var(--green);
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-top: 16px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}
.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ═══════════════════════════════════════
   PAGE TEMPLATES
   ═══════════════════════════════════════ */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-header h1 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 12px;
}
.page-header p {
    opacity: 0.85;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.page-content {
    padding: 60px 0;
}
.page-content .content-area {
    max-width: 800px;
    margin: 0 auto;
}
.page-content .content-area p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Blog listing */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.blog-card-image {
    height: 200px;
    background: var(--bg-light);
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-content {
    padding: 24px;
}
.blog-card-content .blog-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}
.blog-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.blog-card-content h3 a {
    color: var(--text);
}
.blog-card-content h3 a:hover {
    color: var(--primary);
}
.blog-card-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .split-section { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.4rem; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .locations-grid { grid-template-columns: repeat(3, 1fr); }
    .case-study-card { grid-template-columns: 1fr; }
    .case-study-content { padding: 32px; }
    .case-study-image { min-height: 250px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .link-cards-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
    .main-nav { 
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }
    .main-nav.active { display: flex; }
    .main-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }
    .nav-toggle { display: block; }
    
    /* Mobile dropdown */
    .nav-dropdown { width: 100%; }
    .nav-dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        min-width: auto;
    }
    .nav-dropdown.active .nav-dropdown-menu { display: block; }
    .nav-dropdown-menu a {
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }
    
    .hero { min-height: 70vh; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.05rem; }
    .hero-scroll-indicator { display: none; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; text-align: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-card .stat-number { font-size: 2rem; }
    
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .quote-form .form-row { grid-template-columns: 1fr; }
    .locations-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    
    .trust-items { gap: 20px; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .section { padding: 50px 0; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    
}