/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Bubble Bay Car Wash (fictional business)
    Filename:   styles.css

    Theme: foam and bubbles. The header and hero are one deep blue
    panel; nav links are soap bubbles with a white shine, and a row of
    bubbles rises behind the headline on a @keyframes loop (they stay
    still for reduced motion). The hero ends in a curved bottom edge.
    Washes are three entrance signs with LED prices, then a check table
    of which tunnel steps each wash turns on. The Unlimited club shows
    the actual windshield sticker, barcode and all, on a tinted
    windshield. The hours band has a thermometer marked at 25 degrees.
    The footer is a wave of suds.

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

    Colors (WebAIM contrast checked, AA):
      #0B1530 text on #F2F7FF page (16.4:1)
      #FFFFFF on #1E3A8A deep blue (10.4:1)
      #225CD9 blue text (5.6:1 on the page)
      #0B1530 on #EC4899 pink buttons (5.0:1)
      #FDE047 LED digits on #0B1530 (14.3:1)
*/

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

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

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

/* Very pale blue page. */
body {
    background-color: #F2F7FF;
    color: #0B1530;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

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

/* Rounded bubbly headings. */
h1,
h2,
h3 {
    font-family: "Fredoka", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.08;
}

/* Section titles. */
h2 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    margin-bottom: 14px;
}

/* Links in blue. */
a {
    color: #225CD9;
}

/* Pink outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.tablewrap:focus-visible,
.menu-check:focus-visible + .foam-row .menu-icon {
    outline: 3px solid #EC4899;
    outline-offset: 3px;
}

/* ----- Foam header (class) ----- */

/* Deep blue header that runs into the hero. */
.foam {
    background-color: #1E3A8A;
    color: #FFFFFF;
    padding: 10px 18px 0px 18px;
}

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

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

/* Logo with a bubble mark. */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Fredoka", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

/* Second logo line. */
.logo small {
    display: block;
    font-size: 0.6em;
    font-weight: 500;
    color: #F9A8D4;
}

/* A soap bubble: clear circle with a shine spot. */
.bubble-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #BFDBFE;
    background-image: radial-gradient(circle 6px at 30% 30%, #FFFFFF 96%, transparent 100%), radial-gradient(circle, rgba(236, 72, 153, 0.25), rgba(96, 165, 250, 0.35));
}

/* Menu button as a pink bubble. */
.menu-icon {
    background-color: #EC4899;
    color: #0B1530;
    font-weight: 600;
    border-radius: 999px;
    padding: 5px 14px;
    cursor: pointer;
}

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

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

/* Bubble links wrap. */
.bubbles-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0px 4px 0px;
}

/* One bubble link with a shine. */
.bubbles-nav a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    border: 2px solid #BFDBFE;
    background-image: radial-gradient(circle 5px at 18% 30%, rgba(255, 255, 255, 0.9) 96%, transparent 100%);
}

/* Bubble hover fills pink. */
.bubbles-nav a:hover {
    background-color: #EC4899;
    color: #0B1530;
}

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

/* Deep blue panel with a curved bottom. */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #1E3A8A;
    color: #FFFFFF;
    padding: 20px 18px 70px 18px;
    border-radius: 0px 0px 50% 50% / 0px 0px 60px 60px;
}

/* Concept note as a small white line. */
.concept {
    position: relative;
    font-size: 0.78rem;
    color: #BFDBFE;
    margin-bottom: 20px;
}

/* Rising bubbles layer. */
.rising {
    list-style: none;
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 100%;
}

/* One bubble starting below the panel. */
.rising li {
    position: absolute;
    bottom: -60px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(191, 219, 254, 0.6);
    background-image: radial-gradient(circle 5px at 30% 30%, rgba(255, 255, 255, 0.8) 96%, transparent 100%);
    animation: rise 9s linear infinite;
}

/* Bubble 1 position. */
.rising li:nth-child(1) {
    left: 6%;
}

/* Bubble 2: bigger, later. */
.rising li:nth-child(2) {
    left: 20%;
    width: 70px;
    height: 70px;
    animation-delay: 2s;
}

/* Bubble 3. */
.rising li:nth-child(3) {
    left: 38%;
    animation-delay: 4s;
}

/* Bubble 4: small and quick. */
.rising li:nth-child(4) {
    left: 55%;
    width: 24px;
    height: 24px;
    animation-duration: 6s;
}

/* Bubble 5. */
.rising li:nth-child(5) {
    left: 70%;
    width: 56px;
    height: 56px;
    animation-delay: 1s;
}

/* Bubble 6. */
.rising li:nth-child(6) {
    left: 84%;
    animation-delay: 5s;
}

/* Bubble 7. */
.rising li:nth-child(7) {
    left: 94%;
    width: 30px;
    height: 30px;
    animation-delay: 3s;
}

/* Bubbles float up and fade. */
@keyframes rise {
    from {
        transform: translateY(0px);
        opacity: 1;
    }
    to {
        transform: translateY(-640px);
        opacity: 0;
    }
}

/* Text and photo above the bubbles. */
.hero-in {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.3rem, 7vw, 4.2rem);
    margin-bottom: 14px;
}

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

/* Pink soap-bar button. */
.soap,
button {
    display: inline-block;
    background-color: #EC4899;
    color: #0B1530;
    font-family: "Fredoka", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    border: none;
    border-radius: 18px;
    padding: 12px 26px;
    box-shadow: inset 0px -5px 0px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Button hover. */
.soap:hover,
button:hover {
    background-color: #F9A8D4;
}

/* Hero photo with a rounded bubble shape. */
.hero-in > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 40px;
    border: 4px solid #BFDBFE;
}

/* ----- Washes (class) ----- */

/* Section spacing. */
.washes {
    padding: 60px 18px 56px 18px;
}

/* Entrance signs in a row. */
.signs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

/* One sign: colored top, LED price box below. */
.sign {
    flex: 1 1 33%;
    text-align: center;
    background-color: var(--sign);
    border-radius: 14px 14px 4px 4px;
    padding: 12px 6px;
    border-bottom: 10px solid #9CA3AF;
}

/* Rinse sign color. */
.s-rinse {
    --sign: #93C5FD;
}

/* Shine sign color. */
.s-shine {
    --sign: #F9A8D4;
}

/* Bay Max sign color. */
.s-max {
    --sign: #C4B5FD;
}

/* Wash name. */
.sign h3 {
    font-size: 1.3rem;
    color: #0B1530;
}

/* LED price box. */
.led {
    display: inline-block;
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    font-size: 1.6rem;
    color: #FDE047;
    background-color: #0B1530;
    padding: 0px 10px;
    margin-top: 6px;
    text-shadow: 0px 0px 6px #FACC15;
}

/* Scroll wrapper for the table. */
.tablewrap {
    overflow-x: auto;
}

/* Check table. */
.steps {
    width: 100%;
    min-width: 440px;
    border-collapse: separate;
    border-spacing: 0px 6px;
}

/* Caption. */
.steps caption {
    text-align: left;
    font-weight: 600;
}

/* Cells. */
.steps th,
.steps td {
    padding: 10px;
    text-align: center;
    background-color: #FFFFFF;
}

/* Row labels on the left. */
.steps tbody th {
    text-align: left;
    border-radius: 10px 0px 0px 10px;
}

/* Header row in blue. */
.steps thead th {
    background-color: #2563EB;
    color: #FFFFFF;
}

/* "Yes" cells: a blue bubble with the word in it. */
.steps .yes {
    color: #FFFFFF;
    font-weight: 600;
    background-image: radial-gradient(circle 20px, #2563EB 96%, transparent 100%);
}

/* "No" cells: muted dash look. */
.steps .no {
    color: #5D6476;
}

/* Small print. */
.small {
    font-size: 0.85rem;
    color: #5D6476;
    margin-top: 10px;
}

/* ----- Club (ID) ----- */

/* Pink tint band; sticker then text on phones. */
#club {
    background-color: #F1E2F3;
    padding: 56px 18px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Tinted windshield glass. */
.windshield {
    background-image: linear-gradient(160deg, #94A3B8 0%, #CBD5E1 40%, #94A3B8 100%);
    border: 10px solid #111827;
    border-radius: 60px 60px 16px 16px;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

/* The sticker. */
.sticker {
    width: 200px;
    background-color: #FFFFFF;
    border-radius: 14px;
    padding: 12px 14px;
    text-align: center;
    transform: rotate(-4deg);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
}

/* Sticker top line. */
.st-top {
    font-family: "Fredoka", Arial, sans-serif;
    font-weight: 700;
    color: #225CD9;
}

/* Big "Unlimited". */
.st-big {
    font-family: "Fredoka", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #B13673;
    line-height: 1;
}

/* Small line. */
.st-small {
    font-size: 0.75rem;
}

/* Barcode from thin and thick stripes. */
.barcode {
    height: 30px;
    margin-top: 8px;
    background-image: repeating-linear-gradient(90deg, #0B1530 0px, #0B1530 2px, transparent 2px, transparent 4px, #0B1530 4px, #0B1530 7px, transparent 7px, transparent 9px);
}

/* Club paragraph. */
.club-text p {
    margin-bottom: 12px;
}

/* Perks list. */
.perks {
    list-style: none;
    margin-bottom: 18px;
}

/* One perk with a bubble bullet. */
.perks li {
    position: relative;
    padding: 6px 0px 6px 30px;
}

/* Bubble bullet. */
.perks li::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #2563EB;
    background-image: radial-gradient(circle 3px at 30% 30%, #2563EB 96%, transparent 100%);
}

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

/* Each photo. */
.club-photos img {
    width: 50%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
}

/* ----- Hours (class) ----- */

/* Thermometer beside the text. */
.hours {
    display: flex;
    gap: 24px;
    padding: 56px 18px 60px 18px;
}

/* Thermometer tube with a bulb. */
.therm {
    position: relative;
    flex: 0 0 34px;
    height: 220px;
    border: 4px solid #0B1530;
    border-radius: 17px 17px 0px 0px;
    background-color: #FFFFFF;
    background-image: linear-gradient(0deg, transparent 0px, transparent 40%, #EC4899 40%, #EC4899 41%, transparent 41%);
}

/* Mercury up to the 25-degree mark. */
.mercury {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: -18px;
    height: 104px;
    background-color: #2563EB;
    border-radius: 0px 0px 14px 14px;
    box-shadow: 0px 10px 0px 6px #2563EB;
}

/* Hours paragraphs. */
.hours p {
    margin-bottom: 10px;
}

/* Door photo. */
.hours img {
    width: 100%;
    max-width: 380px;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
}

/* ----- Suds footer (class) ----- */

/* Blue footer with a wave of suds on top. */
.suds {
    background-color: #1E3A8A;
    color: #DBEAFE;
    font-size: 0.82rem;
    text-align: center;
    padding: 40px 18px 24px 18px;
    background-image: radial-gradient(circle at 20px 0px, #F2F7FF 0px, #F2F7FF 18px, transparent 19px);
    background-size: 40px 20px;
    background-repeat: repeat-x;
}

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

@media (min-width: 576px) {

    /* Bigger LED prices. */
    .led {
        font-size: 2rem;
    }
}

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

@media (min-width: 768px) {

    /* Sticker beside the club text. */
    #club {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Windshield column. */
    .windshield {
        flex: 1 1 45%;
    }

    /* Text column. */
    .club-text {
        flex: 1 1 50%;
    }
}

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

@media (min-width: 992px) {

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

    /* Bubbles always showing, beside the logo. */
    .foam {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 6px;
    }

    /* Bubble nav visible. */
    .bubbles-nav {
        display: block;
    }

    /* Bubbles in one row. */
    .bubbles-nav ul {
        padding: 0px;
    }

    /* Text beside the photo. */
    .hero-in {
        flex-direction: row;
        align-items: center;
    }

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

    /* Photo column. */
    .hero-in > img {
        width: 42%;
        height: 400px;
    }

    /* More room in the hero. */
    .hero {
        padding: 30px 50px 90px 50px;
    }

    /* Wider section padding. */
    .washes,
    .hours {
        padding-left: 50px;
        padding-right: 50px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .foam,
    .hero,
    .washes,
    #club,
    .hours {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* Bubbles hold still. */
    .rising li {
        animation: none;
        bottom: 20px;
    }
}
