/*
 * FixTudo Design System v3.0
 * Single source of truth for all pages.
 * Inspired by Attio, Linear, Ramp — black/white/brand accent, generous whitespace.
 *
 * Usage: Add <link rel="stylesheet" href="/design-system.css"> to every page
 *        after the Google Fonts preconnect links.
 *        Page-specific overrides stay in each page's own <style> block.
 */

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ================================================================
   DESIGN TOKENS (CSS Custom Properties)
   ================================================================ */
:root {
  /* ── BRAND COLORS ── */
  --brand-navy:          #0c1220;
  --brand-blue:          #1a56db;
  --brand-blue-light:    #3b82f6;
  --brand-blue-muted:    #60a5fa;
  --brand-orange:        #e8590c;
  --brand-orange-hover:  #d14e0a;
  --brand-amber:         #f59e0b;

  /* ── NEUTRALS ── */
  --n-950: #0f1117;
  --n-900: #111827;
  --n-800: #1f2937;
  --n-700: #374151;
  --n-600: #4b5563;
  --n-500: #6b7280;
  --n-400: #9ca3af;
  --n-300: #d1d5db;
  --n-200: #e5e7eb;
  --n-100: #f3f4f6;
  --n-50:  #f9fafb;
  --white: #ffffff;

  /* ── SEMANTIC COLORS ── */
  --blue-50:   #eff6ff;
  --blue-100:  #dbeafe;
  --blue-200:  #bfdbfe;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --green-500: #10b981;
  --green-50:  #ecfdf5;
  --red-500:   #ef4444;
  --red-50:    #fef2f2;
  --amber-50:  #fffbeb;
  --amber-100: #fef3c7;

  /* ── TYPOGRAPHY ── */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tracking-tight:   -0.025em;
  --tracking-tighter: -0.04em;

  /* ── SPACING SCALE ── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ── SHADOWS ── */
  --shadow-xs:   0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.06), 0 2px 4px -2px rgba(0,0,0,.04);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,.07), 0 4px 6px -4px rgba(0,0,0,.03);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,.07), 0 8px 10px -6px rgba(0,0,0,.03);
  --shadow-card: 0 0 0 1px rgba(0,0,0,.03), 0 2px 4px rgba(0,0,0,.04), 0 12px 24px rgba(0,0,0,.04);

  /* ── BORDER RADIUS ── */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ── MOTION ── */
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration:      200ms;
  --duration-slow: 350ms;

  /* ── LAYOUT ── */
  --container-max: 1140px;
  --container-pad: var(--space-6);
}

/* ================================================================
   BASE
   ================================================================ */
body {
  font-family: var(--font);
  color: var(--n-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

/* ================================================================
   LAYOUT
   ================================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-alt {
  background: var(--n-50);
}

.section-dark {
  background: var(--n-900);
  color: var(--white);
}

/* ================================================================
   TYPOGRAPHY UTILITIES
   ================================================================ */
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--n-900);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
}

.section-sub {
  font-size: 17px;
  color: var(--n-500);
  max-width: 540px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ================================================================
   BADGE / TAG
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-50);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--blue-100);
  margin-bottom: var(--space-5);
}

.badge-orange {
  background: var(--orange-50);
  color: var(--brand-orange);
  border-color: var(--orange-100);
}

.badge-green {
  background: var(--green-50);
  color: var(--green-500);
  border-color: rgba(16,185,129,.2);
}

.badge-neutral {
  background: var(--n-100);
  color: var(--n-600);
  border-color: var(--n-200);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  -webkit-user-select: none;
  user-select: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; pointer-events: none; }

/* Primary — orange CTA */
.btn-primary {
  background: var(--brand-orange);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(232,89,12,.2), 0 4px 12px rgba(232,89,12,.15);
}
.btn-primary:hover {
  background: var(--brand-orange-hover);
  box-shadow: 0 2px 4px rgba(232,89,12,.25), 0 8px 20px rgba(232,89,12,.2);
}

/* Blue primary */
.btn-blue {
  background: var(--brand-blue);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(26,86,219,.2), 0 4px 12px rgba(26,86,219,.12);
}
.btn-blue:hover {
  background: #1648c0;
  box-shadow: 0 2px 4px rgba(26,86,219,.25), 0 8px 20px rgba(26,86,219,.18);
}

/* Secondary — outline */
.btn-secondary {
  background: var(--white);
  color: var(--n-900);
  border: 1.5px solid var(--n-200);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--n-300);
  box-shadow: var(--shadow-sm);
}

/* Ghost — for dark backgrounds */
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
}

/* WhatsApp */
.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 1px 2px rgba(37,211,102,.2);
}
.btn-whatsapp:hover {
  background: #20c05c;
  box-shadow: 0 4px 12px rgba(37,211,102,.25);
}

/* Sizes */
.btn-sm  { padding: 9px 18px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-xl  { padding: 18px 40px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; justify-content: center; }

/* ================================================================
   NAVIGATION
   ================================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--n-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  color: var(--n-900);
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-blue), #2563eb);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(26,86,219,.25);
  flex-shrink: 0;
}

.logo-text { color: var(--n-900); }
.logo-text span,
.logo-accent { color: var(--brand-orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--n-600);
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--n-900);
  background: var(--n-50);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--n-600);
  font-weight: 600;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.nav-phone-link:hover {
  color: var(--brand-blue);
  background: var(--blue-50);
}

.lang-toggle {
  background: none;
  border: 1.5px solid var(--n-200);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--n-500);
  letter-spacing: 0.03em;
  font-family: var(--font);
  transition: all var(--duration-fast);
}

.lang-toggle:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.nav-cta { padding: 9px 18px; font-size: 14px; }

/* ================================================================
   ANNOUNCEMENT / EMERGENCY BAR
   ================================================================ */
.emergency-bar {
  background: var(--n-900);
  color: var(--n-300);
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.emergency-bar .emergency-highlight {
  color: var(--white);
  font-weight: 700;
}

.emergency-bar a {
  color: var(--brand-amber);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--duration-fast);
}

.emergency-bar a:hover { color: #fbbf24; }

/* ================================================================
   CARD
   ================================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  transition: all var(--duration-slow) var(--ease);
}

.card:hover {
  border-color: var(--n-300);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.card-flat {
  background: var(--white);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
}

.card-dark {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  backdrop-filter: blur(12px);
}

/* Icon wrapper inside card */
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--n-50);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.card-icon-blue { background: var(--blue-50); box-shadow: 0 0 0 1px var(--blue-100); }
.card-icon-orange { background: var(--orange-50); box-shadow: 0 0 0 1px var(--orange-100); }

/* ================================================================
   TRUST SIGNALS
   ================================================================ */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--n-400);
}

.trust-pill .tick {
  width: 20px;
  height: 20px;
  background: rgba(16,185,129,.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-500);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Google rating pill */
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--n-700);
  box-shadow: var(--shadow-xs);
}

/* ================================================================
   FORMS
   ================================================================ */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--n-700);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--n-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--n-900);
  background: var(--white);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--n-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.08);
}

.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* ================================================================
   SECTION HEADER (reusable section intro)
   ================================================================ */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header.text-center { text-align: center; }
.section-header.text-center .section-sub { margin: 0 auto; }

/* ================================================================
   STEP CARD
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  align-items: start;
  margin-top: var(--space-12);
}

.step-card {
  background: var(--white);
  border: 1px solid var(--n-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  position: relative;
  transition: all var(--duration-slow) var(--ease);
}

.step-card:hover {
  border-color: var(--n-300);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--n-950);
  color: var(--n-400);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand .logo {
  color: white;
  margin-bottom: var(--space-4);
}

.footer-brand > p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
  color: var(--n-500);
}

.social-links {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.social-link {
  width: 36px;
  height: 36px;
  background: var(--n-800);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--duration-fast);
  color: var(--n-400);
}

.social-link:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--white);
}

.footer-col h5 {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: var(--space-5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col ul li {
  font-size: 14px;
  transition: color var(--duration-fast);
}

.footer-col ul li a:hover,
.footer-col ul li:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--n-800);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--n-500);
}

.footer-bottom a:hover { color: var(--white); }

/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */
@keyframes ds-fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ds-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--n-200);
  margin: var(--space-8) 0;
}

.highlight-text {
  background: linear-gradient(135deg, var(--brand-amber), #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--n-500); }
.text-brand  { color: var(--brand-blue); }
.text-orange { color: var(--brand-orange); }

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */

/* Large tablet */
@media (max-width: 1024px) {
  :root { --container-pad: var(--space-5); }
}

/* Tablet */
@media (max-width: 900px) {
  .section { padding: var(--space-16) 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .steps-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .nav-links { display: none; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --container-pad: var(--space-4); }

  .section { padding: var(--space-12) 0; }

  .footer-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .steps-grid { grid-template-columns: 1fr; }

  .btn-lg { padding: 14px 24px; font-size: 15px; }
}
