/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Bright Acre Solar (fictional business)
    Filename:   styles.css

    Theme: watching the meter run backward. The header is a solar
    inverter's face: dark gray housing, a green LCD readout of today's
    kilowatt-hours, and the nav links as its rubber buttons. The hero is
    a sunrise sky (gradient) with an electric meter whose dial spins
    backward on a @keyframes loop. The signature is two July electric
    bills side by side, before and after solar, printed as real bills.
    "Which way does your roof face?" uses a compass whose wedges are
    colored green for south, yellow for east and west, and red for
    north. The quote form is styled as a solar panel with cell lines,
    and the footer is the horizon at sunset.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #1A1606 text on #FFFDF2 page (18.0:1)
      #885D03 gold text (5.6:1 on the page)
      #1A1606 on #CA8A04 buttons (6.3:1)
      #4ADE80 LCD green on #111827 (10.6:1)
      #0369A1 blue text (5.8:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Warm white page. */
body {
    background-color: #FFFDF2;
    color: #1A1606;
    font-family: "Inter", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Techy headings. */
h1,
h2 {
    font-family: "Exo 2", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.08;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    margin-bottom: 8px;
}

/* Links in blue. */
a {
    color: #0369A1;
}

/* Blue outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.menu-check:focus-visible + .inv-row .menu-icon {
    outline: 3px solid #0369A1;
    outline-offset: 3px;
}

/* ----- Inverter header (class) ----- */

/* Dark gray housing with vent slots at the right. */
.inverter {
    background-color: #374151;
    color: #FFFFFF;
    padding: 10px 16px;
    border-bottom: 6px solid #CA8A04;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Name, LCD and menu in a row. */
.inv-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

/* Brand name. */
.brand-name {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Exo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
}

/* "Solar" in gold. */
.brand-name span:last-child {
    color: #FACC15;
}

/* Small sun logo. */
.sun-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #FACC15;
    box-shadow: 0px 0px 0px 4px rgba(250, 204, 21, 0.35);
}

/* Green LCD readout, hidden on small phones. */
.lcd {
    display: none;
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    background-color: #111827;
    color: #4ADE80;
    padding: 2px 10px;
    border: 2px solid #6B7280;
    letter-spacing: 0.06em;
}

/* Menu button like a rubber key. */
.menu-icon {
    background-color: #6B7280;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 8px;
    padding: 4px 12px;
    box-shadow: 0px 3px 0px #1F2937;
    cursor: pointer;
}

/* Keys hidden on phones until opened. */
.keys {
    display: none;
}

/* Open menu shows the keys. */
.menu-check:checked ~ .keys {
    display: block;
}

/* Key row. */
.keys ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
}

/* One rubber key. */
.keys a {
    display: block;
    background-color: #4B5563;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0px 3px 0px #1F2937;
}

/* Key lights up green on hover. */
.keys a:hover {
    background-color: #111827;
    color: #4ADE80;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Sunrise hero (class) ----- */

/* Sunrise sky; text, meter, photo stacked on phones. */
.sunrise {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    background-image: linear-gradient(180deg, #FDE68A 0%, #FFFBEB 55%, #FFFDF2 100%);
    padding: 40px 16px 50px 16px;
}

/* Headline. */
.sunrise h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.sky-text p {
    max-width: 32rem;
    margin-bottom: 20px;
}

/* Gold button. */
.sun-btn,
button {
    display: inline-block;
    background-color: #CA8A04;
    color: #1A1606;
    font-family: "Exo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    padding: 12px 26px;
    box-shadow: 0px 0px 0px 4px rgba(202, 138, 4, 0.3);
    cursor: pointer;
}

/* Button hover. */
.sun-btn:hover,
button:hover {
    background-color: #FACC15;
}

/* Electric meter: glass dome over a dial. Hidden on phones so the solar
   installer photo shows on the first screen. */
.meter {
    display: none;
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #F3F4F6;
    border: 10px solid #9CA3AF;
    box-shadow: inset 0px 0px 0px 4px #FFFFFF, 0px 6px 14px rgba(0, 0, 0, 0.2);
}

/* The spinning disc. */
.dial {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 58px;
    height: 10px;
    border-radius: 5px;
    background-image: linear-gradient(90deg, #111827 0px, #111827 6px, #9CA3AF 6px);
    animation: backward 2.2s linear infinite;
}

/* The disc runs right to left: backward. */
@keyframes backward {
    from {
        background-position: 0px 0px;
    }
    to {
        background-position: -110px 0px;
    }
}

/* Meter reading in green, negative. */
.reading {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 26px;
    text-align: center;
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    color: #15803D;
}

/* Installer photo. */
.sunrise > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
}

/* ----- Bills (ID) ----- */

/* Section spacing. */
#bills {
    padding: 56px 16px;
}

/* Intro line. */
.intro {
    margin-bottom: 20px;
}

/* Bills stack on phones. */
.bill-pair {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* One bill. */
.bill {
    background-color: #FFFFFF;
    border: 1px solid #DDDACF;
    border-top: 10px solid #9CA3AF;
    padding: 18px;
    box-shadow: 0px 6px 14px rgba(26, 22, 6, 0.08);
}

/* The after bill has a green top. */
.after {
    border-top-color: #15803D;
}

/* Bill heading. */
.bill-head {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

/* Line items. */
.bill ul {
    list-style: none;
    font-family: "Courier New", Courier, monospace;
}

/* One line item. */
.bill li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0px;
    border-bottom: 1px dotted #DDDACF;
}

/* Amount due, big. */
.due {
    display: flex;
    justify-content: space-between;
    font-family: "Exo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin-top: 10px;
}

/* Before total in red. */
.before .due {
    color: #B91C1C;
}

/* After total in green. */
.after .due {
    color: #15803D;
}

/* Fine print. */
.fine {
    font-size: 0.85rem;
    color: #6A675A;
    margin-top: 14px;
}

/* ----- Roof compass (class) ----- */

/* Blue tint band; compass then text. */
.roof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    background-color: #E1EBE8;
    padding: 56px 16px;
}

/* Compass: green south wedge, yellow east and west, red north. */
.compass {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 6px solid #1A1606;
    background-image: radial-gradient(circle, #FFFFFF 0px, #FFFFFF 30px, transparent 31px), conic-gradient(#FCA5A5 0deg 45deg, #FDE68A 45deg 135deg, #86EFAC 135deg 225deg, #FDE68A 225deg 315deg, #FCA5A5 315deg 360deg);
}

/* Direction letters. */
.compass span {
    position: absolute;
    font-family: "Exo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
}

/* North at the top. */
.compass .n {
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
}

/* East on the right. */
.compass .e {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* South at the bottom. */
.compass .s {
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
}

/* West on the left. */
.compass .w {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Faces list. */
.faces {
    list-style: none;
    margin: 12px 0px 18px 0px;
}

/* One direction with a colored bar. */
.faces li {
    border-left: 10px solid #FDE68A;
    background-color: #FFFFFF;
    padding: 8px 12px;
    margin-bottom: 8px;
}

/* South bar green. */
.faces .best {
    border-left-color: #22C55E;
}

/* North bar red. */
.faces .poor {
    border-left-color: #F87171;
}

/* Direction name. */
.faces strong {
    display: block;
}

/* Two roof photos. */
.roof-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.roof-photos img {
    width: 50%;
    height: 170px;
    object-fit: cover;
}

/* ----- Quote (class) ----- */

/* Photo then panel form. */
.quote {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 16px 60px 16px;
}

/* Solar farm photo. */
.quote > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Form styled as a solar panel with cell lines. */
.panel-form {
    background-color: #1E3A8A;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px), linear-gradient(0deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    border: 8px solid #CBD5E1;
    padding: 22px;
    color: #FFFFFF;
}

/* No fieldset border. */
.panel-form fieldset {
    border: none;
}

/* Form title. */
.panel-form legend {
    font-family: "Exo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: #FDE68A;
}

/* Labels. */
.panel-form label {
    display: block;
    font-weight: 600;
}

/* Fields. */
.panel-form input,
.panel-form select {
    width: 100%;
    font: inherit;
    border: none;
    border-radius: 6px;
    padding: 9px 10px;
    margin: 2px 0px 12px 0px;
}

/* ----- Horizon footer (class) ----- */

/* Sunset horizon: sky fading to dark ground. */
.horizon {
    background-image: radial-gradient(circle 40px at 50% 100%, #FACC15 96%, transparent 100%), linear-gradient(180deg, #F97316 0%, #7C2D12 60%, #1A1606 60%);
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 30px 16px 24px 16px;
}

/* Footer lines on dark chips over the sunset. */
.horizon p {
    display: inline-block;
    background-color: #1A1606;
    padding: 2px 10px;
    margin: 2px 0px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* LCD readout shows. */
    .lcd {
        display: block;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Bills side by side. */
    .bill-pair {
        flex-direction: row;
    }

    /* Each bill half. */
    .bill {
        flex: 1 1 50%;
    }

    /* Compass beside the text. */
    .roof {
        flex-direction: row;
        gap: 50px;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Compass keeps its size. */
    .compass-wrap {
        flex: 0 0 240px;
    }

    /* Photo beside the panel form. */
    .quote {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .quote > img,
    .panel-form {
        flex: 1 1 50%;
        min-width: 0px;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Name, LCD, keys in one row. */
    .inverter {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Keys always shown. */
    .keys {
        display: block;
    }

    /* Keys in a row. */
    .keys ul {
        padding-top: 0px;
    }

    /* Text, meter and photo in a row. */
    .sunrise {
        flex-direction: row;
        padding: 60px 40px;
    }

    /* Text column. */
    .sky-text {
        flex: 1 1 45%;
    }

    /* Meter shows beside the text and keeps its size. */
    .meter {
        display: block;
        flex: 0 0 150px;
    }

    /* Photo column. */
    .sunrise > img {
        width: 32%;
        height: 400px;
    }

    /* Wider bills section. */
    #bills {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .inverter,
    .sunrise,
    #bills,
    .roof,
    .quote {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* Meter disc holds still. */
    .dial {
        animation: none;
    }
}
