/*
Theme Name: Andrade Alcântara
Theme URI: https://www.andradealcantaraadvogados.com.br
Author: 3X Sites
Author URI: https://3xsites.com.br
Description: Tema institucional editável para Andrade Alcântara Advogados Associados.
Version: 1.0.9
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: andrade-alcantara
*/

:root {
  --aa-ink: #101114;
  --aa-muted: #64676e;
  --aa-paper: #ffffff;
  --aa-soft: #f3f3f2;
  --aa-line: #d8d8d5;
  --aa-red: #e00000;
  --aa-red-dark: #ad0000;
  --aa-gold: #b08a51;
  --aa-shadow: 0 24px 70px rgba(16, 17, 20, .08);
}

html { scroll-behavior: smooth; }
body {
  --aa-header-offset: 0px;
  overflow-x: hidden;
  padding-top: 112px;
}
body.admin-bar { --aa-header-offset: 32px; }
a { text-underline-offset: .18em; }
#inicio, #como-podemos-auxiliar, #areas-de-atuacao, #sobre, #contato { scroll-margin-top: 118px; }

.aa-motion .aa-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity .72s cubic-bezier(.22, 1, .36, 1),
    transform .72s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--aa-delay, 0ms);
  will-change: opacity, transform;
}

.aa-motion .aa-reveal-down { transform: translate3d(0, -18px, 0); }
.aa-motion .aa-reveal-left { transform: translate3d(-34px, 0, 0); }
.aa-motion .aa-reveal-right { transform: translate3d(34px, 0, 0); }

.aa-motion .aa-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.aa-site-header {
  position: fixed;
  z-index: 50;
  top: var(--aa-header-offset);
  right: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(16, 17, 20, .08);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.aa-contact-bar-wrap {
  position: relative;
  width: 100vw;
  max-width: none !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  color: rgba(255,255,255,.78);
  background: var(--aa-ink);
}

.aa-contact-bar {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.aa-contact-details {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.8rem);
  font-size: .76rem;
  line-height: 1.2;
}

.aa-contact-details a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.aa-contact-details a:hover,
.aa-contact-details a:focus-visible { color: #fff; }

.aa-contact-details span {
  margin-right: .42rem;
  color: #fff;
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.aa-contact-whatsapp {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: .58rem 1rem;
  color: #fff;
  border-radius: 2px;
  background: var(--aa-red);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .1em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}

.aa-contact-whatsapp:hover,
.aa-contact-whatsapp:focus-visible {
  color: #fff;
  background: var(--aa-red-dark);
  transform: translateY(-1px);
}

.aa-header-inner {
  min-height: 68px;
  justify-content: center !important;
}

.aa-logo img {
  width: auto;
  height: 64px;
  object-fit: contain;
}

.aa-header-logo { position: relative; display: block; width: 85px; height: 64px; overflow: hidden; clip-path: inset(0 1px 0 0); }
.aa-header-logo .aa-logo-layer { position: absolute; inset: 0 auto auto 0; width: auto; height: 64px; object-fit: contain; }
.aa-header-logo .aa-logo-black { filter: url('#aa-black-elements'); }
.aa-header-logo .aa-logo-red { filter: url('#aa-red-elements'); }
.aa-logo-filters { position: absolute; width: 0; height: 0; overflow: hidden; }

.aa-site-header .wp-block-navigation-item__content {
  position: relative;
  text-decoration: none;
}

.aa-site-header .wp-block-navigation-item__content::after {
  position: absolute;
  right: 0;
  bottom: -.55rem;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--aa-red);
  transition: transform .2s ease;
}

.aa-site-header .wp-block-navigation-item__content:hover::after,
.aa-site-header .wp-block-navigation-item__content:focus-visible::after {
  transform: scaleX(1);
}

.aa-button .wp-block-button__link,
.aa-button.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .95rem 1.35rem;
  border-radius: 2px;
  color: #fff;
  background: var(--aa-red);
  box-shadow: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.15;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.aa-button .wp-block-button__link:hover,
.aa-button .wp-block-button__link:focus-visible {
  background: var(--aa-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(173, 0, 0, .2);
}

.aa-button-outline .wp-block-button__link {
  border: 1px solid var(--aa-ink);
  color: var(--aa-ink) !important;
  background: transparent !important;
}

.aa-kicker {
  font-size: .76rem !important;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.aa-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(8, 9, 12, .94) 0%, rgba(8, 9, 12, .83) 39%, rgba(8, 9, 12, .34) 68%, rgba(8, 9, 12, .12) 100%),
    linear-gradient(0deg, rgba(8, 9, 12, .46), rgba(8, 9, 12, .08)),
    url('assets/hero-curitiba-tribunal.jpg');
  background-position: center;
  background-size: cover;
}

.aa-hero::before {
  position: absolute;
  z-index: 0;
  right: 4vw;
  bottom: 0;
  width: min(34vw, 510px);
  height: 5px;
  content: "";
  background: var(--aa-red);
}

.aa-hero-inner { position: relative; z-index: 1; align-items: stretch !important; }
.aa-hero-copy { max-width: 760px; padding: 8.3rem 0 8.8rem; }

.aa-hero h1 {
  max-width: 720px;
  margin-top: 1.15rem;
  margin-bottom: 1.6rem;
  color: #fff;
  font-size: clamp(3rem, 5.4vw, 5.6rem);
  line-height: 1.01;
  letter-spacing: -.04em;
  text-shadow: 0 3px 28px rgba(0, 0, 0, .35);
}

.aa-hero h1 mark {
  color: var(--aa-red);
  background: none;
}

.aa-hero-lead {
  max-width: 620px;
  color: rgba(255,255,255,.82);
  font-size: 1.12rem;
  line-height: 1.75;
}

.aa-hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: clamp(1rem, 3vw, 3.5rem);
}

.aa-hero-copy > .aa-kicker { display: none; }

.aa-hero-brand-group {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.aa-hero-brand {
  position: relative;
  width: min(320px, 24vw);
  aspect-ratio: 553 / 419;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.28));
}

.aa-hero-brand .aa-logo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aa-hero-brand .aa-logo-white { filter: url('#aa-white-elements'); }
.aa-hero-brand .aa-logo-red { filter: url('#aa-red-elements'); }

.aa-hero-brand-oab {
  margin: .85rem 0 0;
  color: var(--aa-red);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .18em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

/* Remove pixels residuais das bordas claras do arquivo-fonte da marca. */
.aa-hero-brand .aa-logo-white,
.aa-hero-logo .aa-logo-white,
.aa-footer-logo .aa-logo-white {
  clip-path: inset(2px 2px 2px 2px);
}

.aa-hero-logo { display: none; }

.aa-hero-actions { align-items: center; gap: 1.2rem; }
.aa-hero-link { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-decoration-color: var(--aa-red); text-transform: uppercase; }
.aa-hero-link:hover { color: #fff; }

.aa-proof-strip {
  position: relative;
  z-index: 3;
  margin-top: -70px !important;
  padding: 1.8rem 2rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(16, 17, 20, .97);
  box-shadow: 0 24px 70px rgba(16, 17, 20, .22);
}

.aa-proof-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: .8rem;
  padding: 0 1.2rem;
  border-right: 1px solid rgba(255,255,255,.15);
}

.aa-proof-item:last-child { border-right: 0; }
.aa-proof-icon { color: var(--aa-red); font-size: 1.25rem; }
.aa-proof-item strong { display: block; font-size: .86rem; }
.aa-proof-item span { color: rgba(255,255,255,.62); font-size: .82rem; }

.aa-section { padding-top: 7rem; padding-bottom: 7rem; }
.aa-section-soft { background: var(--aa-soft); }
.aa-section-dark { color: #fff; background: var(--aa-ink); }
.aa-section-heading { max-width: 780px; margin-bottom: 3.2rem; }
.aa-section-heading h2 { margin-top: .65rem; margin-bottom: 0; }

.aa-section-heading::after {
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 1.4rem;
  content: "";
  background: var(--aa-red);
}

.aa-card-grid { align-items: stretch !important; }

.aa-situation-card,
.aa-practice-card {
  height: 100%;
  padding: 2.1rem;
  border: 1px solid var(--aa-line);
  background: #fff;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.aa-situation-card:hover,
.aa-practice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 0, 0, .42);
  box-shadow: 0 18px 45px rgba(16, 17, 20, .08);
}

.aa-card-number {
  margin-bottom: 2rem;
  color: var(--aa-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
}

#como-podemos-auxiliar .aa-situation-card {
  min-height: 310px;
  border-top: 4px solid var(--aa-ink);
}

#como-podemos-auxiliar .aa-situation-card:hover { border-top-color: var(--aa-red); }

.aa-situation-card h3,
.aa-practice-card h3 { margin-top: 0; }
.aa-situation-card p,
.aa-practice-card p { color: var(--aa-muted); }

.aa-practice-card {
  position: relative;
  padding-top: 2.6rem;
}

#areas-de-atuacao {
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(224,0,0,.12), transparent 28rem),
    var(--aa-ink);
}

#areas-de-atuacao .aa-practice-card {
  min-height: 250px;
  color: #fff;
  border-color: rgba(255,255,255,.14);
  background: #17191e;
}

#areas-de-atuacao .aa-practice-card p { color: rgba(255,255,255,.64); }
#areas-de-atuacao .aa-practice-card:hover { border-color: rgba(224,0,0,.75); box-shadow: 0 20px 50px rgba(0,0,0,.25); }

.aa-practice-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 4px;
  content: "";
  background: var(--aa-red);
}

.aa-cta-band {
  padding: 2rem 2.4rem;
  color: var(--aa-ink);
  border: 0;
  background: #fff;
  box-shadow: var(--aa-shadow);
}

.aa-about-panel {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  background-image: url('assets/tribunal-interior.jpg');
  background-position: center;
  background-size: cover;
  border: 1px solid var(--aa-line);
}

.aa-about-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(16,17,20,.03) 35%, rgba(16,17,20,.34) 100%);
}

.aa-about-panel::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 110px;
  height: 5px;
  content: "";
  background: var(--aa-red);
}

.aa-about-copy { padding: 2rem 0 2rem 3rem; }
.aa-about-copy p { line-height: 1.8; }

.aa-differential {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border-left: 3px solid var(--aa-red);
  background: var(--aa-soft);
}

.aa-contact-grid { align-items: stretch !important; }
.aa-contact-card { height: 100%; padding: 2.3rem; border: 1px solid rgba(255,255,255,.16); }
.aa-contact-card a { color: #fff; }
.aa-contact-card p { color: rgba(255,255,255,.72); }

.aa-site-footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.12);
  background: var(--aa-ink);
}

.aa-site-footer a { color: #fff; }
.aa-footer-logo { position: relative; width: 98px; height: 74px; }
.aa-footer-logo .aa-logo-layer { position: absolute; inset: 0 auto auto 0; width: auto; height: 74px; }
.aa-footer-logo .aa-logo-white { filter: url('#aa-white-elements'); }
.aa-footer-logo .aa-logo-red { filter: url('#aa-red-elements'); }
.aa-credit { display: inline-block; margin-top: .45rem; color: rgba(255,255,255,.5); }
.aa-credit a { color: rgba(255,255,255,.78); font-weight: 600; text-decoration-color: var(--aa-red); }
.aa-credit a:hover, .aa-credit a:focus-visible { color: #fff; }

@media (max-width: 980px) {
  body { padding-top: 76px; }
  .aa-site-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
  }
  .aa-contact-bar-wrap {
    position: static;
    width: auto;
    flex: 1 1 auto;
    margin: 0 !important;
    background: transparent;
  }
  .aa-contact-bar {
    width: auto !important;
    min-height: 76px;
    justify-content: flex-start;
    margin: 0 !important;
  }
  .aa-contact-details { display: none; }
  .aa-contact-whatsapp {
    min-height: 44px;
    padding: .78rem 1rem;
    font-size: .67rem;
  }
  .aa-header-inner {
    width: auto !important;
    min-height: 76px;
    flex: 0 0 auto;
    justify-content: flex-end !important;
    margin: 0 !important;
  }
  .aa-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .aa-site-header .wp-block-navigation__responsive-container-open { display: flex !important; }
  .aa-hero { background-position: 58% center; }
  .aa-hero::before { right: 0; width: 42%; opacity: 1; }
  .aa-hero-copy { max-width: 690px; padding-top: 3rem; padding-bottom: 7.5rem; }
  .aa-hero-mark { display: none; }
  .aa-hero-logo {
    position: relative;
    display: block;
    width: min(210px, 55vw);
    aspect-ratio: 553 / 419;
    margin: 0 0 1.35rem;
  }
  .aa-hero-logo .aa-logo-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .aa-hero-logo .aa-logo-white { filter: url('#aa-white-elements'); }
  .aa-hero-logo .aa-logo-red { filter: url('#aa-red-elements'); }
  .aa-hero-copy > .aa-kicker { display: block; }
  .aa-proof-strip { margin-top: -30px !important; }
  .aa-proof-item { border-right: 0; border-bottom: 1px solid var(--aa-line); }
  .aa-proof-item:last-child { border-bottom: 0; }
  .aa-about-copy { padding-left: 0; }
}

@media (max-width: 782px) {
  body.admin-bar { --aa-header-offset: 46px; }
}

@media (max-width: 680px) {
  /* Mantém o conteúdo confortavelmente afastado das bordas em telas pequenas. */
  .aa-header-inner,
  .aa-hero-inner,
  .aa-proof-strip,
  .aa-section > .alignwide,
  .aa-site-footer > .alignwide,
  .aa-site-footer > p {
    box-sizing: border-box;
    width: calc(100% - 44px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .aa-header-inner {
    width: auto !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .aa-mobile-toggle { display: block !important; }
  .aa-hero {
    min-height: auto;
    background-image:
      linear-gradient(90deg, rgba(8,9,12,.96), rgba(8,9,12,.72)),
      url('assets/hero-curitiba-tribunal.jpg');
    background-position: 68% center;
  }
  .aa-hero-copy { padding: 2.2rem 0 6.2rem; }
  .aa-hero-logo {
    width: min(230px, 68vw);
  }
  .aa-hero .aa-kicker { margin-top: 0; }
  .aa-hero h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .aa-hero-actions { align-items: flex-start; flex-direction: column; }
  .aa-proof-strip { padding: 1.1rem; }
  .aa-section { padding-top: 5rem; padding-bottom: 5rem; }
  .aa-situation-card, .aa-practice-card, .aa-contact-card { padding: 1.6rem; }
  .aa-cta-band { padding: 1.6rem; }
  .aa-site-footer .wp-block-columns { align-items: center !important; text-align: center; }
  .aa-site-footer .wp-block-column { width: 100%; text-align: center; }
  .aa-site-footer .aa-footer-logo { margin-right: auto; margin-left: auto; }
  .aa-site-footer p { text-align: center; }
}

@media (max-width: 980px) {
  .aa-site-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed;
    top: calc(var(--aa-header-offset) + 76px);
    right: 0;
    bottom: auto;
    left: 0;
    display: block;
    width: 100%;
    max-height: none;
    padding: 1rem 22px 1.35rem !important;
    overflow: visible;
    color: var(--aa-ink) !important;
    border-top: 1px solid var(--aa-line);
    background: rgba(255,255,255,.985) !important;
    box-shadow: 0 18px 38px rgba(16,17,20,.14);
    backdrop-filter: blur(14px);
  }

  .aa-site-header .wp-block-navigation__responsive-dialog,
  .aa-site-header .wp-block-navigation__responsive-close {
    width: 100%;
  }

  .aa-site-header .wp-block-navigation__responsive-container-close {
    top: .25rem;
    right: 0;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--aa-soft);
  }

  .aa-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 3rem !important;
  }

  .aa-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    width: 100%;
    align-items: stretch;
    gap: 0;
  }

  .aa-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    width: 100%;
    align-items: stretch;
  }

  .aa-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    width: 100%;
    padding: .78rem 0 !important;
    border-bottom: 1px solid rgba(16,17,20,.09);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.25;
  }

  .aa-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
    border-bottom: 0;
  }

  .aa-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
    display: none;
  }
}

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