/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Haul Steady Movers (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, bold and dependable. A strip of "packing
    tape" crosses the hero, rotated with transform. The three trucks are
    drawn with positioned spans (box, cab, wheels) and a fill bar sized
    by width percent, with the percent also written in words. The move
    countdown is an ordered list of week cards. The box table uses a
    tfoot row for the totals. Media queries at 576px, 768px, 992px and
    1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #1C1917 asphalt   #C2410C orange (darker than #EA580C for white
      text)   #1E3A8A navy   #FFF7ED cream   #57534E muted   #C8A27A box
*/

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

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

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

/* Cream page with asphalt text. */
body {
    background-color: #FFF7ED;
    color: #1C1917;
    font-family: "Open Sans", sans-serif;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Tall, heavy Anton headings. */
h1,
h2,
h3 {
    font-family: Anton, sans-serif;
    font-weight: 400;
    line-height: 1.02;
    text-transform: uppercase;
}

/* Section titles. */
h2 {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
}

/* Navy links. */
a {
    color: #1E3A8A;
    font-weight: 700;
}

/* Orange focus ring. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #C2410C;
    outline-offset: 3px;
}

/* Muted intro paragraph. */
.lead {
    color: #57534E;
    max-width: 40rem;
    margin: 8px 0px 26px 0px;
}

/* ----- Header (class) ----- */

/* Sticky navy header. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #1E3A8A;
    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: Anton, sans-serif;
    font-size: 1.7rem;
    text-transform: uppercase;
    line-height: 1;
}

/* Orange second word. */
.logo span {
    color: #FDBA74;
}

/* Small word after. */
.logo small {
    font-family: "Open Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    background-color: #C2410C;
    padding: 6px 14px;
    font-weight: 700;
    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 #2E4C9E;
}

/* Peach on hover. */
.site-nav a:hover {
    color: #FDBA74;
}

/* Concept notice. */
.concept-note {
    background-color: #172E6E;
    font-size: 0.85rem;
    text-align: center;
    padding: 4px 16px;
}

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

/* Van photo hero with a dark overlay; parent for the tape, which it clips. */
.hero {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(28, 25, 23, 0.72), rgba(28, 25, 23, 0.72)), url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 70px 20px 110px 20px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(3rem, 9vw, 6rem);
    margin-bottom: 14px;
}

/* Peach second line. */
.hero h1 span {
    display: block;
    color: #FDBA74;
}

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

/* Orange button. */
.button,
button {
    display: inline-block;
    background-color: #C2410C;
    color: #FFFFFF;
    border: none;
    padding: 13px 26px;
    font-family: Anton, sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

/* Darker orange on hover. */
.button:hover,
button:hover {
    background-color: #9A3412;
}

/* Phone link beside the button. */
.phone {
    display: inline-block;
    margin: 12px 0px 0px 14px;
    color: #FFFFFF;
    font-size: 1.15rem;
}

/* Packing tape: a tan strip with brown text, rotated across the bottom.
   It is wider than the hero; the hero's overflow hides the ends. */
.tape {
    position: absolute;
    left: -10%;
    bottom: 30px;
    width: 120%;
    background-color: #E2B97F;
    color: #4A2E12;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 8px 0px;
    transform: rotate(-3deg);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.35);
}

/* ----- Move sizes (class) ----- */

/* Section spacing. */
.sizes {
    padding: 60px 20px;
}

/* Truck cards wrap. */
.truck-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* One size card. */
.size {
    flex: 1 1 260px;
    background-color: #FFFFFF;
    border: 3px solid #1C1917;
    padding: 20px;
}

/* Size name. */
.size h3 {
    font-size: 1.8rem;
    margin-top: 12px;
}

/* Fill percent in words. */
.fill-text {
    font-weight: 700;
    color: #C2410C;
}

/* Hourly rate. */
.rate {
    font-family: Anton, sans-serif;
    font-size: 1.8rem;
    color: #1E3A8A;
}

/* The truck drawing: positioning parent for its parts. */
.truck {
    position: relative;
    height: 120px;
}

/* Cargo box: white with a dark outline. */
.box {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 72%;
    height: 90px;
    background-color: #F5F5F4;
    border: 3px solid #1C1917;
}

/* Cargo inside the box: stacked brown boxes drawn by a gradient. */
.fill {
    position: absolute;
    left: 0px;
    bottom: 0px;
    height: 100%;
    background-color: #C8A27A;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 26px, #8A6440 26px, #8A6440 28px), repeating-linear-gradient(180deg, transparent 0px, transparent 26px, #8A6440 26px, #8A6440 28px);
}

/* 30 percent full. */
.fill-30 {
    width: 30%;
}

/* 60 percent full. */
.fill-60 {
    width: 60%;
}

/* 95 percent full. */
.fill-95 {
    width: 95%;
}

/* The cab: navy, with a slanted windshield cut by clip-path. */
.cab {
    position: absolute;
    left: 73%;
    top: 30px;
    width: 26%;
    height: 60px;
    background-color: #1E3A8A;
    clip-path: polygon(0% 0%, 60% 0%, 100% 50%, 100% 100%, 0% 100%);
}

/* Both wheels. */
.wheel {
    position: absolute;
    top: 78px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #1C1917;
    border: 7px solid #57534E;
}

/* Back wheel. */
.wheel-back {
    left: 12%;
}

/* Front wheel. */
.wheel-front {
    left: 78%;
}

/* ----- Countdown (class) ----- */

/* Navy band. */
.countdown {
    background-color: #1E3A8A;
    color: #FFFFFF;
    padding: 60px 20px;
}

/* Week cards stack on phones. */
.weeks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

/* One week card. */
.weeks > li {
    background-color: #FFFFFF;
    color: #1C1917;
    padding: 18px;
    border-top: 8px solid #C2410C;
}

/* "8 weeks out" line with a big number. */
.when {
    font-family: Anton, sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* The big number. */
.when span {
    font-size: 3rem;
    color: #C2410C;
    margin-right: 6px;
    line-height: 1;
}

/* To-do list inside each week. */
.weeks ul {
    list-style: none;
}

/* One to-do with a box drawn before it. */
.weeks ul li {
    padding: 4px 0px 4px 26px;
    position: relative;
}

/* Empty checkbox square drawn with a border. */
.weeks ul li::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 9px;
    width: 14px;
    height: 14px;
    border: 2px solid #1E3A8A;
}

/* Moving day card in orange. */
.weeks .day {
    background-color: #FFEDD5;
}

/* ----- Box count (class) ----- */

/* Text then table on phones. */
.boxes {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 60px 20px;
}

/* Space under the heading. */
.boxes h2 {
    margin-bottom: 10px;
}

/* Boxes photo. */
.boxes img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-top: 16px;
}

/* Table. */
.boxes table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    border: 3px solid #1C1917;
}

/* Caption. */
.boxes caption {
    text-align: left;
    font-weight: 700;
    padding-bottom: 6px;
}

/* Cells. */
.boxes th,
.boxes td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #E7E5E4;
}

/* Room names left aligned. */
.boxes tbody th {
    text-align: left;
}

/* Header row. */
.boxes thead th {
    background-color: #1C1917;
    color: #FFFFFF;
    font-family: Anton, sans-serif;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* Totals row in orange. */
.boxes tfoot th,
.boxes tfoot td {
    background-color: #C2410C;
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
}

/* ----- Quote (class) ----- */

/* Photo then form on phones. */
.quote {
    display: flex;
    flex-direction: column;
    background-color: #1C1917;
}

/* Movers photo. */
.quote > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Form panel. */
.quote-form {
    padding: 50px 20px;
    color: #FFFFFF;
}

/* Space under heading. */
.quote-form h2 {
    margin-bottom: 14px;
}

/* Field pairs stack on phones. */
.pair {
    display: flex;
    flex-direction: column;
}

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

/* Inputs and select. */
.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="date"],
.quote-form select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: none;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    background-color: #FFFFFF;
}

/* Checkbox line. */
.check input {
    width: 18px;
    height: 18px;
    accent-color: #C2410C;
    margin-right: 6px;
}

/* Space above the button. */
.quote-form button {
    margin-top: 20px;
}

/* Keys photo strip. */
.keys img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* Caption overlapping the strip. */
.keys figcaption {
    text-align: center;
    font-family: Anton, sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    padding: 14px;
}

/* ----- Footer (class) ----- */

/* Navy footer. */
.site-footer {
    background-color: #1E3A8A;
    color: #DBE4FF;
    text-align: center;
    font-size: 0.85rem;
    padding: 22px 20px;
}

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

@media (min-width: 576px) {

    /* Field pairs side by side. */
    .pair {
        flex-direction: row;
        gap: 14px;
    }

    /* Each half of a pair. */
    .pair div {
        flex: 1 1 50%;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .sizes,
    .countdown,
    .boxes {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Two week cards per row. */
    .weeks {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Each card half the row. */
    .weeks > li {
        flex: 1 1 40%;
    }

    /* Photo and form side by side. */
    .quote {
        flex-direction: row;
    }

    /* Photo fills its half. */
    .quote > img {
        width: 40%;
        height: auto;
    }

    /* Form half. */
    .quote-form {
        flex: 1 1 60%;
        padding: 56px 40px;
    }
}

/* ----- 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;
    }

    /* Taller hero. */
    .hero {
        padding-top: 120px;
        padding-bottom: 170px;
    }

    /* Four week cards in one row. */
    .weeks > li {
        flex: 1 1 20%;
    }

    /* Box text and table side by side. */
    .boxes {
        flex-direction: row;
        align-items: flex-start;
        gap: 50px;
    }

    /* Each half. */
    .boxes-text,
    .boxes table {
        flex: 1 1 50%;
    }

    /* Keys strip taller. */
    .keys img {
        height: 340px;
    }
}

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

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .sizes,
    .countdown,
    .boxes {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
