/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Hillside Orchard & Market (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, country market. The harvest calendar is a
    small Gantt chart: six month columns, and each crop's bar is placed
    with margin-left (when it starts) and width (how long it lasts) in
    percent of the six months, with the dates written in the bar. The
    farm map is a box with zones positioned absolute by percent; tree
    rows and pumpkins are radial-gradient dot patterns. Prices sit on a
    wooden crate made from repeating gradients. Media queries at 576px,
    768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #2B1A0E barn brown   #B91C1C apple red   #3F6212 leaf (darker than
      #65A30D for text)   #FFF9EF cream   #6B5A48 muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Cream page with barn-brown text. */
body {
    background-color: #FFF9EF;
    color: #2B1A0E;
    font-family: Karla, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Slab serif headings. */
h1,
h2,
h3 {
    font-family: Bitter, serif;
    font-weight: 800;
    line-height: 1.08;
}

/* Section titles. */
h2 {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
}

/* Apple red links. */
a {
    color: #B91C1C;
    font-weight: 700;
}

/* Leaf focus ring. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #3F6212;
    outline-offset: 3px;
}

/* Muted intro text. */
.lead {
    color: #6B5A48;
    max-width: 40rem;
    margin: 8px 0px 24px 0px;
}

/* ----- Header (class) ----- */

/* Cream header with a red gingham-ish stripe at the bottom. */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 6px solid #B91C1C;
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Logo. */
.logo {
    font-family: Bitter, serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #B91C1C;
    line-height: 1.05;
}

/* Small second line. */
.logo small {
    display: block;
    font-family: Karla, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3F6212;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    background-color: #3F6212;
    color: #FFFFFF;
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: 700;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Opened menu shows nav. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets. */
.site-nav ul {
    list-style: none;
    padding-top: 8px;
}

/* Phone nav links. */
.site-nav a {
    display: block;
    color: #2B1A0E;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #F1E6D2;
}

/* Red on hover. */
.site-nav a:hover {
    color: #B91C1C;
}

/* Concept notice. */
.concept-note {
    background-color: #F1E6D2;
    font-size: 0.85rem;
    text-align: center;
    padding: 4px 16px;
}

/* ----- Hero (class) ----- */

/* Orchard photo hero. */
.hero {
    background-image: url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    padding: 60px 16px;
}

/* A wooden sign: plank texture from a repeating gradient. */
.sign {
    max-width: 560px;
    background-color: #F3E3C3;
    background-image: repeating-linear-gradient(180deg, rgba(43, 26, 14, 0.06) 0px, rgba(43, 26, 14, 0.06) 3px, transparent 3px, transparent 11px);
    border: 6px solid #6B4423;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0px 14px 30px rgba(0, 0, 0, 0.35);
}

/* "Open for picking" tag. */
.open {
    display: inline-block;
    background-color: #3F6212;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 10px;
    margin-bottom: 12px;
}

/* Headline. */
.sign h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    margin-bottom: 12px;
}

/* Red second line. */
.sign h1 span {
    display: block;
    color: #B91C1C;
}

/* Sign paragraph. */
.sign > p:not(.open) {
    margin-bottom: 18px;
}

/* Apple red button. */
.button,
button {
    display: inline-block;
    background-color: #B91C1C;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-family: Bitter, serif;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

/* Darker on hover. */
.button:hover,
button:hover {
    background-color: #7F1D1D;
}

/* ----- Harvest calendar (class) ----- */

/* Section spacing. */
.picking {
    padding: 60px 20px;
}

/* The chart. The left side holds crop names; the right is the timeline. */
.harvest {
    background-color: #FFFFFF;
    border: 2px solid #E8D9C0;
    border-radius: 10px;
    padding: 16px;
}

/* Month headings line up with the tracks below. */
.months {
    list-style: none;
    display: flex;
    margin-left: 0px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #6B5A48;
    border-bottom: 1px solid #E8D9C0;
    padding-bottom: 4px;
}

/* Each month is one sixth of the timeline. */
.months li {
    flex: 1 1 0px;
    text-align: center;
}

/* Crop rows. */
.crops {
    list-style: none;
}

/* One row: the name above its track on phones. */
.crops li {
    padding: 8px 0px;
    border-bottom: 1px dashed #F1E6D2;
}

/* Crop name. */
.crop-name {
    display: block;
    font-weight: 700;
}

/* The track: a full-width lane with faint month dividers. */
.track {
    display: block;
    background-image: repeating-linear-gradient(90deg, transparent 0%, transparent 16.6%, #F1E6D2 16.6%, #F1E6D2 16.7%);
}

/* The season bar, with dark text on a light fill. */
.season {
    display: block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: visible;
}

/* Strawberries: June. */
.s-straw {
    margin-left: 0%;
    width: 16.7%;
    background-color: #FECACA;
}

/* Blackberries: late June to July. */
.s-black {
    margin-left: 12%;
    width: 21%;
    background-color: #DDD6FE;
}

/* Peaches: July to mid August. */
.s-peach {
    margin-left: 16.7%;
    width: 25%;
    background-color: #FED7AA;
}

/* Apples: mid August to October. */
.s-apple {
    margin-left: 41.7%;
    width: 41.6%;
    background-color: #FCA5A5;
}

/* Pumpkins: October. */
.s-pump {
    margin-left: 66.7%;
    width: 16.7%;
    background-color: #FDBA74;
}

/* Cider: September to November. */
.s-cider {
    margin-left: 50%;
    width: 50%;
    background-color: #E7D3B0;
}

/* ----- Farm map (class) ----- */

/* Green band. */
.map-section {
    display: flex;
    flex-direction: column;
    gap: 26px;
    background-color: #EEF5E0;
    padding: 60px 20px;
}

/* Space under heading. */
.map-text h2 {
    margin-bottom: 10px;
}

/* Legend list. */
.legend {
    list-style: none;
    margin-top: 16px;
}

/* One legend row. */
.legend li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0px;
    font-weight: 700;
}

/* Legend swatch. */
.key {
    width: 22px;
    height: 16px;
    border: 2px solid #2B1A0E;
}

/* Apple swatch. */
.k-apple {
    background-color: #86A35A;
}

/* Peach swatch. */
.k-peach {
    background-color: #E9B07B;
}

/* Pumpkin swatch. */
.k-pump {
    background-color: #F59E0B;
}

/* Barn swatch. */
.k-barn {
    background-color: #B91C1C;
}

/* The farm: a grassy box, parent for the zones. */
.farm {
    position: relative;
    height: 300px;
    background-color: #B5CF8A;
    border: 4px solid #6B4423;
    border-radius: 10px;
}

/* Every zone: positioned by percent with a label. */
.zone {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #2B1A0E;
    border-radius: 6px;
}

/* Apple rows: tree dots in rows. */
.apples {
    left: 3%;
    top: 4%;
    width: 52%;
    height: 52%;
    background-color: #9DBB6C;
    background-image: radial-gradient(circle, #3F6212 0px, #3F6212 5px, transparent 6px);
    background-size: 22px 22px;
}

/* Peach rows. */
.peaches {
    left: 58%;
    top: 4%;
    width: 39%;
    height: 38%;
    background-color: #F3CDA4;
    background-image: radial-gradient(circle, #C2410C 0px, #C2410C 4px, transparent 5px);
    background-size: 20px 20px;
}

/* Pumpkin patch: orange dots on brown. */
.pumpkins {
    left: 58%;
    top: 46%;
    width: 39%;
    height: 30%;
    background-color: #C9A27A;
    background-image: radial-gradient(circle, #F59E0B 0px, #F59E0B 5px, transparent 6px);
    background-size: 18px 16px;
}

/* The red barn, with a peaked roof cut by clip-path. */
.barn {
    left: 6%;
    top: 62%;
    width: 22%;
    height: 32%;
    background-color: #B91C1C;
    color: #FFFFFF;
    clip-path: polygon(0% 30%, 50% 0%, 100% 30%, 100% 100%, 0% 100%);
    border-radius: 0px;
}

/* Gravel parking. */
.parking {
    left: 32%;
    top: 68%;
    width: 22%;
    height: 26%;
    background-color: #D6D3D1;
}

/* A dashed wagon path from the barn up to the rows. */
.path {
    position: absolute;
    left: 28%;
    top: 58%;
    width: 30%;
    height: 0px;
    border-top: 3px dashed #6B4423;
}

/* ----- Farm stand (class) ----- */

/* Section spacing. */
.stand {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 60px 20px;
}

/* A wooden crate: horizontal slats with dark gaps. */
.crate {
    background-color: #C08A55;
    background-image: repeating-linear-gradient(180deg, #C9955F 0px, #C9955F 40px, #7A4E28 40px, #7A4E28 44px);
    border: 6px solid #7A4E28;
    padding: 20px;
    color: #2B1A0E;
}

/* Crate heading on a paper label so it reads clearly. */
.crate h2 {
    display: inline-block;
    background-color: #FFF9EF;
    padding: 4px 12px;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    margin-bottom: 14px;
}

/* Price rows on paper tags. */
.crate dl div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background-color: #FFF9EF;
    padding: 6px 12px;
    margin-bottom: 6px;
}

/* Item name. */
.crate dt {
    font-weight: 700;
}

/* Price in red. */
.crate dd {
    font-family: Bitter, serif;
    font-weight: 800;
    color: #B91C1C;
    white-space: nowrap;
}

/* Sample note on paper. */
.note {
    display: inline-block;
    background-color: #FFF9EF;
    font-size: 0.8rem;
    padding: 2px 8px;
}

/* Three photos. */
.stand-photos {
    display: flex;
    gap: 10px;
}

/* Each photo a third. */
.stand-photos img {
    width: 33%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

/* ----- Visit (class) ----- */

/* Brown band. */
.visit {
    background-color: #2B1A0E;
    color: #FFF9EF;
    padding: 60px 20px;
}

/* Visit cards stack on phones. */
.visit-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 22px 0px 30px 0px;
}

/* One card. */
.visit-card {
    flex: 1 1 30%;
    border: 1px solid #6B4423;
    border-radius: 8px;
    padding: 16px;
}

/* Card heading. */
.visit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

/* Green-light icons. */
.visit-card i {
    color: #BEF264;
    margin-right: 4px;
}

/* Group form card. */
.group-form {
    background-color: #FFF9EF;
    color: #2B1A0E;
    border-radius: 10px;
    padding: 22px;
    max-width: 560px;
}

/* Form heading. */
.group-form h3 {
    font-size: 1.5rem;
}

/* Labels. */
.group-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Inputs. */
.group-form input {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 2px solid #D6C3A3;
    border-radius: 6px;
    font-family: Karla, sans-serif;
    font-size: 1rem;
}

/* Space above the button. */
.group-form button {
    margin-top: 18px;
}

/* ----- Footer (class) ----- */

/* Footer. */
.site-footer {
    background-color: #2B1A0E;
    color: #D6C3A3;
    border-top: 1px solid #6B4423;
    text-align: center;
    font-size: 0.85rem;
    padding: 22px 20px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Crop name sits beside its track. */
    .crops li {
        display: flex;
        align-items: center;
    }

    /* Fixed name column. */
    .crop-name {
        flex: 0 0 120px;
    }

    /* Track takes the rest. */
    .track {
        flex: 1 1 auto;
    }

    /* Months line up with the tracks (indent by the name column). */
    .months {
        margin-left: 120px;
    }

    /* Taller farm map. */
    .farm {
        height: 360px;
    }

    /* Taller stand photos. */
    .stand-photos img {
        height: 220px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .picking,
    .map-section,
    .stand,
    .visit {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Taller hero. */
    .hero {
        padding-top: 120px;
        padding-bottom: 120px;
    }

    /* Visit cards in a row. */
    .visit-row {
        flex-direction: row;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No Menu button on desktop. */
    .menu-icon {
        display: none;
    }

    /* Nav 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. */
    .site-nav a {
        border-top: none;
    }

    /* Map text and drawing side by side. */
    .map-section {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

    /* Text column. */
    .map-text {
        flex: 1 1 35%;
    }

    /* Map column. */
    .farm {
        flex: 1 1 60%;
        height: 400px;
    }

    /* Crate and photos side by side. */
    .stand {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }

    /* Crate column. */
    .crate {
        flex: 1 1 45%;
    }

    /* Photos column, stacked. */
    .stand-photos {
        flex: 1 1 50%;
        flex-wrap: wrap;
    }

    /* First photo full width, the next two side by side. */
    .stand-photos img:first-child {
        width: 100%;
    }

    /* Second and third photos split the row. */
    .stand-photos img {
        width: 48%;
        flex-grow: 1;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .picking,
    .map-section,
    .stand,
    .visit {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
