/* ==========================================================
   Mihăiță Beștea – one page (stil inspirat de template-ul Populi)
   ========================================================== */
:root {
  --navy: #13284f;
  --navy-2: #0d1e3d;
  --blue: #0b44a0;
  --blue-2: #0a3a8a;
  --red: #e5322b;
  --red-2: #c9261f;
  --sky: #18b4f0;
  --ink: #1b2a44;
  --text: #5d6677;
  --muted: #8a93a3;
  --bg-soft: #f3f4f6;
  --white: #fff;
  --shadow: 0 18px 40px -18px rgba(13, 30, 61, .35);
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='%23ffffff' fill-opacity='.035'%3E%3Cpath d='m60 10 13 27 30 4-22 21 5 30-26-14-27 14 5-30-22-21 30-4z'/%3E%3Cpath d='m190 120 9 19 21 3-15 15 4 21-19-10-19 10 4-21-15-15 21-3z'/%3E%3Cpath d='m70 180 6 12 13 2-10 9 3 13-12-6-12 6 3-13-10-9 13-2z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
p { margin: 0 0 1.2em; }
.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.section { padding: 110px 0; }
.i { width: 15px; height: 15px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border: 2px solid transparent; border-radius: 0;
  font-family: var(--body); font-weight: 700; font-size: 15px; line-height: 1.2;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { font-size: 14px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-2); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--navy); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Eyebrow / decor ---------- */
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--head); font-size: 14px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--red);
}
.eyebrow--light { color: #fff; opacity: .9; }
.bar { display: block; width: 50px; height: 3px; background: var(--red); margin-top: 18px; }

.check {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
  box-shadow: 0 0 0 5px rgba(11, 68, 160, .12);
}
.check--light { background-color: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%230b44a0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Photo slots (placeholder dacă lipsește imaginea) ---------- */
.photo-slot {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1d3a6e, #0d1e3d);
  background-image: var(--stars), linear-gradient(135deg, #1d3a6e, #0d1e3d);
}
.photo-slot img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.photo-slot__label {
  position: absolute; inset: auto 0 0 0; padding: 18px; z-index: 0;
  font-family: var(--head); color: rgba(255,255,255,.5); font-size: 18px; letter-spacing: 1px; text-transform: uppercase; text-align: center;
}
.photo-slot--portrait { aspect-ratio: 683 / 1024; }
.photo-slot--doc { aspect-ratio: 724 / 1024; }
.photo-slot--fill { position: absolute; inset: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-2); color: rgba(255,255,255,.8); font-size: 14px; border-top: 3px solid var(--red); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.topbar__info { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.topbar__info li, .topbar__social { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 18px rgba(13,30,61,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__star { width: 34px; height: 34px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; }
.logo__star svg { width: 22px; height: 22px; }
.logo__text { font-family: var(--head); font-size: 25px; font-weight: 500; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; line-height: 1; }
.logo__text strong { font-weight: 700; }
.logo--light .logo__text { color: #fff; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  padding: 8px 14px; font-weight: 500; font-size: 15px; color: var(--ink); border: 1px solid transparent;
}
.nav a:not(.btn):hover { color: var(--red); }
.nav a.is-active:not(.btn) { border-color: var(--blue); color: var(--red); }
.nav__cta { margin-left: 12px; padding: 12px 22px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--blue); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--stars), radial-gradient(ellipse at 70% 30%, #1f4787 0%, var(--navy) 55%, var(--navy-2) 100%);
}
.hero::after { /* dungi subtile */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-12deg, transparent 0 70px, rgba(255,255,255,.025) 70px 140px);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 40px; padding-top: 70px; }
.hero__text { padding-bottom: 90px; align-self: center; }
.hero h1 {
  color: #fff; font-size: clamp(42px, 6.2vw, 74px); font-weight: 600; text-transform: uppercase; line-height: 1.05; margin-bottom: 22px;
}
.hero p { font-size: 18px; color: rgba(255,255,255,.88); max-width: 560px; margin-bottom: 34px; }
.hero__photo { align-self: end; }
.hero__photo .photo-slot { max-width: 420px; margin-left: auto; background: transparent; background-image: none; }
.hero__photo .photo-slot::before { /* placeholder silueta */
  content: ""; position: absolute; inset: 12% 10% 0; border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
}

/* ---------- About / Scrisoare ---------- */
.about { position: relative; }
.about__bg { position: absolute; top: 0; right: 0; width: 40%; height: 78%; background: var(--bg-soft); }
.about__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.framed { position: relative; width: 100%; padding: 0 22px 22px 0; max-width: 440px; }
.framed::before { content: ""; position: absolute; top: -22px; left: 22px; right: 0; bottom: 0; background: var(--blue); }
.framed .photo-slot { position: relative; box-shadow: var(--shadow); background-color: #fff; }
.about__text h2 { font-size: clamp(32px, 4vw, 46px); }
.values { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 16px; }
.values li { display: flex; align-items: center; gap: 16px; font-weight: 500; color: var(--ink); }

/* ---------- Mission ---------- */
.mission { position: relative; background: var(--navy); overflow: hidden; }
.mission__media { position: absolute; inset: 0; right: 40%; }
.mission__media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(13,30,61,.25), rgba(13,30,61,.65)); }
.mission__inner { position: relative; z-index: 3; display: flex; justify-content: flex-end; }
.mission__panel { background: var(--blue); color: rgba(255,255,255,.85); padding: 80px 56px; width: min(560px, 100%); }
.mission__panel h2 { color: #fff; }
.features { list-style: none; padding: 0; margin: 10px 0 36px; display: grid; gap: 24px; }
.features li { display: flex; gap: 20px; }
.features h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.features p { margin: 0; font-size: 15px; }

/* ---------- Plan ---------- */
.plan { background: #fff; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; background: #fff; padding: 44px 30px 40px; text-align: center;
  box-shadow: 0 10px 34px -12px rgba(13,30,61,.18); border-bottom: 3px solid transparent;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: var(--shadow); }
.card__icon {
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%; border: 2px solid var(--red);
  display: grid; place-items: center; transition: background .3s;
}
.card__icon svg { width: 32px; height: 32px; fill: var(--red); transition: fill .3s; }
.card:hover .card__icon { background: var(--red); }
.card:hover .card__icon svg { fill: #fff; }
.card h3 { font-size: 23px; margin: 0; }

/* ---------- Countdown ---------- */
.countdown { background: var(--stars), var(--navy); color: #fff; padding: 70px 0; }
.countdown[hidden] { display: none; }
.countdown__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.countdown h2 { color: #fff; margin: 0; }
.countdown__clock { display: flex; gap: 14px; }
.countdown__clock div { min-width: 96px; padding: 16px 10px; text-align: center; background: rgba(255,255,255,.07); border-bottom: 3px solid var(--red); }
.countdown__clock strong { display: block; font-family: var(--head); font-size: 44px; font-weight: 500; line-height: 1.1; }
.countdown__clock span { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; opacity: .8; }

/* ---------- Join / Contact ---------- */
.join { background: var(--bg-soft); }
.join__box {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center;
  padding: 64px 60px; color: rgba(255,255,255,.85);
  background: var(--stars), linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%);
}
.join__box h2 { color: #fff; }
.join__box p { margin: 0; max-width: 560px; }
.join__actions { display: grid; gap: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--stars), var(--navy); color: rgba(255,255,255,.78); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 50px; padding-top: 80px; padding-bottom: 60px; }
.footer h3 { color: #fff; font-size: 22px; margin: 26px 0 12px; }
.footer h4 { color: #fff; font-size: 21px; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a { position: relative; padding-left: 16px; }
.footer__links a::before { content: ""; position: absolute; left: 0; top: .55em; border: 4px solid transparent; border-left-color: var(--sky); }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .i { margin-top: 5px; color: var(--sky); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .25s; }
.social a:hover { background: var(--red); }
.social svg { width: 17px; height: 17px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 14px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 10px 20px 22px; box-shadow: 0 16px 30px -10px rgba(13,30,61,.25);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: .25s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { padding: 13px 4px; border: 0; border-bottom: 1px solid #eceef2; }
  .nav a.is-active:not(.btn) { border-color: #eceef2; }
  .nav__cta { margin: 16px 0 0; }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .hero__inner, .about__inner, .section-head, .join__box, .footer__grid { grid-template-columns: 1fr; }
  .hero__inner { gap: 10px; padding-top: 60px; }
  .hero__text { padding-bottom: 20px; }
  .hero__photo .photo-slot { margin: 0 auto; max-width: 340px; }
  .about__inner { gap: 60px; }
  .about__bg { display: none; }
  .framed { width: 100%; margin: 22px auto 0; }
  .section-head { gap: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .mission__media { position: relative; inset: auto; height: 340px; }
  .mission__inner { padding: 0; }
  .mission__panel { width: 100%; padding: 60px 20px; }
  .join__box { padding: 48px 28px; gap: 30px; }
  .footer__grid { gap: 36px; padding-top: 60px; }
}
@media (max-width: 600px) {
  .hide-sm { display: none !important; }
  .topbar__social { font-size: 0; gap: 0; }
  .logo__text { font-size: 21px; }
  .cards { grid-template-columns: 1fr; }
  .countdown__clock { width: 100%; gap: 8px; }
  .countdown__clock div { flex: 1; min-width: 0; }
  .countdown__clock strong { font-size: 32px; }
  .btn-row .btn { width: 100%; }
}
