/* Revera(R) Energy -- marketing site stylesheet
   Palette: white #FFFFFF, lime #2FFF00 (accent only, never as body text on white),
   grey #272727 (ink / dark sections). Display face Archivo, body face Source Sans 3. */

:root {
    --white: #ffffff;
    --lime: #2fff00;
    --lime-ink: #163600;   /* text-safe darkened lime, used on white for links/labels */
    --ink: #272727;
    --ink-soft: #4a4a4a;
    --ink-muted: #767676;
    --line: #e2e2e2;
    --line-dark: #3c3c3c;
    --surface: #f6f6f4;

    --font-display: "Archivo", "Arial Narrow", sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;

    --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    font-size: 17px;
}

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

a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--lime-ink);
    outline-offset: 2px;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    text-wrap: balance;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.9em;
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 3px;
    background: var(--lime);
    margin-right: 10px;
    vertical-align: middle;
}

.trademark { font-size: 0.55em; font-weight: 500; vertical-align: super; }

/* --- Header --- */

.site-header {
    background: var(--ink);
    color: var(--white);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 24px;
}

.brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.brand .trademark { color: var(--lime); }
.brand .div { color: #bdbdbd; font-weight: 500; }

nav.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}
nav.primary-nav a {
    color: #d8d8d8;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
    color: var(--white);
    border-bottom-color: var(--lime);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-lime {
    background: var(--lime);
    color: var(--ink);
}
.btn-lime:hover { background: #29e600; }
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: #565656;
}
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }

.nav-collapse {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid #565656;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .site-header { position: relative; }
    .nav-toggle { display: flex; }
    .nav-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        background: var(--ink);
        border-top: 1px solid var(--line-dark);
        padding: 24px 28px 28px;
        z-index: 20;
    }
    .nav-collapse.is-open { display: flex; }
    nav.primary-nav { width: 100%; }
    nav.primary-nav ul { flex-direction: column; gap: 16px; }
}

/* --- Hero --- */

.hero {
    background: var(--ink);
    color: var(--white);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--lime);
}
.hero .wrap {
    padding-top: 90px;
    padding-bottom: 110px;
    position: relative;
    z-index: 1;
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lede { color: #cfcfcf; font-size: 1.15rem; max-width: 52ch; }
.hero .eyebrow { color: var(--lime); }
.hero .eyebrow::before { background: var(--lime); }
.partner-line {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--lime);
    letter-spacing: 0.01em;
    margin-top: -0.4em;
}
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(47,255,0,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47,255,0,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 75% 40%, black 0%, transparent 65%);
}

/* --- Stat strip --- */

.stat-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.stat-strip .wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    padding-top: 44px;
    padding-bottom: 44px;
}
.stat { border-left: 3px solid var(--lime); padding-left: 16px; }
.stat .num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.1rem;
    display: block;
    color: var(--ink);
}
.stat .label { color: var(--ink-muted); font-size: 0.9rem; }

/* --- Sections --- */

section { padding: 88px 0; }
section.tight { padding: 64px 0; }
section.on-dark { background: var(--ink); color: var(--white); }
section.on-dark p { color: #c6c6c6; }
section.on-dark h2 { color: var(--white); }
section.on-surface { background: var(--surface); }

.section-head { max-width: 640px; margin-bottom: 48px; }

/* --- Solutions grid --- */

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.solution-card {
    background: var(--white);
    padding: 32px 26px;
}
.solution-card .icon { width: 40px; height: 40px; margin-bottom: 20px; color: var(--ink); }
.solution-card .icon .accent { stroke: var(--lime); }
.solution-card h3 { margin-bottom: 0.4em; }
.solution-card p { font-size: 0.96rem; margin-bottom: 0; }

/* --- Process / approach list --- */

.approach-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line-dark);
}
.approach-list li {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line-dark);
    align-items: baseline;
}
.approach-list .idx {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--lime);
    font-size: 1.1rem;
}
.approach-list h3 { margin-bottom: 4px; color: var(--white); }
.approach-list p { color: #c6c6c6; margin-bottom: 0; }

/* --- Project feature --- */

.project-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 780px) {
    .project-feature { grid-template-columns: 1fr; }
}
.project-visual {
    background: var(--ink);
    border-radius: 4px;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-dark);
}
.project-tag {
    display: inline-block;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
    margin-bottom: 14px;
}

/* --- Cards row (energy communities) --- */

.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.info-card {
    border: 1px solid var(--line);
    padding: 30px 28px;
    border-radius: 4px;
}
.info-card h3 { margin-bottom: 10px; }
.info-card p { font-size: 0.96rem; }

/* --- CTA band --- */

.cta-band {
    background: var(--lime);
    color: var(--ink);
}
.cta-band .wrap {
    padding-top: 56px;
    padding-bottom: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: #1e3600; margin-bottom: 0; }
.cta-band .btn-lime { background: var(--ink); color: var(--white); }
.cta-band .btn-lime:hover { background: #000; }

/* --- Contact --- */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
}
@media (max-width: 820px) {
    .contact-layout { grid-template-columns: 1fr; }
}
.contact-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin: 28px 0;
    font-size: 0.95rem;
}
.contact-details dt {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding-top: 2px;
}
.contact-details dd { margin: 0; }
.contact-note {
    background: var(--surface);
    border-left: 3px solid var(--lime);
    padding: 16px 18px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

form.contact-form { display: grid; gap: 20px; }
.field label {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}
.field input, .field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #c9c9c9;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
    color: var(--ink);
}
.field input:focus, .field textarea:focus {
    border-color: var(--ink);
    outline: none;
    box-shadow: 0 0 0 3px rgba(47,255,0,0.35);
}
.field textarea { resize: vertical; min-height: 140px; }

/* honeypot: hidden from real visitors, still reachable by bots that ignore CSS */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-footnote { font-size: 0.82rem; color: var(--ink-muted); }
.form-footnote a { color: var(--ink); }

/* --- Footer --- */

.site-footer {
    background: var(--ink);
    color: #b7b7b7;
    font-size: 0.88rem;
}
.site-footer .wrap {
    padding-top: 56px;
    padding-bottom: 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 700px) {
    .site-footer .wrap { grid-template-columns: 1fr; }
}
.site-footer .brand { display: inline-block; margin-bottom: 14px; }
.site-footer h4 {
    color: #e6e6e6;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #b7b7b7; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-legal {
    border-top: 1px solid var(--line-dark);
}
.footer-legal .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 0.8rem;
    color: #8a8a8a;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-legal a { color: #8a8a8a; }

/* --- Simple page (privacy, sent) --- */

.simple-page { padding: 72px 0; max-width: 720px; }
.simple-page h1 { font-size: 2.2rem; }
.simple-page h2 { font-size: 1.3rem; margin-top: 1.6em; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
