/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Clearwater Pressure Washing (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, clean and bright like fresh water. Floating
    bubbles in the hero are spans animated with @keyframes, turned off by
    prefers-reduced-motion. The before/after figure stacks the same photo
    twice: the top copy gets CSS filters (sepia, brightness, contrast) to
    look grimy and is cut to the left half with clip-path, with a white
    divider drawn by a pseudo-element. Media queries at 576px, 768px,
    992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #062A3D deep water   #0369A1 blue   #22D3EE aqua (decoration and
      behind dark text only)   #EFF8FC mist   #47606E muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Mist page with deep water text. */
body {
    background-color: #EFF8FC;
    color: #062A3D;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Techy rounded headings. */
h1,
h2,
h3 {
    font-family: "Exo 2", sans-serif;
    font-weight: 800;
    line-height: 1.08;
}

/* Section titles. */
h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* Blue links. */
a {
    color: #0369A1;
    font-weight: 700;
}

/* Blue focus ring. */
a:focus-visible,
button:focus-visible,
.table-scroll:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #0369A1;
    outline-offset: 3px;
}

/* Muted intro paragraph. */
.lead {
    color: #47606E;
    max-width: 40rem;
    margin: 10px 0px 24px 0px;
}

/* ----- Header (class) ----- */

/* Sticky white header with a soft shadow. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #FFFFFF;
    box-shadow: 0px 4px 16px rgba(6, 42, 61, 0.08);
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Logo. */
.logo {
    font-family: "Exo 2", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0369A1;
}

/* Droplet icon. */
.logo i {
    color: #22D3EE;
}

/* Small second line. */
.logo small {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #47606E;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Rounded menu button. */
.menu-icon {
    background-color: #0369A1;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 7px 16px;
    font-weight: 700;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Opened menu shows 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: #062A3D;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #DCEBF2;
}

/* Blue on hover. */
.site-nav a:hover {
    color: #0369A1;
}

/* Concept notice. */
.concept-note {
    background-color: #DCEBF2;
    font-size: 0.85rem;
    text-align: center;
    padding: 4px 16px;
}

/* ----- Hero (class) ----- */

/* Deep-water hero; it is the positioning parent for the bubbles and
   hides any that drift outside it. */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #062A3D;
    color: #FFFFFF;
}

/* Text sits above the bubbles. */
.hero-text {
    position: relative;
    z-index: 1;
    padding: 48px 20px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    margin-bottom: 16px;
}

/* Aqua second half of the headline. */
.hero h1 span {
    color: #22D3EE;
}

/* Hero paragraph. */
.hero-text p {
    max-width: 32rem;
    margin-bottom: 24px;
}

/* Rounded aqua button with dark text. */
.button,
button {
    display: inline-block;
    background-color: #22D3EE;
    color: #062A3D;
    border: 2px solid #22D3EE;
    border-radius: 999px;
    padding: 12px 24px;
    margin: 0px 8px 8px 0px;
    font-family: "Exo 2", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

/* Lighter aqua on hover. */
.button:hover,
button:hover {
    background-color: #A5F3FC;
}

/* Outline button for the second link. */
.button-ghost {
    background-color: transparent;
    color: #FFFFFF;
}

/* Ghost button hover keeps dark text readable. */
.button-ghost:hover {
    color: #062A3D;
}

/* Hero photo. */
.hero-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* The bubble layer covers the hero. */
.bubbles {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
}

/* One bubble: a ring with a light shine, floating upward. */
.bubbles span {
    position: absolute;
    bottom: -60px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(165, 243, 252, 0.6);
    background-color: rgba(34, 211, 238, 0.08);
    animation: rise 9s linear infinite;
}

/* Bubble 1. */
.bubbles span:nth-child(1) {
    left: 8%;
}

/* Bubble 2: bigger, slower, starts later. */
.bubbles span:nth-child(2) {
    left: 24%;
    width: 70px;
    height: 70px;
    animation-duration: 13s;
    animation-delay: 2s;
}

/* Bubble 3. */
.bubbles span:nth-child(3) {
    left: 45%;
    width: 24px;
    height: 24px;
    animation-delay: 4s;
}

/* Bubble 4. */
.bubbles span:nth-child(4) {
    left: 62%;
    width: 54px;
    height: 54px;
    animation-duration: 11s;
}

/* Bubble 5. */
.bubbles span:nth-child(5) {
    left: 80%;
    animation-delay: 6s;
}

/* Bubble 6. */
.bubbles span:nth-child(6) {
    left: 92%;
    width: 30px;
    height: 30px;
    animation-duration: 7s;
    animation-delay: 1s;
}

/* Bubbles drift up and fade out. */
@keyframes rise {
    from {
        transform: translateY(0px);
        opacity: 1;
    }
    to {
        transform: translateY(-700px);
        opacity: 0;
    }
}

/* ----- Before and after (class) ----- */

/* Section spacing. */
.compare {
    padding: 56px 20px;
}

/* The split figure is the positioning parent for both photos. */
.split {
    position: relative;
}

/* The clean photo sets the size. */
.after-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    filter: brightness(1.35) contrast(1.05) saturate(1.1);
}

/* The grimy copy sits exactly on top, filtered and cut to the left half. */
.before-img {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 14px;
    filter: sepia(1) hue-rotate(40deg) brightness(0.45) contrast(0.8) saturate(1.6);
    clip-path: inset(0% 50% 0% 0%);
}

/* A white divider line down the middle. */
.split::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0px;
    width: 4px;
    height: 320px;
    margin-left: -2px;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.4);
}

/* Labels row under the photo. */
.split figcaption {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* One label. */
.tag {
    font-family: "Exo 2", sans-serif;
    font-weight: 800;
    padding: 3px 14px;
    border-radius: 999px;
}

/* Before label in dark. */
.tag-before {
    background-color: #3B3A36;
    color: #FFFFFF;
}

/* After label in aqua. */
.tag-after {
    background-color: #22D3EE;
    color: #062A3D;
}

/* ----- Surfaces (ID and class) ----- */

/* White band. */
#surfaces {
    background-color: #FFFFFF;
    padding: 56px 20px;
}

/* Surface cards wrap. */
.surface-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* One surface card. flex-grow on the description lines the rates up. */
.surface-list li {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    border: 2px solid #DCEBF2;
    border-radius: 14px;
    padding: 20px;
}

/* Card icon in an aqua circle. */
.surface-list i {
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    border-radius: 50%;
    background-color: #CFF6FB;
    color: #0369A1;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Card title. */
.surface-list h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

/* Description grows so every rate sits on the same line. */
.surface-list p {
    flex-grow: 1;
}

/* Rate line. */
.rate {
    margin-top: 12px;
    font-family: "Exo 2", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0369A1;
    flex-grow: 0;
}

/* "per sq ft" text. */
.rate span {
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #47606E;
}

/* House photo below the cards. */
.siding {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    margin-top: 26px;
}

/* ----- Soft wash table (class) ----- */

/* Section spacing. */
.softwash {
    padding: 56px 20px;
}

/* Space under the heading. */
.softwash h2 {
    margin-bottom: 20px;
}

/* Lets the table scroll inside its own box on narrow phones. */
.table-scroll {
    overflow-x: auto;
}

/* Table. */
table {
    width: 100%;
    min-width: 440px;
    border-collapse: collapse;
    background-color: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
}

/* Caption. */
caption {
    text-align: left;
    font-weight: 700;
    padding-bottom: 8px;
}

/* All cells. */
th,
td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #DCEBF2;
}

/* Column headings in blue. */
thead th {
    background-color: #0369A1;
    color: #FFFFFF;
    font-family: "Exo 2", sans-serif;
}

/* Row headings. */
tbody th {
    color: #0369A1;
}

/* Spray photo. */
.spray {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 14px;
    margin-top: 26px;
}

/* ----- Quote (class) ----- */

/* Deep-water band. */
.quote {
    background-color: #062A3D;
    color: #FFFFFF;
    padding: 56px 20px;
}

/* Aqua link on dark. */
.quote a {
    color: #A5F3FC;
}

/* White form card. */
.quote-form {
    background-color: #FFFFFF;
    color: #062A3D;
    border-radius: 14px;
    padding: 22px;
    margin-top: 20px;
}

/* Surfaces fieldset. */
.quote-form fieldset {
    border: none;
}

/* Legend. */
.quote-form legend {
    font-weight: 700;
    margin-bottom: 6px;
}

/* Checkbox labels as pills. */
.quote-form fieldset label {
    display: inline-block;
    border: 2px solid #DCEBF2;
    border-radius: 999px;
    padding: 5px 12px;
    margin: 0px 6px 8px 0px;
    cursor: pointer;
}

/* Blue checkboxes. */
.quote-form input[type="checkbox"] {
    accent-color: #0369A1;
    margin-right: 4px;
}

/* Three fields stack on phones. */
.row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* Field labels. */
.row label {
    display: block;
    font-weight: 700;
}

/* Field inputs. */
.row input {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 2px solid #B6CFDB;
    border-radius: 8px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1rem;
}

/* Space above the submit button. */
.quote-form button {
    margin-top: 18px;
    background-color: #0369A1;
    border-color: #0369A1;
    color: #FFFFFF;
}

/* Darker on hover. */
.quote-form button:hover {
    background-color: #075985;
}

/* ----- Footer (class) ----- */

/* Footer. */
.site-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #47606E;
    padding: 22px 20px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller before/after photos. */
    .after-img,
    .before-img,
    .split::after {
        height: 400px;
    }

    /* Fields side by side. */
    .row {
        flex-direction: row;
    }

    /* Equal field widths. */
    .row div {
        flex: 1 1 30%;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .compare,
    #surfaces,
    .softwash,
    .quote {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Hero text and photo side by side. */
    .hero {
        flex-direction: row;
        align-items: stretch;
    }

    /* Text column. */
    .hero-text {
        flex: 1 1 55%;
        padding: 80px 40px;
    }

    /* Photo column, full height of the hero. */
    .hero-photo {
        flex: 1 1 45%;
        width: 45%;
        height: auto;
        clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    /* Table and spray photo side by side. */
    .softwash {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        align-items: flex-start;
    }

    /* Heading row. */
    .softwash h2 {
        flex: 1 1 100%;
        margin-bottom: 0px;
    }

    /* Table column. */
    .table-scroll {
        flex: 1 1 55%;
    }

    /* Photo column. */
    .spray {
        flex: 1 1 35%;
        width: auto;
        margin-top: 0px;
        height: 300px;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No Menu button on desktop. */
    .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: 24px;
        padding-top: 0px;
    }

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
    }

    /* Taller before/after. */
    .after-img,
    .before-img,
    .split::after {
        height: 480px;
    }

    /* Surface cards and the house photo side by side. */
    #surfaces {
        display: flex;
        flex-wrap: wrap;
        column-gap: 30px;
    }

    /* Heading and intro rows. */
    #surfaces h2,
    #surfaces .lead {
        flex: 1 1 100%;
    }

    /* Cards column, two by two. */
    .surface-list {
        flex: 1 1 60%;
    }

    /* House photo column. */
    .siding {
        flex: 1 1 30%;
        width: auto;
        height: auto;
        margin-top: 0px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .compare,
    #surfaces,
    .softwash,
    .quote {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Hero text lines up with the page. */
    .hero-text {
        padding-left: calc((100vw - 1140px) / 2);
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* No floating bubbles for people who turn animation off. */
    .bubbles span {
        animation: none;
        opacity: 0.5;
        bottom: 20%;
    }
}
