:root {
    color-scheme: light;
    --ink: #17201a;
    --muted: #5f6f65;
    --line: #dbe5dd;
    --paper: #fbfdf9;
    --panel: #ffffff;
    --brand-deep: #042f17;
    --brand-deeper: #032512;
    --brand-gold: #d9b65b;
    --brand-copper: #c77c3b;
    --brand-leaf: #85b72f;
    --green: #1f7a45;
    --green-dark: #155d34;
    --yellow: #f4c95d;
    --red: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(251, 253, 249, 0.94);
    border-bottom: 1px solid var(--line);
}

.home-header {
    background: rgba(4, 47, 23, 0.94);
    border-bottom-color: rgba(217, 182, 91, 0.28);
}

.brand {
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.home-header .brand,
.home-header nav a {
    color: #fff8df;
}

.brand-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-with-logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--brand-deep);
}

nav {
    display: flex;
    gap: 16px;
    font-weight: 700;
}

nav a {
    text-decoration: none;
}

main {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.home-main {
    width: 100%;
}

.hero {
    display: flex;
    align-items: end;
    min-height: 260px;
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--line);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 390px);
    gap: clamp(24px, 5vw, 60px);
    align-items: center;
    width: 100%;
    min-height: 520px;
    padding: clamp(42px, 8vw, 86px) max(18px, calc((100vw - 1120px) / 2)) 54px;
    color: #fff8df;
    background:
        linear-gradient(135deg, rgba(4, 47, 23, 0.96), rgba(3, 37, 18, 0.98)),
        radial-gradient(circle at 80% 20%, rgba(217, 182, 91, 0.2), transparent 34%);
    border-bottom: 3px solid var(--brand-gold);
}

.hero-copy {
    padding-inline: 16px;
}

.home-hero .eyebrow {
    color: var(--brand-gold);
}

.home-hero h1 {
    max-width: 780px;
    color: #fff8df;
}

.hero-text {
    max-width: 660px;
    margin-top: 18px;
    color: #e6dfbe;
    font-size: 19px;
}

.hero-logo {
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(255, 248, 223, 0.06);
    border: 1px solid rgba(217, 182, 91, 0.34);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.hero-logo img {
    width: min(100%, 330px);
    height: auto;
}

.gold-button {
    color: #082c16;
    background: var(--brand-gold);
}

.gold-button:hover {
    background: #e4c875;
}

.dark-secondary {
    color: #fff8df;
    background: rgba(255, 248, 223, 0.08);
    border-color: rgba(217, 182, 91, 0.42);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.category {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 4px 9px;
    color: var(--green-dark);
    background: #edf9f0;
    border: 1px solid #bde8c8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 0;
    font-size: clamp(38px, 8vw, 82px);
    line-height: 0.96;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 28px 0 56px;
}

.search-panel {
    margin-top: 24px;
}

.home-main > .search-panel,
.home-main > .section-head,
.home-main > .grid {
    width: min(1120px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(190px, 260px) auto auto;
    gap: 14px;
    align-items: end;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.section-head h2,
.section-head p {
    margin-bottom: 0;
}

.section-head p {
    color: var(--muted);
    font-weight: 800;
}

.card,
.panel,
.recipe {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(31, 122, 69, 0.08);
}

.card {
    overflow: hidden;
}

.card img,
.product-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.card img {
    object-fit: cover;
}

.product-placeholder,
.detail-placeholder {
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #1f7a45, #f4c95d);
    font-size: 76px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-body h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.card-body p {
    color: var(--muted);
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--green);
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--green-dark);
}

.button.secondary {
    color: var(--green-dark);
    background: #edf9f0;
    border: 1px solid #bde8c8;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
}

.contact-panel h1 {
    margin-bottom: 10px;
    font-size: 42px;
    line-height: 1.1;
}

.admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.gallery-admin-item {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: start;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.gallery-admin-item img {
    width: 82px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-admin-item strong,
.gallery-admin-item a {
    display: block;
}

.gallery-admin-item a {
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.detail-head {
    display: grid;
    grid-template-columns: minmax(220px, 420px) 1fr;
    gap: 32px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

.detail-head img,
.product-gallery,
.detail-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

.detail-head img,
.gallery-main {
    object-fit: cover;
}

.product-gallery {
    display: grid;
    gap: 10px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.gallery-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.detail-head p {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
}

.back-link {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--green);
    font-weight: 800;
    text-decoration: none;
}

.recipe-list {
    padding: 32px 0 56px;
}

.enquiry-panel {
    margin-bottom: 56px;
}

.calculator-panel h1 {
    margin: 4px 0 10px;
    font-size: 40px;
    line-height: 1.1;
}

.calculator-form {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.setup-picker {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    border: 0;
}

.setup-picker legend {
    margin-bottom: 10px;
    color: var(--green-dark);
    font-weight: 800;
}

.setup-picker label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdf9;
}

.setup-picker label.selected {
    border-color: var(--green);
    background: #edf9f0;
}

.calculator-controls,
.calculator-summary {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(220px, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.calculator-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 20px 0;
}

.setup-breakdown,
.quick-setups {
    margin-bottom: 20px;
}

.category-chips,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.category-chips span,
.quick-links a {
    padding: 8px 11px;
    color: var(--green-dark);
    background: #edf9f0;
    border: 1px solid #bde8c8;
    border-radius: 8px;
    font-weight: 800;
}

.quick-links a.active {
    color: #fff8df;
    background: var(--green);
    border-color: var(--green);
}

.mobile-calculator {
    display: none;
}

.quantity-note {
    margin: 10px 0 0;
    color: var(--green-dark);
    font-weight: 800;
}

.full-button {
    width: 100%;
    margin-top: 12px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.panel-heading h2 {
    margin: 0;
}

.small-button {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 13px;
}

.tag-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.tag-picker legend {
    padding: 0 6px;
    color: var(--muted);
    font-weight: 800;
}

.tag-picker label {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin: 0;
    font-weight: 700;
}

.enquiry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.amazon-button {
    color: #2b1900;
    background: #f5bd2f;
}

.amazon-button:hover {
    background: #e0a91d;
}

.specs-panel {
    margin-bottom: 24px;
}

.spec-table {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) 1fr;
    border-bottom: 1px solid var(--line);
}

.spec-row:last-child {
    border-bottom: 0;
}

.spec-row strong,
.spec-row span {
    padding: 12px 14px;
}

.spec-row strong {
    color: var(--green-dark);
    background: #edf9f0;
}

.recipe {
    padding: 22px;
    margin-top: 16px;
}

.recipe h3 {
    font-size: 24px;
}

.recipe-columns {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
}

.recipe h4 {
    margin-bottom: 8px;
    color: var(--green-dark);
}

.recipe p {
    margin-bottom: 0;
    color: var(--muted);
    white-space: normal;
}

.empty,
.hint {
    color: var(--muted);
}

.admin-main {
    padding: 32px 0 56px;
}

.admin-main h1 {
    margin-bottom: 24px;
    font-size: 42px;
    line-height: 1.1;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.panel {
    padding: 22px;
    margin-bottom: 20px;
}

.metric {
    margin-bottom: 0;
}

.metric h2 {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 15px;
}

.metric strong {
    display: block;
    color: var(--green-dark);
    font-size: 34px;
    line-height: 1;
}

.form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--green-dark);
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    padding: 11px 12px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #cbd8ce;
    border-radius: 8px;
    font: inherit;
}

textarea {
    resize: vertical;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.error {
    color: var(--red);
    background: #fff0ee;
    border: 1px solid #ffd0ca;
}

.success {
    color: var(--green-dark);
    background: #edf9f0;
    border: 1px solid #bde8c8;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--green-dark);
    font-size: 14px;
}

.text-button {
    color: var(--red);
    background: none;
    border: 0;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.muted {
    color: var(--muted);
}

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

    .detail-head,
    .home-hero,
    .recipe-columns,
    .admin-grid,
    .calculator-controls,
    .calculator-summary,
    .filter-form {
        grid-template-columns: 1fr;
    }

    .setup-picker,
    .quick-setups {
        display: none;
    }

    .calculator-form {
        display: none;
    }

    .mobile-calculator {
        display: block;
    }

    .home-hero {
        min-height: auto;
        padding-inline: 16px;
    }

    .hero-copy {
        padding-inline: 0;
    }

    .hero-logo {
        padding: 18px;
    }

    .brand-with-logo img {
        width: 40px;
        height: 40px;
    }

    h1 {
        font-size: 42px;
        line-height: 1;
    }
}
