/* ==========================================================================
   LUCENA & DIAS ADVOGADOS - DESIGN SYSTEM & STYLESHEET (V5 - WARM ONYX & SATIN GOLD)
   Values: Autoridade, Responsabilidade, Profissionalismo, Honestidade e Transparência
   ========================================================================== */

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

/* --- CSS Variables & Design Tokens (Palette V5: Pure Warm Charcoal Onyx & Satin Gold - 0% DARK BLUE) --- */
:root {
  --bg-primary: #0D0F0D;
  --bg-secondary: #141714;
  --bg-tertiary: #1B1F1B;
  --bg-card: rgba(20, 23, 20, 0.88);
  --bg-glass: rgba(13, 15, 13, 0.94);

  --accent-gold-primary: #C2A36B;
  --accent-gold-warm: #C2A36B;
  --accent-gold-light: #D4B67E;
  --accent-gold-dark: #8F7133;
  --accent-gold-glow: rgba(194, 163, 107, 0.18);

  --accent-emerald: #15803D;
  --accent-emerald-hover: #16A34A;
  --accent-emerald-glow: rgba(21, 128, 61, 0.4);

  --text-primary: #F4F1EA;
  --text-secondary: #9FA49F;
  --text-muted: #717671;
  --text-gold: #C2A36B;

  --border-subtle: rgba(194, 163, 107, 0.15);
  --border-gold-subtle: rgba(194, 163, 107, 0.25);
  --border-gold-bright: rgba(194, 163, 107, 0.6);

  --font-serif: 'Cormorant Garamond', 'Cinzel', Georgia, serif;
  --font-heading: 'Cinzel', 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-flip: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 12px 35px -5px rgba(197, 160, 89, 0.2);
  --shadow-emerald: 0 12px 35px -5px rgba(16, 185, 129, 0.25);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.9);

  --container-max: 1240px;
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Accessibility Focus Styles --- */
:focus-visible {
  outline: 2px solid var(--accent-gold-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* --- Typography Utilities --- */
.font-serif {
  font-family: var(--font-serif);
}

.font-heading {
  font-family: var(--font-heading);
}

.text-gold-gradient {
  background: linear-gradient(135deg, #FFF6E0 0%, #C5A059 50%, #8F7133 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.heading-lg {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-md {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
}

.heading-sm {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4rem 0;
  }
}

/* --- Glassmorphism & Cards --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-gold-subtle);
  box-shadow: var(--shadow-card), 0 0 25px var(--accent-gold-glow);
  transform: translateY(-4px);
}

.glass-nav {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

/* --- Buttons --- */
.btn-primary-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: #15803D !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 1.8rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px -6px rgba(21, 128, 61, 0.4);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.6s;
}

.btn-primary-whatsapp:hover::before {
  left: 100%;
}

.btn-primary-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(21, 128, 61, 0.4);
  background-color: #16A34A !important;
}

.btn-wa-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #C5A059 0%, #D4AF37 50%, #8F7133 100%);
  color: #0C0E12;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  transition: var(--transition-smooth);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -5px rgba(197, 160, 89, 0.4);
  filter: brightness(1.1);
}

.btn-gmaps,
.btn-waze {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(197, 160, 89, 0.08);
  color: var(--accent-gold-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold-subtle);
  transition: var(--transition-smooth);
}

.btn-gmaps:hover,
.btn-waze:hover {
  background: rgba(197, 160, 89, 0.2);
  border-color: var(--accent-gold-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.25);
}

/* ==========================================================================
   HEADER & STICKY NAVBAR
   ========================================================================== */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--accent-gold-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Linha Dourada de Ponta a Ponta para Dividir as Seções */
section,
.pain-section,
.differentials-section {
  border-bottom: 1px solid rgba(194, 163, 107, 0.3);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.nav-logo-mark {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-smooth);
}

.nav-logo-subtext {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #EBD39E;
  margin-top: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-smooth);
}

.nav-logo-subtext::before,
.nav-logo-subtext::after {
  content: '•';
  font-size: 0.48rem;
  color: var(--accent-gold-primary);
}

.logo-brand:hover .nav-logo-mark {
  transform: scale(1.03);
}

.logo-brand:hover .nav-logo-subtext {
  color: #FFFFFF;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 1.25rem;
}

.logo-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  line-height: 1;
}

.logo-title span {
  color: var(--accent-gold-primary);
}

.logo-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gold-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-mobile-instagram {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(200, 169, 106, 0.45);
  background: rgba(200, 169, 106, 0.08);
  cursor: pointer;
  position: relative;
  z-index: 110;
  transition: var(--transition-smooth);
}

.hamburger:hover,
.hamburger.active {
  background: rgba(200, 169, 106, 0.16);
  border-color: #C8A96A;
}

.hamburger-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C8A96A;
  line-height: 1;
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 14px;
}

.hamburger-line {
  display: block;
  height: 1.8px;
  background-color: #C8A96A;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s ease;
}

.hamburger-line-top {
  width: 18px;
}

.hamburger-line-bottom {
  width: 12px;
}

.hamburger.active .hamburger-line-top {
  width: 16px;
  transform: translateY(3.4px) rotate(45deg);
}

.hamburger.active .hamburger-line-bottom {
  width: 16px;
  transform: translateY(-3.4px) rotate(-45deg);
}

@media (max-width: 992px) {
  .hamburger {
    display: inline-flex;
  }

  .nav-mobile-instagram {
    display: block;
    margin-top: 0.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 380px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
    z-index: 99;
  }

  .nav-menu.active {
    right: 0;
  }
}

/* ==========================================================================
   HERO SECTION (BACKGROUND DO ESCRITÓRIO MANTIDO COM SOBREPOSIÇÃO WARM GRAFITE)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5.5rem 0 6rem;
  min-height: min(calc(100vh - 92px), 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-primary);
  background-image: linear-gradient(90deg, rgba(14, 16, 14, 0.94) 0%, rgba(14, 16, 14, 0.84) 50%, rgba(14, 16, 14, 0.52) 100%), url('../images/hero_real_office.jpg');
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  margin-bottom: 0;
  border-bottom: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 4rem;
  align-items: center;
}

.hero-right {
  margin-top: 0;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-right {
    margin-top: 0;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: #E5C88B;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 1.45rem;
}

.hero-tag::before,
.hero-tag::after {
  content: '';
  display: inline-block;
  width: 44px;
  height: 2px;
  background-color: var(--accent-gold-primary);
  flex-shrink: 0;
}

.gavel-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-title {
  margin-bottom: 1.4rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.1rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.microcopy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  align-items: stretch;
  max-width: 580px;
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(20, 23, 29, 0.75);
  backdrop-filter: blur(10px);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.trust-badge-item:hover {
  border-color: var(--border-gold-subtle);
  color: var(--text-primary);
}

.trust-badge-item svg {
  color: var(--accent-gold-primary);
  flex-shrink: 0;
}

/* Card Visual na Hero na Proporção Equilibrada com os Dois Advogados Sem Cortes */
.hero-visual-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(194, 163, 107, 0.35);
  box-shadow: var(--shadow-card);
  background: rgba(18, 22, 19, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  aspect-ratio: 6 / 5;
  width: 100%;
}

.hero-visual-card>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  display: block;
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(12, 14, 18, 0.92) 100%);
  pointer-events: none;
}

.hero-floating-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold-subtle);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero-badge-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.hero-badge-mark {
  height: 30px !important;
  width: auto !important;
  max-width: 72px !important;
  object-fit: contain !important;
  display: block;
}

.hero-badge-subtext {
  font-family: 'Cinzel', serif;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #F5E6BE;
  margin-top: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-badge-subtext::before,
.hero-badge-subtext::after {
  content: '•';
  font-size: 0.4rem;
  color: var(--accent-gold-primary);
}

.hero-badge-divider {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, transparent, rgba(197, 160, 89, 0.5), transparent);
  flex-shrink: 0;
}

.hero-badge-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-badge-text span {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

/* ==========================================================================
   SECTION: DOR & POSICIONAMENTO (COM A IMAGEM ATENDIMENTO)
   ========================================================================== */
.pain-section {
  background-color: var(--bg-primary);
  position: relative;
  padding-top: 5rem;
  border-top: 1px solid var(--border-subtle);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .pain-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.pain-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold-subtle);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}

.pain-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.pain-content-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pain-title {
  color: var(--text-primary);
}

.pain-text {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.pain-quote-box {
  border-left: 3px solid var(--accent-gold-primary);
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--text-gold);
}

/* ==========================================================================
   SECTION: ÁREAS DE ATUAÇÃO
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold-primary);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .practice-grid {
    grid-template-columns: 1fr;
  }
}

.practice-card {
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.practice-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.15) 0%, rgba(197, 160, 89, 0.03) 100%);
  border: 1px solid var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-primary);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.practice-card:hover .practice-icon-wrapper {
  background: var(--accent-gold-primary);
  color: #0C0E12;
  transform: scale(1.05);
}

.practice-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.practice-subtext {
  font-size: 0.9rem;
  color: var(--accent-gold-warm);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.practice-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.practice-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.practice-list li::before {
  content: '•';
  color: var(--accent-gold-primary);
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}

.practice-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-gold-primary);
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.practice-card:hover .practice-action {
  color: #FFF;
  transform: translateX(4px);
}

/* ==========================================================================
   SECTION: DIFERENCIAIS (3D FLIP CARDS ON HOVER)
   ========================================================================== */
.differentials-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  perspective: 1200px;
}

@media (max-width: 992px) {
  .differentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .differentials-grid {
    grid-template-columns: 1fr;
  }
}

/* 3D Flip Card Container */
.flip-card-container {
  background-color: transparent;
  height: 290px;
  perspective: 1200px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

@media (hover: hover) {
  .flip-card-container:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card-container.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-gold-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.flip-card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #141714 0%, #1B1F1B 100%);
  border-color: rgba(194, 163, 107, 0.45);
  box-shadow: 0 15px 35px -10px rgba(194, 163, 107, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.flip-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: auto;
}

.differential-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-gold-primary);
  opacity: 0.5;
}

.differential-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.flip-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-gold-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
}

.differential-desc-back {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.65;
  margin-top: 1rem;
}

/* ==========================================================================
   SECTION: JORNADA EM 3 PASSOS (TIMELINE)
   ========================================================================== */
.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .journey-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.step-card {
  position: relative;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.step-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold-primary);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid var(--border-gold-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.step-icon {
  color: var(--accent-gold-warm);
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   SECTION: FAQ (ACCORDION)
   ========================================================================== */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--border-gold-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.faq-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.8rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  gap: 1rem;
}

.faq-button:hover {
  color: var(--accent-gold-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-gold-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--accent-gold-primary);
  color: #0C0E12;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 1.8rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 1.8rem 1.5rem 1.8rem;
}

/* ==========================================================================
   SECTION: CONTATO, LOCALIZAÇÃO & MAPA
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-info-card {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 2rem 0;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-primary);
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-detail-text p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-instagram-link {
  color: var(--accent-gold-light);
  font-weight: 600;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.contact-instagram-link:hover {
  color: #FFFFFF;
}

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
  min-height: 440px;
  background: var(--bg-secondary);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: none;
  filter: none !important;
  transition: var(--transition-smooth);
}

.map-card:hover iframe {
  filter: none !important;
}

/* ==========================================================================
   BANNER FINAL DE CONVERSÃO (PRE-FOOTER CTA)
   ========================================================================== */
.pre-footer-section {
  padding: 5.5rem 0;
  border-bottom: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pre-footer-cta {
  background: rgba(19, 21, 25, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(197, 160, 89, 0.1);
  margin: 0 auto;
}

.pre-footer-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.pre-footer-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.pre-footer-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER INSTITUCIONAL
   ========================================================================== */
.site-footer {
  background-color: #080A0D;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand .logo-brand {
  width: 100%;
  max-width: 380px;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.6;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent-gold-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.footer-social-link svg {
  color: var(--accent-gold-primary);
  flex-shrink: 0;
}

.footer-social-link:hover {
  color: #FFFFFF;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent-gold-primary);
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-secondary);
}

.footer-info-item svg {
  color: var(--accent-gold-primary);
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.oab-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 900px;
  line-height: 1.6;
}

/* ==========================================================================
   FLOATING ACTION BUTTON (FAB WHATSAPP)
   ========================================================================== */
.fab-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.fab-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #15803D !important;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(21, 128, 61, 0.4);
  transition: var(--transition-smooth);
  animation: pulse-glow 2.5s infinite;
}

.fab-button:hover {
  transform: scale(1.1);
  background-color: #16A34A !important;
  box-shadow: 0 12px 30px rgba(21, 128, 61, 0.5);
}

.fab-tooltip {
  background: rgba(20, 23, 29, 0.95);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold-subtle);
  box-shadow: var(--shadow-subtle);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-smooth);
}

.fab-whatsapp:hover .fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.6);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(21, 128, 61, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(21, 128, 61, 0);
  }
}

/* --- Reusable Institutional Geometric Pattern (.bg-lda-pattern) --- */
.bg-lda-pattern {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #131519;
  background-image: none;
}

.bg-lda-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='138.56' viewBox='0 0 120 138.56'%3E%3Cg fill='none' stroke='%23C8A96A' stroke-width='1' stroke-linecap='square'%3E%3Cpath d='M0 34.64L60 0L120 34.64M0 51.96L60 17.32L120 51.96M0 103.92L60 69.28L120 103.92M0 121.24L60 86.60L120 121.24'/%3E%3Cpath d='M0 69.28L60 103.92L120 69.28M0 138.56L60 103.92L120 138.56' stroke-opacity='0.65'/%3E%3Cpath d='M0 0V69.28M60 0V69.28M120 0V69.28M30 51.96V121.24M90 51.96V121.24'/%3E%3Cpath d='M15 43.30V95.26M45 25.98V77.94M75 25.98V77.94M105 43.30V95.26' stroke-opacity='0.55'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 138.56px;
  background-repeat: repeat;
  opacity: 0.25;
  z-index: -2;
  pointer-events: none;
}

.bg-lda-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(19, 21, 25, 0.50) 0%, rgba(19, 21, 25, 0.92) 100%);
  z-index: -1;
  pointer-events: none;
}

.bg-lda-pattern > .container {
  position: relative;
  z-index: 1;
}

/* --- Anchor Offset for Sticky Header & Mobile-Only Controls (Hidden on Desktop) --- */
section[id],
#sobre,
#areas,
#diferenciais,
#como-funciona,
#faq,
#contato {
  scroll-margin-top: 90px;
}

.mobile-read-more-btn,
.mobile-sobre-partners,
.practice-tabs,
.differentials-carousel-nav,
.mobile-map-toggle-btn,
.text-mobile-only,
.hero-mobile-authority {
  display: none;
}

/* ==========================================================================
   COMPLETE RESPONSIVE DESIGN & MOBILE OPTIMIZATION (320px to 1024px)
   ========================================================================== */

/* --- Tablet / Laptop (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
  }

  .differentials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* --- Mobile / Tablet Portrait (max-width: 992px) --- */
@media (max-width: 992px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .hero-section {
    padding: 3rem 0 4rem;
    min-height: auto;
    display: block;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-left {
    display: contents;
  }

  .hero-tag {
    order: 1;
    margin-bottom: 0.9rem;
    align-self: flex-start;
  }

  .hero-title {
    order: 2;
    margin-bottom: 0.9rem;
  }

  .hero-subtitle {
    order: 3;
    margin-bottom: 1.35rem;
  }

  .hero-right {
    order: 4;
    margin-top: 0;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .hero-cta-group {
    order: 5;
    margin-bottom: 1.5rem;
    width: 100%;
    align-items: stretch;
  }

  .trust-badges {
    order: 6;
    width: 100%;
  }

  .hero-visual-card {
    max-height: none;
    aspect-ratio: 4 / 3;
    width: 100%;
  }

  .pain-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Mobile Landscape & Medium Phones (max-width: 768px) --- */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }

  #sobre,
  #areas,
  #diferenciais,
  #como-funciona,
  #faq,
  #contato {
    scroll-margin-top: 90px;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1.25rem;
  }

  .section-padding {
    padding: 3rem 1.25rem;
  }

  .section-padding > .container {
    padding-left: 0;
    padding-right: 0;
  }

  .header-sticky {
    padding: 0.2rem 0;
  }

  .nav-logo-mark {
    height: 40px;
  }

  .nav-logo-subtext {
    font-size: 0.50rem;
    letter-spacing: 0.14em;
  }

  .nav-logo-img {
    height: 44px;
  }

  .logo-title {
    font-size: 1.2rem;
  }

  .logo-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.22em;
  }

  /* Hide duplicate WhatsApp button in navbar on mobile (keep logo + MENU button) */
  .header-sticky .btn-primary-whatsapp {
    display: none !important;
  }

  .text-desktop-only {
    display: none;
  }

  .text-mobile-only {
    display: inline;
  }

  /* Hero Mobile editorial: usa a utilitária global .bg-lda-pattern com enquadramento mobile */
  .hero-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0 2.75rem;
  }

  .hero-grid {
    align-items: center;
    text-align: center;
  }

  /* Foto dos sócios em destaque logo abaixo do subtítulo e acima do botão CTA */
  .hero-right {
    display: block !important;
    width: 100%;
    margin: 0 0 1.65rem;
  }

  .hero-visual-card {
    border-radius: 14px;
    aspect-ratio: 16 / 11;
    border: 1px solid rgba(200, 169, 106, 0.28);
    box-shadow: 0 18px 38px -14px rgba(0, 0, 0, 0.85);
    background: #141619;
  }

  .hero-visual-card > img {
    object-fit: cover;
    object-position: center top;
  }

  .hero-visual-overlay {
    background: linear-gradient(180deg, transparent 62%, rgba(20, 22, 25, 0.88) 100%);
  }

  .hero-floating-badge {
    display: none !important;
  }

  /* Hero tag centralizada em uma única linha */
  .hero-tag {
    align-self: center;
    justify-content: center;
    font-size: clamp(0.82rem, 3.5vw, 0.96rem);
    gap: 0.6rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    margin-bottom: 1rem;
    color: #C8A96A;
  }

  .hero-tag::before,
  .hero-tag::after {
    width: 24px;
    height: 1.5px;
    background-color: #C8A96A;
  }

  .hero-title {
    text-align: center;
    font-size: clamp(1.78rem, 6.4vw, 2.25rem);
    line-height: 1.18;
    margin-bottom: 0;
    max-width: 19ch;
    overflow-wrap: break-word;
  }

  .hero-title .text-gold-gradient {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #C8A96A;
    color: #C8A96A;
  }

  .hero-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: #C8A96A;
    margin: 1rem auto 1rem;
    border-radius: 1px;
  }

  .heading-md {
    font-size: clamp(1.45rem, 5.8vw, 1.95rem);
    line-height: 1.25;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .section-header {
    margin: 0 auto 2rem;
  }

  .hero-subtitle {
    text-align: center;
    font-size: 0.94rem;
    line-height: 1.55;
    max-width: 34ch;
    margin: 0 auto 1.35rem;
    color: rgba(244, 241, 234, 0.84);
  }

  .hero-cta-group {
    margin-bottom: 0;
    align-items: center;
    gap: 0.95rem;
  }

  .hero-cta-group .btn-primary-whatsapp {
    width: auto;
    max-width: 100%;
    padding: 0.72rem 1.45rem !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 26px -6px rgba(21, 128, 61, 0.5);
    justify-content: center;
    white-space: nowrap;
  }

  .hero-cta-group .btn-wa-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .hero-mobile-authority {
    display: block;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(200, 169, 106, 0.88);
    text-align: center;
    line-height: 1.45;
    max-width: 34ch;
  }

  .hero-section .microcopy,
  .hero-section .trust-badges {
    display: none;
  }

  .practice-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Seção Sobre mobile: oculta foto duplicada abaixo da Hero + Ler mais sob demanda */
  .pain-image-wrapper {
    display: none;
  }

  .pain-content-card {
    gap: 1rem;
  }

  .pain-text {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .pain-text-extra {
    display: none;
  }

  .pain-content-card.expanded .pain-text-extra {
    display: block;
  }

  .mobile-read-more-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-gold-subtle);
    background: rgba(194, 163, 107, 0.08);
    color: var(--accent-gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: var(--transition-smooth);
  }

  .mobile-read-more-btn:active {
    background: rgba(194, 163, 107, 0.2);
  }

  /* Foto duplicada dos sócios oculta em Sobre no mobile (já está na Hero) + folga na citação para o FAB */
  .mobile-sobre-partners {
    display: none !important;
  }

  .pain-quote-box {
    padding-left: 1rem;
    padding-right: 3.75rem;
    padding-bottom: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.94rem;
    line-height: 1.65;
  }

  /* Botão Flutuante (FAB) inteligente no mobile: oculto na Hero, aparece após rolar > 350px */
  .fab-whatsapp {
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.92);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .fab-whatsapp.fab-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  /* Áreas de Atuação mobile: Abas (Tabs) deslizáveis exibindo 1 card por vez */
  .practice-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.15rem 1rem 0.35rem;
    margin: 0 -1rem 1.25rem;
  }

  .practice-tabs::-webkit-scrollbar {
    display: none;
  }

  .practice-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.55rem 1.05rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-gold-subtle);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    transition: var(--transition-smooth);
  }

  .practice-tab-btn.active {
    background: var(--accent-gold-primary);
    color: #0D0F0D;
    border-color: var(--accent-gold-primary);
    box-shadow: 0 6px 18px -4px rgba(194, 163, 107, 0.4);
  }

  .practice-card {
    display: none;
    padding: 1.45rem 1.25rem;
  }

  .practice-card.active-tab {
    display: flex;
  }

  .practice-card:hover {
    transform: none;
  }

  /* Diferenciais mobile: Carrossel horizontal arrastável (84% do card + setas + bolinhas) */
  .differentials-grid {
    position: relative;
    display: flex !important;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
    gap: 1rem;
    padding: 0 1.25rem 1rem;
    margin: 0 -1.25rem;
    perspective: none;
  }

  .differentials-grid::-webkit-scrollbar {
    display: none;
  }

  .differentials-grid .flip-card-container {
    flex: 0 0 84%;
    min-width: 84%;
    max-width: 84%;
    scroll-snap-align: center;
    height: 230px;
    perspective: 1200px;
    -webkit-tap-highlight-color: transparent;
  }

  .differentials-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .carousel-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-gold-subtle);
    background: var(--bg-card);
    color: var(--accent-gold-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
  }

  .carousel-arrow-btn:active {
    background: rgba(194, 163, 107, 0.2);
    border-color: var(--accent-gold-primary);
  }

  .carousel-arrow-btn:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(194, 163, 107, 0.3);
    transition: var(--transition-smooth);
    padding: 0;
  }

  .carousel-dot.active {
    width: 24px;
    background: var(--accent-gold-primary);
  }

  .flip-card-container .flip-card-inner {
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .flip-card-container.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }

  .flip-card-front,
  .flip-card-back {
    padding: 1.35rem 1.25rem;
    overflow-wrap: break-word;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: opacity 0.25s ease;
  }

  .flip-card-front {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }

  .flip-card-back {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    overflow-y: auto;
  }

  .flip-card-container.flipped .flip-card-front {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
  }

  .flip-card-container.flipped .flip-card-back {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
  }

  .differential-title {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .differential-desc-back {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: 0.4rem;
  }

  /* Passo a Passo mobile: Lista vertical compacta (ícone/número à esquerda, texto à direita) */
  .journey-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
  }

  .step-card {
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    row-gap: 0.22rem;
    align-items: start;
    padding: 1rem 1.05rem;
    height: auto;
    border-radius: var(--radius-sm);
  }

  .step-card:hover {
    transform: none;
  }

  .step-header {
    grid-column: 1;
    grid-row: 1 / 3;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(194, 163, 107, 0.1);
    border: 1px solid var(--border-gold-subtle);
    padding: 0.3rem;
  }

  .step-badge {
    font-size: 0.56rem;
    padding: 0;
    border: none;
    background: transparent;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
  }

  .step-icon {
    width: 16px;
    height: 16px;
  }

  .step-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.05rem;
    margin-bottom: 0;
    line-height: 1.25;
  }

  .step-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .faq-button {
    padding: 1.15rem 1.15rem;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 0 1.15rem;
    font-size: 0.92rem;
  }

  .faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.15rem 1.5rem 1.15rem;
  }

  /* Contact card & map mobile optimization */
  .contact-info-card {
    padding: 1.75rem 1.25rem;
  }

  .contact-details-list {
    gap: 1.25rem;
    margin: 1.5rem 0;
  }

  .contact-phones {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.3rem !important;
  }

  .contact-phone-sep {
    display: none;
  }

  .contact-info-card .btn-primary-whatsapp {
    width: 100%;
    padding: 0.9rem 1.25rem !important;
    font-size: 0.95rem !important;
    border-radius: var(--radius-md) !important;
    white-space: nowrap;
  }

  .contact-map-actions {
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
  }

  .btn-gmaps,
  .btn-waze {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 0.78rem 0.65rem !important;
    font-size: 0.88rem !important;
    justify-content: center !important;
    white-space: nowrap;
  }

  /* Mapa sob demanda no mobile (oculto atrás do botão "Abrir mapa interativo") */
  .mobile-map-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-gold-subtle);
    background: rgba(194, 163, 107, 0.06);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
  }

  .mobile-map-toggle-btn[aria-expanded="true"] {
    border-style: solid;
    border-color: var(--accent-gold-primary);
    color: var(--accent-gold-light);
    background: rgba(194, 163, 107, 0.14);
  }

  .map-card {
    display: none;
    min-height: 220px;
    height: 220px;
  }

  .map-card.mobile-open {
    display: block;
  }

  .map-card iframe {
    min-height: 220px;
    height: 220px;
  }

  .pre-footer-section {
    padding: 3rem 1.25rem;
  }

  .pre-footer-section > .container {
    padding-left: 0;
    padding-right: 0;
  }

  .pre-footer-cta {
    padding: 2rem 1.25rem;
  }

  .pre-footer-title {
    font-size: 1.6rem;
  }

  .pre-footer-cta .btn-primary-whatsapp {
    width: auto;
    max-width: 100%;
    padding: 0.85rem 1.4rem !important;
    font-size: 0.95rem !important;
    border-radius: var(--radius-full) !important;
    justify-content: center;
    white-space: nowrap;
  }

  .pre-footer-cta .btn-wa-icon {
    width: 20px !important;
    height: 20px !important;
  }

  /* Centered, uniform footer with safe 100px clearance above FAB */
  .site-footer {
    padding: 3rem 1.25rem 100px;
    text-align: center;
  }

  .site-footer > .container {
    padding-left: 0;
    padding-right: 0;
  }

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

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    margin: 0.75rem auto 0;
  }

  .footer-links {
    align-items: center;
  }

  .footer-info-item {
    justify-content: center;
  }
}

/* --- Mobile Portrait & Small Phones (max-width: 600px) --- */
@media (max-width: 600px) {
  .differentials-grid .flip-card-container {
    height: 210px;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 1.3rem 1.15rem;
  }

  .fab-whatsapp {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .fab-button {
    width: 50px;
    height: 50px;
  }

  .fab-tooltip {
    display: none;
  }
}

/* --- Extra Small Mobile Phones (max-width: 380px) --- */
@media (max-width: 380px) {
  .container {
    padding: 0 1rem;
  }

  .logo-title {
    font-size: 1.05rem;
  }

  .hero-tag {
    font-size: 0.82rem;
    gap: 0.45rem;
    padding: 0;
    letter-spacing: 0.04em;
  }

  .hero-tag::before,
  .hero-tag::after {
    width: 20px;
  }

  .heading-lg {
    font-size: 1.55rem;
  }

  .heading-md {
    font-size: clamp(1.35rem, 5.5vw, 1.6rem);
  }
}