:root {
  /* Palette sampled from the hero video's own grade:
     desaturated teal / sage / charcoal, near-white highlights. */
  --bg-deep: #10150f;      /* darkest charcoal-green */
  --bg-panel: #171d18;     /* section panels */
  --bg-panel-2: #10140f;   /* alt section */
  --teal: #556b69;         /* muted teal from the footage */
  --sage: #aab7b0;         /* light sage grey */
  --accent: #f2a03c;       /* warm amber — the pop, complements the cool grade */
  --accent-hover: #ffb659;
  --text: #f1f5f0;         /* near-white highlight from the footage */
  --text-dim: rgba(241, 245, 240, 0.72);
  --text-faint: rgba(241, 245, 240, 0.48);
  --border: rgba(241, 245, 240, 0.12);
  --border-strong: rgba(241, 245, 240, 0.22);
  --header-h: 84px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* ---------- Video background ---------- */
.video-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg-deep); }
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in;
  will-change: opacity;
}
.bg-video.is-ready { opacity: 1; }

/* Fallback grade shown before the video paints (matches the footage tones). */
.video-fallback {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 700px at 25% 20%, rgba(85, 107, 105, 0.45), transparent 60%),
    linear-gradient(180deg, #1b221c 0%, #10150f 60%, #0b0f0a 100%);
}

/* Tint + vignette so the text stays readable and the grade reads warm-cool. */
.video-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 16, 11, 0.58) 0%, rgba(12, 16, 11, 0.34) 38%, rgba(10, 13, 9, 0.90) 100%),
    linear-gradient(90deg, rgba(8, 11, 7, 0.86) 0%, rgba(8, 11, 7, 0.50) 42%, rgba(10, 13, 9, 0.08) 72%),
    radial-gradient(120% 120% at 50% 40%, transparent 52%, rgba(6, 8, 5, 0.58) 100%);
}
/* Faint amber wash to marry the accent with the footage. */
.video-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 78% 78%, rgba(242, 160, 60, 0.10), transparent 60%);
  mix-blend-mode: screen;
}

.video-grain {
  position: absolute; inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: baseline; gap: 9px; }
.brand-mark {
  font-weight: 800; font-size: 22px; letter-spacing: 0.04em;
  color: var(--accent);
}
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: 0.16em; }

.site-nav { display: flex; gap: clamp(22px, 4vw, 44px); font-weight: 500; font-size: 15px; }
.site-nav a { padding: 6px 2px; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
main { position: relative; z-index: 1; }
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 24px) clamp(20px, 8vw, 96px) 80px;
}
/* Targeted dark scrim behind the hero text so it stays legible even where
   the video runs bright/hazy. Left-anchored so it doesn't dull the footage. */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 8, 4, 0.92) 0%, rgba(5, 8, 4, 0.72) 34%, rgba(5, 8, 4, 0.30) 58%, rgba(5, 8, 4, 0) 78%),
    linear-gradient(180deg, rgba(5, 8, 4, 0.10) 0%, rgba(5, 8, 4, 0.42) 100%);
}
.hero-inner { max-width: 780px; }
.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 24px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.hero-sub {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.5;
  max-width: 54ch;
  margin: 0 0 40px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 20px rgba(0, 0, 0, 0.7);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--accent); color: #1a1205; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Primary hero CTA — extra pop: lift, amber glow, arrow slide, shine sweep. */
.btn-cta { position: relative; overflow: hidden; }
.btn-cta .btn-arrow { transition: transform 0.25s ease; }
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(242, 160, 60, 0.75);
}
.btn-cta:hover .btn-arrow { transform: translateX(5px); }
.btn-cta::before {
  content: "";
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.btn-cta:hover::before { left: 140%; }

/* Persistent floating "Cere o ofertă" — bottom-right, smaller, always visible. */
.floating-cta {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.01em;
  color: #1a1205; background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 160, 60, 0.35);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
  animation: cta-pulse 3.2s ease-in-out infinite;
}
.floating-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -8px rgba(242, 160, 60, 0.7), 0 0 0 1px rgba(242, 160, 60, 0.5);
}
.floating-cta svg { transition: transform 0.22s ease; }
.floating-cta:hover svg { transform: translateX(4px); }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 160, 60, 0.35); }
  50% { box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(242, 160, 60, 0.12); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 8vw, 96px);
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}
.section-alt { background: var(--bg-panel-2); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-eyebrow {
  margin: 0 0 12px; font-size: 12px; letter-spacing: 0.34em;
  color: var(--accent); text-transform: uppercase; font-weight: 700;
}
.section-title {
  font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.12;
  letter-spacing: -0.01em; margin: 0 0 48px;
}
.section-lead {
  font-size: 1.05rem; color: var(--text-dim); max-width: 60ch;
  margin: -32px 0 40px;
}

/* ---------- Services ---------- */
.services {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service {
  padding: 36px 32px;
  background: var(--bg-panel);
  transition: background 0.2s ease;
  position: relative;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform 0.25s ease;
}
.service:hover { background: #1d241e; }
.service:hover::before { transform: scaleY(1); }
.service h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin: 0 0 12px; max-width: 40ch; }
.service p { margin: 0; color: var(--text-dim); font-size: 0.98rem; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.contact-list li {
  padding: 26px; border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}
.contact-list li:hover { border-color: var(--border-strong); }
.contact-label {
  display: block; font-size: 11px; letter-spacing: 0.28em;
  color: var(--text-faint); text-transform: uppercase; margin-bottom: 10px;
}
.contact-list a { font-size: 1.18rem; font-weight: 500; transition: color 0.15s ease; }
.contact-list a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  padding: 26px clamp(20px, 8vw, 96px);
  background: #0b0f0a; border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: 13px; letter-spacing: 0.03em;
}
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .brand-name { font-size: 15px; letter-spacing: 0.12em; }
  .brand-mark { font-size: 18px; }
  .site-nav { gap: 20px; font-size: 14px; }
  .hero { padding-left: 22px; padding-right: 22px; }
  .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video { transition: none; }
  .floating-cta { animation: none; }
  .btn-cta::before { display: none; }
}
