/* ============================================
   MUNHOS ADVOCACIA — Design System
   Paleta: Terracota + Creme + Oliva
   Tom: Acolhedor + Próximo + Claro
   ============================================ */

:root {
  /* Cores principais — Paleta "Terracota & Creme" (acolhedora) */
  --black: #33271e;        /* marrom espresso quente (seções escuras + títulos) */
  --black-soft: #463528;
  --gold: #b5654a;         /* terracota (cor de acento: botões, links, detalhes) */
  --gold-light: #c9805f;
  --gold-dark: #8c4a35;    /* terracota escuro (hover, eyebrows) */
  --white: #ffffff;
  --off-white: #fbf6f0;    /* creme (fundo alternado) */
  --olive: #6b6a45;        /* oliva (acento secundário: área empresarial) */
  --olive-dark: #54532f;

  /* Cinzas quentes */
  --gray-50: #f7f2ec;
  --gray-100: #ebe3d9;
  --gray-300: #cdbfb0;
  --gray-500: #8a7b6c;
  --gray-700: #5a4d42;
  --gray-900: #33271e;

  /* Status (uso interno) */
  --green: #5b7b6f;
  --rust: #b5654a;
  --amber: #d6a35c;

  /* Tipografia */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaçamentos */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;

  /* Sombras (quentes e suaves) */
  --shadow-sm: 0 2px 10px rgba(51, 39, 30, 0.06);
  --shadow-md: 0 10px 30px rgba(51, 39, 30, 0.09);
  --shadow-lg: 0 20px 50px rgba(51, 39, 30, 0.13);

  /* Cantos arredondados (toque acolhedor) */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Transições */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;
}

/* ============================================
   RESET
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ============================================
   TIPOGRAFIA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--black);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--gray-700);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
  display: inline-block;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-sm {
  padding: var(--space-xl) 0;
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark p {
  color: var(--gray-300);
}

.section--gold-accent {
  background: var(--off-white);
  position: relative;
}

/* ============================================
   BOTÕES — pílula, sem caixa-alta (mais amigável)
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 1.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  border-radius: var(--radius-pill);
  transition: all var(--t-base);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(181, 101, 74, 0.28);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(181, 101, 74, 0.36);
}

.btn-black {
  background: var(--black);
  color: var(--white);
}
.btn-black:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-300);
}
.btn-ghost:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost-light:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform var(--t-base);
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 100;
  transition: box-shadow var(--t-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--space-md);
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-mark {
  font-size: 1.6rem;
}

.logo-sub {
  font-size: 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 4px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-main a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  color: var(--gray-700);
}

.nav-main a:not(.btn):hover {
  color: var(--gold-dark);
}

.nav-main a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: width var(--t-base);
}

.nav-main a:not(.btn):hover::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle::before {
  display: none;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: var(--white);
  min-width: 240px;
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  border-top: 3px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--t-base);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.nav-dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--black);
}

.nav-dropdown-menu a::after {
  display: none;
}

.mobile-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  transition: all var(--t-base);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  background: linear-gradient(150deg, var(--black) 0%, var(--black-soft) 60%, #5a3a2a 100%);
  color: var(--white);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(circle at 78% 28%, rgba(214, 163, 92, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.hero h1 .accent {
  color: var(--gold-light);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-lg);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Selo "primeira consulta facilitada" no hero */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: var(--space-lg) auto 0;
  max-width: max-content;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  text-align: left;
}

.hero-trust strong { color: var(--white); font-weight: 600; }

.hero-trust-ico {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  font-size: 1rem;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--white);
  padding: var(--space-lg);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
}

.card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-area {
  background: var(--white);
  padding: var(--space-xl);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-slow);
  position: relative;
  overflow: hidden;
}

.card-area:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: transparent;
}

.card-area h3 {
  margin-bottom: var(--space-sm);
}

/* Ícone redondo no topo do card de área */
.card-area-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: var(--off-white);
  border-radius: 18px;
  margin-bottom: var(--space-md);
}
.card-area--pj .card-area-icon { background: #eef0e6; }

/* CHIPS — substituem a antiga lista com "pontinhos" */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: var(--space-md) 0 var(--space-lg);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--t-base);
}

.chip:hover {
  background: var(--white);
  border-color: var(--gold);
  color: var(--black);
  transform: translateY(-1px);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.card-area--pj .chip-dot { background: var(--olive); }
.card-area--pj .chip:hover { border-color: var(--olive); }

/* Lista antiga (mantida p/ compatibilidade de outras páginas) */
.card-area-list {
  list-style: none;
  margin: var(--space-md) 0;
}

.card-area-list li {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-area-list li:last-child {
  border-bottom: none;
}

.card-area-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  margin-top: var(--space-sm);
  transition: gap var(--t-base);
}

.card-link:hover {
  gap: 14px;
  color: var(--gold);
}

/* Grids */
.grid {
  display: grid;
  gap: var(--space-md);
}

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

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

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

/* ============================================
   PHOTO FRAME
   ============================================ */

.photo-frame {
  aspect-ratio: 3/4;
  position: relative;
  background: var(--gray-100);
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.photo-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.process-step {
  text-align: center;
  position: relative;
  padding: var(--space-md);
}

.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--off-white);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
}

.process-step h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.process-step p {
  font-size: 0.9rem;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
}

.faq-item summary {
  padding: var(--space-md) 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  transition: color var(--t-base);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform var(--t-base);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--gold-dark);
}

.faq-item-content {
  padding-bottom: var(--space-md);
  color: var(--gray-700);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 101, 74, 0.12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: var(--space-2xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-300);
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.625rem;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--gray-300);
}

.footer-col ul a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* ============================================
   PÁGINA HUB (Família / Empresarial)
   ============================================ */

.hub-hero {
  background: var(--off-white);
  padding: var(--space-2xl) 0;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}

.hub-hero h1 {
  margin-bottom: var(--space-md);
}

.hub-services {
  padding: var(--space-2xl) 0;
}

.hub-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* ============================================
   LANDING PAGE DE SERVIÇO
   ============================================ */

.service-hero {
  background: linear-gradient(150deg, var(--black) 0%, var(--black-soft) 70%, #5a3a2a 100%);
  color: var(--white);
  padding: var(--space-2xl) 0;
  position: relative;
}

.service-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: none;
  margin-bottom: var(--space-md);
}

.service-hero .breadcrumb a {
  color: var(--gold-light);
}

.service-hero h1 {
  color: var(--white);
  max-width: 800px;
}

.service-hero-actions {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ============================================
   CTA FINAL
   ============================================ */

.cta-final {
  background: linear-gradient(135deg, var(--black), #5a3a2a);
  color: var(--white);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.cta-final h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-final p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

/* Cartão "primeira consulta facilitada" */
.facil-card {
  max-width: 540px;
  margin: 0 auto var(--space-lg);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.facil-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(181, 101, 74, 0.14);
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

.facil-card .facil-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

.facil-card .facil-text {
  color: var(--gray-700);
  font-size: 0.98rem;
  margin-bottom: 0;
}

.facil-card .facil-text strong { color: var(--black); }

/* ============================================
   RESPONSIVO
   ============================================ */

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

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

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

@media (max-width: 720px) {
  :root {
    --space-2xl: 4rem;
    --space-xl: 3rem;
  }

  .nav-main {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .grid-2, .grid-3, .grid-4,
  .hub-services-grid,
  .process,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    margin-top: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}
