/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Ozark Septic & Drain (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, country-road feel. Under the hero is a
    strip of asphalt with a dashed gold center line from a
    repeating-linear-gradient. The tank section is a cutaway: the tank is
    a rounded box in a flex column, and the scum, liquid and sludge layers
    get their thickness from flex-grow values (1, 4, 2). Warning signs are
    yellow diamonds made by rotating a square 45 degrees and turning the
    icon back. Route days are styled like mile markers. Media queries at
    576px, 768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #0F1F14 field-dark text   #166534 green (7.1:1 on white)
      #CA8A04 gold (backgrounds with dark text only, 6.8:1)
      #F4F7F1 pale   #4D5A4F muted
*/

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

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

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

/* Pale green page, dark text. */
body {
    background-color: #F4F7F1;
    color: #0F1F14;
    font-family: Roboto, sans-serif;
    font-size: 1.02rem;
    line-height: 1.6;
}

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

/* Slab headings. */
h1,
h2,
h3 {
    font-family: "Roboto Slab", serif;
    font-weight: 800;
    line-height: 1.12;
}

/* Section titles. */
h2 {
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    margin-bottom: 8px;
}

/* Green links. */
a {
    color: #166534;
    font-weight: 500;
}

/* Gold focus ring with a dark edge so it shows on both backgrounds. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #CA8A04;
    outline-offset: 3px;
}

/* Lead text. */
.lead {
    color: #4D5A4F;
    max-width: 42rem;
    margin-bottom: 26px;
}

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

/* Sticky green header. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #166534;
    color: #FFFFFF;
}

/* Logo and menu row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Slab logo. */
.logo {
    font-family: "Roboto Slab", serif;
    font-weight: 800;
    font-size: 1.35rem;
}

/* Gold truck icon (on green, decorative). */
.logo i {
    color: #FACC15;
    margin-right: 4px;
}

/* Smaller second part of the name. */
.logo small {
    font-weight: 600;
    font-size: 1rem;
}

/* Hidden menu checkbox, still keyboard reachable. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    background-color: #CA8A04;
    color: #0F1F14;
    font-weight: 500;
    padding: 5px 12px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Checked menu shows the 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 #1F7A43;
}

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

/* Concept notice. */
.concept-note {
    background-color: #0F4A26;
    font-size: 0.8rem;
    text-align: center;
    padding: 3px 16px;
}

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

/* Stacked hero with the road at the bottom. */
.hero {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
}

/* Hero text area. */
.hero-text {
    padding: 44px 20px 34px 20px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    margin-bottom: 14px;
}

/* Second line in green. */
.hero h1 span {
    display: block;
    color: #166534;
}

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

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

/* Asphalt strip with a dashed gold center line. */
.road {
    height: 30px;
    background-color: #2B2B2B;
    background-image: repeating-linear-gradient(90deg, #CA8A04 0px, #CA8A04 34px, transparent 34px, transparent 60px);
    background-size: 100% 4px;
    background-position: 0px 13px;
    background-repeat: no-repeat;
}

/* Gold button with dark text. */
.button,
button {
    display: inline-block;
    background-color: #CA8A04;
    color: #0F1F14;
    border: 2px solid #CA8A04;
    padding: 11px 20px;
    margin: 0px 8px 8px 0px;
    font-family: "Roboto Slab", serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* Green on hover. */
.button:hover,
button:hover {
    background-color: #166534;
    border-color: #166534;
    color: #FFFFFF;
}

/* Outline button. */
.button-outline {
    background-color: transparent;
    border-color: #166534;
    color: #166534;
}

/* ----- Tank cutaway (ID and class) ----- */

/* Section spacing. */
#tank {
    padding: 56px 20px;
}

/* Drawing and notes stack on phones. */
.tank-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Cutaway frame. */
.cutaway {
    width: 100%;
    max-width: 460px;
}

/* Brown dirt above the tank. */
.dirt {
    height: 40px;
    background-color: #7C5A3A;
    background-image: radial-gradient(#5E4329 2px, transparent 2.5px);
    background-size: 12px 12px;
    border-top: 8px solid #4D7C0F;
}

/* The tank: a rounded box whose children stack and grow. */
.tank-body {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 240px;
    margin: 0px 20px;
    border: 6px solid #4B5563;
    border-top: none;
    border-radius: 0px 0px 40px 40px;
    overflow: hidden;
    background-color: #7C5A3A;
}

/* Every layer is a labeled band. */
.layer {
    display: flex;
    align-items: center;
    padding-left: 16px;
    font-family: "Roboto Slab", serif;
    font-weight: 600;
}

/* Scum is the thin top layer. */
.scum {
    flex-grow: 1;
    background-color: #D9C27A;
    color: #0F1F14;
}

/* Liquid is the thick middle. */
.liquid {
    flex-grow: 4;
    background-color: #6B8E9E;
    color: #FFFFFF;
    background-image: repeating-linear-gradient(0deg, transparent 0px, transparent 14px, rgba(255, 255, 255, 0.12) 14px, rgba(255, 255, 255, 0.12) 16px);
}

/* Sludge settles at the bottom. */
.sludge {
    flex-grow: 2;
    background-color: #3F2E1E;
    color: #FFFFFF;
}

/* A pipe through the tank wall. */
.pipe {
    position: absolute;
    top: 40px;
    width: 34px;
    height: 16px;
    background-color: #4B5563;
}

/* Inlet on the left. */
.pipe-in {
    left: 0px;
}

/* Outlet on the right, a little lower. */
.pipe-out {
    right: 0px;
    top: 56px;
}

/* Notes as a definition list. */
.layer-notes div {
    padding: 10px 0px;
    border-bottom: 1px solid #D3DCCF;
}

/* Layer name. */
.layer-notes dt {
    font-family: "Roboto Slab", serif;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Small color key square. */
.key {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -2px;
    border: 1px solid #0F1F14;
}

/* Scum key. */
.key-scum {
    background-color: #D9C27A;
}

/* Liquid key. */
.key-liquid {
    background-color: #6B8E9E;
}

/* Sludge key. */
.key-sludge {
    background-color: #3F2E1E;
}

/* ----- How often (class) ----- */

/* White band. */
.often {
    background-color: #FFFFFF;
    padding: 56px 20px;
}

/* Years table. */
.years {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

/* Caption. */
.years caption {
    text-align: left;
    color: #4D5A4F;
    padding-bottom: 8px;
}

/* Cells. */
.years th,
.years td {
    padding: 12px 6px;
    border: 1px solid #D3DCCF;
}

/* Column headers. */
.years thead th {
    background-color: #166534;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Row headers on the left. */
.years tbody th {
    background-color: #F4F7F1;
    font-family: "Roboto Slab", serif;
    white-space: nowrap;
}

/* Years are big numbers. */
.years td {
    font-family: "Roboto Slab", serif;
    font-weight: 800;
    font-size: 1.4rem;
}

/* Hovered cell lights up gold. */
.years td:hover {
    background-color: #FDE68A;
}

/* The every-year cell is marked gold with a word added after the number. */
.years td.soon {
    background-color: #FEF3C7;
}

/* Word after the 1 so color is not the only signal. */
.years td.soon::after {
    content: " (every year)";
    font-family: Roboto, sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
}

/* Note under the table. */
.note {
    margin-top: 16px;
    color: #4D5A4F;
}

/* Note icon in green. */
.note i {
    color: #166534;
}

/* ----- Warning signs (class) ----- */

/* Section spacing. */
.signs {
    padding: 56px 20px;
}

/* Signs list. */
.sign-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 24px 0px 30px 0px;
}

/* Each sign with its text beside it. */
.sign-list li {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 500;
}

/* Yellow diamond: a square turned 45 degrees. */
.diamond {
    flex: 0 0 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FACC15;
    border: 3px solid #0F1F14;
    border-radius: 6px;
    transform: rotate(45deg);
    margin: 6px;
}

/* Icon turned back upright. */
.diamond i {
    transform: rotate(-45deg);
    font-size: 1.3rem;
    color: #0F1F14;
}

/* Two photos stack on phones. */
.sign-photos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Photo crop. */
.sign-photos img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ----- Route days (class) ----- */

/* Dark band, text and form stack on phones. */
.route {
    display: flex;
    flex-direction: column;
    gap: 34px;
    background-color: #0F1F14;
    color: #F4F7F1;
    padding: 56px 20px;
}

/* Mile marker list. */
.markers {
    list-style: none;
    margin-top: 22px;
}

/* Each town row. */
.markers li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0px;
}

/* Green mile-marker sign with the day. */
.markers span {
    flex: 0 0 58px;
    background-color: #166534;
    border: 2px solid #FFFFFF;
    border-radius: 4px;
    color: #FFFFFF;
    text-align: center;
    font-family: "Roboto Slab", serif;
    font-weight: 800;
    padding: 4px 0px;
}

/* Form as a light card. */
.route-form {
    background-color: #F4F7F1;
    color: #0F1F14;
    padding: 24px 20px;
}

/* Form title. */
.route-form h3 {
    font-size: 1.4rem;
}

/* Labels above fields. */
.route-form label {
    display: block;
    margin-top: 12px;
    font-weight: 500;
}

/* Fields. */
.route-form input,
.route-form select {
    width: 100%;
    font: inherit;
    padding: 9px 10px;
    border: 2px solid #8A9A8C;
    margin-top: 4px;
}

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

/* Road photo at the bottom of the card. */
.route-form img {
    margin-top: 14px;
    height: 140px;
    width: 100%;
    object-fit: cover;
}

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

/* Footer. */
.site-footer {
    background-color: #166534;
    color: #FFFFFF;
    font-size: 0.85rem;
    text-align: center;
    padding: 24px 16px;
}

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

@media (min-width: 576px) {

    /* Two warning signs per row. */
    .sign-list li {
        flex: 1 1 40%;
    }

    /* Photos side by side. */
    .sign-photos {
        flex-direction: row;
    }

    /* Each photo half. */
    .sign-photos img {
        width: 50%;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .hero-text,
    #tank,
    .often,
    .signs,
    .route {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Cutaway beside the notes. */
    .tank-wrap {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }

    /* Drawing column. */
    .cutaway {
        flex: 0 0 380px;
    }

    /* Notes column. */
    .layer-notes {
        flex: 1 1 auto;
    }

    /* Route text beside the form. */
    .route {
        flex-direction: row;
        gap: 50px;
    }

    /* Text column. */
    .route-text {
        flex: 1 1 55%;
    }

    /* Form column. */
    .route-form {
        flex: 1 1 45%;
    }
}

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

@media (min-width: 992px) {

    /* No Menu button. */
    .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;
    }

    /* Hero text and photo side by side, the road wraps underneath. */
    .hero {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Text column. */
    .hero-text {
        flex: 1 1 50%;
        align-self: center;
    }

    /* Photo column. */
    .hero > img {
        width: 50%;
        height: 520px;
    }

    /* Road is a full row under both. */
    .road {
        flex: 1 1 100%;
    }

    /* Four warning signs in a row. */
    .sign-list li {
        flex: 1 1 20%;
        flex-direction: column;
        text-align: center;
    }

    /* Bigger diamonds. */
    .diamond {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
        margin: 10px;
    }
}

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

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    #tank,
    .often,
    .signs,
    .route {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Hero text starts at the content edge. */
    .hero-text {
        padding-left: calc((100% - 1140px) / 2);
    }

    /* Bigger cutaway. */
    .cutaway {
        flex: 0 0 460px;
    }
}
