/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Bedrock Hauling & Excavation (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, dark "heavy equipment" style. Base rules
    are the phone layout; media queries at 576px, 768px, 992px and 1200px
    add to it. Flexbox for layout, a checkbox hamburger menu, a real table
    for the gravel guide, and absolute positioning for photo labels.

    Colors (WebAIM checked, AA):
      #111111 black   #1C1C1C panel   #FFB703 caution yellow   #D8D8D8 text   #A6A6A6 muted
*/

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

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

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

/* Black page with light grey text in Inter. */
body {
    background-color: #111111;
    color: #D8D8D8;
    font-family: Inter, sans-serif;
    font-size: 1.03rem;
    line-height: 1.6;
}

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

/* Tall, heavy Anton headings in white capitals. */
h1,
h2,
h3 {
    font-family: Anton, Impact, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: #FFFFFF;
    line-height: 0.95;
}

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

/* ----- Banner, stripe and header (class) ----- */

/* Black banner in code font labeling the concept. */
.concept-banner {
    background-color: #000000;
    color: #A6A6A6;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    text-align: center;
    padding: 7px 12px;
}

/* "CONCEPT DESIGN" in yellow. */
.concept-banner strong {
    color: #FFB703;
}

/* Yellow and black caution tape. repeating-linear-gradient draws 18px
   stripes at a 45 degree angle over and over. */
.stripe {
    height: 14px;
    background-image: repeating-linear-gradient(-45deg, #FFB703 0px, #FFB703 18px, #111111 18px, #111111 36px);
}

/* Logo left, menu button right; nav drops below when opened. */
.site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #333333;
}

/* White logo in Anton with a yellow mountain icon. */
.logo {
    font-family: Anton, Impact, sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: #FFFFFF;
}

/* Yellow logo icon. */
.logo i {
    color: #FFB703;
}

/* Hidden but keyboard-focusable checkbox. */
.menu-check {
    position: absolute;
    opacity: 0;
}

/* Yellow menu button. */
.menu-icon {
    background-color: #FFB703;
    color: #000000;
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    padding: 8px 12px;
    cursor: pointer;
}

/* Nav hidden on phones until the checkbox is checked. */
.site-nav {
    display: none;
    flex-basis: 100%;
    margin: 12px 0px 0px 0px;
}

/* Show the nav when the menu checkbox is checked. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets. */
.site-nav ul {
    list-style: none;
}

/* Code-font links with a divider between each. */
.site-nav a {
    display: block;
    color: #D8D8D8;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 0px;
    border-top: 1px solid #333333;
}

/* Yellow text on hover. */
.site-nav a:hover {
    color: #FFB703;
    text-decoration: underline;
}

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

/* Photo on top, text below on phones. */
.hero {
    display: flex;
    flex-direction: column;
}

/* position: relative anchors the photo tag. */
.hero-photo {
    position: relative;
}

/* Hero photo cropped to a fixed height on phones. */
.hero-photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* Yellow job label pinned to the photo's bottom-left corner. */
.photo-tag {
    position: absolute;
    left: 0px;
    bottom: 0px;
    background-color: #FFB703;
    color: #000000;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 16px;
}

/* Text padding. */
.hero-text {
    padding: 36px 20px 44px 20px;
}

/* Yellow code-comment style note. */
.code-note {
    color: #FFB703;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    margin: 0px 0px 16px 0px;
}

/* Giant headline. */
.hero h1 {
    font-size: clamp(4rem, 9vw, 8.5rem);
}

/* "dirt." on its own line in yellow. */
.hero h1 span {
    display: block;
    color: #FFB703;
}

/* Hero paragraph. */
.hero-text > p:not(.code-note) {
    font-size: 1.15rem;
    max-width: 30rem;
    margin: 20px 0px 26px 0px;
}

/* Yellow block button in code font. */
.yellow-button {
    display: inline-block;
    background-color: #FFB703;
    color: #000000;
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    text-decoration: none;
    padding: 0.9em 1.3em;
}

/* White on hover. */
.yellow-button:hover {
    background-color: #FFFFFF;
}

/* ----- Stats (class) ----- */

/* Four numbers, two per row on phones, with grid lines from borders. */
.stats {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

/* One stat box. */
.stats li {
    flex: 1 1 50%;
    padding: 20px;
    border-right: 1px solid #333333;
    border-bottom: 1px solid #333333;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #A6A6A6;
}

/* The big number in each stat box. */
.stats strong {
    display: block;
    font-family: Anton, Impact, sans-serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.05;
}

/* ----- Section shared (class) ----- */

/* Space around each section. */
.fleet,
.rock,
.calculator {
    padding: 60px 20px;
}

/* Section title block. */
.section-head {
    margin: 0px 0px 32px 0px;
}

/* Huge section titles. */
.section-head h2 {
    font-size: clamp(3rem, 6vw, 5.6rem);
    margin: 0px 0px 14px 0px;
}

/* Muted intro next to each title. */
.section-head p {
    color: #A6A6A6;
    max-width: 28rem;
}

/* ----- Fleet (ID and class) ----- */

/* Equipment cards stack on phones. */
.plates {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* One equipment card, like a data plate. position: relative anchors the
   unit number label. */
.plate {
    position: relative;
    flex: 1 1 0px;
    background-color: #1C1C1C;
    border: 1px solid #333333;
}

/* Equipment photo. */
.plate img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

/* Unit number label pinned to the top-left of the card. */
.unit {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #000000;
    color: #FFB703;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
}

/* Equipment name. */
.plate h3 {
    font-size: 1.8rem;
    padding: 18px 20px 0px 20px;
}

/* Spec list. flex-wrap puts each label (dt) and value (dd) on one line:
   dt takes 40% and dd takes 60%. */
.spec {
    display: flex;
    flex-wrap: wrap;
    margin: 12px 20px 20px 20px;
    border-top: 1px dashed #444444;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
}

/* Spec label column. */
.spec dt {
    flex-basis: 40%;
    padding: 7px 0px;
    border-bottom: 1px dashed #444444;
}

/* Spec value column in yellow, right aligned. */
.spec dd {
    flex-basis: 60%;
    padding: 7px 0px;
    border-bottom: 1px dashed #444444;
    text-align: right;
    color: #FFB703;
}

/* ----- Gravel table (ID and element) ----- */

/* Dark grey panel behind the gravel guide. */
#rock {
    background-color: #1C1C1C;
}

/* Table fills the width; single collapsed lines. */
#rock table {
    width: 100%;
    border-collapse: collapse;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
}

/* Caption under the table in muted text. */
#rock caption {
    caption-side: bottom;
    text-align: left;
    color: #A6A6A6;
    padding: 12px 0px 0px 0px;
    font-size: 0.8rem;
}

/* Yellow header row with black text. */
#rock thead th {
    background-color: #FFB703;
    color: #000000;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    padding: 10px 12px;
}

/* Row headers (the rock names) in white Inter. */
#rock tbody th {
    text-align: left;
    font-family: Inter, sans-serif;
    font-weight: 600;
    color: #FFFFFF;
}

/* Every body cell gets padding and a line under it. */
#rock tbody th,
#rock td {
    padding: 14px 12px;
    border-bottom: 1px solid #333333;
    vertical-align: middle;
}

/* The size and packs-down columns are hidden on phones to avoid sideways
   scrolling; they come back at 576px. */
.extra {
    display: none;
}

/* Small color swatch next to each rock name. */
.swatch {
    display: inline-block;
    width: 28px;
    height: 20px;
    border: 1px solid #555555;
    border-radius: 3px;
    vertical-align: middle;
    margin: 0px 8px 0px 0px;
}

/* Base rock: dark grey. */
.swatch-base {
    background-color: #6E6E6E;
}

/* Clean 57: light tan grey. */
.swatch-clean {
    background-color: #B8B1A3;
}

/* 2 inch clean: middle grey. */
.swatch-two {
    background-color: #8E887E;
}

/* Chip and screenings: brown. */
.swatch-chip {
    background-color: #5A4A3C;
}

/* ----- Gravel calculator (ID and class) ----- */

/* Black form box with a yellow border. */
.calc-form {
    background-color: #000000;
    border: 2px solid #FFB703;
    padding: 24px;
    font-family: "JetBrains Mono", monospace;
}

/* Small muted labels above each field. */
.calc-form label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #A6A6A6;
    margin: 12px 0px 6px 0px;
}

/* Dark fields with white text. */
.calc-form input,
.calc-form select {
    width: 100%;
    background-color: #2A2A2A;
    border: 1px solid #555555;
    color: #FFFFFF;
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
}

/* Yellow result box with the estimate. */
.result {
    background-color: #FFB703;
    color: #000000;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 16px;
    margin: 18px 0px 6px 0px;
}

/* The estimate number in big Anton. */
.result strong {
    display: block;
    font-family: Anton, Impact, sans-serif;
    font-size: 2.4rem;
    font-weight: 400;
}

/* White submit button. */
.calc-form button {
    width: 100%;
    margin: 18px 0px 0px 0px;
    background-color: #FFFFFF;
    color: #000000;
    border: none;
    padding: 14px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

/* Yellow on hover. */
.calc-form button:hover {
    background-color: #FFB703;
}

/* ----- Photo pair (class) ----- */

/* Two job photos stacked on phones. */
.photo-pair {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Cropped job photos. */
.photo-pair img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

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

/* Muted code-font footer. */
.site-footer {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #A6A6A6;
    padding: 24px 20px;
}

/* ===== Small screens and up: 576px ===== */

@media (min-width: 576px) {

    /* Bring back the extra table columns. */
    .extra {
        display: table-cell;
    }

    /* Taller hero photo. */
    .hero-photo img {
        height: 340px;
    }
}

/* ===== Medium screens and up: 768px ===== */

@media (min-width: 768px) {

    /* Hide the menu button; show the nav in the header row. */
    .menu-icon {
        display: none;
    }

    /* Nav sits to the right of the logo. */
    .site-nav {
        display: block;
        flex-basis: auto;
        margin: 0px;
    }

    /* Links in a row with dividing lines between them. */
    .site-nav ul {
        display: flex;
    }

    /* Each link gets a left divider instead of a top one. */
    .site-nav a {
        border-top: none;
        border-left: 1px solid #333333;
        padding: 6px 16px;
    }

    /* The last nav link (the phone number) is a yellow button. */
    .site-nav li:last-child a {
        background-color: #FFB703;
        color: #000000;
        font-weight: 700;
        margin: 0px 0px 0px 10px;
    }

    /* Four stats in one row. */
    .stats li {
        flex-basis: 25%;
        border-bottom: none;
    }

    /* Equipment cards in a row. */
    .plates {
        flex-direction: row;
    }

    /* Photos side by side, the first one wider. */
    .photo-pair {
        flex-direction: row;
    }

    /* First photo takes two-thirds. */
    .photo-pair img:first-child {
        flex: 2 1 0px;
        min-width: 0px;
        height: 420px;
    }

    /* Second photo takes one-third. */
    .photo-pair img:last-child {
        flex: 1 1 0px;
        min-width: 0px;
        height: 420px;
    }

    /* Footer lines at the edges. */
    .site-footer {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }
}

/* ===== Large screens and up: 992px ===== */

@media (min-width: 992px) {

    /* Text left, photo right. row-reverse keeps the photo first in the
       HTML for phones but shows it on the right here. */
    .hero {
        flex-direction: row-reverse;
        min-height: 600px;
    }

    /* Each hero column takes half. */
    .hero-photo,
    .hero-text {
        flex: 1 1 0px;
    }

    /* Photo fills the full hero height. */
    .hero-photo img {
        height: 100%;
    }

    /* Text centered vertically. */
    .hero-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 60px 3vw;
    }

    /* Title left, intro right. */
    .section-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 30px;
    }

    /* Wider side padding. */
    .site-header,
    .fleet,
    .rock,
    .calculator,
    .site-footer {
        padding-left: 3vw;
        padding-right: 3vw;
    }

    /* Calculator: heading and form side by side. */
    .calculator {
        display: flex;
        gap: 4vw;
        align-items: flex-start;
    }

    /* Calculator heading stacks its title and text instead of the
       side-by-side heading used by the other sections. */
    .calculator .section-head {
        display: block;
        flex: 1 1 0px;
    }

    /* The form column. */
    .calc-form {
        flex: 1 1 0px;
    }
}

/* ===== Extra large screens and up: 1200px ===== */

@media (min-width: 1200px) {

    /* Bigger stat numbers on wide screens. */
    .stats strong {
        font-size: 3.6rem;
    }

    /* More vertical room. */
    .fleet,
    .rock,
    .calculator {
        padding-top: 90px;
        padding-bottom: 90px;
    }
}
