/* ============================================================
   Yacubeck Electric — Theme Stylesheet
   Design: Premium / Clean / Intentional
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --navy:          #0a3a5a;
    --navy-mid:      #0d4a75;
    --navy-light:    #1a5a8a;
    --blue:          #0066cc;
    --blue-bright:   #0099ff;
    --blue-light:    #eff6ff;       /* desaturated — accent chips only */
    --white:         #ffffff;
    --off-white:     #f8fafc;
    --gray-50:       #f8fafc;
    --gray-100:      #f1f5f9;
    --gray-200:      #e5e7eb;
    --gray-400:      #9ca3af;
    --gray-500:      #6b7280;
    --gray-700:      #374151;
    --gray-900:      #111827;
    --text:          #111827;
    --text-muted:    #4b5563;
    --border:        #e5e7eb;
    --radius-sm:     6px;
    --radius:        10px;
    --radius-lg:     14px;          /* slightly tighter than before */
    --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:        0 4px 16px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
    --shadow-md:     0 8px 24px rgba(0,0,0,.09), 0 4px 8px rgba(0,0,0,.05);
    --shadow-lg:     0 16px 48px rgba(0,0,0,.11), 0 8px 16px rgba(0,0,0,.07);
    --transition:    0.18s ease;
    --font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono:     'SF Mono', 'Fira Code', Consolas, monospace;
    --container:     1360px;        /* wider — was 1200px */
    --gutter:        clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; color: var(--text); }

/* ── Focus ──────────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── Skip Link ──────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--navy);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(4rem, 8vw, 7rem);   /* was 3–6rem */
}
.section--light { background: var(--gray-50); }
.section--navy  { background: var(--navy); color: var(--white); }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;           /* was 2.5rem */
    flex-wrap: wrap;
}
.section-heading {
    font-size: clamp(1.625rem, 3vw, 2.25rem);  /* was 1.5–2.125rem */
    color: var(--text);
    letter-spacing: -0.02em;
}
.section--navy .section-heading { color: var(--white); }
.section-intro {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-top: 0.75rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}
.section-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.section-link:hover { text-decoration: underline; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.375rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), box-shadow var(--transition),
                transform var(--transition);
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 0.875rem 1.875rem; font-size: 1rem; }

/* Primary — blue fill. Used for primary CTAs only. */
.btn--primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,102,204,.28);
}
.btn--primary:hover {
    background: #0052a3;
    box-shadow: 0 4px 16px rgba(0,102,204,.38);
    transform: translateY(-1px);
}

/* Ghost — for use on dark navy backgrounds only */
.btn--ghost {
    background: rgba(255,255,255,.1);
    color: var(--white);
    border-color: rgba(255,255,255,.35);
}
.btn--ghost:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.6);
}

/* Outline blue — light backgrounds */
.btn--outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.btn--outline:hover {
    background: var(--blue);
    color: var(--white);
}

/* Outline light — dark/navy backgrounds */
.btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.5);
}
.btn--outline-light:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.8);
}

/* Neutral secondary — light backgrounds */
.btn--secondary {
    background: var(--white);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
    border-color: var(--gray-400);
    box-shadow: var(--shadow);
}

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.07);  /* subtle, not blue-tinted */
    box-shadow: 0 1px 8px rgba(0,0,0,.2);            /* lighter than before */
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 0.5rem;
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity var(--transition);
}
.logo:hover { opacity: 0.82; }
.logo-primary { display: block; height: 56px; width: auto; }
.logo-compact { display: none; height: 44px; width: auto; }
.logo-text {
    display: none;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

/* Nav */
#site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-links li { position: relative; }
.nav-links a {
    display: block;
    padding: 0.5rem 0.9rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
    color: var(--white);
    background: rgba(255,255,255,.09);
}
.nav-links .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    z-index: 100;
}
.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu { display: block; }
.nav-links .sub-menu a {
    border-radius: 0;
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
}
.nav-cta { margin-left: 0.75rem; }

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    color: rgba(255,255,255,.85);
    border-radius: var(--radius-sm);
}
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}
.hamburger span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────── */
/* Light background — white canvas, strong dark type, blue accents only */
.hero {
    background: var(--white);
    color: var(--text);
    padding-block: clamp(4rem, 9vw, 8rem);
    border-bottom: 1px solid var(--border);
}
.hero .container { position: relative; }
.hero-content { max-width: 760px; }
.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1rem;
}
.hero-headline {
    font-size: clamp(2.125rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1.375rem;
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.25rem;
    max-width: 620px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 2.25rem;
}
/* Phone CTA button — neutral on white background */
.hero .btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
    box-shadow: none;
}
.hero .btn--ghost:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--text);
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.hero-trust span { white-space: nowrap; }

/* ── Values / Brand Section ─────────────────────────────────── */
/* Sits on gray-50 (section--light in template) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 0;
}
.value-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.value-card:hover {
    box-shadow: var(--shadow);
    border-color: #d1d5db;
}
.value-icon {
    font-size: 1.625rem;
    margin-bottom: 0.875rem;
    line-height: 1;
}
.value-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.value-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Services Section ───────────────────────────────────────── */
/* Sits on white */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
    box-shadow: var(--shadow);
    border-color: #c7d2fe;    /* very subtle blue-tinted border on hover */
}
.service-card__icon {
    font-size: 1.875rem;
    line-height: 1;
}
.service-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.service-card__title a {
    color: var(--text);
    text-decoration: none;
}
.service-card__title a:hover { color: var(--blue); }
.service-card__desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.service-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    border-top: 1px solid var(--border);
    padding-top: 0.875rem;
    margin-top: 0.125rem;
}
.service-card__list li {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-left: 1.25em;
    position: relative;
}
.service-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.75rem;
    top: 0.125em;
}
.card-link {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 0.01em;
}
.card-link:hover { text-decoration: underline; }

/* ── Projects Section ───────────────────────────────────────── */
/* Sits on gray-50 (section--light in template) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.project-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover {
    box-shadow: var(--shadow);
    border-color: #d1d5db;
}
.project-card__image-link { display: block; overflow: hidden; }
.project-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.project-card:hover .project-card__image { transform: scale(1.04); }
.project-card__placeholder {
    height: 180px;
    background: var(--gray-100);          /* neutral gray — was dark navy */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gray-400);
}
.project-card__body { padding: 1.375rem 1.5rem; }
.project-card__category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: 0.25em 0.7em;
    border-radius: 4px;
    margin-bottom: 0.625rem;
}
.project-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}
.project-card__title a {
    color: var(--text);
    text-decoration: none;
}
.project-card__title a:hover { color: var(--blue); }
.project-card__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ── Testimonials ───────────────────────────────────────────── */
/* Sits on white */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.testimonial-card {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.625rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.stars { display: inline-flex; gap: 2px; }
.star--filled { color: #f59e0b; }
.star--empty  { color: var(--gray-400); }
.testimonial-card__text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}
.testimonial-card__attribution {
    margin-top: auto;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border);
}
.testimonial-card__name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}
.testimonial-card__role {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

/* ── CTA Banner ─────────────────────────────────────────────── */
/* Dark navy — intentional, terminal section */
.cta-banner {
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--white);
}
.cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-banner__heading {
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.cta-banner__text p {
    color: rgba(255,255,255,.72);
    font-size: 1rem;
}
.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    flex-shrink: 0;
}

/* ── Site Footer ────────────────────────────────────────────── */
/* Dark — intentional, complements header */
.site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,.65);
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem 3rem;
    margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1.125rem; }
.footer-brand .logo:hover { opacity: 0.78; }
.footer-brand .logo-primary { height: 48px; }
.footer-brand .logo-compact { display: none; height: 38px; }
.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.footer-license,
.footer-insurance {
    font-size: 0.8125rem;
    color: rgba(255,255,255,.38);
    margin-top: 0.25rem;
}
.footer-heading {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,.35);
    margin-bottom: 1.125rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,.58);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact p { margin-bottom: 0.5rem; }
.footer-link-prominent {
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-link-prominent:hover { color: var(--white); text-decoration: underline; }
.footer-address {
    font-size: 0.875rem;
    color: rgba(255,255,255,.5);
    line-height: 1.55;
}
.footer-hours p { margin-bottom: 0.5rem; font-size: 0.875rem; }
.hours-label {
    font-weight: 600;
    color: rgba(255,255,255,.6);
    margin-right: 0.375rem;
}
.emergency-note {
    font-size: 0.8125rem;
    color: #60c4ff;
    font-weight: 600;
    margin-top: 0.875rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 1.5rem;
}
.copyright {
    font-size: 0.875rem;
    color: rgba(255,255,255,.3);
    text-align: center;
}

/* ── Page Hero — inner pages ────────────────────────────────── */
/* Light background — removes blue overload on every inner page */
.page-hero {
    background: var(--white);
    color: var(--text);
    padding-block: clamp(2.25rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--border);
}
.page-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);             /* blue as accent, not background */
    margin-bottom: 0.75rem;
}
.page-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.875rem);
    font-weight: 800;
    color: var(--text);             /* dark text on white */
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}
.page-hero__sub {
    font-size: 1.0625rem;
    color: var(--text-muted);       /* muted on white */
    max-width: 560px;
    line-height: 1.65;
}

/* ── About Page ─────────────────────────────────────────────── */
.about-intro {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 740px;
    margin-bottom: 2rem;
}
.about-body p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.375rem;
    max-width: 740px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 1rem;
    margin-top: 3.5rem;
}
.highlight-card {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
}
.highlight-value {
    font-size: 2.375rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}
.highlight-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}
.credential-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.credential-card__icon { font-size: 1.625rem; }
.credential-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.credential-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Contact Page ───────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem 4.5rem;
    align-items: start;
}
.contact-intro {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 600px;
}
.contact-sidebar-card {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.625rem;
    margin-bottom: 1.25rem;
}
.contact-sidebar-card h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item .ci-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.15em; }
.contact-info-item .ci-text { font-size: 0.9375rem; color: var(--text-muted); }
.contact-info-item .ci-text a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}
.contact-info-item .ci-text a:hover { text-decoration: underline; }
.contact-hours dt { font-weight: 600; color: var(--text); font-size: 0.875rem; }
.contact-hours dd { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.5rem; }
.contact-hours dd:last-child { margin-bottom: 0; }

/* Form plugin overrides */
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea,
.contact-form-wrap select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    margin-bottom: 1rem;
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus,
.contact-form-wrap select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,102,204,.1);
    outline: none;
}
.contact-form-wrap label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
}
.contact-form-wrap .wpcf7-submit,
.contact-form-wrap .wpforms-submit {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 8px rgba(0,102,204,.28);
}
.contact-form-wrap .wpcf7-submit:hover,
.contact-form-wrap .wpforms-submit:hover {
    background: #0052a3;
    box-shadow: 0 4px 14px rgba(0,102,204,.35);
}
.contact-form-no-shortcode {
    background: var(--gray-50);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
}
.contact-form-no-shortcode p { margin-bottom: 0.5rem; }
.contact-form-no-shortcode code {
    background: var(--gray-200);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* ── Archive Pages ──────────────────────────────────────────── */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.archive-service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.archive-service-card:hover {
    box-shadow: var(--shadow);
    border-color: #c7d2fe;
}
.archive-service-card__type {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: 0.25em 0.7em;
    border-radius: 4px;
    width: fit-content;
}

/* ── Single Service ─────────────────────────────────────────── */
.single-service-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem 4rem;
    align-items: start;
}
.service-content .entry-title {
    font-size: clamp(1.5rem, 3.5vw, 2.375rem);
    margin-bottom: 1.375rem;
    letter-spacing: -0.025em;
}
.service-content .entry-content {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.service-content .entry-content p { margin-bottom: 1.375rem; }
.service-content .entry-content h2,
.service-content .entry-content h3 { color: var(--text); margin-block: 1.875rem 0.75rem; }
.service-items-section { margin-top: 2.5rem; }
.service-items-section h3 {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}
.item-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.item-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}
.item-list li::before {
    content: '✓';
    color: var(--blue);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1em;
    font-size: 0.875rem;
}
.service-sidebar { position: sticky; top: 86px; }

/* Service sidebar CTA — dark navy is intentional for CTA context */
.service-sidebar-cta {
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    color: var(--white);
    margin-bottom: 1.25rem;
}
.service-sidebar-cta h3 {
    color: var(--white);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}
.service-sidebar-cta p {
    font-size: 0.875rem;
    color: rgba(255,255,255,.68);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.service-sidebar-cta .btn { width: 100%; justify-content: center; margin-bottom: 0.625rem; }
.service-sidebar-cta .btn:last-child { margin-bottom: 0; }

/* ── Single Project ─────────────────────────────────────────── */
.single-project-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem 4rem;
    align-items: start;
}
.project-hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    aspect-ratio: 16/9;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}
.project-content .entry-title {
    font-size: clamp(1.5rem, 3.5vw, 2.375rem);
    margin-bottom: 1.375rem;
    letter-spacing: -0.025em;
}
.project-content .entry-content {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.project-content .entry-content p { margin-bottom: 1.375rem; }
.project-details-card {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.625rem;
    margin-top: 2rem;
}
.project-details-card h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.875rem;
}
.project-details-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    white-space: pre-wrap;
}
.project-sidebar { position: sticky; top: 86px; }
.project-meta-card {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.project-meta-card h3 {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.project-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-block: 0.5625rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.project-meta-item:last-child { border-bottom: none; padding-bottom: 0; }
.project-meta-item .label { color: var(--text-muted); font-weight: 500; }
.project-meta-item .value { color: var(--text); font-weight: 600; }
.related-projects { margin-top: 4rem; }
.related-projects h2 {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* ── Generic Page ───────────────────────────────────────────── */
.page-content-wrap {
    padding-block: clamp(3rem, 6vw, 5rem);
}
.entry-content {
    max-width: 740px;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.entry-content p { margin-bottom: 1.375rem; }
.entry-content h2 { font-size: 1.5rem; margin-block: 2.25rem 0.75rem; color: var(--text); letter-spacing: -0.02em; }
.entry-content h3 { font-size: 1.25rem; margin-block: 1.875rem 0.625rem; color: var(--text); letter-spacing: -0.01em; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.375rem; }
.entry-content li { margin-bottom: 0.375rem; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content blockquote {
    border-left: 3px solid var(--border);
    padding-left: 1.375rem;
    margin: 2rem 0;
    color: var(--text-muted);
    font-style: italic;
}

/* ── 404 ────────────────────────────────────────────────────── */
.error-404 { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.error-404__code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 800;
    color: var(--gray-200);
    line-height: 1;
    display: block;
    margin-bottom: -0.5rem;
}
.error-404__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.error-404__sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 460px;
    margin-inline: auto;
    margin-bottom: 2.25rem;
}
.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
}

/* ── Breadcrumb — on light page-hero ───────────────────────── */
.breadcrumb {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--gray-400); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding-inline: 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .page-numbers.current {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

/* ── Section dividers ───────────────────────────────────────── */
/* Subtle visual rhythm between adjacent same-color sections */
.section + .section:not(.section--light):not(.cta-banner) {
    border-top: 1px solid var(--border);
}

/* ── Scroll Animations ──────────────────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive — 1280px ─────────────────────────────────────── */
@media (max-width: 1280px) {
    :root { --container: 1200px; }
}

/* ── Responsive — 1024px ────────────────────────────────────── */
@media (max-width: 1024px) {
    .contact-layout { grid-template-columns: 1fr; }
    .single-service-layout,
    .single-project-layout { grid-template-columns: 1fr; }
    .service-sidebar,
    .project-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ── Responsive — 768px ─────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --container: 100%; }

    /* Logo swap */
    .logo-primary { display: none; }
    .logo-compact { display: block; }
    .logo-text    { display: none; }
    .footer-brand .logo-primary { display: none; }
    .footer-brand .logo-compact { display: block; }

    /* Header */
    .header-inner { height: 60px; }

    /* Mobile nav */
    .menu-toggle { display: flex; }
    #site-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 0.75rem 0 1.25rem;
        box-shadow: 0 8px 24px rgba(0,0,0,.22);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 800;
        border-top: 1px solid rgba(255,255,255,.07);
    }
    #site-nav.nav-open { display: flex; }
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    .nav-links a {
        padding: 0.875rem 1.5rem;
        border-radius: 0;
        font-size: 0.9375rem;
    }
    .nav-links .sub-menu {
        position: static;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 0.5rem;
        background: rgba(0,0,0,.12);
        display: block;
    }
    .nav-links .sub-menu a { padding-left: 2.5rem; }
    .nav-cta {
        margin: 0.875rem 1.5rem 0;
        justify-content: center;
    }

    /* Sections */
    .section { padding-block: clamp(3rem, 8vw, 5rem); }
    .section-header { flex-direction: column; align-items: flex-start; }
    .services-grid,
    .projects-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
    .cta-banner__inner { flex-direction: column; text-align: center; }
    .cta-banner__actions { justify-content: center; }
}

/* ── Responsive — 640px ─────────────────────────────────────── */
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Responsive — 480px ─────────────────────────────────────── */
@media (max-width: 480px) {
    .logo-compact { height: 38px; }
    .header-inner { height: 56px; }
    #site-nav { top: 56px; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .values-grid,
    .highlights-grid,
    .credentials-grid,
    .testimonials-grid { grid-template-columns: 1fr; }
    .pagination .page-numbers { min-width: 36px; height: 36px; font-size: 0.8125rem; }
}

/* ── Homepage: reduce CTA banner blue ──────────────────────── */
/*
 * On the homepage the hero is already full dark-navy.
 * A second dark-navy CTA banner below all the content doubles the blue.
 * WordPress adds .front-page to <body> when a static front page is set,
 * so we can override just that one instance.
 */
.front-page .cta-banner,
.home.page .cta-banner {
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    color: var(--text);
}
.front-page .cta-banner .cta-banner__heading,
.home.page .cta-banner .cta-banner__heading {
    color: var(--text);
}
.front-page .cta-banner .cta-banner__text p,
.home.page .cta-banner .cta-banner__text p {
    color: var(--text-muted);
}
/* Restyle the phone-number ghost button for a light background */
.front-page .cta-banner .btn--outline-light,
.home.page .cta-banner .btn--outline-light {
    color: var(--text);
    border-color: var(--border);
    background: var(--white);
}
.front-page .cta-banner .btn--outline-light:hover,
.home.page .cta-banner .btn--outline-light:hover {
    border-color: var(--gray-400);
    background: var(--gray-100);
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .cta-banner, .menu-toggle { display: none; }
    body { font-size: 11pt; color: #000; }
    a { text-decoration: underline; color: #0066cc; }
}
