/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Whitfield & Hale Law Office (fictional business)
    Filename:   styles.css

    Theme: an old county law library. The header is a charcoal portico
    with faint columns (repeating gradients) and a round embossed seal
    with the firm's initials. Nav entries are numbered in Roman numerals.
    The hero sets the headline like a large quotation beside a photo in
    a gilt frame. Practice areas are a book's table of contents with
    chapter numerals and dotted page leaders. The process is marked with
    section signs (§) down a rule. Questions open with details/summary,
    and the consultation form sits on a yellow legal pad.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #18181B text on #FAFAF9 page (17.5:1)
      #A64D08 copper accents as text (5.6:1)
      #FFFFFF on #27272A header (15.1:1)
      #E7C9A0 seal and nav text on #27272A (10.5:1)
      #18181B on #FEF3A6 legal pad (16.6:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Off-white page and near-black text. */
body {
    background-color: #FAFAF9;
    color: #18181B;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Headings in the book serif. */
h1,
h2,
h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
}

/* Links in copper. */
a {
    color: #A64D08;
}

/* Copper outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
.menu-check:focus-visible + .seal-row .menu-icon {
    outline: 3px solid #A64D08;
    outline-offset: 3px;
}

/* ----- Portico header (class) ----- */

/* Charcoal band with faint columns. */
.portico {
    background-color: #27272A;
    background-image: repeating-linear-gradient(90deg, transparent 0px, transparent 60px, rgba(255, 255, 255, 0.04) 60px, rgba(255, 255, 255, 0.04) 74px);
    color: #FFFFFF;
    border-bottom: 4px solid #B45309;
}

/* Hidden checkbox that keeps keyboard focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Seal, name, and menu in a row. */
.seal-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
}

/* Round embossed seal with the initials. */
.seal {
    flex: 0 0 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid #E7C9A0;
    box-shadow: inset 0px 0px 0px 4px #27272A, inset 0px 0px 0px 6px #E7C9A0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #E7C9A0;
}

/* The ampersand smaller and italic. */
.seal span {
    font-style: italic;
    font-size: 0.8em;
    margin: 0px 1px;
}

/* Firm name. */
.firm {
    flex: 1 1 auto;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.05;
}

/* Second line in small caps. */
.firm span {
    display: block;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #E7C9A0;
}

/* Menu button. */
.menu-icon {
    color: #E7C9A0;
    font-weight: 600;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.docket-nav {
    display: none;
}

/* Open menu shows the docket. */
.menu-check:checked ~ .docket-nav {
    display: block;
}

/* Numbered entries. */
.docket-nav ul {
    list-style: none;
    padding: 0px 20px 12px 20px;
}

/* Each entry. */
.docket-nav a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.2rem;
    padding: 6px 0px;
    border-bottom: 1px solid rgba(231, 201, 160, 0.3);
}

/* Hover underline in gold. */
.docket-nav a:hover {
    color: #E7C9A0;
    text-decoration: underline;
}

/* Concept caveat. */
.caveat {
    font-size: 0.78rem;
    color: #E7C9A0;
    padding: 4px 20px 6px 20px;
    border-top: 1px solid rgba(231, 201, 160, 0.3);
}

/* ----- Opening (class) ----- */

/* Quote then framed photo on phones. */
.opening {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px 20px;
}

/* Big quote with a hanging quotation mark. */
.opening blockquote {
    position: relative;
    padding-left: 34px;
    border-left: 2px solid #B45309;
}

/* The opening quote mark. */
.opening blockquote::before {
    content: "\201C";
    position: absolute;
    left: -6px;
    top: -36px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 6rem;
    color: #B45309;
    line-height: 1;
}

/* Headline set like a quotation. */
.opening h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 16px;
}

/* Quote paragraph. */
.opening blockquote p {
    max-width: 36rem;
}

/* Gilt frame around the photo. */
.framed {
    padding: 12px;
    background-image: linear-gradient(135deg, #C8A165, #F1DDB1, #A87B3A, #E9CC93);
    box-shadow: 0px 10px 24px rgba(0, 0, 0, 0.2);
}

/* Photo inside the frame. */
.framed img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border: 3px solid #27272A;
}

/* Brass plate caption. */
.framed figcaption {
    background-color: #27272A;
    color: #E7C9A0;
    font-size: 0.85rem;
    text-align: center;
    padding: 6px;
    margin-top: 10px;
}

/* ----- Contents (class) ----- */

/* Tinted band; book then photo on phones. */
.practice {
    display: flex;
    flex-direction: column;
    gap: 26px;
    background-color: #EBEBEB;
    padding: 56px 20px;
}

/* The book page with a spine shadow on its left edge. */
.book {
    background-color: #FFFEF8;
    padding: 30px 24px;
    box-shadow: inset 14px 0px 16px -10px rgba(0, 0, 0, 0.3), 0px 6px 16px rgba(0, 0, 0, 0.12);
}

/* "Contents" centered like a book page. */
.book h2 {
    text-align: center;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 1.8rem;
}

/* Subtitle under Contents. */
.sub {
    text-align: center;
    font-style: italic;
    margin-bottom: 18px;
}

/* Contents list. */
.toc {
    list-style: none;
}

/* One chapter: numeral, title with dotted leader, page. */
.toc li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0px;
}

/* Roman numeral. */
.ch {
    flex: 0 0 34px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    color: #A64D08;
}

/* Title grows and carries the dotted leader. */
.topic {
    flex: 1 1 auto;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    border-bottom: 2px dotted #676768;
}

/* Fee note under the title. */
.topic em {
    display: block;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    font-style: normal;
    color: #676768;
}

/* About how long it takes, at the end of the dotted leader. */
.pg {
    flex: 0 0 4.5em;
    text-align: right;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Sample note. */
.note {
    font-size: 0.85rem;
    color: #676768;
    margin-top: 12px;
}

/* Signing photo. */
.signing {
    width: 100%;
    height: 260px;
    object-fit: cover;
    filter: grayscale(0.4);
}

/* ----- Process (ID) ----- */

/* Section spacing. */
#process {
    padding: 56px 20px;
}

/* Sections down a rule. */
.sections {
    list-style: none;
    margin: 18px 0px 24px 0px;
}

/* One section: sign then text. */
.sections li {
    display: flex;
    gap: 18px;
    padding: 14px 0px;
    border-top: 1px solid #D8D8D8;
}

/* The section sign in copper. */
.sec {
    flex: 0 0 64px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    font-size: 2rem;
    color: #A64D08;
    line-height: 1;
}

/* Section title. */
.sections h3 {
    font-size: 1.5rem;
}

/* Handshake photo. */
.hands {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ----- Questions (class) ----- */

/* Charcoal band. */
.questions {
    background-color: #27272A;
    color: #FFFFFF;
    padding: 56px 20px;
}

/* One question. */
.questions details {
    border-bottom: 1px solid rgba(231, 201, 160, 0.4);
    padding: 12px 0px;
}

/* Question line. */
.questions summary {
    cursor: pointer;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #E7C9A0;
}

/* Answer text. */
.questions details p {
    padding-top: 8px;
    max-width: 44rem;
}

/* ----- Consultation (class) ----- */

/* Photo then pad on phones. */
.consult {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 20px 60px 20px;
}

/* Courthouse photo. */
.consult > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Yellow legal pad: blue lines, red margin, binding at the top. */
.pad {
    background-color: #FEF3A6;
    background-image: linear-gradient(90deg, transparent 40px, #E57373 40px, #E57373 42px, transparent 42px), repeating-linear-gradient(180deg, transparent 0px, transparent 29px, #9DBBDD 29px, #9DBBDD 30px);
    border-top: 22px solid #7F1D1D;
    padding: 20px 20px 24px 56px;
    box-shadow: 0px 8px 18px rgba(0, 0, 0, 0.15);
}

/* No fieldset border. */
.pad fieldset {
    border: none;
}

/* Pad title. */
.pad legend {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    font-size: 1.8rem;
}

/* Labels. */
.pad label {
    display: block;
    font-weight: 600;
}

/* Fields drawn as blanks on the pad. */
.pad input,
.pad select {
    width: 100%;
    font: inherit;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    border-bottom: 2px solid #18181B;
    padding: 6px 8px;
    margin: 2px 0px 14px 0px;
}

/* Charcoal button with a copper underline. */
button {
    background-color: #27272A;
    color: #FFFFFF;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-bottom: 4px solid #B45309;
    padding: 11px 22px;
    cursor: pointer;
}

/* Button hover. */
button:hover {
    background-color: #B45309;
}

/* ----- Colophon (class) ----- */

/* Small footer with the disclaimer in italics. */
.colophon {
    border-top: 6px double #27272A;
    padding: 26px 20px;
    font-size: 0.82rem;
    text-align: center;
    color: #676768;
}

/* Disclaimer line. */
.disclaimer {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #18181B;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller framed photo. */
    .framed img {
        height: 360px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Book beside the photo. */
    .practice {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Book column. */
    .book {
        flex: 1 1 62%;
    }

    /* Photo column. */
    .signing {
        width: 34%;
        height: 480px;
    }

    /* Photo beside the pad. */
    .consult {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .consult > img,
    .pad {
        flex: 1 1 50%;
        min-width: 0px;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Docket always showing as a centered row. */
    .docket-nav {
        display: block;
    }

    /* Entries in a row. */
    .docket-nav ul {
        display: flex;
        justify-content: center;
        gap: 28px;
        padding-bottom: 8px;
    }

    /* No divider lines between desktop entries. */
    .docket-nav a {
        border-bottom: none;
    }

    /* Quote beside the frame. */
    .opening {
        flex-direction: row;
        align-items: center;
        padding: 80px 60px;
    }

    /* Quote column. */
    .opening blockquote {
        flex: 1 1 58%;
    }

    /* Frame column. */
    .framed {
        flex: 0 0 380px;
    }

    /* Process steps beside the photo. */
    #process {
        display: flex;
        flex-wrap: wrap;
        gap: 0px 50px;
        padding-left: 60px;
        padding-right: 60px;
    }

    /* Title spans the row. */
    #process h2 {
        flex: 1 1 100%;
    }

    /* Steps column. */
    .sections {
        flex: 1 1 55%;
    }

    /* Photo column. */
    .hands {
        flex: 1 1 35%;
        width: 35%;
        height: 420px;
        margin-top: 18px;
    }

    /* Wider padding. */
    .questions {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .seal-row,
    .opening,
    .practice,
    #process,
    .questions,
    .consult {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
