/* =============================================
   KJ Energy Development — Styles
   ============================================= */

/* --- Variables --- */
:root {
  --chocolate: #2C2C2A;
  --chestnut: #993C1D;
  --mauve: #D85A30;
  --sandy: #B4B2A9;
  --cream: #FAECE7;
  --cream-light: #F1EFE8;
  --dark-stone: #5F5E5A;
  --dusty-clay: #F0997B;
  --white: #FFFFFF;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 80px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--chocolate);
  background: var(--cream-light);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 1rem;
}
.label--light { color: var(--sandy); }
.h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--chocolate);
  margin-bottom: 1.5rem;
}
.h2--light { color: var(--cream); }
.section { position: relative; }
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border-radius: 4px;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--chestnut);
  color: var(--cream);
  border-color: var(--chestnut);
}
.btn--primary:hover {
  background: var(--chocolate);
  border-color: var(--chocolate);
}
.btn--outline {
  background: transparent;
  color: var(--chestnut);
  border-color: var(--chestnut);
}
.btn--outline:hover {
  background: var(--chestnut);
  color: var(--cream);
}
.btn--full { width: 100%; text-align: center; }

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: var(--chocolate);
  box-shadow: 0 2px 24px rgba(44,18,6,0.18);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 40px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-img { height: 44px; transition: opacity 0.3s; }
.nav__logo-dark { opacity: 1; position: absolute; }
.nav__logo-light { opacity: 0; position: relative; }
.nav.scrolled .nav__logo-dark { opacity: 0; }
.nav.scrolled .nav__logo-light { opacity: 1; }
/* On transparent nav over hero, show dark (chocolate) logo since hero is dark */
.nav:not(.scrolled) .nav__logo-dark { opacity: 0; }
.nav:not(.scrolled) .nav__logo-light { opacity: 1; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__links a {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--chocolate);
  transition: color 0.2s;
}
.nav.scrolled .nav__links a { color: var(--cream); }
.nav__links a:hover { color: var(--chestnut); }
.nav.scrolled .nav__links a:hover { color: var(--sandy); }
.nav__cta {
  background: var(--chestnut) !important;
  color: var(--cream) !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 400 !important;
  transition: background 0.25s !important;
}
.nav__cta:hover { background: var(--dusty-clay) !important; color: var(--chocolate) !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--chocolate); transition: all 0.3s; }
.nav.scrolled .nav__toggle span { background: var(--cream); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__video {
  position: relative;
  z-index: 1;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(241,239,232,0.45);
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 900px;
  margin: 0 auto 0 10%;
}
.hero__eyebrow {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chestnut);
  margin-bottom: 1.25rem;
}
.hero__headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--chocolate);
  margin-bottom: 1.5rem;
}
.hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: var(--chocolate);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 580px;
}
.br-desktop { display: inline; }
.hero__scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-cue span {
  display: block;
  width: 1.5px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--chestnut));
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: 120px 0;
  background: var(--cream-light);
}
.about__bg-photo {
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  overflow: hidden;
}
.about__bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about__bg-photo img { width:100%; height:100%; object-fit:cover; object-position: center; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.about__text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #3C3C3A;
  margin-bottom: 1.25rem;
}
.about__text p:last-child { margin-bottom: 0; }
.founder-card {
  position: relative;
  padding: 40px;
  background: var(--cream);
  border-radius: 4px;
}
.founder-card__accent {
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--mauve), var(--sandy));
  border-radius: 4px 0 0 4px;
}
.founder-card__body .label { margin-bottom: 0.4rem; }
.label--founder {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--chestnut);
}
.founder-card__body h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--chocolate);
  margin-bottom: 1.25rem;
}
.founder-card__body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #3C3C3A;
  margin-bottom: 1rem;
}
.founder-card__body p:last-child { margin-bottom: 0; }

/* =============================================
   STATS
   ============================================= */
.stats {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.stats__media {
  position: absolute;
  inset: 0;
}
.stats__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}
.stats__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
}
.stats__inner {
  position: relative;
  z-index: 3;
}
.stats__headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--chocolate);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 64px;
}
.stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-card {
  background: rgba(250,236,231,0.07);
  border: 1px solid rgba(250,236,231,0.12);
  border-radius: 4px;
  padding: 40px;
  transition: background 0.3s;
}
.stat-card:hover { background: rgba(250,236,231,0.11); }
.stat-card__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--mauve);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1rem;
}
.stat-card__number span {
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--sandy);
  margin-left: 4px;
}
.stat-card__text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(250,236,231,0.75);
  margin-bottom: 1rem;
}
.stat-card__text strong {
  color: var(--cream);
  font-weight: 500;
}
.stat-card__source {
  font-size: 0.75rem;
  color: rgba(180,178,169,0.6);
  line-height: 1.5;
}
.stat-card__source a {
  color: var(--sandy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stat-card__source a:hover { color: var(--cream); }

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--chocolate); }
.services__photo-divider {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
}
.section-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}
.services__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,44,42,0.9) 0%, rgba(44,44,42,0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
}
.services__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding-top: 80px;
  padding-bottom: 80px;
}
.step {
  display: flex;
  gap: 24px;
  padding: 40px;
  border-bottom: 1px solid rgba(237,228,212,0.1);
  border-right: 1px solid rgba(237,228,212,0.1);
}
.step:nth-child(even) { border-right: none; }
.step:nth-child(3), .step:nth-child(4) { border-bottom: none; }
.step__num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--mauve);
  opacity: 0.4;
  min-width: 60px;
  letter-spacing: -0.04em;
}
.step__body h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.step__body p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(237,228,212,0.65);
}
.services__industries {
  position: relative;
  overflow: hidden;
}
.services__industries-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.services__industries-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(44,44,42,0.72) 0%, rgba(44,44,42,0.65) 100%);
}
.services__industries-inner {
  position: relative;
  z-index: 1;
  padding: 64px 32px 80px;
}
.services__industries-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.industry-card {
  background: rgba(237,228,212,0.06);
  border: 1px solid rgba(237,228,212,0.1);
  border-radius: 4px;
  padding: 32px;
  transition: background 0.3s;
}
.industry-card:hover { background: rgba(237,228,212,0.1); }
.industry-card__icon { margin-bottom: 1rem; }
.industry-card__icon svg { width: 48px; height: 48px; }
.industry-card h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.industry-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(237,228,212,0.6);
}

/* =============================================
   PARTNERS
   ============================================= */
.partners { background: var(--cream-light); }
.partners__photo-divider {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
}
.partners__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,44,42,0.85) 0%, rgba(44,44,42,0.35) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
}
.partners__body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 80px;
  padding-bottom: 100px;
}
.partners__logo-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 8px;
}
.partners__skystream-logo {
  max-width: 220px;
  transition: opacity 0.2s;
}
.partners__skystream-logo:hover { opacity: 0.75; }
/* Fallback if logo image not yet added */
.partners__logo-block a {
  display: block;
  padding: 20px;
  border: 1.5px solid var(--sandy);
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--chestnut);
  letter-spacing: -0.01em;
}
.partners__text .partners__lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--chocolate);
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.partners__text a { color: var(--chestnut); text-decoration: underline; text-underline-offset: 3px; }
.partners__text p {
  font-size: 0.975rem;
  line-height: 1.8;
  color: #3C3C3A;
  margin-bottom: 1.25rem;
}
.partners__text strong { font-weight: 500; color: var(--chocolate); }
.partners__text .btn { margin-top: 0.5rem; }

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: var(--chocolate);
  padding: 120px 0;
}
.contact__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 72px;
}
.contact__header .h2 { color: var(--cream); }
.contact__header p {
  color: rgba(237,228,212,0.7);
  font-size: 1rem;
  line-height: 1.7;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__calendly h3,
.contact__form-wrap h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.contact__sub {
  font-size: 0.875rem;
  color: rgba(237,228,212,0.6);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
/* Calendly widget container */
.calendly-inline-widget {
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-light);
}

/* --- Contact Form --- */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.form-row--half { grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.775rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sandy);
}
.form-group label span { color: var(--mauve); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(237,228,212,0.07);
  border: 1.5px solid rgba(212,191,160,0.25);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--cream);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4BFA0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group select option { background: var(--chocolate); color: var(--cream); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sandy);
  background: rgba(237,228,212,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(237,228,212,0.3); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 0.775rem;
  color: rgba(237,228,212,0.4);
  text-align: center;
}
.form-success {
  display: none;
  padding: 16px;
  background: rgba(166,123,138,0.2);
  border: 1px solid var(--mauve);
  border-radius: 4px;
  color: var(--sandy);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.6;
}
.form-success.show { display: block; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #1C1C1A;
  padding: 64px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(212,191,160,0.15);
}
.footer__logo { height: 40px; margin-bottom: 1.25rem; }
.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(237,228,212,0.5);
  max-width: 340px;
  margin-bottom: 0.5rem;
}
.footer__email a {
  color: var(--sandy);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer__email a:hover { color: var(--cream); }
.footer__links nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.footer__links nav a {
  font-size: 0.875rem;
  color: rgba(237,228,212,0.5);
  transition: color 0.2s;
}
.footer__links nav a:hover { color: var(--cream); }
.footer__partner {
  font-size: 0.775rem;
  color: rgba(237,228,212,0.35);
}
.footer__partner a { color: var(--sandy); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  padding: 20px 32px;
  text-align: center;
}
.footer__bottom p {
  font-size: 0.75rem;
  color: rgba(237,228,212,0.25);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .stats__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__bg-photo { display: none; }
  .services__steps { grid-template-columns: 1fr; }
  .step { border-right: none; }
  .step:nth-child(3) { border-bottom: 1px solid rgba(237,228,212,0.1); }
  .industries-grid { grid-template-columns: 1fr; }
  .partners__body { grid-template-columns: 1fr; gap: 40px; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav__inner { padding: 0 20px; }
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--chocolate);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.1rem; }
  .nav__toggle { display: flex; z-index: 101; position: relative; }
  .hero__content { margin: 0; padding: 0 24px; }
  .br-desktop { display: none; }
  .about { padding: 80px 0; }
  .services__steps { padding: 48px 0; }
  .step { padding: 24px; }
  .services__industries { padding: 0 24px 64px; }
  .partners__body { padding: 64px 0; }
  .contact { padding: 80px 0; }
  .contact__header { margin-bottom: 48px; }
  .form-row--half { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}
