/* Ivan Alfarth Consultoria Jurídica - site estático
   Paleta extraída da identidade visual enviada:
   Verde profundo #002D39 | Bege #D3D4C8 | Vermelho #DB3F32
*/

:root {
  --teal: #002D39;
  --teal-2: #073f4c;
  --paper: #f8f7f2;
  --beige: #D3D4C8;
  --beige-2: #ecebe3;
  --red: #DB3F32;
  --ink: #15272d;
  --muted: #6f797c;
  --white: #ffffff;
  --line: rgba(0, 45, 57, .16);
  --shadow: 0 24px 70px rgba(0, 45, 57, .14);
  --radius: 28px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Gotham", "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --italic: "Adobe Devanagari", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(211,212,200,.42), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(219,63,50,.08), transparent 20rem),
    var(--paper);
  font-family: var(--serif);
  line-height: 1.72;
}

body.menu-open {
  overflow: hidden;
}

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

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

.skip-link {
  position: absolute;
  top: -80px;
  left: 1rem;
  padding: .65rem .9rem;
  background: var(--teal);
  color: white;
  z-index: 999;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 94px 0;
}

.section-tight {
  padding: 64px 0;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 14px;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--teal);
  line-height: 1.08;
  margin: 0;
  letter-spacing: .01em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 5.5rem);
  max-width: 980px;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.6rem);
  max-width: 850px;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  max-width: 830px;
  color: #314448;
}

.subtle {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .78rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--teal);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-2);
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
}

.btn-secondary:hover {
  background: var(--beige-2);
}

.btn-red {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.btn-red:hover {
  filter: brightness(.96);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(248,247,242,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0,45,57,.12);
}

.navbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 240px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: .08rem;
  font-family: var(--sans);
  text-transform: uppercase;
  color: var(--teal);
}

.brand-name {
  letter-spacing: .25em;
  font-size: .82rem;
  font-weight: 700;
}

.brand-line {
  letter-spacing: .17em;
  font-size: .58rem;
  color: rgba(0,45,57,.78);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-family: var(--sans);
  font-size: .89rem;
  color: #274349;
}

.nav-links a {
  padding: .45rem .1rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--teal);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 18px;
  height: 2px;
  background: currentColor;
  display: block;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding: 86px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10rem -18rem auto;
  width: 48rem;
  height: 48rem;
  background: linear-gradient(140deg, rgba(211,212,200,.76), rgba(219,63,50,.12));
  border-radius: 50%;
  z-index: -2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .68fr);
  gap: 3.2rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .3rem;
}

.hero-card {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  min-height: 520px;
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border: 1px solid rgba(211,212,200,.45);
  border-radius: 22px;
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -9rem;
  right: -10rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(219,63,50,.45), transparent 67%);
}

.hero-card-inner {
  position: relative;
  z-index: 2;
  min-height: 456px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-seal {
  width: 112px;
  padding: 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(211,212,200,.35);
  border-radius: 18px;
}

.hero-note {
  font-family: var(--italic);
  font-style: italic;
  font-size: 1.65rem;
  color: var(--beige);
  line-height: 1.24;
}

.hero-card p:not(.hero-note) {
  color: rgba(255,255,255,.78);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(211,212,200,.3);
  margin-top: 1.2rem;
}

.stat {
  padding: 1rem .7rem 0 0;
}

.stat strong {
  display: block;
  font-family: var(--sans);
  color: white;
  font-size: 1.6rem;
  line-height: 1;
}

.stat span {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-top: .4rem;
}

.panel {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0,45,57,.06);
}

.intro-panel {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  overflow: hidden;
}

.intro-aside {
  background: var(--beige);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.intro-logo {
  max-width: 260px;
}

.intro-content {
  padding: 2.4rem;
  display: grid;
  gap: 1.1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

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

.card {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.35rem;
  min-height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0,45,57,.08);
  border-color: rgba(219,63,50,.34);
}

.card .number {
  font-family: var(--sans);
  color: var(--red);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .78rem;
  margin-bottom: .65rem;
}

.card p {
  margin-top: .72rem;
  color: #42575b;
  font-size: .98rem;
}

.area-card {
  display: grid;
  gap: .7rem;
  position: relative;
  overflow: hidden;
}

.area-card::after {
  content: "";
  position: absolute;
  right: -3.8rem;
  bottom: -3.8rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(0,45,57,.1);
  border-radius: 50%;
}

.area-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--beige-2);
  display: grid;
  place-items: center;
  color: var(--teal);
  font-family: var(--sans);
  font-weight: 800;
}

.method {
  background: var(--teal);
  color: white;
  position: relative;
  overflow: hidden;
}

.method h2,
.method h3 {
  color: white;
}

.method .eyebrow {
  color: var(--beige);
}

.method .lead {
  color: rgba(255,255,255,.78);
}

.method::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(211,212,200,.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(211,212,200,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .5;
}

.method .container {
  position: relative;
  z-index: 2;
}

.steps {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(211,212,200,.24);
  border: 1px solid rgba(211,212,200,.24);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  background: rgba(0,45,57,.95);
  padding: 1.5rem;
  min-height: 230px;
}

.step strong {
  font-family: var(--sans);
  color: var(--red);
  display: inline-block;
  margin-bottom: 1rem;
}

.step p {
  color: rgba(255,255,255,.74);
  margin-top: .75rem;
}

.insights {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 2rem;
  align-items: start;
}

.insight-list {
  display: grid;
  gap: .95rem;
}

.insight-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: stretch;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.insight-tag {
  background: var(--beige);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.insight-copy {
  padding: 1.1rem 1.1rem 1.1rem 0;
}

.insight-copy p {
  color: #4a5d61;
  margin-top: .45rem;
}

.cta-band {
  background: linear-gradient(135deg, var(--teal), #073947);
  color: white;
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(219,63,50,.43), transparent 70%);
}

.cta-band h2 {
  color: white;
}

.cta-band p {
  color: rgba(255,255,255,.74);
  margin-top: 1rem;
  max-width: 720px;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-card {
  padding: 1.6rem;
}

.contact-card dl {
  margin: 1.2rem 0 0;
  display: grid;
  gap: .8rem;
}

.contact-card dt {
  font-family: var(--sans);
  color: var(--teal);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.contact-card dd {
  margin: 0;
  color: #405358;
}

.contact-form {
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.field {
  display: grid;
  gap: .35rem;
}

label {
  font-family: var(--sans);
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(0,45,57,.18);
  border-radius: 16px;
  padding: .92rem .95rem;
  background: white;
  font: inherit;
  color: var(--ink);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(219,63,50,.28);
  border-color: rgba(219,63,50,.72);
}

.form-note {
  font-size: .9rem;
  color: var(--muted);
}

.footer {
  padding: 46px 0;
  background: #001f27;
  color: rgba(255,255,255,.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-logo {
  width: 200px;
  filter: brightness(0) invert(1);
  opacity: .9;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: .86rem;
}

.footer a:hover {
  color: white;
}

.legal-note {
  margin-top: 1rem;
  font-size: .86rem;
  max-width: 760px;
}

.float-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  box-shadow: 0 14px 36px rgba(0,45,57,.22);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.page-hero {
  padding: 84px 0 42px;
}

.content-page {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 3rem);
}

.content-page h2 {
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  margin-top: 2rem;
}

.content-page h2:first-child {
  margin-top: 0;
}

.content-page p,
.content-page li {
  color: #3f5559;
}

.content-page ul {
  padding-left: 1.1rem;
}

.stationery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-top: 1.4rem;
}

.stationery-preview a {
  min-height: 120px;
  display: flex;
  align-items: end;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  font-family: var(--sans);
  font-weight: 800;
  color: var(--teal);
}

.stationery-preview a:hover {
  border-color: var(--red);
}

/* Print templates */
.print-body {
  background: white;
}

.print-sheet {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  background: white;
  padding: 22mm;
  position: relative;
  color: var(--teal);
}

.print-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--beige);
  padding-bottom: 12mm;
}

.print-logo {
  width: 64mm;
}

.print-footer {
  position: absolute;
  left: 22mm;
  right: 22mm;
  bottom: 16mm;
  border-top: 1px solid var(--beige);
  padding-top: 5mm;
  font-family: var(--sans);
  font-size: 8pt;
  color: #53686d;
}

.print-title {
  font-size: 20pt;
  margin-top: 20mm;
}

.signature-card {
  width: 650px;
  margin: 40px auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: center;
}

.business-card {
  width: 85mm;
  height: 55mm;
  background: var(--teal);
  color: white;
  border-radius: 4mm;
  padding: 8mm;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.business-card.back {
  background: var(--beige);
  color: var(--teal);
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 82px 0 auto 0;
    padding: 1.2rem 20px 2rem;
    background: rgba(248,247,242,.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .intro-panel,
  .insights,
  .contact-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-card-inner {
    min-height: 380px;
  }

  .grid-3,
  .steps,
  .stationery-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band {
    justify-items: start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .navbar {
    height: 74px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    letter-spacing: .16em;
    font-size: .7rem;
  }

  .brand-line {
    font-size: .5rem;
  }

  .hero {
    padding-top: 56px;
  }

  .grid-3,
  .grid-2,
  .steps,
  .stat-row,
  .form-row,
  .stationery-preview {
    grid-template-columns: 1fr;
  }

  .insight-card {
    grid-template-columns: 1fr;
  }

  .insight-tag {
    min-height: 60px;
  }

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

  .float-contact {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: calc(100% - 28px);
  }

  .float-contact.btn {
    border-radius: 18px;
  }
}

@media print {
  body {
    background: white !important;
  }

  .site-header,
  .footer,
  .float-contact,
  .no-print {
    display: none !important;
  }

  .print-sheet {
    margin: 0;
    box-shadow: none;
  }
}


.is-hidden {
  display: none !important;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}
