/* =========================================================
   247deblocari.ro — stiluri suplimentare (producție 2026)
   ========================================================= */

:root {
  --brand-blue: #2563eb;
  --brand-blue-bright: #3b82f6;
  --brand-amber: #f59e0b;
  --brand-amber-hot: #fbbf24;
  --surface: #09090b;
  --surface-elevated: #18181b;
  --glass: rgba(24, 24, 27, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #fafafa;
  --muted: #a1a1aa;
  --success: #22c55e;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.25);
  --shadow-amber: 0 10px 40px rgba(245, 158, 11, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Atmosferă fundal — nu flat */
.page-atmosphere {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(245, 158, 11, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 60%, rgba(37, 99, 235, 0.1), transparent 45%),
    #09090b;
}

/* Tipografie expresivă */
.font-display {
  font-family: "Segoe UI", Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

/* Glassmorphism */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.glass-light {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header sticky state */
#site-header {
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#site-header.header-scrolled {
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Status pulse */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Hero motion */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtle-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-fade-up {
  animation: fade-up 0.7s ease both;
}

.animate-fade-up-delay-1 {
  animation: fade-up 0.7s ease 0.12s both;
}

.animate-fade-up-delay-2 {
  animation: fade-up 0.7s ease 0.24s both;
}

.animate-float {
  animation: subtle-float 5s ease-in-out infinite;
}

/* CTA butoane */
.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  color: #18181b;
  font-weight: 700;
  box-shadow: var(--shadow-amber);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 44px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93c5fd;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(59, 130, 246, 0.7);
  transform: translateY(-2px);
}

.btn-call-header {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-call-header:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Bento cards */
.bento-card {
  background: linear-gradient(160deg, rgba(39, 39, 42, 0.9), rgba(24, 24, 27, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.bento-card .icon-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Hero visual plane */
.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: 0;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(9, 9, 11, 0.92) 0%,
    rgba(9, 9, 11, 0.55) 45%,
    rgba(9, 9, 11, 0.25) 100%
  );
  pointer-events: none;
}

@media (max-width: 1023px) {
  .hero-visual::after {
    background: linear-gradient(
      180deg,
      rgba(9, 9, 11, 0.55) 0%,
      rgba(9, 9, 11, 0.85) 55%,
      rgba(9, 9, 11, 1) 100%
    );
  }
}

/* Zone pills */
.zone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.zone-chip:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(37, 99, 235, 0.12);
}

/* FAQ */
[data-faq-item] {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(24, 24, 27, 0.65);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

[data-faq-item].faq-open {
  border-color: rgba(59, 130, 246, 0.4);
}

[data-faq-trigger] {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fafafa;
  font-weight: 600;
}

[data-faq-panel] {
  padding: 0 1.25rem 1.2rem;
  color: #a1a1aa;
  line-height: 1.65;
}

[data-faq-icon] {
  transition: transform 0.25s ease;
  color: #60a5fa;
  flex-shrink: 0;
}

/* Cookie consent — above mobile CTA (z-index 70) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.55);
}

.cookie-banner-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #a1a1aa;
}

.cookie-banner-text a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: #bfdbfe;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-btn {
  border-radius: 0.75rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #18181b;
  border: none;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.cookie-btn-essential {
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-btn-essential:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Lift cookie banner above mobile CTA on small screens */
@media (max-width: 767px) {
  .cookie-banner {
    bottom: calc(72px + env(safe-area-inset-bottom));
    padding-bottom: 0.85rem;
  }
}

/* Sticky mobile bar */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.mobile-cta-bar .btn-primary {
  width: 100%;
  justify-content: center;
}

/* Spațiu pentru bara mobilă */
@media (max-width: 767px) {
  body {
    padding-bottom: 88px;
  }
}

/* Logo SVG */
.logo-mark {
  display: inline-flex;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.35));
  transition: transform 0.2s ease;
}

.group:hover .logo-mark {
  transform: scale(1.04);
}

/* Banner „orice tip de blocare” */
.resolve-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  font-size: 0.85rem;
  font-weight: 560;
}

/* Hartă SVG București */
.bucharest-map {
  width: 100%;
  height: auto;
  display: block;
}

.map-sector {
  fill: rgba(37, 99, 235, 0.18);
  stroke: rgba(96, 165, 250, 0.35);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

.map-sector:hover,
.map-sector:focus,
.map-sector.is-active {
  fill: rgba(245, 158, 11, 0.28);
  stroke: #f59e0b;
  outline: none;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.35));
}

.map-label {
  fill: #fafafa;
  font-size: 16px;
  font-weight: 700;
  font-family: "Segoe UI", Arial, sans-serif;
  pointer-events: none;
}

.map-eta {
  fill: #a1a1aa;
  font-size: 10px;
  font-family: "Segoe UI", Arial, sans-serif;
  pointer-events: none;
}

.map-iframe-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #09090b;
}

.map-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) invert(0.92) contrast(0.85) brightness(0.75) hue-rotate(180deg);
}

/* Badge-uri sector ETA */
.sector-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(24, 24, 27, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.sector-badge:hover,
.sector-badge.is-active {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
  transform: translateX(2px);
}

.sector-badge-id {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.sector-badge.is-active .sector-badge-id {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.sector-badge-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sector-badge-body strong {
  font-size: 0.95rem;
}

.sector-badge-body span {
  font-size: 0.75rem;
  color: #a1a1aa;
}

.sector-badge-eta {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

/* Focus accesibilitate */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-fade-up,
  .animate-fade-up-delay-1,
  .animate-fade-up-delay-2,
  .animate-float,
  .status-dot {
    animation: none !important;
  }
}

/* Internal links grid (zone SEO) */
.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .internal-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .internal-links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.internal-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #d4d4d8;
  font-size: 0.875rem;
  font-weight: 560;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.internal-link:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(37, 99, 235, 0.1);
  color: #fff;
}

/* Print — ascunde CTA mobil */
@media print {
  .mobile-cta-bar,
  .cookie-banner,
  #mobile-menu,
  #mobile-overlay {
    display: none !important;
  }
}
