/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Clear View Home Inspections (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, drafted like a blueprint. The hero sits on
    graph paper made from two repeating-linear-gradients. The house in the
    "what we check" section is drawn with plain boxes: a clip-path roof,
    border-box windows and door, and numbered pins placed with absolute
    positioning that match an ordered list. The full checklist uses
    native <details> and <summary> accordions, with a custom marker that
    turns when a part is open. Report findings carry a word label and an
    icon, so the color is never the only signal. Media queries at 576px,
    768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #1E3A5F navy   #0B1626 ink   #BE123C red (darker than #E11D48
      for small text)   #B45309 amber text   #15803D green text
      #F5F7FA paper   #4B5563 muted
*/

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

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

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

/* Paper background, ink text. */
body {
    background-color: #F5F7FA;
    color: #0B1626;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

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

/* Slab serif headings. */
h1,
h2,
h3 {
    font-family: "Zilla Slab", serif;
    font-weight: 700;
    line-height: 1.1;
    color: #1E3A5F;
}

/* Section titles. */
h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin-bottom: 8px;
}

/* Navy links. */
a {
    color: #1E3A5F;
    font-weight: 600;
}

/* Red focus ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #BE123C;
    outline-offset: 3px;
}

/* Lead paragraph. */
.lead {
    color: #4B5563;
    max-width: 42rem;
    margin-bottom: 26px;
}

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

/* Sticky navy header. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #1E3A5F;
    color: #FFFFFF;
}

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

/* Slab logo. */
.logo {
    font-family: "Zilla Slab", serif;
    font-weight: 700;
    font-size: 1.45rem;
}

/* Logo icon. */
.logo i {
    color: #FDA4AF;
    margin-right: 4px;
}

/* Second logo line. */
.logo small {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #CBD5E1;
    margin-left: 4px;
}

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

/* Menu button. */
.menu-icon {
    border: 1px solid #CBD5E1;
    padding: 4px 12px;
    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;
    font-weight: 400;
    padding: 9px 0px;
    border-top: 1px solid #2F5584;
}

/* Underline on hover. */
.site-nav a:hover {
    text-decoration: underline;
}

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

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

/* Graph paper: thin lines every 24px both ways. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding: 46px 20px 56px 20px;
    background-color: #FFFFFF;
    background-image:
        repeating-linear-gradient(0deg, transparent 0px, transparent 23px, #DCE6F2 23px, #DCE6F2 24px),
        repeating-linear-gradient(90deg, transparent 0px, transparent 23px, #DCE6F2 23px, #DCE6F2 24px);
    border-bottom: 3px double #1E3A5F;
}

/* Rotated red stamp. */
.stamp {
    display: inline-block;
    border: 3px solid #BE123C;
    color: #BE123C;
    font-family: "Zilla Slab", serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 10px;
    transform: rotate(-4deg);
    margin-bottom: 18px;
    background-color: #FFFFFF;
}

/* Hero headline. */
.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    margin-bottom: 14px;
}

/* Hero paragraph on a white backing so the grid doesn't fight the text. */
.hero-text > p:not(.stamp) {
    max-width: 34rem;
    background-color: #FFFFFF;
    margin-bottom: 22px;
}

/* Navy button. */
.button,
button {
    display: inline-block;
    background-color: #1E3A5F;
    color: #FFFFFF;
    border: none;
    padding: 12px 22px;
    margin: 0px 16px 10px 0px;
    font-family: Inter, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

/* Red on hover. */
.button:hover,
button:hover {
    background-color: #BE123C;
}

/* Plain text link with an arrow. */
.text-link {
    display: inline-block;
    padding: 12px 0px;
}

/* Photo with a drafting frame. */
.hero-photo {
    background-color: #FFFFFF;
    border: 2px solid #1E3A5F;
    padding: 8px;
}

/* Hero photo crop. */
.hero-photo img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Title block caption, like a drawing sheet. */
.hero-photo figcaption {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-top: 2px solid #1E3A5F;
    margin-top: 8px;
    padding-top: 6px;
}

/* ----- House diagram (ID and class) ----- */

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

/* Drawing and legend stack on phones. */
.house-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* The drawing is the positioning parent for the pins. */
.drawing {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0px auto;
    padding-top: 20px;
}

/* Chimney sticks out of the roof. */
.chimney {
    position: absolute;
    top: 30px;
    right: 22%;
    width: 30px;
    height: 70px;
    background-color: #94A3B8;
    border: 3px solid #1E3A5F;
}

/* Roof is a triangle cut with clip-path. */
.roof {
    position: relative;
    height: 120px;
    background-color: #1E3A5F;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* Walls hold the windows and door. */
.walls {
    position: relative;
    height: 150px;
    margin: 0px 8%;
    background-color: #FFFFFF;
    border: 3px solid #1E3A5F;
    border-top: none;
}

/* Windows drawn with borders and a cross. */
.window {
    position: absolute;
    top: 26px;
    width: 22%;
    height: 50px;
    border: 3px solid #1E3A5F;
    background-image:
        linear-gradient(90deg, transparent 47%, #1E3A5F 47%, #1E3A5F 53%, transparent 53%),
        linear-gradient(0deg, transparent 46%, #1E3A5F 46%, #1E3A5F 54%, transparent 54%);
    background-color: #DBEAFE;
}

/* Left window. */
.w1 {
    left: 10%;
}

/* Right window. */
.w2 {
    right: 10%;
}

/* Door in the middle. */
.door {
    position: absolute;
    bottom: 0px;
    left: 42%;
    width: 16%;
    height: 80px;
    background-color: #94A3B8;
    border: 3px solid #1E3A5F;
    border-bottom: none;
}

/* Crawlspace band under the house, hatched. */
.crawl {
    height: 34px;
    margin: 0px 6%;
    border: 3px solid #1E3A5F;
    border-top: none;
    background-image: repeating-linear-gradient(45deg, #F5F7FA 0px, #F5F7FA 6px, #CBD5E1 6px, #CBD5E1 8px);
}

/* Round numbered pin. */
.pin {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #BE123C;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-shadow: 0px 2px 6px rgba(11, 22, 38, 0.35);
}

/* Pin 1 on the roof slope. */
.p1 {
    top: 70px;
    left: 26%;
}

/* Pin 2 in the attic. */
.p2 {
    top: 95px;
    left: 48%;
}

/* Pin 3 at the chimney. */
.p3 {
    top: 10px;
    right: 18%;
}

/* Pin 4 by a window. */
.p4 {
    top: 175px;
    left: 4%;
}

/* Pin 5 inside the walls. */
.p5 {
    top: 230px;
    right: 3%;
}

/* Pin 6 at the crawlspace. */
.p6 {
    bottom: 10px;
    left: 47%;
}

/* Legend list numbered to match the pins. */
.legend {
    padding-left: 24px;
}

/* Legend items. */
.legend li {
    padding: 6px 0px 6px 6px;
}

/* Red numbers in the legend. */
.legend li::marker {
    color: #BE123C;
    font-weight: 600;
}

/* ----- Checklist accordions (class) ----- */

/* White band, text and accordions stack on phones. */
.list {
    display: flex;
    flex-direction: column;
    gap: 26px;
    background-color: #FFFFFF;
    padding: 56px 20px;
}

/* Attic photo under the intro. */
.list-text img {
    margin-top: 20px;
    border: 2px solid #1E3A5F;
}

/* Each accordion part. */
.accordions details {
    border: 2px solid #1E3A5F;
    margin-bottom: 10px;
    background-color: #F5F7FA;
}

/* Clickable summary row. */
.accordions summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-family: "Zilla Slab", serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1E3A5F;
    cursor: pointer;
}

/* Hide the default triangle in Safari. */
.accordions summary::-webkit-details-marker {
    display: none;
}

/* Our own plus sign. */
.accordions summary::after {
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s;
}

/* Turns into an x when open. */
.accordions details[open] summary::after {
    transform: rotate(45deg);
}

/* Open part gets a white body. */
.accordions details[open] {
    background-color: #FFFFFF;
}

/* Items inside an open part. */
.accordions ul {
    padding: 0px 16px 14px 36px;
}

/* ----- Sample report (class) ----- */

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

/* Findings stack on phones. */
.findings {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Each finding is a white card with a colored top edge. */
.finding {
    background-color: #FFFFFF;
    border-top: 6px solid #1E3A5F;
    box-shadow: 0px 2px 10px rgba(11, 22, 38, 0.1);
    padding-bottom: 18px;
}

/* Safety findings get a red edge. */
.finding.safety {
    border-top-color: #BE123C;
}

/* Repair findings get an amber edge. */
.finding.repair {
    border-top-color: #B45309;
}

/* Monitor findings get a green edge. */
.finding.monitor {
    border-top-color: #15803D;
}

/* Finding photo. */
.finding img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

/* Finding text indent. */
.finding h3,
.finding p {
    padding: 0px 18px;
}

/* Finding title. */
.finding h3 {
    font-size: 1.3rem;
    margin: 6px 0px 6px 0px;
}

/* Severity label with icon and word. */
.tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 14px;
}

/* Red label word. */
.safety .tag {
    color: #BE123C;
}

/* Amber label word. */
.repair .tag {
    color: #B45309;
}

/* Green label word. */
.monitor .tag {
    color: #15803D;
}

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

/* Navy band, form and table stack on phones. */
.book {
    background-color: #1E3A5F;
    color: #FFFFFF;
    padding: 56px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

/* White title on navy. */
.book h2 {
    color: #FFFFFF;
    flex: 1 1 100%;
}

/* Form takes the full row on phones. */
.book form {
    flex: 1 1 100%;
}

/* Fieldsets with a light border. */
.book fieldset {
    border: 1px solid #5B7AA3;
    padding: 12px 16px 16px 16px;
    margin-bottom: 16px;
}

/* Legends in light pink (on navy only). */
.book legend {
    color: #FDA4AF;
    font-weight: 600;
    padding: 0px 6px;
}

/* Labels above fields. */
.book label {
    display: block;
    margin-top: 10px;
    font-size: 0.92rem;
}

/* Fields full width. */
.book input,
.book select {
    width: 100%;
    font: inherit;
    padding: 9px 10px;
    border: none;
    margin-top: 4px;
}

/* Button turns red on navy. */
.book button {
    background-color: #BE123C;
}

/* White text button hover. */
.book button:hover {
    background-color: #9F1239;
}

/* Fee table. */
.fees {
    flex: 1 1 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    color: #0B1626;
    align-self: flex-start;
}

/* Table caption on navy. */
.fees caption {
    text-align: left;
    color: #FFFFFF;
    font-weight: 600;
    padding-bottom: 8px;
}

/* Table cells. */
.fees th,
.fees td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #CBD5E1;
}

/* Header row. */
.fees thead th {
    background-color: #DBEAFE;
}

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

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

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

@media (min-width: 576px) {

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

    /* Bigger drawing parts. */
    .roof {
        height: 140px;
    }

    /* Roomier summaries. */
    .accordions summary {
        padding: 14px 20px;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    #house,
    .list,
    .report,
    .book {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Drawing and legend side by side. */
    .house-wrap {
        flex-direction: row;
        align-items: center;
    }

    /* Drawing column. */
    .drawing {
        flex: 0 0 380px;
        margin: 0px;
    }

    /* Legend column. */
    .legend {
        flex: 1 1 auto;
    }

    /* Findings in a row of three. */
    .findings {
        flex-direction: row;
    }

    /* Each finding a third. */
    .finding {
        flex: 1 1 33%;
    }

    /* Form wider than the fee table. */
    .book form {
        flex: 1 1 55%;
    }

    /* Table beside the form. */
    .fees {
        flex: 1 1 35%;
    }
}

/* ----- 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;
    }

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

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

    /* Photo column, tilted like a sheet on the desk. */
    .hero-photo {
        flex: 1 1 48%;
        transform: rotate(1.5deg);
    }

    /* Checklist intro beside the accordions. */
    .list {
        flex-direction: row;
        gap: 50px;
    }

    /* Intro column. */
    .list-text {
        flex: 1 1 40%;
    }

    /* Accordion column. */
    .accordions {
        flex: 1 1 60%;
    }
}

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

@media (min-width: 1200px) {

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

    /* Bigger drawing. */
    .drawing {
        flex: 0 0 440px;
    }
}
