/* ===================================
   HEUCZUK ADVOCACIA — INSTITUTIONAL
   =================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:        #C4944A;
  --gold-light:  #D4A85E;
  --gold-pale:   #e8c98a;
  --dark:        #0b0b0f;
  --dark-2:      #111118;
  --dark-3:      #1a1a26;
  --cream:       #f7f4ef;
  --cream-2:     #ede9e1;
  --text:        #1c1c24;
  --text-muted:  #6b6878;
  --text-light:  #d8d2c8;
  --white:       #ffffff;
  --border:      rgba(196, 148, 74, 0.2);

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

  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --section-py: 100px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-py) 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-label--light {
  color: var(--gold-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 24px;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-title--light {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 72px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.75;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--transition), transform 0.75s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 148, 74, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ===================================
   HEADER / NAV
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 0;
}

.header.scrolled {
  background: rgba(11, 11, 15, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(196, 148, 74, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition), opacity var(--transition);
  opacity: 0.92;
}

.logo-img:hover {
  opacity: 1;
}

.logo-img--footer {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link--cta {
  color: var(--gold);
  border: 1px solid rgba(196, 148, 74, 0.4);
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  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;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--dark) 0%, #0e0e1c 50%, #12101a 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(196, 148, 74, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(196, 148, 74, 0.04) 0%, transparent 60%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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='%23c4944a' 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");
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 32px 80px;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
  max-width: 720px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,255,255,0.6);
  margin-bottom: 52px;
  max-width: 520px;
  line-height: 1.65;
}

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

.hero-microcopy {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 80%;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(196,148,74,0.6), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}



/* ===================================
   ÁREAS DE ATUAÇÃO
   =================================== */
.atuacao {
  background: var(--cream);
}

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

.area-card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.area-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.area-card-inner {
  padding: 32px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.area-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.area-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* convert black → gold (#C4944A) */
  filter: invert(62%) sepia(40%) saturate(550%) hue-rotate(5deg) brightness(92%);
}

.area-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.area-subtitle {
  font-size: 13px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 12px;
}

.area-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  flex: 1;
}

.area-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--cream-2);
}

.area-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.area-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 11px;
}

/* ===================================
   O PROFISSIONAL
   =================================== */
.profissional {
  background: var(--white);
}

.profissional-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: center;
}

.profissional-image {
  position: relative;
}

.profissional-frame {
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, #d6cfc5 0%, #e8e2d9 100%);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.profissional-photo {
  width: 100%;
  height: calc(100% - 20px);
  object-fit: cover;
  object-position: top center;
  display: block;
}


.profissional-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--gold);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(196, 148, 74, 0.4);
}

.profissional-role {
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  margin-top: -12px;
}

.profissional-destaque {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 10px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 24px;
}

.profissional-content p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin-bottom: 18px;
}

.profissional-content p strong {
  color: var(--text);
  font-weight: 600;
}

.profissional-stats {
  display: flex;
  gap: 0;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--cream-2);
}

.prof-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 32px;
  border-left: 1px solid var(--cream-2);
}

.prof-stat:first-child {
  padding-left: 0;
  border-left: none;
}

.prof-stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.prof-stat-number sup {
  font-size: 1rem;
  vertical-align: top;
  line-height: 0;
  position: relative;
  top: 0.2em;
}

.prof-stat-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===================================
   CONTATO
   =================================== */
.contato {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.contato-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(196, 148, 74, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contato-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 0;
}

.contato-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 36px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contato-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(196, 148, 74, 0.4);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.contato-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contato-icon svg {
  width: 100%;
  height: 100%;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contato-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.contato-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
}

.contato-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin-top: 2px;
}

.contato-cta {
  text-align: center;
  margin-top: 48px;
}

.btn-large {
  padding: 18px 48px;
  font-size: 14px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(196, 148, 74, 0.12);
  padding: 40px 0;
}

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

.footer-text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}

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

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .profissional-grid {
    grid-template-columns: 280px 1fr;
    gap: 56px;
  }
}

@media (max-width: 860px) {
  :root {
    --section-py: 72px;
  }

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

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

  .profissional-image {
    max-width: 320px;
    margin: 0 auto;
  }

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

@media (max-width: 640px) {
  :root {
    --section-py: 56px;
  }

  .container {
    padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(11, 11, 15, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 14px 24px;
  }

  .nav-link--cta {
    margin: 8px 24px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* ---- Hero mobile redesign ---- */
  .hero-bg::before {
    background-image:
      radial-gradient(ellipse 140% 55% at 50% 20%, rgba(196, 148, 74, 0.13) 0%, transparent 65%),
      radial-gradient(ellipse 80% 40% at 50% 90%, rgba(196, 148, 74, 0.04) 0%, transparent 60%);
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 0 28px 80px;
  }

  .hero-content::before {
    content: '';
    display: block;
    width: 1px;
    height: 64px;
    background: linear-gradient(to bottom, transparent, rgba(196, 148, 74, 0.85));
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 11.5vw, 3.2rem);
    line-height: 1.05;
    max-width: none;
    margin-bottom: 20px;
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
    font-size: 15px;
    max-width: 300px;
    margin-bottom: 0;
    color: rgba(255,255,255,0.5);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    gap: 12px;
    margin-top: 44px;
  }

  .hero-actions::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: rgba(196, 148, 74, 0.5);
    margin: 0 auto 8px;
  }

  .hero-actions .btn {
    justify-content: center;
    text-align: center;
  }

  .hero-scroll {
    left: 50%;
    transform: translateX(-50%);
    bottom: 32px;
  }



  .area-card-inner {
    padding: 36px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-logo {
    order: -1;
  }
}
