/* ================================================================
   Ricardo Almeida Advogados Associados — Custom Styles
   Palette: #ffffff · #f5e883 · #cfa04b · #e4c968 · #d0a43b
   ================================================================ */

/* ─── Root & Defaults ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Selection ───────────────────────────────────────────────── */
::selection {
  background-color: #e4c968;
  color: #1a1a1a;
}

/* ─── Scrollbar (webkit) ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #cfa04b;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d0a43b;
}

/* ─── Header Transition ──────────────────────────────────────── */
#header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* ─── Hero section – min-height fallback ─────────────────────── */
#home {
  min-height: 100svh;
}

/* ─── Stat Cards subtle hover ────────────────────────────────── */
.stat-card {
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
}

/* ─── Area cards ─────────────────────────────────────────────── */
.area-card {
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #cfa04b, #e4c968);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.area-card:hover::before {
  transform: scaleX(1);
}

/* ─── Diferencial cards ──────────────────────────────────────── */
.diferencial-card {
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.diferencial-card:hover {
  transform: translateY(-2px);
}

/* ─── Form inputs – gold focus ───────────────────────────────── */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #cfa04b !important;
  box-shadow: 0 0 0 3px rgba(207, 160, 75, 0.15) !important;
}

/* ─── Select arrow ───────────────────────────────────────────── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px !important;
}

/* ─── WhatsApp float pulse ───────────────────────────────────── */
#whatsapp-float {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#whatsapp-float:hover {
  transform: scale(1.12);
}

/* ─── Gradient text utility ──────────────────────────────────── */
.text-gradient-gold {
  background: linear-gradient(135deg, #f5e883, #cfa04b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── CTA band pattern ───────────────────────────────────────── */
.cta-band-pattern {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.07) 20px,
    rgba(255, 255, 255, 0.07) 21px
  );
}

/* ─── Footer link hover ──────────────────────────────────────── */
footer a {
  transition: color 0.2s ease;
}

/* ─── AOS custom offset ──────────────────────────────────────── */
[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}

/* ─── Accessibility: focus-visible ──────────────────────────── */
:focus-visible {
  outline: 2px solid #cfa04b;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Responsive: hero image on mobile ──────────────────────── */
@media (max-width: 640px) {
  #home .max-w-xl {
    text-align: center;
  }
  #home .flex.flex-wrap {
    justify-content: center;
  }
}

/* ─── Print styles ───────────────────────────────────────────── */
@media print {
  #header,
  #whatsapp-float,
  .cta-band {
    display: none !important;
  }
}
