/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Fresh Step Carpet Cleaning (fictional business)
    Filename:   styles.css

    Theme: fresh carpet. The header is a purple rug with a woven
    border and a cream fringe hanging off its bottom edge (a
    repeating-linear-gradient). The hero background is freshly
    vacuumed carpet: wide alternating light and dark lanes, with bare
    footprints (rounded shapes) walking across beside the photo. The
    signature is a spot chart: each stain is an irregular blob drawn
    with uneven border-radius in its own color (coffee, wine, pet,
    red clay, crayon) with how likely it is to come out. Prices are a
    floor plan of rooms drawn with borders. The footer is a coir
    doormat texture.

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

    Colors (WebAIM contrast checked, AA):
      #1A1030 text on #FAF7FF page (17.4:1)
      #7C3AED purple text and buttons (5.7:1; white on it 5.7:1)
      #0C7368 teal text (5.6:1 on the page)
      #1A1030 on #14B8A6 teal (7.3:1)
*/

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

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

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

/* Soft lavender page. */
body {
    background-color: #FAF7FF;
    color: #1A1030;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

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

/* Bold geometric headings. */
h1,
h2,
h3 {
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    color: #7C3AED;
    margin-bottom: 8px;
}

/* Links in purple. */
a {
    color: #7C3AED;
}

/* Teal outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-check:focus-visible + .rug-row .menu-icon {
    outline: 3px solid #0C7368;
    outline-offset: 3px;
}

/* ----- Rug header (class) ----- */

/* Purple rug with a woven border and fringe below. */
.rug {
    position: relative;
    background-color: #7C3AED;
    color: #FFFFFF;
    border: 6px solid #5B21B6;
    outline: 3px dashed #C4B5FD;
    outline-offset: -12px;
    padding: 18px 22px;
    margin: 0px 0px 16px 0px;
}

/* Cream fringe hanging off the bottom. */
.rug::after {
    content: "";
    position: absolute;
    left: 0px;
    right: 0px;
    top: 100%;
    height: 14px;
    margin-top: 6px;
    background-image: repeating-linear-gradient(90deg, #EDE4D3 0px, #EDE4D3 2px, transparent 2px, transparent 6px);
}

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

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

/* Logo. */
.logo {
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.1;
}

/* Logo second line. */
.logo span {
    display: block;
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Menu button. */
.menu-icon {
    background-color: #14B8A6;
    color: #1A1030;
    font-weight: 700;
    border-radius: 6px;
    padding: 4px 12px;
    cursor: pointer;
}

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

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

/* Nav list. */
.rug-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links. */
.rug-nav a {
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
}

/* Hover: underline. */
.rug-nav a:hover {
    text-decoration: underline;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 10px 16px 6px 16px;
}

/* ----- Vacuum stripes hero (class) ----- */

/* Lanes of freshly vacuumed carpet. */
.stripes {
    display: flex;
    flex-direction: column;
    gap: 26px;
    background-color: #F0E8FE;
    background-image: repeating-linear-gradient(90deg, #F0E8FE 0px, #F0E8FE 90px, #E4D7FB 90px, #E4D7FB 180px);
    padding: 40px 16px 56px 16px;
}

/* Hero words on a white card. */
.stripes-text {
    background-color: #FFFFFF;
    padding: 24px;
    border-radius: 16px;
}

/* Headline. */
.stripes h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.stripes-text p {
    margin-bottom: 22px;
}

/* Photo with footprints beside it. */
.photo-col {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* Hero photo. */
.photo-col img {
    width: 80%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
}

/* Footprints walking up. */
.prints {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* One bare footprint: a sole. */
.prints li {
    width: 22px;
    height: 40px;
    background-color: #7C3AED;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
}

/* Every other print steps to the side. */
.prints li:nth-child(even) {
    margin-left: 22px;
}

/* Purple button with a teal sole underneath. */
.step-btn,
button {
    display: inline-block;
    background-color: #7C3AED;
    color: #FFFFFF;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 40px;
    box-shadow: 0px 5px 0px #14B8A6;
    padding: 12px 26px;
    cursor: pointer;
}

/* Button hover. */
.step-btn:hover,
button:hover {
    background-color: #1A1030;
}

/* ----- Spot chart (class) ----- */

/* Section spacing. */
.spots {
    padding: 56px 16px;
}

/* Intro line. */
.intro {
    max-width: 40rem;
    margin-bottom: 22px;
}

/* Stain cards wrap. */
.stains {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* One stain card. */
.stain {
    flex: 1 1 100%;
    background-color: #FFFFFF;
    border: 2px solid #D8D4E0;
    border-radius: 14px;
    padding: 18px;
}

/* Stain name. */
.stain h3 {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* An irregular stain blob in the stain's color. */
.blob {
    display: block;
    width: 70px;
    height: 54px;
    background-color: var(--stain);
    border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
    box-shadow: 18px 8px 0px -10px var(--stain);
}

/* Likelihood line in teal. */
.odds {
    font-weight: 700;
    color: #0C7368;
}

/* Coffee brown. */
.s-coffee {
    --stain: #7C4A1E;
}

/* Wine red. */
.s-wine {
    --stain: #9F1239;
}

/* Pet yellow. */
.s-pet {
    --stain: #D9B44A;
}

/* Red clay. */
.s-mud {
    --stain: #B45309;
}

/* Crayon blue. */
.s-crayon {
    --stain: #2563EB;
}

/* ----- Price by room (ID) ----- */

/* Teal-tint band. */
#rooms {
    background-color: #DEEFF4;
    padding: 56px 16px;
}

/* Plan then side notes. */
.plan-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Floor plan: thick outer walls. */
.plan {
    border: 8px solid #1A1030;
    background-color: #FFFFFF;
}

/* Top and bottom rows of rooms. */
.plan-top,
.plan-bottom {
    display: flex;
}

/* One room: thin inner walls, name and price. */
.room {
    flex: 1 1 30%;
    min-height: 120px;
    border: 3px solid #1A1030;
    padding: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0C7368;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 20px, #F0E8FE 20px, #F0E8FE 40px);
}

/* Room name above the price. */
.room strong {
    display: block;
    font-size: 0.9rem;
    color: #1A1030;
}

/* The living room is bigger. */
.big-room {
    flex: 2 1 60%;
}

/* The hall is narrow. */
.hall {
    flex: 0 1 18%;
}

/* Total line. */
.whole {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background-color: #14B8A6;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-weight: 700;
}

/* Total number. */
.whole strong {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 2rem;
}

/* Couch photo. */
.plan-side img {
    margin-top: 14px;
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
}

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

/* Form then photos. */
.book {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 16px;
}

/* Form box. */
.book-form fieldset {
    border: 3px solid #7C3AED;
    border-radius: 16px;
    padding: 22px;
    background-color: #FFFFFF;
}

/* Form title. */
.book-form legend {
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #7C3AED;
    padding: 0px 8px;
}

/* Labels. */
.book-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Text inputs. */
.book-form input[type="text"],
.book-form input[type="tel"],
.book-form input[type="number"] {
    width: 100%;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #6B6479;
    border-radius: 8px;
}

/* Checkbox line. */
.check {
    margin-top: 12px;
}

/* Checkbox label inline. */
.check label {
    display: inline;
}

/* Submit spacing. */
.book-form button {
    margin-top: 18px;
}

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

/* Each photo. */
.book-photos img {
    width: 50%;
    height: 240px;
    object-fit: cover;
    border-radius: 14px;
}

/* ----- Doormat footer (class) ----- */

/* Coir mat: brown with a woven crosshatch. */
.doormat {
    background-color: #3B2A1A;
    background-image: repeating-linear-gradient(45deg, transparent 0px, transparent 3px, rgba(255, 255, 255, 0.06) 3px, rgba(255, 255, 255, 0.06) 5px), repeating-linear-gradient(-45deg, transparent 0px, transparent 3px, rgba(0, 0, 0, 0.15) 3px, rgba(0, 0, 0, 0.15) 5px);
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
}

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

@media (min-width: 576px) {

    /* Two stain cards per row. */
    .stain {
        flex: 1 1 45%;
    }
}

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

@media (min-width: 768px) {

    /* Plan beside the notes. */
    .plan-row {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Plan column. */
    .plan {
        flex: 1 1 60%;
    }

    /* Notes column. */
    .plan-side {
        flex: 1 1 36%;
    }

    /* Form beside the photos. */
    .book {
        flex-direction: row;
        align-items: center;
    }

    /* Each half. */
    .book-form,
    .book-photos {
        flex: 1 1 50%;
    }
}

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

@media (min-width: 992px) {

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

    /* Logo left, nav right. */
    .rug {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .rug-nav {
        display: block;
    }

    /* Nav in a row. */
    .rug-nav ul {
        flex-direction: row;
        gap: 28px;
        padding-top: 0px;
    }

    /* Words beside the photo. */
    .stripes {
        flex-direction: row;
        align-items: center;
        padding: 56px 40px 70px 40px;
    }

    /* Each half. */
    .stripes-text,
    .photo-col {
        flex: 1 1 50%;
    }

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

    /* Five stain cards in a row. */
    .stain {
        flex: 1 1 17%;
    }

    /* Wider sections. */
    .spots,
    #rooms,
    .book {
        padding-left: 40px;
        padding-right: 40px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .stripes,
    .spots,
    #rooms,
    .book {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}

/* ----- Reduced motion ----- */

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

    /* No transitions. */
    * {
        transition: none;
    }
}
