/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Brightside Home Cleaning (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, playful rounded style. Base rules are the
    phone layout; media queries at 576px, 768px, 992px and 1200px add to
    it. Flexbox for layout, radio-button tabs for the room checklist (the
    same :checked idea as the hamburger menu), and absolute positioning
    for the decorative circles around the hero photo.

    Colors (WebAIM checked, AA):
      #0C3B3D deep teal   #0B7C75 teal   #FFD25A sun   #FF8FA3 pink   #F2FBFA mint   #3F5F60 muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Mint page, deep teal text, DM Sans. overflow-x: hidden stops the
   decorative circles from causing sideways scrolling. */
body {
    background-color: #F2FBFA;
    color: #0C3B3D;
    font-family: "DM Sans", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Rounded, friendly Baloo headings. */
h1,
h2 {
    font-family: "Baloo 2", cursive;
    font-weight: 800;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin: 0px 0px 8px 0px;
}

/* Teal focus ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible + span,
.tab-radio:focus-visible ~ .tab-labels label {
    outline: 3px solid #0B7C75;
    outline-offset: 3px;
}

/* Muted intro under section titles. */
.lead {
    color: #3F5F60;
    max-width: 36rem;
    margin: 0px 0px 28px 0px;
}

/* ----- Banner and header (class) ----- */

/* Deep teal strip labeling the concept. */
.concept-banner {
    background-color: #0C3B3D;
    color: #CDEEEC;
    text-align: center;
    font-size: 0.8rem;
    padding: 7px 12px;
}

/* "Concept design" in sunny yellow. */
.concept-banner strong {
    color: #FFD25A;
}

/* Logo left, price button right. */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 74rem;
    margin: 0px auto;
    padding: 18px 20px;
}

/* Rounded logo text with a little sun. */
.logo {
    font-family: "Baloo 2", cursive;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The sun: a yellow circle with an inset shadow for a 3D look. */
.sun {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #FFD25A;
    box-shadow: inset -6px -6px 0px #F5B800;
}

/* Nav links hidden on phones; shown at 992px. */
.site-nav {
    display: none;
}

/* Teal rounded button with a darker "ledge" shadow under it. */
.pill-button {
    display: inline-block;
    background-color: #0B7C75;
    color: #FFFFFF;
    border-radius: 16px;
    padding: 0.75em 1.3em;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0px 6px 0px #075A55;
}

/* The button presses down on hover: it moves down 3px and the ledge
   shrinks by 3px. */
.pill-button:hover {
    transform: translateY(3px);
    box-shadow: 0px 3px 0px #075A55;
}

/* ----- Hero (class) ----- */

/* Text above the photo on phones. */
.hero {
    max-width: 74rem;
    margin: 0px auto;
    padding: 10px 20px 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Big headline. */
.hero h1 {
    font-size: clamp(3rem, 6vw, 5.2rem);
}

/* Yellow highlighter behind "clean." The gradient is clear on the top
   58% and yellow on the bottom 42%, like a marker stroke. */
.hero mark {
    background-color: transparent;
    background-image: linear-gradient(transparent 58%, #FFD25A 58%);
    color: inherit;
    padding: 0px 4px;
}

/* Hero paragraph. */
.hero-text > p {
    font-size: 1.15rem;
    max-width: 30rem;
    margin: 16px 0px 24px 0px;
}

/* Three perks as white pills. */
.perks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 24px 0px 0px 0px;
}

/* One perk pill. */
.perks li {
    background-color: #FFFFFF;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0px 4px 0px #0C3B3D14;
}

/* Perk icons in teal. */
.perks i {
    color: #0B7C75;
}

/* position: relative anchors the badge and the two decorative circles. */
.blob {
    position: relative;
    max-width: 30rem;
}

/* The blob-shaped photo. Eight radius values (four horizontal / four
   vertical) bend each corner differently for an organic shape. */
.blob img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 58% 42% 47% 53% / 45% 52% 48% 55%;
    border: 10px solid #FFFFFF;
    box-shadow: 0px 30px 60px #0C3B3D22;
}

/* Pink circle behind the top right of the photo. z-index: -1 puts it
   behind the photo. */
.blob::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: #FF8FA3;
    top: -20px;
    right: 0px;
}

/* Yellow circle behind the bottom left of the photo. */
.blob::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #FFD25A;
    bottom: 10px;
    left: -16px;
}

/* White badge over the bottom right of the photo. */
.quote-badge {
    position: absolute;
    right: 0px;
    bottom: 26px;
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0px 10px 30px #0C3B3D22;
}

/* Badge number in teal. */
.quote-badge strong {
    display: block;
    color: #0B7C75;
    font-family: "Baloo 2", cursive;
    font-size: 1.6rem;
    line-height: 1;
}

/* ----- Instant quote (ID and class) ----- */

/* Section spacing, centered. */
#quote {
    max-width: 74rem;
    margin: 0px auto;
    padding: 60px 20px;
}

/* White rounded box; options above the total on phones. */
.quote-box {
    background-color: #FFFFFF;
    border-radius: 30px;
    padding: 22px;
    box-shadow: 0px 30px 70px #0C3B3D14;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Each group of choices. */
.quote-options fieldset {
    border: none;
    margin: 0px 0px 18px 0px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Group title. */
.quote-options legend {
    font-weight: 700;
    margin: 0px 0px 8px 0px;
}

/* The real radio or checkbox is hidden visually but still works with
   the keyboard; the span next to it is drawn as the button. */
.quote-options input {
    position: absolute;
    opacity: 0;
}

/* Each choice drawn as a rounded button. */
.quote-options span {
    display: block;
    padding: 8px 16px;
    border-radius: 14px;
    background-color: #F2FBFA;
    border: 2px solid transparent;
    font-weight: 700;
    cursor: pointer;
}

/* A chosen option gets a teal border and teal text. The + selector picks
   the span right after a checked input. */
.quote-options input:checked + span {
    background-color: #E1F7F5;
    border-color: #0B7C75;
    color: #075A55;
}

/* Dark teal total card. */
.total {
    background-color: #0C3B3D;
    color: #FFFFFF;
    border-radius: 26px;
    padding: 26px;
}

/* Small light lines in the total card. */
.total .small {
    font-size: 0.85rem;
    color: #CDEEEC;
}

/* The price in big yellow. */
.price {
    font-family: "Baloo 2", cursive;
    font-size: 4.4rem;
    font-weight: 800;
    color: #FFD25A;
    line-height: 1;
}

/* What the price includes. */
.total ul {
    list-style: none;
    margin: 16px 0px;
    font-size: 0.95rem;
}

/* A yellow sparkle before each included item. */
.total li::before {
    content: "\2726";
    color: #FFD25A;
    margin: 0px 8px 0px 0px;
}

/* Yellow button in the total card. */
.total button {
    width: 100%;
    background-color: #FFD25A;
    color: #0C3B3D;
    border: none;
    border-radius: 16px;
    padding: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

/* White on hover. */
.total button:hover {
    background-color: #FFFFFF;
}

/* ----- Room checklist tabs (ID and class) ----- */

/* Section spacing, centered. */
#checklist {
    max-width: 74rem;
    margin: 0px auto;
    padding: 0px 20px 60px 20px;
}

/* Hidden but keyboard-focusable tab radios. */
.tab-radio {
    position: absolute;
    opacity: 0;
}

/* The three tab buttons in a row on phones. flex-wrap moves a tab to a
   second line on very narrow phones instead of making the strip scroll. */
.tab-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0px 0px 16px 0px;
}

/* One tab button. */
.tab-labels label {
    background-color: #FFFFFF;
    border-radius: 18px;
    padding: 10px 16px;
    font-family: "Baloo 2", cursive;
    font-size: 1.1rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

/* The checked room's tab turns teal. */
#tab-kitchen:checked ~ .tab-labels .label-kitchen,
#tab-bath:checked ~ .tab-labels .label-bath,
#tab-bed:checked ~ .tab-labels .label-bed {
    background-color: #0B7C75;
    color: #FFFFFF;
}

/* Every panel is hidden until its tab is checked. */
.panel {
    display: none;
    background-color: #FFFFFF;
    border-radius: 28px;
    padding: 22px;
}

/* Show the panel that matches the checked tab. */
#tab-kitchen:checked ~ .panel-kitchen,
#tab-bath:checked ~ .panel-bath,
#tab-bed:checked ~ .panel-bed {
    display: block;
}

/* No bullets; each item gets its own check box drawn below. */
.panel ul {
    list-style: none;
}

/* One checklist line with a dashed divider. */
.panel li {
    padding: 10px 0px 10px 34px;
    border-bottom: 2px dashed #0C3B3D12;
    position: relative;
}

/* Teal rounded square with a white check mark before each item. */
.panel li::before {
    content: "\2713";
    position: absolute;
    left: 0px;
    top: 11px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background-color: #0B7C75;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    line-height: 22px;
}

/* Rounded photo under the list on phones. */
.panel img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 22px;
    margin: 18px 0px 0px 0px;
}

/* ----- Promise (ID and class) ----- */

/* Yellow rounded band. */
#promise {
    max-width: 70rem;
    margin: 0px 20px 60px 20px;
    background-color: #FFD25A;
    border-radius: 34px;
    padding: 30px;
    text-align: center;
}

/* Huge "24h". */
.big-number {
    font-family: "Baloo 2", cursive;
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
}

/* Promise headline a little smaller than other section titles. */
#promise h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* ----- Footer (class) ----- */

/* Centered small footer. */
.site-footer {
    text-align: center;
    color: #3F5F60;
    font-size: 0.875rem;
    padding: 30px 20px 40px 20px;
}

/* ===== Small screens and up: 576px ===== */

@media (min-width: 576px) {

    /* Bigger quote box padding. */
    .quote-box {
        padding: 34px;
    }

    /* Bigger panel photo. */
    .panel img {
        height: 260px;
    }
}

/* ===== Medium screens and up: 768px ===== */

@media (min-width: 768px) {

    /* Checklist and photo side by side inside the shown panel. */
    #tab-kitchen:checked ~ .panel-kitchen,
    #tab-bath:checked ~ .panel-bath,
    #tab-bed:checked ~ .panel-bed {
        display: flex;
        align-items: center;
        gap: 28px;
    }

    /* The list and photo each take half the panel. */
    .panel ul,
    .panel img {
        flex: 1 1 0px;
        min-width: 0px;
        margin: 0px;
    }

    /* Promise: number left, words right. */
    #promise {
        display: flex;
        align-items: center;
        gap: 40px;
        text-align: left;
        padding: 46px;
    }

    /* Bigger number when there is room. */
    .big-number {
        font-size: 7rem;
    }
}

/* ===== Large screens and up: 992px ===== */

@media (min-width: 992px) {

    /* Show the nav links in the header. */
    .site-nav {
        display: flex;
        gap: 26px;
        list-style: none;
    }

    /* Nav link style. */
    .site-nav a {
        color: #0C3B3D;
        font-weight: 500;
        text-decoration: none;
    }

    /* Underline on hover. */
    .site-nav a:hover {
        text-decoration: underline;
    }

    /* Hero text and photo side by side. */
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

    /* Each hero column takes half. */
    .hero-text,
    .blob {
        flex: 1 1 0px;
    }

    /* Quote options and total side by side. */
    .quote-box {
        flex-direction: row;
        padding: 44px;
    }

    /* Options take the larger share. */
    .quote-options {
        flex: 1.3 1 0px;
    }

    /* Total card column. */
    .total {
        flex: 0.7 1 0px;
        display: flex;
        flex-direction: column;
    }

    /* The included list grows so the button sits at the bottom. */
    .total ul {
        flex-grow: 1;
    }

    /* Tabs move to a column on the left of the panel. flex-wrap with a
       fixed-width tab column puts the panel beside it. */
    .tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        align-items: flex-start;
    }

    /* Tabs stack vertically in a 260px column. */
    .tab-labels {
        flex-direction: column;
        flex: 0 0 260px;
        margin: 0px;
    }

    /* Bigger tab buttons in the side column. */
    .tab-labels label {
        font-size: 1.3rem;
        padding: 16px 20px;
    }

    /* The shown panel takes the rest of the row. */
    .panel {
        flex: 1 1 0px;
        padding: 34px;
    }

    /* Promise band centered at the page width. */
    #promise {
        margin: 0px auto 60px auto;
    }
}

/* ===== Extra large screens and up: 1200px ===== */

@media (min-width: 1200px) {

    /* Taller checklist photos. */
    .panel img {
        height: 320px;
    }
}
