/* NaviLogic Energy website styles
   Colors come from the logo: navy ink #14264B, gold #C39339.
   Fonts: Cinzel (headings, matches the wordmark) and Source Sans 3 (text).  Both SIL Open Font License, files in assets/fonts.
   The fonts themselves are loaded by fonts.css (embedded so the page also looks right when opened straight from your computer). */


:root {
  --navy: #14264B;
  --navy-deep: #0C1A36;
  --navy-soft: #2E4A7E;
  --gold: #C39339;
  --gold-ink: #8A6420;      /* darker gold for small text, readable on light backgrounds */
  --gold-pale: #F3E5C2;
  --slate: #56657A;
  --line: #DAD6CC;
  --paper: #FAF8F3;
  --paper-2: #F1EEE6;
  --sky: #E6EBF1;
  --sand: #F2EADB;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 38, 75, .06), 0 8px 24px rgba(20, 38, 75, .07);
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--navy-soft); }
a:hover { color: var(--gold-ink); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: .01em;
}
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .2em;
  font: 600 1rem/1 var(--sans);
  padding: .9em 1.35em;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-small { padding: .55em 1.1em; font-size: .95rem; }
.btn-note { font-weight: 400; opacity: .75; }

/* ---------- header (navy bar) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-deep);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 12px rgba(12, 26, 54, .18);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand img { height: 56px; width: auto; }
.js .brand { opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.js .site-header.show-brand .brand { opacity: 1; visibility: visible; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  color: #E6EBF4; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { border-color: var(--gold); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-pale); border-color: var(--gold-pale); color: var(--navy-deep); }

/* three-line menu button (phones only) */
.menu-btn {
  display: none; width: 46px; height: 46px; padding: 12px 11px; border-radius: 10px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-btn span { display: block; height: 2px; border-radius: 2px; background: #fff; }
.menu-btn:hover { border-color: var(--gold); }

/* side panel */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(8, 16, 34, .55);
  opacity: 0; transition: opacity .25s;
}
.menu-overlay.is-open { opacity: 1; }
.menu-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(320px, 86vw); padding: 18px 26px 28px;
  background: var(--navy-deep); color: #fff; border-left: 2px solid var(--gold);
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%); transition: transform .28s ease;
}
.menu-panel.is-open { transform: translateX(0); }
.menu-panel[hidden], .menu-overlay[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.menu-top img { height: 52px; width: auto; }
.menu-close {
  width: 44px; height: 44px; border-radius: 10px; font-size: 1.8rem; line-height: 1;
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer;
}
.menu-links { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu-links li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.menu-links a {
  display: block; padding: 15px 2px; color: #fff; text-decoration: none;
  font: 700 1.15rem/1.2 var(--serif); letter-spacing: .02em;
}
.menu-links a:hover { color: var(--gold-pale); }
.menu-contact { margin-top: auto; padding-top: 24px; font-size: .98rem; line-height: 1.9; }
.menu-contact a { color: #C9D3E6; text-decoration: none; }
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16.2v32.3L28 64.7 0 48.5V16.2zM28 64.7V97' fill='none' stroke='%2314264B' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--sky) 0%, #EEEEEC 55%, var(--sand) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 48px;
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}
.eyebrow, .kicker {
  font: 700 .82rem/1.3 var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1rem;
}
.kicker::before {
  content: ""; display: inline-block; width: 28px; height: 2px; background: var(--gold);
  vertical-align: middle; margin-right: 10px; transform: translateY(-2px);
}
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  line-height: 1.08; letter-spacing: .005em;
  margin-bottom: .45em;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #2A3A5C; max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark img {
  width: min(330px, 80%); height: auto;
  filter: drop-shadow(0 14px 28px rgba(20, 38, 75, .16));
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-intro { color: var(--slate); font-size: 1.1rem; }
.fineprint { font-size: .88rem; color: var(--slate); margin-top: 14px; }

/* ---------- film ---------- */
.film { background: var(--paper); }
.video-frame {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 4px rgba(20, 38, 75, .08), 0 20px 50px rgba(20, 38, 75, .16);
  background: var(--sky);
  border: 1px solid rgba(20, 38, 75, .1);
}
.video-frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.chapters {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chapters button {
  font: 600 .92rem/1 var(--sans); color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .6em .95em; cursor: pointer; display: inline-flex; align-items: center; gap: .5em;
  transition: border-color .2s, background .2s;
}
.chapters button:hover { border-color: var(--gold); }
.chapters button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chapters button.is-active .ch-num, .chapters button.is-active .ch-time { color: var(--gold-pale); }
.ch-num { font-family: var(--serif); color: var(--gold-ink); font-weight: 700; }
.ch-time { font-weight: 400; color: var(--slate); font-variant-numeric: tabular-nums; }

/* ---------- services ---------- */
.services { background: var(--paper-2); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(20, 38, 75, .07);
  display: flex; flex-direction: column;
}
.card-thumb {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  background: var(--sky); border-bottom: 1px solid var(--line);
}
.card-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s; }
.card-thumb:hover img { transform: scale(1.03); }
.play-chip {
  position: absolute; right: 12px; bottom: 12px;
  font: 600 .85rem/1 var(--sans); color: #fff;
  background: rgba(20, 38, 75, .85); padding: .5em .8em; border-radius: 999px;
}
.card-body { padding: 22px 26px 24px; }
.card-num {
  font-family: var(--serif); font-weight: 700; color: var(--gold-ink);
  font-size: .9rem; letter-spacing: .08em; margin-bottom: .35em;
}
.card h3 { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .01em; }
.card-body > p { color: #34446A; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--slate); font-size: 1rem; }
.card li { margin: .25em 0; }
.card li::marker { color: var(--gold); }
.card-crossover {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #E9EDF5; justify-content: center;
}
.card-crossover h3 { color: #fff; }
.card-crossover .card-num { color: var(--gold); }
.card-crossover .card-body > p { color: #C9D3E6; }
.card-crossover .card-body { padding: 34px 32px; }

/* ---------- approach ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.principle { border-top: 2px solid var(--gold); padding-top: 18px; }
.principle h3 { font-size: 1.12rem; }
.principle p { color: var(--slate); font-size: 1rem; }

/* ---------- process ---------- */
.process { background: var(--paper-2); border-block: 1px solid var(--line); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  counter-reset: none; position: relative;
}
.step {
  background: #fff; border: 1px solid rgba(20, 38, 75, .08); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px 24px; position: relative;
}
.step:not(:last-child)::after {
  /* small arrow pointing to the next step */
  content: ""; position: absolute; right: -15px; top: 44px; width: 10px; height: 10px;
  border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg);
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font: 700 1.1rem/1 var(--serif); margin-bottom: 16px;
}
.step h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .2em; }
.step-tag { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .8em; }
.step p:last-child { color: var(--slate); font-size: 1rem; margin: 0; }

/* ---------- about ---------- */
.about { background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 100%); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: #2A3A5C; }
.facts { margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-ink); padding-top: 3px; }
.facts dd { margin: 0; }
.results {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 32px; border: 1px solid rgba(20, 38, 75, .07);
}
.results h3 { font-family: var(--serif); font-size: 1.25rem; }
.results p { color: #34446A; margin-bottom: 1.4em; }
.results ul { list-style: none; padding: 0; margin: 0; }
.results li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--paper-2); position: relative; color: #34446A; font-size: 1rem; }
.results li::before {
  content: ""; position: absolute; left: 0; top: 21px; width: 9px; height: 9px;
  background: var(--gold); transform: rotate(45deg);
}

/* ---------- contact ---------- */
.contact {
  background: radial-gradient(1200px 500px at 85% 0%, #1E3766 0%, var(--navy-deep) 60%);
  color: #fff; padding: clamp(64px, 8vw, 96px) 0;
}
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.contact-logo { width: 220px; height: auto; margin-bottom: 28px; }
.contact h2 { color: #fff; }
.contact p { color: #C9D3E6; font-size: 1.1rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 1.15rem;
}
.contact-list li:first-child { border-top: 1px solid rgba(255, 255, 255, .14); }
.contact-list span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.contact-list a { justify-self: start; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(195, 147, 57, .6); }
.contact-list a:hover { color: var(--gold-pale); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #8E9BB5; font-size: .86rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; flex-wrap: wrap; }
.footer-row p { margin: 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
}
@media (max-width: 820px) {
  body { font-size: 17px; }
  .nav a:not(.btn) { display: none; }
  .nav { gap: 10px; }
  .menu-btn { display: flex; }
  .header-row { height: 64px; }
  .brand img { height: 46px; }
  html { scroll-padding-top: 76px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-mark { order: -1; justify-content: flex-start; margin-bottom: 28px; }
  .hero-mark img { width: min(400px, 100%); filter: drop-shadow(0 8px 16px rgba(20, 38, 75, .14)); }
  .cards, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 36px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .principles, .steps { grid-template-columns: 1fr; }
  .card-body { padding: 20px 20px 22px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .chapters button { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-panel, .menu-overlay, .js .brand { transition: none; }
  .card-thumb img { transition: none; }
}
