/* ============================================
   BORÉAL — Custom styles
   ============================================ */

:root {
  --brand-50:  #EFF6FF;
  --brand-100: #DBEAFE;
  --brand-200: #BFDBFE;
  --brand-600: #2563EB;
  --brand-700: #1D4ED8;
  --brand-900: #1E3A8A;
  --brand-950: #172554;
}

html { scroll-behavior: smooth; }

/* ============================================
   LOGO WORDMARK
   ============================================ */
.logo-mark {
  font-family: 'Bricolage Grotesque', 'Inter', ui-sans-serif, sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-feature-settings: "ss01";
  display: inline-block;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--brand-600); color: #fff; }

/* ============================================
   TABS
   ============================================ */
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  background: #fff;
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(30, 58, 138, 0.04);
}

.tab-btn:hover {
  background: var(--brand-50);
  border-color: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}

.tab-btn.active {
  background: linear-gradient(to bottom right, var(--brand-600), var(--brand-700));
  color: #fff;
  border-color: var(--brand-600);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* ============================================
   FAQ
   ============================================ */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { outline: none; }

/* ============================================
   FORMS
   ============================================ */
input::placeholder, textarea::placeholder { color: #94A3B8; }

.form-input.input-error {
  border-color: #F87171 !important;
  background-color: #FEF2F2 !important;
}

.form-input.input-error:focus {
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.error-msg {
  color: #DC2626;
  font-size: 0.75rem;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============================================
   DEVIS WIZARD
   ============================================ */
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand-200);
  color: #64748B;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step-dot.active {
  background: linear-gradient(to bottom right, var(--brand-600), var(--brand-700));
  border-color: var(--brand-600);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step-dot.done {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.step-dot.done::after {
  content: '✓';
  font-size: 0.85rem;
}

.step-dot.done > * { display: none; }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--brand-100);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.step-line.done { background: var(--brand-600); }

.wizard-step {
  animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Service option cards in wizard */
.service-option { cursor: pointer; }

.service-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 2px solid var(--brand-100);
  border-radius: 0.85rem;
  background: #fff;
  transition: all 0.2s ease;
}

.service-option:hover .service-card {
  border-color: var(--brand-300, #93C5FD);
  background: var(--brand-50);
}

.service-option .peer:checked ~ .service-card,
.service-option input:checked + .service-card {
  border-color: var(--brand-600);
  background: linear-gradient(to bottom right, #EFF6FF, #DBEAFE);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  header, footer, .tab-btn, button { display: none; }
  .tab-panel { display: block !important; }
}
