:root {
  --yellow: #f5c400;
  --yellow-bright: #ffe566;
  --yellow-glow: rgba(245, 196, 0, 0.45);
  --slate: #2f3d4a;
  --slate-deep: #1a242e;
  --sky: #f4f8fc;
  --white: #ffffff;
  --blue-eu: #003399;
  --text: #1e2a35;
  --muted: #5c6b78;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px rgba(26, 36, 46, 0.12);
  --eu-bar-h: 72px;
  --site-top-h: 120px;
  --nav-h: 76px;
  --font-display: "Orbitron", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--sky);
  line-height: 1.65;
}

body.has-eu-bar {
  padding-top: var(--site-top-h, 120px);
}

/* Conținut scrollabil (pe mobil e singurul element care dă scroll) */
.site-scroll {
  display: block;
}

/* Bara UE + meniu — fix deasupra conținutului */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  padding-top: env(safe-area-inset-top, 0);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

/* EU bar — relativ în .site-top; fixed doar dacă lipsește wrapperul (HTML vechi) */
.eu-bar {
  position: relative;
  min-height: var(--eu-bar-h);
  background: #fff;
  border-bottom: 1px solid #dde5ee;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1rem;
}

body.has-eu-bar > .eu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.has-eu-bar > .site-header {
  position: fixed;
  top: var(--eu-bar-h);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
}

.eu-bar__logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.eu-bar__logos img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.eu-bar__center {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--slate);
  font-weight: 600;
  padding: 0 0.5rem;
}

.eu-bar__link {
  flex: 0 1 280px;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--blue-eu);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.eu-bar__link:hover {
  color: #001f66;
}

/* Main nav */
.site-header {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(47, 61, 74, 0.08);
}

.site-top .eu-bar,
.site-top .site-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: auto;
  box-shadow: none;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 60px;
  width: auto;
}

.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--slate-deep);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-desktop a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
  transition: background 0.2s, color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  background: var(--yellow);
  color: var(--slate-deep);
}

.nav-cta {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-bright));
  color: var(--slate-deep) !important;
  box-shadow: 0 8px 24px var(--yellow-glow);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--slate);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.25rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 0 1rem;
  gap: 0.25rem;
}

.nav-mobile a {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.nav-mobile a:hover,
.nav-mobile a.is-active {
  background: rgba(245, 196, 0, 0.25);
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(245, 196, 0, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(47, 61, 74, 0.08), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--sky) 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(245, 196, 0, 0.5);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--slate-deep);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
  text-shadow: 0 0 40px var(--yellow-glow);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--yellow), #ffdc4d);
  color: var(--slate-deep);
  box-shadow: 0 12px 32px var(--yellow-glow);
}

.btn-secondary {
  background: var(--slate);
  color: #fff;
  box-shadow: 0 12px 32px rgba(47, 61, 74, 0.25);
}

.hero-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--yellow), transparent 40%, var(--slate) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.35;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--sky);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--slate-deep);
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
  color: var(--slate-deep);
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid rgba(47, 61, 74, 0.08);
  box-shadow: 0 8px 30px rgba(26, 36, 46, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(26, 36, 46, 0.12);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-bright));
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--slate-deep);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-dark {
  background: linear-gradient(160deg, var(--slate-deep) 0%, var(--slate) 100%);
  color: #e8eef4;
}

.section-dark .section-head h2,
.section-dark h3 {
  color: #fff;
}

.section-dark .section-head p {
  color: #b8c5d1;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.feature-list li {
  padding: 0.65rem 0 0.65rem 1.75rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 0.65rem;
  top: 0.85rem;
}

.cta-band {
  background: linear-gradient(90deg, var(--yellow) 0%, var(--yellow-bright) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 16px 48px var(--yellow-glow);
}

.cta-band h2 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--slate-deep);
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0.35rem 0 0;
  color: var(--slate);
}

/* Page hero inner */
.page-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, #fff, var(--sky));
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
  color: var(--slate-deep);
}

.page-hero p {
  color: var(--muted);
  max-width: 42rem;
  margin: 0;
}

.content-block {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(47, 61, 74, 0.08);
  box-shadow: 0 8px 30px rgba(26, 36, 46, 0.05);
}

.content-block h2,
.content-block h3 {
  color: var(--slate-deep);
  margin-top: 0;
}

.timeline {
  border-left: 3px solid var(--yellow);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.timeline-item {
  margin-bottom: 1.25rem;
}

.timeline-item strong {
  font-family: var(--font-display);
  color: var(--slate-deep);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info-card {
  background: var(--slate-deep);
  color: #e8eef4;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info-card a {
  color: var(--yellow-bright);
  text-decoration: underline;
}

.contact-info-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-info-card li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #d0dae4;
  border-radius: 12px;
  font: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-glow);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-msg {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: none;
}

.form-msg.is-visible {
  display: block;
}

.form-msg.success {
  background: #e8f8ef;
  color: #1a6b3a;
}

.form-msg.error {
  background: #fdecec;
  color: #9b2c2c;
}

/* Footer */
.site-footer {
  background: var(--slate-deep);
  color: #b8c5d1;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.25fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-legal p {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-legal-meta {
  opacity: 0.85;
  font-size: 0.82rem !important;
}

.company-dl {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.company-dl dt {
  font-weight: 600;
  color: var(--yellow-bright);
  margin-top: 0.65rem;
}

.company-dl dt:first-child {
  margin-top: 0;
}

.company-dl dd {
  margin: 0.15rem 0 0;
  opacity: 0.92;
}

.contact-legal-sep {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 1.5rem 0 1rem;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* EU Popup */
.eu-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 22, 30, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.eu-popup-overlay.is-open {
  display: flex;
}

.eu-popup {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: popIn 0.35s ease;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.eu-popup__header {
  background: #003399;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.eu-popup__header img {
  height: 52px;
  width: auto;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  object-fit: contain;
}

.eu-popup__body {
  padding: 1.5rem;
}

.eu-popup__body h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--blue-eu);
}

.eu-popup__body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.eu-popup__notice {
  border-left: 4px solid var(--blue-eu);
  padding: 0.85rem 1rem;
  background: #f0f4fa;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
}

.eu-popup__notice a {
  color: var(--blue-eu);
  text-decoration: underline;
}

.eu-popup__btn {
  width: 100%;
  padding: 0.95rem;
  border: 0;
  border-radius: 12px;
  background: var(--blue-eu);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.eu-popup__btn:hover {
  background: #002266;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /*
   * iOS Safari: scroll doar în .site-scroll, headerul rămâne fix.
   */
  html.has-scroll-root,
  html.has-scroll-root body {
    height: 100%;
    overflow: hidden;
  }

  html.has-scroll-root body.has-eu-bar {
    padding-top: 0;
  }

  html.has-scroll-root #site-scroll {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-top: var(--site-top-h, 120px);
  }

  html.has-scroll-root .site-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
  }

  .eu-bar {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    min-height: 0;
  }

  .site-header {
    background: #fff;
  }

  .eu-bar__logos {
    gap: 0.35rem;
  }

  .eu-bar__logos img {
    height: 30px;
  }

  .eu-bar__center {
    flex: 1;
    min-width: 0;
    text-align: left;
    font-size: 0.56rem;
    line-height: 1.25;
    padding: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  /* Textul lung MIP e în popup; pe mobil nu mai împinge logo-ul */
  .eu-bar__link {
    display: none;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-mobile.is-open {
    display: flex;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .eu-bar {
    padding: 0.3rem 0.45rem;
  }

  .eu-bar__logos img {
    height: 26px;
  }

  .eu-bar__center {
    font-size: 0.52rem;
  }
}
