/* ==========================================================================
   JJ Electric — custom styles (on top of Bootstrap 5.3.8)
   Black and white like the logo, with a safety-yellow accent.
   ========================================================================== */

:root {
    --ink: #141414;           /* near-black: nav, hero, headings */
    --ink-deep: #0b0b0b;      /* top bar, footer */
    --steel: #2b2e33;         /* breaker panel */
    --volt: #ffc629;          /* safety yellow accent */
    --volt-deep: #e9ad00;
    --paper: #f3f3f0;         /* light section background */
    --line: #deded9;
    --text: #222;
    --muted: #5d6066;

    --bs-body-font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-color: var(--text);
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.65;
    --bs-secondary-color: var(--muted);
    --bs-border-color: var(--line);
    --bs-link-color: var(--ink);
    --bs-link-color-rgb: 20, 20, 20;
    --bs-link-hover-color: #000;
    --bs-link-hover-color-rgb: 0, 0, 0;
}

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

h1, h2, h3, .h1, .h2, .h3, .h4 {
    font-family: "Montserrat", "Figtree", sans-serif;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.01em;
    line-height: 1.15;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3, .h4 { font-weight: 700; }
p a, li a { text-decoration-color: var(--volt-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; background: var(--volt); color: #000; padding: .5rem 1rem; font-weight: 700; }

/* Yellow highlighter behind a key word in headings */
.hl { background: linear-gradient(transparent 62%, var(--volt) 62%, var(--volt) 92%, transparent 92%); padding: 0 .1em; }
.on-dark .hl, .hero .hl { background: none; color: var(--volt); padding: 0; }

/* Thin hazard-stripe divider */
.stripe { height: 8px; background: repeating-linear-gradient(-45deg, var(--volt) 0 14px, var(--ink) 14px 28px); }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: 6px; padding: .65rem 1.35rem; }
.btn-lg { padding: .85rem 1.7rem; }
.btn-volt { --bs-btn-bg: var(--volt); --bs-btn-color: #000; --bs-btn-border-color: var(--volt);
            --bs-btn-hover-bg: var(--volt-deep); --bs-btn-hover-color: #000; --bs-btn-hover-border-color: var(--volt-deep);
            --bs-btn-active-bg: var(--volt-deep); --bs-btn-active-color: #000; --bs-btn-active-border-color: var(--volt-deep);
            --bs-btn-focus-shadow-rgb: 255, 198, 41; }
.btn-ink { --bs-btn-border-width: 2px; --bs-btn-bg: var(--ink); --bs-btn-color: #fff; --bs-btn-border-color: var(--ink);
           --bs-btn-hover-bg: #000; --bs-btn-hover-color: var(--volt); --bs-btn-hover-border-color: #000;
           --bs-btn-active-bg: #000; --bs-btn-active-color: var(--volt); }
.btn-outline-ink { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-border-width: 2px;
                   --bs-btn-hover-bg: var(--ink); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--ink);
                   --bs-btn-active-bg: #000; --bs-btn-active-color: #fff; }
.btn-outline-light { --bs-btn-border-width: 2px; }

/* ---------- Top bar + navigation ---------- */
.topbar { background: var(--ink-deep); color: rgba(255,255,255,.75); font-size: .88rem; padding: .45rem 0; }
.topbar-vet { color: #fff; font-weight: 600; }
.topbar-vet i { color: var(--volt); }
.topbar-phone { color: var(--volt); font-weight: 700; text-decoration: none; }
.topbar-phone:hover { color: #fff; }

.site-nav { background: var(--ink); border-bottom: 3px solid var(--volt); }
.site-nav .navbar-brand { display: flex; align-items: center; gap: .65rem; padding: .55rem 0; }
.brand-mark { height: 44px; width: auto; }
.brand-name { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.site-nav .nav-link { color: rgba(255,255,255,.82); font-weight: 600; padding-left: .9rem !important; padding-right: .9rem !important; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: #fff; }
.site-nav .nav-link.active { color: var(--volt); }
.site-nav .navbar-toggler { border-color: rgba(255,255,255,.35); }
.site-nav .navbar-toggler-icon { filter: invert(1); }

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
/* big yellow lightning slash behind the logo */
.hero::before {
    content: ""; position: absolute; top: -10%; bottom: -10%; right: -6%; width: 46%;
    background: var(--volt); opacity: .09;
    clip-path: polygon(62% 0, 100% 0, 58% 46%, 80% 46%, 18% 100%, 36% 54%, 14% 54%);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.6rem); margin-bottom: 1.1rem; }
.hero .lead { color: rgba(255,255,255,.82); max-width: 34em; }
.hero-logo { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; }
@media (max-width: 991.98px) { .hero-logo { max-width: 240px; margin: 0; } }
.hero-checks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .45rem; }
.hero-checks li { display: flex; gap: .6rem; color: rgba(255,255,255,.88); }
.hero-checks i { color: var(--volt); }

/* ---------- Trust strip ---------- */
.trust { background: var(--volt); color: #000; }
.trust-item { display: flex; align-items: center; gap: .7rem; font-weight: 700; line-height: 1.25; }
.trust-item i { font-size: 1.6rem; }
.trust-item small { display: block; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: rgba(255,255,255,.85); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: rgba(255,255,255,.75); }
@media (max-width: 767.98px) { .section { padding: 3.5rem 0; } }

/* ---------- Breaker panel ---------- */
.breaker-box {
    background: linear-gradient(180deg, #3a3e44, var(--steel));
    border-radius: 10px; padding: 1.25rem; height: 100%;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.18);
    display: flex; flex-direction: column;
}
.breaker-box-head { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.7);
                    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.breaker-main { background: var(--volt); color: #000; padding: .15rem .5rem; border-radius: 3px; }
.breakers { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; background: #1a1c1f; border-radius: 6px; padding: .7rem; flex: 1; }
.breaker {
    display: flex; align-items: center; gap: .55rem; width: 100%;
    background: #26292d; border: 1px solid #3a3e44; border-radius: 4px;
    padding: .65rem .6rem; color: #fff; text-align: left; font: inherit; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.breaker:hover { border-color: rgba(255,198,41,.6); }
.breaker:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.breaker-num { font-size: .72rem; color: rgba(255,255,255,.45); width: 1.1rem; text-align: center; flex: none; }
.breaker-switch { position: relative; flex: none; width: 42px; height: 22px; background: #0f1012; border-radius: 3px; box-shadow: inset 0 1px 3px rgba(0,0,0,.6); }
.breaker-handle { position: absolute; top: 3px; left: 3px; width: 18px; height: 16px; background: #8b9097; border-radius: 2px; transition: left .18s ease, background .18s; }
.breaker.is-on { background: #2f3236; border-color: var(--volt); }
.breaker.is-on .breaker-handle { left: 21px; background: var(--volt); box-shadow: 0 0 10px rgba(255,198,41,.7); }
.breaker-label { font-size: .9rem; font-weight: 600; line-height: 1.2; }
.breaker-hint { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: .9rem; text-align: center; }

.readouts { height: 100%; }
.readout { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--volt); border-radius: 8px; padding: 2rem; margin-bottom: 1rem; }
.panel-wrap.is-interactive .readout { display: none; margin-bottom: 0; height: 100%; }
.panel-wrap.is-interactive .readout.is-active { display: block; animation: power-on .35s ease; }
@keyframes power-on { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.readout-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.readout-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--volt); display: grid; place-items: center; font-size: 1.5rem; }
.readout-status { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.led { width: 10px; height: 10px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 3px rgba(255,198,41,.25), 0 0 12px var(--volt); }
.readout h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.readout .lead { font-size: 1.12rem; color: var(--muted); }
@media (max-width: 991.98px) { .readout { padding: 1.5rem; } }
@media (max-width: 400px) { .breaker-label { font-size: .82rem; } .breaker { gap: .4rem; padding: .6rem .45rem; } .breaker-num { display: none; } }

/* Checklist with lightning-bolt bullets */
.bolt-list { list-style: none; padding: 0; margin: 0; }
.bolt-list li { position: relative; padding-left: 1.75rem; margin-bottom: .45rem; }
.bolt-list li::before { content: "\F46C"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem; color: var(--volt-deep); }

/* ---------- Steps ---------- */
.step { border-top: 3px solid var(--ink); padding-top: 1.25rem; height: 100%; }
.step-num { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--volt-deep); display: block; margin-bottom: .6rem; }
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Veteran section ---------- */
.vet-card { background: var(--ink); color: rgba(255,255,255,.85); border-radius: 10px; padding: 2.5rem; position: relative; overflow: hidden; }
.vet-card h2 { color: #fff; }
.vet-stars { color: var(--volt); letter-spacing: .4em; font-size: 1.1rem; margin-bottom: 1rem; display: block; }
.vet-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--volt); color: #000; font-weight: 800; border-radius: 6px; padding: .55rem 1rem; }
@media (max-width: 575.98px) { .vet-card { padding: 1.75rem; } }

/* ---------- Cards and photos ---------- */
.tile { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.75rem; height: 100%; }
.tile-icon { width: 48px; height: 48px; border-radius: 8px; background: var(--volt); color: #000; display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 1rem; }
.tile h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.tile p { color: var(--muted); margin-bottom: 0; }

.photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.photo-placeholder { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, #ecece8 0 18px, #e4e4df 18px 36px); color: #9a9b96; font-size: 2.6rem; }

/* Review placeholders */
.review { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.75rem; height: 100%; }
.review .stars { color: var(--volt-deep); margin-bottom: .75rem; }
.review blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.review figcaption { color: var(--muted); font-size: .92rem; font-weight: 600; }

/* ---------- Inner page banner ---------- */
.page-banner { position: relative; background: var(--ink); color: #fff; padding: 4rem 0 3.5rem; overflow: hidden; }
.page-banner::after {
    content: ""; position: absolute; top: 0; bottom: 0; right: 4%; width: 220px;
    background: var(--volt); opacity: .12;
    clip-path: polygon(62% 0, 100% 0, 58% 46%, 80% 46%, 18% 100%, 36% 54%, 14% 54%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.2rem); margin-bottom: .75rem; }
.page-banner .lead { color: rgba(255,255,255,.8); max-width: 40em; }

/* ---------- Services page ---------- */
.svc-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-nav a { border: 2px solid var(--ink); border-radius: 6px; padding: .4rem .85rem; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink); }
.svc-nav a:hover { background: var(--ink); color: #fff; }
.svc { padding: 3rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.svc:first-of-type { border-top: 0; }
.svc-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--volt); display: grid; place-items: center; font-size: 1.75rem; }
.svc-group { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.warn { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--volt); border-radius: 8px; padding: 1.25rem 1.4rem; height: 100%; }
.warn i { color: var(--volt-deep); font-size: 1.4rem; line-height: 1.3; }
.warn h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.warn p { color: var(--muted); margin: 0; font-size: .98rem; }
.danger-note { background: #fff4f2; border: 1px solid #f2c4bb; border-radius: 8px; padding: 1.25rem 1.4rem; }
.danger-note strong { color: #9b1c0c; }

/* ---------- Projects ---------- */
.filter-btn { border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; border-radius: 6px; padding: .45rem 1rem; }
.filter-btn:hover { background: var(--paper); }
.filter-btn.active { background: var(--ink); color: #fff; }
.project { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; height: 100%; }
.project .photo { border-radius: 0; }
.project-body { padding: 1.25rem 1.4rem 1.5rem; }
.project-type { display: inline-block; background: var(--volt); color: #000; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: 3px; padding: .15rem .5rem; margin-bottom: .6rem; }
.project h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.project p { color: var(--muted); margin: 0; font-size: .98rem; }
.project-col.is-hidden { display: none; }

/* ---------- About ---------- */
.fact { border-left: 4px solid var(--volt); padding-left: 1rem; }
.fact strong { display: block; font-family: "Montserrat", sans-serif; font-size: 1.15rem; color: var(--ink); }
.fact span { color: var(--muted); }

/* ---------- Forms ---------- */
.form-sheet { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--volt); border-radius: 8px; padding: 2.25rem; }
.form-label { font-weight: 600; }
.form-control, .form-select { border-radius: 6px; padding: .65rem .85rem; border-color: #cfcfca; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--ink); box-shadow: 0 0 0 .2rem rgba(255,198,41,.45); }
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.vet-check { background: var(--paper); border-radius: 6px; padding: .9rem 1rem .9rem 2.6rem; }
.contact-card { background: var(--ink); color: rgba(255,255,255,.85); border-radius: 8px; padding: 2rem; }
.contact-card h2 { color: #fff; font-size: 1.4rem; }
.contact-card a { color: #fff; }
.contact-card i { color: var(--volt); }
@media (max-width: 575.98px) { .form-sheet { padding: 1.5rem; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--volt); padding: 3.5rem 0; color: #000; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band .lead { color: #2a2a2a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,.85); padding: 4rem 0 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--volt); }
.footer-logo { width: 170px; height: auto; }
.footer-heading { font-family: "Figtree", sans-serif; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--volt); margin-bottom: 1rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-muted { color: rgba(255,255,255,.62); }
.site-footer hr { border-color: rgba(255,255,255,.15); opacity: 1; }
