/* ============================================================
   HRBenergy — static rebuild
   Palette: deep slate/navy base, electric energy accent
   ============================================================ */

:root {
  --bg:        #0b1220;   /* deep navy-slate */
  --bg-alt:    #0f1a2e;   /* alt section */
  --surface:   #131f36;   /* cards */
  --surface-2: #18263f;   /* raised cards */
  --border:    #24334f;
  --text:      #eef2f8;
  --muted:     #9fb0c8;
  --accent:    #34e0a1;   /* energy green */
  --accent-2:  #3d8bff;   /* electric blue */
  --accent-ink:#04231a;
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1160px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-disp: 'Space Grotesk', var(--font-body);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,18,32,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand span { color: var(--accent); }
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  font-size: 0.94rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { filter: brightness(1.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(61,139,255,0.18), transparent 60%),
    radial-gradient(700px 400px at 10% 20%, rgba(52,224,161,0.14), transparent 60%);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero-lead {
  max-width: 640px;
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, filter 0.2s, background 0.2s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

/* hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 780px;
}
.stat {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-num {
  display: block;
  font-family: var(--font-disp);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* sub-page hero (shorter than homepage hero) */
.hero-sub { padding: 76px 0 60px; }
.page-badge {
  display: inline-block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent);
  background: rgba(52,224,161,0.12);
  border: 1px solid rgba(52,224,161,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-sub h1 {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.nav a.active { color: var(--text); }
.grid-econ { max-width: 900px; }

/* hero kicker + chips (monitoring) */
.hero-kicker {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 18px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.chip {
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 999px;
}
.chip strong { color: var(--accent); font-weight: 700; }

/* contact page */
.quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 14px;
}
.quick-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  min-width: 200px;
  transition: border-color 0.2s;
}
.quick-link:hover { border-color: var(--accent); }
.quick-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.quick-val { font-size: 1.15rem; font-weight: 600; color: var(--accent); }
.quick-sub { color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.hidden-field { display: none; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }
.form-submit { margin-top: 6px; border: 0; cursor: pointer; }

.contact-photos { display: grid; gap: 20px; }
.contact-photo {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
}
.photo-tall { aspect-ratio: 4 / 5; }
.photo-short { aspect-ratio: 4 / 3; }

.find-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: stretch;
}
.address { font-style: normal; color: var(--muted); line-height: 1.9; margin: 18px 0 20px; }
.find-cta { display: flex; flex-direction: column; gap: 8px; }
.find-link { color: var(--accent); font-weight: 500; }
.map-wrap {
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 320px; filter: grayscale(0.3) invert(0.9) hue-rotate(180deg); }

/* calculator note */
.calc-note { margin-top: 20px; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* numbered step icons (management) */
.card-icon.step {
  font-family: var(--font-disp);
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(52,224,161,0.22), rgba(61,139,255,0.10));
}

/* insights post cards */
.post-card { display: flex; flex-direction: column; }
.post-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(61,139,255,0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.post-card h3 {
  font-family: var(--font-disp);
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.post-card p { color: var(--muted); flex-grow: 1; }
.post-date {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- SECTIONS ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin-bottom: 18px;
}
.section-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 48px;
}

/* ---------- GRIDS ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* value cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52,224,161,0.18), rgba(61,139,255,0.18));
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card h3, .feature h3 {
  font-family: var(--font-disp);
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p, .feature p { color: var(--muted); font-size: 0.98rem; }

/* plain features */
.features-plain .feature {
  padding: 26px 0 26px 24px;
  border-left: 2px solid var(--accent);
}

/* pillars */
.pillars .pillar {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.pillars .pillar:hover { transform: translateY(-4px); border-color: var(--accent-2); background: var(--surface-2); }
.pillar-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(61,139,255,0.12);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.pillar h3 {
  font-family: var(--font-disp);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.pillar p { color: var(--muted); margin-bottom: 20px; }
.pillar-step { font-size: 0.9rem; font-weight: 600; color: var(--accent); }

/* commercial model cards */
.model-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.model-card-accent {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.model-card h3 {
  font-family: var(--font-disp);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.model-sub { color: var(--accent); font-weight: 500; margin-bottom: 22px; }
.model-card ul { list-style: none; }
.model-card li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--muted);
}
.model-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(52,224,161,0.16), transparent 70%),
    var(--bg-alt);
  text-align: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner .section-lead { margin-bottom: 32px; }

/* ---------- ACCREDITATIONS ---------- */
.accreditations {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.logo-track img {
  height: 46px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 0.2s, filter 0.2s;
}
.logo-track img:hover { opacity: 1; filter: none; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 56px 0 40px;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px 40px;
  align-items: start;
}
.footer-jv { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}
.footer-nav a { color: var(--muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px 24px;
  }
  .nav.open a { padding: 8px 0; width: 100%; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .contact-grid, .find-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

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