/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Cornerstone Insurance Agency (fictional business)
    Filename:   styles.css

    Theme: the agency's own paperwork. The header is a letterhead with
    a cornerstone mark and manila folder tabs for the nav. The hero is
    a note card from the agent laid over the office photo. "Under one
    umbrella" draws a big umbrella (a half circle with scalloped edge
    from radial-gradients, plus a hooked shaft) with home, auto and farm
    cards under it. Claims are four stacked form pages, each marked
    "Step 1 of 4". The quote uses on/off switches built from
    checkboxes, and the footer reads like a policy's fine print.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #0F1B33 text on #F5F8FF page (16.3:1)
      #1D4ED8 blue links and titles (6.3:1 on the page)
      #FFFFFF on #1D4ED8 buttons (6.7:1)
      #A84E0F orange text (5.2:1)
      #0F1B33 on #F3D9A4 manila tabs (12.0:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Paper-white page with navy text. */
body {
    background-color: #F5F8FF;
    color: #0F1B33;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 1.06rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Headings in the sturdy serif. */
h1,
h2,
h3 {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 900;
    line-height: 1.2;
}

/* Section titles. */
h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 12px;
}

/* Links in blue. */
a {
    color: #1D4ED8;
}

/* Orange outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #F97316;
    outline-offset: 3px;
}

/* ----- Letterhead (class) ----- */

/* White letterhead with a blue rule. */
.letterhead {
    background-color: #FFFFFF;
    border-top: 8px solid #1D4ED8;
}

/* Name, tagline, and menu button. */
.lh-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 14px;
    padding: 14px 20px 10px 20px;
}

/* Agency name with its stone mark. */
.agency {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Merriweather", Georgia, serif;
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 1.05;
}

/* "Insurance Agency" in small caps on a second line. */
.agency span {
    display: block;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1D4ED8;
}

/* Cornerstone mark: a block with a notched corner. */
.stone {
    width: 32px;
    height: 32px;
    background-color: #1D4ED8;
    clip-path: polygon(0% 0%, 100% 0%, 100% 60%, 60% 60%, 60% 100%, 0% 100%);
}

/* Tagline hidden on small phones. */
.since {
    display: none;
    font-style: italic;
    color: #A84E0F;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    font-weight: 700;
    border-bottom: 3px solid #F97316;
    padding: 2px 4px;
    cursor: pointer;
}

/* Tabs hidden on phones until opened. */
.tabs {
    display: none;
}

/* Open menu shows the tabs. */
.menu-check:checked ~ .tabs {
    display: block;
}

/* Tabs as a list of index cards on phones. */
.tabs ul {
    list-style: none;
    padding: 0px 20px 10px 20px;
}

/* Each tab. */
.tabs a {
    display: block;
    background-color: #F3D9A4;
    color: #0F1B33;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 14px;
    margin-bottom: 4px;
    border-radius: 8px 8px 0px 0px;
}

/* Tab hover. */
.tabs a:hover {
    background-color: #E9C47F;
}

/* Concept memo line. */
.memo {
    font-size: 0.8rem;
    background-color: #E4EAFC;
    padding: 4px 20px;
}

/* ----- Hero (class) ----- */

/* Photo then note on phones. */
.hero {
    position: relative;
}

/* Office photo. */
.hero > img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* The agent's note card, lined like a memo pad. */
.note-card {
    position: relative;
    background-color: #FFFFFF;
    background-image: repeating-linear-gradient(180deg, transparent 0px, transparent 27px, #E4EAFC 27px, #E4EAFC 28px);
    border-left: 6px solid #F97316;
    padding: 26px 22px;
    margin: -50px 16px 40px 16px;
    box-shadow: 0px 12px 28px rgba(15, 27, 51, 0.18);
}

/* Headline. */
.note-card h1 {
    font-size: clamp(1.7rem, 5vw, 2.7rem);
    margin-bottom: 12px;
}

/* Note paragraphs. */
.note-card p {
    margin-bottom: 12px;
}

/* Agent's signature line. */
.sig {
    font-family: "Merriweather", Georgia, serif;
    font-style: italic;
    color: #A84E0F;
}

/* Blue button with square corners. */
.cta,
button {
    display: inline-block;
    background-color: #1D4ED8;
    color: #FFFFFF;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    border: 2px solid #1D4ED8;
    padding: 10px 20px;
    margin: 4px 8px 4px 0px;
    cursor: pointer;
}

/* Button hover. */
.cta:hover,
button:hover {
    background-color: #0F1B33;
    border-color: #0F1B33;
}

/* Plain second button. */
.cta-plain {
    background-color: transparent;
    color: #1D4ED8;
}

/* ----- Umbrella (class) ----- */

/* Section spacing. */
.cover {
    padding: 50px 20px 56px 20px;
    text-align: center;
}

/* The umbrella drawing. */
.umbrella {
    position: relative;
    width: 280px;
    height: 170px;
    margin: 10px auto 0px auto;
}

/* Canopy: a half circle with scalloped bottom edge. */
.canopy {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 280px;
    height: 140px;
    border-radius: 140px 140px 0px 0px;
    background-image: repeating-linear-gradient(90deg, #1D4ED8 0px, #1D4ED8 35px, #3B6FF0 35px, #3B6FF0 70px);
    mask-image: radial-gradient(circle 18px at 17.5px 140px, transparent 98%, #000000 100%);
    mask-size: 35px 140px;
}

/* Shaft with a hook at the bottom. */
.shaft {
    position: absolute;
    left: 137px;
    top: 120px;
    width: 18px;
    height: 50px;
    border-right: 6px solid #0F1B33;
    border-bottom: 6px solid #0F1B33;
    border-radius: 0px 0px 12px 0px;
}

/* Cards under the umbrella. */
.under {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
    border-top: 4px dotted #1D4ED8;
    padding-top: 22px;
}

/* One card. */
.thing {
    background-color: #FFFFFF;
    border: 1px solid #D2D7E0;
}

/* Card photo. */
.thing img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

/* Card title. */
.thing h3 {
    font-size: 1.3rem;
    padding: 14px 16px 4px 16px;
}

/* Card text. */
.thing p {
    padding: 0px 16px 16px 16px;
}

/* ----- Claims packet (ID) ----- */

/* Tinted band. */
#claims {
    background-color: #E4EAFC;
    padding: 56px 20px;
}

/* Plain line under the title. */
.plain {
    max-width: 38rem;
    margin-bottom: 24px;
}

/* Stacked pages. */
.packet {
    list-style: none;
}

/* One page with a dog-eared corner. */
.packet li {
    background-color: #FFFFFF;
    background-image: linear-gradient(225deg, #E4EAFC 0px, #E4EAFC 18px, #C7D2EE 18px, #C7D2EE 26px, transparent 26px);
    border: 1px solid #C7D2EE;
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: 4px 4px 0px #C7D2EE;
}

/* "Step 1 of 4" in the page corner. */
.pg {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A84E0F;
}

/* Step name. */
.packet strong {
    display: block;
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.2rem;
}

/* ----- Quote (class) ----- */

/* Section spacing. */
.quote {
    padding: 56px 20px 60px 20px;
}

/* Fieldsets drawn as a bordered form. */
.quote fieldset {
    border: 2px solid #0F1B33;
    padding: 18px 20px;
    margin-bottom: 18px;
    background-color: #FFFFFF;
}

/* Fieldset titles. */
.quote legend {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 900;
    font-size: 1.2rem;
    padding: 0px 8px;
}

/* Tip line. */
.tip {
    color: #A84E0F;
    margin-bottom: 10px;
}

/* Checkboxes hidden but focusable; the label draws a switch. */
.bundle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Switch label: words beside a track. */
.bundle label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    padding: 8px 0px;
    cursor: pointer;
}

/* The switch track with its knob on the left. */
.bundle label::before {
    content: "";
    flex: 0 0 52px;
    height: 28px;
    border-radius: 14px;
    background-color: #D2D7E0;
    background-image: radial-gradient(circle 11px at 14px 50%, #FFFFFF 96%, transparent 100%);
}

/* Switched on: blue track, knob slides right. */
.bundle input:checked + label::before {
    background-color: #1D4ED8;
    background-image: radial-gradient(circle 11px at 38px 50%, #FFFFFF 96%, transparent 100%);
}

/* Keyboard focus on a switch. */
.bundle input:focus-visible + label {
    outline: 3px solid #F97316;
}

/* Contact labels. */
.contact label {
    display: block;
    font-weight: 700;
}

/* Contact fields, underlined like a paper form. */
.contact input {
    width: 100%;
    font: inherit;
    border: none;
    border-bottom: 2px solid #0F1B33;
    background-color: #F5F8FF;
    padding: 8px;
    margin: 2px 0px 14px 0px;
}

/* ----- Fine print footer (class) ----- */

/* Navy footer with small type. */
.fineprint {
    background-color: #0F1B33;
    color: #B0B6C2;
    font-size: 0.82rem;
    padding: 28px 20px;
}

/* "Declarations" heading like a policy page. */
.terms {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-bottom: 1px solid #B0B6C2;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Tagline shows. */
    .since {
        display: block;
    }

    /* Bigger umbrella. */
    .umbrella {
        transform: scale(1.3);
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Three cards under the umbrella. */
    .under {
        flex-direction: row;
    }

    /* Each card a third. */
    .thing {
        flex: 1 1 33%;
    }

    /* Claim pages fan out in a row. */
    .packet {
        display: flex;
        gap: 14px;
    }

    /* Each page a quarter, slightly tilted. */
    .packet li {
        flex: 1 1 25%;
        transform: rotate(-1deg);
    }

    /* Every other page tilts the other way. */
    .packet li:nth-child(even) {
        transform: rotate(1.5deg);
    }

    /* Two fieldsets side by side. */
    .quote form {
        display: flex;
        gap: 20px;
    }

    /* Each fieldset half. */
    .quote fieldset {
        flex: 1 1 50%;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Folder tabs always showing along the bottom of the letterhead. */
    .tabs {
        display: block;
    }

    /* Tabs in a row. */
    .tabs ul {
        display: flex;
        gap: 6px;
        padding-bottom: 0px;
    }

    /* Each tab sits on the letterhead's lower edge. */
    .tabs a {
        margin-bottom: 0px;
        padding: 8px 22px;
    }

    /* Note card floats over the right side of the photo. */
    .hero > img {
        height: 560px;
    }

    /* Card position over the photo. */
    .note-card {
        position: absolute;
        right: 6%;
        top: 60px;
        width: 480px;
        margin: 0px;
    }

    /* Wider padding. */
    .cover,
    #claims,
    .quote {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .lh-row,
    .tabs ul,
    .cover,
    #claims,
    .quote {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
