:root {
    --leaf: #2f6b3a;
    --leaf-dark: #123c24;
    --gold: #a78354;
    --cream: #f6f2ea;
    --paper: #ffffff;
    --ink: #142016;
    --muted: #667064;
    --line: #e4e0d5;
    --shadow: 0 18px 46px rgba(18, 60, 36, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #fbfaf6;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 112px;
    padding: 16px clamp(18px, 5vw, 76px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(18, 60, 36, 0.1);
    box-shadow: 0 8px 24px rgba(18, 60, 36, 0.06);
    backdrop-filter: blur(12px);
}

.language-nav {
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 6px;
}

.language-nav a {
    min-width: 36px;
    padding: 8px 9px;
    color: var(--leaf-dark);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.language-nav a.active,
.language-nav a:hover {
    color: #fff;
    background: var(--leaf-dark);
    border-color: var(--leaf-dark);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    width: clamp(220px, 22vw, 340px);
    height: 86px;
    object-fit: contain;
    object-position: left center;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 8px;
    color: #344238;
    font-size: 14px;
    font-weight: 800;
}

.main-nav a {
    padding: 11px 14px;
    border-radius: 999px;
}

.main-nav a:hover {
    color: var(--leaf-dark);
    background: #eef4ea;
}

.hero {
    min-height: calc(100vh - 112px);
    display: flex;
    align-items: center;
    padding: 92px clamp(18px, 5vw, 76px);
    background:
        linear-gradient(90deg, rgba(9, 31, 18, 0.84) 0%, rgba(18, 60, 36, 0.58) 48%, rgba(18, 60, 36, 0.2) 100%),
        var(--hero-image, url("../img/figlance-hero.png")) center / cover no-repeat;
    border-bottom: 1px solid rgba(18, 60, 36, 0.16);
}

.hero-overlay {
    max-width: 760px;
    color: #fff;
}

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

.hero .eyebrow {
    color: #d8c399;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(46px, 6vw, 82px);
    line-height: 1;
    font-weight: 800;
}

h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 800;
}

h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.22;
    font-weight: 900;
}

h3 a:hover {
    color: var(--leaf);
}

.hero-copy {
    max-width: 620px;
    margin: 24px 0 34px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.7;
}

.hero-button,
.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    color: #fff;
    background: var(--leaf);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, background 0.18s ease;
}

.hero-button:hover,
.contact-link:hover {
    transform: translateY(-1px);
    background: var(--leaf-dark);
}

.section {
    padding: 84px clamp(18px, 5vw, 76px);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 34px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    max-width: 1180px;
    align-items: stretch;
}

.product-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 56px rgba(18, 60, 36, 0.16);
}

.product-image {
    display: block;
    aspect-ratio: 16 / 11;
    padding: 14px;
    background: #f7f5ef;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-content {
    padding: 24px;
}

.product-content p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.68;
}

.product-summary {
    display: -webkit-box;
    min-height: 82px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-content .origin {
    margin-bottom: 12px;
    color: var(--gold);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.read-more {
    display: inline-flex;
    margin-top: 18px;
    color: var(--leaf-dark);
    font-size: 15px;
    font-weight: 900;
}

.read-more:hover {
    color: var(--gold);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding: 76px clamp(18px, 5vw, 76px);
    background: var(--cream);
}

.detail-image {
    overflow: hidden;
    padding: 20px;
    background: #f7f5ef;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.detail-content h1 {
    color: var(--leaf-dark);
    font-size: clamp(42px, 5vw, 68px);
}

.detail-content .origin {
    margin: 18px 0;
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-description {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.82;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 30px;
}

.back-link {
    color: var(--leaf-dark);
    font-weight: 900;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 38px;
    background: #fff;
    border: 1px dashed #c8d4c0;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(18, 60, 36, 0.08);
}

.empty-state p {
    margin: 8px 0 0;
    color: var(--muted);
}

.muted {
    background: var(--cream);
}

.content-row,
.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 560px);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}

.content-row p,
.contact p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.contact {
    align-items: center;
    max-width: none;
    background:
        linear-gradient(90deg, rgba(18, 60, 36, 0.96), rgba(47, 107, 58, 0.92)),
        url("../img/hero-fig-trees.svg") center / cover no-repeat;
    color: #fff;
}

.contact .eyebrow {
    color: #cce7bd;
}

.contact-link {
    justify-self: end;
    background: #fff;
    color: var(--leaf-dark);
    box-shadow: none;
}

.site-footer {
    padding: 26px clamp(18px, 5vw, 76px);
    color: var(--muted);
    background: #fff;
    border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
    .content-row,
    .contact {
        grid-template-columns: 1fr;
    }

    .site-header {
        display: grid;
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 10px;
        padding: 12px 16px 14px;
    }

    .brand {
        justify-content: center;
    }

    .brand-logo {
        width: min(260px, 82vw);
        height: 78px;
        object-position: center;
    }

    .main-nav {
        justify-content: center;
        gap: 6px;
        font-size: 13px;
        width: 100%;
    }

    .language-nav {
        justify-content: center;
        width: 100%;
        padding-top: 2px;
    }

    .main-nav a {
        padding: 9px 11px;
        background: #f4f7f1;
    }

    .language-nav a {
        min-width: 42px;
        padding: 8px 10px;
        background: #fff;
    }

    .hero {
        position: relative;
        min-height: 0;
        display: block;
        padding: 0;
        background: #f6f2ea;
    }

    .hero::before {
        content: "";
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: var(--hero-image, url("../img/figlance-hero.png")) center / contain no-repeat;
    }

    .hero-overlay {
        width: 100%;
        max-width: none;
        padding: 30px 18px 34px;
        background: var(--leaf-dark);
        color: #fff;
    }

    h1 {
        font-size: 38px;
        line-height: 1.06;
    }

    .hero-copy {
        font-size: 17px;
    }

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

    .detail-hero {
        grid-template-columns: 1fr;
        padding-top: 46px;
    }

    .contact-link {
        justify-self: start;
    }
}

@media (min-width: 761px) and (max-width: 1060px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
