:root {
  --ink: #1c2430;
  --ink-soft: #3d4654;
  --paper: #f3efe7;
  --paper-deep: #e7e0d3;
  --mist: #d9e2dc;
  --sage: #5f7a6b;
  --sage-deep: #3f5649;
  --line: rgba(28, 36, 48, 0.12);
  --shadow: 0 24px 60px rgba(28, 36, 48, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(95, 122, 107, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(231, 224, 211, 0.9), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, #ebe6dc 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--space);
  background: rgba(243, 239, 231, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 239, 231, 0.94);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sage-deep);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 36, 48, 0.18) 0%, rgba(28, 36, 48, 0.55) 55%, rgba(28, 36, 48, 0.78) 100%),
    linear-gradient(120deg, rgba(63, 86, 73, 0.35), transparent 45%),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80")
      center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--space), 40rem);
  margin: 0 auto 0 var(--space);
  padding: clamp(5rem, 14vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
  color: #f7f3ea;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.15s;
}

.hero h1 {
  margin: 0 0 0.55rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.35s;
}

.tagline {
  margin: 0 0 0.9rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.25;
  color: rgba(247, 243, 234, 0.92);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.45s;
}

.lead {
  margin: 0 0 1.75rem;
  max-width: 44ch;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 300;
  color: rgba(247, 243, 234, 0.88);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.55s;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards 0.65s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  background: #f3efe7;
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #fff;
}

.btn-ghost {
  border-color: rgba(247, 243, 234, 0.45);
  color: #f7f3ea;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: #f7f3ea;
  background: rgba(247, 243, 234, 0.08);
}

.section {
  padding: clamp(4rem, 10vh, 7rem) var(--space);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
}

.section-lead {
  margin: 0 0 2.5rem;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
}

.areas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.areas li {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.areas li.is-visible {
  opacity: 1;
  transform: none;
}

.areas h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.areas p {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
}

.sobre {
  background:
    linear-gradient(180deg, rgba(217, 226, 220, 0.45), rgba(217, 226, 220, 0.15));
}

.sobre-copy p {
  max-width: 40rem;
  color: var(--ink-soft);
}

.oab {
  margin-top: 1.75rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.contato .contato-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

.contato .btn-ghost {
  border-color: rgba(28, 36, 48, 0.22);
  color: var(--ink);
}

.contato .btn-ghost:hover,
.contato .btn-ghost:focus-visible {
  border-color: var(--ink);
  background: rgba(28, 36, 48, 0.04);
}

.site-footer {
  padding: 2.5rem var(--space) 3rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.footer-brand {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.footer-note,
.footer-copy {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 300;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .hero-content {
    margin-left: max(var(--space), calc((100% - var(--max)) / 2));
  }

  .areas {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2rem;
    border-top: 0;
  }

  .areas li {
    border-bottom: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand,
  .hero h1,
  .tagline,
  .lead,
  .cta-group,
  .areas li,
  .hero-media {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
