/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Hickory Ridge Lumber & Supply (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first. Base rules below are the phone layout.
    Media queries at 576px, 768px, 992px and 1200px add changes as the
    screen gets wider, in ascending order. Layout uses Flexbox, plus one
    float in the accounts section.

    Colors (checked with the WebAIM contrast checker, all pass AA):
      #F3EAD9 paper   #24180F ink   #9C4A1A rust   #3D5A3A pine   #E9B46B gold
*/

/* ----- Browser reset (universal) ----- */

/* box-sizing: border-box makes width include padding and border, so boxes
   keep the width I give them. margin and padding start from zero. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Cream "lumber ticket" paper background with dark brown ink. Source Serif
   is the readable body font; 1.6 line-height gives paragraphs room. */
body {
    background-color: #F3EAD9;
    color: #24180F;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* Images never grow wider than their box and keep their proportions. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Headings use the tall condensed display font in capitals, like the
   stenciled signs on a lumber rack. */
h1,
h2,
h3 {
    font-family: "Big Shoulders Display", Impact, sans-serif;
    text-transform: uppercase;
    line-height: 0.95;
}

/* Rust links with an underline so they are not marked by color alone. */
a {
    color: #9C4A1A;
}

/* A thick visible outline for keyboard users on every link, button and
   form control. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #9C4A1A;
    outline-offset: 3px;
}

/* ----- Utility (class) ----- */

/* Hides a heading on screen but keeps it for screen readers, so the
   category section still has a name in the page outline. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
}

/* Small typewriter-style label used above headings. */
.eyebrow {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9C4A1A;
    margin: 0px 0px 12px 0px;
}

/* ----- Concept banner (class) ----- */

/* Dark strip at the very top that labels the site as a concept. */
.concept-banner {
    background-color: #24180F;
    color: #F3EAD9;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    text-align: center;
    padding: 8px 12px;
}

/* The "Concept design" words in gold so the label is noticed first. */
.concept-banner strong {
    color: #E9B46B;
}

/* ----- Header and hamburger navigation (class) ----- */

/* Flex row: brand on the left, menu button on the right. flex-wrap lets
   the nav drop to its own full-width line when the menu is opened. */
.site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 3px double #24180F;
}

/* Business name in the display font. */
.brand {
    font-family: "Big Shoulders Display", Impact, sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
}

/* "Lumber & Supply" sits under the name in small rust type on phones. */
.brand-tag {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: #9C4A1A;
    letter-spacing: 0.08em;
}

/* The real checkbox is moved off screen but can still take keyboard focus,
   which display: none would not allow. */
.menu-check {
    position: absolute;
    opacity: 0;
}

/* The label is the visible menu button. Icon plus the word "Menu" so it
   is not an icon-only control. */
.menu-icon {
    font-family: "IBM Plex Mono", monospace;
    border: 2px solid #24180F;
    padding: 8px 12px;
    cursor: pointer;
}

/* The nav is hidden on phones until the menu checkbox is checked.
   flex-basis: 100% gives it a full line of its own under the brand. */
.site-nav {
    display: none;
    flex-basis: 100%;
}

/* Show the navigation when the checkbox is checked. The ~ selector finds
   the nav that comes after the checkbox inside the header. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* Remove bullets and indent from the nav list. */
.site-nav ul {
    list-style: none;
}

/* Each phone menu link is a full-width tap target with a dashed divider. */
.site-nav a {
    display: block;
    padding: 12px 0px;
    border-bottom: 1px dashed #24180F55;
    color: #24180F;
    font-style: italic;
    text-decoration: none;
}

/* Rust underline on hover shows which link the pointer is on. */
.site-nav a:hover {
    color: #9C4A1A;
    text-decoration: underline;
}

/* The phone number button is hidden in the phone header (there is no
   room), and shown again at 768px. */
.site-header .call-button {
    display: none;
}

/* ----- Buttons (class) ----- */

/* Rust button with white text, used for calls and account links.
   em padding scales with the button's own text size. */
.call-button {
    display: inline-block;
    background-color: #9C4A1A;
    color: #FFFFFF;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.7em 1.1em;
}

/* Darker brown on hover so the button reacts to the pointer. */
.call-button:hover {
    background-color: #24180F;
}

/* ----- Hero (class) ----- */

/* On phones the photo sits on top of the text. flex-direction:
   column-reverse puts the image (second in the HTML) first on screen. */
.hero {
    display: flex;
    flex-direction: column-reverse;
    border-bottom: 3px double #24180F;
}

/* Text column padding keeps words off the screen edge. */
.hero-text {
    padding: 28px 20px 36px 20px;
}

/* Very large headline; the clamp() keeps it between 64px and 128px
   depending on screen width. */
.hero h1 {
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 900;
}

/* "list." in rust to tie the headline to the brand color. */
.hero h1 em {
    font-style: normal;
    color: #9C4A1A;
}

/* Lead paragraph a step larger than body text. */
.hero-lead {
    font-size: 1.15rem;
    max-width: 30rem;
    margin: 20px 0px 24px 0px;
}

/* Three boxed facts in a row, like the stamped boxes on a lumber ticket.
   Each box grows equally to fill the row. */
.quick-facts {
    display: flex;
    list-style: none;
    border: 2px solid #24180F;
}

/* One fact box; the right border divides it from the next one. */
.quick-facts li {
    flex-grow: 1;
    padding: 10px 12px;
    border-right: 2px solid #24180F;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* No divider after the last fact box. */
.quick-facts li:last-child {
    border-right: none;
}

/* The big number in each fact box. */
.quick-facts strong {
    display: block;
    font-family: "Big Shoulders Display", Impact, sans-serif;
    font-size: 1.6rem;
}

/* The hero photo is cropped to a fixed height on phones. object-fit:
   cover fills the box without stretching the picture. */
.hero-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ----- Product categories (class) ----- */

/* Two categories per row on phones. flex-wrap moves the rest to new rows. */
.categories {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #24180F;
}

/* flex-basis: 50% = two per row. The borders draw the grid lines. */
.category {
    flex-basis: 50%;
    padding: 18px 16px;
    border-right: 1px solid #24180F26;
    border-bottom: 1px solid #24180F26;
}

/* Category number in the typewriter font. */
.category-number {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
}

/* Category name. */
.category h3 {
    font-size: 1.6rem;
    margin: 4px 0px;
}

/* Short category description, a little smaller than body text. */
.category p:last-child {
    font-size: 0.9rem;
}

/* ----- Section headings (class) ----- */

/* Heading block above the stock board and delivery list. */
.section-heading {
    margin: 0px 0px 28px 0px;
}

/* Large section titles. */
.section-heading h2,
.cut-list h2,
.accounts h2 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    margin: 0px 0px 12px 0px;
}

/* Italic intro under each section title. */
.section-heading p {
    font-style: italic;
    max-width: 28rem;
}

/* Space around every main section. */
.stock,
.cut-list,
.delivery,
.accounts {
    padding: 56px 20px;
}

/* ----- Stock board table (ID and class) ----- */

/* The section ID gets a hairline rule on top so the board stands apart
   from the categories above it. */
#stock {
    border-top: 1px solid #24180F26;
}

/* Dark "chalkboard" with a thick wood-brown frame. */
.board {
    background-color: #24180F;
    color: #F3EAD9;
    border: 8px solid #5A3B22;
    padding: 14px;
}

/* Table fills the board; collapsed borders give single clean lines. */
.board table {
    width: 100%;
    border-collapse: collapse;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.85rem;
}

/* The caption explains the board is a sample for this concept. */
.board caption {
    caption-side: bottom;
    text-align: left;
    color: #D8CBB3;
    font-size: 0.75rem;
    padding: 12px 0px 0px 0px;
}

/* Column headings in gold small caps. */
.board th {
    color: #E9B46B;
    font-weight: 500;
    font-size: 0.7rem;
    text-align: left;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 8px;
    border-bottom: 1px dashed #F3EAD966;
}

/* Each cell gets a dashed line under it, like a hand-ruled board. */
.board td {
    padding: 12px 8px;
    border-bottom: 1px dashed #F3EAD92A;
}

/* The sizes column is hidden on phones to keep the table from scrolling
   sideways; it comes back at 576px. */
.sizes {
    display: none;
}

/* Status icons: green check, gold warning, salmon truck. The words next
   to them say the same thing, so color is not the only signal. */
.in-stock {
    color: #7CCF6A;
}

/* Gold warning icon for items running low. */
.low-stock {
    color: #E9B46B;
}

/* Salmon truck icon for items that have to be ordered in. */
.special-order {
    color: #F08A6C;
}

/* ----- Cut list (class) ----- */

/* On phones the steps and the form stack. gap spaces the two columns
   once they sit side by side at 992px. */
.cut-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Numbered steps use the display font for the numbers via ::marker. */
.steps {
    padding: 0px 0px 0px 28px;
}

/* One step; a dotted line separates it from the next. */
.steps li {
    padding: 10px 0px;
    border-bottom: 1px solid #24180F26;
}

/* Rust numbers on the steps list. */
.steps li::marker {
    color: #9C4A1A;
    font-weight: 600;
}

/* Two photos side by side; the second sits lower for a staggered look. */
.photo-pair {
    display: flex;
    gap: 12px;
    margin: 28px 0px 0px 0px;
}

/* Each photo takes half the row, cropped portrait. */
.photo-pair img {
    flex: 1 1 0px;
    min-width: 0px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* margin-top pushes the second photo down to stagger the pair. */
.photo-pair img:last-child {
    margin: 40px 0px 0px 0px;
}

/* The form looks like a paper ticket with a heavy border. */
.cut-form {
    background-color: #FFFAF0;
    border: 2px solid #24180F;
    padding: 24px;
}

/* The fieldset border is removed; the form's own border frames it. */
.cut-form fieldset {
    border: none;
}

/* Legend in the display font like a stamped title. */
.cut-form legend {
    font-family: "Big Shoulders Display", Impact, sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* Labels in small typewriter capitals above each field. */
.cut-form label {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 16px 0px 4px 0px;
}

/* Fields are underlined only, like writing on a ticket. */
.cut-form input,
.cut-form select,
.cut-form textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid #24180F;
    background-color: #FFFAF0;
    font-family: inherit;
    font-size: 1rem;
    padding: 8px 2px;
}

/* Pine green submit button in the display font. */
.cut-form button {
    margin: 24px 0px 0px 0px;
    background-color: #3D5A3A;
    color: #FFFFFF;
    border: none;
    padding: 0.6em 1.2em;
    font-family: "Big Shoulders Display", Impact, sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Darker green on hover. */
.cut-form button:hover {
    background-color: #24180F;
}

/* ----- Delivery (class) ----- */

/* Pine green band with cream text for the delivery area. */
.delivery {
    background-color: #3D5A3A;
    color: #F3EAD9;
}

/* Two towns per row on phones. */
.towns {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    border-top: 1px solid #F3EAD966;
}

/* Each town name is big and capitalized; the line under it divides rows. */
.towns li {
    flex-basis: 50%;
    padding: 16px 0px;
    border-bottom: 1px solid #F3EAD966;
    font-family: "Big Shoulders Display", Impact, sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* The schedule note above each town in small type. */
.towns span {
    display: block;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

/* ----- Contractor accounts (class) ----- */

/* display: flow-root makes the section tall enough to hold its floated
   photo, the same fix used in the travel blog project. */
.accounts {
    display: flow-root;
}

/* The photo stacks above the text on phones. */
.accounts img {
    border: 2px solid #24180F;
    margin: 0px 0px 24px 0px;
}

/* Space between the paragraph and the button. */
.accounts p {
    margin: 0px 0px 20px 0px;
}

/* ----- Footer (class) ----- */

/* Footer credits; double rule on top matches the header. */
.site-footer {
    border-top: 3px double #24180F;
    padding: 24px 20px;
    font-size: 0.875rem;
}

/* ===== Small screens and up: 576px ===== */

@media (min-width: 576px) {

    /* Bring back the sizes column now that the table has room. */
    .sizes {
        display: table-cell;
    }

    /* Three categories per row instead of two. */
    .category {
        flex-basis: 33.333%;
    }

    /* Three towns per row. */
    .towns li {
        flex-basis: 33.333%;
    }
}

/* ===== Medium screens and up: 768px ===== */

@media (min-width: 768px) {

    /* Hide the hamburger button; the full nav shows instead. */
    .menu-icon {
        display: none;
    }

    /* Show the nav in the header row and let it take only the room it
       needs instead of a full line. */
    .site-nav {
        display: block;
        flex-basis: auto;
    }

    /* Links sit in a row with space between them. */
    .site-nav ul {
        display: flex;
        gap: 24px;
    }

    /* Drop the phone-menu divider lines. */
    .site-nav a {
        border-bottom: none;
        padding: 0px;
    }

    /* Show the phone number button in the header. */
    .site-header .call-button {
        display: inline-block;
    }

    /* Wider padding on every section. */
    .site-header,
    .stock,
    .cut-list,
    .delivery,
    .accounts,
    .site-footer {
        padding-left: 4vw;
        padding-right: 4vw;
    }

    /* Float the accounts photo left so the text wraps beside it. */
    .accounts img {
        float: left;
        width: 45%;
        margin: 0px 40px 0px 0px;
    }

    /* Footer lines sit on one row, pushed to the edges. */
    .site-footer {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }
}

/* ===== Large screens and up: 992px ===== */

@media (min-width: 992px) {

    /* Hero becomes two columns: text left, photo right. */
    .hero {
        flex-direction: row;
        min-height: 620px;
    }

    /* Each hero column takes half the width. */
    .hero-text,
    .hero-photo {
        flex: 1 1 50%;
    }

    /* The text column spreads out so the facts sit at the bottom. */
    .hero-text {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 64px 4vw 48px 4vw;
    }

    /* The photo fills the full height of the hero. */
    .hero-photo {
        height: auto;
        min-width: 0px;
    }

    /* Six categories in one row. */
    .category {
        flex-basis: 16.666%;
        border-bottom: none;
    }

    /* Cut list steps and form side by side. */
    .cut-list {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Steps column slightly wider than the form. */
    .cut-list-steps {
        flex: 1.1 1 0px;
    }

    /* The form column takes the remaining, slightly smaller share. */
    .cut-form {
        flex: 0.9 1 0px;
    }

    /* Bigger table text on the wider board. */
    .board {
        padding: 30px;
    }

    /* Larger table text now that the board is wider. */
    .board table {
        font-size: 0.95rem;
    }
}

/* ===== Extra large screens and up: 1200px ===== */

@media (min-width: 1200px) {

    /* The heading and its intro sit side by side, intro on the right. */
    .section-heading {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 40px;
    }

    /* Extra room on the biggest screens. */
    .stock,
    .cut-list,
    .delivery,
    .accounts {
        padding-top: 90px;
        padding-bottom: 90px;
    }
}
