/*
    Custom stylesheet for scratch.html.
    Requirements 7, 8, and 9 are satisfied throughout this file:
    - More than four CSS style definitions
    - Font color specified with color properties
    - Font family specified on the body
*/

:root {
    --background: #f3f8ef;
    --surface: #ffffff;
    --surface-soft: #e7f0df;
    --leaf: #2f6b4f;
    --leaf-dark: #1f4436;
    --sage: #6d8b74;
    --moss: #cfe2b8;
    --moss-deep: #496f52;
    --ink: #21332b;
    --muted: #607268;
    --line: #d8e4d4;
    --shadow: 0 14px 34px rgba(38, 73, 52, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-top {
    background:
        linear-gradient(90deg, rgba(5, 22, 15, 0.34), transparent 14%, transparent 86%, rgba(5, 22, 15, 0.34)),
        linear-gradient(180deg, rgba(5, 22, 15, 0.72), rgba(5, 22, 15, 0.42) 28%, transparent 58%, rgba(5, 22, 15, 0.3)),
        linear-gradient(rgba(20, 53, 39, 0.76), rgba(20, 53, 39, 0.66)),
        url("https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Raised_Vegetable_Beds.jpg/960px-Raised_Vegetable_Beds.jpg") center/cover;
    color: #ffffff;
    min-height: 64vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 42px rgba(5, 22, 15, 0.34);
}

.scratch-nav {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 4px 0 18px;
    border-bottom: 1px solid rgba(207, 226, 184, 0.42);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    padding: 8px 22px 8px 0;
}

.brand-icon {
    position: relative;
    width: 15px;
    height: 15px;
    border: 2px solid var(--moss);
    border-radius: 2px 10px 2px 10px;
    transform: rotate(-16deg);
}

.brand-icon::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 1px;
    width: 1px;
    height: 12px;
    background: var(--moss);
    transform: rotate(35deg);
}

.nav-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.nav-actions a,
.dropdown-trigger,
.top-link {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-actions > a,
.nav-dropdown {
    position: relative;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px 12px;
    margin-bottom: -12px;
}

.nav-actions > a,
.dropdown-trigger {
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: color 160ms ease;
}

.brand-link,
.nav-actions > a,
.nav-dropdown {
    border-left: 1px solid rgba(207, 226, 184, 0.34);
}

.brand-link {
    border-left: 0;
}

.dropdown-trigger::after {
    content: "";
    margin-left: 7px;
    border-top: 5px solid var(--moss);
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.nav-actions > a:hover,
.nav-actions > a:focus-visible,
.dropdown-trigger:hover,
.dropdown-trigger:focus-visible {
    color: var(--moss);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
    display: grid;
    min-width: 230px;
    padding: 10px;
    border: 1px solid rgba(207, 226, 184, 0.38);
    border-radius: 8px;
    background: rgba(20, 53, 39, 0.96);
    box-shadow: 0 18px 38px rgba(5, 22, 15, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.dropdown-menu a {
    padding: 10px 12px;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: rgba(207, 226, 184, 0.16);
    color: var(--moss);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.intro-block {
    width: min(1200px, 100%);
    margin: auto;
    padding: 34px 0 34px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--sage);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.site-top .eyebrow {
    color: var(--moss);
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.12;
}

h1 {
    max-width: none;
    font-size: clamp(3.4rem, 7vw, 6rem);
    font-weight: 700;
    text-align: center;
}

.title-line {
    display: block;
    white-space: nowrap;
}

h2 {
    color: var(--leaf-dark);
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    color: var(--leaf-dark);
    font-size: 1.35rem;
}

.lead {
    max-width: 980px;
    margin: 16px auto 0;
    color: #edf7ea;
    font-size: clamp(1.28rem, 2.05vw, 1.56rem);
    line-height: 1.42;
    text-align: center;
}

.hero-title-row {
    display: block;
}

.hero-copy {
    min-width: 0;
}

.footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 820px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--leaf);
    border-radius: 999px;
    background: #ffffff;
    color: var(--leaf-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(31, 68, 54, 0.08);
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-top .action-button {
    border-color: rgba(255, 255, 255, 0.72);
}

.action-button.primary {
    background: var(--moss);
    border-color: var(--moss);
    color: var(--leaf-dark);
}

.action-button:hover,
.action-button:focus-visible {
    background: var(--surface-soft);
    border-color: var(--moss-deep);
    color: var(--leaf-dark);
    transform: translateY(-1px);
}

.content-section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.benefits-media-row {
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.92fr);
    gap: 34px;
    align-items: stretch;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.benefits-copy,
.benefits-video {
    min-width: 0;
}

.benefits-video {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 28px;
    align-items: stretch;
}

.text-block,
.highlight-panel,
.tableau-frame,
.video-frame,
.garden-carousel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.text-block {
    padding: clamp(26px, 5vw, 44px);
}

.text-block p,
.section-heading p,
.highlight-panel p,
.site-footer p {
    color: var(--muted);
    font-size: 1.05rem;
}

.highlight-panel {
    padding: 32px;
    background: var(--surface-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight-panel p {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 26px;
}

.benefits-heading {
    max-width: none;
}

.benefit-list {
    margin: 0;
    padding: 0 0 0 26px;
}

.benefits-media-row .video-frame {
    box-shadow: none;
}

.garden-carousel {
    aspect-ratio: 16 / 9;
    width: 100%;
    box-shadow: none;
    overflow: hidden;
    position: relative;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 220ms ease, transform 220ms ease;
}

.carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.carousel-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(31, 68, 54, 0.72);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 160ms ease, transform 160ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
    background: rgba(31, 68, 54, 0.92);
    transform: translateY(-50%) scale(1.04);
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(31, 68, 54, 0.62);
    transform: translateX(-50%);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.carousel-dot.is-active {
    background: #ffffff;
}

.benefit-list > li {
    margin-bottom: 24px;
    padding-left: 8px;
    font-size: 1.1rem;
}

.benefit-list > li:last-child {
    margin-bottom: 0;
}

.benefit-list ul {
    margin-top: 10px;
    color: var(--muted);
}

.media-section {
    padding-top: 22px;
}

.tableau-band {
    background: var(--leaf-dark);
}

.tableau-feature {
    width: min(1120px, calc(100% - 32px));
    padding-top: 48px;
    padding-bottom: 48px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
    gap: 28px;
    align-items: center;
}

.tableau-heading {
    max-width: 430px;
    margin-bottom: 0;
}

.tableau-heading h2 {
    color: var(--background);
    font-size: clamp(1.85rem, 3.8vw, 3.15rem);
}

.tableau-heading p {
    color: var(--background);
}

.video-frame,
.tableau-frame {
    overflow: hidden;
}

.tableau-frame {
    padding: 12px;
    border: 1px solid rgba(47, 107, 79, 0.22);
    background:
        linear-gradient(180deg, rgba(231, 240, 223, 0.72), rgba(255, 255, 255, 0.96)),
        var(--surface);
}

.tableauPlaceholder {
    min-height: 330px;
}

.video-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    flex: 0 0 auto;
}

.video-frame iframe,
.tableau-frame iframe,
.tableau-frame object {
    display: block;
    width: 100%;
    border: 0;
}

.video-frame iframe {
    height: 100%;
}

.reflection-section {
    padding-bottom: 60px;
}

.reflection-copy p:last-child {
    margin-bottom: 0;
}

.site-footer {
    background: var(--leaf-dark);
    color: #ffffff;
    padding: 48px 24px;
}

.footer-content {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.site-footer h2,
.site-footer h3,
.site-footer p {
    color: #ffffff;
}

.site-footer .action-button {
    width: 100%;
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-heading {
    max-width: 760px;
}

.footer-heading .eyebrow {
    color: var(--moss);
}

.footer-heading p {
    color: #dce9d7;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.explore-panel {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.explore-panel p {
    margin: 10px 0 0;
    color: #dce9d7;
}

.top-link {
    display: inline-block;
    margin-top: 24px;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
}

@media (max-width: 780px) {
    .site-top {
        min-height: auto;
    }

    .scratch-nav,
    .two-column,
    .tableau-feature,
    .benefits-media-row {
        display: block;
    }

    .nav-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .intro-block {
        padding: 34px 0 30px;
    }

    .hero-title-row {
        display: block;
    }

    .title-line {
        white-space: normal;
    }

    .content-section {
        padding: 36px 0;
    }

    .highlight-panel {
        margin-top: 18px;
    }

    .benefit-list {
        padding: 0 0 0 24px;
    }

    .benefits-video {
        margin-top: 24px;
    }

    .video-frame,
    .garden-carousel {
        width: 100%;
    }

    .tableauPlaceholder {
        min-height: 300px;
    }

    .tableau-heading {
        max-width: none;
        margin-top: 18px;
    }

    .explore-grid {
        grid-template-columns: 1fr;
    }

    .explore-panel {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .site-top {
        padding: 18px;
    }

    .nav-actions a {
        width: 100%;
    }

    .footer-buttons {
        display: grid;
    }

    .action-button {
        width: 100%;
    }
}
