/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - True Coat Painting (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, warm and crafty. The hero photo has a
    ragged "wet paint" bottom edge made with clip-path. Color ideas are
    swatch cards fanned out with transform: rotate() around a shared
    transform-origin; they straighten on hover. The process steps are
    numbered with CSS counters (counter-reset / counter-increment) instead
    of the browser's default numbers. Media queries at 576px, 768px, 992px
    and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #1C1917 charcoal   #B23B0A rust (darker than #C2410C so white text
      passes)   #0F766E teal   #FAF7F2 primer white   #57534E muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Primer-white page, charcoal text. */
body {
    background-color: #FAF7F2;
    color: #1C1917;
    font-family: "Work Sans", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Chunky serif headings. */
h1,
h2,
h3 {
    font-family: Fraunces, serif;
    font-weight: 800;
    line-height: 1.08;
}

/* Section titles. */
h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
}

/* Teal links. */
a {
    color: #0F766E;
}

/* Rust focus ring. */
a:focus-visible,
button:focus-visible,
.swatch:focus-within,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #B23B0A;
    outline-offset: 3px;
}

/* Muted intro paragraph. */
.lead {
    color: #57534E;
    max-width: 34rem;
    margin-bottom: 22px;
}

/* Small print. */
.small {
    font-size: 0.85rem;
    color: #57534E;
    margin-top: 10px;
}

/* ----- Header (class) ----- */

/* Plain header on the page color. */
.site-header {
    border-bottom: 2px solid #1C1917;
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

/* Serif logo. */
.logo {
    font-family: Fraunces, serif;
    font-size: 1.7rem;
    font-weight: 800;
}

/* "Coat" in rust. */
.logo span {
    color: #B23B0A;
}

/* Tagline on its own line. */
.logo small {
    display: block;
    font-family: "Work Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #57534E;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    border: 2px solid #1C1917;
    padding: 6px 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Opened 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;
    padding: 9px 0px;
    color: #1C1917;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #E7E1D8;
}

/* Hover underline in rust. */
.site-nav a:hover {
    text-decoration: underline;
    text-decoration-color: #B23B0A;
    text-decoration-thickness: 3px;
}

/* Concept note. */
.concept-note {
    background-color: #F1E9DD;
    font-size: 0.85rem;
    text-align: center;
    padding: 5px 16px;
}

/* ----- Hero (class) ----- */

/* Phone hero: text then photo. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 40px 20px 0px 20px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.2rem);
    margin-bottom: 18px;
}

/* A highlighter-style paint stroke behind part of the headline, drawn
   with a gradient that only covers the lower part of the text. */
.stroke {
    background-image: linear-gradient(transparent 55%, #F6C9A8 55%, #F6C9A8 92%, transparent 92%);
}

/* Hero paragraph. */
.hero-text > p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Rust button. */
.button,
button {
    display: inline-block;
    background-color: #B23B0A;
    color: #FFFFFF;
    border: none;
    padding: 13px 24px;
    font-family: "Work Sans", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 5px 5px 0px #1C1917;
}

/* Button presses in on hover. */
.button:hover,
button:hover {
    box-shadow: 2px 2px 0px #1C1917;
    transform: translate(3px, 3px);
}

/* "or call" line. */
.hero .call {
    margin-top: 14px;
    font-weight: 600;
}

/* Photo with a wavy, dripping bottom edge cut by clip-path. */
.hero-photo {
    width: 100%;
    height: 360px;
    object-fit: cover;
    clip-path: polygon(0% 0%, 100% 0%, 100% 88%, 94% 92%, 88% 87%, 80% 95%, 72% 89%, 63% 100%, 55% 90%, 46% 94%, 38% 87%, 29% 97%, 20% 89%, 11% 93%, 0% 86%);
}

/* ----- Color ideas (class) ----- */

/* Teal band for the color section. */
.colors {
    background-color: #0F766E;
    color: #FFFFFF;
    padding: 56px 20px 80px 20px;
    overflow: hidden;
}

/* Light intro text on teal. */
.colors .lead {
    color: #E6F4F1;
}

/* Swatch fan photo. */
.swatch-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: 6px solid #FFFFFF;
    margin-bottom: 30px;
}

/* The fan holds the cards. On phones they simply wrap. */
.fan {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* One swatch card, like a paint store chip. */
.swatch {
    flex: 1 1 140px;
    background-color: #FFFFFF;
    color: #1C1917;
    padding: 10px 10px 14px 10px;
    box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s;
}

/* The big color block at the top of each card. */
.chip {
    height: 110px;
    margin-bottom: 10px;
}

/* Swatch name. */
.swatch h3 {
    font-size: 1.15rem;
}

/* Swatch description. */
.swatch p {
    font-size: 0.85rem;
}

/* Ozark Fog. */
.swatch-1 .chip {
    background-color: #C9C4BC;
}

/* Creek Stone. */
.swatch-2 .chip {
    background-color: #B5A893;
}

/* Cedar Glade. */
.swatch-3 .chip {
    background-color: #7D8B6A;
}

/* Barn Door. */
.swatch-4 .chip {
    background-color: #8E3B22;
}

/* Table Rock. */
.swatch-5 .chip {
    background-color: #24425A;
}

/* ----- Process (ID and class) ----- */

/* Section spacing. */
#process {
    padding: 56px 20px;
}

/* The ordered list starts a counter named "step". */
.steps {
    list-style: none;
    counter-reset: step;
    margin: 24px 0px;
}

/* Each step adds one to the counter and leaves room for the number. */
.steps li {
    counter-increment: step;
    position: relative;
    padding: 0px 0px 22px 74px;
}

/* The number, drawn from the counter in a big rust circle. */
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0px;
    top: 0px;
    width: 54px;
    height: 54px;
    line-height: 54px;
    text-align: center;
    border-radius: 50%;
    background-color: #B23B0A;
    color: #FFFFFF;
    font-family: Fraunces, serif;
    font-size: 1.6rem;
    font-weight: 800;
}

/* Step title. */
.steps h3 {
    font-size: 1.35rem;
}

/* After photo with a thick frame. */
.after img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 8px solid #FFFFFF;
    box-shadow: 0px 8px 22px rgba(28, 25, 23, 0.18);
}

/* Caption under the after photo. */
.after figcaption {
    font-size: 0.9rem;
    color: #57534E;
    margin-top: 8px;
}

/* ----- Estimate (class) ----- */

/* Warm band for the estimate. */
.estimate {
    display: flex;
    flex-direction: column;
    gap: 26px;
    background-color: #F1E9DD;
    padding: 56px 20px;
}

/* Roller photo under the intro. */
.estimate-intro img {
    margin-top: 20px;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* White form card with a hard shadow like the buttons. */
.estimate-form {
    background-color: #FFFFFF;
    border: 2px solid #1C1917;
    box-shadow: 8px 8px 0px #1C1917;
    padding: 22px;
}

/* Inside / outside radio group. */
.estimate-form fieldset {
    border: none;
    margin-bottom: 6px;
}

/* Legend and labels in bold. */
.estimate-form legend,
.estimate-form > label {
    display: block;
    font-weight: 600;
    margin-top: 12px;
}

/* Radio labels sit in a row. */
.estimate-form fieldset label {
    display: inline-block;
    margin: 6px 16px 0px 0px;
}

/* Rust radio buttons. */
.estimate-form input[type="radio"] {
    accent-color: #B23B0A;
    width: 18px;
    height: 18px;
}

/* Text, number and select fields. */
.estimate-form input[type="text"],
.estimate-form input[type="tel"],
.estimate-form input[type="number"],
.estimate-form select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 2px solid #A8A29E;
    font-family: "Work Sans", sans-serif;
    font-size: 1rem;
    background-color: #FFFFFF;
}

/* Space above the button. */
.estimate-form button {
    margin-top: 20px;
}

/* ----- Footer (class) ----- */

/* Charcoal footer. */
.site-footer {
    background-color: #1C1917;
    color: #E7E1D8;
    text-align: center;
    font-size: 0.85rem;
    padding: 22px 20px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller hero photo. */
    .hero-photo {
        height: 420px;
    }

    /* Taller roller photo. */
    .estimate-intro img {
        height: 280px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Wider side padding. */
    .hero,
    .colors,
    #process,
    .estimate {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* The fan: cards overlap and rotate out from a point below them,
       like a paint deck spread in your hand. */
    .fan {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0px;
        padding-top: 30px;
    }

    /* Cards overlap and pivot from below. */
    .swatch {
        flex: 0 0 170px;
        margin-left: -40px;
        transform-origin: 50% 160%;
    }

    /* First card has no overlap. */
    .swatch-1 {
        margin-left: 0px;
        transform: rotate(-16deg);
    }

    /* Second card. */
    .swatch-2 {
        transform: rotate(-8deg);
    }

    /* Middle card stays straight. */
    .swatch-3 {
        transform: rotate(0deg);
    }

    /* Fourth card. */
    .swatch-4 {
        transform: rotate(8deg);
    }

    /* Last card. */
    .swatch-5 {
        transform: rotate(16deg);
    }

    /* Hovering a card lifts it to the front and straightens it. */
    .swatch:hover {
        transform: rotate(0deg) translateY(-24px);
        position: relative;
        z-index: 2;
    }

    /* Estimate intro and form side by side. */
    .estimate {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Each half of the estimate band. */
    .estimate-intro,
    .estimate-form {
        flex: 1 1 50%;
    }
}

/* ----- 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: 28px;
        padding-top: 0px;
    }

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
    }

    /* Hero becomes two columns, photo bleeding to the right edge. */
    .hero {
        flex-direction: row;
        align-items: center;
        padding-right: 0px;
        padding-top: 0px;
    }

    /* Text column. */
    .hero-text {
        flex: 1 1 48%;
        padding: 40px 0px;
    }

    /* Photo column, full height. */
    .hero-photo {
        flex: 1 1 52%;
        width: 52%;
        height: 600px;
    }

    /* Color text on the left, fan on the right. */
    .colors {
        display: flex;
        align-items: center;
        gap: 40px;
    }

    /* Text column. */
    .colors-text {
        flex: 0 0 34%;
    }

    /* Fan column. */
    .fan {
        flex: 1 1 auto;
    }

    /* Steps and after photo side by side. */
    #process {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        column-gap: 48px;
    }

    /* Heading on its own row. */
    #process h2 {
        flex: 1 1 100%;
    }

    /* Steps column. */
    .steps {
        flex: 1 1 50%;
    }

    /* Photo column. */
    .after {
        flex: 1 1 40%;
        margin-top: 24px;
    }

    /* Taller after photo. */
    .after img {
        height: 440px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content; the hero keeps its photo to the edge. */
    .header-inner,
    .colors,
    #process,
    .estimate {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Hero text lines up with the rest of the page. */
    .hero {
        padding-left: calc((100% - 1140px) / 2);
    }

    /* Slightly larger swatch cards. */
    .swatch {
        flex: 0 0 185px;
    }
}
