/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Treadline Tire & Alignment (fictional business)
    Filename:   styles.css

    Theme: a tire bay. The header is a black bar that ends in a strip of
    chevron tread (two angled gradients) and the logo has a wheel hub
    with lug nuts. Nav links are numbered like service bays. A big tire
    is drawn behind the hero headline: a black ring with tread blocks
    around the edge from a repeating-conic-gradient and a silver rim.
    The decoder spells out a sidewall code in raised rubber letters with
    each part colored to match its explanation. Prices hang on a yellow
    shop board with bolted corners. The booking form has "I'll wait" and
    "Drop it off" as big radio cards. The footer has a tire track.

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

    Colors (WebAIM contrast checked, AA):
      #111827 text on #F9FAFB page (17.1:1)
      #FACC15 yellow on #030712 black (12.6:1)
      #030712 on #FACC15 board and buttons (12.6:1)
      #FFFFFF on #111827 (17.7:1)
      #77610A dark yellow text on the page (5.5:1)
*/

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

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

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

/* Light concrete-gray page. */
body {
    background-color: #F9FAFB;
    color: #111827;
    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;
}

/* Headings in tall condensed caps. */
h1,
h2 {
    font-family: "Saira Condensed", Arial, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.98;
}

/* Section titles. */
h2 {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    margin-bottom: 8px;
}

/* Links in near black, underlined. */
a {
    color: #111827;
}

/* Yellow-and-black outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-check:focus-visible + .bar-row .menu-icon {
    outline: 3px solid #111827;
    outline-offset: 2px;
    box-shadow: 0px 0px 0px 6px #FACC15;
}

/* ----- Shop bar (class) ----- */

/* Sticky black header. */
.shop-bar {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #030712;
    color: #FFFFFF;
}

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

/* Logo, phone and menu in one row. */
.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
}

/* Logo in condensed caps. */
.logo {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Saira Condensed", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    line-height: 1;
}

/* Second logo line in yellow. */
.logo small {
    display: block;
    font-size: 0.55em;
    color: #FACC15;
    letter-spacing: 0.1em;
}

/* Wheel hub with five lug nuts. */
.hub {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #9CA3AF;
    background-image: radial-gradient(circle 3px at 50% 22%, #030712 96%, transparent 100%), radial-gradient(circle 3px at 78% 44%, #030712 96%, transparent 100%), radial-gradient(circle 3px at 67% 76%, #030712 96%, transparent 100%), radial-gradient(circle 3px at 33% 76%, #030712 96%, transparent 100%), radial-gradient(circle 3px at 22% 44%, #030712 96%, transparent 100%);
    border: 4px solid #FACC15;
}

/* Phone link hidden on phones to save room. */
.bar-call {
    display: none;
    color: #FACC15;
    font-weight: 700;
    text-decoration: none;
}

/* Menu button. */
.menu-icon {
    background-color: #FACC15;
    color: #030712;
    font-weight: 700;
    padding: 4px 12px;
    cursor: pointer;
}

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

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

/* Bay list. */
.bay-nav ul {
    list-style: none;
    padding: 0px 18px 10px 18px;
}

/* Each bay link. */
.bay-nav a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    font-family: "Saira Condensed", Arial, sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    padding: 6px 0px;
    border-bottom: 1px solid #374151;
}

/* Yellow on hover. */
.bay-nav a:hover {
    color: #FACC15;
}

/* Chevron tread strip along the bottom of the header. */
.tread {
    height: 14px;
    background-color: #1F2937;
    background-image: linear-gradient(135deg, #030712 25%, transparent 25%), linear-gradient(225deg, #030712 25%, transparent 25%);
    background-size: 20px 14px;
}

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

/* Yellow caution-style strip. */
.concept {
    font-size: 0.8rem;
    background-color: #FEF9C3;
    padding: 4px 18px;
}

/* ----- Hero (class) ----- */

/* Hero holds the tire drawing. */
.hero {
    position: relative;
    overflow: hidden;
    padding: 40px 18px 50px 18px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Big tire: tread blocks around the edge, a silver rim inside. */
.tire {
    position: absolute;
    top: -60px;
    right: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background-image: radial-gradient(circle, #D1D5DB 0px, #D1D5DB 22%, #6B7280 23%, #6B7280 27%, #111827 28%, #111827 84%, transparent 85%), repeating-conic-gradient(#111827 0deg 7deg, #374151 7deg 12deg);
    opacity: 0.18;
}

/* Text above the tire. */
.hero-text {
    position: relative;
}

/* Yellow flag tag. */
.flag {
    display: inline-block;
    background-color: #FACC15;
    font-weight: 700;
    padding: 2px 12px;
    margin-bottom: 12px;
}

/* Huge condensed headline. */
.hero h1 {
    font-size: clamp(2.8rem, 9vw, 5.4rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.hero-text p:not(.flag) {
    max-width: 30rem;
    margin-bottom: 20px;
}

/* Button: black with a yellow edge like a painted curb. */
.lug,
button {
    display: inline-block;
    background-color: #111827;
    color: #FACC15;
    font-family: "Saira Condensed", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-left: 10px solid #FACC15;
    padding: 8px 22px;
    cursor: pointer;
}

/* Button hover. */
.lug:hover,
button:hover {
    background-color: #FACC15;
    color: #030712;
}

/* Hero photo. */
.hero > img {
    position: relative;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* ----- Decoder (ID) ----- */

/* Dark rubber band. */
#decode {
    background-color: #111827;
    color: #FFFFFF;
    padding: 56px 18px;
}

/* Intro line. */
.intro {
    max-width: 40rem;
    margin-bottom: 20px;
    color: #D1D5DB;
}

/* The sidewall code in raised rubber letters. */
.sidewall {
    font-family: "Saira Condensed", Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 11vw, 6rem);
    letter-spacing: 0.04em;
    line-height: 1;
    color: #E5E7EB;
    text-shadow: 0px 2px 0px #000000, 0px -1px 0px #6B7280;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 0px 6px;
}

/* Each part underlined in its color. */
.sidewall span {
    border-bottom: 6px solid var(--part);
}

/* The slash has no color bar. */
.sidewall .slash {
    border-bottom: none;
}

/* Part colors, shared by the code and its explanation. */
.c1,
.d1 {
    --part: #FACC15;
}

/* Width color. */
.c2,
.d2 {
    --part: #F87171;
}

/* Height color. */
.c3,
.d3 {
    --part: #60A5FA;
}

/* Radial color. */
.c4,
.d4 {
    --part: #34D399;
}

/* Wheel color. */
.c5,
.d5 {
    --part: #C084FC;
}

/* Load and speed color. */
.c6,
.d6 {
    --part: #FB923C;
}

/* Explanations wrap as cards. */
.parts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* One explanation, edged in its part color. */
.parts > div {
    flex: 1 1 100%;
    border-left: 8px solid var(--part);
    background-color: #1F2937;
    padding: 10px 14px;
}

/* The code piece. */
.parts dt {
    font-family: "Saira Condensed", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #FFFFFF;
}

/* ----- Price board (class) ----- */

/* Section spacing; board then photos on phones. */
.board {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 18px;
}

/* Yellow shop board with bolts in the corners. */
.board-wrap {
    background-color: #FACC15;
    color: #030712;
    padding: 26px 22px;
    background-image: radial-gradient(circle 6px at 14px 14px, #6B7280 96%, transparent 100%), radial-gradient(circle 6px at calc(100% - 14px) 14px, #6B7280 96%, transparent 100%), radial-gradient(circle 6px at 14px calc(100% - 14px), #6B7280 96%, transparent 100%), radial-gradient(circle 6px at calc(100% - 14px) calc(100% - 14px), #6B7280 96%, transparent 100%);
    border: 4px solid #030712;
}

/* Price list. */
.prices {
    list-style: none;
    margin-top: 10px;
}

/* One price line. */
.prices li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0px;
    border-bottom: 2px solid #030712;
    font-weight: 700;
}

/* Price in a black box. */
.prices b {
    font-family: "Saira Condensed", Arial, sans-serif;
    font-size: 1.3rem;
    background-color: #030712;
    color: #FACC15;
    padding: 0px 10px;
}

/* Fine print on the board. */
.board-wrap .fine {
    font-size: 0.85rem;
    margin-top: 12px;
}

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

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

/* ----- Get in today (class) ----- */

/* Photo then form on phones. */
.getin {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 18px 60px 18px;
}

/* Lift photo. */
.getin > img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* The form card. */
.ticket {
    background-color: #FFFFFF;
    border: 3px solid #111827;
    padding: 20px;
}

/* Fieldsets without borders. */
.ticket fieldset {
    border: none;
    margin-bottom: 14px;
}

/* Fieldset titles. */
.ticket legend {
    font-family: "Saira Condensed", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: uppercase;
}

/* Radio circles hidden, still focusable. */
.mode input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Big radio cards. */
.mode label {
    display: inline-block;
    width: 46%;
    margin: 6px 2% 0px 0px;
    text-align: center;
    border: 3px solid #111827;
    padding: 14px 6px;
    font-weight: 700;
    cursor: pointer;
}

/* Chosen card fills yellow. */
.mode input:checked + label {
    background-color: #FACC15;
}

/* Keyboard focus on a card. */
.mode input:focus-visible + label {
    outline: 3px solid #111827;
    outline-offset: 3px;
}

/* Text field labels. */
.info label {
    display: block;
    font-weight: 700;
}

/* Text fields with heavy borders. */
.info input {
    width: 100%;
    font: inherit;
    border: 2px solid #111827;
    padding: 9px 10px;
    margin: 2px 0px 12px 0px;
}

/* ----- Track footer (class) ----- */

/* Footer with a tire track printed across the top. */
.track {
    background-color: #E5E7EB;
    font-size: 0.82rem;
    padding: 34px 18px 22px 18px;
    background-image: repeating-linear-gradient(90deg, #111827 0px, #111827 10px, transparent 10px, transparent 18px);
    background-size: 100% 12px;
    background-repeat: no-repeat;
}

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

@media (min-width: 576px) {

    /* Explanations two to a row. */
    .parts > div {
        flex: 1 1 45%;
    }

    /* Bigger tire. */
    .tire {
        width: 460px;
        height: 460px;
    }
}

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

@media (min-width: 768px) {

    /* Phone link shows in the bar. */
    .bar-call {
        display: block;
    }

    /* Board beside the photos. */
    .board {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .board-wrap,
    .board-photos {
        flex: 1 1 50%;
    }

    /* Photo beside the form. */
    .getin {
        flex-direction: row;
        align-items: stretch;
        padding-left: 40px;
        padding-right: 40px;
    }

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

    /* Photo fills the height. */
    .getin > img {
        height: auto;
    }
}

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

@media (min-width: 992px) {

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

    /* Bays always showing. */
    .bay-nav {
        display: block;
    }

    /* Bays in a row like garage doors. */
    .bay-nav ul {
        display: flex;
        gap: 4px;
        padding-bottom: 0px;
    }

    /* Each bay a door with horizontal panel lines. */
    .bay-nav a {
        border-bottom: none;
        padding: 6px 18px;
        background-image: repeating-linear-gradient(180deg, #1F2937 0px, #1F2937 6px, #111827 6px, #111827 8px);
    }

    /* Text beside the photo, tire behind. */
    .hero {
        flex-direction: row;
        align-items: center;
        padding: 70px 50px;
    }

    /* Text column. */
    .hero-text {
        flex: 1 1 55%;
    }

    /* Photo column. */
    .hero > img {
        width: 40%;
        height: 420px;
    }

    /* Huge tire on the left behind the text. */
    .tire {
        top: 30px;
        left: -160px;
        right: auto;
        width: 560px;
        height: 560px;
    }

    /* Six explanations in two rows of three. */
    .parts > div {
        flex: 1 1 30%;
    }

    /* Wider padding. */
    #decode {
        padding-left: 50px;
        padding-right: 50px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .bar-row,
    .bay-nav ul,
    .hero,
    #decode,
    .board,
    .getin {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
