/* ══════════════════════════════════════════════
   styles.css — Repowering Partners (Updated)
══════════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:       #0a0a0a;
  --surface:  #111111;
  --surface2: #1a1a1a;
  --surface3: #222222;
  --text:     #f0f0f0;
  --text-inv: #0a0a0a;
  --muted:    #777777;
  --muted2:   #444444;
  --border:   #1e1e1e;
  --border2:  #2a2a2a;
  --font:     'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius:   3px;
  --nav-h:    52px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }

/* ══════════════════════════════
   NAV
══════════════════════════════ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: var(--nav-h);
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

nav.scrolled {
  background: rgba(10,10,10,0.99);
}

.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text);
  white-space: nowrap;
  user-select: none;
}

/* Centered pill */
.nav-center {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 30px;
  padding: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 360px);
}

.nav-center a {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
  user-select: none;
}

.nav-center a:hover {
  color: var(--text);
  background: var(--surface2);
}

.nav-center a.active {
  background: var(--text);
  color: var(--text-inv);
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-btn-solid {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-inv);
  background: var(--text);
  border: none;
  border-radius: var(--radius);
  padding: 8px 18px;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-btn-solid:hover { background: #d0d0d0; }

/* Hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  width: 36px;
  height: 36px;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
  pointer-events: none;
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 998;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.32s ease, opacity 0.28s ease;
}

.mobile-nav.open { max-height: 300px; opacity: 1; }

.mobile-nav a {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: color 0.2s, background 0.2s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:active, .mobile-nav a:hover { color: var(--text); background: var(--surface); }


/* ══════════════════════════════
   PAGES
══════════════════════════════ */

.page {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.page.active {
  display: block;
  animation: pgIn 0.38s ease forwards;
}

@keyframes pgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════ */

[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

[data-animate-left] {
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate-left].visible { opacity: 1; transform: translateX(0); }


/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */

.btn-solid {
  display: inline-block;
  background: var(--text);
  color: var(--text-inv);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 13px 28px;
  border: none;
  border-radius: 30px;
  letter-spacing: 0.03em;
  transition: background 0.25s, transform 0.25s;
  white-space: nowrap;
  text-transform: uppercase;
}

.btn-solid:hover { background: #d8d8d8; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  background: none;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 12px 24px;
  border: 1px solid var(--border2);
  border-radius: 30px;
  letter-spacing: 0.03em;
  transition: border-color 0.25s, transform 0.25s;
  white-space: nowrap;
  text-transform: uppercase;
}

.btn-outline:hover { border-color: var(--muted2); transform: translateY(-1px); }


/* ══════════════════════════════
   IMAGE PLACEHOLDERS
══════════════════════════════ */

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface);
  border: 1px dashed var(--border2);
}

.img-placeholder span {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted2);
  text-align: center;
  padding: 0 12px;
}

/* Hide placeholder when image is present */
.strip-img img ~ .img-placeholder { display: none; }


/* ══════════════════════════════
   HERO & TRUST SECTION
══════════════════════════════ */

.hero {
  padding: 52px 32px 44px;
  border-bottom: 1px solid var(--border);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-meta-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted2);
  flex-shrink: 0;
}

.hero-meta-tag {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 2px;
  padding: 3px 10px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.hero-headline {
  font-size: clamp(3.8rem, 11vw, 11.5rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-headline .line-muted { display: block; color: var(--muted2); }

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.hero-tag-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text);
}

.tag-icon {
  width: 26px; height: 26px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  flex-shrink: 0;
}
.tag-icon svg { width: 11px; height: 11px; }

.hero-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* TRUST STRIP (New) */
.trust-strip {
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--surface);
}

.trust-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted2);
}

.trust-logos {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.trust-logos span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  opacity: 0.6;
}


/* ══════════════════════════════
   IMAGE STRIP
══════════════════════════════ */

.hero-image-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
  height: 380px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.strip-img {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  min-height: 0;
}

.strip-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  filter: brightness(0.75) grayscale(15%);
}

.strip-img:hover img { transform: scale(1.04); filter: brightness(0.9) grayscale(5%); }

.strip-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.6) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.strip-label {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(10,10,10,0.82);
  border: 1px solid var(--border2);
  border-radius: 2px;
  padding: 4px 12px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  z-index: 2;
}


/* ══════════════════════════════
   STATS & PROCESS
══════════════════════════════ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}

.stat-cell {
  padding: 44px 32px;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }

.stat-num {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-lbl {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 56px 32px 40px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 20px;
}

.sh-eyebrow {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}

.sh-title {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-transform: uppercase;
}

.sh-right p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 360px;
}

.process-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.process-col {
  padding: 40px 28px;
  border-right: 1px solid var(--border);
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.process-col:last-child { border-right: none; }
.process-col:hover { background: var(--surface); }

.process-col::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.process-col:hover::after { transform: scaleX(1); }

.pc-num {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 28px;
}

.process-col h3 {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.process-col p { font-size: 0.78rem; color: var(--muted); line-height: 1.8; }


/* ══════════════════════════════
   CTA BANNER
══════════════════════════════ */

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 58px 32px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 28px;
  background: var(--surface);
}

.cta-banner h2 {
  font-size: clamp(2rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  line-height: 0.92;
}

.cta-banner h2 span { color: var(--muted2); }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }


/* ══════════════════════════════
   FOOTER
══════════════════════════════ */

footer {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-mid { font-size: 0.7rem; color: var(--muted); }

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  user-select: none;
}
.footer-links a:hover { color: var(--text); }


/* ══════════════════════════════
   ABOUT PAGE
══════════════════════════════ */

.about-hero {
  padding: 56px 32px 50px;
  border-bottom: 1px solid var(--border);
}

.about-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 22px;
}

.about-hero h1 {
  font-size: clamp(3.2rem, 10vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.86;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.about-hero h1 .muted-line { display: block; color: var(--muted2); }

.about-hero-body {
  max-width: 560px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.88;
}

.about-img-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2px;
  height: 300px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.about-img-cell {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  min-height: 0;
}

.about-img-cell img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7) grayscale(15%);
  transition: transform 0.6s ease;
}

.about-img-cell:hover img { transform: scale(1.04); }

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.about-block {
  padding: 52px 32px;
  border-right: 1px solid var(--border);
}
.about-block:last-child { border-right: none; }

.ab-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 14px;
}

.ab-title {
  font-size: clamp(1.3rem, 2.5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.08;
}

.about-block p { font-size: 0.82rem; color: var(--muted); line-height: 1.88; }

.about-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 58px 32px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
  flex-wrap: wrap;
}

.about-close-left h2 {
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  line-height: 1.04;
  margin-bottom: 12px;
}

.about-close-left p {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.85;
}

.about-close-right { display: flex; gap: 10px; flex-wrap: wrap; }


/* ══════════════════════════════
   CONTACT PAGE
══════════════════════════════ */

.contact-hero {
  padding: 56px 32px 50px;
  border-bottom: 1px solid var(--border);
}

.contact-hero h1 {
  font-size: clamp(3.2rem, 10vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.86;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.contact-hero h1 .muted-line { display: block; color: var(--muted2); }

.contact-hero p {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.85;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  border-bottom: 1px solid var(--border);
}

.contact-info {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.ci-card {
  padding: 26px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: background 0.2s;
}

.ci-card:hover { background: var(--surface); }
.ci-card:last-child { border-bottom: none; }

.ci-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.ci-card p, .ci-card a { font-size: 0.84rem; font-weight: 600; line-height: 1.6; color: var(--text); text-decoration: none; }
.ci-card a:hover { opacity: 0.6; }

.contact-form-section { padding: 42px; }

.cf-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cf-sub {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 13px; }

.form-group label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.82rem;
  padding: 11px 13px;
  font-family: var(--font);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

/* UI Polish: Improved Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--muted);
  background: #222; /* Slightly lighter on focus */
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted2); font-size: 0.8rem; }

.form-group select { cursor: pointer; }
.form-group textarea { height: 100px; resize: vertical; min-height: 80px; }

.form-submit {
  width: 100%;
  background: var(--text);
  color: var(--text-inv);
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  transition: background 0.25s, transform 0.25s;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}

.form-submit:hover { background: #d4d4d4; transform: translateY(-1px); }

.success-msg { display: none; text-align: center; padding: 52px 20px; }
.success-msg.show { display: block; }

.success-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  background: var(--surface2);
}
.success-icon svg { width: 18px; height: 18px; }

.success-msg h4 {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.success-msg p { font-size: 0.8rem; color: var(--muted); line-height: 1.75; }


/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */

@media (max-width: 960px) {
  nav { padding: 0 20px; }
  .nav-center { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav { display: none; flex-direction: column; }

  .hero-image-strip { grid-template-columns: 1fr 1fr; height: 260px; }
  .hero-image-strip .strip-img:last-child { display: none; }

  .stats-row { grid-template-columns: 1fr 1fr; }
  .stats-row .stat-cell:last-child { border-right: none; border-top: 1px solid var(--border); grid-column: span 2; }
  .process-cols { grid-template-columns: 1fr 1fr; }
  .process-col:nth-child(2) { border-right: none; }
  .process-col:nth-child(3) { border-top: 1px solid var(--border); }
  .about-split { grid-template-columns: 1fr; }
  .about-block { border-right: none; border-bottom: 1px solid var(--border); }
  .about-img-row { grid-template-columns: 1fr; height: 240px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 640px) {
  nav { padding: 0 16px; }
  .nav-btn-solid { font-size: 0.68rem; padding: 7px 13px; }
  .hero { padding: 36px 16px 30px; }
  .hero-headline { margin-bottom: 28px; }
  .hero-image-strip { height: 220px; grid-template-columns: 1fr; }
  .hero-image-strip .strip-img:not(:first-child) { display: none; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 20px; }
  .process-cols { grid-template-columns: 1fr; }
  .process-col { border-right: none; border-bottom: 1px solid var(--border); }
  .trust-strip { gap: 12px; }
  .trust-logos { gap: 20px; }
}