/* =========================================================================
   EnergySurvey.io — Powered by High Digital
   Design tokens + shared component styles for all pages
   ========================================================================= */

:root {
  /* Palette */
  --es-navy:           #0B1F3A;
  --es-navy-2:         #0A1D36;
  --es-navy-3:         #142B4D;
  --es-paper:          #F5F4F1;
  --es-paper-2:        #EFEDE7;
  --es-paper-3:        #E5E3DC;
  --es-white:          #FFFFFF;
  --es-ink:            #1B1A1D;
  --es-ink-2:          #2A2A2E;
  --es-ink-3:          #555456;
  --es-ink-4:          #797879;
  --es-ink-5:          #ADACAE;
  --es-line:           #D6D4CE;
  --es-line-soft:      #E5E3DC;
  --es-line-strong:    #B6B4AE;
  --es-accent:         #C4872A;          /* gold eyebrow accent */
  --es-accent-deep:    #8A5E18;
  --es-red:            #C0392B;          /* primary CTA outline */
  --es-red-bright:     #FE0000;
  --es-green:          #4FAE56;
  --es-green-deep:     #1F7A2F;
  --es-success-tint:   #E5F3E7;
  --es-grad-a:         #FE0000;          /* EPC gradient stops (from Figma) */
  --es-grad-b:         #FF7500;
  --es-grad-c:         #FFB200;
  --es-grad-d:         #FFFF02;
  --es-grad-e:         #68E200;
  --es-grad-f:         #00BE2E;
  --es-grad-g:         #007500;

  /* EPC gradient: red(bottom) → green(top), matches Figma `EPC Gradient` */
  --epc-gradient:      linear-gradient(
                          to top,
                          #FE0000 0%,
                          #FF7500 20%,
                          #FFB200 30%,
                          #FFFF02 50%,
                          #68E200 70%,
                          #00BE2E 80%,
                          #007500 100%
                       );

  /* Palindromic EPC gradient (red→green→red), used with background-size 100% 200%
     to create a smooth slide-flip hover effect on buttons and cards. */
  --epc-gradient-loop: linear-gradient(
                          to top,
                          #FE0000 0%,
                          #FF7500 10%,
                          #FFB200 15%,
                          #FFFF02 25%,
                          #68E200 35%,
                          #00BE2E 40%,
                          #007500 50%,
                          #00BE2E 60%,
                          #68E200 65%,
                          #FFFF02 75%,
                          #FFB200 85%,
                          #FF7500 90%,
                          #FE0000 100%
                       );

  /* Semantic */
  --bg:                var(--es-paper);
  --bg-elev:           var(--es-white);
  --bg-card:           var(--es-white);
  --bg-inverse:        var(--es-navy);
  --fg:                var(--es-ink);
  --fg-muted:          var(--es-ink-3);
  --fg-subtle:         var(--es-ink-4);
  --fg-inverse:        var(--es-white);
  --border:            var(--es-line);
  --border-soft:       var(--es-line-soft);

  /* Type */
  --font-display:      "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body:         "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --text-xs:           11px;
  --text-sm:           13px;
  --text-base:         15px;
  --text-md:           17px;
  --text-lg:           19px;
  --text-xl:           22px;
  --text-2xl:          28px;
  --text-3xl:          34px;
  --text-4xl:          44px;
  --text-5xl:          54px;
  --text-6xl:          72px;

  --leading-tight:     1.05;
  --leading-snug:      1.2;
  --leading-normal:    1.5;
  --leading-relaxed:   1.7;
  --tracking-eyebrow:  0.18em;
  --tracking-tight:    -0.02em;
  --tracking-tighter:  -0.035em;

  /* Spacing */
  --space-1:           4px;
  --space-2:           8px;
  --space-3:           12px;
  --space-4:           16px;
  --space-5:           24px;
  --space-6:           32px;
  --space-7:           48px;
  --space-8:           64px;
  --space-9:           96px;
  --space-10:          128px;

  /* Radii */
  --radius-sm:         8px;
  --radius-md:         12px;
  --radius-lg:         16px;
  --radius-xl:         24px;
  --radius-pill:       999px;

  /* Shadows */
  --shadow-sm:         0 1px 2px rgba(11,31,58,0.04);
  --shadow-md:         0 8px 24px rgba(11,31,58,0.08);
  --shadow-lg:         0 18px 48px rgba(11,31,58,0.12);

  /* Motion */
  --ease-out:          cubic-bezier(0.16,1,0.3,1);
  --dur-fast:          120ms;
  --dur-base:          220ms;
  --dur-slow:          400ms;

  /* Layout */
  --max-w:             1312px;
  --gutter:            64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* Layout helpers */
.es-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.es-section { padding: 120px 0; }
.es-section--tight { padding: 80px 0; }

/* Typography */
.es-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--es-accent);
}
.es-eyebrow--muted { color: var(--fg-muted); }
.es-eyebrow--on-dark { color: var(--es-accent); }

.es-rule {
  width: 40px;
  height: 1px;
  background: var(--border-soft);
  margin-bottom: 16px;
}
.es-rule--on-dark { background: rgba(255,255,255,0.25); }
.es-rule--accent { background: var(--es-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  font-weight: 700;
}
h2 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: var(--tracking-tight); line-height: 1.1; }
h3 { font-size: var(--text-xl); line-height: 1.25; }
p  { color: var(--fg-muted); line-height: var(--leading-relaxed); }

.es-h2-on-dark { color: var(--es-white); }
.es-p-on-dark  { color: rgba(255,255,255,0.7); }

/* =========================================================================
   NAV
   ========================================================================= */
.es-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,244,241,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.es-nav.is-scrolled { border-bottom-color: var(--border-soft); }
.es-nav--on-dark {
  background: rgba(11,31,58,0.92);
  border-bottom-color: rgba(255,255,255,0.08);
}
.es-nav--on-dark.is-scrolled {
  background: rgba(11,31,58,0.96);
  border-bottom-color: rgba(255,255,255,0.10);
}

.es-nav-inner {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.es-nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
}
.es-nav--on-dark .es-nav-logo { color: var(--es-white); }
.es-nav-logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--es-accent);
}
.es-nav-links {
  display: flex; gap: 4px;
}
.es-nav-link {
  font-size: 14px; font-weight: 500;
  color: var(--fg-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.es-nav-link:hover, .es-nav-link.is-active { color: var(--fg); background: rgba(11,31,58,0.05); }
.es-nav--on-dark .es-nav-link { color: rgba(255,255,255,0.75); }
.es-nav--on-dark .es-nav-link:hover, .es-nav--on-dark .es-nav-link.is-active {
  color: var(--es-white); background: rgba(255,255,255,0.06);
}

.es-nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.es-nav-burger span {
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
}
.es-nav-burger span::before,
.es-nav-burger span::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 2px; background: currentColor;
}
.es-nav-burger span::before { top: -6px; }
.es-nav-burger span::after  { top: 6px; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.es-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: var(--radius-lg);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.es-btn:active { transform: translateY(1px); }

/* EPC-gradient outlined button (primary CTA) with sliding hover flip */
.es-btn--primary {
  color: var(--es-ink);
  background-image:
    linear-gradient(var(--es-paper), var(--es-paper)),
    var(--epc-gradient-loop);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 100% 200%;
  background-position: 0% 0%, 0% 100%;
  background-repeat: no-repeat, no-repeat;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 14px rgba(11,31,58,0.10);
  transition: background-position 800ms var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.es-btn--primary:hover {
  background-image:
    linear-gradient(var(--es-white), var(--es-white)),
    var(--epc-gradient-loop);
  background-position: 0% 0%, 0% 0%;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11,31,58,0.16);
}
.es-btn--primary:active { transform: translateY(0); }

.es-btn--ghost-light {
  border-color: rgba(255,255,255,0.5);
  color: var(--es-white);
  background: transparent;
}
.es-btn--ghost-light:hover {
  border-color: var(--es-white);
  background: rgba(255,255,255,0.04);
}

.es-btn--ghost-dark {
  border-color: rgba(11,31,58,0.2);
  color: var(--fg);
  background: transparent;
}
.es-btn--ghost-dark:hover {
  border-color: var(--fg);
  background: rgba(11,31,58,0.04);
}

.es-btn--dark {
  background: var(--es-navy);
  color: var(--es-white);
  border-color: var(--es-navy);
}
.es-btn--dark:hover { background: var(--es-navy-3); border-color: var(--es-navy-3); }

.es-btn--block { width: 100%; }

/* =========================================================================
   HERO
   ========================================================================= */
.es-hero {
  background: var(--es-navy);
  color: var(--es-white);
  position: relative;
  overflow: hidden;
}
.es-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(196,135,42,0.10), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(63,159,101,0.10), transparent 70%);
  pointer-events: none;
}
.es-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0 100px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}
.es-hero-content { max-width: 580px; }
.es-hero h1 {
  font-size: clamp(40px, 6.2vw, 72px);
  letter-spacing: var(--tracking-tighter);
  line-height: 1.05;
  color: var(--es-white);
  margin: 24px 0 28px;
}
.es-hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
}
.es-hero-ctas {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 40px;
}
.es-hero-trust {
  display: flex; align-items: center; gap: 0;
  margin-top: 40px;
  flex-wrap: wrap;
}
.es-hero-trust span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.es-hero-trust .sep {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.2);
  margin: 0 18px;
}
.es-hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 515 / 538;
  max-width: 540px;
  margin-left: auto;
}
.es-hero-visual svg.epc-art,
.es-hero-visual img.epc-art {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================================================================
   INTRO / TWO-COL TEXT
   ========================================================================= */
.es-intro {
  background: var(--bg);
  padding: 120px 0;
}
.es-intro--alt {
  background: var(--es-white);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* ------- "From Raw Data to Boardroom Strategy" layout ------- */
.es-intro-header {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  column-gap: 80px;
  align-items: end;
  margin-bottom: 56px;
}
.es-intro-header h2 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: var(--tracking-tighter);
}
.es-intro-header-right p {
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 540px;
}
.es-intro-header-right p + p { margin-top: 18px; }

.es-bullets-card {
  background-image:
    linear-gradient(var(--bg-card), var(--bg-card)),
    var(--epc-gradient-loop);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 100% 200%;
  background-position: 0% 0%, 0% 100%;
  background-repeat: no-repeat, no-repeat;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  padding: 36px 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  transition: background-position 900ms var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.es-bullets-card:hover {
  background-position: 0% 0%, 0% 0%;
  box-shadow: var(--shadow-sm);
}
.es-bullet {
  padding: 12px 32px;
  position: relative;
}
.es-bullet:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 18px; bottom: 18px;
  width: 1px;
  background: var(--border-soft);
}
.es-bullet-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--es-success-tint);
  color: var(--es-green-deep);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.es-bullet h3 {
  font-size: 19px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.es-bullet p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* 3-column callout box with gradient border (commercial-epc page) */
.es-callout-3col {
  margin-top: 64px;
  background-image:
    linear-gradient(var(--bg-card), var(--bg-card)),
    var(--epc-gradient-loop);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 100% 200%;
  background-position: 0% 0%, 0% 100%;
  background-repeat: no-repeat, no-repeat;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 32px;
  row-gap: 24px;
  transition: background-position 900ms var(--ease-out);
}
.es-callout-3col:hover { background-position: 0% 0%, 0% 0%; }
.es-callout-3col > div + div {
  padding-left: 32px;
  border-left: 1px solid var(--border-soft);
}

/* ------- Scroll-reveal ------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out),
              transform 900ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-revealed { opacity: 1; transform: translateY(0); }

/* Restore hover/active transforms when an interactive element also has .reveal.
   .reveal.is-revealed sets transform: translateY(0) which would otherwise
   override the hover translate-up on buttons. */
.es-btn.reveal.is-revealed:hover { transform: translateY(-2px); }
.es-btn.reveal.is-revealed:active { transform: translateY(0); }
.reveal[data-delay="80"]  { transition-delay: 80ms; }
.reveal[data-delay="160"] { transition-delay: 160ms; }
.reveal[data-delay="240"] { transition-delay: 240ms; }
.reveal[data-delay="320"] { transition-delay: 320ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .es-btn--primary, .es-card, .es-usp, .es-testi-card,
  .es-bullets-card, .es-callout-3col {
    transition: none !important;
  }
}

/* ------- Animated counters ------- */
.es-stat-value { font-variant-numeric: tabular-nums; }
.es-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.es-intro-left h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  color: var(--fg);
}
.es-intro-right p { font-size: 17px; line-height: 1.65; }
.es-intro-right p + p { margin-top: 24px; }

/* =========================================================================
   THREE-CARD ROW (Services / Why You Need This)
   ========================================================================= */
.es-cards {
  background: var(--bg);
  padding: 60px 0 120px;
}
.es-cards-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.es-cards-header .es-rule { margin: 0 auto 16px; }
.es-cards-header h2 { line-height: 1.2; }

.es-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.es-card {
  background-image:
    linear-gradient(var(--bg-card), var(--bg-card)),
    var(--epc-gradient-loop);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 100% 200%;
  background-position: 0% 0%, 0% 100%;
  background-repeat: no-repeat, no-repeat;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex; flex-direction: column;
  transition: background-position 900ms var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.es-card:hover {
  background-position: 0% 0%, 0% 0%;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.es-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: rgba(196,135,42,0.10);
  color: var(--es-accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.es-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.es-card p { font-size: 15.5px; line-height: 1.65; }

/* =========================================================================
   PROCESS / STEPS
   ========================================================================= */
.es-process {
  background: var(--bg);
  padding: 60px 0 120px;
}
.es-process-header { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.es-process-header .es-rule { margin: 0 auto 16px; }
.es-process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 56px;
  position: relative;
}
.es-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
}
.es-step-node {
  width: 64px; height: 64px;
  border-radius: 50%;
  background:
    linear-gradient(var(--es-paper), var(--es-paper)) padding-box,
    var(--epc-gradient) border-box;
  border: 1.5px solid transparent;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--es-accent);
  position: relative;
}
.es-step h3 { font-size: 20px; margin-bottom: 8px; }
.es-step p  { font-size: 15px; }

/* =========================================================================
   STATS BAR (Dark)
   ========================================================================= */
.es-stats {
  background: var(--es-navy);
  color: var(--es-white);
  padding: 72px 0;
}
.es-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.es-stat {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  position: relative;
}
.es-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 56px;
  background: rgba(255,255,255,0.15);
}
.es-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 50px);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--es-white);
}
.es-stat-label {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* =========================================================================
   WHY US — Split content + USP grid
   ========================================================================= */
.es-why {
  background: var(--bg);
  padding: 120px 0;
}
.es-why-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
}
.es-why h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; margin-bottom: 28px; }
.es-why-p p + p { margin-top: 20px; }
.es-usp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.es-usp {
  background-image:
    linear-gradient(var(--bg-card), var(--bg-card)),
    var(--epc-gradient-loop);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 100% 200%;
  background-position: 0% 0%, 0% 100%;
  background-repeat: no-repeat, no-repeat;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background-position 900ms var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.es-usp:hover {
  background-position: 0% 0%, 0% 0%;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.es-usp-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--es-success-tint);
  color: var(--es-green-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.es-usp h3 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.es-usp p  { font-size: 14.5px; line-height: 1.6; }

/* =========================================================================
   LEVEL 5 / FEATURE LIST
   ========================================================================= */
.es-level5 {
  background: var(--bg);
  padding: 120px 0;
  border-top: 1px solid var(--border-soft);
}
.es-level5-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}
.es-level5 h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 24px; }
.es-feat-list { display: flex; flex-direction: column; gap: 24px; }
.es-feat { display: grid; grid-template-columns: 32px 1fr; gap: 18px; align-items: start; }
.es-feat-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--es-success-tint);
  color: var(--es-green-deep);
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.es-feat h3 { font-size: 17px; margin-bottom: 6px; }
.es-feat p  { font-size: 14.5px; line-height: 1.6; }
.es-level5-quote {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-style: italic;
  color: var(--fg);
  font-size: 17px;
  line-height: 1.55;
}

/* =========================================================================
   CTA BAND (Dark)
   ========================================================================= */
.es-cta-band {
  background: var(--es-navy-3);
  background-image: linear-gradient(180deg, var(--es-navy-3) 0%, #112849 100%);
  color: var(--es-white);
  padding: 100px 0;
  text-align: center;
  position: relative;
}
.es-cta-band h2 {
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.1;
  color: var(--es-white);
  max-width: 920px;
  margin: 0 auto 20px;
}
.es-cta-band p {
  max-width: 720px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.7);
  font-size: 17px;
}

/* =========================================================================
   FAQ ACCORDION
   ========================================================================= */
.es-faq {
  background: var(--bg);
  padding: 120px 0;
}
.es-faq-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
}
.es-faq-left h2 { font-size: clamp(28px, 3.2vw, 38px); }
.es-faq-list {
  border-top: 1px solid var(--border);
}
.es-faq-item {
  border-bottom: 1px solid var(--border);
}
.es-faq-q {
  width: 100%;
  text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  padding: 28px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--fg);
  cursor: pointer;
}
.es-faq-toggle {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  color: var(--fg);
}
.es-faq-item.is-open .es-faq-toggle { background: var(--es-navy); color: var(--es-white); border-color: var(--es-navy); }
.es-faq-toggle svg { transition: transform var(--dur-base) var(--ease-out); }
.es-faq-item.is-open .es-faq-toggle svg { transform: rotate(45deg); }
.es-faq-a {
  display: none;
  padding: 0 0 28px;
  max-width: 760px;
  color: var(--fg-muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.es-faq-item.is-open .es-faq-a { display: block; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.es-testimonials { background: var(--bg); padding: 60px 0 120px; }
.es-testi-header { text-align: center; margin: 0 auto 64px; max-width: 760px; }
.es-testi-header .es-rule { margin: 0 auto 16px; }
.es-testi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.es-testi-card {
  background-image:
    linear-gradient(var(--bg-card), var(--bg-card)),
    var(--epc-gradient-loop);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 100% 200%;
  background-position: 0% 0%, 0% 100%;
  background-repeat: no-repeat, no-repeat;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex; flex-direction: column;
  transition: background-position 900ms var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.es-testi-card:hover {
  background-position: 0% 0%, 0% 0%;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.es-testi-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.6;
  color: var(--es-accent);
  margin-bottom: 24px;
  height: 32px;
}
.es-testi-quote { font-size: 16px; line-height: 1.65; color: var(--fg); }
.es-testi-foot { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--border-soft); }
.es-testi-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--fg); margin-top: 24px; }
.es-testi-role { font-size: 13px; color: var(--fg-subtle); margin-top: 4px; }
.es-testi-stars { display: inline-flex; gap: 4px; margin-top: 16px; }
.es-testi-stars i { width: 6px; height: 6px; border-radius: 50%; background: var(--es-accent); display: inline-block; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.es-contact { background: var(--bg); padding: 120px 0; }
.es-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
.es-contact-left h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; margin-bottom: 16px; }
.es-contact-left p  { font-size: 16px; line-height: 1.65; margin-bottom: 32px; }
.es-detail { display: flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--fg); }
.es-detail svg { color: var(--es-accent); width: 22px; height: 22px; }

.es-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.es-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.es-field { margin-bottom: 20px; }
.es-field-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 8px;
}
.es-input, .es-textarea, .es-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--fg);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.es-input:focus, .es-textarea:focus, .es-select:focus {
  outline: none;
  border-color: var(--es-navy);
  background: var(--es-white);
}
.es-textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.es-privacy { display: flex; gap: 12px; align-items: start; font-size: 13px; color: var(--fg-subtle); margin-top: 8px; }
.es-checkbox {
  width: 18px; height: 18px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  appearance: none;
  cursor: pointer;
  margin-top: 2px;
  background: var(--bg);
  position: relative;
}
.es-checkbox:checked { background: var(--es-navy); border-color: var(--es-navy); }
.es-checkbox:checked::after {
  content: "";
  position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--es-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.es-footer {
  background: var(--es-navy);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.es-footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.es-footer-brand {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--es-white);
  display: inline-flex; align-items: center; gap: 8px;
}
.es-footer-tagline { font-size: 14px; color: rgba(255,255,255,0.5); }
.es-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 48px 0;
}
.es-footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--es-white);
  margin-bottom: 18px;
}
.es-footer-col a {
  display: block;
  font-size: 14.5px;
  color: rgba(255,255,255,0.65);
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.es-footer-col a:hover { color: var(--es-white); }
.es-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* =========================================================================
   QUOTE FORM PAGE
   ========================================================================= */
.es-quote-hero {
  background: var(--es-navy);
  color: var(--es-white);
  padding: 100px 0 80px;
  text-align: center;
}
.es-quote-hero h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  color: var(--es-white);
  line-height: 1.1;
  margin: 16px auto;
  max-width: 760px;
}
.es-quote-hero p { color: rgba(255,255,255,0.7); font-size: 17px; max-width: 640px; margin: 0 auto; }

.es-progress {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px var(--gutter) 0;
}
.es-progress-track {
  position: relative;
  display: flex; justify-content: space-between;
}
.es-progress-track::before {
  content: "";
  position: absolute;
  top: 18px; left: 6%; right: 6%;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}
.es-progress-track::after {
  content: "";
  position: absolute;
  top: 18px; left: 6%;
  height: 2px;
  background: var(--es-accent);
  border-radius: 2px;
  width: 0;
  transition: width var(--dur-slow) var(--ease-out);
}
.es-progress[data-step="1"] .es-progress-track::after { width: 0%; }
.es-progress[data-step="2"] .es-progress-track::after { width: 44%; }
.es-progress[data-step="3"] .es-progress-track::after { width: 88%; }
.es-step-pill {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  flex: 1;
  z-index: 1;
}
.es-step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--fg-muted);
  transition: all var(--dur-base) var(--ease-out);
}
.es-step-pill.is-active .es-step-circle {
  background: var(--es-accent);
  border-color: var(--es-accent);
  color: var(--es-white);
  box-shadow: 0 0 0 6px rgba(196,135,42,0.15);
}
/* DONE: EPC gradient outline with cream interior and gold number */
.es-step-pill.is-done .es-step-circle {
  background-image:
    linear-gradient(var(--es-paper), var(--es-paper)),
    var(--epc-gradient);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-repeat: no-repeat, no-repeat;
  border: 2px solid transparent;
  color: var(--es-accent);
  box-shadow: none;
}
.es-step-pill-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  text-align: center;
}
.es-step-pill.is-active .es-step-pill-label,
.es-step-pill.is-done .es-step-pill-label { color: var(--fg); }

.es-quote-form-card {
  max-width: 720px;
  margin: 48px auto 120px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 56px;
}
.es-quote-step { display: none; }
.es-quote-step.is-active { display: block; animation: fadein 280ms var(--ease-out); }
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.es-quote-step h2 { font-size: 26px; margin-bottom: 8px; }
.es-quote-step > p { font-size: 15px; margin-bottom: 28px; }
.es-radio-group { display: grid; gap: 12px; }
.es-radio {
  display: flex; align-items: start; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.es-radio:hover { border-color: var(--es-navy); }
.es-radio input { margin-top: 4px; accent-color: var(--es-navy); }
.es-radio-body strong { display: block; font-family: var(--font-display); font-weight: 700; color: var(--fg); font-size: 15px; }
.es-radio-body span { display: block; font-size: 13px; color: var(--fg-subtle); margin-top: 2px; }
.es-quote-actions {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.es-error {
  display: none;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  color: #962419;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
}
.es-error.is-visible { display: block; }

/* ----- Secure file drop ----- */
.es-filedrop {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.es-filedrop:hover { border-color: var(--es-navy); }
.es-filedrop.is-dragover {
  border-color: var(--es-accent);
  background: rgba(196,135,42,0.06);
}
.es-filedrop-input {
  position: absolute; inset: 0;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: pointer;
}
.es-filedrop-icon {
  width: 40px; height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--es-success-tint);
  color: var(--es-green-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.es-filedrop-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 6px;
}
.es-filedrop-hint {
  font-size: 13px;
  color: var(--fg-subtle);
  letter-spacing: 0.02em;
}
.es-filedrop-browse {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--es-navy);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.es-filedrop-secure {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--fg-subtle);
}
.es-filedrop-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  text-align: left;
}
.es-filedrop-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--fg);
}
.es-filedrop-item-name {
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.es-filedrop-item-size {
  color: var(--fg-subtle);
  font-size: 12px;
  white-space: nowrap;
}
.es-filedrop-item-remove {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--fg-subtle);
  cursor: pointer;
  flex-shrink: 0;
}
.es-filedrop-item-remove:hover {
  background: var(--es-paper-2);
  color: var(--fg);
}
.es-filedrop-item--error {
  border-color: rgba(192,57,43,0.3);
  background: rgba(192,57,43,0.04);
  color: #962419;
}
.es-success {
  text-align: center;
  padding: 24px 0;
}
.es-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--es-success-tint);
  color: var(--es-green-deep);
  display: inline-flex; align-items: center; justify-content: center;
}

/* =========================================================================
   LEGAL / DOC PAGES
   ========================================================================= */
.es-doc-hero {
  background: var(--es-navy);
  color: var(--es-white);
  padding: 80px 0 60px;
}
.es-doc-hero h1 { color: var(--es-white); font-size: clamp(36px, 4.5vw, 52px); }
.es-doc-hero p  { color: rgba(255,255,255,0.6); margin-top: 12px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.es-doc { padding: 80px 0 120px; }
.es-doc-body { max-width: 760px; margin: 0 auto; }
.es-doc-body h2 { font-size: 22px; margin-top: 40px; margin-bottom: 12px; }
.es-doc-body h3 { font-size: 17px; margin-top: 24px; margin-bottom: 8px; }
.es-doc-body p  { font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.es-doc-body ul { margin: 12px 0 14px 22px; }
.es-doc-body li { font-size: 16px; line-height: 1.7; color: var(--fg-muted); margin-bottom: 6px; }
.es-doc-body strong { color: var(--fg); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  .es-hero-inner { gap: 40px; padding: 64px 0 80px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .es-hero h1 { font-size: clamp(36px, 5.8vw, 56px); }
  .es-intro-grid { gap: 48px; }
  .es-intro-header { grid-template-columns: 1fr; gap: 24px; }
  .es-bullets-card { grid-template-columns: 1fr; padding: 16px; }
  .es-bullet { padding: 24px 18px; }
  .es-bullet:not(:last-child)::after {
    left: 18px; right: 18px; top: auto; bottom: 0;
    width: auto; height: 1px;
  }
  .es-callout-3col { grid-template-columns: 1fr; padding: 32px; }
  .es-callout-3col > div + div { padding-left: 0; border-left: none; padding-top: 24px; border-top: 1px solid var(--border-soft); }
  .es-cards-row { grid-template-columns: repeat(2, 1fr); }
  .es-testi-row { grid-template-columns: repeat(2, 1fr); }
  .es-why-grid, .es-level5-grid, .es-faq-grid, .es-contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .es-footer-cols { grid-template-columns: repeat(2, 1fr); }
  .es-section { padding: 80px 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 24px; }
  .es-nav-links { display: none; }
  .es-nav-burger { display: inline-flex; }
  .es-nav-cta { display: none; }
  .es-hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 56px 0 72px;
    padding-left: var(--gutter); padding-right: var(--gutter);
  }
  .es-hero h1 { font-size: clamp(36px, 9vw, 48px); }
  .es-hero-sub { font-size: 16px; }
  .es-hero-trust { row-gap: 10px; }
  .es-hero-trust .sep { display: none; }
  .es-hero-trust span { width: 100%; }
  .es-hero-visual { order: 2; max-width: 100%; margin: 32px auto 0; }
  .es-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .es-cards-row { grid-template-columns: 1fr; }
  .es-process-grid { grid-template-columns: 1fr; gap: 36px; }
  .es-stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .es-stat:nth-child(2)::after { display: none; }
  .es-stat:nth-child(odd)::after { display: none; }
  .es-stat:nth-child(2)::before,
  .es-stat:nth-child(4)::before { content: none; }
  .es-usp-grid { grid-template-columns: 1fr; }
  .es-testi-row { grid-template-columns: 1fr; }
  .es-form { padding: 28px; }
  .es-form-row { grid-template-columns: 1fr; }
  .es-quote-form-card { padding: 32px 24px; }
  .es-footer-top { flex-direction: column; gap: 12px; align-items: flex-start; }
  .es-footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .es-footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  .es-section { padding: 64px 0; }
  .es-cta-band { padding: 72px 0; }
  .es-progress { padding: 48px 24px 0; }
  .es-step-pill-label { display: none; }
  .es-postcode-row { flex-direction: column; }
  .es-find-addr-btn { width: 100%; }
}

/* =========================================================================
   POSTCODE ROW — Inline postcode + Find Address button
   ========================================================================= */
.es-postcode-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.es-postcode-row .es-input {
  flex: 1;
  min-width: 0;
}
.es-find-addr-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 14px 22px;
  font-size: 11px;
}
.es-find-addr-btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

/* =========================================================================
   RISK RESULTS — Results intro, property data block, dynamic alert variants
   ========================================================================= */
.es-results-intro {
  margin-bottom: 28px;
}
.es-results-intro > p:last-child {
  margin-top: 8px;
  font-size: 15px;
}

.es-risk-property-block {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.es-risk-property-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}
.es-risk-property-row strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  min-width: 96px;
  flex-shrink: 0;
}
.es-risk-property-row span {
  color: var(--fg);
}
.es-risk-rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--es-white);
}
.es-risk-rating-badge--A,
.es-risk-rating-badge--B { background: var(--es-green-deep); }
.es-risk-rating-badge--C { background: var(--es-green); }
.es-risk-rating-badge--D { background: #FFB200; color: var(--es-ink); }
.es-risk-rating-badge--E { background: #FF7500; color: var(--es-ink); }
.es-risk-rating-badge--F,
.es-risk-rating-badge--G { background: var(--es-red-bright); }

.es-risk-alert {
  border-radius: var(--radius-md);
  padding: 28px 32px;
  border-left: 4px solid;
  margin-bottom: 8px;
}
.es-risk-alert h2 {
  font-size: 20px;
  margin-bottom: 14px;
  line-height: 1.25;
}
.es-risk-alert p {
  font-size: 15.5px;
  line-height: 1.72;
}

.es-risk-alert--critical {
  background: rgba(192,57,43,0.07);
  border-left-color: #C0392B;
}
.es-risk-alert--critical h2 { color: #962419; }
.es-risk-alert--critical p  { color: #6b1f14; }

.es-risk-alert--warning {
  background: rgba(255,178,0,0.09);
  border-left-color: #FFB200;
}
.es-risk-alert--warning h2 { color: #7A5200; }
.es-risk-alert--warning p  { color: #5C3D00; }

.es-risk-alert--safe {
  background: rgba(79,174,86,0.09);
  border-left-color: #4FAE56;
}
.es-risk-alert--safe h2 { color: #1F7A2F; }
.es-risk-alert--safe p  { color: #155020; }

/* =========================================================================
   BACK TO TOP
   ========================================================================= */
.es-back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--es-navy);
  color: var(--es-white);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(11,31,58,0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.es-back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.es-back-top:hover { background: var(--es-navy-3); transform: translateY(-2px); }
.es-back-top.is-visible:hover { transform: translateY(-2px); }

/* =========================================================================
   CONTACT MODAL
   ========================================================================= */
.es-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11,31,58,0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.es-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.es-modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform var(--dur-slow) var(--ease-out);
}
.es-modal-overlay.is-open .es-modal {
  transform: translateY(0) scale(1);
}
.es-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--fg-muted);
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.es-modal-close:hover {
  background: var(--es-navy);
  color: var(--es-white);
  border-color: var(--es-navy);
}
.es-modal h2 { font-size: 26px; margin-bottom: 24px; }
.es-modal-success {
  text-align: center;
  padding: 16px 0;
}
.es-modal-success .es-success-icon { margin: 0 auto 20px; }
