/*==========================================
A&M Energie Solutions
Premium Theme
===========================================*/


:root {
    --ink: #0D1420;
    --ink-soft: #16223A;
    --sand: #F4F0E4;
    --sand-line: #E4DCC7;
    --gold: #F0A83B;
    --gold-soft: #F8C876;
    --teal: #1E6F72;
    --teal-soft: #3F9C9C;
    --paper: #FBF9F3;
    --ink-70: rgba(13,20,32,0.72);
    --ink-50: rgba(13,20,32,0.52);
    --white-70: rgba(251,249,243,0.72);
    --white-50: rgba(251,249,243,0.5);
    --radius: 2px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .display {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
    margin: 0;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.02em;
}

a {
    color: inherit;
}

img, svg {
    display: block;
    max-width: 100%;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width:640px) {
    .wrap {
        padding: 0 20px;
    }
}

::selection {
    background: var(--gold);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- NAV ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    mix-blend-mode: difference;
    color: #fff;
    font-size: 14px;
}

.nav-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk',sans-serif;
    font-weight: 600;
    font-size: 16px;
}

    .nav-mark .dot {
        width: 8px;
        height: 8px;
        background: var(--gold);
        border-radius: 50%;
    }

.nav-links {
    display: flex;
    gap: 28px;
}

    .nav-links a {
        text-decoration: none;
        opacity: 0.85;
    }

        .nav-links a:hover {
            opacity: 1;
        }

@media (max-width:720px) {
    .nav-links {
        display: none;
    }
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hero-split {
    position: absolute;
    inset: 0;
    display: flex;
}

.hero-face {
    position: relative;
    flex: 1;
    overflow: hidden;
}

    .hero-face.front {
        background: repeating-linear-gradient(90deg, rgba(240,168,59,0.10) 0 2px, transparent 2px 46px), repeating-linear-gradient(0deg, rgba(240,168,59,0.10) 0 2px, transparent 2px 46px), radial-gradient(120% 140% at 15% 0%, rgba(240,168,59,0.35), transparent 60%), linear-gradient(160deg, #131c2c, #0D1420 60%);
    }

    .hero-face.back {
        background: repeating-linear-gradient(90deg, rgba(63,156,156,0.10) 0 2px, transparent 2px 46px), repeating-linear-gradient(0deg, rgba(63,156,156,0.10) 0 2px, transparent 2px 46px), radial-gradient(120% 140% at 85% 100%, rgba(63,156,156,0.35), transparent 60%), linear-gradient(160deg, #0D1420, #0A121F 60%);
    }

.hero-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(251,249,243,0.35), transparent);
    transform: translateX(-50%);
}

@media (max-width:800px) {
    .hero-split {
        flex-direction: column;
    }

    .hero-divider {
        top: 50%;
        left: 0;
        right: 0;
        bottom: auto;
        width: auto;
        height: 1px;
        transform: translateY(-50%);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 110px 0 60px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-soft);
    padding-bottom: 26px;
}

    .eyebrow::before {
        content: '';
        width: 22px;
        height: 1px;
        background: var(--gold-soft);
    }

.hero h1 {
    font-size: clamp(38px, 6.4vw, 84px);
    line-height: 0.98;
    font-weight: 600;
    max-width: 14ch;
}

    .hero h1 em {
        font-style: normal;
        background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 48%, var(--teal-soft) 52%, var(--teal-soft) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.hero-sub {
    margin-top: 26px;
    max-width: 46ch;
    font-size: 17px;
    line-height: 1.6;
    color: var(--white-70);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 44px;
}

.btn {
    font-family: 'Inter',sans-serif;
    font-weight: 500;
    font-size: 14.5px;
    padding: 14px 26px;
    border-radius: var(--radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn-primary {
    background: var(--gold);
    color: var(--ink);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        background: var(--gold-soft);
    }

.btn-ghost {
    border-color: rgba(251,249,243,0.35);
    color: var(--paper);
}

    .btn-ghost:hover {
        transform: translateY(-2px);
        border-color: var(--paper);
    }

.hero-foot {
    position: relative;
    z-index: 2;
    padding: 26px 0 34px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(251,249,243,0.16);
}

    .hero-foot .wrap {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: 18px;
        width: 100%;
    }

.hero-stat {
    text-align: left;
}

    .hero-stat b {
        display: block;
        font-family: 'Space Grotesk',sans-serif;
        font-size: 28px;
        font-weight: 600;
    }

    .hero-stat span {
        font-size: 12px;
        color: var(--white-50);
        font-family: 'IBM Plex Mono',monospace;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

.hero-stats-row {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.scroll-cue {
    font-size: 12px;
    color: var(--white-50);
    font-family: 'IBM Plex Mono',monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---------- SECTION LABELS ---------- */
.section {
    padding: 104px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 56px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--sand-line);
    padding-bottom: 26px;
}

.section-tag {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
}

.section-head h2 {
    font-size: clamp(28px,3.4vw,42px);
    font-weight: 600;
    max-width: 16ch;
}

.section-note {
    max-width: 32ch;
    font-size: 14px;
    color: var(--ink-50);
    line-height: 1.55;
}

/* ---------- FEATURES ---------- */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--sand-line);
    border: 1px solid var(--sand-line);
}

@media (max-width:860px) {
    .feat-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:560px) {
    .feat-grid {
        grid-template-columns: 1fr;
    }
}

.feat {
    background: var(--paper);
    padding: 34px 30px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background .2s ease;
}

    .feat:hover {
        background: var(--sand);
    }

.feat-num {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12px;
    color: var(--gold);
}

.feat h3 {
    font-size: 19px;
    font-weight: 600;
    margin-top: 26px;
}

.feat p {
    font-size: 14px;
    color: var(--ink-70);
    line-height: 1.55;
    margin: 10px 0 0;
}

/* ---------- BIFACIAL GAIN ---------- */
.gain-band {
    background: var(--ink);
    color: var(--paper);
}

    .gain-band .section-tag {
        color: var(--gold-soft);
    }

    .gain-band .section-head {
        border-bottom-color: rgba(251,249,243,0.16);
    }

    .gain-band .section-note {
        color: var(--white-50);
    }

.gain-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width:720px) {
    .gain-cards {
        grid-template-columns: 1fr;
    }
}

.gain-card {
    border: 1px solid rgba(251,249,243,0.18);
    padding: 32px;
    position: relative;
}

    .gain-card .pct {
        font-family: 'Space Grotesk',sans-serif;
        font-size: 64px;
        font-weight: 600;
        line-height: 1;
        color: var(--teal-soft);
    }

    .gain-card.g10 .pct {
        color: var(--gold);
    }

    .gain-card .pct sup {
        font-size: 22px;
        top: -1.6em;
    }

.gain-label {
    margin-top: 8px;
    font-size: 13px;
    color: var(--white-50);
    font-family: 'IBM Plex Mono',monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gain-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12.5px;
}

    .gain-table th, .gain-table td {
        text-align: right;
        padding: 9px 0;
        border-bottom: 1px solid rgba(251,249,243,0.12);
    }

        .gain-table th:first-child, .gain-table td:first-child {
            text-align: left;
            color: var(--white-50);
            font-weight: 400;
        }

    .gain-table th {
        color: var(--white-50);
        font-weight: 400;
        text-transform: uppercase;
        font-size: 10.5px;
        letter-spacing: 0.08em;
    }

/* ---------- SPECS ---------- */
.specs-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--sand-line);
}

table.specs {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    font-family: 'IBM Plex Mono',monospace;
    font-size: 13px;
}

    table.specs th, table.specs td {
        padding: 14px 20px;
        text-align: right;
        border-bottom: 1px solid var(--sand-line);
        white-space: nowrap;
    }

        table.specs th:first-child, table.specs td:first-child {
            text-align: left;
            font-family: 'Inter',sans-serif;
            font-size: 13.5px;
            color: var(--ink);
        }

    table.specs thead th {
        background: var(--ink);
        color: var(--paper);
        font-weight: 500;
        border-bottom: none;
    }

    table.specs thead tr:first-child th {
        font-family: 'Space Grotesk',sans-serif;
        font-size: 14px;
    }

    table.specs tbody tr:nth-child(even) {
        background: var(--sand);
    }

    table.specs td.hi {
        color: var(--teal);
        font-weight: 500;
    }

.specs-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--ink-50);
}

.mech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 64px;
}

@media (max-width:760px) {
    .mech-grid {
        grid-template-columns: 1fr;
    }
}

.mech-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .mech-list li {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        padding: 13px 0;
        border-bottom: 1px solid var(--sand-line);
        font-size: 14px;
    }

        .mech-list li span:first-child {
            color: var(--ink-50);
        }

        .mech-list li span:last-child {
            text-align: right;
            font-family: 'IBM Plex Mono',monospace;
            font-size: 13px;
        }

.mech-h {
    font-size: 12px;
    font-family: 'IBM Plex Mono',monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin-bottom: 18px;
    display: block;
}

/* ---------- WARRANTY ---------- */
.warranty-chart {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    align-items: center;
}

@media (max-width:820px) {
    .warranty-chart {
        grid-template-columns: 1fr;
    }
}

.warranty-copy p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-70);
}

.warranty-copy .big {
    font-family: 'Space Grotesk',sans-serif;
    font-size: 52px;
    font-weight: 600;
    color: var(--ink);
}

.warranty-svg {
    width: 100%;
    height: auto;
}

/* ---------- CERTS ---------- */
.certs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    border-top: 1px solid var(--sand-line);
    border-bottom: 1px solid var(--sand-line);
}

.cert-item {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 12.5px;
    letter-spacing: 0.05em;
    color: var(--ink-50);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .cert-item::before {
        content: '—';
        color: var(--gold);
    }

/* ---------- CTA / CONTACT ---------- */
.cta-section {
    background: var(--teal);
    color: var(--paper);
    padding: 110px 0;
    text-align: center;
}

    .cta-section h2 {
        font-size: clamp(30px,4.6vw,52px);
        font-weight: 600;
        max-width: 18ch;
        margin: 0 auto;
    }

    .cta-section p {
        max-width: 44ch;
        margin: 20px auto 0;
        color: var(--white-70);
        font-size: 15.5px;
        line-height: 1.6;
    }

    .cta-section .hero-cta {
        justify-content: center;
        margin-top: 38px;
    }

    .cta-section .btn-primary {
        background: var(--gold);
        color: var(--ink);
    }

    .cta-section .btn-ghost {
        border-color: rgba(251,249,243,0.4);
    }

/* ---------- FOOTER ---------- */
footer {
    background: var(--ink);
    color: var(--white-50);
    padding: 56px 0 34px;
    font-size: 13px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(251,249,243,0.14);
}

@media (max-width:760px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.foot-brand {
    font-family: 'Space Grotesk',sans-serif;
    color: var(--paper);
    font-size: 18px;
    font-weight: 600;
}

    .foot-brand .dot {
        color: var(--gold);
    }

.foot-col h4 {
    font-family: 'IBM Plex Mono',monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-50);
    margin: 0 0 14px;
}

.foot-col a, .foot-col p {
    display: block;
    color: var(--white-70);
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.6;
}

    .foot-col a:hover {
        color: var(--paper);
    }

.foot-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 24px;
}

.menu-toggle, .menu-overlay {
    display: none
}

@media(min-width:721px) {
    .menu-toggle {
        display: none !important
    }
}

@media(max-width:720px) {
    .nav {
        mix-blend-mode: normal;
        padding: 18px 20px
    }

    .nav-links {
        display: none !important
    }

    .menu-toggle {
        display: block;
        background: none;
        border: 0;
        color: #fff;
        font-size: 32px;
        z-index: 10001
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        background: #0D1420;
        display: flex;
        opacity: 0;
        visibility: hidden;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: .3s
    }

        .menu-overlay.active {
            opacity: 1;
            visibility: visible
        }

    .menu-content {
        display: flex;
        flex-direction: column;
        gap: 28px;
        text-align: center
    }

        .menu-content a {
            color: #fff;
            text-decoration: none;
            font: 600 32px 'Space Grotesk',sans-serif
        }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: 0;
        color: #fff;
        font-size: 42px
    }

    body.menu-open {
        overflow: hidden
    }
}
