/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Greenway Lawn & Landscape (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first. On phones the header is a sticky top bar
    with a checkbox hamburger menu. At 992px the header becomes a fixed
    sidebar 260px wide down the left, and the main content is pushed right
    by 260px so they do not overlap (the Nature Conservation lab layout).
    Media queries at 576px, 768px, 992px and 1200px, in ascending order.
    The lawn calendar is a real table so each month and job has a header.

    Colors (WebAIM checked, AA):
      #132611 deep green   #2F7A2A green   #C6F432 lime   #EEF4E8 soft   #4F5D4C muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Soft green page, deep green text, Sora font. */
body {
    background-color: #EEF4E8;
    color: #132611;
    font-family: Sora, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Heavy, tight headings. */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
}

/* Lime focus ring with a dark edge so it shows on light and dark. */
a:focus-visible,
button:focus-visible,
input:focus-visible + span,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #2F7A2A;
    outline-offset: 3px;
}

/* Muted intro under each section title. */
.lead {
    color: #4F5D4C;
    max-width: 34rem;
    margin: 10px 0px 28px 0px;
}

/* Hides a legend on screen but keeps it for screen readers. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
}

/* ----- Header / sidebar (class) ----- */

/* Phone version: a sticky dark bar across the top. */
.sidebar {
    position: sticky;
    top: 0px;
    z-index: 10;
    background-color: #132611;
    color: #D9E6D3;
}

/* Logo, menu button and (when open) the nav. flex-wrap lets the concept
   note and nav take their own full rows. */
.sidebar-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
}

/* White logo with "way" in lime. */
.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
}

/* Lime half of the logo. */
.logo span {
    color: #C6F432;
}

/* The tagline under the logo is hidden on phones; shown in the sidebar. */
.logo small {
    display: none;
}

/* Concept note takes a full row under the logo on phones. order: 5
   moves it after the menu button without changing the HTML. */
.concept-note {
    order: 5;
    flex-basis: 100%;
    font-size: 0.72rem;
    color: #B5C7AF;
}

/* Lime "Concept design" words. */
.concept-note strong {
    color: #C6F432;
}

/* Hidden but keyboard-focusable checkbox. */
.menu-check {
    position: absolute;
    opacity: 0;
}

/* Lime menu button. */
.menu-icon {
    background-color: #C6F432;
    color: #132611;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Nav hidden on phones until the menu is opened. order: 6 puts it after
   the concept note. */
.site-nav {
    display: none;
    order: 6;
    flex-basis: 100%;
}

/* Show the nav when the checkbox is checked. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets. */
.site-nav ul {
    list-style: none;
}

/* Rounded nav links. */
.site-nav a {
    display: block;
    color: #D9E6D3;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
}

/* Lime text on a faint highlight on hover. */
.site-nav a:hover {
    background-color: #FFFFFF14;
    color: #C6F432;
    text-decoration: underline;
}

/* The call box is hidden on phones; it shows in the sidebar at 992px. */
.side-call {
    display: none;
}

/* ----- Main content (class) ----- */

/* min-width: 0 stops wide children (the calendar) from stretching it. */
.content {
    min-width: 0px;
}

/* ----- Hero (class) ----- */

/* Rounded photo card. The dark layer is strongest at the bottom-left
   where the text sits. position: relative anchors the chip. */
.hero {
    position: relative;
    margin: 10px;
    border-radius: 24px;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    background-color: #132611;
    background-image: linear-gradient(10deg, #132611F2 20%, #132611AA 60%, #13261133 100%), url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
}

/* White "All done!" chip. Hidden on phones where it would cover the
   headline; shown at 768px. */
.text-chip {
    display: none;
}

/* Text padding inside the card. */
.hero-text {
    padding: 26px;
}

/* Big headline. */
.hero h1 {
    font-size: clamp(2.4rem, 4.8vw, 4.2rem);
}

/* "Your lawn sharp." in lime on its own line. */
.hero h1 span {
    display: block;
    color: #C6F432;
}

/* Hero paragraph. */
.hero-text > p {
    color: #E3ECDF;
    font-size: 1.05rem;
    max-width: 36rem;
    margin: 14px 0px 22px 0px;
}

/* Lime rounded button. */
.button {
    display: inline-block;
    background-color: #C6F432;
    color: #132611;
    padding: 0.9em 1.4em;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    margin: 0px 6px 10px 0px;
}

/* See-through white second button. */
.button-glass {
    background-color: #FFFFFF2E;
    color: #FFFFFF;
}

/* White on hover. */
.button:hover {
    background-color: #FFFFFF;
    color: #132611;
}

/* ----- Section shared (class) ----- */

/* Space around each section. */
.year,
.plan,
.work {
    padding: 50px 18px;
}

/* ----- Lawn calendar table (ID and class) ----- */

/* The sections the nav links jump to. On phones the sticky top bar would
   cover the section title after a jump, so scroll-margin-top stops the
   page 90px early to leave room for it. */
#year,
#plan,
#work {
    scroll-margin-top: 90px;
}

/* The table sits on a white rounded card. border-collapse: separate with
   border-spacing leaves small gaps between the colored cells.
   table-layout: fixed makes every month column the same width so the
   table fits a 375px phone without scrolling sideways. */
.calendar {
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 20px;
    border-collapse: separate;
    border-spacing: 2px;
    padding: 6px;
    font-size: 0.68rem;
    table-layout: fixed;
}

/* Caption under the calendar. */
.calendar caption {
    caption-side: bottom;
    text-align: left;
    color: #4F5D4C;
    font-size: 0.8rem;
    padding: 10px 0px 0px 0px;
}

/* Month headers in muted bold text, small enough on phones that "Jan"
   fits in a narrow column. */
.calendar thead th {
    color: #4F5D4C;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 4px 0px;
}

/* The first header ("Job") lines up with the job names. */
.calendar thead th:first-child {
    text-align: left;
}

/* Job names on the left of each row. */
.calendar tbody th {
    text-align: left;
    font-weight: 600;
    padding: 4px 6px 4px 0px;
    width: 30%;
}

/* Empty month cells are blank light squares. */
.calendar td {
    height: 26px;
    background-color: #F4F7F1;
    border-radius: 6px;
}

/* A filled month. The text "Yes" is there for screen readers; it is made
   transparent on screen because the colored box shows it visually. */
.calendar td.on {
    color: transparent;
    font-size: 0px;
}

/* Month colors. Each rule starts with .calendar so it is more specific
   than ".calendar td" above and its color wins over the blank fill. */

/* Pruning months in blue. */
.calendar .prune {
    background-color: #7AA7C7;
}

/* Spring cleanup months in tan. */
.calendar .cleanup {
    background-color: #E2CFA4;
}

/* Mulch months in light green. */
.calendar .mulch {
    background-color: #9FD18B;
}

/* Mowing months in green. */
.calendar .mow {
    background-color: #2F7A2A;
}

/* Seeding months in lime. */
.calendar .seed {
    background-color: #C6F432;
}

/* Leaf months in orange. */
.calendar .leaves {
    background-color: #D26A2A;
}

/* ----- Plan builder (ID and class) ----- */

/* Options then the summary card on phones. */
.plan-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* The options box has no border; options stack on phones. */
.options {
    border: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* One option: the real checkbox is hidden visually (but still works with
   the keyboard), and the span next to it is drawn as the card. */
.option {
    flex: 1 1 100%;
    cursor: pointer;
}

/* Hidden checkbox. */
.option input {
    position: absolute;
    opacity: 0;
}

/* The option card, with room on the left for its fake check box. */
.option span {
    display: block;
    position: relative;
    background-color: #FFFFFF;
    border: 2px solid transparent;
    border-radius: 18px;
    padding: 16px 16px 16px 52px;
    font-size: 0.9rem;
    color: #4F5D4C;
}

/* Option name in bold on its own line. */
.option strong {
    display: block;
    color: #132611;
    font-size: 1rem;
}

/* The empty check box drawn before each option. */
.option span::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    width: 22px;
    height: 22px;
    border: 2px solid #4F5D4C;
    border-radius: 7px;
}

/* A ticked option gets a green border and a pale green fill. */
.option input:checked + span {
    border-color: #2F7A2A;
    background-color: #F6FBEF;
}

/* A ticked option's box fills green with a white check mark. */
.option input:checked + span::before {
    content: "\2713";
    background-color: #2F7A2A;
    border-color: #2F7A2A;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 800;
    text-align: center;
    line-height: 18px;
}

/* Dark summary card. */
.summary {
    background-color: #132611;
    color: #FFFFFF;
    border-radius: 22px;
    padding: 26px;
}

/* Summary title. */
.summary h3 {
    font-size: 1.2rem;
}

/* Each chosen service with its price on the right. */
.summary dl div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0px;
    border-bottom: 1px solid #FFFFFF1F;
    font-size: 0.9rem;
    color: #D3E0CD;
}

/* The list sits a little below the title. */
.summary dl {
    margin: 14px 0px;
}

/* Small light notes. */
.small {
    font-size: 0.8rem;
    color: #B5C7AF;
}

/* The monthly total in big lime. */
.total {
    font-size: 2.2rem;
    font-weight: 800;
    color: #C6F432;
    letter-spacing: -0.03em;
}

/* "/ month" smaller. */
.total span {
    font-size: 0.95rem;
}

/* Lime submit button. */
.summary button {
    width: 100%;
    margin: 16px 0px 0px 0px;
    background-color: #C6F432;
    color: #132611;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

/* White on hover. */
.summary button:hover {
    background-color: #FFFFFF;
}

/* ----- Recent work (ID and element) ----- */

/* Photos stack on phones. */
.work-photos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* position: relative anchors the caption on the photo. */
.work-photos figure {
    position: relative;
    flex: 1 1 0px;
    border-radius: 22px;
    overflow: hidden;
}

/* Cropped job photos. */
.work-photos img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* White caption tag in the photo's bottom-left corner. */
.work-photos figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ----- Footer (class) ----- */

/* Muted footer at the bottom of the content column. */
.site-footer {
    color: #4F5D4C;
    font-size: 0.85rem;
    padding: 20px 18px 34px 18px;
}

/* ===== Small screens and up: 576px ===== */

@media (min-width: 576px) {

    /* Two plan options per row. */
    .option {
        flex-basis: 40%;
    }

    /* Bigger calendar text and more room between cells. */
    .calendar {
        font-size: 0.8rem;
        border-spacing: 3px;
        padding: 10px;
    }

    /* Month headers back to the table's own size. */
    .calendar thead th {
        font-size: 0.75rem;
    }
}

/* ===== Medium screens and up: 768px ===== */

@media (min-width: 768px) {

    /* Show the "All done!" chip in the hero's top-right corner. */
    .text-chip {
        display: block;
        position: absolute;
        top: 22px;
        right: 22px;
        background-color: #FFFFFF;
        color: #132611;
        border-radius: 16px;
        padding: 10px 16px;
        font-size: 0.85rem;
        box-shadow: 0px 10px 30px #0000004D;
    }

    /* Bigger hero text area. */
    .hero-text {
        padding: 46px;
    }

    /* Work photos side by side. */
    .work-photos {
        flex-direction: row;
    }

    /* Plan options and summary side by side. */
    .plan-form {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Options take the larger share. */
    .options {
        flex: 1.4 1 0px;
    }

    /* Summary card column; it stays in view while scrolling with sticky. */
    .summary {
        flex: 0.8 1 0px;
        position: sticky;
        top: 90px;
    }

    /* Footer lines at the edges. */
    .site-footer {
        display: flex;
        justify-content: space-between;
    }
}

/* ===== Large screens and up: 992px ===== */

@media (min-width: 992px) {

    /* The header becomes a fixed sidebar down the left side. */
    .sidebar {
        position: fixed;
        top: 0px;
        left: 0px;
        bottom: 0px;
        width: 260px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 28px 22px;
    }

    /* Everything in the sidebar stacks in a column. */
    .sidebar-top {
        display: block;
        padding: 0px;
    }

    /* Bigger logo. */
    .logo {
        font-size: 1.6rem;
    }

    /* Show the tagline under the logo. */
    .logo small {
        display: block;
        font-size: 0.8rem;
        font-weight: 400;
        color: #B5C7AF;
        margin: 4px 0px 0px 0px;
    }

    /* Concept note under the logo. */
    .concept-note {
        margin: 12px 0px 0px 0px;
    }

    /* No menu button; the nav is always open in the sidebar. */
    .menu-icon {
        display: none;
    }

    /* Nav always visible. */
    .site-nav {
        display: block;
        margin: 34px 0px 0px 0px;
    }

    /* Lime call box at the bottom of the sidebar. */
    .side-call {
        display: block;
        background-color: #C6F432;
        color: #132611;
        border-radius: 16px;
        padding: 16px;
        font-size: 0.8rem;
    }

    /* The phone number in big bold. */
    .side-call a {
        display: block;
        color: #132611;
        font-size: 1.2rem;
        font-weight: 800;
        text-decoration: none;
        margin: 2px 0px;
    }

    /* Push the content right by the sidebar's width (260px) so they do
       not overlap. */
    .content {
        margin: 0px 0px 0px 260px;
    }

    /* Bigger hero card. */
    .hero {
        margin: 18px;
        min-height: 560px;
        border-radius: 30px;
    }

    /* Wider section padding. */
    .year,
    .plan,
    .work,
    .site-footer {
        padding-left: 46px;
        padding-right: 46px;
    }

    /* Three plan options per row would be cramped next to the summary,
       so options stay two per row. */
    .option {
        flex-basis: 40%;
    }
}

/* ===== Extra large screens and up: 1200px ===== */

@media (min-width: 1200px) {

    /* Taller work photos. */
    .work-photos img {
        height: 300px;
    }

    /* Bigger calendar text. */
    .calendar {
        font-size: 0.85rem;
    }
}
