/* ==========================================================================
   PEDRO LIMA · CORRETOR DE IMÓVEIS (CRECI-38.673)
   Design System: Verde Musgo Elegante, Bege Claro e Branco
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/display.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/texto.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* Paleta Verde Musgo & Bege Claro */
  --moss-950: #0e1510;
  --moss-900: #142017;
  --moss-850: #18261c;
  --moss-800: #1d2f23;
  --moss-700: #294130;
  --moss-600: #365540;
  --moss-500: #466b52;
  --moss-400: #5d8969;

  --sand-50:  #fbf9f5;
  --sand-100: #f4efe6;
  --sand-200: #e8dfcf;
  --sand-300: #d6c7b2;
  --sand-400: #bfae95;

  --gold-primary: #cba358;
  --gold-soft: rgba(203, 163, 88, 0.22);

  --paper: #fbf9f5;
  --paper-soft: rgba(251, 249, 245, 0.88);
  --paper-dim: rgba(251, 249, 245, 0.68);
  --paper-muted: rgba(251, 249, 245, 0.44);

  --edge: rgba(244, 239, 230, 0.12);
  --edge-strong: rgba(244, 239, 230, 0.26);

  --glow: rgba(70, 107, 82, 0.35);
  --veil-1: color-mix(in oklab, var(--moss-700) 24%, transparent);
  --veil-2: color-mix(in oklab, var(--moss-500) 18%, transparent);

  /* Tipografia */
  --ff-display: 'Fraunces', serif;
  --ff-text: 'Instrument Sans', sans-serif;

  --fs-display: clamp(2.6rem, 5.8vw, 4.8rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.55rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--moss-950);
  color: var(--paper);
}

body {
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  background-color: var(--moss-950);
  color: var(--paper);
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* Campo Global Contínuo */
.field-ambient {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(55% 40% at 15% 10%, var(--veil-1), transparent 75%),
    radial-gradient(50% 35% at 85% 35%, var(--veil-2), transparent 72%),
    radial-gradient(65% 45% at 50% 90%, var(--veil-1), transparent 78%),
    var(--moss-950);
  background-size: 140% 140%;
  animation: fieldDrift 28s ease-in-out infinite alternate;
}

@keyframes fieldDrift {
  from { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  to   { background-position: 18% 10%, 82% 16%, 48% 92%, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .field-ambient { animation: none; }
}

/* Container de 12 colunas */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 3.8vw, 32px);
}

/* Transições e Seções sem Caixas Chapadas */
.section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(72px, 8vw, 120px);
}

.section::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: clamp(120px, 18vh, 260px);
  background: linear-gradient(to bottom, var(--veil-1), transparent);
  pointer-events: none;
  z-index: -1;
}

.section-alt::before {
  background: linear-gradient(to bottom, var(--veil-2), transparent);
}

/* Rótulos Superiores Sutis (Sem Badges) */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-300);
  opacity: 0.85;
  margin-bottom: 14px;
}

/* Tipografia Monumental */
h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--paper);
}

.display-title {
  font-size: var(--fs-display);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.section-title {
  font-size: var(--fs-h2);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-desc {
  max-width: 64ch;
  color: var(--paper-dim);
  font-size: 1.1rem;
  line-height: 1.6;
}

.editorial-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--sand-100);
}

/* ==========================================================================
   NAVBAR (Minimalista, <= 56px no Mobile)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: 64px;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background-color: rgba(14, 21, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--edge-strong);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--ff-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.brand-creci {
  font-size: 0.7rem;
  color: var(--sand-300);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--paper-dim);
  transition: color 0.24s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding-inline: 18px;
  border-radius: 999px;
  background-color: var(--moss-700);
  color: var(--sand-50);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--edge-strong);
  transition: transform 0.24s var(--ease), background-color 0.24s var(--ease);
}

.btn-header:hover {
  transform: translateY(-1px);
  background-color: var(--moss-600);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--edge);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--paper);
}

/* Menu Mobile Tela Cheia */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background-color: var(--moss-950);
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease), visibility 0.32s var(--ease);
}

.mobile-drawer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
}

.drawer-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--edge);
}

.drawer-close svg {
  width: 22px;
  height: 22px;
  stroke: var(--paper);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-link {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  color: var(--paper);
}

.drawer-footer {
  padding-top: 24px;
  border-top: 1px solid var(--edge);
}

/* ==========================================================================
   HERO SECTION (Sem Badges, Ponto Focal Tipográfico + Mídia Real)
   ========================================================================== */
.hero-section {
  padding-top: clamp(110px, 14vw, 160px);
  padding-bottom: clamp(64px, 8vw, 100px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
}

.hero-meta {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-300);
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.62;
  color: var(--paper-dim);
  max-width: 58ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 32px;
  border-radius: 999px;
  background-color: var(--sand-100);
  color: var(--moss-950);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  box-shadow: 0 16px 36px -12px rgba(244, 239, 230, 0.22);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(25deg);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -14px rgba(244, 239, 230, 0.32);
}

.btn-primary:hover::after {
  transform: rotate(25deg) translateX(420%);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  stroke: var(--moss-950);
  transition: transform 0.24s var(--ease);
}

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

.cta-microcopy {
  font-size: 0.85rem;
  color: var(--paper-muted);
  padding-left: 6px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-ambient-ring {
  position: absolute;
  width: min(100%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 68%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 1;
}

.visual-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  border-radius: 28px;
  border: 1px solid var(--edge-strong);
  padding: 16px;
  background: linear-gradient(145deg, rgba(30, 48, 35, 0.5), rgba(14, 21, 16, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.visual-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  object-fit: cover;
}

.visual-data-caption {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 4px;
}

.visual-caption-title {
  font-family: var(--ff-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--paper);
}

.visual-caption-sub {
  font-size: 0.76rem;
  color: var(--sand-300);
}

/* ==========================================================================
   SEÇÃO 1: SOBRE PEDRO LIMA & CIDADE (Respirada)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.data-block {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: rgba(24, 38, 28, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.data-block:hover {
  transform: translateY(-2px);
  border-color: var(--edge-strong);
}

.data-block-label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-300);
  margin-bottom: 6px;
}

.data-block-value {
  font-family: var(--ff-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--sand-100);
  margin-bottom: 4px;
}

.data-block-desc {
  font-size: 0.88rem;
  color: var(--paper-dim);
  line-height: 1.45;
}

/* ==========================================================================
   SEÇÃO 2: SERVIÇOS / ÁREAS DE ATUAÇÃO (Densa)
   ========================================================================== */
.services-header {
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid var(--edge);
  background: rgba(24, 38, 28, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  min-height: 320px;
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--sand-300);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 24px 48px -20px var(--glow);
}

.service-card-featured {
  background: var(--sand-100);
  color: var(--moss-950);
  border-color: transparent;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
}

.service-card-featured h3,
.service-card-featured .service-card-title {
  color: var(--moss-950);
}

.service-card-featured .service-card-desc {
  color: rgba(14, 21, 16, 0.82);
}

.service-card-featured .service-icon-box {
  background-color: rgba(14, 21, 16, 0.08);
}

.service-card-featured .service-icon-box svg {
  stroke: var(--moss-950);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background-color: rgba(93, 137, 105, 0.16);
  border: 1px solid var(--edge);
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: var(--sand-100);
}

.service-card-title {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--paper-dim);
  line-height: 1.55;
  margin-bottom: 24px;
}

.service-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-card-action svg {
  width: 16px;
  height: 16px;
  transition: transform 0.24s var(--ease);
}

.service-card:hover .service-card-action svg {
  transform: translateX(4px);
}

/* ==========================================================================
   SEÇÃO 3: ETAPAS DE ATENDIMENTO (Mecanismo com Luz Progressiva)
   ========================================================================== */
.steps-container {
  max-width: 920px;
  margin-inline: auto;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.step-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--edge);
  background: rgba(24, 38, 28, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.step-item:hover {
  transform: translateY(-2px);
  border-color: var(--edge-strong);
}

.step-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--sand-200);
  line-height: 1;
}

.step-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--sand-200);
  margin-top: 12px;
  box-shadow: 0 0 14px var(--sand-200);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--sand-50);
}

.step-content p {
  color: var(--paper-dim);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ==========================================================================
   SEÇÃO 4: FAQ ACESSÍVEL (Perguntas Reais)
   ========================================================================== */
.faq-wrap {
  max-width: 840px;
  margin-inline: auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: rgba(24, 38, 28, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color 0.24s var(--ease);
}

.faq-item:hover {
  border-color: var(--edge-strong);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--paper);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease);
  stroke: var(--sand-200);
}

.faq-item.is-active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.faq-item.is-active .faq-content {
  grid-template-rows: 1fr;
}

.faq-inner {
  overflow: hidden;
  padding-inline: 26px;
  padding-bottom: 0;
  color: var(--paper-dim);
  font-size: 0.98rem;
  line-height: 1.6;
}

.faq-item.is-active .faq-inner {
  padding-bottom: 22px;
}

/* ==========================================================================
   SEÇÃO 5: CTA FINAL (Faixa de Cor Elegante)
   ========================================================================== */
.cta-box {
  position: relative;
  border-radius: 28px;
  padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 56px);
  background: linear-gradient(145deg, var(--moss-800), var(--moss-900));
  border: 1px solid var(--edge-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  text-align: center;
  overflow: hidden;
}

.cta-box .section-title {
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: 18px;
}

.cta-box .section-desc {
  margin-inline: auto;
  margin-bottom: 36px;
}

.cta-box .hero-actions {
  align-items: center;
}

/* ==========================================================================
   RODAPÉ (Curto e Factual)
   ========================================================================== */
.site-footer {
  padding-block: 48px 36px;
  border-top: 1px solid var(--edge);
  font-size: 0.88rem;
  color: var(--paper-muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--paper);
}

.footer-creci {
  color: var(--sand-300);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--paper);
}

/* ==========================================================================
   WHATSAPP FLUTUANTE (Oficial, Redondo, Canto Direito, Sem Pulse)
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: #25D366;
  color: #ffffff;
  z-index: 900;
  text-decoration: none;
  box-shadow: 0 12px 32px -8px rgba(37, 211, 102, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.wa-float svg {
  width: 26px;
  height: 26px;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 36px -6px rgba(37, 211, 102, 0.7);
}

.wa-float:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* ==========================================================================
   RESPONSIVIDADE RIGOROSA (320px até 1920px)
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .hero-visual {
    order: -1;
  }

  .visual-frame {
    width: min(100%, 300px);
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 56px;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .step-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-num-col {
    align-items: flex-start;
  }

  .step-node {
    display: none;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  body {
    padding-bottom: 84px;
  }

  .wa-float {
    width: 54px;
    height: 54px;
    right: 16px;
  }

  .wa-float svg {
    width: 24px;
    height: 24px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    width: 100%;
  }

  .cta-microcopy {
    text-align: center;
    width: 100%;
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .wa-float {
    transition: none;
  }
}
