/* ============================================================
   MARINHO PORTO ADVOGADOS — Global CSS
   Paleta: Azul Marinho #0a1f3d | Dourado #c9a84c | Branco #f5f0e8
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy: #0a1f3d;
  --navy-mid: #0d2a52;
  --navy-light: #1a3a5c;
  --gold: #c9a84c;
  --gold-light: #e0c06a;
  --gold-dark: #a8893a;
  --white: #ffffff;
  --off-white: #f5f0e8;
  --gray-light: #e8e4dc;
  --gray-mid: #9a9488;
  --text-dark: #1a1a1a;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 12px rgba(10,31,61,0.08);
  --shadow-md: 0 8px 32px rgba(10,31,61,0.14);
  --shadow-lg: 0 20px 60px rgba(10,31,61,0.2);
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.25);

  --radius: 4px;
  --radius-lg: 12px;
  --max-w: 1180px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── Selection ── */
::selection { background: var(--gold); color: var(--navy); }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; }
p { color: inherit; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Divider dourado ── */
.gold-line {
  display: block;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 16px 0;
}
.gold-line.center { margin: 16px auto; }

/* ── Section label ── */
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background-position: 100% 0%;
  box-shadow: 0 6px 32px rgba(201,168,76,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(201,168,76,0.6);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(10,31,61,0.97);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  font-size: 11px;
  letter-spacing: 1.5px;
}

/* Hamburguer mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,61,0.95) 0%, rgba(10,31,61,0.7) 60%, rgba(10,31,61,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-eyebrow .gold-line { margin: 0; width: 40px; }
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2.5s infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── About strip ── */
.about-strip {
  background: var(--off-white);
  padding: 80px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
}
.about-image-frame {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0.4;
}
.about-badge {
  position: absolute;
  bottom: 32px;
  left: -28px;
  background: var(--navy);
  color: var(--white);
  padding: 20px 28px;
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-md);
}
.about-badge strong {
  display: block;
  font-size: 2.2rem;
  font-family: var(--font-serif);
  color: var(--gold);
  line-height: 1;
}
.about-badge span { font-size: 12px; letter-spacing: 1px; opacity: 0.7; }
.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 24px;
}
.about-text p {
  color: #4a4a5a;
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 0.97rem;
}
.about-credentials {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--gray-light);
}
.cred-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
}
.cred-item span { font-size: 12px; color: var(--gray-mid); letter-spacing: 0.5px; }

/* ── Areas grid ── */
.areas-section {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.areas-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--white);
  margin-top: 12px;
}
.section-header p {
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 0.96rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
}

.area-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 44px 40px;
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.area-card:hover { background: rgba(201,168,76,0.05); border-color: rgba(201,168,76,0.2); }
.area-card:hover::before { height: 100%; }

.area-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.area-card:hover .area-icon { opacity: 1; }

.area-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 12px;
  transition: color var(--transition);
}
.area-card:hover h3 { color: var(--gold); }

.area-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 28px;
}
.area-card .area-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}
.area-card:hover .area-link { opacity: 1; transform: translateX(0); }
.area-link svg { width: 14px; height: 14px; }

/* ── Approach / Differentials ── */
.approach-section {
  padding: 100px 0;
  background: var(--white);
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.approach-list { list-style: none; }
.approach-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-light);
}
.approach-item:first-child { border-top: 1px solid var(--gray-light); }
.approach-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.4;
  min-width: 40px;
  line-height: 1;
}
.approach-body h4 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.approach-body p { font-size: 0.88rem; color: #666; }

/* ── CTA Banner ── */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  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='%23c9a84c' fill-opacity='0.03'%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");
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0 auto 44px;
  font-size: 1rem;
  position: relative;
}
.cta-section .btn { position: relative; }

/* ── Footer ── */
footer {
  background: #060f1e;
  padding: 60px 0 32px;
  color: rgba(255,255,255,0.5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand img { height: 52px; margin-bottom: 20px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; max-width: 280px; }
footer h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
footer ul a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--gold); }

/* ── WhatsApp FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,0.4);
  transition: all var(--transition);
  cursor: pointer;
  animation: pulseWa 3s infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 10px 36px rgba(37,211,102,0.55); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: white; }

@keyframes pulseWa {
  0%, 100% { box-shadow: 0 6px 28px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 44px rgba(37,211,102,0.65); }
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.22s; }
.fade-up.delay-3 { transition-delay: 0.34s; }
.fade-up.delay-4 { transition-delay: 0.46s; }

/* ── Area Page specific ── */
.area-hero {
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.area-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(transparent, var(--white));
}
.area-hero-content { position: relative; z-index: 2; max-width: 700px; }
.area-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); color: var(--white); margin-bottom: 20px; }
.area-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.7); max-width: 540px; line-height: 1.8; }

/* Link "Todas as Áreas" do topo do hero — block para não colar no label */
.hero-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-back-link svg { flex-shrink: 0; }
/* section-label dentro do hero de área sempre em sua própria linha */
.area-hero-content .section-label { display: block; }

.area-content-section { padding: 80px 0 100px; }
.area-content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
.area-content h2 { font-size: 2rem; color: var(--navy); margin-bottom: 24px; }
.area-content p { color: #4a4a5a; line-height: 1.9; margin-bottom: 20px; }
.area-list {
  list-style: none;
  margin: 28px 0;
}
.area-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.95rem;
  color: #3a3a4a;
}
.area-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Sticky sidebar card */
.area-sidebar {
  position: sticky;
  top: 100px;
}
.contact-card {
  background: var(--navy);
  padding: 44px 36px;
  border-radius: var(--radius-lg);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
}
.contact-card .section-label { margin-bottom: 12px; display: block; }
.contact-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.contact-card p { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 32px; line-height: 1.7; }
.contact-card .btn { width: 100%; justify-content: center; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .about-grid,
  .approach-grid,
  .area-content-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-wrap img { height: 420px; }
  .about-badge { left: 0; }
  .about-image-frame { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .area-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 100;
  }
  .nav-links.open a { font-size: 1.2rem; letter-spacing: 2px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .about-credentials { flex-direction: column; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .areas-grid { grid-template-columns: 1fr; gap: 0; }
  .whatsapp-fab { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}
