﻿/* ══════════════════════════════════════════════════════════════════════════
   shared.css — Procuvia Energy Design System
   ══════════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────────────── */
:root {
  --bg:        #0D0D14;
  --bg-2:      #13131A;
  --bg-3:      #1A1A23;
  --card:      rgba(255,255,255,0.036);
  --card-h:    rgba(255,255,255,0.065);
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);
  --red:       #D42027;
  --red-d:     #A8181D;
  --amber:     #F7941D;
  --amber-d:   #D97B08;
  --grad:      linear-gradient(135deg, #D42027 0%, #F7941D 100%);
  --t1: #fff;
  --t2: rgba(255,255,255,.58);
  --t3: rgba(255,255,255,.33);
  --t4: rgba(255,255,255,.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--t1);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ──────────────────────────────────────────────────────────── */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 3rem; }
.sec  { padding: 3.5rem 0; content-visibility: auto; contain-intrinsic-size: 0 400px; }

/* ── TYPE ────────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: 'Montserrat', sans-serif; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.25rem;
}
.ey-line { display: block; width: 1.5rem; height: 1px; background: var(--amber); }

.sh2 {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1; letter-spacing: -.03em;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border-radius: .5rem; padding: .82rem 1.6rem;
  transition: all .2s cubic-bezier(.4,0,.2,1); cursor: pointer; border: none; outline: none;
}
.btn-red   { background: var(--red); color: #fff; box-shadow: 0 4px 18px rgba(212,32,39,.35); }
.btn-red:hover {
  background: var(--red); transform: translateY(-2px);
  box-shadow: 0 0 0 2px #F7941D, 0 0 22px rgba(212,32,39,.6), 0 8px 20px rgba(212,32,39,.35);
}
.btn-red:active {
  transform: translateY(0);
  box-shadow: 0 0 0 2px #F7941D, 0 0 14px rgba(212,32,39,.7);
}
.btn-ghost { background: transparent; color: var(--t2); border: 1px solid var(--border-2); }
.btn-ghost:hover {
  color: #fff; border-color: #F7941D; transform: translateY(-2px);
  box-shadow: 0 0 0 1px #F7941D, 0 0 18px rgba(212,32,39,.38);
}
.btn-ghost:active {
  transform: translateY(0);
  box-shadow: 0 0 0 1px #F7941D, 0 0 10px rgba(212,32,39,.5);
}
.btn-amber { background: var(--amber); color: #fff; box-shadow: 0 4px 18px rgba(247,148,29,.32); }
.btn-amber:hover {
  background: var(--amber); transform: translateY(-2px);
  box-shadow: 0 0 0 2px #fff, 0 0 20px rgba(247,148,29,.5), 0 8px 20px rgba(247,148,29,.28);
}
.btn-amber:active {
  transform: translateY(0);
  box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(247,148,29,.6);
}

/* ── CARDS ───────────────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.125rem; padding: 1.75rem;
  transition: all .3s ease;
}
.card:hover { background: var(--card-h); border-color: var(--border-2); transform: translateY(-3px); }

/* ── ORBS ────────────────────────────────────────────────────────────── */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  will-change: auto;
}

/* ── REVEAL ──────────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1); }
.rv.up { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .07s; } .d2 { transition-delay: .14s; }
.d3 { transition-delay: .21s; } .d4 { transition-delay: .28s; }
.d5 { transition-delay: .35s; }

/* Pulse — only on elements explicitly given .pulse class */
@keyframes pulse-ring {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,32,39,.6); }
  50%      { box-shadow: 0 0 0 5px rgba(212,32,39,0); }
}
.pulse { animation: pulse-ring 2.5s ease infinite; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }


/* ═══════════════════════════════ NAVBAR ══════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,16,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .3s, border-color .3s;
}
#navbar.scrolled {
  background: rgba(10,10,16,.98);
  border-bottom-color: rgba(255,255,255,.12);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 90px;
}
.nav-logo {
  display: block; transition: transform .2s;
}
.nav-logo:hover { transform: scale(1.02); }
.nav-logo img { height: 80px; width: auto; display: block; image-rendering: -webkit-optimize-contrast; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'Montserrat', sans-serif; font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--t2); transition: color .2s;
}
.nav-links a:hover { color: var(--amber); }
.nav-links a.active { color: var(--amber); }

.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-contact {
  font-family: 'Montserrat', sans-serif; font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--t2); transition: color .2s;
}
.nav-contact:hover { color: var(--amber); }
.nav-contact.active { color: var(--amber); }

#burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
#burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }

#mmenu {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: var(--bg); flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
}
#mmenu.open { display: flex; }
#mmenu a {
  font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 800;
  color: #fff; text-decoration: none; transition: color .2s;
}
#mmenu a:hover { color: var(--amber); }
#mclose {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; color: var(--t3); cursor: pointer;
}


/* ═══════════════════════════════ FOOTER ════════════════════════════ */
footer { background: #000000; border-top: 1px solid rgba(255,255,255,.06); padding: 2.75rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-logo { display: inline-block; margin-bottom: 1.25rem; }
.footer-logo img { height: 120px; width: auto; display: block; image-rendering: -webkit-optimize-contrast; }
.footer-tag { font-size: .875rem; color: rgba(255,255,255,.85); line-height: 1.7; max-width: 320px; margin-bottom: 1.5rem; }
.soc-row { display: flex; gap: .625rem; }
.soc-btn {
  width: 2.25rem; height: 2.25rem; border-radius: .5rem;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--t3); text-decoration: none; transition: all .2s;
}
.soc-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.fc-title {
  font-family: 'Montserrat', sans-serif; font-size: .64rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 1.25rem;
}
.fc-links { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.fc-links a { font-size: .875rem; color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; }
.fc-links a:hover { color: #fff; }
.fc-contact-row { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .875rem; }
.fc-contact-row svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.fc-contact-row span { font-size: .875rem; color: rgba(255,255,255,.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.75rem;
  display: flex; align-items: center; justify-content: space-between;
  background: #000000;
}
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.75); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .75rem; color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--t2); }


/* ═══════════════════════════════ FORM ══════════════════════════════════ */
.cta-form {
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: 1.5rem; padding: 2rem; width: 100%;
}
.form-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.2rem; margin-bottom: 1.25rem; text-align: left; }
.form-fields-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: .75rem;
}
.form-field {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: .625rem; padding: .72rem 1rem; font-family: 'Inter', sans-serif;
  font-size: .875rem; color: #fff; outline: none;
  transition: border-color .2s, background .2s; display: block;
}
.form-field::placeholder { color: var(--t3); }
.form-field:focus { border-color: rgba(212,32,39,.6); background: rgba(255,255,255,.09); }
.form-note { font-size: .75rem; color: var(--t4); text-align: center; margin-top: .75rem; }

.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-label {
  font-family: 'Montserrat', sans-serif; font-size: .74rem; font-weight: 700;
  color: var(--t2); letter-spacing: .04em;
}
.form-label .req { color: var(--red); margin-left: .2rem; font-weight: 700; }

.form-textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: .625rem; padding: .72rem 1rem; font-family: 'Inter', sans-serif;
  font-size: .875rem; color: #fff; outline: none; resize: vertical;
  min-height: 90px; transition: border-color .2s, background .2s;
}
.form-textarea::placeholder { color: var(--t3); }
.form-textarea:focus { border-color: rgba(212,32,39,.6); background: rgba(255,255,255,.09); }

.file-upload-wrap {
  background: rgba(255,255,255,.04); border: 2px dashed var(--border-2);
  border-radius: .75rem; padding: .75rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; cursor: pointer; transition: border-color .2s, background .2s;
}
.file-upload-wrap:hover { border-color: rgba(212,32,39,.5); background: rgba(212,32,39,.04); }
.file-upload-wrap.has-file { border-style: solid; border-color: rgba(61,253,152,.4); background: rgba(61,253,152,.04); }
.file-upload-info { display: flex; align-items: center; gap: .75rem; }
.file-upload-icon { color: var(--amber); flex-shrink: 0; }
.file-upload-text { font-size: .85rem; color: var(--t2); }
.file-upload-hint { font-size: .72rem; color: var(--t3); margin-top: .15rem; }
.file-upload-btn {
  font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: rgba(212,32,39,.15); color: var(--red);
  border: 1px solid rgba(212,32,39,.35); border-radius: .5rem;
  padding: .5rem 1rem; cursor: pointer; white-space: nowrap;
  transition: all .2s; flex-shrink: 0;
}
.file-upload-btn:hover { background: rgba(212,32,39,.28); border-color: var(--red); }
#bill-input { display: none; }


/* ═══════════════════════════════ PAGE HERO ════════════════════════════ */
.page-hero {
  position: relative; padding: 8rem 0 3.5rem; overflow: hidden;
  background: var(--bg);
}
/* Full-bleed background image */
.page-hero .hero-bg-img {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero .hero-bg-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block;
  filter: contrast(1.18) saturate(1.32) brightness(0.83);
}
.page-hero .hero-bg-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      #000000  0%,
      #000000  22%,
      rgba(0,0,0,.88) 36%,
      rgba(0,0,0,.35) 56%,
      rgba(0,0,0,.05) 76%,
      transparent    100%),
    linear-gradient(to top, rgba(0,0,0,.3) 0%, transparent 20%),
    radial-gradient(ellipse at 80% 40%, rgba(212,32,39,.15) 0%, rgba(247,148,29,.06) 40%, transparent 65%);
}
/* Ensure text sits above image */
.page-hero .wrap { position: relative; z-index: 1; }
/* Force white text on all page-hero elements when image is present */
.page-hero:has(.hero-bg-img) h1,
.page-hero:has(.hero-bg-img) .page-hero-sub { color: #fff !important; }
.page-hero:has(.hero-bg-img) .page-hero-sub { color: rgba(255,255,255,.75) !important; }
.page-hero:has(.hero-bg-img) .eyebrow { color: var(--amber) !important; }
.page-hero:has(.hero-bg-img) .ey-line { background: var(--amber) !important; }

.page-hero-eyebrow { margin-bottom: 1rem; }
.page-hero h1 {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05;
  letter-spacing: -.04em; margin-bottom: 1.25rem;
}
.page-hero-sub {
  color: var(--t2); font-size: clamp(.95rem, 1.4vw, 1.1rem);
  line-height: 1.78; max-width: 640px;
}


/* ═══════════════════════════════ SECTION CTA ══════════════════════════ */
.section-cta {
  background: var(--bg-2); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0; text-align: center; position: relative; overflow: hidden;
}
.section-cta h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.1;
  letter-spacing: -.03em; margin-bottom: 1rem;
}
.section-cta p {
  color: var(--t2); font-size: 1rem; line-height: 1.75;
  max-width: 500px; margin: 0 auto 2rem;
}
.section-cta .cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }


/* ═══════════════════════════════ STATS BAR ════════════════════════════ */
.stats-bar {
  background: var(--bg-2); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
}
.stats-bar-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-cell {
  text-align: center; padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-big {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: clamp(2.4rem,4vw,3.4rem); line-height: 1; margin-bottom: .5rem;
}
.stat-big .hi { color: var(--amber); }
.stat-sml {
  font-family: 'Montserrat', sans-serif; font-size: .67rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--t3);
}


/* ═══════════════════════════════ RESPONSIVE ════════════════════════════ */
@media (max-width: 1024px) {
  .stats-bar-grid { grid-template-columns: repeat(2,1fr); }
  .form-fields-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 8rem 0 3rem; }
}

@media (max-width: 768px) {
  /* ── Navbar ───────────────────────────── */
  .nav-links, .nav-right { display: none; }
  #burger { display: flex; }
  .nav-inner { height: 68px; }
  .nav-logo img { height: 52px; }

  /* ── Typography ───────────────────────── */
  .sh2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* ── Body ────────────────────────────── */
  body { font-size: .92rem; }

  /* ── Sections ─────────────────────────── */
  .sec { padding: 2.5rem 0; }
  .wrap { padding: 0 1.25rem; }

  /* ── Page heroes ──────────────────────── */
  .page-hero { padding: 6.5rem 0 2.5rem; }
  .page-hero h1 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); margin-bottom: .75rem; }
  .page-hero-sub { font-size: .875rem; max-width: 100%; }
  /* Sub-page hero gradient: switch to top-dark on mobile */
  .page-hero .hero-bg-img::after {
    background:
      linear-gradient(to bottom,
        rgba(0,0,0,.88) 0%,
        rgba(0,0,0,.65) 35%,
        rgba(0,0,0,.25) 60%,
        transparent     78%),
      linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 18%);
  }

  /* ── Footer ───────────────────────────── */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  /* ── Stats bar ────────────────────────── */
  .stats-bar-grid { grid-template-columns: repeat(2,1fr); }
  .stat-cell { padding: 1.5rem 1rem; }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3),
  .stat-cell:nth-child(4) { border-top: 1px solid var(--border); }
  .stat-big { font-size: 1.75rem; }

  /* ── Forms ────────────────────────────── */
  .cta-form { padding: 1.5rem; }
  .form-fields-grid { grid-template-columns: 1fr; gap: .65rem; }
  .form-title { font-size: 1.05rem; }

  /* ── Section CTA ──────────────────────── */
  .section-cta { padding: 2.75rem 0; }
  .section-cta h2 { font-size: clamp(1.4rem, 5vw, 1.9rem); }
  .section-cta p { font-size: .9rem; }
  .section-cta .cta-btns { flex-direction: column; align-items: center; gap: .75rem; }

  /* ── Trust band (sub-pages) ───────────── */
  .trust-band-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .trust-band-items { flex-wrap: wrap; gap: .5rem; }

  /* ── Process bar ──────────────────────── */
  .process-bar { flex-direction: column; }
  .process-bar-step { border-right: none; border-bottom: 1px solid var(--border); }
  .process-bar-step:last-child { border-bottom: none; }
  .process-bar-step::after { display: none; }

  /* ── Burger animation ─────────────────── */
  #burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #burger.open span:nth-child(2) { opacity: 0; }
  #burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
  body { font-size: .875rem; line-height: 1.65; }
  .nav-logo img { height: 44px; }
  .nav-inner { height: 60px; }
  .wrap { padding: 0 1rem; }
  .sh2 { font-size: clamp(1.25rem, 5vw, 1.6rem); }
  .eyebrow { font-size: .62rem; letter-spacing: .14em; }
  p { font-size: .875rem; }
  .card { padding: 1.25rem; border-radius: 1rem; }

  /* ── Page hero ────────────────────────── */
  .page-hero { padding: 5.5rem 0 2rem; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .page-hero .hero-bg-img img { object-position: center 20%; }

  /* ── Typography ───────────────────────── */
  .eyebrow { font-size: .75rem; }

  /* ── Stats ────────────────────────────── */
  .stat-big { font-size: 1.5rem; }
  .stats-bar-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); padding: 1.25rem 1rem; }
  .stat-cell:last-child { border-bottom: none; }

  /* ── Buttons ──────────────────────────── */
  .btn { font-size: .74rem; padding: .85rem 1.2rem; }

  /* ── Forms ────────────────────────────── */
  .cta-form { padding: 1.25rem; }
  .section-cta .cta-btns { width: 100%; flex-direction: column; align-items: center; }
  .section-cta .btn { width: 100%; justify-content: center; }

  /* ── Trust band ───────────────────────── */
  .trust-band-items { flex-direction: column; gap: .6rem; }
  .trust-band-item { font-size: .78rem; }
}
