:root {
  --color-primary:      #2C2C2C;
  --color-accent:       #4A7C59;
  --color-accent-dark:  #3A6347;
  --color-accent-light: #EEF4F0;
  --color-surface:      #FAFAF8;
  --color-surface-alt:  #FFFFFF;
  --color-text:         #1F1F1F;
  --color-text-muted:   #6B7280;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-surface);
}

/* Compensar navbar sticky nos links de âncora */
#sobre, #servicos, #contato { scroll-margin-top: 80px; }

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

/* Botões */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary:hover { background-color: var(--color-accent-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* Labels de seção */
.section-label {
  display: block;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

/* Títulos de seção */
.section-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Cards */
.card {
  background-color: var(--color-surface-alt);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--color-accent-light);
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

/* Formulário */
.form-input {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}
.form-input::placeholder { color: var(--color-text-muted); }

/* Links de navegação */
.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--color-accent); }

/* Placeholder de foto */
.photo-placeholder {
  background-color: #E5EDE8;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  min-height: 360px;
}
.photo-placeholder-initials {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

/* Linha decorativa do hero */
.accent-line {
  display: block;
  width: 3rem;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 9999px;
}

/* Links do rodapé */
.footer-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}
.footer-link:hover { color: #ffffff; }

/* ── HERO SPLIT ─────────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 85vh;
}
.hero-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 6rem 2rem;
  background-color: var(--color-primary);
}
.hero-split__text .accent-line { margin-left: 0; margin-right: 0; }
.hero-split__image {
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a;
  min-height: 400px;
}
.hero-split__image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top; display: block;
}
.hero-split__image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(44,44,44,0.35) 0%, transparent 60%);
  pointer-events: none;
}
.hero-image-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1e2e25 0%, #2a3d2f 50%, #1a2820 100%);
  color: rgba(255,255,255,0.25);
  font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; gap: 0.75rem;
}
.hero-image-placeholder svg { width: 3rem; height: 3rem; opacity: 0.3; }

@media (max-width: 767px) {
  .hero-split { grid-template-columns: 1fr; grid-template-rows: auto 280px; }
  .hero-split__text { padding: 4rem 1.5rem 3rem; }
}

/* ── DIFERENCIAIS ────────────────────────────────────────── */
.diferenciais-strip { background-color: var(--color-accent); padding: 3rem 1.5rem; }
.diferenciais-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; max-width: 72rem; margin: 0 auto; align-items: start;
}
.diferencial-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 0.5rem;
}
.diferencial-item + .diferencial-item { border-left: 1px solid rgba(255,255,255,0.2); }
.diferencial-item__value {
  font-family: var(--font-heading);
  font-size: 2.25rem; font-weight: 700; color: #fff; line-height: 1;
}
.diferencial-item__label {
  font-size: 0.875rem; color: rgba(255,255,255,0.82); line-height: 1.4; max-width: 10rem;
}

@media (max-width: 767px) {
  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
  .diferencial-item + .diferencial-item { border-left: none; }
  .diferencial-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.2); }
}
@media (max-width: 480px) {
  .diferenciais-grid { grid-template-columns: 1fr; }
  .diferencial-item:nth-child(odd) { border-right: none; }
}

/* ── FOTO DA ADVOGADA ────────────────────────────────────── */
.profile-photo-wrapper {
  border-radius: 0.75rem; overflow: hidden;
  aspect-ratio: 4 / 5; min-height: 360px;
  background-color: #E5EDE8; position: relative;
}
.profile-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.profile-photo-fallback {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center; background-color: #E5EDE8;
}
.profile-photo-fallback.is-visible { display: flex; }
.profile-photo-fallback__initials {
  font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--color-accent);
}

/* ── MENU MOBILE ─────────────────────────────────────────── */
.mobile-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  background-color: #ffffff;
}
.mobile-menu.is-open {
  max-height: 320px;
  border-top: 1px solid #E5E7EB;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.5rem 0;
}
.mobile-menu__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.875rem 0;
  border-bottom: 1px solid #F3F4F6;
  transition: color 0.15s ease;
}
.mobile-menu__link:hover { color: var(--color-accent); }
.mobile-menu__cta-wrapper {
  padding: 1.25rem 1.5rem;
}

/* ── CARDS COM IMAGEM ────────────────────────────────────── */
.card--with-image { padding-top: 0; overflow: hidden; }
.card-image {
  width: calc(100% + 4rem); margin-left: -2rem; margin-right: -2rem;
  margin-bottom: 1.5rem; height: 180px; overflow: hidden;
  background-color: #D1E0D5; position: relative;
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-image img { transform: scale(1.04); }
.card-image__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, #D1E0D5 100%);
}
.card-image__placeholder .card-icon { margin-bottom: 0; width: 3.5rem; height: 3.5rem; }

/* ── BOTÃO WHATSAPP FLUTUANTE ────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, bottom 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}
.whatsapp-float svg {
  width: 2rem;
  height: 2rem;
  fill: #ffffff;
}

/* ── BANNER DE COOKIES ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--color-primary);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  flex: 1;
  min-width: 0;
}
.cookie-banner__link { color: var(--color-accent-light); text-decoration: underline; }
.cookie-banner__link:hover { color: #ffffff; }
.cookie-banner__btn { flex-shrink: 0; white-space: nowrap; }
