/* ========================================
   Variáveis e Reset
======================================== */
:root {
  --primary: #59401e;  
  --accent:  #f5a742;   
  --bg:      #ffffff;
  --muted:   #666;
  --light:   #f6f6f6;
}

a {
  color: #f5a742;
}

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

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #222;
  background: var(--bg);
  line-height: 1.45;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Topbar
======================================== */
.topbar {
  background: #0f0f0f;
  color: #fff;
  font-size: 0.95rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar .sep {
  opacity: 0.35;
  margin: 0 8px;
}

/* ========================================
   Header / Navegação
======================================== */
.main-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand img {
  height: 90px;
  transition: height 0.3s ease;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 6px;
}

.nav a:hover {
  color: var(--accent);
}

.cta {
  background: var(--accent);
  color: #222;
  padding: 8px 14px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 700;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 0;
  font-size: 45px;
  cursor: pointer;
  z-index: 1100;
}

/* ========================================
   Hero
======================================== */
.hero {
  background-image: url('images/escritorio-advocacia-3-1024x683.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  padding: 60px 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.55));
  pointer-events: none;
}

.hero-inner {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
}

.hero-text {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 38px;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.hero .lead {
  font-size: 20px;
  margin-bottom: 8px;
}

.hero .sub {
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero-ctas .btn {
  margin-right: 10px;
}

.hero-box {
  width: 320px;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 2;
}

.hero-box h4 {
  margin-bottom: 6px;
}

.hero-box p {
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 12px;
}

/* Botões */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.btn.solid {
  background: var(--accent);
  color: #111;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}

.btn.full {
  display: block;
  width: 100%;
  text-align: center;
}

/* ========================================
   Seções
======================================== */
.section {
  padding: 64px 0;
}

.section.light {
  background: #f5a74250;
}

.section.dark {
  background: var(--light);
}

.section h2 {
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 12px;
}

.section .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Duas colunas */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  margin-top: 18px;
}

.bullets {
  list-style: disc;
  margin-left: 18px;
  color: var(--muted);
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

span {
  font-size: 35px;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  font-weight: 600;
  color: var(--muted);
  font-size: 1.2em;
}

.service br {
  line-height: 1.2;
}

/* Como funciona */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.step {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  margin-bottom: 10px;
}

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

.success {
  color: green;
  font-weight: 700;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 22px 0;
  margin-top: 30px;
}

/* ========================================
   Responsivo
======================================== */
@media(max-width: 900px) {
  /* Hero */
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .hero-text {
    padding: 15px;
  }
  .hero-box {
    width: 100%;
    margin-top: 20px;
  }

  .brand {
    margin-left: 15px;
  }

  /* Duas colunas / contato */
  .two-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  form input,
  form textarea {
    margin-bottom: 16px;
  }

  .btn {
    margin-bottom: 12px;
  }

  /* Menu */
  .nav {
    display: none;
  }
  .hamburger {
    display: block;
    margin-right: 15px;
  }
}

@media(max-width: 510px) {
  .steps-grid{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  }
}


/* ========================================
   Menu Mobile / Overlay
======================================== */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.2);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.nav.active {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  padding: 60px 20px;
  gap: 20px;
  z-index: 1001;
  background: #fff;
  box-shadow: 2px 0 12px rgba(0,0,0,0.2);
  transform: translateX(-260px);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.nav.active.show {
  transform: translateX(0);
}

.nav.active ul {
  flex-direction: column;
  display: flex;
  gap: 16px;
  padding: 0;
}

.nav.active li {
  margin: 0;
}

.nav.active a {
  color: var(--primary);
  font-size: 1.1rem;
  padding: 8px 0;
  display: block;
  font-weight: 600;
}
