/* ============================================
   EcoSunFire Technologies
   Decision Intelligence — v3
   ============================================ */

:root {
  --bg:         #07090F;
  --bg-2:       #0C0F18;
  --bg-3:       #131720;
  --gold:       #C9A45A;
  --gold-dim:   rgba(201,164,90,0.12);
  --gold-line:  rgba(201,164,90,0.22);
  --white:      #E8E5DC;
  --muted:      rgba(232,229,220,0.52);
  --faint:      rgba(232,229,220,0.09);

  /* Backwards-compat aliases used by inner page inline styles */
  --color-text-muted:     var(--muted);
  --color-text-secondary: rgba(232,229,220,0.65);
  --font-size-sm:         0.875rem;
  --space-2:  0.5rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* Focus-visible: gold outline for keyboard users (WCAG AA) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  border-bottom: 0.5px solid var(--gold-line);
  background: rgba(7,9,15,0.94);
  backdrop-filter: blur(14px);
}

.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  height: 52px; width: auto; display: block;
}

.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}

.nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--white); }

.nav-cta {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 0.5px solid var(--gold-line);
  padding: 0.55rem 1.3rem; text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--gold-dim); }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.container--narrow { max-width: 800px; }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 9rem 3rem 5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,164,90,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,164,90,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
}

.page-header::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%; pointer-events: none;
  background: radial-gradient(ellipse at 75% 35%, rgba(201,164,90,0.07) 0%, transparent 60%);
}

.page-header__title {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600; line-height: 1.07; letter-spacing: -0.01em;
  max-width: 22ch; margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}

.page-header__text {
  font-size: 1.05rem; color: var(--muted); max-width: 52ch; line-height: 1.85;
  position: relative; z-index: 1;
}

/* ── SECTIONS ── */
section { padding: 7rem 3rem; }

.section-header { margin-bottom: 3.5rem; }

.section-header__label,
.eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.63rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.section-header__label::before,
.eyebrow::before {
  content: ''; display: block; width: 24px; height: 0.5px; background: var(--gold);
}

.section-header__text {
  font-size: 0.97rem; color: var(--muted); line-height: 1.8;
  max-width: 52ch;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600; line-height: 1.07; letter-spacing: -0.01em;
}

h2,
.section-header__title {
  font-family: 'Cormorant', serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.01em;
  max-width: 22ch;
  margin-bottom: 1.25rem;
}

h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 0.5rem;
}

h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 0.5rem;
}

strong { font-weight: 500; color: var(--white); }

/* ── GRID ── */
.grid { display: grid; gap: 2rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

/* ── CARDS ── */
.card {
  background: var(--bg-2);
  border: 0.5px solid var(--faint);
  padding: 2.25rem 2rem;
  transition: border-color .25s;
}
.card:hover { border-color: var(--gold-line); }

.card__title {
  font-family: 'Syne', sans-serif;
  font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 0.75rem;
}

.card__text { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

.card__list { list-style: none; margin-top: 0.5rem; }
.card__list li {
  font-size: 0.88rem; color: var(--muted); line-height: 1.75;
  padding: 0.4rem 0; border-bottom: 0.5px solid var(--faint);
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.card__list li::before {
  content: '—'; color: var(--gold); flex-shrink: 0; margin-top: 0.15em;
}
.card__list li:last-child { border-bottom: none; }

.card__icon { color: var(--gold); margin-bottom: 1rem; }

/* ── FEATURE LIST ── */
.feature-list { list-style: none; }
.feature-list__item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 0.5px solid var(--faint);
  font-size: 0.93rem; line-height: 1.7; color: var(--muted);
}
.feature-list__item:last-child { border-bottom: none; }
.feature-list__icon { color: var(--gold); flex-shrink: 0; margin-top: 0.15em; }

/* ── PHASE TIMELINE ── */
.phase-timeline {
  display: flex; align-items: center;
  margin: 3rem auto; max-width: 600px;
}
.phase-timeline__item { text-align: center; flex: 1; }
.phase-timeline__marker {
  width: 48px; height: 48px; margin: 0 auto 0.75rem;
  background: var(--bg-3); border: 0.5px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant', serif;
  font-size: 1.4rem; font-weight: 600; color: var(--gold);
}
.phase-timeline__title {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 0.2rem;
}
.phase-timeline__duration { font-size: 0.78rem; color: var(--muted); }
.phase-timeline__connector { flex: 1; height: 0.5px; background: var(--faint); }

/* ── BUTTONS ── */
.btn-primary,
.btn.btn--primary {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase;
  background: var(--gold); color: #07090F; font-weight: 700;
  padding: 0.9rem 2.1rem; text-decoration: none;
  transition: opacity .2s; display: inline-block;
  border: none; cursor: pointer;
}
.btn-primary:hover,
.btn.btn--primary:hover { opacity: 0.86; }

.btn-ghost,
.btn.btn--secondary {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s;
  background: none; border: 0.5px solid var(--faint); cursor: pointer;
  padding: 0.9rem 2rem; display: inline-block;
}
.btn-ghost:hover,
.btn.btn--secondary:hover { color: var(--white); border-color: var(--gold-line); }

.btn.btn--lg { font-size: 0.78rem; padding: 1rem 2.4rem; }

/* ── CTA BAND ── */
.cta-band {
  text-align: center; position: relative; overflow: hidden;
  padding: 9rem 3rem !important;
  border-top: 0.5px solid var(--faint) !important;
  background: var(--bg) !important;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, rgba(201,164,90,0.08) 0%, transparent 60%);
}
.cta-band .container { position: relative; }
.cta-band__title {
  font-family: 'Cormorant', serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 600; line-height: 1.12;
  margin: 0 auto 1.25rem; max-width: 28ch;
}

/* ── PROSE (legal pages) ── */
.prose { max-width: 72ch; }
.prose p { font-size: 1rem; line-height: 1.85; color: var(--muted); margin-bottom: 1.25rem; }
.prose h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); max-width: none; margin-top: 3rem; margin-bottom: 0.75rem; color: var(--white); }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.45rem; }
.prose ul li { font-size: 1rem; line-height: 1.7; color: var(--muted); padding-left: 1.25rem; position: relative; }
.prose ul li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 0.8rem; top: 0.15em; }
.prose a { color: var(--gold); text-decoration: none; border-bottom: 0.5px solid rgba(201,164,90,0.35); }
.prose a:hover { border-bottom-color: var(--gold); }
.prose strong { color: var(--white); font-weight: 500; }

/* ── FOOTER ── */
footer {
  border-top: 0.5px solid var(--faint);
  padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}

.footer-copy { font-size: 0.76rem; color: var(--muted); }

.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

/* ── DELIVERY PHASES ── */
.delivery-phase {
  border-bottom: 0.5px solid var(--faint);
  padding: 3rem 0;
}
.delivery-phase:first-child { padding-top: 0; }
.delivery-phase:last-child { border-bottom: none; }

.delivery-phase__header {
  display: flex; gap: 1.5rem; align-items: flex-start;
  margin-bottom: 1.25rem;
}

.delivery-phase__marker {
  font-family: 'Cormorant', serif;
  font-size: 2.8rem; font-weight: 600; color: var(--gold);
  line-height: 1; flex-shrink: 0; width: 3.5rem;
}

.delivery-phase__meta { flex: 1; }

.delivery-phase__title {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 0.25rem;
}

.delivery-phase__duration { font-size: 0.82rem; color: var(--gold); }

.delivery-phase__content { padding-left: 5rem; }

.delivery-phase__description {
  font-size: 0.95rem; color: var(--muted); line-height: 1.8;
  margin-bottom: 1.5rem;
}

.delivery-phase__outputs h4 {
  margin-bottom: 0.75rem;
}

.delivery-phase__outputs ul { list-style: none; }
.delivery-phase__outputs li {
  font-size: 0.88rem; color: var(--muted); line-height: 1.75;
  padding: 0.4rem 0; border-bottom: 0.5px solid var(--faint);
  display: flex; gap: 0.5rem;
}
.delivery-phase__outputs li::before { content: '—'; color: var(--gold); flex-shrink: 0; }
.delivery-phase__outputs li:last-child { border-bottom: none; }

/* ── ORG CHART ── */
.org-chart { max-width: 640px; margin: 0 auto 3rem; }

.org-chart__level {
  display: flex; gap: 1.5rem; justify-content: center;
}

.org-chart__node {
  background: var(--bg-2);
  border: 0.5px solid var(--faint);
  padding: 1.25rem 1.75rem;
  text-align: center; min-width: 200px;
}
.org-chart__node--client  { border-color: var(--gold-line); }
.org-chart__node--ecosunfire { background: var(--bg-3); border-color: var(--gold-line); }
.org-chart__node--small   { min-width: 160px; }

.org-chart__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); display: block;
}

.org-chart__sublabel {
  font-size: 0.78rem; color: var(--muted); display: block; margin-top: 0.25rem;
}

.org-chart__connector {
  width: 0.5px; height: 2rem; background: var(--faint); margin: 0 auto;
}

/* ── PROFILE ── */
.profile {
  display: flex; gap: 2rem; align-items: flex-start;
  padding: 2.5rem 0; border-top: 0.5px solid var(--faint);
}

.profile__avatar {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--bg-3); border: 0.5px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant', serif;
  font-size: 1.4rem; font-weight: 600; color: var(--gold);
}

.profile__name {
  font-family: 'Cormorant', serif;
  font-size: 1.6rem; font-weight: 600; color: var(--white);
  margin-bottom: 0.2rem;
}

.profile__title {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
}

.profile__bio { font-size: 0.93rem; color: var(--muted); line-height: 1.78; }

/* ── PRINCIPLES ── */
.principles { display: flex; flex-direction: column; }

.principle {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.6rem 0; border-bottom: 0.5px solid var(--faint);
}
.principle:last-child { border-bottom: none; }

.principle__icon { color: var(--gold); flex-shrink: 0; margin-top: 0.2rem; }

.principle__text { font-size: 0.93rem; color: var(--muted); line-height: 1.78; }

/* ── CONTACT INFO ── */
.contact-info { margin-bottom: 2rem; }

.contact-info__title {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1rem;
}

.contact-info__item {
  display: flex; gap: 0.75rem; align-items: center;
  font-size: 0.93rem; color: var(--muted);
}
.contact-info__item a { color: var(--gold); text-decoration: none; }
.contact-info__item a:hover { text-decoration: underline; }
.contact-info__icon { color: var(--gold); flex-shrink: 0; }

/* ── FORM ── */
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.form__honeypot { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form__group { display: flex; flex-direction: column; gap: 0.5rem; }

.form__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

.form__input,
.form__textarea,
.form__select {
  background: var(--bg-2);
  border: 0.5px solid var(--faint);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem; line-height: 1.6;
  padding: 0.85rem 1rem;
  transition: border-color .2s;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form__input:focus,
.form__textarea:focus,
.form__select:focus { border-color: var(--gold-line); }
.form__input::placeholder,
.form__textarea::placeholder { color: var(--muted); }
.form__textarea { min-height: 140px; resize: vertical; }
.form__select { cursor: pointer; }
.form__select option { background: var(--bg-2); color: var(--white); }
.form__note { font-size: 0.8rem; color: var(--muted); }

/* ── UTILITIES ── */
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-8  { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--bg-2);
  border-top: 0.5px solid var(--faint);
  padding: 1.5rem 3rem;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 2rem; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
}
.cookie-banner__text { font-size: 0.88rem; color: var(--muted); }
.cookie-banner__text a { color: var(--gold); text-decoration: none; }
.cookie-banner__actions { display: flex; gap: 1rem; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 5rem 1.5rem; }
  .page-header { padding: 7rem 1.5rem 4rem; }
  .container { padding: 0 1.5rem; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .delivery-phase__content { padding-left: 0; }
  .delivery-phase__marker { font-size: 2rem; width: 2.5rem; }
  .org-chart__level { flex-direction: column; align-items: center; }
  .form__row { grid-template-columns: 1fr; }
  .profile { flex-direction: column; }
  .phase-timeline { flex-direction: column; align-items: center; }
  .phase-timeline__connector { width: 0.5px; height: 2rem; }
  footer { flex-direction: column; gap: 1.25rem; text-align: center; }
  .footer-links { justify-content: center; }
  .cookie-banner { padding: 1.25rem 1.5rem; }
  .cta-band { padding: 5rem 1.5rem !important; }
}
