/*
Theme Name: ACE Contracting Services
Theme URI: https://acecontracting.com
Author: ACE Contracting Services
Description: Modern WordPress theme for ACE Contracting Services - electrical infrastructure installations including traffic lights, signalling, security and detection systems. Built with 2026 web design trends.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ace-contracting
Tags: custom-background, custom-logo, custom-menu, featured-images, block-styles, wide-blocks
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES - ACE Brand Colors
   ========================================================================== */

:root {
    --ace-charcoal: #2D3033;
    --ace-charcoal-dark: #1a1c1e;
    --ace-charcoal-light: #3d4145;
    --ace-signal-red: #e63232;
    --ace-signal-yellow: #f5c518;
    --ace-signal-green: #4CAF50;
    --ace-warm-gray: #b8b2a7;
    --ace-cool-gray: #9ea3a8;
    --ace-cloud: #f7f6f4;
    --ace-off-white: #fafaf8;
    --ace-concrete: #e8e6e2;
    
    --gradient-hero: linear-gradient(135deg, var(--ace-charcoal) 0%, var(--ace-charcoal-light) 50%, rgba(45, 48, 51, 0.9) 100%);
    --gradient-accent: linear-gradient(90deg, var(--ace-signal-red) 0%, var(--ace-signal-yellow) 50%, var(--ace-signal-green) 100%);
    
    --font-display: 'DM Sans', 'Helvetica Neue', sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    --text-4xl: clamp(2.5rem, 1.75rem + 3.75vw, 5rem);
    --text-hero: clamp(3rem, 2rem + 5vw, 7rem);
    
    --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
    --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 2rem);
    --space-lg: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --space-xl: clamp(3rem, 2rem + 5vw, 8rem);
    --space-2xl: clamp(4rem, 2.5rem + 7.5vw, 12rem);
    
    --container-max: 1400px;
    --header-height: 80px;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 2px rgba(45, 48, 51, 0.05);
    --shadow-md: 0 4px 12px rgba(45, 48, 51, 0.08), 0 2px 4px rgba(45, 48, 51, 0.04);
    --shadow-lg: 0 12px 40px rgba(45, 48, 51, 0.12), 0 4px 12px rgba(45, 48, 51, 0.06);
    --shadow-xl: 0 24px 80px rgba(45, 48, 51, 0.16), 0 8px 24px rgba(45, 48, 51, 0.08);
    --shadow-glow-green: 0 0 40px rgba(76, 175, 80, 0.3);
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   CSS RESET
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--ace-charcoal);
    background-color: var(--ace-off-white);
    overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

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

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

.section { padding-block: var(--space-xl); }
.section-lg { padding-block: var(--space-2xl); }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 48, 51, 0.08);
    transition: var(--transition-base);
}

.site-header.scrolled {
    background: rgba(250, 250, 248, 0.95);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-lg);
}

.site-logo img { height: 50px; width: auto; }

.main-nav { display: flex; align-items: center; gap: var(--space-lg); }
.nav-menu { display: flex; align-items: center; gap: var(--space-md); }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ace-charcoal);
    transition: var(--transition-fast);
    position: relative;
}

/* Navigation Indicator - Traffic Light Dots */
.nav-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ace-signal-yellow);
    transition: var(--transition-base);
    flex-shrink: 0;
}

/* Active state - Red (all WordPress active classes) */
.nav-link.active .nav-indicator,
.current-menu-item > .nav-link .nav-indicator,
.current_page_item > .nav-link .nav-indicator,
.current-menu-ancestor > .nav-link .nav-indicator,
.current-page-ancestor > .nav-link .nav-indicator,
.current_page_parent > .nav-link .nav-indicator,
.current-menu-parent > .nav-link .nav-indicator,
.nav-item.active > .nav-link .nav-indicator,
li.current-menu-item .nav-indicator,
li.current_page_item .nav-indicator {
    background: var(--ace-signal-red);
    box-shadow: 0 0 8px rgba(230, 50, 50, 0.5);
}

/* Hover state - Green */
.nav-link:hover .nav-indicator {
    background: var(--ace-signal-green);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

/* WordPress menu item active states - ensure red shows */
.nav-item.current-menu-item .nav-indicator,
.nav-item.current_page_item .nav-indicator,
.nav-item.current-menu-ancestor .nav-indicator,
.nav-item.current-page-ancestor .nav-indicator,
.menu-item.current-menu-item .nav-indicator,
.menu-item.current_page_item .nav-indicator {
    background: var(--ace-signal-red) !important;
    box-shadow: 0 0 8px rgba(230, 50, 50, 0.5) !important;
}

/* Ensure hover still works on active items */
.nav-item.current-menu-item .nav-link:hover .nav-indicator,
.nav-item.current_page_item .nav-link:hover .nav-indicator {
    background: var(--ace-signal-green) !important;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5) !important;
}

/* Dropdown link indicators */
.dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    transition: var(--transition-fast);
}

.dropdown-link .nav-indicator {
    width: 6px;
    height: 6px;
}

.dropdown-link:hover .nav-indicator {
    background: var(--ace-signal-green);
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: var(--ace-off-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link:hover {
    background: var(--ace-concrete);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ace-charcoal);
    transition: var(--transition-base);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--ace-charcoal);
    color: var(--ace-off-white);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.header-cta:hover {
    background: transparent;
    border-color: var(--ace-charcoal);
    color: var(--ace-charcoal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: var(--ace-charcoal);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-bg-shape {
    position: absolute;
    opacity: 0.1;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

.hero-bg-shape--1 {
    top: 10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: var(--ace-signal-green);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.hero-bg-shape--2 {
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: var(--ace-signal-yellow);
    border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    animation-direction: reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ace-signal-green);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-eyebrow-text {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ace-off-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    color: var(--ace-off-white);
    margin-bottom: var(--space-md);
    line-height: 1.05;
}

.hero-title-line { display: block; overflow: hidden; }

.hero-title-word {
    display: inline-block;
    transform: translateY(100%);
    animation: revealWord 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title-word:nth-child(1) { animation-delay: 0.1s; }
.hero-title-word:nth-child(2) { animation-delay: 0.2s; }
.hero-title-word:nth-child(3) { animation-delay: 0.3s; }
.hero-title-word:nth-child(4) { animation-delay: 0.4s; }

@keyframes revealWord { to { transform: translateY(0); } }

.hero-title-accent { color: var(--ace-signal-yellow); }

.hero-description {
    font-size: var(--text-xl);
    color: var(--ace-warm-gray);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.signal-bar {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
}

.signal-light {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.signal-light--red { background: var(--ace-signal-red); }
.signal-light--yellow { background: var(--ace-signal-yellow); }
.signal-light--green { background: var(--ace-signal-green); }

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--ace-off-white);
    line-height: 1;
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--ace-warm-gray);
    margin-top: 4px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--ace-signal-green);
    color: white;
}

.btn-primary:hover {
    background: #3d9140;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-green);
}

.btn-secondary {
    background: transparent;
    border-color: var(--ace-off-white);
    color: var(--ace-off-white);
}

.btn-secondary:hover {
    background: var(--ace-off-white);
    color: var(--ace-charcoal);
}

.btn-outline {
    background: transparent;
    border-color: var(--ace-charcoal);
    color: var(--ace-charcoal);
}

.btn-outline:hover {
    background: var(--ace-charcoal);
    color: var(--ace-off-white);
}

.btn-icon { transition: transform var(--transition-fast); }
.btn:hover .btn-icon { transform: translateX(4px); }

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-section {
    background: var(--ace-cloud);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--ace-charcoal);
    clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ace-signal-green);
}

.section-title { margin-bottom: var(--space-md); }

.section-description {
    font-size: var(--text-lg);
    color: var(--ace-charcoal-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background: var(--ace-off-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img { transform: scale(1.05); }

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 48, 51, 0.8) 0%, transparent 50%);
}

.service-card-icon {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 48px;
    height: 48px;
    background: var(--ace-off-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.service-card:hover .service-card-icon {
    background: var(--ace-signal-green);
    color: white;
}

.service-card-content { padding: var(--space-lg); }

.service-card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.service-card-description {
    color: var(--ace-charcoal-light);
    margin-bottom: var(--space-md);
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ace-signal-green);
    transition: var(--transition-fast);
}

.service-card-link:hover { gap: 12px; }

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section { background: var(--ace-off-white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-image img { width: 100%; height: auto; }

.about-accent-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--ace-charcoal);
    color: var(--ace-off-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.about-accent-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-accent-label {
    font-size: var(--text-sm);
    color: var(--ace-warm-gray);
}

.about-content { padding-left: var(--space-lg); }

.about-list {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about-list-item { display: flex; gap: var(--space-md); }

.about-list-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--ace-cloud);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ace-signal-green);
}

.about-list-text h4 {
    font-size: var(--text-lg);
    margin-bottom: 4px;
}

.about-list-text p {
    font-size: var(--text-sm);
    color: var(--ace-charcoal-light);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */

.projects-section {
    background: var(--ace-charcoal);
    color: var(--ace-off-white);
}

.projects-section .section-description { color: var(--ace-warm-gray); }

.projects-slider {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-block: var(--space-md);
    scrollbar-width: none;
}

.projects-slider::-webkit-scrollbar { display: none; }

.project-card {
    flex: 0 0 400px;
    scroll-snap-align: start;
    background: var(--ace-charcoal-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.project-card-image {
    height: 280px;
    position: relative;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 6px 12px;
    background: var(--ace-signal-green);
    color: white;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.project-card-content { padding: var(--space-lg); }

.project-card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.project-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--ace-warm-gray);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    position: relative;
    padding-block: var(--space-2xl);
    background: linear-gradient(180deg, var(--ace-cloud) 0%, var(--ace-off-white) 100%);
    overflow: hidden;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
    position: relative;
    z-index: 10;
}

.cta-lights {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.cta-light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: sequentialGlow 3s ease-in-out infinite;
}

.cta-light--red { background: var(--ace-signal-red); }
.cta-light--yellow { background: var(--ace-signal-yellow); animation-delay: 1s; }
.cta-light--green { background: var(--ace-signal-green); animation-delay: 2s; }

@keyframes sequentialGlow {
    0%, 30%, 100% { opacity: 0.3; transform: scale(1); }
    15% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 30px currentColor; }
}

.cta-title { margin-bottom: var(--space-md); }

.cta-description {
    font-size: var(--text-lg);
    color: var(--ace-charcoal-light);
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--ace-charcoal);
    color: var(--ace-off-white);
    padding-top: var(--space-xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand { max-width: 320px; }

.footer-logo { margin-bottom: var(--space-md); }
.footer-logo img { height: 60px; width: auto; filter: brightness(0) invert(1); }

.footer-description {
    color: var(--ace-warm-gray);
    margin-bottom: var(--space-md);
}

.footer-social { display: flex; gap: var(--space-sm); }

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.social-link:hover { background: var(--ace-signal-green); }

.footer-nav h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
    color: var(--ace-off-white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-link {
    color: var(--ace-warm-gray);
    font-size: var(--text-sm);
    transition: var(--transition-fast);
}

.footer-link:hover { color: var(--ace-signal-green); }

.footer-bottom {
    padding-block: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--ace-warm-gray);
}

.footer-legal { display: flex; gap: var(--space-md); }

.footer-legal a {
    font-size: var(--text-sm);
    color: var(--ace-warm-gray);
    transition: var(--transition-fast);
}

.footer-legal a:hover { color: var(--ace-off-white); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .about-grid { gap: var(--space-lg); }
}

@media (max-width: 992px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .about-grid { grid-template-columns: 1fr; }
    .about-content { padding-left: 0; }
    .hero-stats { flex-wrap: wrap; gap: var(--space-lg); }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { max-width: none; }
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }
    .project-card { flex: 0 0 320px; }
}

@media (max-width: 480px) {
    .hero-cta-group { flex-direction: column; }
    .hero-stats { flex-direction: column; gap: var(--space-md); }
    .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

.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;
}

:focus-visible {
    outline: 2px solid var(--ace-signal-green);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-sm) var(--space-md);
    background: var(--ace-charcoal);
    color: var(--ace-off-white);
    border-radius: var(--radius-md);
    z-index: 9999;
    transition: var(--transition-fast);
}

.skip-link:focus { top: var(--space-sm); }

/* WordPress Classes */
.alignleft { float: left; margin-right: var(--space-md); margin-bottom: var(--space-md); }
.alignright { float: right; margin-left: var(--space-md); margin-bottom: var(--space-md); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: var(--space-md); }
.alignwide { max-width: 1600px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--text-sm); color: var(--ace-charcoal-light); text-align: center; padding-top: var(--space-sm); }
