:root {
    --bg: #f3efe6;
    --bg-image: url("assets/img/bg-masthead.jpg");
    --panel: rgba(255, 252, 244, 0.86);
    --panel-strong: #fffaf0;
    --text: #16130f;
    --muted: #5d554a;
    --line: rgba(22, 19, 15, 0.14);
    --accent: #0d4c45;
    --accent-strong: #083831;
    --shadow: 0 24px 70px rgba(20, 17, 11, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(13, 76, 69, 0.1), transparent 28%),
        linear-gradient(180deg, #f9f4ea 0%, var(--bg) 48%, #ebe3d3 100%);
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

p a,
li a {
    color: var(--accent);
    font-weight: 800;
}

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

.site-header {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 250, 240, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--text);
    color: #f8f1e4;
    font-family: "Instrument Serif", serif;
    font-size: 1.2rem;
    font-style: italic;
}

.brand-text {
    font-size: 0.95rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav a {
    position: relative;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: currentColor;
    transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--text);
    color: #f8f1e4 !important;
}

.nav-cta::after {
    display: none;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #f8f1e4;
    transition: transform 180ms ease, opacity 180ms ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main {
    padding-top: 40px;
}

section[id] {
    scroll-margin-top: 140px;
}

.hero,
.section,
.site-footer {
    border-top: 1px solid var(--line);
}

.hero {
    padding: 88px 40px 80px;
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(20, 17, 11, 0.58) 0%, rgba(20, 17, 11, 0.62) 100%),
        var(--bg-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff9f0;
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero h1,
.section-heading h2 {
    margin: 0;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 0.95;
}

.hero h1 {
    max-width: 11ch;
    font-size: clamp(3.3rem, 9vw, 7.8rem);
}

.hero .eyebrow,
.hero h1 {
    color: #fff9f0;
}

.hero-copy {
    max-width: 720px;
    margin: 24px 0 0;
    font-size: clamp(1.02rem, 2.4vw, 1.3rem);
    line-height: 1.75;
    color: rgba(255, 249, 240, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: #f6f1e8;
}

.button-primary:hover {
    background: var(--accent-strong);
}

.button-secondary {
    color: #fff9f0;
    border-color: rgba(255, 249, 240, 0.38);
    background: rgba(255, 255, 255, 0.18);
}

.section {
    padding: 36px 0 0;
}

.section + .section {
    margin-top: 28px;
}

.section-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 28px;
}

.section-heading h2 {
    max-width: 12ch;
    font-size: clamp(2.2rem, 5vw, 4.3rem);
}

.section-body,
.product-card,
.detail-panel,
.video-panel,
.contact-strip {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
    padding: 28px;
}

.two-column p,
.product-card p,
.detail-copy p,
.contact-strip p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.video-panel {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #16130f;
}

.video-panel iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.product-kicker {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: none;
    color: var(--accent) !important;
}

.product-card h3 {
    margin: 0;
    font-size: 1.4rem;
}

.product-card a {
    font-weight: 800;
    color: var(--text);
}

.contact-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-top: 18px;
    padding: 24px 28px;
}

.detail-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    padding: 28px;
}

.detail-copy {
    display: grid;
    align-content: start;
    gap: 16px;
}

.detail-copy .hero-actions {
    margin-top: 10px;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: feature;
}

.feature-list li {
    position: relative;
    min-height: 54px;
    padding: 15px 16px 15px 56px;
    border: 1px solid rgba(22, 19, 15, 0.08);
    border-radius: 18px;
    background: var(--panel-strong);
    color: var(--muted);
    line-height: 1.55;
}

.feature-list li::before {
    counter-increment: feature;
    content: counter(feature);
    position: absolute;
    left: 14px;
    top: 13px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #f6f1e8;
    font-size: 0.78rem;
    font-weight: 800;
}

.site-footer {
    margin-top: 36px;
    padding-top: 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1020px) {
    .site-header {
        align-items: flex-start;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .product-grid,
    .two-column,
    .detail-panel,
    .contact-strip {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: center;
    }

    .site-nav {
        position: fixed;
        top: 86px;
        right: 16px;
        left: 16px;
        display: grid;
        gap: 10px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(255, 250, 240, 0.96);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .menu-open .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a::after {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 20px, 1120px);
    }

    .site-header {
        padding: 12px 14px;
    }

    .brand-text {
        font-size: 0.86rem;
    }

    .hero {
        padding: 54px 22px 44px;
    }

    .section-heading h2,
    .hero h1 {
        max-width: none;
    }

    .two-column,
    .detail-panel,
    .contact-strip,
    .product-card {
        padding: 22px;
    }
}
