/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Live Wire Electric (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first. The navigation is drawn as a breaker panel:
    a grey metal box with a list of breaker switches, each one a link.
    On phones the panel is a row of breakers that wraps under the header.
    At 992px the page becomes two columns with flexbox, and the panel is
    position: sticky so it stays in view while the content scrolls (unlike
    a fixed sidebar, it stays inside its column). Hovering a breaker flips
    its switch. Warning signs carry their urgency in words. Media queries
    at 576px, 768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #111827 black   #1F2937 slate   #FACC15 hazard yellow (only behind
      dark text)   #A16207 amber text (darker than #CA8A04)   #FEFCE8
      light   #B91C1C danger red   #4B5563 muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Light page with black text. */
body {
    background-color: #FEFCE8;
    color: #111827;
    font-family: Inter, sans-serif;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Grotesk headings. */
h1,
h2,
h3 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* Slate links. */
a {
    color: #1F2937;
    font-weight: 600;
}

/* Yellow-on-black focus ring. */
a:focus-visible,
button:focus-visible,
.table-scroll:focus-visible {
    outline: 3px solid #111827;
    box-shadow: 0px 0px 0px 6px #FACC15;
}

/* Muted intro text. */
.lead {
    color: #4B5563;
    max-width: 38rem;
    margin: 8px 0px 24px 0px;
}

/* ----- Header (class) ----- */

/* Black header with the logo and phone. */
.site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #111827;
    color: #FFFFFF;
}

/* Logo. */
.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 12px 20px;
}

/* Yellow bolt. */
.logo i {
    color: #FACC15;
}

/* Small second line. */
.logo small {
    display: block;
    font-family: Inter, sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #D1D5DB;
}

/* Phone number in the header. */
.header-call {
    padding: 0px 20px 12px 20px;
}

/* Yellow phone link. */
.header-call a {
    color: #FACC15;
    font-size: 1.15rem;
}

/* Concept notice takes a full row. */
.concept-note {
    flex: 1 1 100%;
    background-color: #FACC15;
    color: #111827;
    font-size: 0.85rem;
    text-align: center;
    padding: 3px 16px;
}

/* ----- Breaker panel navigation (class) ----- */

/* The panel: brushed grey metal with screws drawn in the corners. */
.panel {
    position: relative;
    background-color: #9CA3AF;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0px, rgba(255, 255, 255, 0.10) 1px, transparent 1px, transparent 4px);
    border: 4px solid #4B5563;
    padding: 12px;
}

/* Hidden checkbox that opens the panel on phones. */
.panel-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Panel label and the menu button in one row. */
.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Menu button on phones. */
.panel-toggle {
    background-color: #1F2937;
    color: #FACC15;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
}

/* Keyboard focus shows on the menu button. */
.panel-check:focus-visible + .panel-top .panel-toggle {
    outline: 3px solid #111827;
    outline-offset: 2px;
}

/* Panel label. */
.panel-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #111827;
}

/* Breakers are hidden on phones until the menu is opened. */
.breakers {
    list-style: none;
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

/* Open menu: breakers wrap in a row. */
.panel-check:checked ~ .breakers {
    display: flex;
}

/* One breaker: a dark rectangle with its number and name. */
.breakers a {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1F2937;
    color: #FFFFFF;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 6px 10px 6px 6px;
    border-radius: 3px;
}

/* The switch: a small yellow handle in the "on" position (left). */
.switch {
    position: relative;
    width: 30px;
    height: 16px;
    background-color: #111827;
    border: 1px solid #6B7280;
    border-radius: 2px;
}

/* The switch handle. */
.switch::after {
    content: "";
    position: absolute;
    left: 1px;
    top: 1px;
    width: 12px;
    height: 12px;
    background-color: #FACC15;
    transition: left 0.2s;
}

/* Hover or focus flips the handle to the other side. */
.breakers a:hover .switch::after,
.breakers a:focus-visible .switch::after {
    left: 15px;
}

/* ----- Content (class) ----- */

/* Main content column. */
.content {
    min-width: 0px;
}

/* ----- Hero (class) ----- */

/* Hero with a yellow lightning-bolt divider below it. On phones the
   headline and button come first and the photo follows. */
.hero {
    display: flex;
    flex-direction: column;
    padding: 30px 20px 40px 20px;
}

/* Button keeps its own width in the column. */
.hero .button {
    align-self: flex-start;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    margin-bottom: 14px;
}

/* Second line on a yellow highlight. */
.hero h1 span {
    background-color: #FACC15;
    padding: 0px 6px;
}

/* Hero paragraph. */
.hero p {
    max-width: 34rem;
    margin-bottom: 22px;
}

/* Black square button with yellow text. */
.button,
button {
    display: inline-block;
    background-color: #111827;
    color: #FACC15;
    border: none;
    padding: 13px 24px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* Slate on hover. */
.button:hover,
button:hover {
    background-color: #374151;
}

/* Hero photo, after the button on phones. */
.hero img {
    order: 5;
    width: 100%;
    height: 230px;
    object-fit: cover;
    margin-top: 26px;
    border-left: 10px solid #FACC15;
}

/* ----- Warning signs (ID and class) ----- */

/* Black band. */
#warning {
    background-color: #111827;
    color: #FFFFFF;
    padding: 56px 20px;
}

/* Light intro on dark. */
#warning .lead {
    color: #D1D5DB;
}

/* Signs wrap. */
.signs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* One sign card. */
.sign {
    flex: 1 1 240px;
    background-color: #1F2937;
    border-top: 6px solid #6B7280;
    padding: 16px;
}

/* Sign title. */
.sign h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

/* Urgency label. */
.level {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 8px;
    margin-bottom: 8px;
}

/* Danger signs: red edge and red label. */
.sign-danger {
    border-top-color: #EF4444;
}

/* Red label with white text. */
.sign-danger .level {
    background-color: #B91C1C;
    color: #FFFFFF;
}

/* Soon signs: yellow edge and label. */
.sign-soon {
    border-top-color: #FACC15;
}

/* Yellow label with black text. */
.sign-soon .level {
    background-color: #FACC15;
    color: #111827;
}

/* Plan signs: grey label. */
.sign-plan .level {
    background-color: #D1D5DB;
    color: #111827;
}

/* ----- EV chargers (class) ----- */

/* Section spacing. */
.ev {
    padding: 56px 20px;
}

/* Table scrolls inside its box on phones. */
.table-scroll {
    overflow-x: auto;
}

/* Table. */
table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background-color: #FFFFFF;
}

/* Caption. */
caption {
    text-align: left;
    font-weight: 600;
    padding-bottom: 6px;
}

/* Cells. */
th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

/* Header row. */
thead th {
    background-color: #1F2937;
    color: #FFFFFF;
    font-family: "Space Grotesk", sans-serif;
}

/* Charge speed bar with the miles written in. */
.bar {
    display: inline-block;
    background-color: #FACC15;
    color: #111827;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 2px 8px;
    white-space: nowrap;
}

/* Level 1: short bar. */
.bar-1 {
    min-width: 50px;
}

/* Level 2, 32A. */
.bar-2 {
    min-width: 110px;
}

/* Level 2, 48A. */
.bar-3 {
    min-width: 160px;
}

/* Multimeter photo. */
.ev-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-top: 24px;
}

/* ----- Services (class) ----- */

/* Pale band. */
.services {
    background-color: #FEF9C3;
    padding: 56px 20px;
}

/* Service list wraps. */
.service-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0px 24px 0px;
}

/* One service tag. */
.service-list li {
    flex: 1 1 220px;
    background-color: #FFFFFF;
    border: 2px solid #111827;
    padding: 10px 12px;
    font-weight: 600;
}

/* Amber icons. */
.service-list i {
    color: #A16207;
    margin-right: 6px;
}

/* Two photos. */
.service-photos {
    display: flex;
    gap: 12px;
}

/* Each photo. */
.service-photos img {
    width: 50%;
    height: 200px;
    object-fit: cover;
}

/* ----- Request form (class) ----- */

/* Section spacing. */
.request {
    padding: 56px 20px;
}

/* Form card with a yellow-and-black hazard edge. */
.request-form {
    max-width: 560px;
    background-color: #FFFFFF;
    border: 2px solid #111827;
    border-top: 12px solid #111827;
    padding: 22px;
    margin-top: 18px;
}

/* Labels. */
.request-form label {
    display: block;
    font-weight: 600;
    margin-top: 12px;
}

/* Inputs and selects. */
.request-form input,
.request-form select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 2px solid #9CA3AF;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    background-color: #FFFFFF;
}

/* Space above the button. */
.request-form button {
    margin-top: 18px;
}

/* ----- Footer (class) ----- */

/* Black footer. */
.site-footer {
    background-color: #111827;
    color: #D1D5DB;
    text-align: center;
    font-size: 0.85rem;
    padding: 22px 20px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Logo and phone side by side. */
    .header-call {
        padding: 12px 20px;
    }

    /* Taller hero photo. */
    .hero img {
        height: 340px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    #warning,
    .ev,
    .services,
    .request {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Taller service photos. */
    .service-photos img {
        height: 260px;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* Two columns: panel on the left, content on the right. */
    .layout {
        display: flex;
        align-items: flex-start;
    }

    /* The panel sticks to the top of the window as the page scrolls,
       inside its own column. */
    .panel {
        position: sticky;
        top: 16px;
        flex: 0 0 230px;
        margin: 16px;
    }

    /* Breakers always show and stack in one column like a real panel. */
    .breakers {
        display: flex;
        flex-direction: column;
    }

    /* No menu button on laptops. */
    .panel-toggle {
        display: none;
    }

    /* Panel label gets its space back. */
    .panel-title {
        margin-bottom: 0px;
    }

    /* Each breaker fills the panel width. */
    .breakers a {
        padding: 10px 10px 10px 8px;
    }

    /* Content takes the rest of the width. */
    .content {
        flex: 1 1 auto;
    }

    /* Hero photo beside the text using a float. */
    .hero {
        display: flow-root;
        padding-top: 44px;
    }

    /* Photo floats to the right of the hero text. */
    .hero img {
        float: right;
        width: 45%;
        height: 360px;
        margin: 0px 0px 0px 30px;
    }

    /* Button sits inline again. */
    .hero .button {
        align-self: auto;
    }

    /* The photo comes first in the HTML so the headline and text wrap
       beside it. */
    .hero h1 {
        margin-top: 10px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* A wider panel. */
    .panel {
        flex: 0 0 260px;
    }

    /* Wider content padding. */
    .hero,
    #warning,
    .ev,
    .services,
    .request {
        padding-left: 56px;
        padding-right: 56px;
    }
}
