@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Montserrat:wght@400;500;600&display=swap');

:root {
  --color-accent: #0e33fe;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --bg: #07070b;
  --panel: #0f0f16;
  --panel-2: #15151f;
  --text: #ffffff;
  --text-muted: #9c9ca8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --glow: rgba(14, 51, 254, 0.32);
  --accent: var(--color-accent);
  --accent-soft: rgba(14, 51, 254, 0.12);
}

[data-theme='light'] {
  --bg: #fafafc;
  --panel: #ffffff;
  --panel-2: #f2f2f6;
  --text: #111114;
  --text-muted: #3d3d3d;
  --border: rgba(0, 0, 0, 0.09);
  --shadow: 0 24px 60px -34px rgba(16, 20, 50, 0.22);
  --glow: rgba(14, 51, 254, 0.18);
  --accent-soft: rgba(14, 51, 254, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.eyebrow { font-size: 12.5px; font-weight: 600; color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 16px 36px -12px var(--glow); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--panel); }
.btn-outline:hover { transform: translateY(-2px); background: var(--panel-2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -12px var(--glow); color: #fff; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* HEADER — identic cu src/layouts/Layout.astro */
.page-shell { position: relative; overflow-x: hidden; width: 100%; }
.glow-bg {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-30%);
  width: 900px;
  height: 700px;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.85;
  z-index: -1;
}
.site-header { position: sticky; top: 0; z-index: 100; padding: 18px 24px 0; }
.header-inner {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 22px;
}
.logo { grid-column: 1; display: flex; align-items: center; gap: 11px; font-family: var(--font-heading); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--text); }
.logo-img { height: 44px; width: auto; display: block; }
.logo-img-light { display: none; }
.logo-img-dark { display: block; }
[data-theme='light'] .logo-img-light { display: block; }
[data-theme='light'] .logo-img-dark { display: none; }
.main-nav { grid-column: 2; justify-self: center; display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 500; }
.main-nav a.nav-link, .dropdown-toggle { padding: 9px 14px; border-radius: 999px; transition: background 0.22s; color: var(--text); }
.main-nav a.nav-link:hover, .dropdown-toggle:hover { background: var(--panel); }

.nav-dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 6px; background: transparent; border: 0; font-family: var(--font-body); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.dropdown-toggle i { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-dropdown.open .dropdown-toggle i { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 50;
}
.dropdown-menu a { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; color: var(--text); white-space: nowrap; }
.dropdown-menu a:hover { background: var(--panel-2); color: var(--accent); }
.nav-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@media (min-width: 861px) {
  .nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
}

.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.pill-btn { border: 1px solid var(--border); background: transparent; color: var(--text); font-family: var(--font-body); font-weight: 600; font-size: 11.5px; letter-spacing: 0.05em; padding: 10px 13px; border-radius: 999px; cursor: pointer; transition: background 0.22s; }
.pill-btn:hover { background: var(--panel); }
.icon-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; padding: 0; }
.icon-btn i { width: 16px; height: 16px; }
.cta-small { padding: 12px 20px; font-size: 13.5px; }

.menu-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.menu-toggle i { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr auto; padding: 10px 12px 10px 16px; }
  .main-nav, .header-actions { display: none; grid-column: 1 / -1; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 2px; margin: 10px 0 0; order: 3; }
  .main-nav a.nav-link, .dropdown-toggle { padding: 12px 14px; }
  .nav-dropdown { position: static; }
  .dropdown-toggle { width: 100%; pointer-events: none; }
  .dropdown-toggle i { display: none; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 14px;
    min-width: 0;
  }
  .header-actions { flex-direction: column; align-items: stretch; gap: 8px; margin: 10px 0 0; order: 4; }
  .header-actions .lang-btn, .header-actions .icon-btn { width: 100%; }
  .header-actions .icon-btn { flex-direction: row; gap: 8px; }
  .cta-small { text-align: center; }
  .menu-toggle { display: flex; }
  .header-inner.menu-open .main-nav, .header-inner.menu-open .header-actions { display: flex; }
}

.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); padding: 72px 0 26px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb i { width: 14px; height: 14px; }
.breadcrumb span { color: var(--text); }

.blog-hero { padding: 72px 0 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.blog-hero .eyebrow { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.blog-hero h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.03em; max-width: 20ch; }
.blog-hero p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--text-muted); max-width: 52ch; }

.category-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 32px; }
.category-pill { border: 1px solid var(--border); color: var(--text-muted); font-size: 12.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px; }
.category-pill.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.featured-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 18px;
  transition: transform 0.28s, background 0.28s;
}
.featured-card:hover { transform: translateY(-4px); background: var(--panel-2); }
.featured-thumb, .card-thumb {
  aspect-ratio: 16/10;
  background: radial-gradient(120% 90% at 20% 0%, var(--panel-2), var(--panel) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.featured-body { padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-content: center; }
.featured-meta, .card-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); }
.tag-pill { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 5px 11px; font-weight: 600; }
.featured-body h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.featured-body p { margin: 0; font-size: 14.5px; line-height: 1.66; color: var(--text-muted); max-width: 56ch; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; padding-bottom: 20px; }
.post-card { background: var(--panel); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.28s, background 0.28s; }
.post-card:hover { transform: translateY(-6px); background: var(--panel-2); color: var(--text); }
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 11px; align-items: flex-start; width: 100%; }
/* Titlu/extras cu înălțime fixă (line-clamp), ca fiecare card să aibă aceeași formă indiferent
   de lungimea textului sau dacă articolul are sau nu extras completat. */
.post-card-body h3 {
  font-size: 17.5px; line-height: 1.3; letter-spacing: -0.01em; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(1.3em * 2); width: 100%;
}
.post-card-body p {
  margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(1.6em * 2); width: 100%;
}
.card-meta .tag-pill { padding: 4px 10px; font-size: 12px; }

.empty-state { color: var(--text-muted); padding: 40px 0; }

/* FAQ accordion (identic cu paginile Astro de servicii) */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px,100%),1fr)); gap: 12px; align-items: start; }
.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; height: fit-content; }
.faq-q { width: 100%; border: 0; background: transparent; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; cursor: pointer; font-family: var(--font-heading); font-weight: 500; font-size: 16.5px; text-align: left; }
.faq-icon { width: 26px; height: 26px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.faq-a { display: none; padding: 0 22px 22px; }
.faq-a p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--text-muted); }
.faq-item.open .faq-a { display: block; }

/* ARTICLE */
.post-title-block { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-bottom: 34px; }
.post-title-block h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: pretty; }
.post-cover-wrap { max-width: 1000px; margin: 0 auto 0; padding: 0 24px; }
.post-cover { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 26px; border: 1px solid var(--border); }

.post-content { max-width: 680px; margin: 44px auto 0; padding: 0 24px; font-size: 16.5px; line-height: 1.8; color: var(--text-muted); }
.post-content p { margin: 0 0 20px; }
.post-content h2 { font-size: 26px; letter-spacing: -0.02em; color: var(--text); margin: 38px 0 16px; }
.post-content h3 { font-size: 20px; letter-spacing: -0.01em; color: var(--text); margin: 28px 0 12px; }
.post-content ul, .post-content ol { margin: 0 0 20px; padding-left: 22px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-family: var(--font-heading); font-weight: 500; font-size: 19px; line-height: 1.5; color: var(--text); }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content img { width: 100%; border-radius: 14px; margin: 8px 0 24px; border: 1px solid var(--border); }
.post-content strong { color: var(--text); }

.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 13.5px; color: var(--text-muted); }

/* FOOTER — identic cu src/layouts/Layout.astro */
.site-footer { padding: 72px 0 40px; margin-top: 80px; }
.newsletter-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px 30px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  align-items: center;
}
.nl-title { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.nl-sub { display: block; font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }
.nl-form { display: flex; background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px; gap: 6px; }
.nl-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-family: var(--font-body); font-size: 14.5px; padding: 12px 16px; outline: none; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 36px; padding-bottom: 36px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: var(--text-muted); max-width: 32ch; margin: 14px 0 0; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.footer-col .col-title { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--accent); }
.legal-banners { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 24px; margin-bottom: 20px; }
.legal-banners img { max-height: 46px; width: auto; display: block; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
.legal-links a { color: var(--text-muted); }
.legal-links a:hover { color: var(--accent); }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a { width: 36px; height: 36px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text); transition: background 0.22s, color 0.22s, transform 0.22s; }
.social-links a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.social-links i { width: 16px; height: 16px; }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 999;
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 480px) {
  .wa-float { right: 14px; bottom: 14px; width: 70px; height: 70px; }
}

/* CTA — identic cu secțiunea de contact din paginile Astro (index, servicii, /contact) */
.contact-section { padding: 76px 24px 0; }
.contact-box { border-radius: clamp(24px,3vw,34px); padding: clamp(32px,4vw,52px) clamp(22px,3.6vw,46px); background: linear-gradient(150deg, var(--accent), #2a16c9 70%); box-shadow: 0 40px 90px -40px var(--glow); color: #fff; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px,100%),1fr)); gap: clamp(32px,4vw,56px); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.eyebrow-light { font-size: 12.5px; font-weight: 600; opacity: .82; }
.contact-copy h2 { font-size: clamp(30px,3.6vw,46px); line-height: 1.06; letter-spacing: -.035em; margin: 0; max-width: 20ch; color: #fff; }
.contact-copy p { margin: 0; font-size: 16px; line-height: 1.7; max-width: 40ch; opacity: .88; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-wa { background: #fff; color: var(--accent); }
.contact-tel { border: 1px solid rgba(255,255,255,.45); color: #fff; background: transparent; }
.contact-badges { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; opacity: .85; }
.contact-badges span { display: flex; align-items: center; gap: 8px; }
.contact-badges i { width: 15px; height: 15px; }
.contact-form { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); border-radius: 24px; padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; backdrop-filter: blur(10px); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px,100%),1fr)); gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; font-weight: 600; color: #fff; opacity: .85; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12); border-radius: 14px; color: #fff; font-family: var(--font-body); font-size: 14.5px; padding: 13px 15px; outline: none; resize: vertical; }
.contact-form select option { color: #111; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.7); }
.contact-submit { background: #fff; color: var(--accent); justify-content: center; }
.form-note { font-size: 12px; opacity: .78; line-height: 1.5; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* Notificări succes/eroare trimitere formular */
.toast-stack { position: fixed; top: 104px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent; box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; line-height: 1.5; color: #fff; animation: toast-in 0.28s ease; }
.toast.success { background: #16a34a; border-color: #22c55e; }
.toast.error { background: #dc2626; border-color: #ef4444; }
.toast-icon { width: 20px; height: 20px; flex: none; margin-top: 1px; color: #fff; }
.toast-close { margin-left: auto; background: none; border: 0; color: #fff; opacity: 0.8; cursor: pointer; flex: none; line-height: 1; font-size: 16px; padding: 0 0 0 8px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .toast-stack { left: 16px; right: 16px; top: 96px; max-width: none; }
}
