/* ==========================================================================
   DEYWID JR. LIMA ADVOCACIA — DIREITO PREVIDENCIÁRIO
   Design System & Master Stylesheet
   ========================================================================== */

:root {
  /* Brand & Neutrals */
  --navy: #11243D;
  --navy-deep: #0A1729;
  --near-black: #060B12;
  --off-white: #F7F6F2;
  --white: #FFFFFF;
  --surface-muted: #EFEEE9;
  --surface-card: #FFFFFF;
  --surface-dark-card: rgba(255, 255, 255, 0.04);
  --surface-dark-card-hover: rgba(255, 255, 255, 0.07);
  --text-primary: #172333;
  --text-secondary: #4D5967;
  --text-light-primary: #F7F9FC;
  --text-light-secondary: #B4C0D0;
  --border: #DCE1E7;
  --border-light: #E7EBF0;
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-dark-hover: rgba(255, 255, 255, 0.24);
  --blue-detail: #365879;
  --blue-accent-bg: #EEF4FA;
  --focus: #2563EB;
  --whatsapp: #18794E;
  --whatsapp-hover: #136340;
  --whatsapp-focus: #0D4E31;

  /* Gradients */
  --gradient-dark: linear-gradient(125deg, #172F4D 0%, #0B192D 55%, #060B12 100%);
  --hero-overlay: linear-gradient(135deg, rgba(17, 36, 61, 0.88) 0%, rgba(10, 23, 41, 0.92) 55%, rgba(6, 11, 18, 0.96) 100%);

  /* Typography */
  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing Scale */
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;

  /* Layout */
  --container-max: 1160px;
  --container-narrow: 820px;
  --radius-card: 16px;
  --radius-btn: 11px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(17, 36, 61, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(17, 36, 61, 0.06);
  --shadow-card-hover: 0 10px 28px -4px rgba(17, 36, 61, 0.12);
  --shadow-dark: 0 12px 36px rgba(0, 0, 0, 0.35);
  --shadow-btn: 0 4px 14px rgba(24, 121, 78, 0.28);
  --shadow-btn-hover: 0 6px 20px rgba(24, 121, 78, 0.38);

  /* Transitions */
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 260ms 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%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Skip link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 10000;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: top var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--focus);
}

/* Accessible focus ring */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ==========================================================================
   Typography & Hierarchy
   ========================================================================== */

h1, h2, h3, .serif-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: inherit;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw + 0.5rem, 2.375rem); /* 28px - 38px */
  color: var(--navy);
  margin-bottom: var(--space-16);
  max-width: 780px;
}

.section-title.title-light {
  color: var(--white);
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.2vw + 0.2rem, 1.1875rem); /* 17px - 19px */
  color: var(--text-secondary);
  line-height: 1.62;
  max-width: 720px;
  margin-bottom: var(--space-48);
}

.section-subtitle.subtitle-light {
  color: var(--text-light-secondary);
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Layout Containers & Section Wrappers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.lp-section {
  padding-top: clamp(48px, 6vw + 16px, 96px);
  padding-bottom: clamp(48px, 6vw + 16px, 96px);
  position: relative;
}

.bg-off-white {
  background-color: var(--off-white);
}

.bg-white {
  background-color: var(--white);
}

.bg-dark-gradient {
  background: var(--gradient-dark);
  color: var(--text-light-primary);
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 15px 32px;
  min-height: 52px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  color: var(--white);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

/* Brief shimmer reflex on hover */
.btn-whatsapp::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-whatsapp:hover::after {
  left: 140%;
}

.btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 690px;
  min-height: min(780px, 86dvh);
  padding-top: clamp(64px, 8vw + 24px, 112px);
  padding-bottom: clamp(64px, 8vw + 24px, 112px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--navy-deep);
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 1;
  filter: saturate(0.9);
}

.hero-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(6, 18, 31, 0.89) 0%, rgba(6, 18, 31, 0.72) 54%, rgba(6, 18, 31, 0.27) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  color: var(--white);
}

.hero-logo-wrapper {
  margin-bottom: var(--space-32);
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: auto;
  max-width: 230px;
  height: auto;
  max-height: 48px;
  filter: brightness(0) invert(1); /* Ensure crisp white logo against dark hero */
}

.hero-h1 {
  font-size: clamp(1.875rem, 4vw + 0.5rem, 3.125rem); /* 30px - 50px */
  line-height: 1.22;
  color: var(--white);
  margin-bottom: var(--space-24);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subheadline {
  font-size: clamp(1.05rem, 1.4vw + 0.3rem, 1.25rem); /* 17px - 20px */
  line-height: 1.62;
  color: var(--text-light-secondary);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-32);
}

.hero-cta-wrapper {
  margin-bottom: var(--space-24);
}

.hero-trust-line {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-trust-bullet {
  color: var(--blue-detail);
}

/* ==========================================================================
   2. SERVIÇOS (SERVICES)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: var(--space-48);
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: #B8C8D9;
}

.service-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--blue-accent-bg);
  border: 1px solid rgba(54, 88, 121, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-24);
  color: var(--navy);
  flex-shrink: 0;
}

.service-icon {
  width: 26px;
  height: 26px;
  stroke: var(--navy);
  stroke-width: 1.8;
  fill: none;
}

.service-title {
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: var(--space-12);
}

.service-desc {
  font-size: 0.9875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.services-cta-wrapper {
  text-align: center;
}

/* ==========================================================================
   3. SOBRE (ABOUT)
   ========================================================================== */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about-photo-wrapper {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-title {
  font-size: clamp(1.75rem, 3vw + 0.3rem, 2.25rem);
  color: var(--navy);
  margin-bottom: var(--space-24);
  line-height: 1.28;
}

.about-text p {
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: var(--space-16);
}

.about-lawyer-sign {
  margin-top: var(--space-16);
  margin-bottom: var(--space-32);
}

.about-lawyer-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   4. DIFERENCIAIS (DIFFERENTIALS)
   ========================================================================== */

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: var(--space-48);
}

.diff-card {
  background: var(--surface-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  backdrop-filter: blur(8px);
}

.diff-card:hover {
  background: var(--surface-dark-card-hover);
  border-color: var(--border-dark-hover);
  transform: translateY(-2px);
}

.diff-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(54, 88, 121, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-24);
  color: var(--text-light-primary);
  flex-shrink: 0;
}

.diff-icon {
  width: 24px;
  height: 24px;
  stroke: #E2E8F0;
  stroke-width: 1.8;
  fill: none;
}

.diff-title {
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: var(--space-12);
}

.diff-desc {
  font-size: 0.9875rem;
  line-height: 1.62;
  color: var(--text-light-secondary);
}

.diff-cta-wrapper {
  text-align: center;
}

/* ==========================================================================
   5. CREDIBILIDADE E SEGURANÇA INSTITUCIONAL
   ========================================================================== */

.credibility-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--blue-detail);
  border-radius: var(--radius-card);
  padding: clamp(32px, 5vw, 48px);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.credibility-title {
  font-size: clamp(1.6rem, 2.6vw + 0.3rem, 2.125rem);
  color: var(--navy);
  margin-bottom: var(--space-24);
}

.credibility-text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-16);
}

.credibility-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   6. FAQ
   ========================================================================== */

.faq-list {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-48);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background-color: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}

.faq-item.is-open {
  border-color: #B8C8D9;
  box-shadow: var(--shadow-sm);
}

.faq-header {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  transition: color var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--blue-detail);
}

.faq-icon-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--blue-detail);
  stroke-width: 2.2;
  fill: none;
  transition: transform var(--transition-normal);
}

.faq-item.is-open .faq-icon-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel p {
  padding: 0 24px 22px 24px;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-cta-wrapper {
  text-align: center;
}

/* ==========================================================================
   7. CONTATO, LOCALIZAÇÃO E ENCERRAMENTO INTEGRADO
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
  margin-bottom: var(--space-64);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: var(--space-32);
  margin-bottom: var(--space-32);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.contact-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}

.contact-detail-content {
  display: flex;
  flex-direction: column;
}

.contact-detail-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
}

.contact-detail-value {
  font-weight: 500;
  color: var(--navy);
  transition: color var(--transition-fast);
}

.contact-detail-value:hover {
  color: var(--blue-detail);
}

/* Map Region Box */
.map-region-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.map-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  background-color: #FAF9F6;
}

.map-region-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.map-region-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.map-container {
  position: relative;
  width: 100%;
  height: 320px;
  background-color: var(--surface-muted);
}

.map-consent-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: #F1F4F8;
  z-index: 2;
}

.map-consent-notice {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 10px;
  margin-bottom: 18px;
  max-width: 320px;
}

.btn-load-map {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.btn-load-map:hover {
  background-color: var(--blue-detail);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-footer-link {
  padding: 14px 22px;
  background: #FAF9F6;
  border-top: 1px solid var(--border-light);
  text-align: right;
}

.map-external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-detail);
  transition: color var(--transition-fast);
}

.map-external-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* Encerramento Integrado (No Footer Tag) */
.integrated-legal-closure {
  margin-top: var(--space-48);
  padding-top: var(--space-32);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9125rem;
  line-height: 1.6;
}

.legal-brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.legal-oab {
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.legal-copyright {
  margin-bottom: 12px;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-weight: 500;
}

.legal-links a, .btn-cookie-link {
  color: var(--navy);
  transition: color var(--transition-fast);
}

.legal-links a:hover, .btn-cookie-link:hover {
  color: var(--blue-detail);
  text-decoration: underline;
}

.btn-cookie-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.legal-disclaimer {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.84rem;
  color: #6C7A89;
  line-height: 1.55;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */

.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-pill);
  background-color: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(24, 121, 78, 0.45);
  z-index: 990;
  transition: transform var(--transition-fast), background-color var(--transition-fast), bottom var(--transition-normal);
  text-decoration: none;
}

.floating-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.06);
  color: var(--white);
}

.floating-whatsapp:active {
  transform: scale(0.96);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ==========================================================================
   Cookie Banner & Preferences Modal
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--navy-deep);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 24px;
  z-index: 1000;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--text-light-secondary);
  flex: 1 1 500px;
}

.cookie-banner-text a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cookie {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn-cookie-accept {
  background-color: var(--white);
  color: var(--navy);
  border: 1px solid var(--white);
}

.btn-cookie-accept:hover {
  background-color: var(--surface-muted);
}

.btn-cookie-reject {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-cookie-reject:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-cookie-manage {
  background-color: transparent;
  color: var(--text-light-secondary);
  border: 1px solid transparent;
  text-decoration: underline;
}

.btn-cookie-manage:hover {
  color: var(--white);
}

/* Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 11, 18, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.cookie-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-card);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-dark);
  padding: 32px;
  position: relative;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-16);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.cookie-modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.cookie-modal-close:hover {
  color: var(--navy);
}

.cookie-category {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.cookie-category:last-of-type {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cookie-category-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}

.cookie-status-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: #E2E8F0;
  color: #475569;
}

.cookie-status-badge.active {
  background: #DCFCE7;
  color: #166534;
}

.cookie-category-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: 0.2s;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: var(--navy);
}

input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

.cookie-modal-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

.btn-modal-save {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.btn-modal-save:hover {
  background: var(--blue-detail);
}

/* ==========================================================================
   Legal Pages (Política de Privacidade / Termos de Uso)
   ========================================================================== */

.legal-page-header {
  background: var(--gradient-dark);
  color: var(--white);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.legal-back-nav {
  margin-bottom: var(--space-24);
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.legal-back-link:hover {
  color: var(--white);
}

.legal-page-title {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 2.75rem);
  color: var(--white);
  margin-bottom: 8px;
}

.legal-page-date {
  font-size: 0.9375rem;
  color: var(--text-light-secondary);
}

.legal-content-wrapper {
  background-color: var(--white);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.legal-prose {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text-primary);
}

.legal-prose h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
  line-height: 1.35;
}

.legal-prose p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.legal-prose a {
  color: var(--navy);
  text-decoration: underline;
  font-weight: 500;
}

.legal-prose a:hover {
  color: var(--blue-detail);
}

.legal-prose ul {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.legal-prose li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Responsive Breakpoints & Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 680px;
    padding-top: 52px;
    padding-bottom: 60px;
  }

  .hero-bg-img {
    opacity: 1;
    object-position: center 30%;
  }

  .hero-overlay-layer {
    background: linear-gradient(180deg, rgba(6, 18, 31, 0.73), rgba(6, 18, 31, 0.9));
  }

  .hero-logo-wrapper {
    margin-bottom: var(--space-24);
  }

  .hero-h1 {
    font-size: clamp(1.7rem, 5.8vw, 2.2rem);
    margin-bottom: var(--space-16);
  }

  .hero-subheadline {
    font-size: 1rem;
    line-height: 1.58;
    margin-bottom: var(--space-24);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .differentials-grid {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-photo-wrapper {
    max-width: 440px;
    margin: 0 auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }

  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-banner-actions .btn-cookie {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .hero-trust-line {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .service-card, .diff-card {
    padding: 24px 20px;
  }
}

/* Reduced Motion */
@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;
  }
}

/* Ajustes institucionais solicitados pelo cliente — outubro de 2026. */
.site-header {
  background: #060b12;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.header-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 122px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.header-logo-link { justify-self: start; }
.header-logo { width: 76px; height: auto; }
.header-contact { justify-self: end; font-size: .8rem; padding: 14px 20px; white-space: nowrap; }
.hero-bg-layer picture { width: 100%; height: 100%; }
.hero-content { text-align: center; max-width: 920px; margin-left: auto; margin-right: auto; }
.hero-practice {
  font-size: .75rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #d3e1e9;
  margin-bottom: 28px;
}
.hero-practice span { margin: 0 10px; }
.hero-brand {
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: .035em;
  margin-bottom: 32px;
}
.hero-brand span {
  display: block;
  font-family: var(--font-sans);
  font-size: .31em;
  letter-spacing: .4em;
  margin-top: 14px;
  color: #d3e1e9;
}
.hero-h1 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); max-width: 770px; margin-left: auto; margin-right: auto; font-weight: 400; }
.hero-subheadline { color: #e0e8ef; margin-left: auto; margin-right: auto; max-width: 780px; font-size: 1.08rem; }
.hero-trust-line { justify-content: center; }
.labor-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  margin-top: -24px;
  margin-bottom: 40px;
  background: #edf1f4;
}
.labor-card .service-icon-wrapper { flex-shrink: 0; margin-bottom: 0; }
.labor-card .service-title { margin-bottom: 8px; }
.denied-section { background: var(--navy-deep); color: var(--white); border-top: 3px solid #658599; }
.denied-layout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 56px; }
.denied-eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: #c2d1dd; margin-bottom: 18px; }
.denied-text { color: #d6e0e9; max-width: 760px; line-height: 1.8; }
.denied-layout > .btn { font-size: .88rem; }
@media (max-width: 768px) {
  .header-layout { grid-template-columns: 1fr; gap: 0; min-height: auto; padding-top: 16px; padding-bottom: 18px; }
  .header-logo { width: 56px; }
  .header-contact { display: none; }
  .hero-section { padding-top: 72px; padding-bottom: 80px; min-height: auto; }
  .hero-practice { font-size: .64rem; letter-spacing: .07em; margin-bottom: 26px; }
  .hero-practice span { margin: 0 3px; }
  .hero-brand { font-size: clamp(1.8rem, 7.1vw, 3rem); margin-bottom: 28px; }
  .hero-brand span { font-size: .37em; }
  .hero-h1 { font-size: clamp(1.5rem, 5.4vw, 2rem); }
  .hero-subheadline { font-size: 1rem; }
  .hero-trust-line { gap: 6px; font-size: .78rem; }
  .labor-card { gap: 16px; padding: 24px 20px; }
  .denied-layout { grid-template-columns: 1fr; gap: 28px; }
  .denied-layout > .btn { justify-self: start; }
}

/* Padronização dos contatos e ampliação das áreas de atuação. */
.family-card { margin-top: 0; }

/* Textos centralizados em todas as seções no celular. */
@media (max-width: 768px) {
  body { text-align: center; }
  .faq-trigger, .map-footer-link { text-align: center; }
  .section-title, .section-subtitle, .about-title, .denied-text {
    margin-left: auto;
    margin-right: auto;
  }
  .service-icon-wrapper, .diff-icon-wrapper {
    margin-left: auto;
    margin-right: auto;
  }
  .labor-card { flex-direction: column; align-items: center; }
  .contact-detail-item { flex-direction: column; align-items: center; }
  .contact-detail-content { align-items: center; }
  .faq-trigger { position: relative; justify-content: center; padding-left: 44px; padding-right: 44px; }
  .faq-icon-chevron { position: absolute; right: 16px; }
  .denied-layout > .btn { justify-self: center; }
  .cookie-banner-container, .cookie-banner-actions { justify-content: center; }
}
