/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Hot Bead Mobile Welding (fictional business)
    Filename:   styles.css

    Theme: steel and sparks. The header is the side of a steel I-beam
    (dark top and bottom flanges around a lighter web) with a weld
    seam running along the bottom flange, drawn as a "stack of dimes"
    bead from repeating radial gradients. The hero is a dark shop with
    orange sparks sprayed across the photo. The signature draws four
    weld joints (butt, lap, T and corner) from gray steel plates with
    an orange bead where they meet. Rates are stenciled on a diamond
    plate panel (two crossing repeating gradients) with bolt heads in
    the corners. The footer is a slotted welding table.

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

    Colors (WebAIM contrast checked, AA):
      #140A04 text on #FAF7F5 page (18.9:1)
      #B54409 orange text (5.6:1 on the page)
      #140A04 on #EA580C orange buttons (5.7:1)
      #FFFFFF on #1F1A17 shop dark (17.0:1)
*/

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

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

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

/* Plain shop-paper page. */
body {
    background-color: #FAF7F5;
    color: #140A04;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.55;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Stencil-cut headings. */
h1,
h2,
h3 {
    font-family: "Staatliches", Impact, sans-serif;
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: 0.02em;
}

/* Section titles. */
h2 {
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    color: #B54409;
    margin-bottom: 14px;
}

/* Links in orange. */
a {
    color: #B54409;
}

/* Sky-blue outline for keyboard users (the color of an arc). */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .beam-row .menu-icon {
    outline: 3px solid #227195;
    outline-offset: 3px;
}

/* ----- I-beam header (class) ----- */

/* Beam web between two dark flanges, with a weld bead along the bottom. */
.beam {
    position: relative;
    background-color: #9CA3AF;
    background-image: linear-gradient(180deg, #4B5563 0px, #4B5563 10px, transparent 10px), linear-gradient(0deg, #4B5563 0px, #4B5563 10px, transparent 10px), linear-gradient(180deg, #A8AFB8, #8A919B);
    padding: 20px 16px 30px 16px;
}

/* Weld bead: overlapping ripples along the bottom flange. */
.beam::after {
    content: "";
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 8px;
    height: 10px;
    background-image: radial-gradient(ellipse 7px 6px at 0px 50%, transparent 4px, #C2410C 5px, #EA580C 6px, transparent 7px);
    background-size: 7px 10px;
    background-color: #7C2D12;
}

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

/* Logo and menu in a row. */
.beam-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo stamped in the steel. */
.logo {
    font-family: "Staatliches", Impact, sans-serif;
    font-size: 1.9rem;
    line-height: 1;
    color: #140A04;
    text-shadow: 1px 1px 0px #D1D5DB;
}

/* Second line. */
.logo span {
    display: block;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: none;
}

/* Menu button. */
.menu-icon {
    background-color: #EA580C;
    color: #140A04;
    font-weight: 700;
    padding: 4px 12px;
    white-space: nowrap;
    cursor: pointer;
}

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

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

/* Nav list. */
.beam-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links, stamped. */
.beam-nav a {
    color: #140A04;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
}

/* Hover: underline. */
.beam-nav a:hover {
    text-decoration: underline;
}

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

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Sparks hero (class) ----- */

/* Dark shop with the photo dimmed behind. */
.sparks {
    position: relative;
    background-color: #1F1A17;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Photo behind. */
.sparks img {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

/* Sprayed sparks: small orange and yellow dots. */
.spray {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #FDBA74 0px, #FDBA74 1.5px, transparent 2.5px), radial-gradient(circle, #FDE047 0px, #FDE047 1px, transparent 2px), radial-gradient(circle, #EA580C 0px, #EA580C 2px, transparent 3px);
    background-size: 47px 61px, 31px 43px, 73px 59px;
    background-position: 0px 0px, 11px 17px, 23px 5px;
    opacity: 0.8;
}

/* Words on a dark panel. */
.sparks-text {
    position: relative;
    background-color: rgba(20, 10, 4, 0.85);
    color: #FFFFFF;
    margin: 0px 16px 30px 16px;
    padding: 24px;
    border-left: 8px solid #EA580C;
    max-width: 640px;
}

/* Headline. */
.sparks-text h1 {
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    margin-bottom: 14px;
}

/* Hero words. */
.sparks-text p {
    margin-bottom: 20px;
}

/* Hot orange button with a glowing edge. */
.hot-btn,
button {
    display: inline-block;
    background-color: #EA580C;
    color: #140A04;
    font-family: "Staatliches", Impact, sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    border: none;
    box-shadow: 0px 0px 16px rgba(234, 88, 12, 0.6);
    padding: 10px 26px;
    cursor: pointer;
}

/* Button hover. */
.hot-btn:hover,
button:hover {
    background-color: #FDBA74;
}

/* ----- Weld joints (ID) ----- */

/* Section spacing. */
#joints {
    padding: 56px 16px;
}

/* Joint cards wrap. */
.joint-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* One joint card. */
.joint {
    flex: 1 1 100%;
    background-color: #FFFFFF;
    border: 2px solid #D6D3D1;
    padding: 18px;
}

/* Joint name. */
.joint h3 {
    font-size: 1.6rem;
    margin-top: 12px;
}

/* Drawing area for one joint. */
.j {
    position: relative;
    height: 110px;
    background-color: #F5F5F4;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 12px 12px;
}

/* Steel plate. */
.plate {
    position: absolute;
    background-image: linear-gradient(180deg, #9CA3AF, #6B7280);
    border: 1px solid #374151;
}

/* Orange weld bead with ripples. */
.bead {
    position: absolute;
    background-color: #C2410C;
    background-image: repeating-linear-gradient(90deg, #EA580C 0px, #EA580C 3px, #9A3412 3px, #9A3412 5px);
    border-radius: 6px;
}

/* Butt joint: two plates end to end. */
.butt .a {
    left: 6%;
    top: 46px;
    width: 42%;
    height: 18px;
}

/* Butt joint right plate. */
.butt .b {
    right: 6%;
    top: 46px;
    width: 42%;
    height: 18px;
}

/* Butt joint bead in the gap. */
.butt .bead {
    left: 46%;
    top: 40px;
    width: 8%;
    height: 30px;
}

/* Lap joint: bottom plate. */
.lap .a {
    left: 6%;
    top: 58px;
    width: 60%;
    height: 16px;
}

/* Lap joint: top plate overlapping. */
.lap .b {
    left: 36%;
    top: 42px;
    width: 58%;
    height: 16px;
}

/* Lap joint bead at the step. */
.lap .bead {
    left: calc(36% - 12px);
    top: 46px;
    width: 14px;
    height: 14px;
}

/* T joint: base plate. */
.tee .a {
    left: 10%;
    top: 78px;
    width: 80%;
    height: 16px;
}

/* T joint: upright plate. */
.tee .b {
    left: calc(50% - 8px);
    top: 14px;
    width: 16px;
    height: 64px;
}

/* T joint beads on both sides of the upright. */
.tee .bead {
    left: calc(50% - 20px);
    top: 66px;
    width: 40px;
    height: 12px;
}

/* Corner joint: base plate. */
.corner .a {
    left: 24%;
    top: 78px;
    width: 56%;
    height: 16px;
}

/* Corner joint: upright plate at the end. */
.corner .b {
    left: 24%;
    top: 14px;
    width: 16px;
    height: 64px;
}

/* Corner joint bead in the inside corner. */
.corner .bead {
    left: calc(24% + 16px);
    top: 64px;
    width: 14px;
    height: 14px;
}

/* ----- Diamond plate rates (class) ----- */

/* Dark shop band. */
.rates {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #1F1A17;
    padding: 56px 16px;
}

/* Diamond plate panel with bolts in the corners. */
.plate-panel {
    position: relative;
    background-color: #8A919B;
    background-image: radial-gradient(circle at 14px 14px, #374151 0px, #374151 5px, transparent 6px), radial-gradient(circle at calc(100% - 14px) 14px, #374151 0px, #374151 5px, transparent 6px), radial-gradient(circle at 14px calc(100% - 14px), #374151 0px, #374151 5px, transparent 6px), radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #374151 0px, #374151 5px, transparent 6px), repeating-linear-gradient(45deg, transparent 0px, transparent 10px, rgba(255, 255, 255, 0.25) 10px, rgba(255, 255, 255, 0.25) 13px, transparent 13px, transparent 22px), repeating-linear-gradient(-45deg, transparent 0px, transparent 10px, rgba(0, 0, 0, 0.12) 10px, rgba(0, 0, 0, 0.12) 13px, transparent 13px, transparent 22px);
    padding: 34px 24px;
    color: #140A04;
}

/* Title stenciled in black on the plate. */
.plate-panel h2 {
    color: #140A04;
    background-color: #EA580C;
    display: inline-block;
    padding: 2px 12px;
}

/* Price list. */
.stencil {
    list-style: none;
}

/* One line on a painted strip so it reads over the plate. */
.stencil li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background-color: rgba(250, 247, 245, 0.92);
    padding: 8px 12px;
    margin-bottom: 6px;
    font-weight: 700;
}

/* Price in stencil type. */
.stencil li span:last-child {
    font-family: "Staatliches", Impact, sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #B54409;
    white-space: nowrap;
}

/* Note under the list. */
.bolt-note {
    background-color: rgba(250, 247, 245, 0.92);
    padding: 6px 12px;
    font-style: italic;
}

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

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

/* ----- Call (class) ----- */

/* Photo then form. */
.call {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 16px;
}

/* Loader photo. */
.call img {
    height: 260px;
    object-fit: cover;
}

/* Form box with an orange weld line on top. */
.call-form fieldset {
    border: 3px solid #140A04;
    border-top: 10px solid #EA580C;
    padding: 22px;
    background-color: #FFFFFF;
}

/* Form title. */
.call-form legend {
    font-family: "Staatliches", Impact, sans-serif;
    font-size: 1.7rem;
    padding: 0px 8px;
    background-color: #FFFFFF;
}

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

/* Inputs. */
.call-form input,
.call-form textarea {
    width: 100%;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #6B625C;
}

/* Submit spacing. */
.call-form button {
    margin-top: 18px;
}

/* ----- Welding table footer (class) ----- */

/* Thick steel table top with slots. */
.table {
    background-color: #374151;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 70px, #1F2937 70px, #1F2937 76px);
    border-top: 6px solid #6B7280;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
}

/* Footer text on a dark strip over the slots. */
.table p {
    display: inline-block;
    background-color: #140A04;
    padding: 2px 8px;
    margin: 2px 0px;
}

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

@media (min-width: 576px) {

    /* Two joints per row. */
    .joint {
        flex: 1 1 45%;
    }
}

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

@media (min-width: 768px) {

    /* Plate beside the photos. */
    .rates {
        flex-direction: row;
        align-items: center;
    }

    /* Plate column. */
    .plate-panel {
        flex: 1 1 55%;
    }

    /* Photo column. */
    .rate-photos {
        flex: 1 1 45%;
    }

    /* Photo beside the form. */
    .call {
        flex-direction: row;
    }

    /* Each half. */
    .call img,
    .call-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .call img {
        height: auto;
    }
}

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

@media (min-width: 992px) {

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

    /* Logo left, nav right on the beam. */
    .beam {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .beam-nav {
        display: block;
    }

    /* Nav in a row. */
    .beam-nav ul {
        flex-direction: row;
        gap: 26px;
        padding-top: 0px;
    }

    /* Words panel further in. */
    .sparks-text {
        margin: 0px 40px 60px 40px;
    }

    /* Four joints in a row. */
    .joint {
        flex: 1 1 22%;
    }

    /* Wider sections. */
    #joints,
    .rates,
    .call {
        padding-left: 40px;
        padding-right: 40px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    #joints,
    .rates,
    .call {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Hero panel lines up with the column. */
    .sparks-text {
        margin-left: calc((100% - 1140px) / 2);
    }
}
