/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Deep Spring Well Drilling (fictional business)
    Filename:   styles.css

    Theme: the well house. The header is a horizontal steel pipe (a
    rounded metallic gradient) with bolted flanges at each end, and the
    nav links each have a red valve wheel beside them (spokes from a
    repeating-conic-gradient). The hero photo has a depth gauge down its
    side marked every 100 feet. The signature is a driller's log typed
    on a carbon-copy form, the kind every Missouri well gets. Water
    testing shows a test strip of colored pads with what each reading
    means. "No water?" is a red emergency tag with a brass grommet, and
    the footer has water ripples from repeating radial gradients.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #0C1530 text on #F4F7FD page (16.9:1)
      #1E40AF blue text (8.1:1 on the page)
      #FFFFFF on #1E40AF buttons (8.7:1)
      #FFFFFF on #B91C1C emergency tag (6.5:1)
      #0C1530 on #E5E7EB steel (14.4:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Pale water-blue page. */
body {
    background-color: #F4F7FD;
    color: #0C1530;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Slab headings. */
h1,
h2 {
    font-family: "Zilla Slab", Georgia, serif;
    font-weight: 700;
    line-height: 1.08;
}

/* Section titles. */
h2 {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    color: #1E40AF;
    margin-bottom: 10px;
}

/* Links in blue. */
a {
    color: #1E40AF;
}

/* Green outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.tablewrap:focus-visible,
.menu-check:focus-visible + .pipe-row .menu-icon {
    outline: 3px solid #477209;
    outline-offset: 3px;
}

/* ----- Pipe header (class) ----- */

/* Steel pipe: rounded shading top to bottom, flanges at each end. */
.pipe {
    background-image: linear-gradient(180deg, #9CA3AF 0%, #F3F4F6 30%, #D1D5DB 60%, #6B7280 100%);
    padding: 12px 34px;
    border-left: 16px solid #4B5563;
    border-right: 16px solid #4B5563;
    position: relative;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Name and menu in a row. */
.pipe-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Name stamped on the pipe. */
.flange-name {
    font-family: "Zilla Slab", Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    color: #0C1530;
}

/* Second line. */
.flange-name span {
    display: block;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Menu button. */
.menu-icon {
    background-color: #1E40AF;
    color: #FFFFFF;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Valve nav hidden on phones until opened. */
.valves {
    display: none;
}

/* Open menu shows the valves. */
.menu-check:checked ~ .valves {
    display: block;
}

/* Valve list. */
.valves ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 10px;
}

/* One valve link: wheel then words. */
.valves a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0C1530;
    font-weight: 700;
    text-decoration: none;
}

/* Red valve wheel with spokes. */
.wheel {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 4px solid #B91C1C;
    background-image: radial-gradient(circle, #B91C1C 0px, #B91C1C 3px, transparent 4px), repeating-conic-gradient(#B91C1C 0deg 12deg, transparent 12deg 72deg);
}

/* Wheel turns on hover. */
.valves a:hover .wheel {
    transform: rotate(72deg);
}

/* Underline on hover. */
.valves a:hover {
    text-decoration: underline;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Hero (class) ----- */

/* Rig then text on phones. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 16px 50px 16px;
}

/* Rig photo with a gauge beside it. */
.rig {
    display: flex;
}

/* Rig photo. */
.rig img {
    flex: 1 1 auto;
    width: 80%;
    height: 300px;
    object-fit: cover;
}

/* Depth gauge: a ruler with a tick at each 100 feet. */
.gauge {
    list-style: none;
    flex: 0 0 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #0C1530;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 4px;
    background-image: repeating-linear-gradient(180deg, #6B7280 0px, #6B7280 1px, transparent 1px, transparent 10px);
    background-size: 12px 100%;
    background-repeat: no-repeat;
}

/* Gauge numbers pushed right of the ticks. */
.gauge li {
    padding-left: 16px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.hero-text p {
    max-width: 32rem;
    margin-bottom: 20px;
}

/* Blue button with a pipe-fitting collar. */
.valve-btn,
button {
    display: inline-block;
    background-color: #1E40AF;
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-left: 8px solid #9CA3AF;
    border-right: 8px solid #9CA3AF;
    padding: 12px 22px;
    cursor: pointer;
}

/* Button hover. */
.valve-btn:hover,
button:hover {
    background-color: #0C1530;
}

/* ----- Driller's log (ID) ----- */

/* Blue tint band; form then pump photo. */
#log {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #E3E8F7;
    padding: 56px 16px;
}

/* Carbon-copy form: pale yellow, faint blue carbon smudges. */
.carbon {
    background-color: #FFFBE6;
    background-image: radial-gradient(ellipse 120px 30px at 80% 20%, rgba(30, 64, 175, 0.06), transparent), radial-gradient(ellipse 100px 40px at 20% 80%, rgba(30, 64, 175, 0.05), transparent);
    border: 1px solid #C7CDD9;
    padding: 20px 18px;
    font-family: "Courier New", Courier, monospace;
}

/* Form header line. */
.form-head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid #0C1530;
    padding-bottom: 4px;
    margin-bottom: 10px;
}

/* Scroll wrapper. */
.tablewrap {
    overflow-x: auto;
}

/* Log table. */
.carbon table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

/* Caption. */
.carbon caption {
    text-align: left;
    font-weight: 700;
    padding-bottom: 4px;
}

/* Cells with printed form lines. */
.carbon th,
.carbon td {
    text-align: left;
    border: 1px solid #94A3B8;
    padding: 6px 8px;
}

/* Header row printed in blue. */
.carbon thead th {
    font-family: "Roboto", Arial, sans-serif;
    color: #1E40AF;
    background-color: #EEF2FF;
}

/* Driller's signature line. */
.sign {
    margin-top: 14px;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 0.85rem;
}

/* Signature in italic script-like type. */
.sign span {
    font-family: "Zilla Slab", Georgia, serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #1E40AF;
    border-bottom: 1px solid #0C1530;
    padding: 0px 20px;
}

/* Pump photo. */
.pump {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* ----- Test strip (class) ----- */

/* Section spacing. */
.test {
    padding: 56px 16px;
}

/* Intro line. */
.intro {
    max-width: 44rem;
    margin-bottom: 20px;
}

/* White plastic strip holding the pads. */
.strip-wrap {
    background-color: #FFFFFF;
    border: 2px solid #C7CDD9;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 24px;
}

/* Pads stack on phones. */
.strip {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* One pad: color square, reading, meaning. */
.pad {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 12px;
    font-size: 0.9rem;
}

/* Reading. */
.pad strong {
    flex: 0 0 90px;
}

/* Colored square pad. */
.swatch {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    border: 2px solid #0C1530;
    background-color: var(--pad);
}

/* pH pad green. */
.p-ph {
    --pad: #84CC16;
}

/* Hardness pad purple. */
.p-hard {
    --pad: #A855F7;
}

/* Iron pad pale. */
.p-iron {
    --pad: #FEF3C7;
}

/* Nitrate pad white. */
.p-nit {
    --pad: #FFFFFF;
}

/* Bacteria pad: striped, lab only. */
.p-bact {
    --pad: #E5E7EB;
    background-image: repeating-linear-gradient(45deg, transparent 0px, transparent 4px, #94A3B8 4px, #94A3B8 6px);
}

/* Bacteria swatch shows the stripes too. */
.p-bact .swatch {
    background-image: repeating-linear-gradient(45deg, transparent 0px, transparent 4px, #94A3B8 4px, #94A3B8 6px);
}

/* Bacteria row itself stays plain. */
.p-bact {
    background-image: none;
}

/* Two photos. */
.test-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.test-photos img {
    width: 50%;
    height: 200px;
    object-fit: cover;
}

/* ----- Emergency call (class) ----- */

/* Dark band; tag then signs. */
.call {
    display: flex;
    flex-direction: column;
    gap: 26px;
    background-color: #0C1530;
    color: #FFFFFF;
    padding: 56px 16px 60px 16px;
}

/* Red tag with a notched top and a grommet. */
.tag {
    position: relative;
    background-color: #B91C1C;
    padding: 54px 22px 24px 22px;
    clip-path: polygon(14% 0%, 86% 0%, 100% 12%, 100% 100%, 0% 100%, 0% 12%);
    max-width: 460px;
}

/* Brass grommet. */
.grommet {
    position: absolute;
    top: 16px;
    left: 50%;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    border-radius: 50%;
    background-color: #0C1530;
    box-shadow: 0px 0px 0px 5px #CA8A04;
}

/* Tag title in white. */
.tag h2 {
    color: #FFFFFF;
}

/* Big phone number. */
.big {
    font-family: "Zilla Slab", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 7vw, 2.8rem);
    margin-bottom: 8px;
}

/* Phone link white. */
.big a {
    color: #FFFFFF;
}

/* Warning signs list. */
.signs {
    list-style: none;
}

/* One sign with a water-drop bullet. */
.signs li {
    position: relative;
    padding: 8px 0px 8px 28px;
    border-bottom: 1px solid #1E3A8A;
}

/* Water drop bullet. */
.signs li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 15px;
    width: 12px;
    height: 12px;
    background-color: #60A5FA;
    border-radius: 0px 50% 50% 50%;
    transform: rotate(45deg);
}

/* ----- Ripple footer (class) ----- */

/* Rings spreading on water. */
.ripples {
    background-color: #1E40AF;
    background-image: repeating-radial-gradient(circle at 50% 120%, transparent 0px, transparent 14px, rgba(255, 255, 255, 0.12) 14px, rgba(255, 255, 255, 0.12) 16px);
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller rig photo. */
    .rig img {
        height: 380px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Pads side by side on the strip. */
    .strip {
        flex-direction: row;
    }

    /* Each pad stacks its swatch over its words. */
    .pad {
        flex: 1 1 20%;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Reading full width under the pad. */
    .pad strong {
        flex: 0 0 auto;
    }

    /* Tag beside the signs. */
    .call {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .tag,
    .signs {
        flex: 1 1 50%;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Name left, valves right. */
    .pipe {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Valves always shown. */
    .valves {
        display: block;
    }

    /* Valves in a row. */
    .valves ul {
        padding-top: 0px;
        gap: 22px;
    }

    /* Rig beside the text. */
    .hero {
        flex-direction: row;
        align-items: center;
        padding: 40px;
    }

    /* Rig column. */
    .rig {
        flex: 1 1 50%;
    }

    /* Taller rig photo. */
    .rig img {
        height: 480px;
    }

    /* Text column. */
    .hero-text {
        flex: 1 1 45%;
    }

    /* Log beside the pump photo. */
    #log {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Log column. */
    .carbon {
        flex: 1 1 65%;
        min-width: 0px;
    }

    /* Photo column. */
    .pump {
        width: 30%;
        height: 420px;
    }

    /* Wider test section. */
    .test {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .hero,
    #log,
    .test,
    .call {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
