:root {
    --bordo: #7B1A1A;
    --bordo-dark: #5a1212;
    --bordo-light: #9e2a2a;
    --preto: #0f0f0f;
    --cinza-escuro: #1a1a1a;
    --cinza-medio: #3a3a3a;
    --cinza-claro: #f4f4f4;
    --branco: #ffffff;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; overflow-x: hidden; }
  body { font-family: 'Inter', sans-serif; background: var(--branco); color: var(--preto); overflow-x: hidden; max-width: 100%; }

  .font-display { font-family: 'Playfair Display', serif; }

  @keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
  }
  @keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(123,26,26,0.3); }
    50% { box-shadow: 0 0 40px rgba(123,26,26,0.6); }
  }
  @keyframes lineGrow {
    from { width: 0; }
    to { width: 60px; }
  }

  .animate-fadeInUp { animation: fadeInUp 0.8s ease-out forwards; }
  .animate-float { animation: float 3s ease-in-out infinite; }
  .animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

  .btn-bordo {
    background: var(--bordo);
    color: var(--branco);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  .btn-bordo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 2.5s infinite;
  }
  .btn-bordo:hover { background: var(--bordo-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(123,26,26,0.4); }

  .btn-outline {
    border: 2px solid var(--bordo);
    color: var(--bordo);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
  }
  .btn-outline:hover { background: var(--bordo); color: var(--branco); }

  .section-line {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--bordo);
    margin: 12px auto 0;
  }

  .tag-pill {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    background: rgba(123,26,26,0.07);
    color: var(--bordo);
    border: 1px solid rgba(123,26,26,0.14);
    transition: background 0.25s ease, border-color 0.25s ease;
  }
  .card-service:hover .tag-pill { background: rgba(123,26,26,0.1); border-color: rgba(123,26,26,0.22); }

  .card-service {
    background: var(--branco);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 28px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  .card-service::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--bordo);
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }
  .card-service:hover::before { transform: scaleY(1); }
  .card-service:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }

  .card-diferencial {
    background: var(--cinza-escuro);
    border-radius: 8px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(123,26,26,0.2);
  }
  .card-diferencial:hover { border-color: var(--bordo); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(123,26,26,0.2); }

  .depo-card {
    background: var(--branco);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 3px solid var(--bordo);
    transition: all 0.3s ease;
  }
  .depo-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); transform: translateY(-3px); }

  .nav-link {
    color: var(--branco);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--bordo-light);
    transition: width 0.3s;
  }
  .nav-link:hover::after { width: 100%; }
  .nav-link:hover { color: #e8a0a0; }

  .site-nav {
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.15) 80%, rgba(0,0,0,0) 100%);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
  }
  .site-nav.is-scrolled {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(123,26,26,0.35);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }

  .hero-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.15) 78%, rgba(0,0,0,0) 95%);
  }

  .hero-bg-img { object-position: right center; }
  .sobre-img { object-position: left center; }

  @media (max-width: 767px) {
    .hero-overlay {
      background: linear-gradient(to right, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.88) 55%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.35) 100%);
    }
    .site-nav {
      background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.75) 60%, rgba(0,0,0,0.5) 100%);
    }
    /* shift background ~200px further right (toward center) so more of the image shows */
    .hero-bg-img { object-position: 82% center; }
    .sobre-img { object-position: left bottom; }
  }

  .glow-bordo {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(123,26,26,0.15);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
  }

  /* WhatsApp floating button */
  .whatsapp-float {
    animation: whatsapp-pulse 2.4s ease-in-out infinite;
    transition: transform 0.2s ease;
  }
  .whatsapp-float:hover { transform: scale(1.08); }
  @keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.35), 0 0 0 0 rgba(37,211,102,0.5); }
    50% { box-shadow: 0 6px 20px rgba(0,0,0,0.35), 0 0 0 10px rgba(37,211,102,0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .whatsapp-float { animation: none; }
  }
  @media (max-width: 767px) {
    .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  }

  /* Diferenciais section background effects */
  .diferenciais-grid-fx {
    background-image:
      linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,0.9) 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,0.9) 0%, transparent 75%);
    pointer-events: none;
  }
  .diferenciais-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(123,26,26,0.22);
    filter: blur(100px);
    pointer-events: none;
    animation: justice-pulse 6s ease-in-out infinite;
  }
  .diferenciais-watermark {
    position: absolute;
    right: -6%;
    bottom: -8%;
    width: 480px;
    height: 480px;
    max-width: 45vw;
    opacity: 0.06;
    pointer-events: none;
  }
  @media (max-width: 767px) {
    .diferenciais-watermark { width: 300px; height: 300px; max-width: 65vw; opacity: 0.05; }
    .diferenciais-glow { width: 280px; height: 280px; filter: blur(70px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .diferenciais-glow { animation: none; }
  }

  /* CTA section background effects */
  .cta-stripes {
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 1px, transparent 1px, transparent 20px);
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.85) 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.85) 0%, transparent 78%);
  }
  .cta-drift {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    filter: blur(70px);
    animation: cta-drift 11s ease-in-out infinite;
  }
  @keyframes cta-drift {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(55vw) translateY(20px); }
  }
  .cta-ripple {
    position: absolute;
    inset: -14px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.4);
    animation: cta-ripple 2.8s ease-out infinite;
  }
  .cta-ripple-delay { animation-delay: 1.4s; }
  @keyframes cta-ripple {
    0% { transform: scale(0.75); opacity: 0.9; }
    100% { transform: scale(1.9); opacity: 0; }
  }
  @media (max-width: 767px) {
    .cta-drift { width: 160px; height: 160px; filter: blur(50px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .cta-drift, .cta-ripple { animation: none; }
  }

  /* Justice floating icon (Contato section) */
  .justice-orb-wrap {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(circle at 50% 42%, rgba(123,26,26,0.28) 0%, rgba(15,15,15,0.95) 55%, #0f0f0f 100%);
    border: 1px solid rgba(123,26,26,0.25);
  }
  .justice-orb-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at 50% 45%, rgba(0,0,0,0.9) 0%, transparent 70%);
    pointer-events: none;
  }

  .justice-ring {
    position: absolute;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(158,42,42,0.4);
    border-radius: 50%;
    animation: justice-spin 16s linear infinite;
  }
  .justice-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: calc(50% - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e8a0a0;
    box-shadow: 0 0 14px 3px rgba(232,160,160,0.85);
  }
  .justice-ring-2 {
    width: 280px;
    height: 280px;
    border-color: rgba(123,26,26,0.22);
    animation-duration: 24s;
    animation-direction: reverse;
  }
  .justice-ring-2::before { background: rgba(123,26,26,0.5); box-shadow: 0 0 10px 2px rgba(123,26,26,0.5); }

  .justice-glow {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(158,42,42,0.45);
    filter: blur(45px);
    animation: justice-pulse 3.2s ease-in-out infinite;
  }

  .justice-badge {
    position: relative;
    z-index: 10;
    width: 136px;
    height: 136px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.12);
    animation: justice-float 4.5s ease-in-out infinite;
  }

  .justice-icon { width: 60px; height: 60px; }

  @keyframes justice-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  @keyframes justice-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.18); }
  }
  @keyframes justice-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .justice-ring, .justice-ring-2, .justice-glow, .justice-badge { animation: none; }
  }
  @media (max-width: 767px) {
    .justice-ring { width: 160px; height: 160px; }
    .justice-ring-2 { width: 210px; height: 210px; }
    .justice-badge { width: 110px; height: 110px; }
    .justice-icon { width: 48px; height: 48px; }
  }

  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bordo-light);
    line-height: 1;
  }

  @media (max-width: 640px) {
    .btn-bordo, .btn-outline { width: 100%; justify-content: center; padding: 14px 16px; }
  }

/* ── Botões: proteção global ── */
button,
input[type="button"],
input[type="submit"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1.2;
}

/* ── WhatsApp links: alinhamento ícone+texto em todas as resoluções ── */
a[href*="wa.me"],
a[href*="whatsapp.com"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1.2;
    text-decoration: none;
}


/* ── Navbar ≤ 767px: remove CTA/WhatsApp no mobile ── */
@media (max-width: 767px) {
    nav a[href*="wa.me"],
    nav a[href*="whatsapp.com"] {
        display: none !important;
    }
}