:root {
    --brand: #629226;
    --brand-deep: #4a7019;
    --brand-glow: #8bc34a;
    --brand-soft: rgba(98, 146, 38, 0.14);
    --ink: #101610;
    --muted: #5a665c;
    --paper: #f2f6ee;
    --paper-2: #e6eedd;
    --surface: #ffffff;
    --line: rgba(16, 22, 16, 0.1);
    --footer: #121a12;
    --max: 1180px;
    --gutter: 24px;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 18px 50px rgba(16, 22, 16, 0.08);
    --font-display: "Syne", "Segoe UI", sans-serif;
    --font-body: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }

body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--surface);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.hidden { display: none !important; }

.skip {
    position: absolute;
    left: -999px;
}
.skip:focus {
    left: 12px;
    top: 12px;
    z-index: 100;
    background: #fff;
    padding: 8px 12px;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.section {
    padding: 88px 0;
}
.section-sm { padding: 64px 0; }
.section-tight { padding: 48px 0; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.section-label::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--brand);
}

.display {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.display-xl { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
.display-lg { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.display-md { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }

.lede {
    margin: 0;
    max-width: 56ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-head {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
    max-width: 720px;
}
.section-head.is-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-head.is-center .lede { margin-left: auto; margin-right: auto; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--brand);
    color: #fff;
}
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand-deep);
}
.btn-dark {
    background: var(--ink);
    color: #fff;
}
.btn-dark:hover { background: var(--brand-deep); }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* —— Header —— */
.topbar {
    background: linear-gradient(90deg, var(--brand-deep), var(--brand));
    color: #fff;
    font-size: 13px;
}
.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar a:hover { opacity: 0.9; }
.social-chip {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.18);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
}
.brand-logo img {
    width: min(240px, 52vw);
    height: auto;
    padding-top: 8px;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover,
.nav-link.is-on {
    background: var(--brand-soft);
    color: var(--brand-deep);
}
.has-sub { position: relative; }
.sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    min-width: 210px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
/* Invisible bridge over the 8px visual gap so hover never drops while moving into the panel */
.sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu { display: block; }
.sub-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}
.sub-menu a:hover {
    background: var(--brand-soft);
    color: var(--brand-deep);
}
.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 22px;
    cursor: pointer;
}
.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
}
.mobile-nav.is-open { display: block; }
.mobile-link,
.mobile-sub {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    text-align: left;
}
.mobile-sub {
    font-weight: 500;
    padding-left: 32px;
    background: var(--paper);
}

/* —— Page hero —— */
.page-hero {
    position: relative;
    min-height: 280px;
    display: grid;
    align-items: end;
    color: #fff;
    background: #162016;
    overflow: hidden;
}
.page-hero-media {
    position: absolute;
    inset: 0;
}
.page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16,22,16,0.25), rgba(16,22,16,0.88));
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    /* Keep .wrap gutters — do not use padding shorthand (zeros L/R) */
    padding-top: 64px;
    padding-bottom: 48px;
}
.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}
.crumbs a:hover { color: #fff; }
.page-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* —— Home hero / slider —— */
.home-hero {
    position: relative;
    min-height: min(86vh, 760px);
    color: #fff;
    background: #0d140d;
    overflow: hidden;
}
.home-slider {
    position: absolute;
    inset: 0;
}
.home-slider .slides,
.home-slider .slide {
    position: absolute;
    inset: 0;
}
.home-slider .slide {
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}
.home-slider .slide.is-on {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.home-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: ken 12s ease-in-out infinite alternate;
}
@keyframes ken {
    from { transform: scale(1.04) translateX(0); }
    to { transform: scale(1.1) translateX(-1.5%); }
}
.home-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(110deg, rgba(10,16,10,0.88) 0%, rgba(10,16,10,0.55) 48%, rgba(10,16,10,0.28) 100%),
        radial-gradient(circle at 80% 20%, rgba(98,146,38,0.35), transparent 40%);
}
.home-hero-copy {
    position: relative;
    z-index: 3;
    display: grid;
    align-content: center;
    min-height: min(86vh, 760px);
    /* Keep .wrap gutters — do not use padding shorthand (zeros L/R) */
    padding-top: 100px;
    padding-bottom: 80px;
}
.home-hero-copy .display {
    max-width: 14ch;
}
.home-hero-copy .lede {
    color: rgba(255,255,255,0.82);
    max-width: 42ch;
}
.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.hero-nav.prev { left: 18px; }
.hero-nav.next { right: 18px; }
.hero-nav:hover { background: var(--brand); }

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* —— Stats —— */
.stats {
    background: var(--ink);
    color: #fff;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.stat {
    padding: 8px 0;
}
.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
    color: var(--brand-glow);
}
.stat span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* —— Product mosaic —— */
.bg-paper { background: var(--paper); }
.bg-paper-2 { background: linear-gradient(180deg, var(--paper), #fff); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.product-card {
    position: relative;
    display: block;
    min-height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    color: #fff;
    box-shadow: var(--shadow);
}
.product-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover img { transform: scale(1.06); }
.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(10,16,10,0.92) 100%);
}
.product-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 24px;
}
.product-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.45rem;
}
.product-card p {
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
}
.product-card .go {
    display: inline-flex;
    margin-top: 14px;
    color: var(--brand-glow);
    font-weight: 700;
    font-size: 13px;
}

/* —— Split panels —— */
.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.split.is-flip { grid-template-columns: 0.95fr 1.05fr; }
.split.is-flip .split-media { order: 2; }
.media-frame {
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111;
}
.media-frame img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}
/* Full graphic visible (no crop) — e.g. IMPORT/EXPORT logo */
.media-frame.is-fit {
    background: #fff;
    /* Inset so border-radius + overflow:hidden does not clip letter blocks */
    padding: 18px 22px;
}
.media-frame.is-fit img {
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}
.feature-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.feature-list li {
    display: flex;
    gap: 12px;
    margin: 0 0 12px;
    align-items: flex-start;
}
.feature-list i {
    margin-top: 4px;
    color: var(--brand);
}

/* —— Numbered service rows (PixelNova energy) —— */
.service-rows {
    display: grid;
    gap: 12px;
}
.service-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.service-row:hover {
    border-color: rgba(98,146,38,0.45);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.service-row .num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--brand);
}
.service-row h3 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 1.2rem;
}
.service-row p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.service-row .arrow {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-deep);
}

/* —— Video —— */
.video-band {
    background: #0b100b;
    color: #fff;
}
.video-shell {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 36px;
    align-items: center;
}
.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* —— Trust / process —— */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.process-card {
    padding: 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
}
.process-card .step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-family: var(--font-display);
    font-weight: 700;
}
.process-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
}
.process-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* —— CTA band —— */
.cta-band {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #132013;
}
.cta-band-media {
    position: absolute;
    inset: 0;
}
.cta-band-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12,18,12,0.92), rgba(12,18,12,0.55));
}
.cta-band-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

/* —— Content pages —— */
.prose h2,
.prose h3 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.2rem; }
.prose p { margin: 0 0 14px; color: var(--muted); }
.prose strong { color: var(--ink); }
.contact-highlight {
    display: inline;
    color: var(--brand-deep);
    font-weight: 700;
    background: var(--brand-soft);
    padding: 0.12em 0.45em;
    border-radius: 6px;
    border-bottom: 1px solid rgba(98, 146, 38, 0.4);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition: background 0.15s ease, color 0.15s ease;
}
.contact-highlight:hover {
    background: rgba(98, 146, 38, 0.24);
    color: var(--brand-deep);
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}
.chip {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 700;
}

.gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
}
.gallery img,
.gallery picture {
    display: block;
    width: 100%;
    height: 100%;
}
.gallery img {
    border-radius: var(--radius);
    object-fit: cover;
    min-height: 220px;
}
.gallery-stack {
    display: grid;
    gap: 14px;
}

.spec-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}
.spec-table th,
.spec-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 14px;
}
.spec-table th {
    background: var(--paper);
    font-family: var(--font-display);
}
.spec-table tr:last-child td { border-bottom: 0; }

.legal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.legal-item {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.form-panel {
    padding: 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.form-row { margin-bottom: 14px; }
.form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}
.form-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    padding: 12px 14px;
    font: inherit;
}
.form-input:focus {
    outline: 2px solid rgba(98,146,38,0.35);
    border-color: var(--brand);
}
.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}
.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}
.alert-ok {
    background: #eef8e4;
    border: 1px solid rgba(98,146,38,0.35);
}
.alert-err {
    background: #fff1f1;
    border: 1px solid #f0b4b4;
    color: #8a1f1f;
}
.map-embed {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: var(--radius);
    margin-top: 36px;
}

/* —— Footer —— */
.site-footer {
    background: var(--footer);
    color: rgba(255,255,255,0.78);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
    padding: 64px 0 48px;
}
.footer-brand p {
    max-width: 36ch;
    margin: 14px 0 0;
    font-size: 14px;
}
.footer-brand img {
    width: 200px;
    height: auto;
    filter: brightness(1.05);
}
.footer-col h3 {
    margin: 0 0 16px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
}
.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-col li { margin: 0 0 8px; }
.footer-col a:hover { color: var(--brand-glow); }
.copybar {
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
}
.copybar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
}

@media (max-width: 1024px) {
    .site-nav,
    .header-cta { display: none; }
    .menu-toggle { display: inline-flex; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split,
    .split.is-flip,
    .video-shell,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .split.is-flip .split-media { order: 0; }
    .legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    :root { --gutter: 18px; }
    .section { padding: 64px 0; }
    .product-grid,
    .process-grid,
    .gallery,
    .legal-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .service-row {
        grid-template-columns: 48px 1fr;
    }
    .service-row .arrow { display: none; }
    .home-hero,
    .home-hero-copy { min-height: 78vh; }
    .home-hero-copy {
        padding-top: 88px;
        padding-bottom: 48px;
    }
    .hero-nav { display: none; }
    .map-embed { height: 300px; }
    .page-hero {
        min-height: 220px;
    }
    .page-hero-inner {
        padding-top: 40px;
        padding-bottom: 28px;
    }
    .page-hero h1 {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
