/* PBE România — homepage (oct. 2026)
   Foaie de stil dedicată paginii principale. Înlocuiește tailwind.min.css,
   pbe-header.css, pbe-footer.css și AOS doar pe index.php. */

:root {
  --ink: #10233f;
  --ink-2: #1b3760;
  --gold: #f2b705;
  --gold-soft: #fff4cc;
  --red: #c8202f;
  --paper: #f3f6fa;
  --white: #ffffff;
  --text: #26324a;
  --muted: #5b6577;
  --line: #d9e1ec;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--f-display); color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }

section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-bottom: 18px; }

/* ── Butoane ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffc81f; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding: 18px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { width: 92px; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.brand span { font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1.15; max-width: 9em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 10px 14px; border-radius: 999px;
}
.nav a:hover { background: rgba(255,255,255,.12); }
.nav .nav-login { border: 1px solid rgba(255,255,255,.5); }
.nav .nav-cta { background: var(--gold); color: var(--ink); font-family: var(--f-display); font-weight: 700; }
.nav .nav-cta:hover { background: #ffc81f; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(16,35,63,.55); border: 1px solid rgba(255,255,255,.35); color: var(--white);
  cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 76px; right: var(--gutter); left: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-radius: var(--radius); padding: 10px;
    box-shadow: 0 18px 40px rgba(16,35,63,.28);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { color: var(--ink); padding: 14px 16px; border-radius: 10px; }
  .nav a:hover { background: var(--paper); }
  .nav .nav-login { border-color: var(--line); }
  .nav .nav-cta { text-align: center; margin-top: 6px; }
  .brand span { display: none; }
  .brand img { width: 76px; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); padding: 140px 0 clamp(48px, 8vw, 88px); overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16,35,63,.94) 0%, rgba(16,35,63,.78) 42%, rgba(16,35,63,.25) 100%),
    linear-gradient(0deg, rgba(16,35,63,.85) 0%, rgba(16,35,63,0) 45%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 680px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 800; line-height: .95; letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero h1 .line2 { display: block; color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.88); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-proof {
  font-size: 1rem; color: rgba(255,255,255,.8); max-width: 54ch;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22); margin: 0;
}
.hero-proof strong { color: var(--white); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero-actions, .hero-proof { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero .lead { animation-delay: .12s; }
  .hero-actions { animation-delay: .22s; }
  .hero-proof { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ── Povestea: înainte / astăzi ──────────────────────────── */
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.story-text p { color: var(--muted); }
.story-text p.closing { color: var(--ink); font-weight: 600; font-size: 1.2rem; }

.change { border-top: 2px solid var(--ink); }
.change-head, .change-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.change-head {
  padding: 14px 0; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.change-head .before { color: var(--muted); }
.change-head .after { color: var(--ink); }
.change-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.change-row .before { color: var(--muted); font-size: 1.05rem; }
.change-row .after {
  color: var(--ink); font-weight: 600; font-size: 1.1rem;
  padding-left: 16px; border-left: 4px solid var(--gold);
}

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .change-head { display: none; }
  .change-row { grid-template-columns: 1fr; gap: 8px; }
  .change-row .before::before { content: "Înainte: "; font-weight: 600; }
}

/* ── Clubul Apolo (secțiune închisă la culoare) ──────────── */
.apolo { background: var(--ink); color: rgba(255,255,255,.86); }
.apolo h2, .apolo h3 { color: var(--white); }
.apolo .lead { color: rgba(255,255,255,.78); }

.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.tool { padding: 28px 28px 28px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.tool:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
.tool:nth-child(even) { padding-left: 28px; padding-right: 0; }
.tool h3 { margin-bottom: 8px; }
.tool p { margin: 0; font-size: 1.05rem; }
@media (max-width: 760px) {
  .tools { grid-template-columns: 1fr; }
  .tool, .tool:nth-child(even) { padding: 22px 0; border-right: 0; }
}

.results { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.results h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 16px; }
.growth { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.growth::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 46px; height: 2px;
  background: linear-gradient(90deg, rgba(242,183,5,.35), var(--gold));
}
.growth li { position: relative; text-align: center; }
.growth .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--gold);
  font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; color: var(--gold);
  position: relative;
}
.growth li:last-child .num { background: var(--gold); color: var(--ink); width: 104px; height: 104px; margin-top: -6px; }
.growth .cap { display: block; margin-top: 12px; font-size: 1rem; color: rgba(255,255,255,.8); }
@media (max-width: 860px) { .results { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .growth .num { width: 72px; height: 72px; font-size: 2rem; }
  .growth li:last-child .num { width: 82px; height: 82px; }
  .growth::before { top: 36px; }
}

/* ── Ce este PBE ─────────────────────────────────────────── */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.facts { margin: 0; }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { border-top: 1px solid var(--line); }
.facts dt { font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--muted); }

.season { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.season li { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.season li:first-child { border-top: 1px solid var(--line); }
.season .when { font-family: var(--f-display); font-weight: 700; color: var(--ink); }
.season .what { color: var(--text); }
.season .what small { display: block; color: var(--muted); font-size: .95rem; }
.season-note { margin-top: 18px; font-size: 1rem; color: var(--muted); }
.about h3.col-title { margin-bottom: 16px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .season li { grid-template-columns: 1fr; gap: 2px; } }

/* ── Mărturii video ──────────────────────────────────────── */
.voices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 28px; align-items: start; }
.voice figure { margin: 0; }
.yt {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); border: 0; padding: 0; cursor: pointer; display: block;
}
.yt.is-short { aspect-ratio: 9 / 16; max-width: 340px; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.yt:hover img { transform: scale(1.03); }
.yt .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.yt .play svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--ink); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.voice figcaption { margin-top: 14px; }
.voice blockquote { margin: 0 0 8px; font-size: 1.1rem; color: var(--ink); }
.voice .who { font-size: 1rem; color: var(--muted); }
.voice .who strong { color: var(--ink); }
.voices-note { margin-top: 32px; font-size: 1rem; color: var(--muted); }

/* ── Contact / cerere informații ─────────────────────────── */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.direct { list-style: none; padding: 0; margin: 24px 0 0; }
.direct li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.direct a { color: var(--ink); font-weight: 600; text-decoration: none; }
.direct a:hover { text-decoration: underline; }
.direct span { display: block; font-size: .95rem; color: var(--muted); }

.form { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 1rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid #c3cedc; border-radius: 10px; background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242,183,5,.45); }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field .err { display: block; color: var(--red); font-size: .95rem; margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--muted); margin-bottom: 22px; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.form-status.ok { background: #e3f4e8; color: #1d5a33; }
.form-status.bad { background: #fde6e8; color: #8f1622; }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .65; cursor: progress; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ── Înscriere ───────────────────────────────────────────── */
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.signup {
  border: 2px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px);
  display: flex; flex-direction: column;
}
.signup.primary { border-color: var(--ink); }
.signup h3 { font-size: 1.6rem; margin-bottom: 6px; }
.signup .who { color: var(--muted); margin-bottom: 18px; }
.signup ul { margin: 0 0 24px; padding-left: 1.1em; color: var(--text); }
.signup ul li { margin-bottom: 6px; }
.signup .btn { margin-top: auto; align-self: flex-start; }
.signup .note { font-size: .95rem; color: var(--muted); margin: 12px 0 0; }
.closed-box { border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px; max-width: 760px; }
@media (max-width: 760px) { .signup-grid { grid-template-columns: 1fr; } .signup .btn { align-self: stretch; } }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #0b1a30; color: rgba(255,255,255,.72); padding: 64px 0 32px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer h4 { font-family: var(--f-display); color: var(--white); font-size: 1.05rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-brand img { width: 96px; margin-bottom: 14px; }
.partners { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.partners span { font-size: .95rem; }
.partners img { height: 52px; width: auto; opacity: .85; }
.partners a:hover img { opacity: 1; }
.partners .invert { filter: brightness(0) invert(1); }
.copyright { padding-top: 24px; font-size: .95rem; color: rgba(255,255,255,.55); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ── Buton plutitor Hub (existent) ───────────────────────── */
.hub-float-wrap { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 30; }
.hub-float-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(15,23,42,.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 14px 10px;
  text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: background .25s ease, border-color .25s ease;
  transform-origin: center 85%;
}
.hub-float-btn:hover { background: rgba(30,41,59,.95); border-color: rgba(255,215,0,.4); }
.hub-float-btn svg { width: 20px; height: 20px; stroke: #ffd700; }
.hub-float-btn span { font-size: 9px; color: rgba(255,255,255,.75); writing-mode: vertical-rl; letter-spacing: 1px; font-weight: 600; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .hub-float-btn { animation: hubIdleBob 3.6s ease-in-out infinite; }
  @keyframes hubIdleBob {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-4deg) translateY(-3px); }
    50% { transform: rotate(0deg) translateY(1px); }
    75% { transform: rotate(4deg) translateY(-2px); }
  }
}
@media (max-width: 768px) { .hub-float-wrap { right: 10px; top: auto; bottom: 90px; transform: none; } }

/* ── Rezultate: zero puncte pierdute ─────────────────────── */
.lost { margin: 0 0 28px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.lost-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(3.5rem, 8vw, 5.5rem); line-height: 1; color: var(--gold); letter-spacing: -0.03em; }
.lost-cap { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 16ch; line-height: 1.35; }
.seasons { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(242,183,5,.5); }
.seasons li { position: relative; padding: 0 0 18px 22px; }
.seasons li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); }
.seasons li:last-child { padding-bottom: 0; }
.seasons li:last-child::before { background: var(--gold); }
.seasons .yr { display: block; font-family: var(--f-display); font-weight: 700; color: var(--white); }
.seasons .ev { display: block; color: rgba(255,255,255,.8); font-size: 1rem; }
.results { align-items: start; }
/* ── Logo: bătaie de inimă (lub-dub) cu strălucire aurie ─
   Ritm dublu ca al inimii, nu un puls uniform: două bătăi lungi cu înclinare și ușoară deformare, apoi o pauză scurtă.
   Pe hover bate mai repede. Oprit pentru cine a cerut mișcare redusă. */
.site-header .brand img { transform-origin: 50% 60%; animation: pbe-heartbeat 3.9s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes pbe-heartbeat {
  0%, 80%, 100% { transform: rotate(-4deg) scale(1, 1);           filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
  16.4%         { transform: rotate(-2.5deg) scale(1.06, 1.03);   filter: drop-shadow(0 0 14px rgba(242,183,5,.75)) drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
  30.8%         { transform: rotate(-4.5deg) scale(0.99, 1.01);   filter: drop-shadow(0 0 7px rgba(242,183,5,.3)) drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
  45.1%         { transform: rotate(-3deg) scale(1.04, 1.025);    filter: drop-shadow(0 0 11px rgba(242,183,5,.55)) drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
  61.5%         { transform: rotate(-4.2deg) scale(0.995, 1.005); filter: drop-shadow(0 0 4px rgba(242,183,5,.15)) drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
}
.site-header .brand:hover img { animation-duration: 2.2s; }
@media (prefers-reduced-motion: reduce) { .site-header .brand img { animation: none; transform: rotate(-4deg); } }