/* ==========================================================================
   EFENA Interactive Presentation — styles
   Brand: Navy #0B1F33 · Hydrogen Blue #00AEEF · Green #3BB54A
   ========================================================================== */

.efena-pres-root, .efena-pres-root * , .efena-pres-root *::before, .efena-pres-root *::after {
  box-sizing: border-box;
}

.efena-pres-root {
  --navy: #0b1f33;
  --navy-2: #142c47;
  --blue: #00aeef;
  --green: #3bb54a;
  --ink: #14202b;
  --muted: #5b6b7a;
  --line: #e3e9ee;
  --bg: #f6f9fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11,31,51,.10);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  position: relative;
  width: 100%;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.efena-pres-root.is-fullscreen {
  border-radius: 0;
  box-shadow: none;
}

/* ---------- top bar ---------- */
.efena-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: var(--navy);
  color: #fff;
  position: relative;
  z-index: 20;
}
.efena-bar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.efena-brand { font-weight: 800; letter-spacing: .06em; font-size: 15px; }
.efena-brand-dot { color: var(--blue); }
.efena-bar-title { font-size: 12.5px; color: #c8d6e2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.efena-bar-right { display: flex; align-items: center; gap: 8px; }

.efena-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  padding: 7px 11px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
  white-space: nowrap;
}
.efena-btn:hover { background: rgba(255,255,255,.18); }
.efena-btn svg { width: 14px; height: 14px; flex: none; }

.efena-lang {
  display: flex; gap: 4px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); border-radius: 9px; padding: 3px;
}
.efena-lang button {
  border: 0; background: transparent; color: #c8d6e2;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 5px 9px; border-radius: 6px; cursor: pointer;
}
.efena-lang button.is-active { background: var(--blue); color: #062231; }

/* ---------- progress ---------- */
.efena-progress { height: 3px; background: rgba(255,255,255,.12); position: relative; z-index: 20; }
.efena-progress-fill { height: 100%; background: var(--blue); transition: width .25s ease; }

/* ---------- viewport ---------- */
.efena-viewport {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: var(--bg);
}
.efena-pres-root.is-fullscreen .efena-viewport { height: calc(100vh - 47px); }

.efena-slide {
  position: absolute; inset: 0;
  overflow-y: auto;
  padding: 40px clamp(20px, 5vw, 72px) 90px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.efena-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.efena-slide.is-dark { background: var(--navy); color: #fff; }

.efena-kicker {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .12em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 12px;
}
.efena-slide.is-dark .efena-kicker { color: #7fd8ff; }

.efena-title { font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; }
.efena-subtitle { font-size: 15.5px; color: var(--muted); max-width: 720px; line-height: 1.6; margin: 0 0 8px; }
.efena-slide.is-dark .efena-subtitle { color: #b9c8d6; }

.efena-slide-body { max-width: 1080px; margin: 0 auto; }

/* ---------- hero ---------- */
.efena-hero { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 100%; max-width: 780px; }
.efena-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,174,239,.14); border: 1px solid rgba(0,174,239,.4);
  color: #7fd8ff; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.efena-hero .efena-title { font-size: clamp(30px, 5vw, 50px); color: #fff; }
.efena-hero .efena-subtitle { font-size: 18px; color: #cfe0ec; max-width: 620px; }
.efena-hero-cta {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #062231; font-weight: 700; font-size: 14.5px;
  padding: 13px 22px; border-radius: 10px; border: 0; cursor: pointer;
}
.efena-hero-cta:hover { filter: brightness(1.06); }

/* ---------- cards ---------- */
.efena-grid { display: grid; gap: 18px; margin-top: 22px; }
.efena-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.efena-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.efena-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .efena-grid.cols-3, .efena-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}

.efena-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 4px 14px rgba(11,31,51,.05);
}
.efena-icon-badge {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(0,174,239,.12); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.efena-icon-badge svg { width: 22px; height: 22px; }
.efena-icon-badge.green { background: rgba(59,181,74,.12); color: var(--green); }
.efena-card h3 { font-size: 16.5px; margin: 0 0 8px; font-weight: 700; }
.efena-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- technology ---------- */
.efena-electrolysis-equation {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 20px 0; padding: 17px 20px; border-radius: 14px;
  color: #fff; background: linear-gradient(120deg, var(--navy), var(--navy-2));
}
.efena-electrolysis-equation small { color: #a9dff4; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.efena-electrolysis-equation strong { margin-top: 6px; font-size: clamp(21px, 3vw, 34px); letter-spacing: .02em; }
.efena-electrolysis-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.efena-electrolysis-step { position: relative; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 18px; }
.efena-electrolysis-step span { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.efena-electrolysis-step h3 { margin: 7px 0 6px; font-size: 17px; }
.efena-electrolysis-step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.efena-electrolysis-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 15px; border-radius: 10px; background: rgba(59,181,74,.09); color: var(--ink); }
.efena-electrolysis-note svg { width: 20px; flex: none; color: var(--green); }
.efena-electrolysis-note p { margin: 0; font-size: 12.5px; line-height: 1.5; }
@media (max-width: 760px) { .efena-electrolysis-flow { grid-template-columns: 1fr; } }

.efena-tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
@media (max-width: 860px) { .efena-tech-grid { grid-template-columns: 1fr; } }
.efena-tech-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 4px 14px rgba(11,31,51,.05);
}
.efena-tech-card h3 { font-size: 17px; margin: 10px 0 8px; }
.efena-tech-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.efena-label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin: 26px 0 12px; }
.efena-check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.efena-check-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); line-height: 1.5; }
.efena-check-item svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }

/* ---------- steps ---------- */
.efena-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; position: relative; }
@media (max-width: 860px) { .efena-steps { grid-template-columns: 1fr; } }
.efena-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.efena-step-n { font-size: 34px; font-weight: 800; color: rgba(0,174,239,.35); margin-bottom: 6px; }
.efena-step h3 { font-size: 16.5px; margin: 0 0 8px; }
.efena-step p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- applications grid ---------- */
.efena-app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
@media (max-width: 860px) { .efena-app-grid { grid-template-columns: 1fr 1fr; } }
.efena-app-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(11,31,51,.05); }
.efena-app-media { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--navy-2); display: block; }
.efena-app-media-boiler,
.efena-app-media-furnace { object-fit: contain; object-position: center; background: #fff; padding: 8px; }
.efena-app-card .efena-card-body { padding: 16px 18px 18px; }
.efena-app-card h3 { font-size: 15px; margin: 0 0 6px; }
.efena-app-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.efena-video-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  color: var(--blue); background: rgba(0,174,239,.12); padding: 3px 8px; border-radius: 999px; margin-bottom: 8px;
}

/* ---------- safety ---------- */
.efena-safety-note {
  margin-top: 26px; font-size: 13px; color: var(--muted); background: var(--white);
  border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; line-height: 1.55;
}

/* ---------- case studies ---------- */
.efena-case-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; margin-top: 8px; }
@media (max-width: 900px) { .efena-case-layout { grid-template-columns: 1fr; } }
.efena-case-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.efena-case-media img { width: 100%; display: block; object-fit: cover; aspect-ratio: 4/3; }
.efena-stat-panel {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px; text-align: center; margin-top: 16px;
}
.efena-stat-big { font-size: 48px; font-weight: 800; color: var(--blue); line-height: 1; }
.efena-stat-panel p { font-size: 13.5px; color: #c8d6e2; margin: 8px 0 0; }
.efena-equip-tag {
  display: inline-block; margin-top: 16px; font-size: 12.5px; font-weight: 700; color: var(--navy);
  background: #eaf7fe; border: 1px solid #cdeefb; padding: 6px 12px; border-radius: 999px;
}
.efena-quote {
  margin-top: 18px; font-size: 15.5px; font-style: italic; color: var(--ink); line-height: 1.55;
  border-left: 3px solid var(--blue); padding-left: 14px;
}
.efena-quote-attr { font-size: 12.5px; color: var(--muted); font-style: normal; margin-top: 6px; }
.efena-source { margin-top: 20px; font-size: 12px; color: var(--muted); line-height: 1.5; }

.efena-case2-body { margin-top: 6px; }
.efena-case2-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.efena-mini-stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; }
.efena-mini-stat .n { font-size: 30px; font-weight: 800; color: var(--green); }
.efena-mini-stat p { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.4; }

.efena-table-wrap { overflow-x: auto; margin-top: 10px; border-radius: 12px; border: 1px solid var(--line); }
table.efena-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 13.5px; }
table.efena-table th, table.efena-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.efena-table th { background: #eef4f8; font-weight: 700; color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
table.efena-table tr:last-child td { border-bottom: 0; }
table.efena-table td:first-child { font-weight: 700; color: var(--navy); }

/* ---------- videos ---------- */
.efena-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
@media (max-width: 900px) { .efena-video-grid { grid-template-columns: 1fr 1fr; } }
.efena-video-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(11,31,51,.05); }
.efena-video-card video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }
.efena-video-card .efena-card-body { padding: 14px 16px 16px; }
.efena-video-card h3 { font-size: 14.5px; margin: 0 0 6px; }
.efena-video-card p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- faq ---------- */
.efena-faq-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.efena-faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.efena-faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 16px 18px; font-size: 14.5px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.efena-faq-q svg { width: 16px; height: 16px; color: var(--blue); flex: none; transition: transform .2s ease; }
.efena-faq-item.is-open .efena-faq-q svg { transform: rotate(180deg); }
.efena-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.efena-faq-item.is-open .efena-faq-a { max-height: 240px; }
.efena-faq-a-inner { padding: 0 18px 16px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- company ---------- */
.efena-company { max-width: 760px; }
.efena-company p { font-size: 15px; color: var(--muted); line-height: 1.7; margin: 0 0 16px; }

/* ---------- cta ---------- */
.efena-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 100%; max-width: 680px; }
.efena-cta .efena-title { color: #fff; }
.efena-cta .efena-subtitle { color: #cfe0ec; font-size: 16.5px; }
.efena-cta-thanks { margin-top: 24px; font-size: 18px; font-weight: 700; color: #fff; }
.efena-cta-site { margin-top: 6px; font-size: 14px; color: var(--blue); font-weight: 700; }
.efena-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.efena-cta-actions a {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px;
  border-radius: 10px; font-weight: 800; text-decoration: none; transition: transform .18s ease, filter .18s ease;
}
.efena-cta-primary { background: var(--blue); color: #062231 !important; }
.efena-cta-secondary { border: 1px solid rgba(255,255,255,.45); color: #fff !important; background: rgba(255,255,255,.08); }
.efena-cta-actions a:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* ---------- bottom controls ---------- */
.efena-footer {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; background: linear-gradient(0deg, rgba(246,249,251,.98), rgba(246,249,251,0));
  z-index: 15; pointer-events: none;
}
.efena-footer > * { pointer-events: auto; }
.efena-slide.is-dark ~ .efena-footer { }
.efena-dots { display: flex; gap: 6px; flex-wrap: wrap; max-width: 60vw; }
.efena-dot { width: 8px; height: 8px; border-radius: 999px; background: #c3d1db; border: 0; cursor: pointer; padding: 0; }
.efena-dot.is-active { background: var(--blue); width: 22px; border-radius: 999px; }
.efena-nav-btns { display: flex; gap: 8px; }
.efena-nav-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 3px 10px rgba(11,31,51,.12);
}
.efena-nav-btn:disabled { opacity: .35; cursor: default; }
.efena-nav-btn svg { width: 17px; height: 17px; }

/* ---------- menu overlay ---------- */
.efena-menu-overlay {
  position: absolute; inset: 0; background: rgba(11,31,51,.72); backdrop-filter: blur(2px);
  z-index: 30; display: flex; align-items: center; justify-content: center; padding: 30px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.efena-menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.efena-menu-panel { background: #fff; border-radius: 16px; max-width: 720px; width: 100%; max-height: 86%; overflow-y: auto; padding: 22px; }
.efena-menu-panel h4 { margin: 0 0 14px; font-size: 15px; color: var(--navy); }
.efena-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .efena-menu-grid { grid-template-columns: 1fr; } }
.efena-menu-item {
  text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink);
}
.efena-menu-item:hover { border-color: var(--blue); }
.efena-menu-item .num { font-weight: 800; color: var(--blue); font-size: 12px; width: 20px; }
.efena-menu-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ---------- scrollbar ---------- */
.efena-slide::-webkit-scrollbar { width: 8px; }
.efena-slide::-webkit-scrollbar-thumb { background: rgba(11,31,51,.18); border-radius: 999px; }

@media (max-width: 640px) {
  .efena-viewport { height: 82vh; }
  .efena-bar-title { display: none; }
  .efena-case-layout { gap: 18px; }
  .efena-bar { padding: 8px 10px; gap: 6px; }
  .efena-brand { font-size: 13px; }
  .efena-bar-right { gap: 5px; }
  .efena-btn { padding: 7px 8px; }
  .efena-btn span { display: none; }
  .efena-btn svg { width: 15px; height: 15px; }
  .efena-lang { padding: 2px; }
  .efena-lang button { padding: 5px 7px; font-size: 11px; }
  .efena-slide { padding: 28px 16px 90px; }
  .efena-menu-panel { padding: 16px; }
  .efena-cta-actions { width: 100%; }
  .efena-cta-actions a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .efena-pres-root *, .efena-pres-root *::before, .efena-pres-root *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
