/* =====================================================================
   Latitude Energy — Editorial design system
   Light, typographic, consulting-grade. Serif display, hairline rules,
   restrained brand gold. Shared by all pages.
   ===================================================================== */

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

:root {
  --paper: #ffffff;
  --ivory: #f6f4ef;
  --ivory-deep: #efece4;
  --ink: #1a1a1a;
  --ink-70: #46463f;
  --ink-50: #6f6e66;
  --ink-30: #a3a199;
  --hairline: #e2ded3;
  --hairline-strong: #cfcabb;
  --gold: #f9b630;
  --gold-text: #8a5f00;
  --footer-bg: #131313;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1240px;
  --pad: clamp(20px, 4.5vw, 56px);
  --section-pad: clamp(84px, 9vw, 136px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

::selection { background: rgba(249, 182, 48, 0.35); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--pad); }

.section { padding: var(--section-pad) 0; }
.section-ivory { background: var(--ivory); }
.section + .section-flush { padding-top: 0; }

/* ---------- typography ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; }

.display {
  font-size: clamp(2.6rem, 5.4vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: var(--ink);
}

.title-xl { font-size: clamp(2.1rem, 3.8vw, 3.15rem); line-height: 1.12; }
.title-lg { font-size: clamp(1.65rem, 2.6vw, 2.25rem); line-height: 1.18; }
.title-md { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.3; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 22px;
}

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 46em;
}

.body-copy p { color: var(--ink-70); margin-bottom: 1.35em; max-width: 42em; }
.body-copy p:last-child { margin-bottom: 0; }
.body-copy strong { color: var(--ink); font-weight: 600; }

.text-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.text-link:hover { color: var(--gold-text); border-color: var(--gold-text); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.arrow-link .arr { transition: transform 0.25s ease; display: inline-flex; }
.arrow-link:hover .arr { transform: translateX(6px); }
.arrow-link:hover { color: var(--gold-text); }
.arrow-link .arr svg { width: 20px; height: 14px; stroke: var(--gold-text); }

/* ---------- section header pattern ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  border-top: 1px solid var(--ink);
  padding-top: 26px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-30);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.section-head h2 { max-width: 18em; }
.section-head .head-lede { grid-column: 1 / -1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 13px; stroke: var(--gold); transition: transform 0.25s ease; }
.btn:hover { background: #000; }
.btn:hover svg { transform: translateX(5px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost svg { stroke: var(--gold-text); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost:hover svg { stroke: var(--gold); }

.btn-on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.btn-on-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(20, 18, 10, 0.07); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: clamp(56px, 6vw, 68px); width: auto; }

.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-70);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); border-color: var(--gold); }
.nav-links a.active { color: var(--ink); border-color: var(--gold); font-weight: 600; }
.nav-cta {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  border: 1px solid var(--ink) !important;
  padding: 9px 20px !important;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover { background: var(--ink); color: #fff !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; margin-right: -10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 92px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--pad) 28px;
    gap: 6px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 24px 40px rgba(20,18,10,0.08);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { font-size: 1.05rem; padding: 10px 0; width: 100%; border-bottom: 1px solid var(--hairline); }
  .nav-links a.active { border-bottom-color: var(--gold); }
  .nav-cta { border: none !important; padding: 10px 0 !important; margin-top: 6px; }
  .nav-cta:hover { background: none; color: var(--gold-text) !important; }
}

/* offset for fixed nav */
main { padding-top: 92px; }

/* ---------- page hero (interior pages) ---------- */
.page-hero { padding: clamp(72px, 9vw, 130px) 0 clamp(48px, 6vw, 84px); }
.page-hero .display { max-width: 15.5em; }
.page-hero .lede { margin-top: 28px; }

/* ---------- stat band ---------- */
.statband {
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.statband.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat {
  padding: 30px 28px 34px 0;
  border-right: 1px solid var(--hairline);
  margin-right: 28px;
}
.stat:last-child { border-right: none; margin-right: 0; }
.stat .stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.9rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.stat .stat-num .unit { font-size: 0.55em; color: var(--ink-50); font-weight: 600; margin-left: 2px; }
.stat .stat-label {
  margin-top: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-50);
  max-width: 22em;
}
@media (max-width: 900px) {
  .statband, .statband.cols-3 { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: none; margin-right: 0; }
}
@media (max-width: 540px) {
  .statband, .statband.cols-3 { grid-template-columns: 1fr; }
  .stat { border-right: none; margin-right: 0; border-bottom: 1px solid var(--hairline); padding: 22px 0; }
  .stat:last-child { border-bottom: none; }
}

/* ---------- card grids ---------- */
.card-grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid.cols-3 { grid-template-columns: 1fr; } .card-grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: clamp(28px, 3vw, 40px);
}
.section-ivory .card { border-color: var(--hairline-strong); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; color: var(--ink-70); }
.card .card-kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-text); margin-bottom: 16px; display: block;
}

/* ---------- spec / comparison tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table thead th {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--ink);
}
.spec-table tbody td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--ink-70);
}
.spec-table tbody td:first-child { font-weight: 600; color: var(--ink); }
.spec-table .col-hl { background: var(--ivory); color: var(--ink); font-weight: 600; }
.spec-table thead th.col-hl { color: var(--gold-text); border-bottom: 2px solid var(--gold); background: var(--ivory); }
.spec-table .num-cell { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.table-scroll { overflow-x: auto; }
.table-note { font-size: 0.8rem; color: var(--ink-50); margin-top: 18px; max-width: 60em; }
.table-note a { color: var(--gold-text); }

/* ---------- dark statement band ---------- */
.band-dark {
  background: var(--footer-bg);
  color: #fff;
  padding: clamp(76px, 8vw, 120px) 0;
}
.band-dark .eyebrow { color: var(--gold); }
.band-dark .serif-statement {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.012em;
  max-width: 24em;
}
.band-dark .serif-statement .dim { color: rgba(255,255,255,0.45); }
.band-dark .serif-statement .gold { color: var(--gold); }
.band-dark p.support { color: rgba(255,255,255,0.65); margin-top: 24px; max-width: 42em; }

/* ---------- timeline ---------- */
.timeline { border-left: 1px solid var(--hairline-strong); margin-left: 6px; }
.tl-item { position: relative; padding: 0 0 clamp(36px, 4vw, 52px) clamp(28px, 3.4vw, 48px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -6.5px; top: 8px;
  width: 12px; height: 12px;
  background: var(--gold);
  border: 2px solid var(--paper);
  border-radius: 50%;
}
.tl-item .tl-years {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-text);
  margin-bottom: 6px;
}
.tl-item h3 { margin-bottom: 8px; }
.tl-item p { color: var(--ink-70); font-size: 0.98rem; max-width: 46em; }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step .step-num { font-family: var(--serif); font-size: 1rem; color: var(--ink-30); font-weight: 600; margin-bottom: 18px; display: block; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; color: var(--ink-70); }

/* ---------- product tiles ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .product-grid { grid-template-columns: 1fr; } }
.product-tile { background: var(--paper); padding: 30px 28px; transition: background 0.25s; }
.product-tile:hover { background: var(--ivory); }
.section-ivory .product-tile:hover { background: var(--ivory-deep); }
.product-tile .p-icon { color: var(--gold-text); margin-bottom: 18px; }
.product-tile .p-icon svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.product-tile h3 { font-size: 1.1rem; margin-bottom: 6px; }
.product-tile p { font-size: 0.88rem; color: var(--ink-50); line-height: 1.55; }

/* ---------- split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.split-40-60 { grid-template-columns: 2fr 3fr; }
@media (max-width: 900px) { .split, .split.split-40-60 { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--footer-bg); color: rgba(255,255,255,0.72); }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  padding: clamp(56px, 6vw, 84px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; gap: 40px; } }
.footer-brand img { height: 112px; width: auto; margin-bottom: 24px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.65; color: rgba(255,255,255,0.55); max-width: 30em; }
.footer-us { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.footer-us .us-flag { width: 22px; height: auto; flex-shrink: 0; display: block; }
.footer-us span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.93rem; }
.footer-col a:hover { color: var(--gold); }
.footer-col address { font-style: normal; font-size: 0.93rem; line-height: 1.8; color: rgba(255,255,255,0.75); }
.footer-col address a { color: var(--gold); }
.footer-disclaimer {
  padding: 22px 0 0;
  font-size: 0.72rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.38);
  max-width: 76em;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 26px 0 32px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.55); }
.footer-bottom-links a:hover { color: #fff; }

/* ---------- legal pages ---------- */
.legal-body { max-width: 800px; }
.legal-body h2 { font-size: 1.5rem; margin: 2.4em 0 0.7em; }
.legal-body h3 { font-size: 1.15rem; margin: 1.8em 0 0.6em; }
.legal-body p, .legal-body li { color: var(--ink-70); font-size: 0.98rem; margin-bottom: 0.9em; }
.legal-body ul, .legal-body ol { padding-left: 1.4em; margin-bottom: 1.1em; }
.legal-body a { color: var(--gold-text); }
.legal-body .legal-updated { font-size: 0.85rem; color: var(--ink-50); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .arrow-link .arr, .btn svg { transition: none; }
}

/* ---------- cookie banner (light) ---------- */
#cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 18px 50px rgba(20,18,10,0.16);
  padding: 22px 24px;
  z-index: 9998;
  font-family: var(--sans);
}
#cookie-banner .cb-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#cookie-banner .cb-text { font-size: 0.875rem; color: var(--ink-70); line-height: 1.55; flex: 1 1 280px; }
#cookie-banner .cb-text a { color: var(--gold-text); }
#cookie-banner .cb-actions { display: flex; gap: 14px; flex-shrink: 0; align-items: center; }
#cookie-banner button { cursor: pointer; font-family: inherit; border: none; transition: all 0.2s; font-weight: 600; }
#cookie-banner .cb-primary { background: var(--ink); color: #fff; padding: 11px 24px; font-size: 0.85rem; }
#cookie-banner .cb-primary:hover { background: #000; }
#cookie-banner .cb-secondary { background: transparent; color: var(--ink-50); padding: 6px 2px; font-size: 0.8rem; text-decoration: underline; }
#cookie-banner .cb-secondary:hover { color: var(--ink); }
#cookie-banner .cb-prefs .cb-row { display: flex; align-items: flex-start; gap: 16px; padding: 15px 0; border-top: 1px solid var(--hairline); }
#cookie-banner .cb-prefs .cb-row:first-of-type { border-top: none; padding-top: 8px; }
#cookie-banner .cb-row-info { flex: 1 1 auto; }
#cookie-banner .cb-row-info strong { display: block; color: var(--ink); font-size: 0.875rem; font-weight: 600; margin-bottom: 3px; }
#cookie-banner .cb-row-desc { color: var(--ink-50); font-size: 0.78rem; line-height: 1.5; }
#cookie-banner .cb-required { color: var(--ink-50); font-size: 0.78rem; flex-shrink: 0; padding-top: 2px; font-style: italic; }
#cookie-banner .cb-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; margin-top: 2px; }
#cookie-banner .cb-switch input { opacity: 0; width: 0; height: 0; }
#cookie-banner .cb-slider { position: absolute; cursor: pointer; inset: 0; background: var(--hairline-strong); border-radius: 22px; transition: background 0.2s; }
#cookie-banner .cb-slider::before { position: absolute; content: ''; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
#cookie-banner .cb-switch input:checked + .cb-slider { background: var(--gold); }
#cookie-banner .cb-switch input:checked + .cb-slider::before { transform: translateX(18px); }
#cookie-banner .cb-prefs .cb-actions { padding-top: 16px; justify-content: flex-end; border-top: 1px solid var(--hairline); margin-top: 4px; }
@media (max-width: 520px) {
  #cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  #cookie-banner .cb-main { flex-direction: column; align-items: stretch; gap: 14px; }
  #cookie-banner .cb-actions { justify-content: flex-end; }
}
