/* ===========================================================
   Matheus Bueno Advogado — folha de estilo compartilhada
   Paleta extraída do site atual: preto, creme, terracota
   =========================================================== */

:root {
  --ink: #0D0D0D;
  --ink-soft: #2A2724;
  --cream: #F7F2EA;
  --cream-deep: #EFE7D8;
  --terracotta: #A85C3A;
  --terracotta-deep: #8B4A2E;
  --stone: #8A8680;
  --hairline: #DAD3C6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--ink);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(247,242,234,0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.main-nav a {
  opacity: 0.85;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: opacity .15s, border-color .15s;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  border-color: var(--terracotta);
}

.nav-cta {
  background: var(--terracotta);
  color: var(--cream) !important;
  padding: 9px 18px;
  border-radius: 2px;
  font-weight: 600;
  border-bottom: none !important;
}

.nav-cta:hover { background: var(--terracotta-deep); opacity: 1; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--cream);
  background: var(--ink);
  background-size: cover;
  background-position: center;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,0.25) 0%, rgba(13,13,13,0.85) 100%);
}

.hero .wrap {
  position: relative;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 72px;
}

.hero-eyebrow {
  color: var(--terracotta);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 20px;
  max-width: 16ch;
}

.hero p {
  max-width: 52ch;
  font-size: 1.05rem;
  color: rgba(247,242,234,0.88);
  margin: 0 0 28px;
}

.hero.compact { min-height: 44vh; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 2px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
}
.btn-primary:hover { background: var(--terracotta-deep); }

.btn-outline {
  border-color: rgba(247,242,234,0.55);
  color: var(--cream);
}
.btn-outline:hover { border-color: var(--cream); }

/* ---------- Sections ---------- */

section { padding: 88px 0; }

.section-cream { background: var(--cream); }
.section-deep { background: var(--cream-deep); }
.section-ink { background: var(--ink); color: var(--cream); }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--terracotta);
  font-size: 1.05rem;
  margin: 0 0 10px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0 0 24px;
  max-width: 22ch;
}

.lede {
  font-size: 1.08rem;
  max-width: 64ch;
  color: var(--ink-soft);
}

.section-ink .lede { color: rgba(247,242,234,0.82); }

/* ---------- Área cards (home) ---------- */

.area-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hairline);
  margin-top: 48px;
  border: 1px solid var(--hairline);
}

.area-card {
  background: var(--cream);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.area-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.area-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(45%);
  transition: filter .25s;
}

.area-card:hover .thumb img { filter: grayscale(0%); }

.area-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.area-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.area-card p {
  color: var(--stone);
  font-size: 0.92rem;
  margin: 0 0 18px;
  flex: 1;
}

.area-card .go {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta);
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}

/* ---------- Quote block ---------- */

.quote-block {
  border-left: 3px solid var(--terracotta);
  padding-left: 28px;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  max-width: 46ch;
  color: var(--ink-soft);
}
.quote-block cite {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--stone);
}

/* ---------- Service list (área pages) ---------- */

.service-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.service-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.service-list li {
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.02rem;
}

.service-list li:last-child { border-bottom: 1px solid var(--hairline); }

.side-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.side-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cartões informativos (áreas sem slides) ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.info-card {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--terracotta);
  padding: 28px 26px;
}

.info-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 12px;
}

.info-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.info-note {
  margin: 32px 0 0;
  font-size: 0.85rem;
  color: var(--stone);
}

/* ---------- Faixa de fotos (fim da home) ---------- */

.photo-strip {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--cream);
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(35%);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(247,242,234,0.75);
  padding: 56px 0 32px;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(247,242,234,0.15);
}

.footer-brand {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1.2rem;
  max-width: 34ch;
}

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}
.footer-col a { display: block; padding: 5px 0; opacity: 0.8; }
.footer-col a:hover { opacity: 1; color: var(--terracotta); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* ---------- Slides das áreas ---------- */

.side-photo.slide { aspect-ratio: auto; }
.side-photo.slide img { height: auto; }

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

.slide-grid img {
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .service-layout { grid-template-columns: 1fr; }
  .slide-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .area-card:last-child { grid-column: 1 / -1; }
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .main-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 6px;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .area-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
}
