/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Ironclad Roofing (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first contractor layout. Base rules are the phone
    layout; media queries at 576px, 768px, 992px and 1200px add to it.
    Flexbox for layout, a sticky header, a checkbox hamburger menu, and
    <details> elements for the FAQ (they open and close with no JavaScript).

    Colors (WebAIM checked, AA):
      #13263D navy   #3A5370 steel   #C2410C orange   #E9EFF5 sky   #5C6B7A grey text
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* White page, dark slate text, Barlow body font. */
body {
    background-color: #FFFFFF;
    color: #1B2633;
    font-family: Barlow, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Condensed capital headings, the "contractor sign" look. */
h1,
h2,
h3 {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
}

/* Section titles in navy. */
h2 {
    color: #13263D;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    margin: 6px 0px 14px 0px;
}

/* Orange focus ring for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #C2410C;
    outline-offset: 3px;
}

/* Small orange label above section titles. */
.kicker {
    color: #C2410C;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ----- Concept banner (class) ----- */

/* Orange strip labeling the concept. */
.concept-banner {
    background-color: #C2410C;
    color: #FFFFFF;
    text-align: center;
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* ----- Header (class) ----- */

/* position: sticky keeps the header pinned to the top while scrolling,
   so the phone number is always one tap away. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 10;
    background-color: #FFFFFF;
    border-bottom: 1px solid #13263D1F;
}

/* The thin navy info bar is hidden on phones (no room); shown at 992px. */
.utility-bar {
    display: none;
}

/* Logo, menu button and phone in one row; nav drops below when opened. */
.main-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
}

/* Business name with an orange house icon. */
.logo {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #13263D;
    text-transform: uppercase;
}

/* The house icon in orange. */
.logo i {
    color: #C2410C;
}

/* Hidden checkbox that stays keyboard-focusable. */
.menu-check {
    position: absolute;
    opacity: 0;
}

/* Visible menu button: icon plus the word Menu. */
.menu-icon {
    border: 1px solid #13263D44;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Nav hidden on phones until the menu checkbox is checked. */
.site-nav {
    display: none;
    flex-basis: 100%;
}

/* Show the nav when the checkbox is checked. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets in the nav list. */
.site-nav ul {
    list-style: none;
}

/* Full-width phone menu links. */
.site-nav a {
    display: block;
    padding: 12px 0px;
    border-top: 1px solid #13263D1F;
    color: #13263D;
    font-weight: 500;
    text-decoration: none;
}

/* Orange text on hover. */
.site-nav a:hover {
    color: #C2410C;
    text-decoration: underline;
}

/* The header phone line is hidden on phones; shown at 576px. */
.header-phone {
    display: none;
}

/* ----- Hero (class) ----- */

/* Roofer photo behind a dark navy layer so white text passes contrast.
   Stacked text then form on phones. */
.hero {
    background-color: #13263D;
    background-image: linear-gradient(90deg, #0C1828F2 0%, #0C1828D9 60%, #0C1828A6 100%), url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* See-through badge with the storm note. */
.badge {
    display: inline-block;
    background-color: #FFFFFF14;
    border: 1px solid #FFFFFF33;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.9rem;
    margin: 0px 0px 20px 0px;
}

/* Big uppercase headline. */
.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
}

/* "Ozarks weather." in orange-light for emphasis (passes on navy). */
.hero h1 span {
    color: #FB923C;
}

/* Intro paragraph in a light blue-grey. */
.lead {
    font-size: 1.2rem;
    color: #DBE4EE;
    margin: 18px 0px 24px 0px;
}

/* Checklist with orange check icons. */
.checks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Orange check icons. */
.checks i {
    color: #FB923C;
    margin: 0px 8px 0px 0px;
}

/* White form card with an orange top edge. */
.inspection-form {
    background-color: #FFFFFF;
    color: #1B2633;
    border-radius: 8px;
    border-top: 6px solid #C2410C;
    padding: 26px;
    box-shadow: 0px 30px 70px #00000066;
}

/* Form title in navy, a little smaller than section titles. */
.inspection-form h2 {
    font-size: 1.8rem;
    margin: 0px;
}

/* Grey helper lines inside the form. */
.inspection-form p {
    color: #5C6B7A;
    font-size: 0.95rem;
}

/* Labels above each field. */
.inspection-form label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 12px 0px 4px 0px;
}

/* Fields with rounded corners. */
.inspection-form input,
.inspection-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #8A9AAB;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

/* Big orange submit button. */
.inspection-form button {
    width: 100%;
    margin: 18px 0px 8px 0px;
    background-color: #C2410C;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Darker orange on hover. */
.inspection-form button:hover {
    background-color: #9A3412;
}

/* The "no obligation" note centered under the button. */
.small {
    text-align: center;
    font-size: 0.85rem;
}

/* ----- Trust strip (class) ----- */

/* Light blue strip with four facts, two per row on phones. */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    background-color: #E9EFF5;
    padding: 20px;
    gap: 16px;
}

/* One fact; flex-basis 40% gives two per row with the gap. */
.trust-strip li {
    flex: 1 1 40%;
    font-size: 0.9rem;
    color: #5C6B7A;
    line-height: 1.3;
}

/* The bold word of each fact. */
.trust-strip strong {
    display: block;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.8rem;
    color: #13263D;
}

/* ----- Inspection report (ID and class) ----- */

/* Space around the report section. */
#report {
    padding: 60px 20px;
}

/* The intro text block. */
.report-intro {
    margin: 0px 0px 32px 0px;
}

/* The sample report card with a soft shadow. */
.report-card {
    border: 1px solid #13263D1F;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 30px 60px #13263D1C;
}

/* Navy title bar of the report, with the sample note on the right. */
.report-header {
    display: flex;
    justify-content: space-between;
    background-color: #13263D;
    color: #FFFFFF;
    font-family: Barlow, sans-serif;
    font-size: 0.95rem;
    text-transform: none;
    padding: 14px 18px;
}

/* The sample note in normal weight. */
.report-header span {
    font-weight: 400;
}

/* One finding: photo on the left, notes on the right. */
.finding {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #13263D14;
}

/* Small fixed-size thumbnail. */
.finding img {
    width: 96px;
    height: 76px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 6px;
}

/* Finding title. */
.finding h4 {
    color: #13263D;
    font-size: 1rem;
}

/* Finding description. */
.finding p {
    color: #5C6B7A;
    font-size: 0.9rem;
}

/* Small rounded severity label. The words carry the meaning; the colors
   back them up. The color rules below start with .finding so they are
   more specific than ".finding p" and win over its grey text color. */
.severity {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin: 4px 0px 0px 0px;
}

/* Red-tinted "Replace" label. */
.finding .severity-high {
    background-color: #FDE3D9;
    color: #9A3412;
}

/* Yellow-tinted "Repair" label. */
.finding .severity-mid {
    background-color: #FFF1CC;
    color: #7A5600;
}

/* Green-tinted "Good" label. */
.finding .severity-ok {
    background-color: #DCF0E2;
    color: #1E6B38;
}

/* The four-step process, two per row on phones. */
.process {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 40px 0px 0px 0px;
}

/* One step with a hairline on the left. */
.process li {
    flex: 1 1 50%;
    padding: 20px 16px;
    border-left: 1px solid #13263D1F;
}

/* Step title in navy. */
.process h3 {
    color: #13263D;
    font-size: 1.4rem;
}

/* Step description in grey. */
.process p {
    color: #5C6B7A;
    font-size: 0.95rem;
}

/* ----- Services tiles (ID and class) ----- */

/* On the light blue band the orange label is darkened to #9A3412 so it
   keeps 4.5:1 contrast. */
#services .kicker {
    color: #9A3412;
}

/* Light blue band behind the service tiles. */
#services {
    background-color: #E9EFF5;
    padding: 60px 20px;
}

/* Tiles stack on phones, three per row at 768px. */
.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0px 0px 0px;
}

/* A plain white tile. min-height keeps the rows even. */
.tile {
    flex: 1 1 100%;
    min-height: 170px;
    background-color: #FFFFFF;
    border: 1px solid #13263D1F;
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Tile title. */
.tile h3 {
    color: #13263D;
    font-size: 1.6rem;
}

/* Tile description. */
.tile p {
    color: #5C6B7A;
}

/* Photo tiles: the photo is a background behind a dark layer so the
   white text stays readable. */
.tile-photo {
    min-height: 240px;
    background-size: cover;
    background-position: center;
    border: none;
}

/* White text on the photo tiles. */
.tile-photo h3,
.tile-photo p {
    color: #FFFFFF;
}

/* Replacement tile photo. */
.tile-replace {
    background-image: linear-gradient(0deg, #13263DE6 10%, #13263D66 100%), url("images/photo-1.jpg");
}

/* Storm repair tile photo. */
.tile-storm {
    background-image: linear-gradient(0deg, #13263DE6 10%, #13263D66 100%), url("images/hero.jpg");
}

/* Metal roofing tile photo. */
.tile-metal {
    background-image: linear-gradient(0deg, #13263DE6 10%, #13263D66 100%), url("images/photo-3.jpg");
}

/* ----- FAQ (ID and element) ----- */

/* Space around the FAQ. */
#faq {
    padding: 60px 20px;
}

/* Each question has a line under it. */
details {
    border-bottom: 1px solid #13263D1F;
    padding: 18px 0px;
}

/* The question row: the text on the left and a +/- sign on the right. */
summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.15rem;
    color: #13263D;
    list-style: none;
}

/* Hide the default triangle in Safari, since a + sign replaces it. */
summary::-webkit-details-marker {
    display: none;
}

/* The plus sign shown while the answer is closed. */
summary::after {
    content: "+";
    color: #C2410C;
    font-size: 1.6rem;
    line-height: 1;
}

/* A minus sign while the answer is open. */
details[open] summary::after {
    content: "\2013";
}

/* The answer text. */
details p {
    color: #5C6B7A;
    margin: 10px 0px 0px 0px;
}

/* ----- Storm call to action (ID) ----- */

/* Orange band with the storm phone number. */
#storm {
    background-color: #C2410C;
    color: #FFFFFF;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

/* White title on orange. */
#storm h2 {
    color: #FFFFFF;
    margin: 0px;
}

/* Navy phone button. */
#storm a {
    background-color: #13263D;
    color: #FFFFFF;
    padding: 0.6em 1.2em;
    border-radius: 6px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
}

/* Black on hover. */
#storm a:hover {
    background-color: #000000;
}

/* ----- Footer (class) ----- */

/* Navy footer with light grey text. */
.site-footer {
    background-color: #13263D;
    color: #B8C6D4;
    font-size: 0.875rem;
    padding: 26px 20px;
}

/* ===== Small screens and up: 576px ===== */

@media (min-width: 576px) {

    /* Show the phone number in the header. */
    .header-phone {
        display: block;
        text-align: right;
        font-size: 0.8rem;
        color: #5C6B7A;
        line-height: 1.2;
    }

    /* The number itself is big and orange. */
    .header-phone a {
        display: block;
        font-family: "Barlow Condensed", sans-serif;
        font-size: 1.5rem;
        font-weight: 800;
        color: #C2410C;
        text-decoration: none;
    }

    /* Checklist becomes two columns. */
    .checks {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Two checklist items per row. */
    .checks li {
        flex-basis: 45%;
    }
}

/* ===== Medium screens and up: 768px ===== */

@media (min-width: 768px) {

    /* Four facts in one row. */
    .trust-strip li {
        flex-basis: 20%;
    }

    /* Four process steps in one row. */
    .process li {
        flex-basis: 25%;
    }

    /* Three service tiles per row. */
    .tile {
        flex-basis: 30%;
    }

    /* Footer lines spread to the edges. */
    .site-footer {
        display: flex;
        justify-content: space-between;
    }
}

/* ===== Large screens and up: 992px ===== */

@media (min-width: 992px) {

    /* Show the navy info bar above the main header row. */
    .utility-bar {
        display: flex;
        justify-content: space-between;
        background-color: #13263D;
        color: #C6D3E1;
        font-size: 0.85rem;
        padding: 8px 4vw;
    }

    /* Hide the menu button. */
    .menu-icon {
        display: none;
    }

    /* Nav sits in the header row. */
    .site-nav {
        display: block;
        flex-basis: auto;
    }

    /* Links in a row. */
    .site-nav ul {
        display: flex;
        gap: 28px;
    }

    /* Drop the phone-menu dividers. */
    .site-nav a {
        border-top: none;
        padding: 0px;
    }

    /* Wider padding everywhere. */
    .main-bar,
    .hero,
    #report,
    #services,
    #faq,
    #storm,
    .trust-strip,
    .site-footer {
        padding-left: 4vw;
        padding-right: 4vw;
    }

    /* Hero text and form side by side. */
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 60px;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    /* Text takes more room than the form. */
    .hero-text {
        flex: 1.25 1 0px;
    }

    /* The form column. */
    .inspection-form {
        flex: 0.75 1 0px;
    }

    /* Report intro and card side by side. flex-wrap lets the process
       steps take a full row underneath. */
    #report {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0px 60px;
    }

    /* Intro and card share the first row. */
    .report-intro,
    .report-card {
        flex: 1 1 0px;
        margin: 0px;
    }

    /* Process steps take the whole second row. */
    .process {
        flex-basis: 100%;
    }

    /* FAQ intro and list side by side. */
    #faq {
        display: flex;
        gap: 60px;
    }

    /* The two FAQ columns split the row. */
    .faq-intro,
    .faq-list {
        flex: 1 1 0px;
    }

    /* Storm title and button in one row. */
    #storm {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ===== Extra large screens and up: 1200px ===== */

@media (min-width: 1200px) {

    /* Keep content from stretching too wide on very big screens by
       growing the side padding. */
    .hero,
    #report,
    #services,
    #faq {
        padding-left: 8vw;
        padding-right: 8vw;
    }

    /* More vertical room on big screens. */
    #report,
    #services,
    #faq {
        padding-top: 90px;
        padding-bottom: 90px;
    }
}
