/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Little Acorns Learning Center (fictional business)
    Filename:   styles.css

    Theme: a sunny playroom. The header ends in a scalloped rainbow edge
    (a row of half circles from a repeating radial-gradient) and the
    logo has a little acorn drawn from two shapes. The hero is a sky
    with a drawn sun, and the photo hangs on the fridge with a magnet.
    Rooms are a wall of cubbies: wooden shelf boxes with a colored bin
    and a name tag each. The day runs down a list of clock badges, the
    packing list sits inside a drawn backpack, and the tour form is on
    construction paper. The footer is grass with flowers.

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

    Colors (WebAIM contrast checked, AA):
      #14251A text on #FFFDF4 page (15.6:1)
      #147A3A green text (5.4:1 on the page)
      #FFFFFF on #15803D buttons (5.0:1)
      #14251A on #F59E0B yellow (8.7:1)
      #14251A on #DFF3FF sky (14.7:1)
*/

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

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

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

/* Cream page, rounded friendly body font. */
body {
    background-color: #FFFDF4;
    color: #14251A;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
}

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

/* Headings in the chunky rounded font. */
h1,
h2 {
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.05;
}

/* Section titles in green. */
h2 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    color: #147A3A;
}

/* Links in readable green. */
a {
    color: #147A3A;
    font-weight: 700;
}

/* Thick outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px dashed #147A3A;
    outline-offset: 3px;
}

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

/* Sticky white header with a rainbow scallop under it. */
.topbar {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #FFFFFF;
    padding-bottom: 16px;
    background-image: radial-gradient(circle at 12px 0px, #EF4444 0px, #EF4444 11px, transparent 12px), radial-gradient(circle at 36px 0px, #F59E0B 0px, #F59E0B 11px, transparent 12px), radial-gradient(circle at 60px 0px, #15803D 0px, #15803D 11px, transparent 12px), radial-gradient(circle at 84px 0px, #2563EB 0px, #2563EB 11px, transparent 12px);
    background-size: 96px 12px;
    background-position: 0px 100%;
    background-repeat: repeat-x;
}

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

/* Logo in the rounded font. */
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    color: #147A3A;
}

/* Second logo line, small. */
.brand small {
    display: block;
    font-family: "Nunito", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #14251A;
}

/* Acorn: a brown nut with a cap drawn as its top border. */
.acorn {
    width: 22px;
    height: 26px;
    background-color: #B45309;
    border-top: 9px solid #713F12;
    border-radius: 6px 6px 50% 50%;
}

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

/* Yellow menu button. */
.menu-icon {
    background-color: #F59E0B;
    color: #14251A;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 16px;
    cursor: pointer;
}

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

/* The checked menu opens the nav. */
.menu-check:checked ~ .toys {
    display: block;
}

/* Links as a stack of colored toy blocks. */
.toys ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
}

/* One toy block link. */
.toys a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #14251A;
    background-color: #FDE68A;
    box-shadow: 0px 4px 0px #D6A70B;
}

/* Second block color. */
.toys li:nth-child(2) a {
    background-color: #BBF7D0;
    box-shadow: 0px 4px 0px #4ADE80;
}

/* Third block color. */
.toys li:nth-child(3) a {
    background-color: #BFDBFE;
    box-shadow: 0px 4px 0px #60A5FA;
}

/* Fourth block color. */
.toys li:nth-child(4) a {
    background-color: #FECACA;
    box-shadow: 0px 4px 0px #F87171;
}

/* Fifth block color. */
.toys li:nth-child(5) a {
    background-color: #E9D5FF;
    box-shadow: 0px 4px 0px #C084FC;
}

/* Blocks press down on hover. */
.toys a:hover {
    box-shadow: 0px 1px 0px #14251A;
    transform: translateY(3px);
}

/* Concept note small and centered. */
.concept {
    font-size: 0.78rem;
    text-align: center;
    padding: 0px 16px 4px 16px;
}

/* ----- Sky hero (class) ----- */

/* Pale sky with room for the sun. */
.sky {
    position: relative;
    background-color: #DFF3FF;
    padding: 50px 20px 50px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* A sun with rays in the corner. */
.sun {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: #FCD34D;
    box-shadow: 0px 0px 0px 16px rgba(252, 211, 77, 0.45), 0px 0px 0px 32px rgba(252, 211, 77, 0.2);
}

/* Text above the sun. */
.sky-text {
    position: relative;
}

/* Big round headline. */
.sky h1 {
    font-size: clamp(2.6rem, 9vw, 4.6rem);
    color: #14251A;
    margin-bottom: 14px;
}

/* Hero paragraph. */
.sky p {
    max-width: 32rem;
    margin-bottom: 12px;
}

/* Opening note on a yellow sticky. */
.sky .opening {
    display: inline-block;
    background-color: #F59E0B;
    font-weight: 700;
    padding: 4px 12px;
    transform: rotate(-2deg);
    margin-bottom: 18px;
}

/* Round pill buttons. */
.pill,
button {
    display: inline-block;
    background-color: #15803D;
    color: #FFFFFF;
    font-family: "Baloo 2", Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    border: 3px solid #15803D;
    border-radius: 999px;
    padding: 8px 24px;
    margin: 0px 8px 10px 0px;
    cursor: pointer;
}

/* Pill hover. */
.pill:hover,
button:hover {
    background-color: #0F5A2B;
    border-color: #0F5A2B;
}

/* Outline pill. */
.pill-line {
    background-color: #FFFFFF;
    color: #147A3A;
}

/* Photo on the fridge: white border, slight tilt. */
.fridge {
    position: relative;
    background-color: #FFFFFF;
    padding: 10px 10px 30px 10px;
    box-shadow: 0px 10px 20px rgba(20, 37, 26, 0.2);
    transform: rotate(2deg);
    max-width: 420px;
    margin: 0px auto;
}

/* A round red magnet holding it up. */
.magnet {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-left: -15px;
    border-radius: 50%;
    background-color: #EF4444;
    box-shadow: inset -4px -4px 0px #B91C1C;
}

/* Fridge photo. */
.fridge img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ----- Cubby wall (class) ----- */

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

/* Line under the title. */
.sub {
    max-width: 40rem;
    margin: 6px 0px 22px 0px;
}

/* Wooden shelf holding the cubbies. */
.shelf {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: #D9A066;
    border: 8px solid #B07A44;
    border-radius: 8px;
}

/* One cubby: inset wooden box with a colored bin at the bottom. */
.cubby {
    flex: 1 1 100%;
    background-color: #FFF7EB;
    box-shadow: inset 0px 6px 10px rgba(0, 0, 0, 0.15);
    padding: 16px 16px 60px 16px;
    position: relative;
    font-size: 0.95rem;
}

/* The bin, colored per room. */
.cubby::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    height: 36px;
    border-radius: 6px 6px 10px 10px;
    background-color: var(--bin);
}

/* Sprouts bin. */
.c1 {
    --bin: #86EFAC;
}

/* Saplings bin. */
.c2 {
    --bin: #FDE68A;
}

/* Oaklings bin. */
.c3 {
    --bin: #93C5FD;
}

/* Pre-K bin. */
.c4 {
    --bin: #FCA5A5;
}

/* Name tag taped on top of each cubby. */
.tag {
    display: inline-block;
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    background-color: #FFFFFF;
    border: 2px dashed #147A3A;
    padding: 0px 12px;
    transform: rotate(-2deg);
    margin-bottom: 6px;
}

/* Age range. */
.age {
    font-weight: 700;
    color: #147A3A;
}

/* Weekly price. */
.cost {
    font-weight: 800;
    margin-top: 6px;
}

/* Fine print. */
.fine {
    font-size: 0.85rem;
    color: #646C63;
    margin-top: 12px;
}

/* ----- Our day (ID) ----- */

/* Green tint band; list then photos on phones. */
#day {
    background-color: #ECF3E5;
    padding: 56px 20px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Schedule list. */
.clock {
    list-style: none;
    margin-top: 14px;
}

/* One time slot. */
.clock li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

/* Time on a round clock badge with a hand. */
.t {
    flex: 0 0 62px;
    height: 62px;
    border-radius: 50%;
    border: 4px solid #15803D;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Two photos stacked with a slight tilt each. */
.snapshots {
    display: flex;
    gap: 12px;
}

/* Each snapshot. */
.snapshots img {
    width: 50%;
    height: 200px;
    object-fit: cover;
    border: 6px solid #FFFFFF;
    transform: rotate(-2deg);
}

/* Second snapshot tilts the other way. */
.snapshots img + img {
    transform: rotate(3deg);
}

/* ----- Backpack (class) ----- */

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

/* The backpack body with a front pocket line. */
.backpack {
    position: relative;
    max-width: 560px;
    margin: 0px auto;
    background-color: #2563EB;
    border-radius: 60px 60px 24px 24px;
    padding: 50px 22px 30px 22px;
    box-shadow: inset 0px -14px 0px #1D4ED8;
}

/* Strap handle on top. */
.handle {
    position: absolute;
    top: -34px;
    left: 50%;
    width: 90px;
    height: 50px;
    margin-left: -45px;
    border: 10px solid #1D4ED8;
    border-bottom: none;
    border-radius: 45px 45px 0px 0px;
}

/* The checklist on a white pocket card. */
.list {
    background-color: #FFFFFF;
    border: none;
    border-radius: 16px;
    padding: 16px 18px;
}

/* Checklist title. */
.list legend {
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    background-color: #F59E0B;
    border-radius: 999px;
    padding: 2px 14px;
}

/* Each check item: box then words on its own line. */
.list label {
    display: inline;
    margin-left: 6px;
}

/* Checkboxes a bit bigger, one per line. */
.list input {
    width: 20px;
    height: 20px;
    margin: 12px 0px 0px 0px;
    accent-color: #15803D;
    vertical-align: middle;
}

/* Line break after each label. */
.list label::after {
    content: "";
    display: block;
}

/* ----- Tour (class) ----- */

/* Photo then form on phones. */
.tour {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 20px 60px 20px;
}

/* Blocks photo, rounded. */
.tour > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
}

/* Construction paper sheet with a wavy cut top. */
.paper {
    background-color: #FDE68A;
    padding: 26px 22px;
    border-radius: 4px;
    box-shadow: 0px 6px 0px #D6A70B;
}

/* No fieldset border. */
.paper fieldset {
    border: none;
}

/* Form title. */
.paper legend {
    font-family: "Baloo 2", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.9rem;
    color: #14251A;
}

/* Labels above fields. */
.paper label {
    display: block;
    font-weight: 700;
}

/* Rounded white fields. */
.paper input,
.paper select {
    width: 100%;
    font: inherit;
    padding: 8px 14px;
    border: 3px solid #14251A;
    border-radius: 14px;
    background-color: #FFFFFF;
    margin: 2px 0px 12px 0px;
}

/* ----- Grass footer (class) ----- */

/* Green grass with little flowers along the top. */
.grass {
    background-color: #166534;
    color: #FFFFFF;
    text-align: center;
    font-size: 0.85rem;
    padding: 40px 20px 26px 20px;
    background-image: radial-gradient(circle at 20px 10px, #FDE68A 0px, #FDE68A 5px, transparent 6px), radial-gradient(circle at 70px 14px, #FFFFFF 0px, #FFFFFF 4px, transparent 5px);
    background-size: 100px 24px;
    background-repeat: repeat-x;
}

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

@media (min-width: 576px) {

    /* Two cubbies a row. */
    .cubby {
        flex: 1 1 45%;
    }

    /* Taller fridge photo. */
    .fridge img {
        height: 340px;
    }
}

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

@media (min-width: 768px) {

    /* Schedule beside the snapshots. */
    #day {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

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

    /* Photo beside the paper form. */
    .tour {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Photo and form halves. */
    .tour > img,
    .paper {
        flex: 1 1 50%;
        min-width: 0px;
    }

    /* Taller photo. */
    .tour > img {
        height: 420px;
    }
}

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

@media (min-width: 992px) {

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

    /* Toy-block links always showing. */
    .toys {
        display: block;
        width: auto;
    }

    /* Blocks in one row. */
    .toys ul {
        padding-top: 0px;
    }

    /* Text beside the fridge photo. */
    .sky {
        flex-direction: row;
        align-items: center;
        padding: 70px 60px;
    }

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

    /* Photo column. */
    .fridge {
        flex: 0 0 420px;
    }

    /* Bigger sun. */
    .sun {
        width: 240px;
        height: 240px;
    }

    /* All four cubbies in one row. */
    .cubby {
        flex: 1 1 22%;
    }

    /* Wider section padding. */
    .rooms {
        padding-left: 60px;
        padding-right: 60px;
    }
}

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

@media (min-width: 1200px) {

    /* Content lines up in a 1140px column. */
    .bar,
    .sky,
    .rooms,
    #day,
    .tour {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
