/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Crystal Clear Window Washing (fictional business)
    Filename:   styles.css

    Theme: glass before and after. The header is a pale sheet of
    glass with a diagonal sheen and a clean wiped stripe. The hero
    photo is split down the middle: the left half has a cloudy grime
    layer (a semi-transparent gray with water spots from radial
    gradients) and a squeegee blade sits on the line, the right half
    is clear. "Count your panes" draws a simple house front with
    numbered windows (each pane has a cross-shaped muntin made from
    gradients) beside a price card. The seasons section is a four-pane
    sash window, one season in each pane. The footer is a painted sill.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #082030 text on #F4FBFF page (16.2:1)
      #0270A9 sky blue text (5.6:1 on the page)
      #FFFFFF on #027AB8 buttons (4.9:1)
      #082030 on #A3E635 lime (11.6:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Clear-sky page. */
body {
    background-color: #F4FBFF;
    color: #082030;
    font-family: "Mulish", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Rounded headings. */
h1,
h2,
h3 {
    font-family: "Quicksand", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    color: #0270A9;
    margin-bottom: 18px;
}

/* Links in blue. */
a {
    color: #0270A9;
}

/* Dark outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .glass-row .menu-icon {
    outline: 3px solid #082030;
    outline-offset: 3px;
}

/* ----- Glass header (class) ----- */

/* Pale glass with a sheen and one wiped-clean stripe. */
.glass {
    position: relative;
    background-color: #E1F1FB;
    background-image: linear-gradient(115deg, transparent 0%, transparent 30%, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0.9) 36%, transparent 36%, transparent 40%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0.6) 42%, transparent 42%);
    border-bottom: 4px solid #027AB8;
    padding: 14px 16px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Logo and menu in a row. */
.glass-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo. */
.logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px 8px;
    font-family: "Quicksand", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.45rem;
    color: #0270A9;
}

/* Logo second part. */
.logo .sub {
    font-size: 0.85rem;
    color: #082030;
}

/* Four-point sparkle from two crossed bars. */
.sparkle {
    width: 18px;
    height: 18px;
    background-image: linear-gradient(90deg, transparent 44%, #A3E635 44%, #A3E635 56%, transparent 56%), linear-gradient(0deg, transparent 44%, #A3E635 44%, #A3E635 56%, transparent 56%);
    transform: rotate(45deg);
}

/* Menu button. */
.menu-icon {
    background-color: #027AB8;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 8px;
    padding: 4px 12px;
    white-space: nowrap;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.wipe {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .wipe {
    display: block;
}

/* Nav list. */
.wipe ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links. */
.wipe a {
    color: #082030;
    font-weight: 700;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 6px;
}

/* A lime "wiped" highlight on hover. */
.wipe a:hover {
    background-color: #A3E635;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Before and after hero (class) ----- */

/* Photo then words on phones. */
.before-after {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 20px 16px 56px 16px;
}

/* Photo frame painted white like a window frame. */
.pane-photo {
    position: relative;
    border: 12px solid #FFFFFF;
    box-shadow: 0px 4px 18px rgba(8, 32, 48, 0.18);
    overflow: hidden;
}

/* Photo. */
.pane-photo img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

/* Grime on the left half: gray film with water spots. */
.grime {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 50%;
    height: 100%;
    background-color: rgba(120, 110, 90, 0.45);
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0px, transparent 14px), radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.3) 0px, transparent 18px), radial-gradient(circle at 40% 85%, rgba(255, 255, 255, 0.25) 0px, transparent 10px), radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.3) 0px, transparent 12px);
}

/* Squeegee blade on the line: a black rubber edge and a lime handle. */
.blade {
    position: absolute;
    top: 0px;
    left: 50%;
    width: 12px;
    height: 100%;
    margin-left: -6px;
    background-image: linear-gradient(90deg, #082030 0%, #082030 40%, #A3E635 40%, #A3E635 100%);
}

/* Before label. */
.tag-left,
.tag-right {
    position: absolute;
    bottom: 12px;
    background-color: #082030;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 10px;
}

/* Before label on the left. */
.tag-left {
    left: 12px;
}

/* After label on the right, lime. */
.tag-right {
    right: 12px;
    background-color: #A3E635;
    color: #082030;
}

/* Headline. */
.ba-text h1 {
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.ba-text p {
    max-width: 30rem;
    margin-bottom: 22px;
}

/* Button with a squeegee rubber edge along the bottom. */
.squeegee-btn,
button {
    display: inline-block;
    background-color: #027AB8;
    color: #FFFFFF;
    font-family: "Mulish", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-bottom: 6px solid #082030;
    border-radius: 8px 8px 2px 2px;
    padding: 12px 24px;
    cursor: pointer;
}

/* Button hover. */
.squeegee-btn:hover,
button:hover {
    background-color: #082030;
}

/* ----- Count your panes (ID) ----- */

/* Pale band. */
#panes {
    background-color: #E1F1FB;
    padding: 56px 16px;
}

/* House then price card. */
.house-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* House front: white siding with lap lines. */
.house {
    position: relative;
    background-color: #FFFFFF;
    background-image: repeating-linear-gradient(180deg, transparent 0px, transparent 15px, #D1DAE0 15px, #D1DAE0 16px);
    padding: 70px 16px 0px 16px;
    max-width: 520px;
}

/* Roof: a dark triangle across the top. */
.roof {
    position: absolute;
    top: 0px;
    left: -10px;
    right: -10px;
    height: 56px;
    background-color: #082030;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* One story of windows. */
.floor {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 8px;
    padding: 14px 0px;
}

/* A window: blue glass, white cross muntins, a number. */
.win {
    flex: 0 0 18%;
    height: 64px;
    border: 4px solid #FFFFFF;
    outline: 2px solid #5C6C76;
    background-color: #7CC4EA;
    background-image: linear-gradient(90deg, transparent 47%, #FFFFFF 47%, #FFFFFF 53%, transparent 53%), linear-gradient(0deg, transparent 47%, #FFFFFF 47%, #FFFFFF 53%, transparent 53%);
    color: #082030;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: left;
    padding-left: 4px;
}

/* Front door. */
.door {
    flex: 0 0 14%;
    height: 90px;
    background-color: #027AB8;
    border-radius: 4px 4px 0px 0px;
}

/* Price card. */
.price-card {
    background-color: #FFFFFF;
    border: 2px solid #027AB8;
    border-radius: 14px;
    padding: 22px;
    max-width: 440px;
}

/* Example line. */
.eg {
    font-weight: 700;
    margin-bottom: 8px;
}

/* Price lines. */
.price-card ul {
    list-style: none;
}

/* One price line. */
.price-card li,
.total {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0px;
    border-bottom: 1px dashed #D1DAE0;
}

/* Total in a lime band. */
.total {
    background-color: #A3E635;
    border-radius: 8px;
    border-bottom: none;
    padding: 10px 12px;
    margin-top: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ----- Four seasons (class) ----- */

/* Section spacing. */
.seasons {
    padding: 56px 16px;
}

/* Sash window: a white frame around four panes. */
.sash {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #FFFFFF;
    padding: 10px;
    border: 3px solid #5C6C76;
    margin-bottom: 26px;
}

/* One pane: glass tinted by season. */
.season {
    flex: 1 1 100%;
    padding: 20px;
    min-height: 140px;
    background-color: var(--glass);
    background-image: linear-gradient(130deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.55) 18%, transparent 18%);
}

/* Season name. */
.season h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

/* Spring glass. */
.spring {
    --glass: #EAF8E7;
}

/* Summer glass. */
.summer {
    --glass: #FEF9C3;
}

/* Fall glass. */
.fall {
    --glass: #FDE8D7;
}

/* Winter glass. */
.winter {
    --glass: #E1F1FB;
}

/* Two photos. */
.season-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.season-photos img {
    width: 50%;
    height: 220px;
    object-fit: cover;
}

/* ----- Booking (class) ----- */

/* Photo then form. */
.book {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 16px;
    background-color: #082030;
}

/* Office photo. */
.book img {
    height: 260px;
    object-fit: cover;
}

/* Form box. */
.book-form fieldset {
    background-color: #F4FBFF;
    border: none;
    border-radius: 14px;
    padding: 24px;
}

/* Form title in a lime chip. */
.book-form legend {
    background-color: #A3E635;
    font-family: "Quicksand", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 4px 14px;
    border-radius: 10px;
}

/* Labels. */
.book-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Inputs. */
.book-form input {
    width: 100%;
    font-family: "Mulish", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #5C6C76;
    border-radius: 8px;
}

/* Submit spacing. */
.book-form button {
    margin-top: 18px;
}

/* ----- Sill footer (class) ----- */

/* White painted sill with a shadow line. */
.sill {
    background-color: #FFFFFF;
    border-top: 10px solid #D1DAE0;
    box-shadow: inset 0px 6px 0px #F4FBFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 26px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Two panes per row. */
    .season {
        flex: 1 1 45%;
    }

    /* Taller hero photo. */
    .pane-photo img {
        height: 420px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* House beside the price card. */
    .house-row {
        flex-direction: row;
        align-items: flex-end;
    }

    /* House column. */
    .house {
        flex: 1 1 55%;
    }

    /* Price column. */
    .price-card {
        flex: 1 1 40%;
    }

    /* Photo beside the form. */
    .book {
        flex-direction: row;
    }

    /* Each half. */
    .book img,
    .book-form {
        width: 50%;
    }

    /* Photo fills its half. */
    .book img {
        height: auto;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Logo left, nav right. */
    .glass {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .wipe {
        display: block;
    }

    /* Nav in a row. */
    .wipe ul {
        flex-direction: row;
        gap: 12px;
        padding-top: 0px;
    }

    /* Photo beside the words. */
    .before-after {
        flex-direction: row;
        align-items: center;
        padding: 30px 40px 70px 40px;
    }

    /* Photo column. */
    .pane-photo {
        flex: 1 1 58%;
    }

    /* Words column. */
    .ba-text {
        flex: 1 1 40%;
    }

    /* Wider sections. */
    #panes,
    .seasons,
    .book {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .before-after,
    #panes,
    .seasons,
    .book {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
