:root {
  --teal-900: #041f1f;
  --teal-800: #062f2f;
  --teal-700: #0a4747;
  --teal-100: #eef7f5;
  --cream: #f7f7f2;
  --ink: #0d2b2b;
  --muted: #4a5a5a;
  --gold: #d4a017;
  --gold-light: #f0c14b;
  --gold-soft: #ffd96a;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(6, 47, 47, 0.10);
  --shadow-lg: 0 20px 50px rgba(6, 47, 47, 0.18);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img { max-width: 100%; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  font: 600 16px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 30px; font-size: 18px; border-radius: 14px; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--teal-900);
  box-shadow: 0 8px 20px rgba(212, 160, 23, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 28px rgba(212, 160, 23, 0.45); }

.btn-dark { background: var(--teal-800); color: var(--white); }
.btn-dark:hover { background: var(--teal-700); }

.btn-ghost {
  background: transparent;
  color: var(--teal-800);
  box-shadow: inset 0 0 0 2px rgba(6, 47, 47, 0.18);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--teal-800); }

.btn .fa-chevron-down { font-size: 14px; transition: transform .25s ease; }
.btn[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 242, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(6, 47, 47, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--teal-800);
  white-space: nowrap;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  transition: color .2s;
}
.main-nav a:hover { color: var(--teal-800); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}
.lang-select select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(6, 47, 47, 0.15);
  background: var(--white);
  border-radius: 10px;
  padding: 8px 12px;
  font: 500 14px var(--font-body);
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(240, 193, 75, 0.20), transparent 70%),
    linear-gradient(to bottom, var(--teal-100), var(--cream));
  padding: 56px 0 96px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-coin {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

.eyebrow {
  margin: 26px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(44px, 7.5vw, 84px);
  line-height: 1.04;
  letter-spacing: -1px;
  color: var(--teal-800);
  margin: 12px 0 22px;
}
h1 span { color: var(--gold); }

.lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* ---------- Plăți ---------- */
.payment-panel {
  margin-top: 26px;
  padding: 24px;
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
}
.payment-panel[hidden] { display: none; }
@keyframes pop {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.payment-title { margin: 0 0 16px; font-weight: 600; }
.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pay-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px;
  border-radius: 14px;
  border: 1px solid rgba(6, 47, 47, 0.10);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pay-option i { font-size: 26px; color: var(--teal-700); }
.pay-option:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.payment-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.payment-note i { color: var(--gold); margin-inline-end: 4px; }

/* ---------- Social ---------- */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.social-icons a {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-800);
  font-size: 20px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s, color .2s, background .2s;
}
.social-icons a:hover { transform: translateY(-3px); color: var(--gold); }
.social-icons.small { margin-top: 0; }
.social-icons.small a {
  width: 38px; height: 38px; font-size: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  box-shadow: none;
}
.social-icons.small a:hover { background: var(--gold); color: var(--teal-900); }

/* ---------- Secțiuni ---------- */
section h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.15;
  margin: 0 0 12px;
}
.section-lead {
  max-width: 640px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Impact ---------- */
.impact {
  background: linear-gradient(135deg, var(--teal-800), var(--teal-700));
  color: var(--white);
  text-align: center;
  padding: 88px 0;
  border-radius: 64px 64px 0 0;
  margin-top: -40px;
  position: relative;
}
.impact h2 { color: var(--gold-light); }
.impact .section-lead { color: rgba(255, 255, 255, 0.75); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
}
.stat i { font-size: 22px; color: var(--gold-light); }
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span { color: rgba(255, 255, 255, 0.75); font-size: 15px; }

.goal { max-width: 760px; margin: 44px auto 0; text-align: start; }
.goal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}
.goal-head #goalPercent { color: var(--gold-light); font-weight: 600; }
.goal-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.goal-fill {
  height: 100%;
  width: 0;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 1.2s ease;
}
.stats-offline { margin: 24px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.stats-offline[hidden] { display: none; }

/* ---------- Testimoniale ---------- */
.testimonials { padding: 96px 0; text-align: center; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
  text-align: start;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial blockquote {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.testimonial blockquote::before {
  content: "“";
  display: block;
  font-family: var(--font-head);
  font-size: 54px;
  line-height: .6;
  color: var(--gold);
  margin-bottom: 6px;
}
.testimonial figcaption { font-size: 14px; color: var(--muted); margin-top: auto; }
.testimonial figcaption strong { color: var(--teal-800); }

.empty-state {
  margin: 0 auto 32px;
  padding: 28px;
  max-width: 560px;
  border: 2px dashed rgba(6, 47, 47, 0.15);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state[hidden] { display: none; }

/* ---------- Idee ---------- */
.idea { padding: 0 0 96px; }
.idea-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border-inline-start: 6px solid var(--gold);
}
.idea-inner h2 { font-size: clamp(28px, 3.5vw, 38px); }
.idea-inner p { margin: 0; color: var(--muted); max-width: 560px; }
.idea-inner .btn { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.site-footer .brand { color: var(--white); }
.footer-meta { margin: 0; font-size: 14px; }
.footer-meta a { color: var(--gold-light); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

/* ---------- Formular ---------- */
.form-dialog {
  width: min(520px, calc(100% - 32px));
  border: 0;
  border-radius: 22px;
  padding: 0;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.form-dialog::backdrop { background: rgba(4, 31, 31, 0.55); backdrop-filter: blur(3px); }
.form-dialog form { position: relative; padding: 32px; }
.form-dialog h3 {
  font-family: var(--font-head);
  font-size: 28px;
  margin: 0 0 20px;
  padding-inline-end: 36px;
}
.dialog-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: 18px;
  cursor: pointer;
}
.form-body label { display: block; margin-bottom: 14px; }
.form-body label > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-body input[type="text"],
.form-body textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(6, 47, 47, 0.18);
  border-radius: 12px;
  font: 15px var(--font-body);
  color: var(--ink);
  background: var(--white);
  resize: vertical;
}
.form-body input:focus, .form-body textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2); }
.form-body .checkbox { display: flex; gap: 10px; align-items: flex-start; }
.form-body .checkbox input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; }
.form-body .checkbox span { font-size: 14px; font-weight: 400; color: var(--muted); margin: 0; }
.form-body .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; margin: 4px 0 8px; font-size: 14px; color: #b3261e; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.form-done { text-align: center; padding: 10px 0; }
.form-done[hidden] { display: none; }
.form-done i { font-size: 52px; color: var(--gold); }
.form-done p { font-size: 17px; margin: 16px 0 24px; }

/* ---------- Telefon ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .idea-inner { flex-direction: column; text-align: center; padding: 36px 24px; border-inline-start: 0; border-top: 6px solid var(--gold); }
  .idea-inner p { margin: 0 auto; }
}

@media (max-width: 640px) {
  .header-inner { height: 60px; }
  .brand span { display: none; }
  .site-footer .brand span { display: inline; }
  .hero { padding: 36px 0 80px; }
  .hero-coin { width: 110px; height: 110px; }
  .hero-actions .btn { width: 100%; }
  .payment-panel { padding: 18px; }
  .payment-options { gap: 8px; }
  .impact { border-radius: 36px 36px 0 0; padding: 64px 0; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat { padding: 22px 16px; }
  .testimonials { padding: 64px 0; }
  .idea { padding-bottom: 64px; }
  .form-dialog form { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
