/*
 * AP Advogados — integração das páginas de áreas com o cabeçalho aprovado.
 * Mantém o hero e a arquitetura das landing pages da V16.
 */

.area-page {
  --home-gold: #b99352;
  --home-gold-light: #d7bb83;
  --home-line: rgba(185, 147, 82, 0.32);
}

.area-page a:focus-visible,
.area-page button:focus-visible {
  outline: 2px solid var(--home-gold-light);
  outline-offset: 4px;
}

.area-page .header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 0 auto;
}

.area-page .header-whatsapp,
.area-page .header-schedule {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--home-gold-light);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.area-page .header-whatsapp {
  gap: 6px;
  padding: 0 12px 0 0;
  border-right: 1px solid rgba(185, 147, 82, 0.42);
}

.area-page .header-whatsapp:hover {
  color: #efe1c4;
  border-right-color: rgba(215, 187, 131, 0.74);
}

.area-page .header-contact-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  object-fit: contain;
  filter: grayscale(1) sepia(1) saturate(1.1) brightness(0.91);
  opacity: 0.9;
}

.area-page .header-contact-copy {
  display: grid;
  line-height: 1.08;
}

.area-page .header-contact-copy small {
  display: none;
}

.area-page .header-contact-copy strong {
  color: currentColor;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.075em;
  white-space: nowrap;
}

.area-page .header-schedule {
  min-width: 140px;
  padding: 0 11px;
  border: 1px solid rgba(185, 147, 82, 0.62);
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.area-page .header-schedule::after {
  content: none;
  display: none;
}

.area-page .header-schedule:hover {
  color: #f0dfbd;
  background: rgba(185, 147, 82, 0.08);
  border-color: rgba(215, 187, 131, 0.9);
  transform: translateY(-1px);
}

.area-page .nav-schedule-mobile {
  display: none !important;
}

.area-page .nav-submenu {
  min-width: 242px;
}

/* Hero único para todas as páginas de atuação. */
.area-page.landing-page .hero {
  min-height: clamp(560px, 62svh, 600px);
  padding-top: 72px;
  padding-bottom: 48px;
}

.area-page.landing-page .hero-inner {
  min-height: 440px;
  align-items: center;
}

.area-page.landing-page .hero-copy {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  transform: none;
}

.area-page.landing-page .landing-hero-message {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.area-page.landing-page .landing-hero-message h1 {
  font-size: clamp(40px, 3.35vw, 52px);
  line-height: 1.02;
  text-wrap: balance;
}

.area-page.landing-page .landing-hero-message p {
  max-width: 540px;
  margin: 16px auto 0;
  font-size: clamp(21px, 1.55vw, 25px);
  line-height: 1.22;
  text-wrap: balance;
}

.area-page.landing-page .landing-hero-action {
  width: min(540px, 100%);
  margin-top: 22px;
  justify-content: center;
}

.area-page.landing-page .area-hero-cta.wa-image-link {
  width: min(100%, 215px) !important;
}

.area-page .method-section {
  background:
    radial-gradient(circle at 84% 12%, rgba(185, 147, 82, 0.08), transparent 30%),
    linear-gradient(180deg, #121a1e, #0e1518);
}

.area-page .process-grid {
  margin-top: 28px;
}

.area-page .process-card {
  position: relative;
  min-height: 210px;
  padding: 52px 24px 24px;
  border-color: rgba(185, 147, 82, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.area-page .process-step {
  position: absolute;
  top: 20px;
  left: 24px;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.area-page .complexity-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(185, 147, 82, 0.28);
  border-left: 3px solid var(--home-gold);
  background: rgba(255, 255, 255, 0.035);
}

.area-page .complexity-panel h3 {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-size: 22px;
}

.area-page .complexity-panel p {
  margin: 0;
  color: #dce1e3;
}

/* Painel editorial compartilhado pelas páginas de atuação. */
.area-page .area-editorial .lead {
  max-width: 880px;
}

.area-page .area-editorial__panel {
  margin-top: 32px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--brand-line);
  border-radius: 6px;
  background:
    radial-gradient(circle at 88% 0, rgba(201, 163, 91, 0.075), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.area-page .area-editorial__cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.area-page .area-editorial__case {
  min-width: 0;
  padding: clamp(26px, 2.8vw, 36px);
  position: relative;
}

.area-page .area-editorial__case + .area-editorial__case {
  border-left: 1px solid var(--brand-line);
}

.area-page .area-editorial__case::before {
  content: "";
  width: 42px;
  height: 1px;
  display: block;
  margin-bottom: 20px;
  background: var(--brand-gold);
}

.area-page .area-editorial__case h3 {
  margin: 0 0 12px;
  color: var(--brand-text-light);
  font-family: var(--font-editorial);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: var(--weight-bold);
  line-height: 1.12;
  text-wrap: balance;
}

.area-page .area-editorial__case p {
  margin: 0;
  color: rgba(236, 239, 240, 0.82);
  font-size: 15px;
  line-height: 1.64;
}

.area-page .area-editorial__case > span {
  display: block;
  margin-top: 20px;
  color: var(--brand-gold-light);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.area-page .area-editorial__documents {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(0, 2.22fr);
  border-top: 1px solid var(--brand-line);
  background: rgba(4, 8, 10, 0.18);
}

.area-page .area-editorial__documents-head {
  padding: 30px 32px;
  border-right: 1px solid var(--brand-line);
  background: rgba(201, 163, 91, 0.035);
}

.area-page .area-editorial__documents-head > span {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-gold);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.area-page .area-editorial__documents-head h3 {
  margin: 0;
  color: var(--brand-text-light);
  font-family: var(--font-editorial);
  font-size: clamp(22px, 2.1vw, 29px);
  font-weight: var(--weight-bold);
  line-height: 1.12;
  text-wrap: balance;
}

.area-page .area-editorial__document-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.area-page .area-editorial__document {
  min-width: 0;
  padding: 24px 28px;
}

.area-page .area-editorial__document:nth-child(even) {
  border-left: 1px solid var(--brand-line);
}

.area-page .area-editorial__document:nth-child(n + 3) {
  border-top: 1px solid var(--brand-line);
}

.area-page .area-editorial__document strong {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-gold-light);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}

.area-page .area-editorial__document p {
  margin: 0;
  color: rgba(236, 239, 240, 0.76);
  font-size: 14px;
  line-height: 1.58;
}

.area-page .floating-wa.wa-image-link {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

@media (min-width: 981px) {
  .area-page .nav-submenu {
    top: calc(100% + 6px);
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .area-page .header-actions {
    gap: 8px;
  }

  .area-page .header-whatsapp {
    padding-right: 8px;
  }

  .area-page .header-schedule {
    padding: 0 8px;
  }
}

@media (max-width: 980px) {
  .area-page .header-actions {
    flex: 0 1 154px;
    width: 154px;
    max-width: 154px;
    margin-left: auto;
    display: block;
  }

  .area-page .header-whatsapp {
    width: 100%;
    min-height: 36px;
    gap: 6px;
    padding: 0;
    border-right: 0;
  }

  .area-page .header-contact-icon {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .area-page .header-contact-copy strong {
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }

  .area-page .header-schedule {
    display: none;
  }

  .area-page .main-nav.is-open {
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .area-page .nav-schedule-mobile {
    width: calc(100% - 32px) !important;
    min-height: 46px !important;
    margin: 14px 16px 18px;
    padding: 13px 18px !important;
    display: flex !important;
    justify-content: center !important;
    color: var(--home-gold-light) !important;
    background: rgba(185, 147, 82, 0.04) !important;
    border: 1px solid rgba(185, 147, 82, 0.58);
    border-radius: 4px;
    font-size: 12px !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .area-page.landing-page .hero {
    min-height: 520px;
    padding-top: 84px;
    padding-bottom: 40px;
  }

  .area-page.landing-page .hero-inner {
    min-height: 396px;
  }

  .area-page.landing-page .hero-copy {
    width: min(520px, 100%);
  }

  .area-page.landing-page .landing-hero-message {
    width: 100%;
    max-width: 500px;
  }

  .area-page.landing-page .landing-hero-message h1 {
    font-size: clamp(34px, 5.4vw, 44px);
    line-height: 1.03;
  }

  .area-page.landing-page .landing-hero-message p {
    max-width: 480px;
    margin-top: 15px;
    font-size: clamp(19px, 2.8vw, 23px);
    line-height: 1.22;
  }

  .area-page.landing-page .landing-hero-action {
    width: min(500px, 100%);
    margin-top: 20px;
  }

  .area-page.landing-page .area-hero-cta.wa-image-link {
    width: min(100%, 200px) !important;
  }

  .area-page .area-editorial__cases {
    grid-template-columns: 1fr;
  }

  .area-page .area-editorial__case {
    padding: 26px 28px;
  }

  .area-page .area-editorial__case + .area-editorial__case {
    border-top: 1px solid var(--brand-line);
    border-left: 0;
  }

  .area-page .area-editorial__documents {
    grid-template-columns: 1fr;
  }

  .area-page .area-editorial__documents-head {
    border-right: 0;
    border-bottom: 1px solid var(--brand-line);
  }
}

@media (max-width: 620px) {
  .area-page .header-actions {
    flex-basis: 136px;
    width: 136px;
    max-width: 136px;
  }

  .area-page .header-whatsapp {
    min-height: 34px;
  }

  .area-page .header-contact-icon {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
  }

  .area-page .header-contact-copy strong {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .area-page.landing-page .hero {
    min-height: 470px;
    padding-top: 78px;
    padding-bottom: 32px;
  }

  .area-page.landing-page .hero-inner {
    min-height: 360px;
  }

  .area-page.landing-page .hero-copy {
    width: min(360px, 100%);
  }

  .area-page.landing-page .landing-hero-message {
    max-width: 340px;
  }

  .area-page.landing-page .landing-hero-message h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.03;
  }

  .area-page.landing-page .landing-hero-message p {
    max-width: 330px;
    margin-top: 13px;
    font-size: clamp(17px, 5vw, 21px);
    line-height: 1.24;
  }

  .area-page.landing-page .landing-hero-action {
    width: min(340px, 100%);
    margin-top: 18px;
  }

  .area-page.landing-page .area-hero-cta.wa-image-link {
    width: min(100%, 175px) !important;
  }

  .area-page .process-card {
    min-height: 0;
  }

  .area-page .area-editorial__panel {
    margin-top: 24px;
  }

  .area-page .area-editorial__case,
  .area-page .area-editorial__documents-head,
  .area-page .area-editorial__document {
    padding: 22px 20px;
  }

  .area-page .area-editorial__case h3 {
    font-size: clamp(22px, 7vw, 26px);
  }

  .area-page .area-editorial__document-list {
    grid-template-columns: 1fr;
  }

  .area-page .area-editorial__document:nth-child(even) {
    border-left: 0;
  }

  .area-page .area-editorial__document:nth-child(n + 3) {
    border-top: 0;
  }

  .area-page .area-editorial__document + .area-editorial__document {
    border-top: 1px solid var(--brand-line);
  }
}

@media (max-width: 400px) {
  .area-page .header-actions {
    flex-basis: 126px;
    width: 126px;
    max-width: 126px;
  }

  .area-page .header-contact-copy strong {
    font-size: 9.5px;
  }
}

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