/* ============================================================
   Wishful Construction — Shared theme (header / footer / call button)
   Loaded on EVERY page. Self-contained so it works both with the
   new homepage stylesheet and the legacy Bootstrap pages.
   ============================================================ */

:root {
    --green: #66bb00;
    --green-dark: #52a000;
    --navy: #012535;
    --navy-2: #0a3247;
    --ink: #0e1b24;
    --steel: #55636e;
    --paper: #ffffff;
    --slab: #f4f6f2;
    --line: #e3e8e2;
    --shadow: 0 14px 40px rgba(1, 37, 53, 0.1);
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* Hardening: these components fully control their own box model,
   fonts and list styles so legacy CSS can't distort them. */
.topbar, .topbar *,
.site-header, .site-header *,
.site-footer, .site-footer *,
.nav-overlay,
.float-call, .float-call * {
    box-sizing: border-box;
}
.topbar, .site-header, .site-footer {
    font-family: var(--font-body);
    line-height: 1.7;
}
.topbar ul, .site-header ul, .site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.topbar a, .site-header a, .site-footer a, .float-call {
    text-decoration: none;
}
.topbar a:hover, .site-header a:hover, .site-footer a:hover, .float-call:hover {
    text-decoration: none;
}
.site-header img, .site-footer img { border: 0; }

.chrome-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Top micro bar ---------- */
.topbar {
    background: var(--navy);
    color: #cfe0e8;
    font-size: 13px;
    padding: 8px 0;
}
.topbar .chrome-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.topbar a { color: #fff; font-weight: 600; transition: color .25s ease; }
.topbar a:hover { color: var(--green); }
.topbar .top-phones { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .top-phones i { color: var(--green); margin-right: 6px; }
.topbar .top-social { display: flex; gap: 6px; }
.topbar .top-social a {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08);
    color: #fff; font-size: 13px;
    transition: background .25s ease;
}
.topbar .top-social a:hover { background: var(--green); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100000;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(1,37,53,.1); }
.site-header .chrome-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}
.brand { display: inline-flex; }
.brand img { height: 56px; width: auto; display: block; }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav a {
    display: block;
    padding: 28px 15px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    position: relative;
    transition: color .25s ease;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 15px; right: 15px; bottom: 18px;
    height: 3px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav li.active > a::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--green-dark); }

/* dropdown */
.has-drop { position: relative; }
.has-drop > a i { font-size: 11px; margin-left: 5px; color: var(--green-dark); }
.drop {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--green);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .25s ease;
    z-index: 50;
}
.has-drop:hover .drop,
.has-drop:focus-within .drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.drop a {
    padding: 12px 22px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--steel);
    border-bottom: 1px solid var(--slab);
    transition: all .25s ease;
}
.drop a::after { display: none; }
.drop a:hover { background: var(--slab); color: var(--navy); padding-left: 28px; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .call-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green);
    color: #fff;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .05em;
    padding: 11px 22px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    transition: background .25s ease;
    white-space: nowrap;
}
.header-cta .call-pill:hover { background: var(--navy); color: #fff; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 26px;
    color: var(--navy);
    cursor: pointer;
    padding: 8px;
}
.nav-close { display: none; }
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1,20,30,.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 99990; /* below .site-header (100000) so the nav drawer renders above the overlay */
}
.nav-overlay.show { opacity: 1; visibility: visible; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.72);
    padding: 80px 0 0;
    font-size: 15px;
}
.site-footer p { margin: 0 0 16px; color: rgba(255,255,255,.72); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.2fr;
    gap: 56px;
    padding-bottom: 56px;
}
.site-footer h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 12px;
}
.site-footer h3::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 36px; height: 3px;
    background: var(--green);
}
.footer-brand img {
    height: 52px;
    width: auto;
    margin-bottom: 18px;
    background: #fff;
    padding: 6px 10px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    display: block;
}
.footer-social { display: flex; gap: 8px; margin-top: 22px; }
.footer-social a {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 15px;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
    transition: background .25s ease;
}
.footer-social a:hover { background: var(--green); color: #fff; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: 8px; transition: color .25s ease; }
.footer-links a i { color: var(--green); font-size: 11px; }
.footer-links a:hover { color: var(--green); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 12px; align-items: baseline; }
.footer-contact i { color: var(--green); width: 16px; }
.footer-contact a { color: rgba(255,255,255,.72); transition: color .25s ease; }
.footer-contact a:hover { color: var(--green); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 22px 0;
}
.footer-bottom .chrome-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13.5px;
}
.footer-bottom p { margin: 0; }
.footer-bottom .biz-name { color: var(--green); font-weight: 600; }
.footer-bottom img { height: 28px; width: auto; display: block; }

/* ---------- Floating tap-to-call ---------- */
.float-call {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 62px;
    height: 62px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 9999999;
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
    animation: floatcall-shake 2.2s ease-in-out infinite;
    transition: background .3s ease, transform .3s ease;
}
.float-call:hover, .float-call:focus { background: var(--navy); color: #fff; transform: scale(1.08); }
.float-call .float-call-ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--green);
    animation: floatcall-pulse 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes floatcall-pulse {
    0% { transform: scale(1); opacity: .9; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes floatcall-shake {
    0%, 20%, 100% { transform: rotate(0); }
    4% { transform: rotate(-14deg); }
    8% { transform: rotate(12deg); }
    12% { transform: rotate(-10deg); }
    16% { transform: rotate(8deg); }
}

/* ---------- Accessibility ---------- */
.site-header a:focus-visible,
.site-footer a:focus-visible,
.topbar a:focus-visible,
.nav-toggle:focus-visible,
.nav-close:focus-visible,
.float-call:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .float-call, .float-call .float-call-ring { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .main-nav a { padding: 28px 10px; font-size: 13px; }
}

@media (max-width: 992px) {
    .nav-toggle { display: block; }
    .header-cta .call-pill span { display: none; }
    .header-cta .call-pill { padding: 12px 16px; }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: var(--navy);
        padding: 90px 30px 40px;
        transform: translateX(100%);
        transition: transform .35s ease;
        overflow-y: auto;
        z-index: 100100;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a {
        color: #fff;
        padding: 14px 4px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .main-nav a::after { display: none; }
    .drop {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        border-top: 0;
        min-width: 0;
    }
    .drop a { color: rgba(255,255,255,.66); padding: 10px 4px 10px 20px; border-bottom: 0; font-size: 13.5px; }
    .drop a:hover { background: transparent; color: var(--green); padding-left: 26px; }
    .nav-close {
        position: absolute;
        top: 22px; right: 22px;
        background: none;
        border: 0;
        color: #fff;
        font-size: 26px;
        cursor: pointer;
        display: block;
        padding: 6px;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    .topbar .top-social { display: none; }
    .topbar .chrome-container { justify-content: center; }
    .brand img { height: 46px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .chrome-container { justify-content: center; text-align: center; }
    .float-call { bottom: 22px; right: 18px; width: 56px; height: 56px; font-size: 23px; }
}
