/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Route 60 Auto Sales (fictional business)
    Filename:   styles.css

    Theme: the highway out front. The header is an asphalt bar with a
    dashed yellow center line along its bottom, and the logo is a US
    route shield cut with clip-path. Nav links are numbered green road plates (1
    to 4). The hero puts the promise on a red pennant banner over the
    lot photo. Each car on the lot has its price written across the
    windshield in white grease pencil (Permanent Marker font) and its
    details on a window sticker below. Payments are on a finance
    worksheet with a green-tinted calculator look, and the trade-in
    form is a paper key tag with a punched hole and a ring.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #1A0F0F text on #FFF8F6 page (18.0:1)
      #B91C1C red text (6.2:1 on the page)
      #FFFFFF on #B91C1C buttons (6.5:1)
      #FFFFFF on #262626 asphalt (15.1:1)
      #1E40AF blue text (8.3: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: #FFF8F6;
    color: #1A0F0F;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Headings in tall condensed type. */
h1,
h2,
h3 {
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Section titles. */
h2 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    margin-bottom: 8px;
}

/* Links in red. */
a {
    color: #B91C1C;
}

/* Blue outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.tablewrap:focus-visible,
.menu-check:focus-visible + .lane .menu-icon {
    outline: 3px solid #1E40AF;
    outline-offset: 3px;
}

/* ----- Asphalt header (class) ----- */

/* Sticky asphalt bar. */
.asphalt {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #262626;
    color: #FFFFFF;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Shield, name and menu in a row. */
.lane {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
}

/* US route shield. */
.shield {
    flex: 0 0 48px;
    height: 52px;
    background-color: #FFFFFF;
    color: #1A0F0F;
    clip-path: polygon(0% 8%, 18% 0%, 50% 6%, 82% 0%, 100% 8%, 96% 60%, 50% 100%, 4% 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 700;
    line-height: 1;
    padding-top: 7px;
}

/* "US" small on top of the shield. */
.sh-top {
    font-size: 0.6rem;
}

/* Route number big. */
.sh-num {
    font-size: 1.4rem;
}

/* Dealer name. */
.dealer {
    flex: 1 1 auto;
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    line-height: 1;
}

/* Second line of the name. */
.dealer span {
    display: block;
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #FECACA;
}

/* Menu button. */
.menu-icon {
    border: 2px solid #FFFFFF;
    padding: 3px 10px;
    font-weight: 700;
    cursor: pointer;
}

/* Mile-marker nav hidden on phones until opened. */
.mile-nav {
    display: none;
}

/* Open menu shows the markers. */
.menu-check:checked ~ .mile-nav {
    display: block;
}

/* Marker list. */
.mile-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 18px 12px 18px;
}

/* One marker: a green highway post with the label beside it. */
.mile-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
}

/* The green mile marker plate. */
.mile-nav a span {
    background-color: #15803D;
    border: 2px solid #FFFFFF;
    border-radius: 4px;
    font-size: 0.7rem;
    padding: 2px 5px;
    line-height: 1.1;
}

/* Underline on hover. */
.mile-nav a:hover {
    text-decoration: underline;
}

/* Dashed yellow center line. */
.centerline {
    height: 6px;
    background-image: repeating-linear-gradient(90deg, #FACC15 0px, #FACC15 30px, transparent 30px, transparent 50px);
}

/* ----- Concept note (class) ----- */

/* Thin strip. */
.concept {
    font-size: 0.8rem;
    background-color: #F9E6E5;
    padding: 4px 18px;
}

/* ----- Hero (class) ----- */

/* Photo with the banner over its bottom. */
.hero {
    position: relative;
}

/* Lot photo. */
.hero > img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Red pennant banner with a notched tail. */
.banner {
    position: relative;
    background-color: #B91C1C;
    color: #FFFFFF;
    padding: 24px 40px 26px 20px;
    clip-path: polygon(0% 0%, 100% 0%, 94% 50%, 100% 100%, 0% 100%);
    margin: -40px 10px 30px 0px;
}

/* Banner headline. */
.banner h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    margin-bottom: 10px;
}

/* Banner paragraph. */
.banner p {
    max-width: 32rem;
    margin-bottom: 16px;
}

/* White tag-shaped button. */
.tag-btn,
button {
    display: inline-block;
    background-color: #FFFFFF;
    color: #B91C1C;
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    padding: 10px 26px 10px 20px;
    clip-path: polygon(0% 0%, 88% 0%, 100% 50%, 88% 100%, 0% 100%);
    cursor: pointer;
}

/* Button hover. */
.tag-btn:hover,
button:hover {
    background-color: #FECACA;
}

/* ----- Lot (ID) ----- */

/* Section spacing. */
#lot {
    padding: 50px 18px;
}

/* Intro line. */
.intro {
    max-width: 40rem;
    margin-bottom: 22px;
}

/* Cars stack on phones. */
.cars {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* One car. */
.car {
    background-color: #FFFFFF;
    border: 1px solid #DDD5D3;
}

/* Windshield area holds the photo and the grease-pencil price. */
.glass {
    position: relative;
}

/* Car photo. */
.glass img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

/* Grease-pencil price written across the glass. */
.grease {
    position: absolute;
    left: 14px;
    top: 14px;
    font-family: "Permanent Marker", "Comic Sans MS", cursive;
    font-size: 2.2rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 0px #1A0F0F, -1px -1px 0px #1A0F0F;
    transform: rotate(-8deg);
}

/* Window sticker with a blue title band. */
.sticker {
    padding: 0px 16px 16px 16px;
    border-top: 6px solid #1E40AF;
}

/* Car title. */
.sticker h3 {
    font-size: 1.25rem;
    padding-top: 10px;
}

/* Spec chips. */
.sticker ul {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 8px 0px;
}

/* One spec chip. */
.sticker li {
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #1E40AF;
    color: #1E40AF;
    padding: 1px 8px;
}

/* Price line. */
.price {
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #B91C1C;
}

/* Fine print. */
.fine {
    font-size: 0.85rem;
    color: #6A6160;
    margin-top: 14px;
}

/* ----- Payments (class) ----- */

/* Blue tint band; worksheet then keys photo. */
.payment {
    background-color: #E4E2ED;
    padding: 56px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Finance worksheet with a hole-punched left margin. */
.worksheet {
    background-color: #FFFFFF;
    padding: 24px 20px 24px 46px;
    background-image: radial-gradient(circle 7px at 18px 40px, #E4E2ED 96%, transparent 100%), radial-gradient(circle 7px at 18px 50%, #E4E2ED 96%, transparent 100%), radial-gradient(circle 7px at 18px calc(100% - 40px), #E4E2ED 96%, transparent 100%);
}

/* Worksheet paragraph. */
.worksheet p {
    margin-bottom: 14px;
}

/* Scroll wrapper. */
.tablewrap {
    overflow-x: auto;
}

/* The payment table. */
.worksheet table {
    width: 100%;
    min-width: 360px;
    border-collapse: collapse;
}

/* Caption. */
.worksheet caption {
    text-align: left;
    font-weight: 700;
    padding-bottom: 6px;
}

/* Cells. */
.worksheet th,
.worksheet td {
    border: 1px solid #DDD5D3;
    padding: 9px 10px;
    text-align: right;
}

/* Header row in blue. */
.worksheet thead th {
    background-color: #1E40AF;
    color: #FFFFFF;
}

/* Payments shown in a calculator display style. */
.worksheet td {
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    background-color: #F0FDF4;
}

/* Keys photo. */
.keys {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* ----- Trade-in (class) ----- */

/* Key tag then visit info. */
.trade {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 56px 18px 60px 18px;
}

/* Paper key tag: manila, rounded top, punched hole. */
.keytag {
    position: relative;
    background-color: #F3D9A4;
    border-radius: 40px 40px 8px 8px;
    padding: 60px 22px 24px 22px;
    max-width: 480px;
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.15);
}

/* The hole with a metal ring through it. */
.tag-hole {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    border-radius: 50%;
    background-color: #FFF8F6;
    box-shadow: 0px 0px 0px 4px #9CA3AF;
}

/* No fieldset border. */
.keytag fieldset {
    border: none;
}

/* Tag title. */
.keytag legend {
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    text-transform: uppercase;
}

/* Labels. */
.keytag label {
    display: block;
    font-weight: 700;
}

/* Fields written on the tag. */
.keytag input {
    width: 100%;
    font: inherit;
    border: none;
    border-bottom: 2px solid #1A0F0F;
    background-color: rgba(255, 255, 255, 0.55);
    padding: 6px 8px;
    margin: 2px 0px 12px 0px;
}

/* Red button on the tag. */
.keytag button {
    background-color: #B91C1C;
    color: #FFFFFF;
}

/* Red button hover. */
.keytag button:hover {
    background-color: #7F1D1D;
}

/* Visit list. */
.visit ul {
    list-style: none;
    margin-top: 10px;
}

/* One visit line. */
.visit li {
    padding: 8px 0px;
    border-bottom: 2px dashed #DDD5D3;
}

/* Visit icons in red. */
.visit i {
    color: #B91C1C;
    width: 24px;
}

/* ----- Shoulder footer (class) ----- */

/* Asphalt footer with a white shoulder line. */
.shoulder {
    background-color: #262626;
    color: #E5E5E5;
    font-size: 0.82rem;
    padding: 24px 18px;
    border-top: 6px solid #FFFFFF;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Bigger grease-pencil prices. */
    .grease {
        font-size: 2.8rem;
    }

    /* Taller hero photo. */
    .hero > img {
        height: 380px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Three cars across. */
    .cars {
        flex-direction: row;
    }

    /* Each car a third. */
    .car {
        flex: 1 1 33%;
    }

    /* Worksheet beside the keys photo. */
    .payment {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Worksheet column. */
    .worksheet {
        flex: 1 1 60%;
    }

    /* Photo column. */
    .keys {
        width: 35%;
        height: 360px;
    }

    /* Tag beside the visit info. */
    .trade {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .keytag,
    .visit {
        flex: 1 1 50%;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Mile markers always shown, in the same row as the shield. */
    .asphalt {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    /* Shield and name take the left. */
    .lane {
        flex: 1 1 auto;
    }

    /* Markers on the right. */
    .mile-nav {
        display: block;
        padding-right: 18px;
    }

    /* Markers in a row. */
    .mile-nav ul {
        gap: 22px;
        padding: 0px;
    }

    /* Center line spans the bar. */
    .centerline {
        flex: 1 1 100%;
    }

    /* Banner floats over the left of the photo. */
    .hero > img {
        height: 540px;
    }

    /* Banner position. */
    .banner {
        position: absolute;
        left: 0px;
        bottom: 60px;
        width: 620px;
        margin: 0px;
        padding: 30px 70px 30px 50px;
    }

    /* Wider padding. */
    #lot {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    #lot,
    .payment,
    .trade {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
