/* ================================================================
   ADVANFLOW — style.css  v2
   Design: editorial, light, professional advisory
   Palette: white / light grey / ink blue / muted teal / warm red
   Typefaces: DM Serif Display (headings) + Inter (body)
   ================================================================ */

/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #1A2332;
  --blue:       #1B4F72;
  --blue-mid:   #2471A3;
  --teal:       #1A7A5E;
  --red:        #B03A2E;
  --muted:      #5A6A7A;
  --rule:       #D4DCE5;
  --bg-white:   #FFFFFF;
  --bg-light:   #F7F9FB;
  --bg-alt:     #FFFFFF;
  --text:       #2C3E50;
  --max-w:      1160px;
  --narrow-w:   740px;
  --radius:     4px;
  --transition: 0.22s ease;
  --section-pad: 7rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg-white);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
sub { font-size: 0.75em; vertical-align: sub; }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 1.8rem; }
h3 { font-size: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--ink); margin-bottom: 0.9rem; }

p { margin-bottom: 1.3em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.4rem;
}

.eyebrow-center {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
  margin-bottom: 1.2rem;
}

.section-lead {
  font-size: 1.12rem;
  font-style: italic;
  color: var(--blue);
  border-left: 3px solid var(--blue);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.centered { text-align: center; }

/* ── Layout helpers ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow { max-width: var(--narrow-w); }

/* ── Sections ─────────────────────────────────────────────────── */
section {
  padding: var(--section-pad) 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.section-alt   { background: var(--bg-light); }
.section-light { background: var(--bg-white); }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  max-width: 100%;
  box-sizing: border-box;
  letter-spacing: 0.04em;
  padding: 0.9rem 2.1rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: #14405E; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-large { font-size: 1rem; padding: 1.05rem 2.5rem; }

.link-secondary {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  transition: color var(--transition), border-color var(--transition);
}
.link-secondary:hover { color: var(--blue); border-color: var(--blue); }

/* ── Navigation ───────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: var(--radius) !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: #14405E !important; color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.section-hero {
  padding: 7rem 0 6rem;
  background: var(--bg-white);
}

/* Full-width centred hero variant */
.section-hero--full {
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Photo background variant — use higher specificity to override base .section-hero */
.section-hero.section-hero--photo {
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-photo-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero_bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: 0;
  display: block;
}

/* Dark gradient overlay so text stays legible */
.hero-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 25, 40, 0.82) 0%,
    rgba(15, 25, 40, 0.72) 45%,
    rgba(15, 25, 40, 0.55) 100%
  );
}

/* Invert text colours on photo hero */
.section-hero--photo .eyebrow {
  color: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.15);
}

.section-hero--photo .hero-identity {
  color: #ffffff;
}

.section-hero--photo .hero-tagline {
  color: #7ec8b0;
}

.section-hero--photo .hero-sub {
  color: rgba(255,255,255,0.72);
}

.section-hero--photo .link-secondary {
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.3);
}

.section-hero--photo .link-secondary:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.7);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-pattern svg {
  width: 100%;
  height: 100%;
}

.hero-content-centered {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.section-hero--full .eyebrow {
  margin-bottom: 1.6rem;
}

.section-hero--full .hero-identity {
  margin-bottom: 1.2rem;
}

.section-hero--full .hero-tagline {
  margin-bottom: 1rem;
}

.section-hero--full .hero-sub {
  max-width: 640px;
  margin: 0 auto 2.4rem;
}

.hero-actions--centered {
  justify-content: center;
}

/* Legacy two-column grid (kept for reference) */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-text .eyebrow { margin-bottom: 1.6rem; }

/* Problem triad */
.problem-triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.problem-card {
  padding: 2rem 1.8rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

.problem-card--centre {
  background: #f4f8fb;
}

.problem-rule {
  height: 3px;
  width: 40px;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.problem-rule--blue  { background: var(--blue); }
.problem-rule--teal  { background: var(--teal); }
.problem-rule--red   { background: #8B2020; }

.problem-card h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.problem-card p {
  font-size: 0.93rem;
  color: var(--muted);
  margin: 0;
}

.hero-identity {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.04;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-tagline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--blue);
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 460px;
}

/* Mobile diagram: hidden on desktop, shown inline on mobile */
.hero-visual--mobile {
  display: none !important;
}

@media (max-width: 860px) {
  .hero-visual--mobile {
    display: flex !important;
    justify-content: center;
    margin: 2rem 0;
  }
}

/* Desktop diagram: shown on desktop, hidden on mobile */
.hero-visual--desktop {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-diagram {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ── Exergy wheel diagram ─────────────────────────────────────── */
.diagram-container {
  margin-top: 4rem;
}

.exergy-diagram-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.exergy-wheel {
  width: 100%;
  max-width: 700px;
  height: auto;
}

.diagram-caption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ── Three-column blocks ──────────────────────────────────────── */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
  margin-top: 4rem;
}

/* Four-column grid for What I Investigate */
.four-col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

/* When to Call — signal list */
.signal-list {
  display: grid;
  gap: 1.8rem;
  margin-top: 3rem;
}

.signal-item {
  border-left: 3px solid var(--blue);
  background: var(--bg-light);
  padding: 1.6rem 1.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.signal-item h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.signal-item p {
  color: var(--muted);
  margin: 0;
}

/* Section note (anonymized outcomes disclaimer) */
.section-note {
  max-width: 760px;
  margin: 0 auto 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.col-block { padding-top: 0.4rem; }

.col-rule {
  width: 40px;
  height: 3px;
  margin-bottom: 1.4rem;
}
.col-rule--blue  { background: var(--blue); }
.col-rule--red   { background: var(--red); }
.col-rule--teal  { background: var(--teal); }

/* ── Steps grid ───────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.step {
  border-top: 2px solid var(--rule);
  padding-top: 1.6rem;
}

.step-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 1rem;
}

/* ── Trust statement ──────────────────────────────────────────── */
.trust-statement {
  margin-top: 3rem;
  border-left: 4px solid var(--blue);
  padding: 1.8rem 2.2rem;
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.trust-statement p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}

/* ── Value proposition section ────────────────────────────────── */
.section-value {
  background: var(--bg-white);
  padding: var(--section-pad) 0;
}

/* ── Advantage blocks ────────────────────────────────────── */
.advantage-panel {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.adv-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid var(--rule);
}
.adv-block:last-child { border-bottom: 1px solid var(--rule); }
.adv-block--reverse { direction: rtl; }
.adv-block--reverse > * { direction: ltr; }

/* Graphic pane */
.adv-graphic {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 2.8rem 2.4rem;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-graphic-inner { width: 100%; }
.adv-graphic-caption {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8FA3B1;
  margin-top: 1.8rem;
  margin-bottom: 0;
  text-align: center;
}

/* Text pane */
.adv-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: #D8E6F0;
  margin-bottom: 0.6rem;
  font-weight: 400;
}
.adv-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.adv-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin: 0;
}

/* ── RISK GRAPHIC ───────────────────────────────────── */
.risk-compare { display: flex; flex-direction: column; gap: 0; }

.risk-row { display: flex; flex-direction: column; gap: 0.5rem; }
.risk-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8FA3B1;
}
.risk-bar-wrap { display: flex; align-items: center; gap: 1rem; }
.risk-bar {
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
}
.risk-bar--full {
  width: 100%;
  background: linear-gradient(90deg, #C0392B 0%, #E74C3C 100%);
  opacity: 0.75;
}
.risk-bar--low {
  width: 22%;
  background: linear-gradient(90deg, #1B4F72 0%, #2E86C1 100%);
}
.risk-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.risk-tag--high { color: #C0392B; }
.risk-tag--low  { color: #1B4F72; }

.risk-divider {
  display: flex;
  align-items: center;
  padding: 0.9rem 0;
  gap: 1rem;
}
.risk-divider::before,
.risk-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.risk-delta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1B4F72;
  white-space: nowrap;
}

/* ── TIME GRAPHIC ───────────────────────────────────── */
.time-compare { display: flex; flex-direction: column; gap: 1.4rem; }
.time-row { display: flex; align-items: flex-start; gap: 1.2rem; }
.time-label-col { width: 110px; flex-shrink: 0; padding-top: 0.3rem; }
.time-path-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8FA3B1;
}
.time-path-label--active { color: #1B4F72; }
.time-bar-col { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.time-bar {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  height: 32px;
}
.time-bar--long {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25);
  width: 100%;
}
.time-bar--short {
  background: linear-gradient(90deg, #1B4F72, #2E86C1);
  width: 26%;
}
.time-bar-seg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}
.time-bar--long .time-bar-seg {
  color: rgba(192,57,43,0.7);
  border-right-color: rgba(192,57,43,0.15);
}
.time-bar-seg:last-child { border-right: none; }
.time-duration {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.time-duration--long { color: #C0392B; }
.time-duration--short { color: #1B4F72; }

/* ── SPECTRUM GRAPHIC ────────────────────────────────── */
.spectrum-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.spec-domain {
  padding: 0.55rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-left: 3px solid;
  background: white;
}
.spec-domain--1 { border-color: #1B4F72; color: #1B4F72; }
.spec-domain--2 { border-color: #2471A3; color: #2471A3; }
.spec-domain--3 { border-color: #1A7A5E; color: #1A7A5E; }
.spec-domain--4 { border-color: #148A68; color: #148A68; }
.spec-domain--5 { border-color: #0E6655; color: #0E6655; }
.spec-domain--6 { border-color: #1B4F72; color: #1B4F72; }
.spec-domain--7 { border-color: #2471A3; color: #2471A3; }

.spectrum-unifier {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.spectrum-unifier::before,
.spectrum-unifier::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.spectrum-unifier-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .adv-block,
  .adv-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2.5rem;
  }
}

/* ── Before / After section ───────────────────────────────────── */
.section-ba {
  background: var(--bg-light);
  padding: var(--section-pad) 0;
}

.ba-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.ba-item {
  border-top: 1px solid var(--rule);
  padding: 2.8rem 0;
}

.ba-item:last-child { border-bottom: 1px solid var(--rule); }

.ba-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.4rem;
}

.ba-columns {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.ba-col {
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
}

.ba-before {
  background: #FDF5F4;
  border-left: 3px solid var(--red);
}

.ba-after {
  background: #F0F8F5;
  border-left: 3px solid var(--teal);
}

.ba-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.ba-before .ba-label { color: var(--red); }
.ba-after  .ba-label { color: var(--teal); }

.ba-col p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-arrow svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* ── Results grid ─────────────────────────────────────────────── */
.results-note {
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.6rem;
  margin-bottom: 3rem;
  font-style: italic;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.result-card {
  background: var(--bg-light);
  border-top: 3px solid var(--rule);
  padding: 2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: border-color var(--transition);
}

.result-card:hover { border-top-color: var(--blue); }

.result-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.result-card p { font-size: 0.92rem; line-height: 1.75; color: var(--text); }

/* ── Expect grid ──────────────────────────────────────────────── */
.expect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  margin-top: 4rem;
}

.expect-block {
  border-top: 2px solid var(--rule);
  padding-top: 1.6rem;
}

/* ── About ────────────────────────────────────────────────────── */
.section-about {
  background: var(--bg-light);
  padding: var(--section-pad) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5.5rem;
  align-items: start;
}

.about-photo img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
}

.about-text .eyebrow { margin-bottom: 0.6rem; }
.about-text h2 { margin-bottom: 1.6rem; }
.about-text p  { margin-bottom: 1.4rem; }

.linkedin-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: #0A66C2;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid rgba(10,102,194,0.3);
  padding-bottom: 1px;
  margin-bottom: 1.2rem;
  transition: border-color var(--transition);
}
.linkedin-link:hover { border-color: #0A66C2; }

/* ── Contact ──────────────────────────────────────────────────── */
.section-contact {
  background: var(--ink);
  padding: 8rem 0;
}

.contact-inner { text-align: center; }

.section-contact h2 {
  color: #fff;
  margin-bottom: 1.4rem;
}

.section-contact > .container > p,
.contact-inner > p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 2.6rem;
}

.contact-email {
  margin-top: 1.6rem;
  font-size: 0.88rem;
}

.contact-email a {
  color: rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  transition: color var(--transition);
}
.contact-email a:hover { color: #fff; }

/* ── Footer ───────────────────────────────────────────────────── */
#site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.footer-logo img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: 0.6; }

.footer-tagline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

.footer-info {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
  margin: 0;
}

.footer-legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.22);
  margin: 0;
}

/* ── Cookie banner ────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  color: var(--ink);
  border-top: 2px solid #E2E8EF;
  box-shadow: 0 -4px 32px rgba(26,35,50,0.10);
  font-size: 0.84rem;
  line-height: 1.5;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-text { flex: 1; min-width: 240px; }

.cookie-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.cookie-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  align-items: center;
}

#cookie-accept {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
#cookie-accept:hover { background: #14405E; }

#cookie-decline {
  background: transparent;
  color: var(--muted);
  border: 1px solid #D0D8E2;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
#cookie-decline:hover { color: var(--ink); border-color: var(--ink); }

#cookie-banner.hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

/* ── PDF Download section ─────────────────────────────────────── */
.section-download {
  background: var(--blue);
  padding: 6rem 0;
  text-align: center;
}

.section-download .eyebrow {
  color: rgba(255,255,255,0.6);
}

.section-download h2 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.download-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.download-form {
  max-width: 480px;
  margin: 0 auto;
}

.download-field {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.download-field input[type="email"] {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  min-width: 0;
}

.download-field input[type="email"]::placeholder {
  color: #9BAAB8;
}

.btn-download {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 0.9rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
  letter-spacing: 0.02em;
}

.btn-download:hover { background: #0F5244; }

.download-note {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  margin-top: 0.9rem;
  letter-spacing: 0.02em;
}

.download-feedback {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  margin-top: 0.75rem;
  font-weight: 500;
}

/* ── Scroll-reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 5.5rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
  .four-col { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 860px) {
  :root { --section-pad: 4.5rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* Hide desktop right-column diagram, show inline mobile diagram */
  .hero-visual--desktop { display: none; }
  .hero-visual--mobile {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
  }
  .problem-triad { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-actions--centered { justify-content: center; flex-direction: column; align-items: center; }
  .hero-actions--centered .btn-primary { width: auto; max-width: 100%; }
  .flow-diagram {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
  }
  .three-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .four-col { grid-template-columns: 1fr; gap: 2rem; }
  .expect-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo { text-align: center; }
  .about-photo img { max-width: 260px; }
  .ba-columns { grid-template-columns: 1fr; gap: 0.8rem; }
  .ba-arrow { transform: rotate(90deg); }
  .exergy-wheel { max-width: 100%; }
}

@media (max-width: 720px) {
  :root { --section-pad: 3.5rem; }
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .value-grid { grid-template-columns: 1fr; }

  /* Navigation hamburger */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    z-index: 100;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    border-radius: 0;
  }

  .nav-cta {
    background: transparent !important;
    color: var(--blue) !important;
    padding: 0.85rem 2rem !important;
    border-radius: 0 !important;
    border: none !important;
  }

  /* Time graphic: shrink label column */
  .time-label-col { width: 80px; }
  .time-bar-seg { font-size: 0.55rem; }

  /* Cookie banner stacked */
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
  }
  .cookie-actions { width: 100%; }
  #cookie-accept, #cookie-decline { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .hero-identity { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; max-width: 100%; text-align: center; box-sizing: border-box; white-space: normal; word-break: break-word; }
  .btn-primary { white-space: normal; word-break: break-word; }

  /* Hero diagram full width on small phones */
  .flow-diagram {
    max-width: 100%;
    width: 100%;
  }

  /* Exergy diagram: ensure no overflow */
  .exergy-wheel {
    max-width: 100%;
    overflow: visible;
  }
  .exergy-diagram-wrap { overflow-x: hidden; }

  /* Advantage blocks: reduce padding on phones */
  .adv-graphic { padding: 1.8rem 1.2rem; min-height: 180px; }
  .adv-num { font-size: 2.5rem; }
  .adv-title { font-size: 1.4rem; }

  /* Before/after: tighter on phones */
  .ba-col { padding: 1.2rem 1.2rem; }
  .ba-item { padding: 2rem 0; }

  /* Time label col very narrow */
  .time-label-col { width: 68px; }
  .time-row { gap: 0.7rem; }
}
