/*
Theme Name: Liborio Faria Advogados
Theme URI: https://liboriofaria.com.br
Author: Liborio Faria Advogados
Author URI: https://liboriofaria.com.br
Description: Tema institucional minimalista para o escritório Liborio Faria Advogados.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: liborio-faria-advogados
*/

:root {
  --navy: #0b1f3b;
  --navy-soft: #4c5968;
  --red: #b71f3b;
  --paper: #f7f6f3;
  --white: #ffffff;
  --line: #e3e2de;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page: min(1180px, calc(100% - 64px));
  --narrow: min(1040px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
.shell { width: var(--page); margin-inline: auto; }
.narrow-shell { width: var(--narrow); }

.site-header {
  color: var(--white);
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 94px;
}
.brand { display: block; line-height: 0; }
.brand-logo { width: 220px; height: auto; }
.main-nav { justify-self: center; display: flex; gap: 27px; }
.main-nav a,
.header-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.main-nav a { color: rgba(255,255,255,.82); transition: color .2s ease; }
.main-nav a:hover,
.header-cta:hover { color: var(--white); }
.main-nav a:hover { color: var(--white); }
.header-cta { padding: 9px 0; border-bottom: 1px solid var(--red); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .72fr);
  gap: clamp(48px, 8vw, 116px);
  align-items: center;
  min-height: 650px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-copy { max-width: 660px; }
.eyebrow {
  margin-bottom: 25px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(50px, 5.2vw, 78px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.03;
}
.hero-intro {
  max-width: 520px;
  margin-bottom: 36px;
  color: var(--navy-soft);
  font-size: 18px;
}
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .2s ease, border-color .2s ease;
}
.button-primary:hover { background: var(--red); border-color: var(--red); }
.text-link {
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 600;
}
.text-link span { margin-left: 8px; color: var(--red); }
.hero-portrait { margin: 0; }
.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  background: #c5c7c7;
}
.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  color: var(--navy-soft);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-portrait figcaption strong { color: var(--navy); font-weight: 600; }

.section { padding: 104px 0; }
.section-heading { max-width: 650px; margin-bottom: 58px; }
h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.practices { background: var(--paper); }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.practice-item { padding: 30px 34px 8px 0; }
.practice-item + .practice-item { padding-left: 34px; border-left: 1px solid var(--line); }
.practice-item h3 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.22;
}
.practice-item p { margin: 0; color: var(--navy-soft); font-size: 14px; }

.about { border-bottom: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: clamp(60px, 10vw, 140px);
}
.about-copy { padding-top: 42px; }
.about-copy p { margin-bottom: 20px; color: var(--navy-soft); font-size: 17px; }
.about-copy p:first-child { color: var(--navy); }

.publications { background: var(--paper); }
.publications-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 58px;
}
.publications-heading > div { max-width: 650px; }
.publication-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.publication-item { padding: 28px 34px 8px 0; }
.publication-item + .publication-item { padding-left: 34px; border-left: 1px solid var(--line); }
.publication-item time {
  display: block;
  margin-bottom: 25px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}
.publication-item h3 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.22;
}
.publication-item h3 a { transition: color .2s ease; }
.publication-item h3 a:hover { color: var(--red); }
.publication-item p { margin-bottom: 24px; color: var(--navy-soft); font-size: 14px; }
.publication-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.publication-link span { margin-left: 6px; color: var(--red); }
.publications-empty {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--navy-soft);
}
.publications-empty p { margin: 0; }

.contact { padding: 96px 0; }
.contact > .shell {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: clamp(60px, 10vw, 130px);
  align-items: start;
}
.contact-intro h2 { margin-bottom: 30px; }
.contact-details {
  display: grid;
  gap: 24px;
  padding-top: 8px;
  font-style: normal;
}
.contact-details div { display: grid; gap: 2px; }
.contact-details span {
  color: var(--navy-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.contact-details a { font-size: 14px; transition: color .2s ease; }
.contact-details a:hover { color: var(--red); }
.social-links { display: flex !important; gap: 22px !important; padding-top: 8px; }
.social-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--navy-soft);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.content-shell { min-height: 65vh; padding: 90px 0; }
.content-shell h1 { font-size: clamp(44px, 6vw, 72px); }

@media (max-width: 900px) {
  :root {
    --page: min(100% - 48px, 720px);
    --narrow: min(100% - 48px, 720px);
  }
  .site-header-inner { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 70px;
    padding-bottom: 80px;
  }
  .hero-copy { max-width: 650px; }
  .hero-portrait { max-width: 480px; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-item,
  .practice-item + .practice-item {
    padding: 26px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .about-grid,
  .contact > .shell { grid-template-columns: 1fr; gap: 48px; }
  .about-copy { max-width: 650px; padding-top: 0; }
  .publication-grid { grid-template-columns: 1fr; }
  .publication-item,
  .publication-item + .publication-item {
    padding: 26px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  :root {
    --page: calc(100% - 36px);
    --narrow: calc(100% - 36px);
  }
  .site-header-inner { min-height: 78px; }
  .brand-logo { width: 172px; }
  .header-cta { font-size: 9px; }
  .hero { gap: 50px; padding-top: 56px; padding-bottom: 64px; }
  h1 { font-size: clamp(43px, 13vw, 60px); }
  .hero-intro { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-portrait { max-width: none; }
  .section { padding: 76px 0; }
  .section-heading { margin-bottom: 38px; }
  .publications-heading { align-items: flex-start; flex-direction: column; margin-bottom: 38px; }
  .contact { padding: 76px 0; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
