/* Custom Styles for Veritas Assessoria Jurídica e Empresarial */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-gold-light: #F2C66A;
  --color-gold-main: #D6A044;
  --color-gold-dark: #916022;
  --color-bg-dark: #050505;
  --color-bg-card: #0d0d0d;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg-dark);
  color: #F5F5F5;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: #050505;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #080808;
}

::-webkit-scrollbar-thumb {
  background: #2a2012;
  border-radius: 4px;
  border: 1px solid rgba(214, 160, 68, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: #d6a044;
}

/* Typography Utility */
.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Metallic & Gradient Borders */
.gold-border {
  border: 1px solid rgba(214, 160, 68, 0.35);
}

.gold-border-glow {
  border: 1px solid rgba(214, 160, 68, 0.4);
  box-shadow: 0 0 15px rgba(214, 160, 68, 0.08);
}

.gold-border-glow:hover {
  border-color: rgba(242, 198, 106, 0.8);
  box-shadow: 0 0 25px rgba(214, 160, 68, 0.15);
}

/* Metallic Text Gradient */
.gold-text-gradient {
  background: linear-gradient(135deg, #FFF0CA 0%, #F2C66A 50%, #D6A044 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-button-gradient {
  background: linear-gradient(135deg, #F2C66A 0%, #D6A044 70%, #B77C29 100%);
  color: #050505;
  transition: all 0.3s ease;
}

.gold-button-gradient:hover {
  background: linear-gradient(135deg, #FFF0CA 0%, #F2C66A 70%, #D6A044 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(214, 160, 68, 0.3);
}

/* Gold Outline Button */
.gold-outline-btn {
  border: 1px solid rgba(214, 160, 68, 0.7);
  color: #F2C66A;
  background: transparent;
  transition: all 0.3s ease;
}

.gold-outline-btn:hover {
  background: #D6A044;
  color: #050505;
  border-color: #D6A044;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -5px rgba(214, 160, 68, 0.25);
}

/* Glassmorphism Header */
.header-glass {
  background-color: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(214, 160, 68, 0.18);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-scrolled {
  background-color: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(214, 160, 68, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* Decorative Section Header Line */
.section-title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.section-title-line::before,
.section-title-line::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, rgba(214, 160, 68, 0.6), transparent);
}

@media (min-width: 768px) {
  .section-title-line::before,
  .section-title-line::after {
    width: 140px;
  }
}

/* Hero Decorative Circular Glow Ring */
.hero-circle-accent {
  position: absolute;
  width: 550px;
  height: 550px;
  border: 1px solid rgba(214, 160, 68, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-circle-accent-2 {
  position: absolute;
  width: 750px;
  height: 750px;
  border: 1px solid rgba(214, 160, 68, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

/* Cards Hover Animation */
.card-hover-effect {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.card-hover-effect:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 198, 106, 0.7);
  box-shadow: 0 15px 30px -10px rgba(214, 160, 68, 0.12);
}

/* Scroll Animation Utilities */
.fade-up-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Image zoom on hover */
.img-zoom-container {
  overflow: hidden;
}

.img-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom-container:hover img {
  transform: scale(1.05);
}

/* CTA Pattern Overlay */
.cta-bg-pattern {
  background-image: 
    radial-gradient(circle at 10% 50%, rgba(214, 160, 68, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(214, 160, 68, 0.05) 0%, transparent 40%);
}

/* ─── LANGUAGE SWITCHER ─────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(214, 160, 68, 0.22);
  border-radius: 8px;
  padding: 3px;
  backdrop-filter: blur(8px);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.lang-btn .flag-svg {
  width: 28px;
  height: 19px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.lang-btn:hover {
  color: rgba(242, 198, 106, 0.9);
  background: rgba(214, 160, 68, 0.1);
}

.lang-btn:hover .flag-svg {
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
}

.lang-btn .lang-code {
  display: inline-block;
}

.lang-btn.active {
  background: linear-gradient(135deg, rgba(242, 198, 106, 0.18) 0%, rgba(214, 160, 68, 0.12) 100%);
  color: #F2C66A;
  border: 1px solid rgba(214, 160, 68, 0.4);
  box-shadow: 0 0 10px rgba(214, 160, 68, 0.08);
}

/* Mobile lang switcher — ao lado do hambúrguer, só bandeiras */
.lang-switcher-mobile {
  display: flex;
  align-items: center;
  gap: 3px;
}

.lang-switcher-mobile .lang-btn {
  padding: 4px 5px;
  font-size: 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
}

.lang-switcher-mobile .lang-btn .lang-code {
  display: none; /* esconde o texto PT/EN/ES no mobile — só a bandeira */
}

.lang-switcher-mobile .lang-btn.active {
  background: rgba(242, 198, 106, 0.12);
  border-color: rgba(214, 160, 68, 0.45);
}

/* Smooth language transition on text change */
[data-i18n] {
  transition: opacity 0.18s ease;
}
.lang-transitioning [data-i18n] {
  opacity: 0;
}
