/* ═══════════════════════════════════════════════════════
   STYLE.CSS — MOBILE-FIRST DESIGN
   Eduard Apachitei — Consultant Financiar Independent
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #07090f; --bg2: #0b0d1a; --bg3: #0f1120; --bg4: #141829;
  --gold: #c9a84c; --gold-lt: #dfc06a;
  --gold-dim: rgba(201,168,76,.1); --gold-glow: rgba(201,168,76,.22);
  --text: #eef0f8; --muted: #8b95a8;
  --border: rgba(255,255,255,.08); --border-g: rgba(201,168,76,.25);
  --green: #4ade80; --red: #f87171;
  --shadow: 0 8px 32px rgba(0,0,0,.35);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; touch-action: manipulation; min-height: 44px; }
input, select, textarea {
  font-family: inherit;
  font-size: 16px !important;
  min-height: 44px;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ═══ NAV (mobile-first) ═══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: .85rem 5%;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(7,9,15,.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}
.logo { font-weight: 800; font-size: 1.05rem; color: var(--text); letter-spacing: -.01em; }
.logo span { color: var(--gold); }
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: none;
  color: var(--text); font-size: 1.4rem; border-radius: 8px;
}
.nav-toggle:active { background: var(--bg3); }
.nav-links {
  display: none;
  position: fixed; top: 56px; left: 0; right: 0;
  flex-direction: column; background: var(--bg2);
  padding: 1rem 5% 2rem; gap: .2rem; list-style: none;
  border-bottom: 1px solid var(--border);
  max-height: calc(100vh - 56px); overflow-y: auto;
  box-shadow: var(--shadow);
}
.nav-links.open { display: flex; }
.nav-links a {
  font-size: 1rem; color: var(--text); padding: 1rem;
  border-radius: 8px; font-weight: 500; display: block;
}
.nav-links a:active { background: var(--bg3); }
.nav-cta {
  background: var(--gold); color: #000 !important;
  margin-top: .5rem; text-align: center; font-weight: 700 !important;
}
@media (min-width: 880px) {
  nav { padding: 1rem 6%; min-height: 64px; }
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important; flex-direction: row;
    position: static; padding: 0; gap: 2rem;
    background: none; border: none; box-shadow: none;
    max-height: none; overflow: visible;
  }
  .nav-links a { padding: .5rem 0; font-size: .9rem; color: var(--muted); }
  .nav-links a:hover { color: var(--text); background: none; }
  .nav-cta { padding: .55rem 1.2rem !important; margin: 0; border-radius: 7px; }
  .nav-cta:hover { background: var(--gold-lt); }
}

/* ═══ WHATSAPP FLOTANT ═══ */
.wa-btn {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 240;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.5);
  transition: transform .15s;
}
.wa-btn:active { transform: scale(.92); }
.wa-btn svg { width: 30px; height: 30px; fill: #fff; }
@media (min-width: 880px) {
  .wa-btn { bottom: 1.5rem; right: 1.5rem; }
  .wa-btn:hover { transform: scale(1.08); }
}

/* ═══ LAYOUT ═══ */
main { padding-top: 56px; }
.container { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 5%; }
.container-wide { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%; }
@media (min-width: 880px) {
  main { padding-top: 64px; }
  .container, .container-wide { padding: 0 1.5rem; }
}

/* ═══ PAGE HEADER ═══ */
.page-header {
  padding: 3rem 0 2.5rem; text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg2), var(--bg));
}
.page-header .label {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  color: var(--gold); letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: .8rem;
}
.page-header h1 {
  font-size: 1.75rem; font-weight: 800;
  line-height: 1.2; margin-bottom: .8rem;
  letter-spacing: -.02em; padding: 0 .5rem;
}
.page-header h1 span { color: var(--gold); }
.page-header p {
  color: var(--muted); font-size: 1rem;
  max-width: 640px; margin: 0 auto; padding: 0 .5rem;
}
@media (min-width: 600px) {
  .page-header { padding: 4rem 0 3rem; }
  .page-header h1 { font-size: 2.4rem; }
  .page-header p { font-size: 1.05rem; }
}
@media (min-width: 880px) {
  .page-header { padding: 5rem 0 4rem; }
  .page-header h1 { font-size: 3.2rem; }
}

/* ═══ BREADCRUMBS ═══ */
.breadcrumbs {
  padding: 1.2rem 0; font-size: .82rem; color: var(--muted);
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs .sep { margin: 0 .4rem; opacity: .5; }
@media (min-width: 880px) {
  .breadcrumbs { font-size: .85rem; padding: 1.5rem 0; }
  .breadcrumbs a:hover { color: var(--gold); }
}

/* ═══ ARTICOLE LISTING ═══ */
.articole-filter {
  display: flex; gap: .5rem; margin: 1.5rem 0 2rem;
  overflow-x: auto; padding: 0 0 .5rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.articole-filter::-webkit-scrollbar { display: none; }
.filter-btn {
  flex: 0 0 auto; padding: .6rem 1rem;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--muted); border-radius: 100px;
  font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.filter-btn:active { background: var(--bg3); }
.filter-btn.active {
  background: var(--gold); color: #000; border-color: var(--gold);
}
@media (min-width: 700px) {
  .articole-filter {
    flex-wrap: wrap; justify-content: center;
    overflow: visible; margin: 2rem 0 3rem;
  }
}

.articole-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1rem; padding-bottom: 3rem;
}
.article-card {
  background: linear-gradient(180deg, var(--bg3), var(--bg2));
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; transition: all .2s;
  display: flex; flex-direction: column; color: inherit;
}
.article-card:active { transform: scale(.98); border-color: var(--border-g); }
.article-tag {
  display: inline-block; font-size: .65rem; font-weight: 700;
  color: var(--gold); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: .8rem; width: fit-content;
}
.article-card h2, .article-card h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin-bottom: .7rem; line-height: 1.3;
}
.article-card p {
  color: var(--muted); font-size: .9rem;
  margin-bottom: 1.2rem; flex-grow: 1; line-height: 1.55;
}
.article-meta {
  display: flex; justify-content: space-between;
  align-items: center; font-size: .75rem;
  color: var(--muted); padding-top: .9rem;
  border-top: 1px solid var(--border); gap: .5rem;
}
.article-meta .read-link { color: var(--gold); font-weight: 700; }
@media (min-width: 600px) {
  .articole-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem;
  }
  .article-card { padding: 1.8rem; }
  .article-card h2, .article-card h3 { font-size: 1.2rem; }
}
@media (min-width: 880px) {
  .articole-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem; padding-bottom: 5rem;
  }
  .article-card { padding: 2rem; }
  .article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-g);
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
  }
  .article-card h2, .article-card h3 { font-size: 1.25rem; }
}

/* ═══ ARTICOL SINGLE ═══ */
article.post { padding: 1.5rem 0 3rem; }
article.post .post-tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  color: var(--gold); letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 1rem;
}
article.post h1 {
  font-size: 1.6rem; font-weight: 800;
  line-height: 1.22; margin-bottom: 1rem; letter-spacing: -.02em;
}
article.post .post-meta {
  display: flex; gap: 1rem; color: var(--muted);
  font-size: .82rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem; flex-wrap: wrap; align-items: center;
}
article.post .post-meta .author { display: flex; align-items: center; gap: .5rem; }
article.post .post-meta .author-img {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
}
@media (min-width: 600px) {
  article.post { padding: 2rem 0 4rem; }
  article.post h1 { font-size: 2rem; }
  article.post .post-meta { font-size: .88rem; }
}
@media (min-width: 880px) {
  article.post { padding: 3rem 0 5rem; }
  article.post h1 { font-size: 2.8rem; }
}

.post-body { font-size: 1.02rem; color: #d6dae5; line-height: 1.75; }
.post-body h2 {
  font-size: 1.35rem; font-weight: 700;
  color: var(--text); margin: 2.2rem 0 1rem;
  letter-spacing: -.01em; line-height: 1.3;
}
.post-body h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin: 1.8rem 0 .8rem; line-height: 1.35;
}
.post-body p { margin-bottom: 1.2rem; }
.post-body strong { color: var(--text); font-weight: 700; }
.post-body em { color: var(--gold-lt); font-style: normal; font-weight: 600; }
.post-body ul, .post-body ol { margin: 1rem 0 1.4rem 1.3rem; padding-left: 0; }
.post-body li { margin-bottom: .7rem; line-height: 1.7; }
.post-body ul li::marker { color: var(--gold); }
.post-body ol li::marker { color: var(--gold); font-weight: 700; }
.post-body a { color: var(--gold); border-bottom: 1px solid var(--gold-dim); }
.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: .8rem 1.2rem; margin: 1.5rem 0;
  font-style: italic; color: var(--text);
  background: var(--gold-dim); border-radius: 0 8px 8px 0;
  font-size: .98rem;
}
.post-body .key-box {
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  border: 1px solid var(--border-g); border-left: 4px solid var(--gold);
  padding: 1.3rem 1.4rem; border-radius: 10px; margin: 1.8rem 0;
}
.post-body .key-box .key-title {
  color: var(--gold); font-weight: 700; font-size: .75rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .7rem;
}
.post-body .key-box p:last-child { margin-bottom: 0; }

.post-body .table-wrap {
  overflow-x: auto; margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px; border: 1px solid var(--border);
}
.post-body table {
  width: 100%; border-collapse: collapse;
  font-size: .88rem; background: var(--bg2);
  min-width: 480px;
}
.post-body th, .post-body td {
  padding: .8rem .9rem; text-align: left;
  border-bottom: 1px solid var(--border);
}
.post-body th {
  background: var(--bg3); font-weight: 700;
  color: var(--text); white-space: nowrap;
}
.post-body td { color: #c0c6d4; }
.post-body td:first-child { color: var(--text); font-weight: 600; }
.post-body tr:last-child td { border-bottom: none; }

@media (min-width: 600px) {
  .post-body { font-size: 1.05rem; }
  .post-body h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
  .post-body h3 { font-size: 1.22rem; margin: 2rem 0 .8rem; }
  .post-body table { font-size: .92rem; min-width: 0; }
  .post-body .key-box { padding: 1.5rem 1.8rem; margin: 2rem 0; }
}
@media (min-width: 880px) {
  .post-body h2 { font-size: 1.6rem; }
  .post-body h3 { font-size: 1.25rem; }
}

/* ═══ CTA BOX ═══ */
.cta-box {
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  border: 1px solid var(--border-g); border-radius: 14px;
  padding: 1.8rem 1.4rem; margin: 2.5rem 0 2rem; text-align: center;
}
.cta-box h3 {
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: .7rem; color: var(--text); line-height: 1.3;
}
.cta-box p { color: var(--muted); margin-bottom: 1.3rem; font-size: .95rem; }
.cta-box .btn {
  display: inline-block; background: var(--gold); color: #000;
  padding: 1rem 1.6rem; border-radius: 8px;
  font-weight: 700; font-size: .95rem;
  width: 100%; max-width: 320px;
}
@media (min-width: 600px) {
  .cta-box { padding: 2.5rem 2rem; }
  .cta-box h3 { font-size: 1.35rem; }
  .cta-box .btn { width: auto; padding: 1rem 2rem; }
}

/* ═══ RELATED ═══ */
.related { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.related h3 {
  font-size: 1.25rem; margin-bottom: 1.2rem;
  color: var(--text); font-weight: 700;
}
.related-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 600px) {
  .related { padding: 3rem 0; }
  .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem;
  }
}

/* ═══ FOOTER ═══ */
footer {
  padding: 2.5rem 5% 6rem; text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: .82rem;
  background: var(--bg2); line-height: 1.6;
}
footer .footer-links {
  display: flex; gap: 1.2rem; justify-content: center;
  margin-bottom: 1.2rem; flex-wrap: wrap;
}
footer .footer-links a { color: var(--muted); padding: .3rem; }
footer p { margin: .3rem 0; }
@media (min-width: 880px) {
  footer { padding: 3rem 6%; }
  footer .footer-links { gap: 2rem; }
  footer .footer-links a:hover { color: var(--gold); }
}

/* ═══ LANDING PAGE ═══ */
.landing-hero {
  min-height: calc(100vh - 56px);
  display: flex; align-items: flex-start;
  padding: 2rem 5% 3rem;
  background:
    radial-gradient(ellipse at top right, var(--gold-dim), transparent 60%),
    var(--bg);
}
.landing-hero-inner {
  width: 100%; display: flex; flex-direction: column; gap: 2rem;
}
.landing-hero h1 {
  font-size: 1.8rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 1rem; letter-spacing: -.02em;
}
.landing-hero h1 span { color: var(--gold); }
.landing-hero p.sub {
  font-size: 1rem; color: var(--muted);
  margin-bottom: 1.5rem; line-height: 1.55;
}
.landing-trust {
  display: flex; flex-direction: column;
  gap: .7rem; margin-bottom: 1rem;
}
.landing-trust div {
  display: flex; align-items: center; gap: .6rem;
  font-size: .92rem; color: var(--text);
}
.landing-trust .check { color: var(--green); font-weight: 700; flex-shrink: 0; }

.landing-form-card {
  background: linear-gradient(180deg, var(--bg2), var(--bg3));
  border: 1px solid var(--border-g); border-radius: 14px;
  padding: 1.5rem 1.2rem; box-shadow: var(--shadow);
}
.landing-form-card h2 {
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: .4rem; line-height: 1.3;
}
.landing-form-card .form-sub {
  color: var(--muted); font-size: .88rem; margin-bottom: 1.2rem;
}
.landing-form-card .fg { margin-bottom: .9rem; }
.landing-form-card label {
  display: block; font-size: .8rem;
  color: var(--muted); margin-bottom: .4rem; font-weight: 600;
}
.landing-form-card input,
.landing-form-card select,
.landing-form-card textarea {
  width: 100%; padding: .9rem 1rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  -webkit-appearance: none; appearance: none;
}
.landing-form-card select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%238b95a8' viewBox='0 0 24 24'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-position: right .8rem center;
  background-repeat: no-repeat;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}
.landing-form-card textarea { min-height: 80px; resize: vertical; }
.landing-form-card input:focus,
.landing-form-card select:focus,
.landing-form-card textarea:focus { outline: none; border-color: var(--gold); }
.landing-form-card .gdpr {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .8rem; color: var(--muted); margin: 1rem 0; line-height: 1.5;
}
.landing-form-card .gdpr input {
  width: 20px; height: 20px; margin: 0; margin-top: .15rem;
  flex-shrink: 0; min-height: 20px;
}
.landing-form-card .btn-submit {
  width: 100%; padding: 1.1rem;
  background: var(--gold); color: #000;
  border: none; border-radius: 8px;
  font-weight: 800; font-size: 1rem;
  transition: all .15s;
}
.landing-form-card .btn-submit:active { transform: scale(.98); background: var(--gold-lt); }
@media (min-width: 880px) {
  .landing-hero { padding: 5rem 6%; align-items: center; }
  .landing-hero-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 4rem; align-items: center;
  }
  .landing-hero h1 { font-size: 3.2rem; line-height: 1.1; }
  .landing-hero p.sub { font-size: 1.15rem; }
  .landing-trust { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; }
  .landing-form-card { padding: 2.5rem; }
  .landing-form-card h2 { font-size: 1.5rem; }
  .landing-form-card .btn-submit:hover { transform: translateY(-2px); background: var(--gold-lt); }
}

.landing-features {
  padding: 3rem 5%; background: var(--bg2);
  border-top: 1px solid var(--border);
}
.landing-features-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.landing-feature { text-align: center; padding: .5rem; }
.landing-feature .icon { font-size: 2.2rem; margin-bottom: .8rem; }
.landing-feature h3 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: .5rem; color: var(--text);
}
.landing-feature p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
@media (min-width: 600px) {
  .landing-features { padding: 4rem 5%; }
  .landing-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem;
  }
  .landing-feature .icon { font-size: 2.5rem; }
  .landing-feature h3 { font-size: 1.15rem; }
}
.landing-success { display: none; text-align: center; padding: 2rem 1rem; }
.landing-success.show { display: block; }
.landing-success h2 { color: var(--green); margin-bottom: 1rem; font-size: 1.4rem; }
.landing-success p { color: var(--muted); line-height: 1.6; }
