/* FluxClar Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --bg-primary: #0B0F19;
  --bg-secondary: #111827;
  --accent-blue: #2563EB;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem; /* keep anchored sections clear of the sticky header */
  -webkit-text-size-adjust: 100%;
  font-family: 'Inter', sans-serif;
  background-color: #0B0F19;
  color: #F8FAFC;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.font-mono, .calc-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* 3.3 Visual signature: background grid */
.bg-flux-clar {
  background-color: #0B0F19;
  background-image: 
    linear-gradient(to right, rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-flux-dots {
  background-image: radial-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glow effects */
.glow-blue {
  box-shadow: 0 0 35px -5px rgba(37, 99, 235, 0.25);
}

.glow-blue-sm {
  box-shadow: 0 0 20px -2px rgba(37, 99, 235, 0.2);
}

.glow-emerald {
  box-shadow: 0 0 30px -5px rgba(16, 185, 129, 0.2);
}

.glow-amber {
  box-shadow: 0 0 30px -5px rgba(245, 158, 11, 0.2);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.glass-nav {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #1E293B;
  border-radius: 9999px;
  outline: none;
  transition: all 0.2s ease;
}

input[type="range"]:focus {
  outline: none;
}

/* Chrome/Safari Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3B82F6;
  border: 3px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #2563EB;
}

/* Firefox Thumb */
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3B82F6;
  border: 3px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: #2563EB;
}

/* Firefox Progress */
input[type="range"]::-moz-range-progress {
  background: #2563EB;
  border-radius: 9999px;
  height: 8px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0B0F19;
}

::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Tab active indicator transition */
.tab-btn {
  transition: all 0.25s ease-in-out;
}

.tab-btn.active {
  background-color: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
}

/* Accordion Animation */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-item.open .accordion-content {
  opacity: 1;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

/* Subtle pulse for badges */
@keyframes subtle-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

.animate-subtle-pulse {
  animation: subtle-pulse 3s infinite ease-in-out;
}

/* Hero architectural card animation */
@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(1000%);
  }
}

.scanline-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.08), transparent);
  pointer-events: none;
  animation: scanline 8s linear infinite;
}

/* Mobile first: phones get a slightly larger base size so small labels stay readable */
@media (max-width: 639px) {
  html {
    font-size: 17px;
  }
  .font-mono {
    letter-spacing: -0.01em;
  }
}

/* ==========================================================================
   Cookie banner and privacy dialog (assets/js/consent.js)
   ========================================================================== */
:root { --fc-wa-lift: 0px; }

.fc-consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 28rem;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  border: 1px solid #1e293b;
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.5;
}
.fc-consent-banner p { margin: 0 0 0.75rem; }

.fc-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

.fc-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s;
}
/* Accept and Decline get the same size and weight, so neither is the "easy" button */
.fc-btn-primary { background: #2563eb; color: #fff; border: 1px solid #2563eb; }
.fc-btn-primary:hover { background: #3b82f6; }
.fc-btn-secondary { background: #1e293b; color: #fff; border: 1px solid #334155; }
.fc-btn-secondary:hover { background: #334155; }
.fc-btn-link { background: none; border: 0; color: #60a5fa; font-size: 0.875rem; text-decoration: underline; cursor: pointer; padding: 0.5rem 0.25rem; }
.fc-btn:focus-visible, .fc-btn-link:focus-visible, .fc-privacy-x:focus-visible, .floating-whatsapp:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.fc-privacy-dialog {
  width: min(40rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.6;
}
.fc-privacy-dialog[open] { display: flex; flex-direction: column; }
.fc-privacy-dialog::backdrop { background: rgba(2, 6, 23, 0.75); }
.fc-privacy-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid #1e293b; }
.fc-privacy-head h2 { margin: 0; color: #fff; font-size: 1.125rem; font-weight: 700; }
.fc-privacy-x { background: none; border: 0; color: #94a3b8; font-size: 1.75rem; line-height: 1; cursor: pointer; padding: 0 0.25rem; }
.fc-privacy-x:hover { color: #fff; }
.fc-privacy-body { padding: 0.5rem 1.25rem 1rem; overflow-y: auto; }
.fc-privacy-body h3 { margin: 1rem 0 0.25rem; color: #fff; font-size: 0.95rem; font-weight: 600; }
.fc-privacy-body p { margin: 0 0 0.75rem; }
.fc-privacy-body a { color: #60a5fa; text-decoration: underline; }
.fc-privacy-body code { font-family: 'JetBrains Mono', monospace; font-size: 0.8em; color: #e2e8f0; }
.fc-privacy-foot { padding: 1rem 1.25rem; border-top: 1px solid #1e293b; }
.fc-privacy-status { margin: 0 0 0.75rem; color: #94a3b8; font-size: 0.8rem; }


/* On wide screens the banner sits bottom left, clear of the WhatsApp button */
@media (min-width: 640px) {
  .fc-consent-banner { right: auto; bottom: 1.5rem; left: 1.5rem; }
}
@media print { .floating-whatsapp, .fc-consent-banner { display: none; } }

/* Floating WhatsApp button (markup at the end of ro/ and en/index.html) */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.65);
}
@media (max-width: 640px) {
  .floating-whatsapp {
    width: 54px;
    height: 54px;
    bottom: calc(1.25rem + var(--fc-wa-lift));
    right: 1.25rem;
  }
  .floating-whatsapp svg {
    width: 30px;
    height: 30px;
  }
}
