/* =======================================================
   esg.css — ZETRFLEET
   Sections:
   01. CSS Variables
   02. Reset & Base
   03. Layout Utilities
   04. Buttons
   05. Hero
   06. Sections (shared)
   07. Card Grids
   08. Check-List Card
   09. Process Steps
   10. Operating Principles
   11. Brand Divider
   12. Ecosystem
   13. Final CTA
   14. Scroll Reveal
   ======================================================= */


/* =======================================================
   01. CSS VARIABLES
   ======================================================= */

:root {
    --navy:        #00327C;
    --navy-dark:   #001F4E;
    --navy-darker: #001034;
    --blue:        #0273C8;
    --blue-light:  #D9EBF7;
    --green:       #25CC80;
    --green-dark:  #052E1C;
    --green-light: #D6F5E5;
    --paper:       #FFFFFF;
    --paper-tint:  #F7FAFD;
    --ink:         #000000;
    --muted:       #555555;
    --muted-light: #888888;
    --rule:        #E1E8EE;
}


/* =======================================================
   02. RESET & BASE
   ======================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    animation: pageFade 0.6s ease;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.page { min-height: 100vh; }

@keyframes pageFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* =======================================================
   03. LAYOUT UTILITIES
   ======================================================= */

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}


/* =======================================================
   04. BUTTONS
   ======================================================= */

/* --- Main --- */
.btn-primary {
    display: inline-block;
    padding: 16px 30px;
    background: var(--green);
    color: var(--navy-darker);
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37,204,128,0.35);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 30px;
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.7);
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--green);
    color: var(--green);
}

/* Hero-specific secondary button (dark background hero uses navy border) */
.hero-buttons .btn-secondary {
    color: var(--navy-darker);
    border-color: var(--navy-darker);
}
.hero-buttons .btn-secondary:hover {
    background: rgba(0,50,124,0.06);
    border-color: var(--green);
    color: var(--green);
}

/* --- Mobile --- */
@media (max-width: 600px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 14px;
    }
}


/* =======================================================
   05. HERO
   ======================================================= */

/* --- Main --- */
.hero {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--paper) 100%);
    color: var(--navy-darker);
    padding: 128px 0 116px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -140px;
    right: -140px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--green) 0%, transparent 62%);
    opacity: 0.11;
    z-index: 0;
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-block;
    background: rgba(37,204,128,0.14);
    color: var(--green);
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 36px;
    border: 1px solid rgba(37,204,128,0.28);
}

.hero h1 {
    color: var(--navy-darker);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.06;
    margin-bottom: 24px;
    letter-spacing: -1.2px;
    max-width: 920px;
}
.hero h1 em { color: var(--green); font-style: normal; }

.hero .hero-sub {
    font-size: 21px;
    color: var(--navy-darker);
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 1.45;
    max-width: 760px;
}

.hero .proof-line {
    font-size: 18px;
    color: var(--green);
    font-style: italic;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 0.3px;
}

.measure-bar {
    margin-bottom: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.measure-chip {
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--green);
    color: var(--navy-darker);
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
}
.measure-chip::before {
    content: '\2022';
    color: var(--green);
    margin-right: 8px;
    font-size: 11px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero stagger animations */
.hero-anim {
    opacity: 0;
    transform: translateY(22px);
}
.hero-anim--1 { animation: heroFadeIn 0.7s ease 0.05s forwards; }
.hero-anim--2 { animation: heroFadeIn 0.7s ease 0.18s forwards; }
.hero-anim--3 { animation: heroFadeIn 0.7s ease 0.30s forwards; }
.hero-anim--4 { animation: heroFadeIn 0.7s ease 0.40s forwards; }
.hero-anim--5 { animation: heroFadeIn 0.7s ease 0.50s forwards; }
.hero-anim--6 { animation: heroFadeIn 0.7s ease 0.60s forwards; }

/* --- Mobile --- */
@media (max-width: 900px) {
    .hero           { padding: 88px 0 80px; }
    .hero h1        { font-size: 40px; letter-spacing: -0.8px; }
    .hero .hero-sub { font-size: 18px; }
}

@media (max-width: 600px) {
    .hero              { padding: 72px 0 64px; }
    .hero h1           { font-size: 32px; line-height: 1.1; margin-bottom: 18px; }
    .hero .hero-sub    { font-size: 16px; margin-bottom: 22px; }
    .hero .proof-line  { font-size: 15px; margin-bottom: 22px; }
    .hero-eyebrow      { font-size: 10px; margin-bottom: 24px; }
    .measure-bar       { gap: 8px; margin-bottom: 26px; }
    .measure-chip      { font-size: 12px; padding: 8px 13px; }
    .hero-buttons      { flex-direction: column; }
}

/* --- Animations --- */
@keyframes heroFadeIn {
    to { opacity: 1; transform: translateY(0); }
}


/* =======================================================
   06. SECTIONS (SHARED)
   ======================================================= */

/* --- Main --- */
section { padding: 110px 0; }

section.tinted {
    background: var(--paper-tint);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.section-eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--green);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 18px;
}

.section-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--navy-darker);
    margin-bottom: 24px;
    line-height: 1.15;
    max-width: 880px;
    letter-spacing: -0.5px;
}
.section-title em { color: var(--green); font-style: normal; }

.section-lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 0;
    line-height: 1.65;
}

.section-body {
    margin-top: 48px;
}
.section-body p {
    font-size: 17px;
    color: var(--ink);
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 16px;
}

.closing-line {
    font-size: 18px;
    color: var(--navy-darker);
    font-weight: 600;
    margin-top: 44px;
}

/* --- Mobile --- */
@media (max-width: 900px) {
    section          { padding: 72px 0; }
    .section-title   { font-size: 30px; }
}

@media (max-width: 600px) {
    section          { padding: 56px 0; }
    .section-title   { font-size: 26px; line-height: 1.2; }
    .section-lead    { font-size: 16px; }
    .closing-line    { font-size: 16px; margin-top: 28px; }
    .section-body    { margin-top: 32px; }
}


/* =======================================================
   07. CARD GRIDS
   ======================================================= */

/* --- Main --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 48px;
}

.card {
    background: white;
    padding: 30px 26px;
    border-radius: 10px;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--green);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    border-left-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,50,124,0.08);
}

.card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy-darker);
    margin-bottom: 10px;
    line-height: 1.25;
}

.card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.card.compact h3 {
    font-size: 15px;
    margin-bottom: 0;
}

/* --- Mobile --- */
@media (max-width: 900px) {
    .grid-4          { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
}

@media (max-width: 600px) {
    .grid-4          { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
    .card            { padding: 20px 18px; }
    .card.compact h3 { font-size: 14px; }
}


/* =======================================================
   08. CHECK-LIST CARD
   ======================================================= */

/* --- Main --- */
.check-card {
    background: white;
    padding: 36px 38px;
    border-radius: 12px;
    border: 1px solid var(--rule);
    border-left: 4px solid var(--green);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    margin-top: 44px;
}

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 36px;
}

.check-item {
    font-size: 16px;
    padding: 11px 0 11px 30px;
    position: relative;
    color: var(--navy-darker);
    font-weight: 500;
    border-bottom: 1px solid var(--rule);
    line-height: 1.5;
}
.check-item::before {
    content: '\2713';
    color: var(--green);
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: 800;
    font-size: 17px;
}

/* --- Mobile --- */
@media (max-width: 900px) {
    .check-list      { grid-template-columns: 1fr; gap: 0; }
    .check-card      { margin-top: 32px; }
}

@media (max-width: 600px) {
    .check-card      { padding: 22px 20px; border-radius: 10px; }
    .check-item      { font-size: 15px; padding: 10px 0 10px 26px; }
    .check-item::before { font-size: 15px; top: 9px; }
}


/* =======================================================
   09. PROCESS STEPS
   ======================================================= */

/* --- Main --- */
.process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 48px;
}

.process-step {
    background: white;
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 28px 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.process-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,50,124,0.07);
}

.process-step .pnum {
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--green);
    font-weight: 800;
    margin-bottom: 14px;
}

.process-step h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-darker);
    line-height: 1.3;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

/* --- Mobile --- */
@media (max-width: 900px) {
    .process         { grid-template-columns: 1fr; margin-top: 36px; gap: 12px; }
    .process-step    { padding: 22px 20px; display: flex; gap: 18px; }
    .process-step .pnum { margin-bottom: 0; min-width: 56px; flex-shrink: 0; }
    .process-step > div:last-child { flex: 1; }
}

@media (max-width: 600px) {
    .process-step    { padding: 18px 16px; gap: 14px; }
    .process-step .pnum { font-size: 11px; min-width: 48px; }
    .process-step h4 { font-size: 14px; }
    .process-step p  { font-size: 13px; }
}


/* =======================================================
   10. OPERATING PRINCIPLES
   ======================================================= */

/* --- Main --- */
.principles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.principle {
    background: white;
    border: 1px solid var(--rule);
    border-radius: 10px;
    border-top: 3px solid var(--green);
    padding: 28px 22px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.principle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,50,124,0.07);
}

.principle h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy-darker);
    margin-bottom: 10px;
    line-height: 1.2;
}

.principle p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

/* --- Mobile --- */
@media (max-width: 900px) {
    .principles      { grid-template-columns: 1fr; margin-top: 36px; gap: 12px; }
    .principle       { padding: 22px 20px; }
    .principle h3    { font-size: 17px; }
}

@media (max-width: 600px) {
    .principle       { padding: 18px 16px; }
    .principle h3    { font-size: 16px; }
    .principle p     { font-size: 13px; }
}


/* =======================================================
   11. BRAND DIVIDER
   ======================================================= */

/* --- Main --- */
.brand-divider {
    background: var(--green-dark);
    color: white;
    text-align: center;
    padding: 68px 24px;
    position: relative;
    overflow: hidden;
}
.brand-divider::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 25% 50%, var(--green) 0%, transparent 50%),
        radial-gradient(circle at 78% 50%, var(--blue) 0%, transparent 52%);
    opacity: 0.15;
    pointer-events: none;
}

.brand-line {
    font-size: 38px;
    font-weight: 800;
    color: white;
    line-height: 1.25;
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}
.brand-line em { color: var(--green); font-style: normal; }

/* --- Mobile --- */
@media (max-width: 900px) {
    .brand-divider { padding: 52px 24px; }
    .brand-line    { font-size: 25px; }
}

@media (max-width: 600px) {
    .brand-divider { padding: 40px 20px; }
    .brand-line    { font-size: 22px; }
}


/* =======================================================
   12. ECOSYSTEM
   ======================================================= */

/* --- Main --- */
.eco-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 44px;
}

.eco-item {
    background: white;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 16px 19px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-darker);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.eco-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,50,124,0.08);
    border-color: var(--green);
}
.eco-item::before {
    content: '\2192';
    color: var(--green);
    margin-right: 12px;
    font-weight: 800;
}

/* --- Mobile --- */
@media (max-width: 600px) {
    .eco-list  { gap: 10px; margin-top: 32px; }
    .eco-item  { font-size: 13px; padding: 12px 14px; width: 100%; }
}


/* =======================================================
   13. FINAL CTA
   ======================================================= */

/* --- Main --- */
.cta-section {
    background: var(--green-dark);
    color: white;
    text-align: center;
    padding: 124px 0 112px;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -160px;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, var(--green) 0%, transparent 60%);
    opacity: 0.12;
    pointer-events: none;
}

.cta-section h2 {
    color: white;
    font-size: 50px;
    margin-bottom: 22px;
    line-height: 1.14;
    position: relative;
    letter-spacing: -0.8px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .lead {
    color: var(--blue-light);
    font-size: 20px;
    margin-bottom: 46px;
    position: relative;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.closing-tag {
    font-size: 16px;
    color: var(--green);
    margin-top: 48px;
    font-weight: 700;
    letter-spacing: 4px;
    position: relative;
}

/* --- Mobile --- */
@media (max-width: 900px) {
    .cta-section     { padding: 80px 0 72px; }
    .cta-section h2  { font-size: 32px; }
    .cta-section .lead { font-size: 17px; }
}

@media (max-width: 600px) {
    .cta-section       { padding: 64px 0 56px; }
    .cta-section h2    { font-size: 26px; }
    .cta-section .lead { font-size: 16px; margin-bottom: 32px; }
    .cta-buttons       { flex-direction: column; align-items: center; }
    .closing-tag       { font-size: 13px; letter-spacing: 3px; margin-top: 32px; }
}


/* =======================================================
   14. SCROLL REVEAL
   ======================================================= */

/* --- Main --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-on-scroll.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-on-scroll.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-on-scroll.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-on-scroll.reveal-delay-4 { transition-delay: 0.32s; }

/* Card-type elements get a subtle scale on entry */
.card.reveal-on-scroll,
.process-step.reveal-on-scroll,
.principle.reveal-on-scroll,
.check-card.reveal-on-scroll,
.eco-item.reveal-on-scroll {
    transform: translateY(24px) scale(0.98);
}
.card.reveal-on-scroll.is-visible,
.process-step.reveal-on-scroll.is-visible,
.principle.reveal-on-scroll.is-visible,
.check-card.reveal-on-scroll.is-visible,
.eco-item.reveal-on-scroll.is-visible {
    transform: translateY(0) scale(1);
}

/* Reduced-motion override */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .hero-anim {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }
}
