/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Green Light Driving School (fictional business)
    Filename:   styles.css

    Theme: rules of the road. The header holds a yellow traffic light
    lying on its side with the green lamp lit (a glow from box-shadow)
    while red and amber sit dark. The hero has a dashed yellow lane
    line running down its left side. The signature is the road to a
    Missouri license: a dark asphalt highway with a dashed center line
    and four green mile-marker signs for the steps. The quiz section
    draws four real road signs in CSS: an octagon stop sign
    (clip-path), an upside-down yield triangle, a yellow diamond curve
    warning, and a white speed limit sign. The footer is asphalt with
    a white stop line.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #0C1F12 text on #F5FBF6 page (16.9:1)
      #0F7234 green text (6.2:1 on the page)
      #0C1F12 on #16A34A green buttons (5.6:1)
      #FFFFFF on #0F7234 mile markers (6.6:1)
      #FFFFFF on #C02121 stop sign (6.0:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Light page. */
body {
    background-color: #F5FBF6;
    color: #0C1F12;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Road-sign style headings. */
h1,
h2,
h3 {
    font-family: "Russo One", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4.6vw, 2.6rem);
    color: #0F7234;
    margin-bottom: 16px;
}

/* Links in green. */
a {
    color: #0F7234;
}

/* Red outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .signal-row .menu-icon {
    outline: 3px solid #C02121;
    outline-offset: 3px;
}

/* ----- Traffic light header (class) ----- */

/* Dark header like a signal pole crossbar. */
.signal {
    position: relative;
    background-color: #1F2937;
    color: #FFFFFF;
    padding: 12px 16px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Light, logo and menu in a row. */
.signal-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Yellow traffic light housing on its side. */
.housing {
    display: flex;
    gap: 5px;
    background-color: #EAB308;
    border-radius: 8px;
    padding: 5px 7px;
}

/* One lamp: dark until lit. */
.lamp {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #374151;
    box-shadow: inset 0px 3px 0px rgba(0, 0, 0, 0.4);
}

/* Red lamp off, faint red. */
.red {
    background-color: #5B1A1A;
}

/* Amber lamp off. */
.amber {
    background-color: #5B4A12;
}

/* Green lamp on, glowing. */
.green {
    background-color: #4ADE80;
    box-shadow: 0px 0px 12px #4ADE80, 0px 0px 4px #FFFFFF;
}

/* Logo. */
.logo {
    flex: 1 1 auto;
    font-family: "Russo One", Arial, sans-serif;
    font-size: 1.3rem;
    line-height: 1.05;
}

/* Second line. */
.logo span {
    display: block;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4ADE80;
}

/* Menu button. */
.menu-icon {
    background-color: #16A34A;
    color: #0C1F12;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.signal-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .signal-nav {
    display: block;
}

/* Nav list. */
.signal-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links white. */
.signal-nav a {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
}

/* Hover: green. */
.signal-nav a:hover {
    color: #4ADE80;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Lane hero (class) ----- */

/* Words then photo, with a dashed yellow lane line down the left. */
.lane {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 30px 16px 56px 34px;
    background-image: linear-gradient(180deg, #EAB308 50%, transparent 50%);
    background-size: 6px 40px;
    background-repeat: repeat-y;
    background-position: 12px 0px;
}

/* Headline. */
.lane-text h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    margin-bottom: 14px;
}

/* Hero words. */
.lane-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Photo. */
.lane img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 6px;
}

/* Green "go" button. */
.go-btn,
button {
    display: inline-block;
    background-color: #16A34A;
    color: #0C1F12;
    font-family: "Russo One", Arial, sans-serif;
    font-size: 1.05rem;
    text-decoration: none;
    border: none;
    border-radius: 40px;
    box-shadow: 0px 0px 0px 4px #1F2937;
    padding: 12px 28px;
    cursor: pointer;
}

/* Button hover. */
.go-btn:hover,
button:hover {
    background-color: #4ADE80;
}

/* ----- Highway (ID) ----- */

/* Section spacing. */
#road {
    padding: 56px 16px;
}

/* Asphalt with a dashed yellow center line down the middle. */
.highway {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #2B2F33;
    background-image: linear-gradient(180deg, #EAB308 50%, transparent 50%);
    background-size: 6px 40px;
    background-repeat: repeat-y;
    background-position: 50px 0px;
    border-left: 6px solid #FFFFFF;
    border-right: 6px solid #FFFFFF;
    color: #FFFFFF;
    padding: 24px 16px 24px 16px;
}

/* One exit along the road. */
.exit {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding-left: 0px;
}

/* Green mile-marker sign on the shoulder. */
.mile {
    flex: 0 0 64px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0F7234;
    color: #FFFFFF;
    font-family: "Russo One", Arial, sans-serif;
    font-size: 1.6rem;
    border: 3px solid #FFFFFF;
    border-radius: 6px;
}

/* Step title. */
.exit h3 {
    flex: 1 1 60%;
    font-size: 1.3rem;
    padding-top: 8px;
}

/* Step words. */
.exit p {
    flex: 1 1 100%;
    padding-left: 82px;
    color: #E5E7EB;
}

/* ----- Sign quiz (class) ----- */

/* Pale green band. */
.signs {
    background-color: #E2F2E6;
    padding: 56px 16px;
}

/* Cards wrap. */
.quiz {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

/* One flash card. */
.card {
    flex: 1 1 100%;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

/* Card title. */
.card h3 {
    font-size: 1.2rem;
    margin: 12px 0px 4px 0px;
}

/* Stop sign: a red octagon with a white border. */
.stop-sign {
    width: 100px;
    height: 100px;
    margin: 0px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #C02121;
    color: #FFFFFF;
    font-family: "Russo One", Arial, sans-serif;
    font-size: 1.3rem;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    box-shadow: inset 0px 0px 0px 5px #FFFFFF, inset 0px 0px 0px 7px #C02121;
}

/* Yield sign: an upside-down triangle, white inside a red edge. */
.yield-sign {
    width: 110px;
    height: 100px;
    margin: 0px auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18px;
    background-image: linear-gradient(180deg, #C02121, #C02121);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    color: #C02121;
    font-family: "Russo One", Arial, sans-serif;
    font-size: 0.9rem;
    position: relative;
}

/* White middle of the yield sign. */
.yield-sign::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 22px;
    right: 22px;
    bottom: 26px;
    background-color: #FFFFFF;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

/* Bring the word above the white. */
.yield-sign {
    z-index: 0;
}

/* Yellow diamond warning sign. */
.warn-sign {
    width: 76px;
    height: 76px;
    margin: 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #EAB308;
    border: 3px solid #0C1F12;
    border-radius: 6px;
    transform: rotate(45deg);
}

/* Curve arrow turned back upright. */
.warn-sign span {
    transform: rotate(-45deg);
    font-size: 2.4rem;
    line-height: 1;
    color: #0C1F12;
}

/* White speed limit sign. */
.limit-sign {
    width: 80px;
    height: 100px;
    margin: 0px auto;
    border: 3px solid #0C1F12;
    border-radius: 6px;
    background-color: #FFFFFF;
    box-shadow: inset 0px 0px 0px 3px #FFFFFF, inset 0px 0px 0px 5px #0C1F12;
    padding-top: 10px;
    color: #0C1F12;
}

/* "SPEED LIMIT" words. */
.limit-sign span {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.15;
}

/* The number. */
.limit-sign strong {
    font-family: "Russo One", Arial, sans-serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.2;
}

/* Two photos. */
.sign-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.sign-photos img {
    width: 50%;
    height: 230px;
    object-fit: cover;
}

/* ----- Enroll (class) ----- */

/* Photo then form. */
.enroll {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 16px;
}

/* Road photo. */
.enroll img {
    height: 260px;
    object-fit: cover;
}

/* Form box like a license card. */
.enroll-form fieldset {
    border: 2px solid #0F7234;
    border-top: 14px solid #0F7234;
    border-radius: 12px;
    padding: 22px;
    background-color: #FFFFFF;
}

/* Form title. */
.enroll-form legend {
    font-family: "Russo One", Arial, sans-serif;
    font-size: 1.3rem;
    padding: 0px 8px;
    background-color: #FFFFFF;
}

/* Labels. */
.enroll-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Inputs. */
.enroll-form input,
.enroll-form select {
    width: 100%;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #5B6A60;
    border-radius: 6px;
}

/* Submit spacing. */
.enroll-form button {
    margin-top: 18px;
}

/* ----- Asphalt footer (class) ----- */

/* Asphalt with a wide white stop line at the top. */
.asphalt {
    background-color: #2B2F33;
    border-top: 14px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Two quiz cards per row. */
    .card {
        flex: 1 1 45%;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Road runs across: exits side by side. */
    .highway {
        flex-direction: row;
        background-image: linear-gradient(90deg, #EAB308 50%, transparent 50%);
        background-size: 40px 6px;
        background-repeat: repeat-x;
        background-position: 0px 52px;
        border-left: none;
        border-right: none;
        border-top: 6px solid #FFFFFF;
        border-bottom: 6px solid #FFFFFF;
        padding: 18px 16px 24px 16px;
    }

    /* Each exit a column. */
    .exit {
        flex: 1 1 25%;
        flex-direction: column;
    }

    /* Mile marker on its own. */
    .mile {
        flex: 0 0 70px;
        width: 64px;
    }

    /* Words under the marker, no indent. */
    .exit h3,
    .exit p {
        flex: 0 0 auto;
        padding-left: 0px;
    }

    /* Photo beside the form. */
    .enroll {
        flex-direction: row;
    }

    /* Each half. */
    .enroll img,
    .enroll-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .enroll img {
        height: auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Light and logo left, nav right. */
    .signal {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .signal-nav {
        display: block;
    }

    /* Nav in a row. */
    .signal-nav ul {
        flex-direction: row;
        gap: 26px;
        padding-top: 0px;
    }

    /* Words beside the photo. */
    .lane {
        flex-direction: row;
        align-items: center;
        padding: 50px 40px 70px 60px;
        background-position: 26px 0px;
    }

    /* Each half. */
    .lane-text,
    .lane img {
        flex: 1 1 50%;
        min-width: 0px;
    }

    /* Taller photo. */
    .lane img {
        height: 440px;
    }

    /* Four quiz cards in a row. */
    .card {
        flex: 1 1 22%;
    }

    /* Wider sections. */
    #road,
    .signs,
    .enroll {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .lane,
    #road,
    .signs,
    .enroll {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
