/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Ledgerline Tax & Bookkeeping (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, calm and orderly like a good ledger. A sticky
    white header, a hero with a deadline card positioned absolute over the
    photo, a vertical timeline (ordered list with a line drawn by a
    ::before pseudo-element), a checklist that crosses items off with
    :checked + span, and a real pricing table. A print stylesheet at the
    bottom prints only the checklist. Media queries at 576px, 768px, 992px
    and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #0F1E33 ink   #1D4E89 ledger blue   #1F6E43 green (darker than the
      #2E8B57 brand green so small text passes 4.5:1)   #F4F6F9 paper
      #55657A 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, IBM Plex Sans. */
body {
    background-color: #F4F6F9;
    color: #0F1E33;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Serif headings give a professional, printed feel. */
h1,
h2 {
    font-family: "IBM Plex Serif", serif;
    line-height: 1.15;
}

/* Section titles. */
h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

/* Blue underlined links. */
a {
    color: #1D4E89;
}

/* Thick blue focus ring for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible + span,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #1D4E89;
    outline-offset: 3px;
}

/* Muted intro under section titles. */
.lead {
    color: #55657A;
    max-width: 38rem;
    margin: 8px 0px 26px 0px;
}

/* ----- Header (class) ----- */

/* Sticky white header with a thin blue line along the bottom. */
.site-header {
    position: sticky;
    top: 0px;
    z-index: 10;
    background-color: #FFFFFF;
    border-bottom: 3px solid #1D4E89;
}

/* Logo and menu button in one row; nav wraps under on phones. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Logo text. */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "IBM Plex Serif", serif;
    font-size: 1.4rem;
    font-weight: 700;
}

/* The square "L" mark. */
.logo-box {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: #1D4E89;
    color: #FFFFFF;
    border-radius: 4px;
}

/* Small tagline beside the name; hidden on the narrowest phones so the
   Menu button fits on the same row. */
.logo small {
    display: none;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #55657A;
}

/* Menu checkbox hidden with opacity so it stays keyboard reachable. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Visible Menu button. */
.menu-icon {
    background-color: #1D4E89;
    color: #FFFFFF;
    border-radius: 4px;
    padding: 6px 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Nav hidden on phones until the menu is opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Checked menu shows the nav. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* Remove list bullets. */
.site-nav ul {
    list-style: none;
    padding-top: 8px;
}

/* Phone nav links as stacked rows. */
.site-nav a {
    display: block;
    padding: 9px 0px;
    border-top: 1px solid #DDE3EB;
    color: #0F1E33;
    font-weight: 600;
    text-decoration: none;
}

/* Underline on hover. */
.site-nav a:hover {
    text-decoration: underline;
}

/* Concept notice strip. */
.concept-note {
    background-color: #E8EEF6;
    font-size: 0.85rem;
    text-align: center;
    padding: 5px 16px;
}

/* ----- Hero (class) ----- */

/* Phone hero: text over photo. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 20px 56px 20px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    margin-bottom: 16px;
}

/* Hero paragraph. */
.hero-text p {
    max-width: 34rem;
    margin-bottom: 22px;
}

/* Solid blue button. */
.button,
button {
    display: inline-block;
    background-color: #1D4E89;
    color: #FFFFFF;
    border: 2px solid #1D4E89;
    border-radius: 4px;
    padding: 11px 20px;
    margin: 0px 8px 8px 0px;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* Darker on hover. */
.button:hover,
button:hover {
    background-color: #123663;
    border-color: #123663;
}

/* Outline version of the button. */
.button-outline {
    background-color: transparent;
    color: #1D4E89;
}

/* Outline button hover turns white text on blue. */
.button-outline:hover {
    color: #FFFFFF;
}

/* Photo wrapper is the positioning parent for the deadline card. */
.hero-photo {
    position: relative;
    margin-bottom: 24px;
}

/* Photo with rounded corners. */
.hero-photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 6px;
}

/* Deadline card hangs off the bottom-left corner of the photo. */
.deadline-card {
    position: absolute;
    left: 16px;
    bottom: -24px;
    background-color: #FFFFFF;
    border-left: 6px solid #1F6E43;
    border-radius: 4px;
    padding: 10px 16px;
    box-shadow: 0px 10px 24px rgba(15, 30, 51, 0.18);
    font-size: 0.9rem;
}

/* "Next deadline" label. */
.deadline-card span {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1F6E43;
}

/* The big date. */
.deadline-card time {
    display: block;
    font-family: "IBM Plex Serif", serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}

/* ----- Key dates timeline (class) ----- */

/* White band for the dates. */
.dates {
    background-color: #FFFFFF;
    padding: 56px 20px;
}

/* The ordered list is the parent for the drawn line. */
.timeline {
    list-style: none;
    position: relative;
    padding-left: 28px;
}

/* A vertical line down the left side of the list. */
.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-color: #C6D2E1;
}

/* One date. */
.timeline li {
    position: relative;
    padding-bottom: 22px;
}

/* A dot on the line for each date. */
.timeline li::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 3px solid #1D4E89;
}

/* The date itself. */
.timeline time {
    display: block;
    font-weight: 700;
    color: #1D4E89;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* The event name. */
.timeline strong {
    display: block;
    font-size: 1.1rem;
}

/* April 15 gets a filled green dot and a pale green box. */
.timeline .big-day {
    background-color: #E9F4EE;
    border-radius: 4px;
    padding: 10px 12px 12px 12px;
    margin-bottom: 22px;
}

/* Filled dot for the big day. */
.timeline .big-day::before {
    background-color: #1F6E43;
    border-color: #1F6E43;
    top: 16px;
}

/* Green date text for the big day. */
.timeline .big-day time {
    color: #1F6E43;
}

/* ----- Checklist (ID and class) ----- */

/* Section spacing. */
#checklist {
    padding: 56px 20px;
}

/* The three groups stack on phones. */
.lists {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Each group is a white card with a blue top edge. */
.lists fieldset {
    background-color: #FFFFFF;
    border: 1px solid #DDE3EB;
    border-top: 4px solid #1D4E89;
    border-radius: 4px;
    padding: 16px 18px 12px 18px;
}

/* Group title. */
.lists legend {
    font-weight: 700;
    padding: 0px 6px;
    background-color: #FFFFFF;
}

/* Icon beside each group title. */
.lists legend i {
    color: #1D4E89;
    margin-right: 4px;
}

/* One checklist line. */
.lists label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0px;
    border-bottom: 1px dashed #DDE3EB;
    cursor: pointer;
}

/* Bigger green checkboxes. */
.lists input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #1F6E43;
}

/* A ticked item is crossed off and greyed (the tick itself also shows it). */
.lists input:checked + span {
    text-decoration: line-through;
    color: #55657A;
}

/* ----- Pricing table (class) ----- */

/* White band for pricing. */
.pricing {
    background-color: #FFFFFF;
    padding: 56px 20px;
}

/* Lets the table scroll sideways inside its box on very small phones
   instead of making the whole page scroll. */
.table-scroll {
    overflow-x: auto;
}

/* Full-width table with collapsed borders. */
table {
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
}

/* Caption on the left like a heading. */
caption {
    text-align: left;
    font-weight: 700;
    padding-bottom: 8px;
}

/* Header and body cells. */
th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #DDE3EB;
    vertical-align: top;
}

/* Column headings in a blue band. */
thead th {
    background-color: #1D4E89;
    color: #FFFFFF;
}

/* Prices in bold serif. */
.price {
    font-family: "IBM Plex Serif", serif;
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
}

/* The most-picked row is tinted green. */
.popular {
    background-color: #E9F4EE;
}

/* "Most picked" label, so the highlight is not color alone. */
.tag {
    display: inline-block;
    background-color: #1F6E43;
    color: #FFFFFF;
    font-size: 0.7rem;
    border-radius: 3px;
    padding: 1px 6px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ----- Booking (class) ----- */

/* Navy booking band. */
.book {
    display: flex;
    flex-direction: column;
    gap: 26px;
    background-color: #0F1E33;
    color: #E8EEF6;
    padding: 56px 20px;
}

/* White heading on navy. */
.book h2 {
    color: #FFFFFF;
    margin-bottom: 10px;
}

/* Big phone line. */
.phone {
    margin-top: 16px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Light link on navy. */
.phone a {
    color: #FFFFFF;
}

/* The form is a white card. */
.book-form {
    background-color: #FFFFFF;
    color: #0F1E33;
    border-radius: 6px;
    padding: 22px;
}

/* Labels on their own line. */
.book-form label {
    display: block;
    font-weight: 600;
    margin-top: 12px;
}

/* Inputs and select fill the card. */
.book-form input,
.book-form select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid #A9B6C6;
    border-radius: 4px;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
}

/* Submit button spacing. */
.book-form button {
    margin-top: 18px;
    width: 100%;
}

/* ----- Footer (class) ----- */

/* Plain footer. */
.site-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #55657A;
    padding: 22px 20px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Room for the tagline beside the logo again. */
    .logo small {
        display: inline;
    }

    /* Taller hero photo. */
    .hero-photo img {
        height: 380px;
    }

    /* Two-column checklist groups. */
    .lists {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Each group about half the row. */
    .lists fieldset {
        flex: 1 1 45%;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .dates,
    #checklist,
    .pricing,
    .book {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Timeline becomes two columns of dates. */
    .timeline {
        display: flex;
        flex-wrap: wrap;
        column-gap: 40px;
    }

    /* Each date takes half the width. */
    .timeline li {
        flex: 1 1 40%;
    }

    /* The line is replaced by each item's own dots on wide layouts. */
    .timeline::before {
        display: none;
    }

    /* Booking text and form side by side. */
    .book {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Each half of the booking band. */
    .book-text,
    .book-form {
        flex: 1 1 50%;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button on wide screens. */
    .menu-icon {
        display: none;
    }

    /* Nav sits in the header row. */
    .site-nav {
        display: block;
        width: auto;
    }

    /* Links in a row. */
    .site-nav ul {
        display: flex;
        gap: 24px;
        padding-top: 0px;
    }

    /* No dividers on desktop links. */
    .site-nav a {
        border-top: none;
        padding: 4px 0px;
    }

    /* Hero becomes two columns. */
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 50px;
        padding-top: 64px;
        padding-bottom: 80px;
    }

    /* Each hero column. */
    .hero-text,
    .hero-photo {
        flex: 1 1 50%;
    }

    /* Taller photo. */
    .hero-photo img {
        height: 440px;
    }

    /* Timeline in three columns. */
    .timeline li {
        flex: 1 1 26%;
    }

    /* Checklist head and lists side by side. */
    #checklist {
        display: flex;
        gap: 40px;
    }

    /* Narrow heading column. */
    .checklist-head {
        flex: 0 0 280px;
    }

    /* Lists take the rest. */
    .lists {
        flex: 1 1 auto;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center the content at 1140px wide. */
    .header-inner,
    .hero,
    .dates,
    #checklist,
    .pricing,
    .book {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Three checklist groups in one row. */
    .lists fieldset {
        flex: 1 1 30%;
    }
}

/* ----- Print (the checklist only) ----- */

@media print {

    /* Hide everything except the checklist when printing. */
    .site-header,
    .hero,
    .dates,
    .pricing,
    .book,
    .site-footer {
        display: none;
    }

    /* Black on white with no card backgrounds to save ink. */
    body,
    .lists fieldset {
        background-color: #FFFFFF;
        color: #000000;
    }
}
