/* Kilowatt Electrical Pretoria - charcoal & electric-yellow industrial theme */
:root {
    --ink: #17191d;
    --ink-soft: #22252b;
    --yellow: #ffd60a;
    --yellow-dark: #d9b400;
    --bg: #ffffff;
    --bg-alt: #f4f4f1;
    --text: #262a31;
    --muted: #5b6470;
    --line: #e3e3de;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 6px;
    --shadow: 0 8px 22px rgba(23, 25, 29, .10);
    --container: 1160px;
    --space: clamp(3rem, 6vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
    line-height: 1.15; margin: 0 0 .5em; color: var(--ink);
    text-transform: uppercase; letter-spacing: .01em; font-weight: 800;
}
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.95rem); }
h3 { font-size: 1.08rem; letter-spacing: .02em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
a { color: var(--ink); }
a:hover { color: var(--yellow-dark); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.small { font-size: .875rem; color: var(--muted); }
.meta { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--yellow); color: var(--ink); padding: .75rem 1.25rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--yellow-dark); outline-offset: 2px; }
.section-dark :focus-visible, .masthead :focus-visible { outline-color: var(--yellow); }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .65rem 1.5rem; border-radius: 999px;
    border: 2px solid transparent; font-weight: 700; font-family: inherit; font-size: .98rem;
    text-decoration: none; cursor: pointer; text-transform: uppercase; letter-spacing: .03em;
}
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: var(--yellow-dark); color: var(--ink); }
.btn-primary { background: var(--ink); color: var(--yellow); }
.btn-primary:hover { background: var(--ink-soft); color: var(--yellow); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.section:not(.section-dark) .btn-ghost:hover { background: var(--bg-alt); }
.btn-lg { padding: .85rem 1.9rem; }
.btn-sm { min-height: 38px; padding: .35rem 1.1rem; font-size: .88rem; }
.text-link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.masthead { background: var(--ink); position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--yellow); }
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { letter-spacing: .08em; }
.brand-text small { color: #aab1bb; font-size: .68rem; letter-spacing: .12em; }
.brand-mark { flex-shrink: 0; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.site-nav a {
    display: block; padding: .55rem .9rem; min-height: 44px;
    color: #e6e8ec; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.site-nav a:hover { color: var(--yellow); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--yellow); }

.nav-toggle {
    display: none; align-items: center; gap: .5rem; min-height: 44px;
    background: none; border: 2px solid #3a3f47; border-radius: 999px;
    color: #fff; font: inherit; font-weight: 700; padding: .35rem .9rem; cursor: pointer;
}
.nav-toggle-box { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle-box span { width: 16px; height: 2px; background: currentColor; }
.header-phone { margin-left: .5rem; }

.hero {
    background:
        repeating-linear-gradient(-45deg, rgba(255,214,10,.05) 0 14px, transparent 14px 42px),
        linear-gradient(180deg, var(--ink) 0%, #101216 100%);
    color: #fff; text-align: center;
    padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-inner { max-width: 900px; }
.eyebrow { color: var(--yellow); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1rem; }
.hero h1 { color: #fff; }
.lead { font-size: clamp(1.02rem, 2vw, 1.18rem); color: #c9ced6; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding: 0; margin: 1.25rem 0 0; }
.hero-points li { color: var(--yellow); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.hero-points li::before { content: "\2713\00a0"; }
.hero-media { margin: 2.5rem auto 0; max-width: 880px; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.45); }

.trust-strip { background: var(--yellow); color: var(--ink); padding-block: 1.2rem; }
.trust-grid { display: grid; gap: .8rem; text-align: center; grid-template-columns: repeat(2, 1fr); }
.trust-grid p { margin: 0; display: flex; flex-direction: column; }
.trust-grid strong { font-size: 1.45rem; font-weight: 800; }
.trust-grid span { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.section { padding-block: var(--space); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink-soft); color: #dfe3e9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.split { display: grid; gap: 2.5rem; align-items: start; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.service-card { border-top: 5px solid var(--yellow); }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--yellow-dark); }
.section-dark .card, .section-dark .value-card { background: #2b2f36; box-shadow: none; }
.section-dark .card h3 { color: var(--yellow); }
.section-dark .card p { color: #c9ced6; }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { padding-left: 2rem; position: relative; margin-bottom: .65rem; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .28em; width: 1.1em; height: 1.1em;
    background: var(--yellow-dark);
    clip-path: polygon(48% 100%, 0 46%, 22% 24%, 46% 62%, 84% 0, 100% 12%, 56% 100%);
}
.check-list.two-col { columns: 2; column-gap: 2rem; }
.check-list.two-col li { break-inside: avoid; }
.check-list.big li { margin-bottom: .95rem; font-size: 1.02rem; }

.process { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.process li { background: #2b2f36; border-left: 4px solid var(--yellow); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.step-num { display: block; font-size: 2rem; font-weight: 800; color: var(--yellow); line-height: 1; margin-bottom: .5rem; }
.process h3 { color: #fff; }
.process p { color: #b9bfc9; margin: 0; }

.panel { background: var(--ink); color: #cfd4db; border-radius: var(--radius); padding: 1.75rem; border-top: 5px solid var(--yellow); }
.panel h2, .panel h3 { color: #fff; font-size: 1.2rem; }
.area-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.area-list li { break-inside: avoid; padding: .12rem 0; }
.area-list li::before { content: "\25A0\00a0"; color: var(--yellow); font-size: .7em; vertical-align: middle; }
.panel .small { color: #9aa1ab; }

.project-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.project-card { padding: 0; overflow: hidden; }
.project-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.project-body { padding: 1.2rem 1.4rem 1.4rem; }
.testimonial-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.testimonial blockquote { margin: 0; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--ink); }
.testimonial p { color: var(--text); }

.cta-band { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 4px solid var(--yellow); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--yellow); margin-bottom: .2em; }
.cta-band p { color: #c9ced6; margin: 0; }

.page-hero { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #c9ced6; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: #6a7078; }
.breadcrumbs a { color: var(--yellow); text-decoration: none; }

.services-list { display: grid; gap: 2rem; }
.service-detail { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; scroll-margin-top: 90px; border-top: 5px solid var(--yellow); }
.faq { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; border: 1px solid #33373e; background: var(--ink-soft); color: #dfe3e9; }
.faq summary { cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 700; color: #fff; min-height: 44px; }
.faq summary:hover { color: var(--yellow); }
.faq[open] summary { border-bottom: 1px solid #3a3f47; color: var(--yellow); }
.faq p { padding: 0 1.3rem 1.2rem; margin: 0; color: #c9ced6; }
.faq a { color: var(--yellow); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

.about-media { margin: 0; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.value-card h3 { color: var(--yellow-dark) !important; }
.value-card p { color: var(--text); }

.contact-grid { display: grid; gap: 2rem; }
.detail-list { margin: 0 0 1.5rem; }
.detail-list div { margin-bottom: 1rem; }
.detail-list dt { font-weight: 700; color: var(--yellow); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.detail-list dd { margin: 0; }
.hours { list-style: none; padding: 0; margin: 0; }
.panel a { color: #fff; }
.form-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.req { color: #b3261e; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%; min-height: 44px; padding: .6rem .8rem;
    border: 2px solid var(--line); border-radius: 4px; font: inherit; color: var(--text);
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--yellow-dark); }
.checkbox input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--yellow-dark); }
.checkbox label { display: inline; font-weight: 500; }
.field-error { color: #b3261e; font-size: .85rem; margin: .25rem 0 0; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.hp-field { position: absolute; left: -9999px; }
.form-status { padding: .8rem 1rem; border-radius: 4px; background: #e6f4ea; color: #1e4620; border: 2px solid #b7dfc2; font-weight: 600; }
.map-figure { margin: 0; }
.map-figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.emergency-box { background: rgba(255,214,10,.1); border: 2px solid var(--yellow); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .92rem; color: #fff; }

.error-hero { padding-block: clamp(3rem, 8vw, 6rem); }
.error-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--yellow-dark); margin: 0; line-height: 1; }
.error-links li { text-align: left; }
.error-links h2 { font-size: 1.1rem; }
.error-links a { text-decoration: none; }
.error-links a:hover { text-decoration: underline; }

.site-footer { background: var(--ink); color: #aab1bb; padding-top: 3rem; border-top: 3px solid var(--yellow); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
.site-footer h2 { color: #fff; font-size: .95rem; letter-spacing: .1em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #c9ced6; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-about p { font-size: .92rem; }
.footer-phone a { font-size: 1.3rem; font-weight: 800; color: var(--yellow); }
.footer-contact address { margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid #2c3038; padding-block: 1.1rem; font-size: .8rem; color: #7c838d; }
.footer-bottom p { margin: 0; }

@media (min-width: 640px) {
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (min-width: 900px) {
    .split { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
    .contact-grid { grid-template-columns: 380px 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 2fr 1fr 1.4fr 1.6fr; }
}

@media (min-width: 1024px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .project-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
    .process { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 899px) {
    .header-phone { display: none; }
    .nav-toggle { display: inline-flex; order: 3; margin-left: auto; }
    .site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--ink); border-bottom: 3px solid var(--yellow);
        box-shadow: var(--shadow);
    }
    .js .site-nav.open { display: block; }
    .no-js .site-nav { display: block; }
    .site-nav ul { flex-direction: column; padding: .5rem 0; }
    .site-nav a { padding: .85rem 1.5rem; }
}
