/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Frisco Line Bicycles (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, sporty. A bike wheel is drawn in CSS: a
    round rim (border-radius), six spokes (thin spans rotated with
    :nth-child) and a hub, all spinning slowly with @keyframes unless the
    visitor prefers reduced motion. The tune-up table highlights the
    middle column. The repair board is three flex columns like a shop
    whiteboard. Ride distances are bars sized by percent with the miles
    written in them. Media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM checked, AA):
      #0C1A12 trail dark   #15803D green   #C2410C orange (darker than
      #F97316 for text)   #F3F8F2 light   #4B5B50 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 trail-dark text. */
body {
    background-color: #F3F8F2;
    color: #0C1A12;
    font-family: Inter, sans-serif;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Squared techy headings. */
h1,
h2,
h3 {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    text-transform: uppercase;
}

/* Green links. */
a {
    color: #15803D;
    font-weight: 600;
}

/* Orange focus ring. */
a:focus-visible,
button:focus-visible,
.table-scroll:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #C2410C;
    outline-offset: 3px;
}

/* Muted intro paragraph. */
.lead {
    color: #4B5B50;
    max-width: 40rem;
    margin: 8px 0px 24px 0px;
}

/* ----- Header (class) ----- */

/* Sticky dark header. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #0C1A12;
    color: #FFFFFF;
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Logo. */
.logo {
    font-family: "Chakra Petch", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Orange bike icon. */
.logo i {
    color: #FB923C;
}

/* Thin second word. */
.logo small {
    font-weight: 600;
    color: #86EFAC;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    background-color: #15803D;
    color: #FFFFFF;
    padding: 6px 14px;
    font-weight: 600;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Opened menu shows nav. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets. */
.site-nav ul {
    list-style: none;
    padding-top: 8px;
}

/* Phone nav links. */
.site-nav a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #1F3A28;
}

/* Light green on hover. */
.site-nav a:hover {
    color: #86EFAC;
}

/* Concept notice. */
.concept-note {
    background-color: #15803D;
    font-size: 0.85rem;
    text-align: center;
    padding: 4px 16px;
}

/* ----- Hero (class) ----- */

/* Dark hero with diagonal speed stripes behind it. */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background-color: #0C1A12;
    background-image: repeating-linear-gradient(115deg, transparent 0px, transparent 40px, rgba(21, 128, 61, 0.18) 40px, rgba(21, 128, 61, 0.18) 46px);
    color: #FFFFFF;
    padding: 48px 20px 56px 20px;
    overflow: hidden;
}

/* Small line above the headline. */
.tag {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #FB923C;
    margin-bottom: 10px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.6rem, 7.5vw, 4.8rem);
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Green highlight word. */
.hero h1 span {
    color: #86EFAC;
}

/* Hero paragraph. */
.hero-text > p:not(.tag) {
    max-width: 30rem;
    margin-bottom: 22px;
}

/* Slanted orange button. */
.button,
button {
    display: inline-block;
    background-color: #C2410C;
    color: #FFFFFF;
    border: none;
    padding: 13px 30px;
    font-family: "Chakra Petch", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
    cursor: pointer;
}

/* Darker on hover. */
.button:hover,
button:hover {
    background-color: #9A3412;
}

/* The wheel: a thick dark tire around a thin green rim. It is the
   positioning parent for the spokes and spins slowly. Hidden on
   phones so the real shop photo shows on the first screen. */
.wheel {
    display: none;
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 14px solid #1F2A23;
    box-shadow: inset 0px 0px 0px 4px #86EFAC;
    animation: spin 12s linear infinite;
}

/* One spoke: a thin line through the middle. */
.spoke {
    position: absolute;
    left: 50%;
    top: 0px;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    background-color: #CBD5CF;
}

/* Spoke 2. */
.spoke:nth-child(2) {
    transform: rotate(30deg);
}

/* Spoke 3. */
.spoke:nth-child(3) {
    transform: rotate(60deg);
}

/* Spoke 4. */
.spoke:nth-child(4) {
    transform: rotate(90deg);
}

/* Spoke 5. */
.spoke:nth-child(5) {
    transform: rotate(120deg);
}

/* Spoke 6. */
.spoke:nth-child(6) {
    transform: rotate(150deg);
}

/* The hub in the center. */
.hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0px 0px -15px;
    border-radius: 50%;
    background-color: #FB923C;
    border: 4px solid #0C1A12;
}

/* One full turn. */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Wide shop photo between the hero and the tune-ups. */
.shop-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center 75%;
}

/* ----- Tune-ups (class) ----- */

/* Section spacing. */
.tuneups {
    padding: 56px 20px;
}

/* The table scrolls sideways inside its box on phones. */
.table-scroll {
    overflow-x: auto;
}

/* Table. */
table {
    width: 100%;
    min-width: 540px;
    border-collapse: collapse;
    background-color: #FFFFFF;
}

/* Caption on the left. */
caption {
    text-align: left;
    font-weight: 600;
    padding-bottom: 8px;
}

/* All cells. */
th,
td {
    padding: 11px 12px;
    border-bottom: 1px solid #DCE7DD;
    text-align: center;
}

/* Service names on the left. */
tbody th {
    text-align: left;
    font-weight: 600;
}

/* Column heads in dark. */
thead th {
    background-color: #0C1A12;
    color: #FFFFFF;
    font-family: "Chakra Petch", sans-serif;
    font-size: 1.15rem;
}

/* Price under each package name. */
thead th span {
    display: block;
    font-size: 1.4rem;
    color: #86EFAC;
}

/* The most popular column is tinted green all the way down. */
.pick {
    background-color: #E4F3E7;
}

/* Header of the popular column in green. */
thead th.pick {
    background-color: #15803D;
}

/* White price in the green header. */
thead th.pick span {
    color: #FFFFFF;
}

/* "Yes" cells in dark green bold (dark enough on the tinted column too),
   with a check drawn before the word. */
.yes {
    color: #14532D;
    font-weight: 700;
}

/* Check mark before "Yes". */
.yes::before {
    content: "\2713  ";
}

/* "No" cells muted, with a dash before the word. */
.no {
    color: #4B5B50;
}

/* Dash before "No". */
.no::before {
    content: "\2014  ";
}

/* ----- Repair board (ID and class) ----- */

/* Whiteboard-grey band. */
#board {
    background-color: #E7ECE8;
    padding: 56px 20px;
}

/* Columns stack on phones. */
.columns {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* One column: white board with a marker-colored top. */
.column {
    background-color: #FFFFFF;
    border-top: 6px solid #4B5B50;
    padding: 16px;
}

/* Column title. */
.column h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Ticket list. */
.column ul {
    list-style: none;
}

/* One ticket card, slightly tilted like a sticky note. */
.column li {
    background-color: #FFF7D6;
    border: 1px solid #E8D98F;
    padding: 8px 10px;
    margin-bottom: 8px;
    transform: rotate(-0.8deg);
}

/* Every other ticket tilts the other way. */
.column li:nth-child(even) {
    transform: rotate(0.8deg);
}

/* Ticket number. */
.column strong {
    font-family: "Chakra Petch", sans-serif;
    margin-right: 6px;
}

/* The ready column gets a green top edge and green notes. */
.column-ready {
    border-top-color: #15803D;
}

/* Green notes in the ready column. */
.column-ready li {
    background-color: #DCFCE7;
    border-color: #86EFAC;
}

/* Repair photo. */
.repair {
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin-top: 24px;
}

/* ----- Rides (class) ----- */

/* Text then photo on phones. */
.trails {
    display: flex;
    flex-direction: column;
}

/* Text column. */
.trails-text {
    padding: 56px 20px;
}

/* Ride list. */
.rides {
    list-style: none;
    margin-top: 20px;
}

/* One ride. */
.rides li {
    padding: 12px 0px;
    border-bottom: 1px solid #DCE7DD;
}

/* Ride name. */
.rides h3 {
    font-size: 1.3rem;
}

/* Distance bar with the miles written in it. */
.distance {
    margin-top: 6px;
    background-color: #15803D;
    color: #FFFFFF;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    padding: 2px 10px;
    white-space: nowrap;
}

/* 35 miles: the full width. */
.distance-35 {
    width: 100%;
}

/* 4 miles. */
.distance-4 {
    width: 30%;
    min-width: 90px;
}

/* 6 miles. */
.distance-6 {
    width: 36%;
    min-width: 90px;
}

/* 12 miles of trail, in orange because it is singletrack. */
.distance-12 {
    width: 52%;
    min-width: 160px;
    background-color: #C2410C;
}

/* Trail photo. */
.trails > img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ----- Drop-off (class) ----- */

/* Dark band, form then photo. */
.drop {
    display: flex;
    flex-direction: column;
    gap: 26px;
    background-color: #0C1A12;
    padding: 56px 20px;
}

/* Form card. */
.drop-form {
    background-color: #FFFFFF;
    padding: 24px;
}

/* Space under the heading. */
.drop-form h2 {
    margin-bottom: 10px;
}

/* Labels. */
.drop-form label {
    display: block;
    font-weight: 600;
    margin-top: 12px;
}

/* Inputs and select. */
.drop-form input,
.drop-form select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 2px solid #B7C7BB;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    background-color: #FFFFFF;
}

/* Space above the submit button. */
.drop-form button {
    margin-top: 20px;
}

/* Phone line. */
.call {
    margin-top: 12px;
}

/* Bike photo. */
.drop > img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ----- Footer (class) ----- */

/* Dark footer. */
.site-footer {
    background-color: #0C1A12;
    color: #B7C7BB;
    text-align: center;
    font-size: 0.85rem;
    padding: 0px 20px 26px 20px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller shop photo. */
    .shop-photo {
        height: 300px;
    }

    /* Bigger wheel. */
    .wheel {
        width: 260px;
        height: 260px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .tuneups,
    #board,
    .drop {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* The wheel shows from tablets up. */
    .wheel {
        display: block;
    }

    /* Hero text and wheel side by side. */
    .hero {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Board columns side by side. */
    .columns {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Equal columns. */
    .column {
        flex: 1 1 30%;
    }

    /* Ride text and photo side by side. */
    .trails {
        flex-direction: row;
    }

    /* Text column. */
    .trails-text {
        flex: 1 1 55%;
        padding: 56px 40px;
    }

    /* Photo fills its column. */
    .trails > img {
        width: 45%;
        height: auto;
    }

    /* Form and photo side by side. */
    .drop {
        flex-direction: row;
        align-items: stretch;
    }

    /* Form column. */
    .drop-form {
        flex: 1 1 55%;
    }

    /* Photo column. */
    .drop > img {
        width: 40%;
        height: auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No Menu button on desktop. */
    .menu-icon {
        display: none;
    }

    /* Nav in the header row. */
    .site-nav {
        display: block;
        width: auto;
    }

    /* Links in a row. */
    .site-nav ul {
        display: flex;
        gap: 24px;
        padding-top: 0px;
    }

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
    }

    /* Big wheel on desktop. */
    .wheel {
        width: 340px;
        height: 340px;
        border-width: 20px;
    }

    /* Taller hero. */
    .hero {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    /* Repair photo sits beside the board columns. */
    #board {
        display: flex;
        flex-wrap: wrap;
        column-gap: 24px;
    }

    /* Heading and intro rows. */
    #board h2,
    #board .lead {
        flex: 1 1 100%;
    }

    /* Columns area. */
    .columns {
        flex: 1 1 65%;
    }

    /* Photo beside the columns. */
    .repair {
        flex: 1 1 28%;
        width: auto;
        height: 320px;
        margin-top: 0px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .tuneups,
    #board,
    .drop {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* The shop photo gets a little taller on wide screens. */
    .shop-photo {
        height: 360px;
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* The wheel holds still. */
    .wheel {
        animation: none;
    }
}
