/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Line & Post Fence Co. (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, rugged and woody. The hero text sits on a
    "plank" made with repeating-linear-gradient wood grain. The fence
    style previews are drawn entirely with CSS gradients (no images): a
    repeating gradient makes the boards, pickets and rails. The price
    table scrolls inside its own box on phones with a sticky first column.
    "Before we dig" steps are arrow shapes made with clip-path. Media
    queries at 576px, 768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #2B2118 dark wood   #7C5A3A cedar   #A8322A barn red (darker than
      #C0392B so white text passes)   #F5EFE6 sawdust   #5E5246 muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Sawdust page, dark wood text. */
body {
    background-color: #F5EFE6;
    color: #2B2118;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.08rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Slab serif headings. */
h1,
h2,
h3 {
    font-family: Rokkitt, serif;
    font-weight: 800;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.3rem);
}

/* Barn red links. */
a {
    color: #A8322A;
    font-weight: 700;
}

/* Red focus ring. */
a:focus-visible,
button:focus-visible,
.table-scroll:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #A8322A;
    outline-offset: 3px;
}

/* Muted intro paragraph. */
.lead {
    color: #5E5246;
    max-width: 40rem;
    margin: 8px 0px 26px 0px;
}

/* ----- Header (class) ----- */

/* Dark wood header. */
.site-header {
    background-color: #2B2118;
    color: #F5EFE6;
}

/* 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: Rokkitt, serif;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
}

/* Red ampersand. */
.logo span {
    color: #E58A7F;
}

/* Small line under the logo. */
.logo small {
    display: block;
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #D6C8B4;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    background-color: #A8322A;
    color: #FFFFFF;
    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: #F5EFE6;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #4A3B2E;
}

/* Lighter red on hover. */
.site-nav a:hover {
    color: #E58A7F;
}

/* Concept notice. */
.concept-note {
    background-color: #7C5A3A;
    font-size: 0.85rem;
    text-align: center;
    padding: 4px 16px;
}

/* ----- Hero (class) ----- */

/* Farm photo as the hero background. */
.hero {
    background-image: url("images/hero.jpg");
    background-size: cover;
    background-position: center 60%;
    padding: 160px 16px 24px 16px;
}

/* The plank: wood grain from stacked thin gradients, with dark text
   areas kept solid enough for contrast. */
.plank {
    background-color: #EAD9C2;
    background-image: repeating-linear-gradient(180deg, rgba(124, 90, 58, 0.10) 0px, rgba(124, 90, 58, 0.10) 2px, transparent 2px, transparent 9px);
    border: 4px solid #7C5A3A;
    padding: 24px;
    max-width: 640px;
    box-shadow: 0px 14px 30px rgba(0, 0, 0, 0.35);
}

/* Headline. */
.plank h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    margin-bottom: 14px;
}

/* Paragraph on the plank. */
.plank p {
    margin-bottom: 20px;
}

/* Red square button. */
.button,
button {
    display: inline-block;
    background-color: #A8322A;
    color: #FFFFFF;
    border: none;
    padding: 13px 24px;
    font-family: Rokkitt, serif;
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

/* Darker red on hover. */
.button:hover,
button:hover {
    background-color: #7F231D;
}

/* ----- Fence styles (class) ----- */

/* Section spacing. */
.styles {
    padding: 56px 20px;
}

/* Style cards wrap. */
.style-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* One style card. */
.style {
    flex: 1 1 230px;
    background-color: #FFFFFF;
    border-bottom: 5px solid #7C5A3A;
    padding: 0px 0px 18px 0px;
}

/* Card title and text get side padding. */
.style h3,
.style p {
    padding: 0px 18px;
}

/* Card title. */
.style h3 {
    font-size: 1.6rem;
    margin-top: 12px;
}

/* Preview area: sky on top, grass at the bottom. Each style adds the
   fence on top with its own gradient layers. */
.preview {
    height: 150px;
    background-color: #DCEBF2;
    background-repeat: no-repeat;
}

/* Privacy: boards side by side with thin dark gaps, from 25px down. */
.preview-privacy {
    background-image:
        linear-gradient(#5C8A3A, #5C8A3A),
        repeating-linear-gradient(90deg, #A97C50 0px, #A97C50 22px, #6B4A2E 22px, #6B4A2E 24px);
    background-size: 100% 16px, 100% 110px;
    background-position: 0px 134px, 0px 24px;
}

/* Picket: spaced pickets, a top rail and a bottom rail. */
.preview-picket {
    background-image:
        linear-gradient(#5C8A3A, #5C8A3A),
        linear-gradient(#FFFFFF, #FFFFFF),
        linear-gradient(#FFFFFF, #FFFFFF),
        repeating-linear-gradient(90deg, #FFFFFF 0px, #FFFFFF 14px, transparent 14px, transparent 26px);
    background-size: 100% 16px, 100% 6px, 100% 6px, 100% 76px;
    background-position: 0px 134px, 0px 82px, 0px 118px, 0px 58px;
}

/* Board-on-board: two layers of boards offset so no gaps show. */
.preview-board {
    background-image:
        linear-gradient(#5C8A3A, #5C8A3A),
        repeating-linear-gradient(90deg, #8E6440 0px, #8E6440 16px, #B88A5C 16px, #B88A5C 30px);
    background-size: 100% 16px, 100% 110px;
    background-position: 0px 134px, 0px 24px;
}

/* Split rail: three thick rails and wide-set posts. */
.preview-rail {
    background-image:
        linear-gradient(#5C8A3A, #5C8A3A),
        linear-gradient(#7C5A3A, #7C5A3A),
        linear-gradient(#7C5A3A, #7C5A3A),
        linear-gradient(#7C5A3A, #7C5A3A),
        repeating-linear-gradient(90deg, #4E3824 0px, #4E3824 14px, transparent 14px, transparent 110px);
    background-size: 100% 16px, 100% 9px, 100% 9px, 100% 9px, 100% 80px;
    background-position: 0px 134px, 0px 66px, 0px 92px, 0px 118px, 20px 56px;
}

/* ----- Prices (ID and class) ----- */

/* White band. */
#prices {
    background-color: #FFFFFF;
    padding: 56px 20px;
}

/* Table box scrolls sideways on narrow screens. */
.table-scroll {
    overflow-x: auto;
    border: 2px solid #2B2118;
}

/* Table. */
table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
}

/* Caption hidden from sight but kept for screen readers (the heading
   above already says it). */
caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* All cells. */
th,
td {
    padding: 11px 14px;
    text-align: center;
    border-bottom: 1px solid #E5DACB;
}

/* Header row in dark wood. */
thead th {
    background-color: #2B2118;
    color: #F5EFE6;
    font-family: Rokkitt, serif;
    font-size: 1.2rem;
}

/* The style column stays in view while the prices scroll. */
tbody th,
thead th:first-child {
    position: sticky;
    left: 0px;
    text-align: left;
}

/* Sticky column cells need a background so prices slide under them. */
tbody th {
    background-color: #F5EFE6;
}

/* Zebra stripes on every other row. */
tbody tr:nth-child(even) td {
    background-color: #FBF8F3;
}

/* Worked example under the table. */
.example {
    margin-top: 18px;
    background-color: #F5EFE6;
    border-left: 5px solid #A8322A;
    padding: 12px 16px;
}

/* ----- Before we dig (class) ----- */

/* Section spacing. */
.dig {
    padding: 56px 20px;
}

/* Arrow steps stack on phones. */
.arrows {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
}

/* One step: a dark arrow pointing down on phones. */
.arrows li {
    background-color: #2B2118;
    color: #F5EFE6;
    padding: 16px 18px 30px 18px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 82%, 50% 100%, 0% 82%);
}

/* Step title. */
.arrows strong {
    display: block;
    font-family: Rokkitt, serif;
    font-size: 1.4rem;
    color: #F3C9A3;
}

/* Every other step in cedar so they read as separate. */
.arrows li:nth-child(even) {
    background-color: #7C5A3A;
}

/* Light title on the cedar steps. */
.arrows li:nth-child(even) strong {
    color: #FFFFFF;
}

/* ----- Farm (class) ----- */

/* Dark band, photo then text on phones. */
.farm {
    display: flex;
    flex-direction: column;
    background-color: #2B2118;
    color: #F5EFE6;
}

/* Farm photo. */
.farm-photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* Text column. */
.farm-text {
    padding: 44px 20px;
}

/* Space under the heading. */
.farm-text h2 {
    margin-bottom: 12px;
}

/* Two small photos side by side. */
.farm-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

/* Each thumbnail. */
.farm-thumbs img {
    width: 50%;
    height: 150px;
    object-fit: cover;
    border: 4px solid #F5EFE6;
}

/* ----- Quote form (class) ----- */

/* Section spacing. */
.quote {
    padding: 56px 20px;
}

/* Form on a plank-colored card. */
.quote-form {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    background-color: #FFFFFF;
    border: 3px solid #7C5A3A;
    padding: 22px;
    margin-top: 18px;
}

/* Labels take a full row. */
.quote-form label {
    flex: 1 1 100%;
    font-weight: 700;
    margin-top: 8px;
}

/* Inputs and select take a full row. */
.quote-form input,
.quote-form select {
    flex: 1 1 100%;
    padding: 10px;
    border: 2px solid #B9A58D;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    background-color: #FFFFFF;
}

/* Button below the fields. */
.quote-form button {
    margin-top: 16px;
}

/* Phone line. */
.call {
    margin-top: 14px;
    font-weight: 600;
}

/* ----- Footer (class) ----- */

/* Dark wood footer. */
.site-footer {
    background-color: #2B2118;
    color: #D6C8B4;
    text-align: center;
    font-size: 0.85rem;
    padding: 22px 20px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller farm thumbnails. */
    .farm-thumbs img {
        height: 200px;
    }

    /* More room above the plank. */
    .hero {
        padding: 220px 30px 36px 30px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* More side padding. */
    .styles,
    #prices,
    .dig,
    .quote {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Steps sit in a row pointing right. */
    .arrows {
        flex-direction: row;
        gap: 0px;
    }

    /* Right-pointing arrow shape; each overlaps the one before it. */
    .arrows li {
        flex: 1 1 25%;
        padding: 18px 34px 18px 30px;
        margin-left: -14px;
        clip-path: polygon(0% 0%, 88% 0%, 100% 50%, 88% 100%, 0% 100%, 12% 50%);
    }

    /* First arrow has a flat left edge. */
    .arrows li:first-child {
        margin-left: 0px;
        padding-left: 18px;
        clip-path: polygon(0% 0%, 88% 0%, 100% 50%, 88% 100%, 0% 100%);
    }

    /* Farm photo and text side by side. */
    .farm {
        flex-direction: row;
    }

    /* Photo fills its half. */
    .farm-photo {
        flex: 1 1 45%;
    }

    /* Photo stretches the full height. */
    .farm-photo img {
        height: 100%;
    }

    /* Text column. */
    .farm-text {
        flex: 1 1 55%;
        padding: 56px 40px;
    }

    /* Quote fields in two columns: label/field pairs at half width. */
    .quote-form label,
    .quote-form input,
    .quote-form select {
        flex: 1 1 100%;
    }
}

/* ----- 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;
    }

    /* Tall hero with the plank lower left. */
    .hero {
        padding: 260px 40px 60px 40px;
    }

    /* Quote heading left, form right. */
    .quote {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        column-gap: 40px;
    }

    /* Heading column. */
    .quote h2 {
        flex: 0 0 300px;
    }

    /* Form column. */
    .quote-form {
        flex: 1 1 500px;
        margin-top: 0px;
    }

    /* Phone line lines up under the heading. */
    .call {
        flex: 1 1 100%;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .styles,
    #prices,
    .dig,
    .quote {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
