/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Blue Hollow Pool & Spa (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, bright and splashy. The hero ends in a wavy
    edge made from a repeating radial-gradient (circles of the next
    section's color). The test strip is a tall rounded bar of colored pads
    beside a real table that says each reading in words. The pool year is
    an ordered list that becomes one colored bar at 768px, each season's
    width set with flex-grow by its number of months. Media queries at
    576px, 768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #06263A deep end   #0369A1 pool blue (darker than #0284C7 for text)
      #0F766E teal (darker than #14B8A6 for text)   #EEF9FF shallow
      #4A6475 muted
*/

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

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

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

/* Shallow-blue page with deep-end text. */
body {
    background-color: #EEF9FF;
    color: #06263A;
    font-family: Mulish, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

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

/* Bubbly rounded headings. */
h1,
h2,
h3 {
    font-family: "Baloo 2", sans-serif;
    font-weight: 800;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(2.1rem, 4.4vw, 3.2rem);
}

/* Pool-blue links. */
a {
    color: #0369A1;
    font-weight: 700;
}

/* Blue focus ring. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #0369A1;
    outline-offset: 3px;
}

/* Muted intro paragraph. */
.lead {
    color: #4A6475;
    max-width: 40rem;
    margin: 8px 0px 26px 0px;
}

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

/* Sticky white header. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #FFFFFF;
    border-bottom: 4px solid #14B8A6;
}

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

/* Logo. */
.logo {
    font-family: "Baloo 2", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0369A1;
}

/* Teal ladder icon. */
.logo i {
    color: #0F766E;
}

/* Second line. */
.logo small {
    font-size: 1rem;
    color: #0F766E;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Rounded menu button. */
.menu-icon {
    background-color: #0369A1;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 700;
    cursor: pointer;
}

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

/* Opened menu shows 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: #06263A;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #D8EEF8;
}

/* Blue on hover. */
.site-nav a:hover {
    color: #0369A1;
}

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

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

/* Backyard pool photo with a blue tint; parent for the wave. */
.hero {
    position: relative;
    background-image: linear-gradient(90deg, rgba(6, 38, 58, 0.85), rgba(3, 105, 161, 0.35)), url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 70px 20px 110px 20px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.2rem);
    max-width: 12ch;
    margin-bottom: 14px;
}

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

/* White rounded button with blue text. */
.button,
button {
    display: inline-block;
    background-color: #FFFFFF;
    color: #0369A1;
    border: none;
    border-radius: 999px;
    padding: 13px 28px;
    font-family: "Baloo 2", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0px 6px 0px #0F766E;
}

/* Button sinks a little on hover. */
.button:hover,
button:hover {
    transform: translateY(3px);
    box-shadow: 0px 3px 0px #0F766E;
}

/* Wavy bottom: a row of shallow-blue circles overlapping the hero edge. */
.wave {
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: 100%;
    height: 40px;
    background-image: radial-gradient(circle at 30px 40px, #EEF9FF 30px, transparent 31px);
    background-size: 60px 40px;
    background-repeat: repeat-x;
}

/* ----- Test strip (class) ----- */

/* Section spacing. */
.strip-section {
    padding: 56px 20px;
}

/* Strip and table stack on phones. */
.strip-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

/* The strip: a long white stick with pads, lying flat on phones. */
.strip {
    display: flex;
    gap: 10px;
    background-color: #FFFFFF;
    border: 1px solid #C8DCE6;
    border-radius: 6px;
    padding: 10px 40px 10px 10px;
    box-shadow: 0px 6px 16px rgba(6, 38, 58, 0.12);
}

/* One color pad. */
.pad {
    width: 42px;
    height: 42px;
    border-radius: 4px;
}

/* Chlorine pad: pale, which means low. */
.pad-chlorine {
    background-color: #F5E6F0;
}

/* pH pad: red-orange, which means high. */
.pad-ph {
    background-color: #E2553A;
}

/* Alkalinity pad: green, in range. */
.pad-alk {
    background-color: #3E9C6B;
}

/* Stabilizer pad: salmon, in range. */
.pad-cya {
    background-color: #E7A27D;
}

/* Reading table. */
.readings {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
}

/* Caption above the table. */
.readings caption {
    text-align: left;
    font-weight: 700;
    padding-bottom: 6px;
}

/* Cells. */
.readings th,
.readings td {
    padding: 9px 10px;
    text-align: left;
    border-bottom: 1px solid #D8EEF8;
    font-size: 0.92rem;
}

/* Header row. */
.readings thead th {
    background-color: #06263A;
    color: #FFFFFF;
}

/* A reading that needs action: bold orange-brown words. */
.low {
    color: #9A3412;
    font-weight: 700;
}

/* A good reading: bold teal words. */
.good {
    color: #0F766E;
    font-weight: 700;
}

/* ----- Pool year (ID and class) ----- */

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

/* The year list; seasons stack on phones. */
.year {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 24px 0px;
}

/* One season block. */
.year li {
    padding: 14px 16px;
    border-radius: 10px;
}

/* Season dates. */
.year strong {
    display: block;
    font-family: "Baloo 2", sans-serif;
    font-size: 1.3rem;
}

/* Winter: grey-blue. */
.yr-closed {
    background-color: #DDE6EC;
}

/* Opening: teal with white text. */
.yr-open {
    background-color: #0F766E;
    color: #FFFFFF;
}

/* Swim season: deep blue with white text. */
.yr-swim {
    background-color: #0369A1;
    color: #FFFFFF;
}

/* Closing: pale teal. */
.yr-close {
    background-color: #CCF1EC;
}

/* Two photos side by side. */
.season-photos {
    display: flex;
    gap: 12px;
}

/* Each photo half the row, rounded. */
.season-photos img {
    width: 50%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
}

/* ----- Plans (class) ----- */

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

/* Cards stack on phones. */
.plan-row {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* One plan card. */
.plan {
    position: relative;
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    border: 3px solid #D8EEF8;
}

/* Plan name. */
.plan h3 {
    font-size: 1.5rem;
}

/* Price. */
.price {
    font-family: "Baloo 2", sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: #0369A1;
}

/* "/ week" after the price. */
.price span {
    font-size: 1rem;
    color: #4A6475;
}

/* Plan features with water-drop bullets drawn as text. */
.plan ul {
    list-style: none;
}

/* Drop before each feature. */
.plan li::before {
    content: "\25CF  ";
    color: #14B8A6;
}

/* The most picked plan: blue border and a lift. */
.plan-full {
    border-color: #0369A1;
    box-shadow: 0px 14px 30px rgba(3, 105, 161, 0.18);
}

/* Ribbon pinned to the card's top edge. */
.ribbon {
    position: absolute;
    top: -14px;
    left: 24px;
    background-color: #0369A1;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 2px 12px;
}

/* ----- Hot tub (class) ----- */

/* Deep band, stacked on phones. */
.spa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background-color: #06263A;
    color: #FFFFFF;
    padding: 56px 20px;
    text-align: center;
}

/* Big round temperature readout with a warm glow. */
.temp {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 6px solid #14B8A6;
    box-shadow: 0px 0px 30px rgba(20, 184, 166, 0.45);
    font-family: "Baloo 2", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    padding-top: 36px;
    flex-shrink: 0;
}

/* The temperature number. */
.temp span {
    font-size: 3.6rem;
    line-height: 1;
}

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

/* Hot tub photo. */
.spa img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
}

/* ----- Booking (class) ----- */

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

/* Form fields wrap. */
.book-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 22px;
}

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

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

/* Inputs and selects. */
.field input,
.field select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #B9D7E6;
    border-radius: 12px;
    font-family: Mulish, sans-serif;
    font-size: 1rem;
    background-color: #FFFFFF;
}

/* Submit button in blue on the white form. */
.book-form button {
    background-color: #0369A1;
    color: #FFFFFF;
}

/* Phone line. */
.call {
    margin-top: 14px;
    font-weight: 700;
}

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

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

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

@media (min-width: 576px) {

    /* Two fields per row. */
    .field {
        flex: 1 1 40%;
    }

    /* Taller season photos. */
    .season-photos img {
        height: 240px;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .strip-section,
    #season,
    .plans,
    .spa,
    .book {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Strip stands up beside the table. */
    .strip-wrap {
        flex-direction: row;
    }

    /* Vertical strip. */
    .strip {
        flex-direction: column;
        padding: 10px 10px 60px 10px;
    }

    /* The year becomes one long bar; flex-grow matches the months. */
    .year {
        flex-direction: row;
        gap: 0px;
    }

    /* Rounded ends only on the outside. */
    .year li {
        border-radius: 0px;
    }

    /* Winter, 5 months. */
    .yr-closed {
        flex: 5 1 0px;
        border-radius: 10px 0px 0px 10px;
    }

    /* Opening, 2 months. */
    .yr-open {
        flex: 2 1 0px;
    }

    /* Swim, 3 months. */
    .yr-swim {
        flex: 3 1 0px;
    }

    /* Closing, 2 months. */
    .yr-close {
        flex: 2 1 0px;
        border-radius: 0px 10px 10px 0px;
    }

    /* Plans in a row. */
    .plan-row {
        flex-direction: row;
        align-items: stretch;
    }

    /* Equal plans. */
    .plan {
        flex: 1 1 30%;
    }

    /* Hot tub: dial, text and photo in a row. */
    .spa {
        flex-direction: row;
        text-align: left;
        gap: 36px;
    }

    /* Text column. */
    .spa-text {
        flex: 1 1 40%;
    }

    /* Photo column. */
    .spa img {
        width: 38%;
        height: 260px;
    }
}

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

@media (min-width: 992px) {

    /* 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: 24px;
        padding-top: 0px;
    }

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

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

    /* Booking: heading left, form right. */
    .book {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        column-gap: 40px;
    }

    /* Heading column. */
    .book h2 {
        flex: 0 0 280px;
    }

    /* Form column. */
    .book-form {
        flex: 1 1 500px;
        margin-top: 0px;
    }

    /* Phone line on its own row. */
    .call {
        flex: 1 1 100%;
    }
}

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

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .strip-section,
    #season,
    .plans,
    .spa,
    .book {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
