/* =============================================
   ROSSATTO ADVOCACIA v2 — style.css
   Inspiração: Artmann (partículas + scroll anim)
               Elisangela Taborda (hero c/ foto + bold)
   Identidade: Dourado #C9A96E + Verde-escuro #2B3A38
   ============================================= */

:root {
  --gold:        #C9A96E;
  --gold-light:  #DFC08A;
  --gold-dark:   #A8843D;
  --dark:        #1A2422;
  --dark-mid:    #2B3A38;
  --dark-card:   #222E2C;
  --text-light:  #F5F0EB;
  --text-muted:  rgba(245,240,235,0.65);
  --text-dark:   #2D3436;
  --text-mid:    #4a5568;
  --bg-light:    #FAF8F5;
  --bg-white:    #FFFFFF;
  --border-gold: rgba(201,169,110,0.2);
  --whatsapp:    #25D366;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Montserrat', sans-serif;
  --ease:        0.35s ease;
  --shadow:      0 4px 24px rgba(0,0,0,0.1);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.2);
  --max-width:   1180px;
}

/* ---- RESET ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text-dark); background: var(--bg-white); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* ---- TIPOGRAFIA GLOBAL ---- */
.section-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 500; color: var(--text-dark);
  line-height: 1.2; margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title--light { color: var(--text-light); }
.section-divider { width: 44px; height: 2px; background: var(--text-dark); margin-bottom: 28px; }
.section-divider--gold { background: var(--gold); }
.section-header--center { text-align: center; margin-bottom: 56px; }
.section-header--center .section-divider { margin-left: auto; margin-right: auto; }
.section-desc { font-size: 0.92rem; color: var(--text-mid); max-width: 500px; margin: 8px auto 0; }

/* ---- BOTÕES ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; font-family: var(--font-sans);
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--ease); white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,169,110,0.4); }
.btn--dark { background: var(--dark-mid); color: var(--text-light); border-color: var(--dark-mid); }
.btn--dark:hover { background: var(--dark); transform: translateY(-2px); }
.btn--hero {
  background: var(--bg-white); color: var(--text-dark);
  border-color: var(--bg-white);
  font-size: 0.8rem; padding: 18px 44px;
  font-weight: 700; letter-spacing: 0.08em;
}
.btn--hero:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,169,110,0.45); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.btn--whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
.btn--full { width: 100%; justify-content: center; }

/* ==============================================
   NAVBAR
   ============================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  background: rgba(26,36,34,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
  transition: all var(--ease);
}
.navbar.scrolled { background: var(--dark); padding: 12px 0; box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.navbar__inner { display: flex; align-items: center; gap: 24px; }

.navbar__logo { display: flex; align-items: center; margin-right: auto; }
.navbar__logo-img { height: 78px; width: auto; max-width: 240px; object-fit: contain; }

.navbar__menu { display: flex; gap: 36px; }
.navbar__link {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,240,235,0.8); transition: color var(--ease);
  position: relative;
}
.navbar__link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width var(--ease); }
.navbar__link:hover { color: var(--gold); }
.navbar__link:hover::after { width: 100%; }
.navbar__cta { font-size: 0.7rem; padding: 10px 22px; }

.navbar__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.navbar__hamburger span { display: block; width: 24px; height: 2px; background: var(--text-light); transition: all var(--ease); }

/* ==============================================
   HERO — foto da advogada à direita + texto à esquerda
   fundo: canvas animado + overlay
   ============================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--dark); overflow: hidden;
}

/* Canvas de partículas */
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* Foto da advogada — lado direito, integrada ao fundo */
.hero__photo {
  position: absolute; right: 0; bottom: 0;
  height: 95%; width: 46%;
  z-index: 1;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}
/* Gradiente sobre a foto — funde ela com o fundo */
.hero__photo::before {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    90deg,
    var(--dark) 0%,
    rgba(26,36,34,0.6) 40%,
    rgba(26,36,34,0.1) 100%
  );
}
.hero__photo::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 30%; z-index: 3;
  background: linear-gradient(to top, var(--dark) 0%, transparent 100%);
}

.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(26,36,34,0.97) 0%, rgba(26,36,34,0.75) 55%, transparent 100%);
}

.hero__content {
  position: relative; z-index: 3;
  max-width: 640px; padding: 120px 0 80px 32px;
}

.hero__eyebrow {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400; line-height: 1.1;
  color: var(--text-light); margin-bottom: 24px;
}
.hero__title--bold { font-weight: 700; display: block; }
.hero__title--gold { font-weight: 700; color: var(--gold); display: block; font-style: italic; }

.hero__sub {
  font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 44px;
  max-width: 520px;
}
.hero__sub strong { color: var(--text-light); font-weight: 600; }

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Indicador de scroll */
.hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll-line { display: block; width: 1px; height: 52px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
.hero__scroll-label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(201,169,110,0.5); }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Palavras do hero — controladas por JS (loop contínuo) */
.hero__title--gold .hw {
  display: inline-block;
  will-change: transform, opacity;
}

/* ==============================================
   BENEFÍCIOS — 3 cards abaixo do hero
   ============================================== */
.beneficios { background: var(--dark-mid); padding: 0; }
.beneficios__grid { display: grid; grid-template-columns: repeat(3,1fr); }

.beneficio-card {
  padding: 44px 36px;
  border-right: 1px solid var(--border-gold);
  transition: background var(--ease);
}
.beneficio-card:last-child { border-right: none; }
.beneficio-card:hover { background: rgba(201,169,110,0.06); }

.beneficio-card__icon {
  width: 44px; height: 44px; color: var(--gold); margin-bottom: 20px;
}
.beneficio-card__icon svg { width: 100%; height: 100%; }
.beneficio-card h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--text-light); margin-bottom: 10px; }
.beneficio-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; }

/* ==============================================
   SOBRE
   ============================================== */
.sobre { padding: 112px 0; background: var(--bg-white); }
.sobre__inner { display: grid; grid-template-columns: 480px 1fr; gap: 80px; align-items: center; }

.sobre__image-wrap {
  position: relative;
}
.sobre__image-wrap img {
  width: 100%; height: 560px;
  object-fit: cover; object-position: top center;
  display: block;
  box-shadow: var(--shadow-lg);
}
/* Moldura dourada decorativa */
.sobre__image-wrap::before {
  content: '';
  position: absolute; top: -16px; left: -16px;
  right: 40px; bottom: 40px;
  border: 1px solid var(--gold);
  z-index: -1;
  opacity: 0.4;
}
.sobre__image-badge {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, var(--dark) 0%, rgba(26,36,34,0.85) 60%, transparent 100%);
  padding: 40px 24px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.sobre__image-badge-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--text-light); }
.sobre__image-badge-role { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }

.sobre__content p { font-size: 0.96rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 18px; }
.sobre__content p strong { color: var(--text-dark); font-weight: 600; }
.sobre__content .btn { margin-top: 12px; }

/* ==============================================
   ÁREAS DE ATUAÇÃO
   ============================================== */
.areas { padding: 112px 0; background: var(--dark); position: relative; overflow: hidden; }
.areas::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.areas::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A96E' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none; z-index: 0;
}
.areas .container { position: relative; z-index: 1; }

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

.area-card {
  background: var(--dark-card);
  padding: 40px 32px; position: relative;
  transition: all var(--ease); overflow: hidden;
  border: 1px solid transparent;
}
.area-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--ease);
}
.area-card:hover { border-color: var(--border-gold); background: rgba(201,169,110,0.05); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.area-card:hover::before { transform: scaleX(1); }

.area-card__number { font-family: var(--font-serif); font-size: 3rem; font-weight: 300; color: rgba(201,169,110,0.12); line-height: 1; margin-bottom: 16px; }
.area-card__icon { width: 42px; height: 42px; color: var(--gold); margin-bottom: 18px; }
.area-card__icon svg { width: 100%; height: 100%; }
.area-card h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--text-light); margin-bottom: 10px; line-height: 1.3; }
.area-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* ==============================================
   CONTATO
   ============================================== */
.contato { padding: 112px 0; background: var(--bg-light); }
.contato__inner { }
.contato__grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }

.contato__form-wrap { background: var(--bg-white); padding: 48px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark); margin-bottom: 8px; }
input, select, textarea {
  width: 100%; padding: 12px 16px;
  font-family: var(--font-sans); font-size: 0.88rem; color: var(--text-dark);
  background: var(--bg-light); border: 1px solid rgba(0,0,0,0.1);
  transition: border-color var(--ease); outline: none; appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,0.1); }
textarea { resize: vertical; min-height: 120px; }
.form-success { display: none; margin-top: 16px; padding: 14px 18px; background: #f0fdf4; border: 1px solid #86efac; color: #166534; font-size: 0.85rem; }
.form-error { display: none; margin-top: 16px; padding: 14px 18px; background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; font-size: 0.85rem; }

.contato__info { display: flex; flex-direction: column; gap: 36px; }
.contato__whatsapp { background: var(--dark-mid); padding: 36px 28px; border-top: 3px solid var(--gold); }
.contato__whatsapp h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--text-light); margin-bottom: 8px; }
.contato__whatsapp p { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }

.contato__dados { display: flex; flex-direction: column; gap: 18px; }
.contato__dado { display: flex; gap: 14px; align-items: flex-start; }
.contato__dado-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.contato__dado div { display: flex; flex-direction: column; gap: 2px; }
.contato__dado strong { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dark); }
.contato__dado span, .contato__dado a { font-size: 0.88rem; color: var(--text-mid); transition: color var(--ease); }
.contato__dado a:hover { color: var(--gold); }

/* ==============================================
   FOOTER
   ============================================== */
.footer { background: var(--dark); padding: 52px 0; border-top: 1px solid var(--border-gold); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.footer__logo-img { height: 130px; width: auto; max-width: 280px; object-fit: contain; }
.footer__links { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.footer__links a { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,240,235,0.4); transition: color var(--ease); }
.footer__links a:hover { color: var(--gold); }
.footer__copy { font-size: 0.76rem; color: rgba(245,240,235,0.25); line-height: 1.6; }

/* ==============================================
   WHATSAPP FLUTUANTE
   ============================================== */
.whatsapp-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 58px; height: 58px; background: var(--whatsapp); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: all var(--ease);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-float::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--whatsapp); opacity: 0.25;
  animation: waPulse 2.5s ease-in-out infinite;
}
@keyframes waPulse { 0%,100% { transform: scale(1); opacity: 0.25; } 50% { transform: scale(1.25); opacity: 0; } }

/* ==============================================
   RESPONSIVO
   ============================================== */
@media (max-width: 1024px) {
  .sobre__inner { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .sobre__image-wrap img { height: 440px; }
  .contato__grid { grid-template-columns: 1fr; }
  .contato__info { flex-direction: row; flex-wrap: wrap; }
  .contato__whatsapp, .contato__dados { flex: 1; min-width: 260px; }
  .areas__grid { grid-template-columns: repeat(2,1fr); }
  .beneficios__grid { grid-template-columns: 1fr; }
  .beneficio-card { border-right: none; border-bottom: 1px solid var(--border-gold); }
  .beneficio-card:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .navbar__menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--dark); flex-direction: column; align-items: center; justify-content: center; gap: 40px; z-index: 999; }
  .navbar__menu.open { display: flex; }
  .navbar__link { font-size: 1rem; }
  .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; position: relative; z-index: 1000; }

  .hero__photo { width: 100%; height: 100%; opacity: 0.25; }
  .hero__photo::before { background: rgba(26,36,34,0.6); }
  .hero__overlay { background: rgba(26,36,34,0.75); }
  .hero__content { padding: 120px 0 80px; max-width: 100%; }
  .hero__title { font-size: 2.4rem; }
  .btn--hero { padding: 16px 32px; }

  .areas__grid { grid-template-columns: 1fr; }
  .contato__form-wrap { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contato__info { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}
