/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Pipeline Plumbing Co. (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, bold and urgent. Navy and safety yellow,
    condensed headings. The symptom finder uses :target: each link jumps to
    a panel's id and that panel lights up yellow. Water heater age is shown
    with <meter> elements. On phones a call bar is fixed to the bottom of
    the screen (position: fixed) and hidden again at 992px. Media queries
    at 576px, 768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #082032 navy   #0B5FA5 pipe blue   #FFB703 safety yellow (only ever
      behind navy text)   #F1F6FB light   #4B5D70 muted   #9A3412 rust
*/

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

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

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

/* Light blue-grey page with navy text. Bottom padding leaves room for
   the fixed call bar on phones. */
body {
    background-color: #F1F6FB;
    color: #082032;
    font-family: Barlow, sans-serif;
    font-size: 1.05rem;
    line-height: 1.55;
    padding-bottom: 64px;
}

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

/* Condensed, heavy, uppercase headings. */
h1,
h2,
h3 {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
}

/* Section titles. */
h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

/* Blue links. */
a {
    color: #0B5FA5;
}

/* Yellow and navy focus ring that shows on light and dark. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #FFB703;
    box-shadow: 0px 0px 0px 6px #082032;
}

/* Muted intro text. */
.lead {
    color: #4B5D70;
    max-width: 38rem;
    margin: 10px 0px 26px 0px;
}

/* Small notes. */
.small {
    font-size: 0.9rem;
    color: #4B5D70;
}

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

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

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

/* Condensed logo. */
.logo {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Yellow faucet icon and second word. */
.logo i,
.logo span {
    color: #FFB703;
}

/* Menu checkbox hidden with opacity so it still takes keyboard focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Yellow Menu button. */
.menu-icon {
    background-color: #FFB703;
    color: #082032;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 3px;
    cursor: pointer;
}

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

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

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

/* Stacked white links on phones. */
.site-nav a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    padding: 9px 0px;
    border-top: 1px solid #1D3A52;
}

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

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

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

/* Photo background with a navy gradient laid over it for contrast. */
.hero {
    background-image: linear-gradient(90deg, rgba(8, 32, 50, 0.95) 0%, rgba(8, 32, 50, 0.8) 60%, rgba(8, 32, 50, 0.45) 100%), url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 56px 20px;
}

/* Keeps the hero text a readable width. */
.hero-inner {
    max-width: 640px;
}

/* Small badge above the headline. */
.badge {
    display: inline-block;
    border: 1px solid #FFB703;
    color: #FFB703;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 3px 10px;
    margin-bottom: 16px;
}

/* Big headline. */
.hero h1 {
    font-size: clamp(2.6rem, 8vw, 5rem);
    margin-bottom: 16px;
}

/* Yellow second line of the headline. */
.hero h1 span {
    display: block;
    color: #FFB703;
}

/* Hero paragraph. */
.hero-sub {
    font-size: 1.15rem;
    margin-bottom: 24px;
}

/* Emergency box with a yellow edge. */
.emergency {
    background-color: rgba(8, 32, 50, 0.85);
    border-left: 6px solid #FFB703;
    padding: 16px 18px;
}

/* Space under the emergency text. */
.emergency p {
    margin-bottom: 12px;
}

/* Yellow button with navy text. */
.button,
button {
    display: inline-block;
    background-color: #FFB703;
    color: #082032;
    border: none;
    border-radius: 3px;
    padding: 12px 22px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

/* Lighter yellow on hover. */
.button:hover,
button:hover {
    background-color: #FFD166;
}

/* ----- Symptom finder (class, :target) ----- */

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

/* Symptom links wrap as chips. */
.symptom-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

/* One chip link. */
.symptom-links a {
    display: inline-block;
    background-color: #FFFFFF;
    border: 2px solid #0B5FA5;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
    text-decoration: none;
}

/* Chip turns blue on hover. */
.symptom-links a:hover {
    background-color: #0B5FA5;
    color: #FFFFFF;
}

/* Panels stack on phones. */
.symptoms {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* One panel. scroll-margin-top keeps it below the sticky header when
   a link jumps to it. */
.symptom {
    background-color: #FFFFFF;
    border: 2px solid #D3E0EC;
    border-radius: 6px;
    padding: 18px;
    scroll-margin-top: 120px;
}

/* Panel title. */
.symptom h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

/* The panel you picked turns yellow with a thick navy border. */
.symptom:target {
    background-color: #FFF3CC;
    border-color: #082032;
    box-shadow: 0px 0px 0px 3px #FFB703;
}

/* The "how soon" line. */
.urgency {
    margin-top: 10px;
    font-weight: 600;
}

/* The urgency word gets a colored pill (the word itself carries the meaning). */
.urgency strong {
    display: inline-block;
    border-radius: 3px;
    padding: 0px 8px;
    color: #FFFFFF;
}

/* Low urgency: blue. */
.urgency-low strong {
    background-color: #0B5FA5;
}

/* Medium urgency: dark rust. */
.urgency-mid strong {
    background-color: #9A3412;
}

/* High urgency: navy on yellow. */
.urgency-high strong {
    background-color: #FFB703;
    color: #082032;
}

/* ----- Water heater (ID and class) ----- */

/* White band, photo then text on phones. */
#heater {
    display: flex;
    flex-direction: column;
    gap: 26px;
    background-color: #FFFFFF;
    padding: 56px 20px;
}

/* Photo framed with a thick pipe-blue border. */
.heater-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 6px solid #0B5FA5;
}

/* Space under the heading. */
.heater-text h2 {
    margin-bottom: 12px;
}

/* Meter block. */
.meters {
    margin: 20px 0px;
}

/* Each meter label on its own line. */
.meters label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Wide, tall meters. */
meter {
    width: 100%;
    height: 26px;
}

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

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

/* Price list rows. */
.price-list {
    display: flex;
    flex-direction: column;
}

/* One price row: name left, price right, with a dotted leader line. */
.price-list div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0px;
    border-bottom: 2px dotted #9FB5CA;
}

/* Service name. */
.price-list dt {
    font-weight: 600;
}

/* Price in condensed bold. */
.price-list dd {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0B5FA5;
    white-space: nowrap;
}

/* Pipes photo with a caption. */
.pipes-photo {
    margin-top: 26px;
}

/* Caption under the pipes photo. */
.pipes-photo figcaption {
    font-size: 0.9rem;
    color: #4B5D70;
    margin-top: 6px;
}

/* ----- Request form (class) ----- */

/* Navy band for the form. */
.request {
    background-color: #082032;
    color: #FFFFFF;
    padding: 56px 20px;
}

/* Space under the heading. */
.request h2 {
    margin-bottom: 20px;
}

/* Form fields wrap with flexbox. */
.request-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* One field takes the full row on phones. */
.field {
    flex: 1 1 100%;
}

/* Field labels. */
.field label,
.field legend {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Text inputs on navy. */
.request-form input[type="text"],
.request-form input[type="tel"],
.request-form textarea {
    width: 100%;
    padding: 11px;
    border: 2px solid #3E6585;
    border-radius: 3px;
    background-color: #FFFFFF;
    font-family: Barlow, sans-serif;
    font-size: 1rem;
}

/* "How soon" radio group without a box border. */
.when {
    border: none;
}

/* Radio options sit in a row. */
.when label {
    display: inline-block;
    margin-right: 18px;
    font-weight: 400;
}

/* Yellow radio buttons. */
.when input {
    accent-color: #FFB703;
    width: 18px;
    height: 18px;
}

/* Tools photo under the form. */
.tools {
    margin-top: 28px;
    width: 100%;
    height: 220px;
    object-fit: cover;
    opacity: 0.85;
}

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

/* Footer on the light page. */
.site-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #4B5D70;
    padding: 22px 20px;
}

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

/* Fixed to the bottom of the screen on phones. */
.call-bar {
    position: fixed;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 30;
}

/* The bar is one big yellow link. */
.call-bar a {
    display: block;
    background-color: #FFB703;
    color: #082032;
    text-align: center;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px;
}

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

@media (min-width: 576px) {

    /* Name and phone share a row. */
    .field {
        flex: 1 1 40%;
    }

    /* Message and radio group stay full width. */
    .field-wide {
        flex: 1 1 100%;
    }

    /* Symptom panels in two columns. */
    .symptoms {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Each panel about half the row. */
    .symptom {
        flex: 1 1 45%;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .sounds,
    #heater,
    #prices,
    .request {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Taller hero. */
    .hero {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    /* Prices in two columns of rows. */
    .price-list {
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 40px;
    }

    /* Each row takes half. */
    .price-list div {
        flex: 1 1 40%;
    }
}

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

@media (min-width: 992px) {

    /* No bottom padding needed once the call bar is gone. */
    body {
        padding-bottom: 0px;
    }

    /* The call bar is hidden on desktop, where the number is in the hero. */
    .call-bar {
        display: none;
    }

    /* No Menu button on desktop. */
    .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: 22px;
        padding-top: 0px;
    }

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
        padding: 4px 0px;
    }

    /* Panels in three columns. */
    .symptom {
        flex: 1 1 30%;
    }

    /* Water heater photo and text side by side. */
    #heater {
        flex-direction: row;
        align-items: center;
        gap: 48px;
    }

    /* Each half. */
    .heater-photo,
    .heater-text {
        flex: 1 1 50%;
    }

    /* Taller photo. */
    .heater-photo img {
        height: 440px;
    }

    /* Heading on its own row, then the form and photo side by side. */
    .request {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        column-gap: 40px;
    }

    /* Heading takes the full first row. */
    .request h2 {
        flex: 1 1 100%;
    }

    /* Form takes most of the second row. */
    .request-form {
        flex: 1 1 55%;
    }

    /* Photo beside the form. */
    .tools {
        flex: 1 1 35%;
        width: auto;
        height: 340px;
        margin-top: 0px;
    }
}

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

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .sounds,
    #heater,
    #prices,
    .request {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Five symptom panels: three then two. Slightly smaller gap. */
    .symptoms {
        gap: 18px;
    }
}
