/* =========================================================
   Sol Energy Capital — corporate site
   Palette: deep navy + warm sun gold + clean off-white
   ========================================================= */

:root {
  /* Brand greens (from Sol Energy Capital logo) */
  --navy-900: #0E3621;        /* deepest forest — primary dark */
  --navy-800: #143E27;
  --navy-700: #1B4E32;
  --navy-600: #235E3E;        /* logo wordmark green */
  --ink:      #0B2415;        /* darkest text */
  --slate-700:#324438;
  --slate-500:#5E6F62;
  --slate-400:#8B9A8E;
  --slate-200:#D6DCD4;
  --slate-100:#EDF1EB;
  --bg:       #F6F8F4;        /* very faint sage tint */
  --white:    #FFFFFF;

  --sun:      #B7C49E;        /* sage burst from logo icon */
  --sun-soft: #D4DCBE;
  --teal:     #4F8A6A;        /* secondary mid-green accent */

  --shadow-sm: 0 2px 6px rgba(11,18,32,.06);
  --shadow-md: 0 10px 30px rgba(11,18,32,.08);
  --shadow-lg: 0 24px 60px rgba(11,18,32,.18);

  --radius:   14px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --maxw: 1200px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

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

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0 0 14px;
  position: relative;
  padding-left: 28px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 20px; height: 1px;
  background: var(--sun);
}
.eyebrow-light { color: var(--slate-200); }
.eyebrow-light::before { background: var(--sun); }

.accent { color: var(--sun); }

/* ============ HEADER / NAV ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--slate-100);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
}
.brand-mark { color: var(--sun); display: inline-flex; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
}
.brand-logo {
  display: block;
  height: 38px;
  width: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate-700);
  border-radius: 8px;
}
.primary-nav a:hover { color: var(--navy-900); background: var(--slate-100); }

.nav-cta {
  background: var(--navy-900);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  margin-left: 6px;
}
.nav-cta:hover { background: var(--navy-700) !important; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--navy-600);
  color: var(--white);
  box-shadow: 0 10px 22px -10px rgba(14,54,33,.55);
}
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 14px 30px -10px rgba(14,54,33,.7); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); }
.btn-lg { padding: 18px 34px; font-size: 16px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  isolation: isolate;
  padding: 168px 0 110px;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(100deg,
      rgba(14,54,33,.86) 0%,
      rgba(14,54,33,.74) 40%,
      rgba(20,62,39,.52) 70%,
      rgba(27,78,50,.42) 100%),
    url('assets/cover/BESS_5.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  top: -260px; right: -180px;
  background: radial-gradient(circle, rgba(183,196,158,.32) 0%, rgba(183,196,158,0) 60%);
  filter: blur(10px);
}
.hero-inner { position: relative; max-width: 980px; }

.hero-title {
  font-size: clamp(38px, 5.8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--white);
  margin: 14px 0 26px;
  line-height: 1.05;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--slate-200);
  max-width: 760px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stats li {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stats span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.01em;
}
.hero-stats small {
  font-size: 13px;
  color: var(--slate-400);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ============ INTRO BAND ============ */
.intro-band {
  background: var(--white);
  padding: 96px 0;
  border-bottom: 1px solid var(--slate-100);
}
.intro-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy-900);
  max-width: 920px;
  margin: 0 0 60px;
  letter-spacing: -.015em;
}
.intro-lead strong { color: var(--navy-600); font-weight: 600; }

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--slate-100);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.cap {
  background: var(--white);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .2s var(--ease);
}
.cap:hover { background: #FBFCFD; }
.cap span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-600);
  letter-spacing: .12em;
}
.cap h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--navy-900);
}

/* ============ TECH PORTFOLIO ============ */
.tech-portfolio {
  background: var(--bg);
}
.tech-lead {
  font-size: 17px;
  color: var(--slate-700);
  max-width: 760px;
  margin: 18px 0 0;
  line-height: 1.6;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
.tech-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.tech-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--slate-100), var(--sun-soft));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  overflow: hidden;
  position: relative;
}
.tech-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tech-emoji {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(11,18,32,.12));
}
.tech-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-600);
  letter-spacing: .12em;
}
.tech-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  color: var(--navy-900);
}

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section-muted { background: var(--bg); }
.section-dark {
  background: var(--navy-900);
  color: var(--slate-200);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(183,196,158,.10) 0%, rgba(183,196,158,0) 60%);
  pointer-events: none;
}

.section-head {
  max-width: 820px;
  margin: 0 0 56px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
}

/* ============ WHO WE ARE ============ */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.who-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: var(--slate-200);
}
.who-card h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 18px;
}
.who-card .lead {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--white);
  margin-bottom: 18px;
}
.who-card strong { color: var(--sun); }
.who-card-feature {
  background: linear-gradient(160deg, rgba(244,168,43,.10), rgba(244,168,43,.02));
  border-color: rgba(244,168,43,.25);
}

/* ============ CHECK LISTS ============ */
.check-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15.5px;
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: inset 0 0 0 4px var(--white);
}
.section-dark .check-list li::before {
  box-shadow: inset 0 0 0 4px var(--navy-900);
}

/* ============ WHAT WE DO — categories (Utility-Scale / C&I) ============ */
.categories {
  display: grid;
  gap: 88px;
}
.category {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.category-reverse .category-media { order: 2; }
.category-reverse .category-body  { order: 1; }

.category-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--slate-100);
  box-shadow: 0 24px 60px -28px rgba(11,36,21,.35);
}
.category-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(11,36,21,.08);
  pointer-events: none;
}
.category-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.category:hover .category-media img { transform: scale(1.03); }

.category-body h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 10px 0 16px;
  color: var(--navy-900);
}
.category-body > p {
  color: var(--slate-700);
  font-size: 16.5px;
  margin-bottom: 18px;
  max-width: 56ch;
}

/* ============ WHAT WE DO — pillars (legacy, unused) ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-200);
}
.pillar-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(35,94,62,.10);
  color: var(--navy-600);
  margin-bottom: 6px;
}
.pillar h3 {
  font-size: 20px;
  margin: 0;
}
.pillar p { color: var(--slate-700); margin: 0; }
.pillar .muted { color: var(--slate-500); font-size: 14.5px; }

.pillar-feature {
  background: var(--navy-900);
  color: var(--slate-200);
  border-color: var(--navy-700);
}
.pillar-feature h3 { color: var(--white); }
.pillar-feature p { color: var(--slate-200); }
.pillar-feature .muted { color: var(--slate-400); }
.pillar-feature .pillar-icon {
  background: rgba(183,196,158,.22);
  color: var(--sun);
}
.pillar-feature .check-list li::before {
  box-shadow: inset 0 0 0 4px var(--navy-900);
}

/* ============ MARKETS ============ */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
.market {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.market::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 4px; width: 64px;
  background: var(--sun);
  border-radius: 0 0 4px 0;
}
.market:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.market h3 { font-size: 22px; margin: 12px 0 10px; color: var(--navy-900); }
.market p { color: var(--slate-700); margin: 0; }

.focus-strip {
  margin-top: 48px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
}
.focus-label {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--sun-soft);
  font-size: 15px;
  letter-spacing: .02em;
}
.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.focus-tags li {
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: var(--slate-200);
}

/* ============ CTA SECTION ============ */
.cta-section {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(183,196,158,.22) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-text { padding-top: 4px; }
.cta-text .eyebrow-light { margin-bottom: 18px; }

/* ============ CONTACT FORM ============ */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: grid;
  gap: 10px;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.35);
}
.hp-field {
  position: absolute;
  left: -10000px;
  visibility: hidden;
}
.form-row {
  display: grid;
  gap: 6px;
}
.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  letter-spacing: .02em;
}
.form-row label span[aria-hidden="true"] {
  color: var(--navy-600);
  font-weight: 700;
}
.form-row label .muted {
  color: var(--slate-500);
  font-weight: 400;
}
.form-row input,
.form-row textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  width: 100%;
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.form-row textarea {
  resize: vertical;
  min-height: 68px;
  line-height: 1.5;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(35,94,62,.12);
}
.contact-form .btn {
  justify-self: start;
  margin-top: 2px;
  padding: 12px 26px;
}
.cta-inner { max-width: 820px; margin: 0 auto; }
.cta-title {
  font-size: clamp(28px, 3.6vw, 46px);
  color: var(--white);
  margin-bottom: 18px;
}
.cta-sub {
  color: var(--slate-200);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding: 64px 0 30px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand { color: var(--white); }
.footer-brand .brand-name { color: var(--white); font-size: 16px; }
.footer-brand .brand-mark { color: var(--sun); }
.footer-tag {
  margin-top: 14px;
  max-width: 420px;
  color: var(--slate-400);
  font-size: 14.5px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--slate-400); font-size: 14.5px; }
.footer-col a:hover { color: var(--sun); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--slate-500);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero { padding: 140px 0 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .capabilities { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .categories { gap: 60px; }
  .category {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .category-reverse .category-media { order: 0; }
  .category-reverse .category-body  { order: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .nav-wrap { height: 64px; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .primary-nav.open { max-height: 420px; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 22px;
    gap: 4px;
  }
  .primary-nav a {
    display: block;
    padding: 14px 12px;
    border-radius: 10px;
  }
  .nav-cta { text-align: center; margin: 8px 0 0 !important; }

  .section { padding: 80px 0; }
  .intro-band { padding: 70px 0; }
  .capabilities { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .who-card { padding: 32px 24px; }
  .focus-strip { padding: 24px; }
}
