/* ═══════════════════════════════════════════════════════════════════════════
   PODO STEP BY STEP — "Fiecare pas contează" scroll experience
   Brand: paper #f7f5ef · ink #14262a · teal #54acbf · Fraunces + Onest
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-light: #f7f5ef;
  --bg-dark: #0b2a30;
  --text-on-light: #14262a;
  --text-soft: #4c5c5e;
  --text-on-dark: #eef6f6;
  --brand: #54acbf;
  --brand-600: #3f97ab;
  --brand-700: #2f7d8c;
  --brand-deep: #123c44;
  --gold: #c99a2e;
  --wa: #21b858;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Onest", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-width: thin; scrollbar-color: rgba(84, 172, 191, 0.5) transparent; }
body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-on-light);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(84, 172, 191, 0.35); color: var(--brand-deep); }

/* ── Loader ─────────────────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem; background: var(--bg-light);
  transition: opacity 0.7s ease, visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-brand { width: 190px; height: auto; }
#loader-track {
  width: min(260px, 60vw); height: 2px;
  background: rgba(20, 38, 42, 0.12); border-radius: 2px; overflow: hidden;
}
#loader-bar {
  width: 0%; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-700));
  transition: width 0.25s ease;
}
#loader-percent {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  color: var(--text-soft);
}

/* ── Fixed header ───────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(247, 245, 239, 0.9), rgba(247, 245, 239, 0));
}
.header-logo img { width: 150px; height: auto; display: block; }
.header-nav { display: flex; align-items: center; gap: 1.7rem; }
.header-nav > a {
  font-size: 0.95rem; font-weight: 600; color: var(--text-on-light);
  opacity: 0.85; transition: opacity 0.2s, color 0.2s;
}
.header-nav > a:hover { opacity: 1; color: var(--brand-700); }
.header-cta {
  background: var(--brand-deep); color: #fff !important;
  padding: 0.62rem 1.3rem; border-radius: 999px; opacity: 1 !important;
  box-shadow: 0 10px 26px -10px rgba(18, 60, 68, 0.55);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s;
}
.header-cta:hover { transform: translateY(-2px); background: var(--brand-700); color: #fff; }

/* ── Hero (standalone, 100vh) ───────────────────────────────────────────── */
.hero-standalone {
  position: relative; z-index: 20;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 1.4rem;
  background:
    radial-gradient(50rem 30rem at 85% -10%, rgba(84, 172, 191, 0.2), transparent 60%),
    radial-gradient(38rem 26rem at 0% 100%, rgba(207, 232, 231, 0.5), transparent 55%),
    var(--bg-light);
  padding: 0 5vw;
}
.section-label {
  display: block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-700);
}
.hero-heading {
  font-family: var(--font-display);
  font-weight: 520;
  font-size: clamp(4rem, 12.5vw, 12.5rem);
  line-height: 0.98; letter-spacing: -0.03em;
  color: var(--text-on-light);
}
.hero-line { display: block; overflow: hidden; }
.hero-word { display: inline-block; }
.hero-word-accent { font-style: italic; font-weight: 420; color: var(--brand-600); }
.hero-tagline {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-soft); max-width: 46em;
}
.scroll-indicator {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-soft);
}
.scroll-indicator svg { width: 20px; height: 20px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ── Canvas ─────────────────────────────────────────────────────────────── */
.canvas-wrap {
  position: fixed; inset: 0; z-index: 1;
  clip-path: circle(0% at 50% 50%);
}
#canvas { width: 100%; height: 100%; display: block; }

/* ── Dark overlay ───────────────────────────────────────────────────────── */
#dark-overlay {
  position: fixed; inset: 0; z-index: 3;
  background: radial-gradient(60rem 40rem at 50% 20%, rgba(18, 60, 68, 0.92), rgba(11, 42, 48, 0.96));
  opacity: 0; pointer-events: none;
}

/* ── Marquee ────────────────────────────────────────────────────────────── */
.marquee-wrap {
  position: fixed; top: 58%; left: 0; right: 0; z-index: 2;
  overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity 0.4s ease;
}
.marquee-text {
  font-family: var(--font-display);
  font-style: italic; font-weight: 420;
  font-size: 13vw; line-height: 1;
  white-space: nowrap; letter-spacing: -0.02em;
  color: rgba(18, 60, 68, 0.14);
  will-change: transform;
}

/* ── Scroll container & sections ────────────────────────────────────────── */
#scroll-container { position: relative; z-index: 10; height: 880vh; }
/* Sections waiting to slide in sit 80px to the side (GSAP "from" state) and made
   the page pannable sideways on phones (33px at 390px wide, found 24.09.2026).
   clip, not hidden: it cuts the overflow without creating a scroll container,
   so the vertical scroll that drives the animation is untouched. */
#scroll-container { overflow-x: clip; }

.scroll-section {
  position: absolute; left: 0; right: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.scroll-section a, .scroll-section .cta-button, .scroll-section .cta-secondary { pointer-events: auto; }

.align-left { padding-left: 6vw; padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 6vw; }
.align-left .section-inner, .align-right .section-inner { max-width: 39vw; position: relative; }

/* soft feathered glow behind text for readability over video — not a card */
.section-inner::before {
  content: ""; position: absolute; inset: -3.2rem -3.6rem; z-index: -1;
  background: radial-gradient(closest-side, rgba(247, 245, 239, 0.9), rgba(247, 245, 239, 0.55) 55%, transparent);
  filter: blur(2px);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 520;
  font-size: clamp(2.1rem, 3.6vw, 4.2rem);
  line-height: 1.06; letter-spacing: -0.02em;
  margin: 1.1rem 0 1.2rem;
  text-wrap: balance;
}
.section-heading em { font-style: italic; color: var(--gold); }
.section-body { font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--text-soft); }
.section-note { display: inline-block; margin-top: 1.4rem; font-weight: 600; font-size: 0.98rem; }
.link-arrow { color: var(--brand-700); border-bottom: 1.5px solid rgba(84, 172, 191, 0.4); padding-bottom: 2px; transition: border-color 0.2s; }
.link-arrow:hover { border-color: var(--brand-700); }
.stars { color: var(--gold); letter-spacing: 0.12em; margin-right: 0.5rem; }

/* Service list (003) */
.service-list { list-style: none; margin-top: 0.4rem; }
.service-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.4rem;
  padding: 0.72rem 0; font-weight: 500; font-size: clamp(1rem, 1.2vw, 1.12rem);
  border-bottom: 1px solid rgba(20, 38, 42, 0.12);
}
.service-list .price { color: var(--brand-700); font-weight: 700; white-space: nowrap; }

/* ── Stats (dark overlay section) ───────────────────────────────────────── */
.section-stats { left: 50%; right: auto; transform: translate(-50%, -50%); width: min(1150px, 92vw); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
}
.stat { color: var(--text-on-dark); }
.stat-row { display: inline-flex; align-items: baseline; gap: 0.15em; }
.stat-number {
  font-family: var(--font-display); font-weight: 520;
  font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: 1;
  color: #cfe8e7;
}
.stat-suffix {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.8rem);
  color: var(--brand); font-weight: 420;
}
.stat-label {
  display: block; margin-top: 0.7rem;
  font-size: clamp(0.85rem, 1vw, 0.98rem); color: rgba(238, 246, 246, 0.66);
}

/* ── CTA ────────────────────────────────────────────────────────────────── */
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 1.9rem; }
/* Legal line under the final CTA (24.09.2026): the scroll page is the site's
   front door and had no route to the privacy policy, terms or ANPC SAL. */
.exp-legal {
  margin-top: 1.6rem; font-size: 0.78rem; line-height: 1.6;
  color: var(--text-soft); letter-spacing: 0.01em;
}
.exp-legal a {
  color: var(--brand-700); text-decoration: underline;
  text-decoration-color: rgba(47, 125, 140, 0.35); text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.exp-legal a:hover { text-decoration-color: currentColor; }
.exp-legal a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.cta-button {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 1.05rem 1.8rem; border-radius: 999px;
  box-shadow: 0 16px 40px -12px rgba(84, 172, 191, 0.65);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 22px 52px -12px rgba(84, 172, 191, 0.8); }
.cta-button:active { transform: translateY(0) scale(0.98); }
.cta-secondary {
  font-weight: 700; font-size: 1.02rem; color: var(--text-on-light);
  border-bottom: 2px solid rgba(20, 38, 42, 0.25); padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.cta-secondary:hover { color: var(--brand-700); border-color: var(--brand-700); }

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #scroll-container { height: 600vh; }
  .header-nav > a:not(.header-cta) { display: none; }
  .header-logo img { width: 122px; }
  .hero-heading { font-size: clamp(3.1rem, 16vw, 5.2rem); }

  .align-left, .align-right { padding: 0 6vw; }
  .align-left .section-inner, .align-right .section-inner {
    max-width: 100%;
    background: rgba(11, 42, 48, 0.72);
    border-radius: 20px;
    padding: 1.7rem 1.5rem;
    color: var(--text-on-dark);
  }
  .section-inner::before { display: none; }
  .align-left .section-inner .section-heading,
  .align-right .section-inner .section-heading { color: #fff; }
  .align-left .section-inner .section-body,
  .align-right .section-inner .section-body { color: rgba(238, 246, 246, 0.8); }
  .align-left .section-inner .section-label,
  .align-right .section-inner .section-label { color: #8fd2dd; }
  .service-list li { border-color: rgba(255, 255, 255, 0.16); color: #fff; }
  .service-list .price { color: #8fd2dd; }
  .link-arrow { color: #8fd2dd; border-color: rgba(143, 210, 221, 0.4); }
  .cta-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.35); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1rem; }
  .marquee-text { font-size: 21vw; }
  .align-left .section-inner .exp-legal { color: rgba(238, 246, 246, 0.72); }
  .align-left .section-inner .exp-legal a { color: #8fd2dd; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator svg { animation: none; }
}

/* ── Language switcher (header) ─────────────────────────────────────────── */
.exp-lang { display: flex; gap: 2px; background: rgba(20, 38, 42, 0.07); border-radius: 999px; padding: 3px; }
.exp-lang a { font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--text-soft); padding: .26rem .55rem; border-radius: 999px; opacity: 1; }
.exp-lang a:hover { color: var(--brand-700); }
.exp-lang a.on { background: #fff; color: var(--brand-700); box-shadow: 0 1px 4px rgba(18, 60, 68, 0.15); }
@media (max-width: 768px) { .exp-lang { display: none; } }
