/* ==========================================================================
   LEOPOLDO ADVOGADOS — DESIGN SYSTEM & STYLES
   Design System: Deep Navy & Sophisticated White
   Typography: DM Serif Display & Inter
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette */
  --navy-950: #061A2F;
  --navy-900: #08213B;
  --navy-800: #0B2D4D;
  --navy-700: #103B64;
  --blue-600: #1A5F9E;
  --blue-500: #2374BE;
  --blue-100: #EAF2F8;
  --blue-50: #F4F8FB;
  --white: #FFFFFF;
  --ink: #102235;
  --ink-light: #2A3F55;
  --muted: #58697A;
  --muted-light: #7E90A2;
  
  /* Borders & Dividers */
  --line-light: #D9E3EC;
  --line-light-subtle: #E8EFF5;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-dark-hover: rgba(255, 255, 255, 0.28);
  
  /* Focus & Accents */
  --focus-ring: #3B82F6;
  --focus-ring-offset: #061A2F;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #20BA5A;

  /* Typography */
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  /* Spacing Scale (8 / 16 / 24 / 32 / 48 / 64 / 96 / 128px) */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem;  /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem;    /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem;  /* 24px */
  --space-8: 2rem;    /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem;   /* 48px */
  --space-16: 4rem;   /* 64px */
  --space-20: 5rem;   /* 80px */
  --space-24: 6rem;   /* 96px */
  --space-32: 8rem;   /* 128px */

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(6, 26, 47, 0.04);
  --shadow-md: 0 4px 16px rgba(6, 26, 47, 0.06);
  --shadow-lg: 0 12px 32px rgba(6, 26, 47, 0.08);
  --shadow-card-hover: 0 16px 36px rgba(6, 26, 47, 0.12);
  --shadow-dark: 0 16px 40px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--navy-950);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

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

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

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

/* Accessible focus state */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-narrow {
  max-width: 860px;
}

.container-wide {
  max-width: 1240px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.section-title.light {
  color: var(--white);
}

.section-intro {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: var(--space-12);
}

.section-intro.light {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-600);
  margin-bottom: var(--space-3);
}

.eyebrow.light {
  color: #8DC2EE;
}

/* --- Button & CTA Component --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 1rem 1.85rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  min-height: 48px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* CTA on Dark Background: White button with deep navy text */
.btn-on-dark {
  background-color: var(--white);
  color: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.btn-on-dark:hover {
  background-color: #F0F6FC;
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.btn-on-dark:active {
  transform: translateY(0);
}

/* CTA on Light Background: Deep navy button with white text */
.btn-on-light {
  background-color: var(--navy-950);
  color: var(--white);
  border: 1px solid var(--navy-950);
  box-shadow: var(--shadow-md);
}

.btn-on-light:hover {
  background-color: var(--navy-800);
  border-color: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-on-light:active {
  transform: translateY(0);
}

/* Secondary ghost button for legal back links */
.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--line-dark);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* --- 1. Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--navy-950);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  color: var(--white);
  overflow: hidden;
}

/* Background image layer */
.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.28;
  filter: saturate(0.8) contrast(1.1);
}

/* Double overlay */
.hero-overlay-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center top, rgba(11, 45, 77, 0.72) 0%, rgba(6, 26, 47, 0.95) 85%);
  z-index: 2;
}

.hero-overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, var(--navy-950) 0%, transparent 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo placement above H1 */
.hero-logo-wrapper {
  margin-bottom: var(--space-8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: auto;
  max-width: 240px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.hero-h1 {
  font-size: clamp(2.35rem, 5vw, 3.65rem);
  font-weight: 400;
  line-height: 1.16;
  color: var(--white);
  margin-bottom: var(--space-6);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-text {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 760px;
  margin-bottom: var(--space-10);
  font-weight: 400;
}

.hero-cta-wrapper {
  margin-bottom: var(--space-8);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #38BDF8;
  display: inline-block;
}

/* --- 2. Serviços Section (White Surface) --- */
.servicos-section {
  background-color: var(--white);
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  position: relative;
}

.servicos-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--line-light-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.service-card:hover {
  border-color: #BCD4EC;
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
}

.service-card-title {
  font-size: 1.375rem;
  font-family: var(--font-serif);
  color: var(--navy-950);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.service-card-text {
  font-size: 0.9875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: auto;
}

.servicos-cta-container {
  text-align: center;
}

/* --- 3. Sobre Section (Navy Surface) --- */
.sobre-section {
  background-color: var(--navy-900);
  color: var(--white);
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  position: relative;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.sobre-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-16);
  align-items: center;
}

.sobre-content {
  display: flex;
  flex-direction: column;
}

.sobre-body-text {
  font-size: 1.0875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-6);
}

.sobre-body-text p + p {
  margin-top: var(--space-4);
}

.sobre-cta-wrap {
  margin-top: var(--space-4);
}

/* Lawyer Photo Card for Sobre */
.sobre-photo-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: var(--navy-950);
  display: flex;
  flex-direction: column;
}

.sobre-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3.8/4.8;
  overflow: hidden;
}

.sobre-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-smooth);
}

.sobre-photo-card:hover .sobre-photo-img {
  transform: scale(1.025);
}

.sobre-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(6, 26, 47, 0.95) 0%, rgba(6, 26, 47, 0.4) 60%, transparent 100%);
  pointer-events: none;
}

.sobre-photo-badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  z-index: 2;
  padding: var(--space-4) var(--space-5);
  background: rgba(6, 26, 47, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
}

.badge-lawyer-role {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8DC2EE;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.badge-lawyer-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.2;
}

.badge-lawyer-oab {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (Lado Direito da LP)
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28));
  transition: transform var(--transition-normal);
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
}

.floating-whatsapp:active {
  transform: translateY(0) scale(0.98);
}

.floating-whatsapp-icon-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  position: relative;
}

.floating-whatsapp-icon-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Pulse animation effect */
.floating-whatsapp-icon-btn::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.8;
  animation: waPulse 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

@keyframes waPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.floating-whatsapp-label {
  background-color: var(--navy-950);
  color: var(--white);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  letter-spacing: 0.01em;
  display: inline-block;
}

@media (max-width: 640px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 16px;
  }
  
  .floating-whatsapp-label {
    display: none; /* Icon-only on mobile for cleaner viewport */
  }

  .floating-whatsapp-icon-btn {
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp-icon-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* --- 4. Diferenciais Section (Soft Light Surface) --- */
.diferenciais-section {
  background-color: var(--blue-50);
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.diferenciais-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.diferencial-card {
  background-color: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.diferencial-card:hover {
  border-color: var(--blue-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.diferencial-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--blue-600);
  line-height: 1;
  margin-bottom: var(--space-4);
  font-weight: 400;
}

.diferencial-card-title {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: var(--space-3);
  line-height: 1.35;
}

.diferencial-card-text {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.diferenciais-cta-wrap {
  text-align: center;
}

/* --- 5. Credibilidade e Segurança Institucional (Deep Navy Surface) --- */
.credibilidade-section {
  background-color: var(--navy-950);
  color: var(--white);
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  position: relative;
  overflow: hidden;
}

.credibilidade-box {
  background: linear-gradient(135deg, rgba(11, 45, 77, 0.5) 0%, rgba(6, 26, 47, 0.85) 100%);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  position: relative;
  box-shadow: var(--shadow-dark);
}

.credibilidade-content {
  max-width: 820px;
  margin: 0 auto;
}

.credibilidade-title {
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  color: var(--white);
  margin-bottom: var(--space-6);
  line-height: 1.25;
}

.credibilidade-paragraphs {
  font-size: 1.0875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.credibilidade-paragraphs p + p {
  margin-top: var(--space-4);
}

.credibilidade-oab-inline {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.95rem;
}

.oab-inline-label {
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
  font-weight: 600;
}

.oab-inline-val {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  color: #8DC2EE;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.oab-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

/* --- 6. FAQ Section (White Surface) --- */
.faq-section {
  background-color: var(--white);
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.faq-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background-color: var(--white);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  border-color: #BCD4EC;
}

.faq-item.active {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-md);
}

.faq-button {
  width: 100%;
  text-align: left;
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-950);
  background: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-button:hover {
  color: var(--blue-600);
}

.faq-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.faq-item.active .faq-icon-wrap {
  transform: rotate(45deg);
  background-color: var(--navy-950);
  color: var(--white);
}

.faq-icon-wrap svg {
  width: 16px;
  height: 16px;
}

.faq-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}

.faq-item.active .faq-collapse {
  opacity: 1;
}

.faq-body {
  padding: 0 var(--space-6) var(--space-6) var(--space-6);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line-light-subtle);
  padding-top: var(--space-4);
}

.faq-cta-wrap {
  text-align: center;
}

/* --- 7. Contato e Localização Section (Navy Surface) --- */
.contato-section {
  background-color: var(--navy-900);
  color: var(--white);
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  position: relative;
  border-top: 1px solid var(--line-dark);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: stretch;
}

.contato-info-card {
  background-color: var(--navy-950);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-dark);
}

.contato-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: var(--space-3);
}

.contato-text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-8);
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.contact-channel-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.channel-icon {
  width: 24px;
  height: 24px;
  color: #8DC2EE;
  flex-shrink: 0;
  margin-top: 2px;
}

.channel-content {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.channel-val {
  font-size: 0.9875rem;
  color: var(--white);
  font-weight: 500;
  word-break: break-word;
}

.channel-val a:hover {
  color: #8DC2EE;
}

.contato-map-wrapper {
  background-color: var(--navy-950);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  box-shadow: var(--shadow-dark);
}

.map-header {
  padding: var(--space-4) var(--space-6);
  background-color: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.map-city-tag {
  font-size: 0.75rem;
  background-color: rgba(141, 194, 238, 0.15);
  color: #8DC2EE;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.map-iframe-container {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 380px;
  position: relative;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: contrast(1.05) saturate(1.1);
}

/* --- 8. Rodapé Legal --- */
.site-footer {
  background-color: var(--navy-950);
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid var(--line-dark);
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.footer-legal-text {
  line-height: 1.7;
}

.footer-legal-text span {
  display: inline-block;
  margin: 0 var(--space-2);
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-2);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

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

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  max-width: 520px;
  background-color: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: var(--white);
  z-index: 9999;
  box-shadow: var(--shadow-dark);
  display: none; /* Controlled by JS */
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.cookie-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-4);
}

.cookie-text a {
  color: #8DC2EE;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-btn-primary {
  background-color: var(--white);
  color: var(--navy-950);
  border: 1px solid var(--white);
}

.cookie-btn-primary:hover {
  background-color: #EAF2F8;
}

.cookie-btn-secondary {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.cookie-btn-text {
  background: none;
  border: none;
  color: #8DC2EE;
  text-decoration: underline;
  font-size: 0.875rem;
  padding: 0.6rem 0.5rem;
}

/* Modal for Preferences */
.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 26, 47, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.cookie-modal {
  background-color: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  padding: var(--space-8);
  color: var(--white);
  box-shadow: var(--shadow-dark);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.modal-header h3 {
  font-size: 1.35rem;
  color: var(--white);
}

.modal-close-btn {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  line-height: 1;
}

.cookie-pref-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pref-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--white);
}

.pref-info p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Custom switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--blue-600);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

input:disabled + .slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile First / Breakpoints)
   ========================================================================== */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .diferenciais-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sobre-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .contato-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* Mobile Devices (max-width: 640px) */
@media (max-width: 640px) {
  :root {
    --space-24: 4rem; /* Reduce vertical rhythm on small screens */
    --space-16: 3rem;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .hero-logo {
    max-width: 200px;
    max-height: 65px;
  }

  .hero-h1 {
    font-size: 2.15rem;
    line-height: 1.2;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-8);
  }

  .btn {
    width: 100%;
    padding: 0.95rem 1.4rem;
    font-size: 1rem;
  }

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

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

  .service-card,
  .diferencial-card {
    padding: var(--space-6) var(--space-5);
  }

  .cookie-banner {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  .footer-legal-text span {
    display: block;
    margin: 4px 0;
  }
}

/* Extra Small Phones (320px - 375px) */
@media (max-width: 375px) {
  .hero-h1 {
    font-size: 1.85rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

/* Integration accessibility additions; agency composition remains unchanged. */
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  z-index: 10001;
  background: #fff;
  color: #061A2F;
  border: 2px solid #061A2F;
  border-radius: .4rem;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.footer-preferences { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible + .slider {
  outline: 3px solid #8DC2EE;
  outline-offset: 4px;
}
dialog.cookie-modal-backdrop {
  margin: 0;
  border: 0;
  max-width: none;
  max-height: none;
  height: 100dvh;
  overflow-y: auto;
}
dialog.cookie-modal-backdrop[open] { display: flex; }
dialog.cookie-modal-backdrop::backdrop { background: transparent; }
.cookie-modal { max-height: calc(100dvh - 2rem); overflow-y: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
