/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Load Up Junk Removal (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, loud and friendly: yellow, green and a
    cartoon headline font. A rotated round "sticker" sits on the hero
    photo. Price cards show a pile of boxes (inline-blocks with different
    sizes and tilts) that grows with the load, and each card wobbles on
    hover with a @keyframes animation. "Where it goes" is one stacked bar
    whose segments get their width from flex-basis percentages, with a
    key that spells out every number. Media queries at 576px, 768px,
    992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #0A1F12 dark text   #15803D green (5.0:1 with white; darker than
      #16A34A so white text passes)   #FACC15 yellow (dark text only)
      #B91C1C red text   #F7FAF5 page   #4B5A4E muted
*/

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

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

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

/* Off-white page with dark text. */
body {
    background-color: #F7FAF5;
    color: #0A1F12;
    font-family: Nunito, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

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

/* Cartoon headline font. */
h1,
h2,
h3 {
    font-family: "Luckiest Guy", cursive;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.02em;
}

/* Section titles. */
h2 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    margin-bottom: 10px;
}

/* Green links. */
a {
    color: #15803D;
    font-weight: 700;
}

/* Thick dark focus ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 4px solid #0A1F12;
    outline-offset: 3px;
}

/* Lead text. */
.lead {
    color: #4B5A4E;
    max-width: 40rem;
    margin-bottom: 26px;
}

/* Small notes. */
.small {
    font-size: 0.85rem;
    color: #4B5A4E;
    margin-top: 10px;
}

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

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

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

/* Cartoon logo in yellow (decorative size, on green). */
.logo {
    font-family: "Luckiest Guy", cursive;
    font-size: 1.9rem;
    color: #FACC15;
    line-height: 1;
    text-shadow: 2px 2px 0px #0A1F12;
}

/* Second logo line. */
.logo small {
    display: block;
    font-family: Nunito, sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: #FFFFFF;
    text-shadow: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

/* Menu button. */
.menu-icon {
    background-color: #FACC15;
    color: #0A1F12;
    font-weight: 800;
    border-radius: 8px;
    padding: 5px 14px;
    cursor: pointer;
}

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

/* Checked menu shows the 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: #FFFFFF;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #22A04F;
}

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

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

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

/* Yellow hero, stacked on phones. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 34px;
    background-color: #FACC15;
    padding: 44px 20px 56px 20px;
}

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

/* Middle phrase in white with a dark outline shadow. */
.hero h1 span {
    color: #FFFFFF;
    text-shadow: 3px 3px 0px #0A1F12;
}

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

/* Chunky green button with a hard shadow. */
.button,
button {
    display: inline-block;
    background-color: #15803D;
    color: #FFFFFF;
    border: 3px solid #0A1F12;
    border-radius: 12px;
    box-shadow: 4px 4px 0px #0A1F12;
    padding: 10px 22px;
    margin: 0px 10px 12px 0px;
    font-family: "Luckiest Guy", cursive;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
}

/* Pressed look on hover. */
.button:hover,
button:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #0A1F12;
}

/* Dark version. */
.button-dark {
    background-color: #0A1F12;
}

/* Photo is the parent for the sticker. */
.hero-photo {
    position: relative;
}

/* Photo with a thick border and a tilt. */
.hero-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 5px solid #0A1F12;
    border-radius: 16px;
    transform: rotate(1.5deg);
}

/* Round sticker, rotated, on the photo corner. */
.sticker {
    position: absolute;
    top: -22px;
    right: -6px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #B91C1C;
    color: #FFFFFF;
    border: 4px dashed #FFFFFF;
    box-shadow: 0px 0px 0px 4px #B91C1C;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: "Luckiest Guy", cursive;
    font-size: 1.4rem;
    line-height: 1;
    transform: rotate(14deg);
}

/* Smaller second line on the sticker. */
.sticker span {
    font-size: 0.8rem;
    font-family: Nunito, sans-serif;
    font-weight: 800;
    margin-top: 4px;
}

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

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

/* Cards wrap. */
.pile-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Each card is white with a heavy border. */
.pile-card {
    position: relative;
    flex: 1 1 100%;
    background-color: #FFFFFF;
    border: 3px solid #0A1F12;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

/* Cards wobble when hovered. */
.pile-card:hover {
    animation: wobble 0.5s ease-in-out;
}

/* Wobble left, right, settle. */
@keyframes wobble {
    0% {
        transform: rotate(0deg);
    }
    30% {
        transform: rotate(-2deg);
    }
    60% {
        transform: rotate(1.5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* The featured card is yellow. */
.pile-card.featured {
    background-color: #FEF9C3;
}

/* Badge on the featured card. */
.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0A1F12;
    color: #FACC15;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 2px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Box pile sits on a ground line. */
.pile {
    height: 96px;
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: center;
    align-content: flex-start;
    gap: 2px;
    border-bottom: 4px solid #0A1F12;
    margin-bottom: 14px;
    padding: 0px 10px;
}

/* A cardboard box. */
.bx {
    display: inline-block;
    background-color: #C08A55;
    border: 2px solid #7C5A3A;
    background-image: linear-gradient(90deg, transparent 45%, #E8C9A0 45%, #E8C9A0 55%, transparent 55%);
}

/* Small box, tilted left. */
.b1 {
    width: 28px;
    height: 24px;
    transform: rotate(-6deg);
}

/* Medium box. */
.b2 {
    width: 40px;
    height: 34px;
}

/* Wide box, tilted right. */
.b3 {
    width: 48px;
    height: 28px;
    transform: rotate(4deg);
}

/* Load name. */
.pile-card h3 {
    font-size: 1.6rem;
}

/* Big price. */
.price {
    font-family: "Luckiest Guy", cursive;
    font-size: 2.4rem;
    color: #15803D;
    line-height: 1.1;
}

/* ----- Where it goes (class) ----- */

/* Dark band, text and photo stack on phones. */
.where {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #0A1F12;
    color: #F7FAF5;
    padding: 56px 20px;
}

/* The stacked bar. */
.stack {
    display: flex;
    height: 56px;
    margin: 22px 0px;
    border: 3px solid #F7FAF5;
    border-radius: 12px;
    overflow: hidden;
}

/* Each segment shows its percent. */
.seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Luckiest Guy", cursive;
    font-size: 1.3rem;
}

/* Donated share, yellow with dark text. */
.seg.donate {
    flex: 0 0 41%;
    background-color: #FACC15;
    color: #0A1F12;
}

/* Recycled share, green with white text. */
.seg.recycle {
    flex: 0 0 34%;
    background-color: #15803D;
    color: #FFFFFF;
}

/* Landfill share, gray with dark text. */
.seg.landfill {
    flex: 0 0 25%;
    background-color: #CBD5E1;
    color: #0A1F12;
}

/* Key below the bar. */
.stack-key {
    list-style: none;
}

/* Key rows. */
.stack-key li {
    padding: 5px 0px;
}

/* Color dot in the key. */
.dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #F7FAF5;
    vertical-align: -1px;
    margin-right: 4px;
}

/* Donate dot. */
.dot.donate {
    background-color: #FACC15;
}

/* Recycle dot. */
.dot.recycle {
    background-color: #15803D;
}

/* Landfill dot. */
.dot.landfill {
    background-color: #CBD5E1;
}

/* Note on dark. */
.where .small {
    color: #B6C4B9;
}

/* Recycling photo with a rounded frame. */
.where > img {
    border-radius: 16px;
    border: 4px solid #FACC15;
    height: 260px;
    width: 100%;
    object-fit: cover;
}

/* ----- What we take (class) ----- */

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

/* Yes and no stack on phones. */
.take-cols {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0px 26px 0px;
}

/* Yes and no boxes. */
.yes,
.no {
    border: 3px solid #0A1F12;
    border-radius: 16px;
    padding: 20px;
}

/* Yes box in pale green. */
.yes {
    background-color: #DCFCE7;
}

/* No box in pale red. */
.no {
    background-color: #FEE2E2;
}

/* Box titles. */
.yes h3,
.no h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

/* Green check icon. */
.yes h3 i {
    color: #15803D;
}

/* Red x icon. */
.no h3 i {
    color: #B91C1C;
}

/* Lists inside the boxes. */
.yes ul,
.no ul {
    padding-left: 22px;
    margin-bottom: 10px;
}

/* "Nope" items are struck through (the heading already says no). */
.no li {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

/* Two photos stack on phones. */
.take-photos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Rounded photos. */
.take-photos img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid #0A1F12;
}

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

/* Yellow band. */
.book {
    background-color: #FACC15;
    padding: 56px 20px;
}

/* Item checkboxes as chunky pills. */
.stuff {
    border: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0px 20px 0px;
}

/* Legend. */
.stuff legend {
    font-weight: 800;
    margin-bottom: 10px;
}

/* Checkboxes hidden but focusable. */
.stuff input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Pill labels. */
.stuff label {
    background-color: #FFFFFF;
    border: 3px solid #0A1F12;
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 800;
    cursor: pointer;
}

/* Checked pills turn dark with a check. */
.stuff input:checked + label {
    background-color: #0A1F12;
    color: #FACC15;
}

/* Check mark on checked pills. */
.stuff input:checked + label::before {
    content: "\2713  ";
}

/* Keyboard focus on a pill. */
.stuff input:focus-visible + label {
    outline: 4px solid #15803D;
    outline-offset: 2px;
}

/* Field row stacks on phones. */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

/* Each field. */
.row div {
    flex: 1 1 100%;
}

/* Labels. */
.row label {
    display: block;
    font-weight: 800;
}

/* Inputs. */
.row input {
    width: 100%;
    font: inherit;
    padding: 9px 12px;
    border: 3px solid #0A1F12;
    border-radius: 10px;
    margin-top: 4px;
}

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

/* Footer. */
.site-footer {
    background-color: #0A1F12;
    color: #D1DDD3;
    font-size: 0.85rem;
    text-align: center;
    padding: 24px 16px;
}

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

@media (min-width: 576px) {

    /* Two price cards per row. */
    .pile-card {
        flex: 1 1 40%;
    }

    /* Photos side by side. */
    .take-photos {
        flex-direction: row;
    }

    /* Each photo half. */
    .take-photos img {
        width: 50%;
    }

    /* Fields three across when they fit. */
    .row div {
        flex: 1 1 30%;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    #prices,
    .where,
    .take,
    .book {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Yes and no side by side. */
    .take-cols {
        flex-direction: row;
    }

    /* Each half. */
    .yes,
    .no {
        flex: 1 1 50%;
    }

    /* Bigger sticker. */
    .sticker {
        width: 140px;
        height: 140px;
        font-size: 1.7rem;
    }
}

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

@media (min-width: 992px) {

    /* No Menu button. */
    .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;
        font-weight: 800;
    }

    /* Hero text and photo side by side. */
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 56px;
        padding-top: 70px;
        padding-bottom: 80px;
    }

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

    /* Photo column. */
    .hero-photo {
        flex: 1 1 48%;
    }

    /* Taller hero photo. */
    .hero-photo img {
        height: 420px;
    }

    /* Four price cards in a row. */
    .pile-card {
        flex: 1 1 20%;
    }

    /* Where text beside the photo. */
    .where {
        flex-direction: row;
        align-items: center;
        gap: 56px;
    }

    /* Text column. */
    .where-text {
        flex: 1 1 58%;
    }

    /* Photo column. */
    .where > img {
        width: 42%;
        height: 360px;
    }
}

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

@media (min-width: 1200px) {

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

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

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

    /* No wobble. */
    .pile-card:hover {
        animation: none;
    }
}
