/* MJS Advocacia — estilos do site (sem frameworks). Breakpoints: 1024px e 767px. */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/roboto-latin.woff2') format('woff2-variations'), url('/fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #00bc1a;
  --navy: #0f172a;
  --text: #222222;
  --slate: #1e293b;
  --gray: #54595f;
  --cream: #fbffde;
  --light: #f9f9f9;
  --white: #ffffff;
  --content: 1280px;
  --shadow-btn: 0 0 20px 1px rgba(54, 54, 54, 0.5);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.2;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
}

.skip-link:focus {
  top: 8px;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  padding: 12px 24px;
  border-radius: 35px;
  background: var(--green);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn svg {
  flex: none;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.btn--sm svg {
  width: 0.8em;
  height: 0.8em;
}

.btn--hero {
  font-size: 28px;
}

.btn--about {
  font-size: 30px;
}

.btn--pulse {
  animation: pulse 1.3s infinite;
}

.btn--pulse:hover {
  animation: none;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn--pulse {
    animation: none;
  }
}

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

.hero {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 860px;
  padding: 4% 0 5%;
  background-color: var(--cream);
  background-image: url('/img/hero-bg.jpg');
  background-image: image-set(url('/img/hero-bg.webp') type('image/webp'), url('/img/hero-bg.jpg') type('image/jpeg'));
  background-position: center center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(290deg, #f8f6d8 12%, #fcfcc0 100%);
  opacity: 0.13;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 38px;
  width: 47%;
  padding: 10px;
}

.hero__logo {
  width: 35%;
  padding-bottom: 23px;
}

.hero h1 {
  text-wrap: balance;
  font-size: 50px;
  font-weight: 900;
  line-height: 45px;
  color: var(--navy);
}

.hero__lead {
  padding-top: 6px;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

.hero__cta {
  padding: 0;
}

.hero__wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: -1;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  pointer-events: none;
}

.hero__wave svg {
  position: relative;
  left: 50%;
  display: block;
  width: calc(190% + 1.3px);
  height: 78px;
  transform: translateX(-50%) rotateY(180deg);
}

.hero__wave path {
  fill: #fff;
}

/* ---------- Especialistas ---------- */

.specialists {
  padding: 10% 0 5%;
  background: var(--white);
}

.specialists .container {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.specialists__text {
  width: 54%;
  flex: none;
  padding: 10px;
}

.section-title {
  font-size: 45px;
  font-weight: 700;
  line-height: 45px;
  color: var(--text);
}

.section-title--navy {
  font-weight: 800;
  color: var(--navy);
}

.section-lead {
  padding-top: 20px;
  font-size: 25px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

.features svg {
  flex: none;
  width: 35px;
  height: 35px;
  fill: var(--green);
}

.specialists__media {
  flex: 1;
  align-self: center;
  padding: 10px;
}

.specialists__media img {
  width: 100%;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

/* ---------- Áreas de atuação ---------- */

.areas {
  padding: 3% 0 10%;
  background: var(--light);
}

.areas__header {
  padding: 10px 10px 0;
  text-align: center;
}

.areas__header .section-lead {
  padding-top: 26px;
}

.areas__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 46px;
}

.area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 10px;
}

.area img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.area h3 {
  font-size: 25px;
  font-weight: 700;
  line-height: 35px;
  color: var(--text);
}

.area p {
  padding-top: 6px;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.2;
}

.area .btn {
  margin: 6px 0;
}

/* ---------- Sobre nós ---------- */

.about {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 900px;
  padding: 5% 0;
  background-image: url('/img/sobre-bg.jpg');
  background-image: image-set(url('/img/sobre-bg.webp') type('image/webp'), url('/img/sobre-bg.jpg') type('image/jpeg'));
  background-position: top center;
  background-repeat: no-repeat;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(238deg, #fafad24d 0%, #fafad285 100%);
  opacity: 0.5;
}

.about .container {
  display: flex;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 52%;
  padding: 10px;
}

.about__content .section-lead {
  padding-top: 0;
}

.about__photo {
  display: none;
}

/* ---------- Blog (home) ---------- */

.news {
  padding: 104px 40px;
  background: var(--light);
  text-align: center;
}

.news .section-lead {
  padding: 13px 0;
}

.news__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1140px;
  margin: 30px auto 0;
  text-align: left;
}

.post-card {
  width: 33.333%;
  padding: 0 5px 0 11px;
}

.post-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 30px;
}

.post-card h3 {
  margin-bottom: 8px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.post-card h3 a {
  text-decoration: none;
}

.post-card h3 a:hover {
  text-decoration: underline;
}

.post-card p {
  font-size: 20px;
  line-height: 1.2;
  color: #000;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
}

.read-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.read-more:hover {
  color: #1a1a1a;
}

.news__all {
  margin-top: 48px;
}

/* ---------- Redes sociais ---------- */

.social {
  padding: 2% 5% 5%;
  background: var(--light);
  text-align: center;
}

.social .section-lead {
  padding: 28px 0;
}

.social__list {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  transition: opacity 0.2s;
}

.social__list a:hover {
  opacity: 0.9;
}

.social__list svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.social__list .facebook {
  background: #3b5998;
}

.social__list .instagram {
  background: #262626;
}

.social__list .youtube {
  background: #cd201f;
}

/* ---------- Chamada final ---------- */

.cta {
  padding: 28px 40px 21px;
  background: linear-gradient(180deg, var(--light) 80%, var(--cream) 80%);
}

.cta__box {
  display: flex;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 27px 0 41px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.13);
}

.cta__text {
  width: 56.881%;
  padding: 24px 24px 24px 64px;
}

.cta__eyebrow {
  margin-bottom: 23px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}

.cta__text .section-lead {
  padding-top: 18px;
}

.cta__action {
  display: flex;
  justify-content: center;
  width: 43.036%;
  padding: 10px;
}

.cta .btn {
  font-size: 22px;
  border: 3px solid #fff;
  box-shadow: none;
}

.cta .btn:hover,
.cta .btn:focus-visible {
  background: #fff;
  color: var(--green);
  border-color: var(--green);
}

/* ---------- Rodapé ---------- */

.site-footer {
  padding: 3% 0;
  background: var(--cream);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0 5%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.site-footer__logo {
  width: 300px;
  padding: 10px 0;
}

.site-footer__logo img {
  max-width: 51%;
  margin: 0 auto;
}

.site-footer address,
.site-footer__contact {
  font-size: 18px;
  font-style: normal;
  line-height: 1.2;
  text-align: center;
  color: var(--slate);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.copyright {
  padding: 20px 10px;
  background: var(--white);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.38);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--gray);
}

/* ---------- Páginas internas (blog, 404) ---------- */

.topbar {
  background: var(--cream);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
}

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

.topbar__logo img {
  width: 120px;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  font-weight: 500;
}

.topbar nav a:not(.btn) {
  color: var(--navy);
  text-decoration: none;
}

.topbar nav a:not(.btn):hover {
  text-decoration: underline;
}

.page {
  padding: 64px 20px 96px;
  background: var(--light);
}

.page__inner {
  max-width: 820px;
  margin: 0 auto;
}

.page__inner--wide {
  max-width: 1140px;
}

.page h1 {
  font-size: 45px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
}

.post-meta {
  margin-top: 12px;
  font-size: 16px;
  color: var(--gray);
}

.post-cover {
  width: 100%;
  margin: 32px 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.prose {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.prose h3 {
  margin-top: 1.4em;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.prose strong {
  font-weight: 600;
}

.prose a {
  color: #00851a;
}

.prose blockquote {
  margin-left: 0;
  padding-left: 20px;
  border-left: 4px solid var(--green);
  color: var(--gray);
}

.prose img {
  margin: 0 auto;
}

.post-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e3e3e3;
}

.post-footer p {
  margin-bottom: 20px;
  font-size: 20px;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 0;
  margin-top: 48px;
}

.empty-state {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 300;
}

.not-found {
  text-align: center;
}

.not-found p {
  margin: 20px 0 36px;
  font-size: 22px;
  font-weight: 300;
}

.not-found .not-found__code {
  margin: 0 0 8px;
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  color: var(--green);
}

/* ---------- Tablet (até 1024px) ---------- */

@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .hero__content {
    width: 55%;
  }

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

  .news {
    padding: 40px 40px 80px;
  }

  .news__grid {
    margin-top: 16px;
  }

  .social {
    padding: 40px 40px 80px;
  }

  .cta {
    padding: 0 40px;
  }

  .cta__text {
    padding: 24px 24px 24px 32px;
  }

  .cta__eyebrow {
    margin-bottom: 6px;
  }

  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Celular (até 767px) ---------- */

@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .container {
    padding: 0;
  }

  .btn--hero,
  .cta .btn {
    font-size: 16px;
  }

  .btn,
  .btn--about {
    font-size: 15px;
  }

  .hero {
    min-height: 838px;
    padding: 3%;
    background-image: url('/img/bg-mobile.jpg');
    background-image: image-set(url('/img/bg-mobile.webp') type('image/webp'), url('/img/bg-mobile.jpg') type('image/jpeg'));
  }

  .hero__content {
    width: 100%;
    gap: 27px;
    align-items: center;
    text-align: center;
  }

  .hero__logo {
    width: 42%;
    padding-bottom: 18px;
  }

  .hero h1 {
    font-size: 27px;
    line-height: 1.1;
  }

  .hero__lead {
    font-size: 22px;
  }

  .hero__mobile-img {
    width: 100%;
  }

  .specialists {
    padding: 10% 5%;
  }

  .specialists .container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .specialists__text,
  .specialists__media {
    width: 100%;
    flex: none;
  }

  .section-title {
    font-size: 25px;
    line-height: 1.1;
  }

  .section-lead {
    padding-top: 6px;
    font-size: 18px;
  }

  .specialists .section-lead {
    padding-bottom: 5%;
  }

  .features {
    gap: 22px 20px;
    margin-top: 40px;
  }

  .features li {
    flex-direction: column;
    gap: 15px;
    font-size: 15px;
    text-align: center;
  }

  .features svg {
    width: 30px;
    height: 30px;
  }

  .areas {
    padding: 5% 5% 10%;
  }

  .areas__header {
    text-align: left;
  }

  .areas__header .section-lead {
    padding-top: 22px;
  }

  .areas__grid {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .area h3 {
    line-height: 1.1;
  }

  .area p {
    font-size: 18px;
  }

  .about {
    min-height: 1050px;
    padding: 10% 5% 5%;
    background-image: url('/img/bg-mobile.jpg');
    background-image: image-set(url('/img/bg-mobile.webp') type('image/webp'), url('/img/bg-mobile.jpg') type('image/jpeg'));
  }

  .about__content {
    width: 100%;
    justify-content: center;
    gap: 22px;
  }

  .about__photo {
    display: block;
    width: 100%;
  }

  .about .section-title {
    font-size: 35px;
  }

  .about .btn {
    margin: 6px 0;
  }

  .news {
    padding: 12% 5% 0;
  }

  .news .section-title {
    font-size: 35px;
  }

  .news .section-lead {
    padding: 26px 0 0;
    text-align: left;
  }

  .news__grid {
    margin-top: 36px;
  }

  .news__grid,
  .blog-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .post-card {
    padding: 0 0 48px;
  }

  .post-card h3 {
    font-size: 20px;
  }

  .post-card p {
    font-size: 19px;
  }

  .news__all {
    margin: 0 0 48px;
  }

  .social {
    padding: 40px 24px 64px;
  }

  .social .section-title {
    font-size: 27px;
  }

  .social .section-lead {
    padding: 20px 0 28px;
  }

  .cta {
    padding: 0 24px;
  }

  .cta__box {
    flex-direction: column;
    padding: 0 0 20px;
  }

  .cta__text,
  .cta__action {
    width: 100%;
    text-align: center;
  }

  .cta__text {
    padding: 32px 24px 24px;
  }

  .cta__eyebrow {
    margin-bottom: 26px;
  }

  .cta .section-title {
    font-size: 25px;
  }

  .cta .btn {
    border-width: 1px;
  }

  .site-footer {
    padding: 9% 1% 10%;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 27px;
  }

  .site-footer__logo img {
    max-width: 63%;
  }

  .copyright {
    padding: 25px 5%;
    box-shadow: none;
    font-size: 14px;
    color: var(--slate);
  }

  .topbar nav .topbar__link {
    display: none;
  }

  .page {
    padding: 40px 20px 64px;
  }

  .page h1 {
    font-size: 32px;
  }

  .prose {
    font-size: 18px;
  }

  .prose h2 {
    font-size: 24px;
  }
}
