
/* =========================
   Baza tipografica si layout
   ========================= */
:root {
  --bg: #0b1020;
  --ink: #0b1220;
  --muted: #6b7890;
  --brand: #2563eb;
  --brand2: #8b5cf6;
  --brand3: #22d3ee;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: #f6f7fb;
  text-rendering: optimizeLegibility;
}

/* Container cu padding lateral pe mobil */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px; /* asigura spatiu pe mobil */
}

/* =========================
   Gradient background "blobs" profesionist
   ========================= */
.gradient-bg {
  position: relative;
  overflow-x: clip;
}
.gradient-bg::before,
.gradient-bg::after {
  content: "";
  position: fixed;
  inset: auto -15vmax 10vh auto;
  width: 60vmax; height: 60vmax;
  pointer-events: none;
  z-index: -2;
  filter: blur(70px) saturate(140%);
  opacity: 0.5;
  background:
    radial-gradient(closest-side, rgba(37,99,235,0.33), transparent 60%),
    radial-gradient(closest-side, rgba(139,92,246,0.28), transparent 62%),
    radial-gradient(closest-side, rgba(34,211,238,0.24), transparent 64%);
  animation: float1 22s ease-in-out infinite alternate;
}
.gradient-bg::after {
  inset: -10vh auto auto -15vmax;
  width: 70vmax; height: 70vmax;
  opacity: 0.45;
  filter: blur(80px) saturate(150%);
  animation: float2 26s ease-in-out infinite alternate;
}
@keyframes float1 {
  0% { transform: translate3d(-4vmax, 0, 0) rotate(0deg); }
  100% { transform: translate3d(5vmax, 2vmax, 0) rotate(8deg); }
}
@keyframes float2 {
  0% { transform: translate3d(2vmax, 0, 0) rotate(0deg); }
  100% { transform: translate3d(-6vmax, -3vmax, 0) rotate(-6deg); }
}

/* Header */
.site-header {
  background: rgba(14, 19, 48, 0.8);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: 0.4px; }
.nav a {
  color: #e2e8f0;
  text-decoration: none;
  margin-left: 16px;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
}
.nav a:hover { background: rgba(255,255,255,0.10); }

/* Burger mobil */
.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  background: transparent; color: #fff; cursor: pointer;
}
@media (min-width: 880px) { .burger { display: none; } }
@media (max-width: 879px) {
  .nav { display: none; }
  body.nav-open .nav {
    display: flex;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(14, 19, 48, 0.98);
    padding: 12px 16px; gap: 10px;
    flex-direction: column;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
}

/* Hero */
.hero { padding: 56px 0; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.cta-row { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(2,8,20,0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(2,8,20,0.16); }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  font-weight: 700;
}

/* Cards + grid */
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 36px rgba(2,8,20,0.08);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px -1px auto auto;
  width: 180px; height: 180px;
  background: radial-gradient(closest-side, rgba(59,130,246,0.18), transparent 70%),
              radial-gradient(closest-side, rgba(139,92,246,0.14), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.grid-3 {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 740px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Lists, notes */
.bullets { padding-left: 18px; }
.more { color: var(--brand); text-decoration: none; font-weight: 800; }
.note { background: #eef2ff; border: 1px solid #dbeafe; padding: 12px 14px; border-radius: 12px; margin: 16px 0; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 16px; }

/* Contact grid si mapa */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 840px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 10px; }

.map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(2,8,20,0.08);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: saturate(105%) contrast(102%);
}

/* Footer */
.site-footer {
  margin-top: 34px;
  background: linear-gradient(90deg, #0e1330, #0b1024);
  color: #cbd5e1;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.foot-nav a { color: #cbd5e1; text-decoration: none; margin-left: 12px; }
.foot-nav a:hover { text-decoration: underline; }

/* Headings */
h1 { font-size: 1.95rem; margin: 18px 0; letter-spacing: .2px; }
h2 { font-size: 1.42rem; margin: 14px 0; letter-spacing: .2px; }
@media (min-width: 880px) {
  h1 { font-size: 2.26rem; }
  h2 { font-size: 1.58rem; }
}
.muted { color: var(--muted); }


/* ==== Design refinements 2025-08: professional polish, gutters on mobile, focus states ==== */
:root {
  --gutter: 22px;
}
/* Stronger container gutters on very small screens */
@media (max-width: 480px) {
  .container { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* Ensure header has side padding even if container spacing changes */
.header-inner { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Ensure hero text block never hugs the edges on mobile */
@media (max-width: 540px) {
  .hero { padding-top: 50px; padding-bottom: 44px; }
}

/* Buttons focus/hover for accessibility */
.btn:focus-visible, .btn-ghost:focus-visible, .nav a:focus-visible, .more:focus-visible {
  outline: 2px solid rgba(37,99,235,0.6);
  outline-offset: 2px;
  border-radius: 12px;
}

/* More subtle card borders to look pro */
.card { border: 1px solid rgba(2,8,20,0.06); }

/* Refined typography for readability */
body { letter-spacing: .1px; }
h1, h2 { line-height: 1.25; }

/* Footer contacts layout */
.footer-contacts {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.footer-contacts a { color: #cbd5e1; text-decoration: none; }
.footer-contacts a:hover { text-decoration: underline; }
