/*
Theme Name: Brambila & Gonçalves Advocacia
Theme URI: https://example.com/
Author: Brambila & Gonçalves Advocacia
Description: Tema WordPress personalizado convertido do site original em código, com Home institucional e blog dinâmico integrado aos Posts do WordPress.
Version: 1.0.3
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: brambila-goncalves
*/

:root {
  --navy: #102a43;
  --blue: #1f5a94;
  --champagne: #b8924a;
  --champagne-dark: #a7813f;
  --champagne-light: #d2ae61;
  --whatsapp: #25d366;
  --whatsapp-dark: #20bd5a;
  --ink: #425466;
  --mist: #f3f6fa;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: var(--bg-admin-offset, 0px);
  z-index: 2000;
  width: 100%;
  height: 96px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 3px 14px rgba(16, 42, 67, 0.08);
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  margin-left: 14px;
  white-space: nowrap;
}

.brand-copy strong {
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.1;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--champagne);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  line-height: 1;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.desktop-nav a {
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--champagne);
}

.header-whatsapp {
  height: 52px;
  margin-left: 38px;
  padding: 0 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #083d22;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(16, 42, 67, 0.14);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 620px;
  height: 650px;
  width: 100%;
  overflow: hidden;
  background: var(--navy);
}

.hero-brand-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: max(6vw, 48px);
  background: #173b5b;
}

.hero-brand-mark::before {
  content: "";
  position: absolute;
  right: -11%;
  top: -60%;
  width: 680px;
  height: 980px;
  border: 1px solid rgba(210, 174, 97, 0.22);
  transform: rotate(28deg);
}

.hero-brand-mark img {
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  object-fit: contain;
  opacity: 0.45;
  filter: saturate(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,42,67,0.96) 0%, rgba(16,42,67,0.88) 37%, rgba(16,42,67,0.48) 67%, rgba(16,42,67,0.16) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: 100%;
  max-width: 680px;
}

.hero-line {
  display: block;
  width: 52px;
  height: 3px;
  margin-bottom: 22px;
  border-radius: 2px;
  background: var(--champagne);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1px;
}

.hero p {
  max-width: 660px;
  margin: 28px 0 0;
  color: #f5f7fa;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta {
  width: fit-content;
  height: 54px;
  margin-top: 36px;
  padding: 0 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--champagne);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  background: var(--champagne-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.floating-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 11px 28px rgba(0, 0, 0, 0.24);
}

.floating-whatsapp:focus-visible,
.header-whatsapp:focus-visible,
.hero-cta:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 3px;
}

.floating-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  padding: 9px 13px;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-whatsapp:hover .floating-tooltip,
.floating-whatsapp:focus-visible .floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.section-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

.areas-section,
.blog-section {
  width: 100%;
  background: var(--mist);
}

.areas-section {
  padding: 88px 32px 96px;
}

.areas-section h2,
.team-section h2,
.blog-section h2,
.faq-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 46px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.areas-section h2 strong,
.team-section h2 strong,
.blog-section h2 strong,
.faq-section h2 strong {
  font-weight: 700;
}

.area-tabs {
  width: 100%;
  margin: 42px 0 56px;
  border-radius: 999px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 42, 67, 0.1);
}

.area-tabs button {
  min-height: 64px;
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease;
}

.area-tabs button.is-active {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.area-tabs button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 2px solid var(--champagne);
  outline-offset: -3px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  animation: content-in 180ms ease both;
}

/* Hide inactive area panels. Author CSS on .services-grid otherwise overrides the HTML hidden attribute. */
.area-panel[hidden] {
  display: none !important;
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  min-height: 210px;
  padding: 26px 28px;
  border: 1px solid rgba(16, 42, 67, 0.04);
  border-radius: 26px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 42, 67, 0.025);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.service-card:hover {
  border-color: rgba(184, 146, 74, 0.2);
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.08);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  transition: background 200ms ease;
}

.service-card:hover .service-icon {
  background: var(--champagne);
}

.service-card h3 {
  margin: 1px 0 10px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.22;
}

.service-card p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

.team-section {
  position: relative;
  width: 100%;
  padding: 90px 0 88px;
  overflow: hidden;
  background: #fff;
}

.team-heading {
  padding: 0 32px;
}

.section-line {
  display: block;
  width: 46px;
  height: 3px;
  margin: 16px auto 46px;
  border-radius: 3px;
  background: var(--champagne);
}

.team-carousel {
  position: relative;
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 0 72px;
}

.team-track {
  display: flex;
  justify-content: flex-start;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.team-track::-webkit-scrollbar {
  display: none;
}

.professional-card {
  width: 360px;
  min-width: 360px;
  height: 520px;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--navy);
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.08);
  scroll-snap-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.professional-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(16, 42, 67, 0.13);
}

.professional-photo {
  position: relative;
  width: 100%;
  height: 68%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  background: #e8edf3;
  color: #7a8896;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.professional-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,42,67,0) 55%, rgba(16,42,67,0.22) 100%);
}

.professional-photo img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  opacity: 0.55;
}

.professional-info {
  height: 32%;
  padding: 18px 24px 22px;
  background: var(--navy);
  color: #fff;
}

.card-line {
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 10px;
  border-radius: 3px;
  background: var(--champagne);
  transition: width 220ms ease;
}

.professional-card:hover .card-line {
  width: 50px;
}

.professional-role {
  margin: 0;
  color: var(--champagne-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.professional-info h3 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.18;
}

.professional-oab {
  margin: 7px 0 0;
  color: #dce5ed;
  font-size: 13px;
  font-weight: 500;
}

.professional-area {
  margin: 5px 0 0;
  color: #bfcbd6;
  font-size: 13px;
  line-height: 1.45;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 23px);
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 5px 18px rgba(16, 42, 67, 0.18);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.carousel-arrow:hover,
.mobile-carousel-controls button:hover {
  background: var(--champagne);
  color: var(--navy);
}

.arrow-left {
  left: 12px;
}

.arrow-right {
  right: 12px;
}

.mobile-carousel-controls {
  display: none;
}

.carousel-dots {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.carousel-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dots button.is-active {
  width: 24px;
  background: var(--champagne);
}

.team-description {
  max-width: 980px;
  margin: 42px auto 0;
  padding: 0 22px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  text-align: center;
}

.blog-section {
  padding: 88px 32px 92px;
}

.blog-section .section-line,
.faq-section .section-line {
  margin-bottom: 20px;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 46px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
}

.blog-empty {
  max-width: 840px;
  min-height: 180px;
  margin: 0 auto;
  padding: 34px 38px;
  border: 1px solid rgba(16, 42, 67, 0.06);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.055);
}

.blog-empty-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
}

.blog-empty h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.blog-empty p {
  margin: 0;
  color: #526273;
  font-size: 15px;
  line-height: 1.65;
}

.blog-button {
  width: fit-content;
  height: 52px;
  margin: 44px auto 0;
  padding: 0 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.blog-button.is-disabled {
  cursor: default;
  opacity: 0.68;
}

.faq-section {
  width: 100%;
  padding: 88px 32px 96px;
  background: #fff;
}

.faq-section .section-intro {
  margin-bottom: 52px;
}

.faq-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: 72px;
}

.faq-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #e4e8ed;
}

.faq-item {
  min-height: 82px;
  border-top: 1px solid #e1e6eb;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faq-item:nth-child(5),
.faq-item:nth-child(10) {
  border-bottom: 1px solid #e1e6eb;
}

.faq-item > button {
  width: 100%;
  min-height: 81px;
  padding: 24px 4px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  transition: background 180ms ease;
}

.faq-item > button:hover {
  background: #fafbfc;
}

.faq-item > button:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

.faq-symbol {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #9a742e;
  font-size: 20px;
  font-weight: 400;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.faq-item.is-open .faq-symbol {
  background: var(--champagne);
  color: var(--navy);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 220ms ease, opacity 220ms ease;
}

.faq-item.is-open .faq-answer {
  max-height: 360px;
  opacity: 1;
}

.faq-answer p {
  max-width: 94%;
  margin: 0;
  padding: 0 48px 25px 4px;
  color: #526273;
  font-size: 15px;
  line-height: 1.7;
}

.faq-cta {
  margin-top: 48px;
  text-align: center;
}

.faq-cta h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}

.faq-cta p {
  margin: 6px 0 0;
  color: #526273;
  font-size: 15px;
}

.faq-cta a {
  width: fit-content;
  height: 50px;
  margin: 22px auto 0;
  padding: 0 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.faq-cta a:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.15);
}

.site-footer {
  width: 100%;
  padding: 64px 32px 104px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  width: auto;
  height: 76px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.site-footer h2 {
  margin: 0 0 18px;
  color: var(--champagne-light);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.3;
}

.footer-service {
  margin: 0 0 12px;
  color: #f5f7fa;
  font-size: 16px;
  line-height: 1.5;
}

.footer-whatsapp {
  width: fit-content;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #f5f7fa;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.footer-whatsapp svg {
  color: var(--whatsapp);
}

.footer-oab {
  margin: 11px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #d7e0e8;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.footer-line {
  display: block;
  width: 72px;
  height: 1px;
  margin: 30px auto 24px;
  background: rgba(184, 146, 74, 0.55);
}

.social-title {
  margin: 0 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--navy);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--champagne);
  transform: translateY(-3px);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.16);
}

.social-links a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.legal-notice {
  max-width: 900px;
  margin: 32px auto 0;
  color: #bfcbd6;
  font-size: 13px;
  line-height: 1.6;
}

.copyright {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #93a5b5;
  font-size: 12px;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-copy {
    margin-left: 9px;
  }

  .brand-copy strong {
    font-size: 13px;
    letter-spacing: 0.7px;
  }

  .brand-copy small {
    font-size: 8px;
    letter-spacing: 1.8px;
  }

  .desktop-nav {
    gap: clamp(12px, 2vw, 24px);
  }

  .desktop-nav a {
    font-size: 13px;
  }

  .header-whatsapp {
    margin-left: 18px;
    padding: 0 17px;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 68px;
  }

  .site-header {
    height: 68px;
  }

  .header-inner {
    padding: 0 10px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-copy {
    margin-left: 7px;
  }

  .brand-copy strong {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .brand-copy small {
    margin-top: 3px;
    font-size: 7px;
    letter-spacing: 1.2px;
  }

  .desktop-nav {
    display: none;
  }

  .header-whatsapp {
    height: 38px;
    margin-left: auto;
    padding: 0 14px;
    gap: 6px;
    font-size: 11px;
  }

  .header-whatsapp svg {
    width: 16px;
    height: 16px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    margin-left: 3px;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--navy);
  }

  .mobile-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .mobile-menu.is-open {
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu > a,
  .mobile-areas-toggle {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
  }

  .mobile-menu > a.is-active {
    background: var(--blue);
  }

  .mobile-areas-toggle {
    justify-content: space-between;
  }

  .mobile-areas-toggle svg {
    transition: transform 0.2s ease;
  }

  .mobile-areas-toggle svg.is-rotated {
    transform: rotate(180deg);
  }

  .mobile-area-links {
    max-height: 0;
    overflow: hidden;
    background: #0b2237;
    transition: max-height 0.2s ease;
  }

  .mobile-area-links.is-open {
    max-height: 460px;
  }

  .mobile-area-links a {
    min-height: 46px;
    padding: 0 16px 0 28px;
    display: flex;
    align-items: center;
    color: #d7e0e8;
    font-size: 13px;
  }

  .hero {
    min-height: 620px;
    height: calc(100svh - 68px);
  }

  .hero-brand-mark {
    align-items: flex-start;
    justify-content: center;
    padding: 28px 0 0 0;
  }

  .hero-brand-mark::before {
    right: -70%;
    top: -50%;
  }

  .hero-brand-mark img {
    width: min(82vw, 400px);
    height: min(82vw, 400px);
    opacity: 0.38;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(16,42,67,0.72) 0%, rgba(16,42,67,0.79) 45%, rgba(16,42,67,0.97) 100%);
  }

  .hero-inner {
    width: 100%;
    padding: 40px 22px 48px;
    align-items: flex-end;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.04;
    letter-spacing: -0.5px;
  }

  .hero p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-cta {
    height: 50px;
    margin-top: 28px;
    padding: 0 22px;
    font-size: 14px;
  }

  .floating-whatsapp {
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }

  .floating-whatsapp svg {
    width: 30px;
    height: 30px;
  }

  .floating-tooltip {
    display: none;
  }
}

@media (max-width: 430px) {
  .brand-copy strong {
    font-size: 9px;
    letter-spacing: 0.2px;
  }

  .brand-copy small {
    font-size: 6px;
  }

  .header-whatsapp {
    padding: 0 10px;
  }
}

@media (max-width: 379px) {
  .brand-copy {
    display: none;
  }

  .hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .area-tabs {
    border-radius: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .area-tabs button {
    min-height: 58px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .professional-card {
    width: 330px;
    min-width: 330px;
  }

  .faq-grid {
    column-gap: 42px;
  }

  .faq-item > button {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .areas-section {
    padding: 58px 16px 68px;
  }

  .areas-section h2,
  .team-section h2,
  .blog-section h2,
  .faq-section h2 {
    font-size: 34px;
    line-height: 1.15;
  }

  .area-tabs {
    margin: 30px 0 34px;
    border-radius: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .area-tabs button {
    min-height: 58px;
    padding: 10px 8px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 42, 67, 0.035);
    font-size: 12px;
    font-weight: 650;
  }

  .area-tabs button.is-active {
    background: var(--blue);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    min-height: auto;
    padding: 20px;
    border-radius: 20px;
    gap: 14px;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .service-icon svg {
    width: 21px;
    height: 21px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card p {
    font-size: 14px;
    line-height: 1.6;
  }

  .team-section {
    padding: 60px 0 64px;
  }

  .team-heading {
    padding: 0 22px;
  }

  .team-heading .section-line {
    margin-bottom: 32px;
  }

  .team-carousel {
    width: 100%;
    padding: 0;
  }

  .team-track {
    justify-content: flex-start;
    gap: 14px;
    padding: 0 22px;
    scroll-padding-left: 22px;
  }

  .professional-card {
    width: 78vw;
    min-width: 270px;
    max-width: 310px;
    height: 455px;
    border-radius: 18px;
    scroll-snap-align: start;
  }

  .professional-photo {
    height: 66%;
  }

  .professional-info {
    height: 34%;
    padding: 15px 18px;
  }

  .professional-role {
    font-size: 10px;
  }

  .professional-info h3 {
    font-size: 19px;
  }

  .professional-oab,
  .professional-area {
    font-size: 12px;
  }

  .carousel-arrow {
    display: none;
  }

  .mobile-carousel-controls {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .mobile-carousel-controls button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
  }

  .carousel-dots {
    margin-top: 16px;
  }

  .team-description {
    margin-top: 32px;
    padding: 0 22px;
    font-size: 15px;
    line-height: 1.7;
  }

  .blog-section {
    padding: 58px 16px 64px;
  }

  .blog-section .section-line,
  .faq-section .section-line {
    margin-bottom: 20px;
  }

  .section-intro {
    margin-bottom: 32px;
    padding: 0 8px;
    font-size: 15px;
    line-height: 1.6;
  }

  .blog-empty {
    min-height: 0;
    padding: 28px 22px;
    border-radius: 18px;
    align-items: flex-start;
    gap: 16px;
  }

  .blog-empty-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .blog-empty h3 {
    font-size: 18px;
  }

  .blog-empty p {
    font-size: 14px;
  }

  .blog-button {
    height: 50px;
    margin-top: 32px;
    padding: 0 24px;
    font-size: 13px;
  }

  .faq-section {
    padding: 58px 18px 68px;
  }

  .faq-section .section-intro {
    margin-bottom: 34px;
  }

  .faq-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .faq-grid::after {
    display: none;
  }

  .faq-item {
    min-height: 72px;
    order: var(--mobile-order);
  }

  .faq-item:nth-child(5),
  .faq-item:nth-child(10) {
    border-bottom: 0;
  }

  .faq-item:last-child {
    border-bottom: 1px solid #e1e6eb;
  }

  .faq-item > button {
    min-height: 71px;
    padding: 21px 2px;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
  }

  .faq-symbol {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }

  .faq-answer p {
    max-width: none;
    padding: 0 8px 22px 2px;
    font-size: 14px;
    line-height: 1.7;
  }

  .site-footer {
    padding: 48px 20px 94px;
  }

  .footer-logo {
    height: 62px;
    margin-bottom: 18px;
  }

  .site-footer h2 {
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    letter-spacing: 1.2px;
  }

  .footer-service,
  .footer-whatsapp {
    font-size: 14px;
  }

  .footer-oab {
    flex-wrap: wrap;
    row-gap: 0;
    font-size: 13px;
    line-height: 1.7;
  }

  .social-links {
    gap: 9px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  .legal-notice {
    margin-top: 28px;
    padding: 0 4px;
    font-size: 12px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== WordPress / Blog dynamic additions ===== */
/* The sticky header offset is calculated in JS from the admin bar only when it is actually visible. */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 46px;
}
.blog-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(16,42,67,.05);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16,42,67,.055);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(16,42,67,.11); border-color: rgba(184,146,74,.20); }
.blog-card-image { display:block; overflow:hidden; aspect-ratio: 16 / 10; background:#e8edf3; }
.blog-card-image img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .35s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.025); }
.blog-card-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:#e8edf3; color:#789; }
.blog-card-body { padding:22px 22px 21px; display:flex; flex-direction:column; flex:1; }
.blog-card-category { margin:0 0 10px; color:var(--champagne); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; }
.blog-card h3 { margin:0 0 12px; color:var(--navy); font-size:19px; font-weight:700; line-height:1.35; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.blog-card-excerpt { margin:0 0 20px; color:#526273; font-size:14px; line-height:1.6; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.blog-card-meta { margin-top:auto; color:#7a8896; font-size:12px; }
.blog-card-read { margin-top:12px; display:inline-flex; align-items:center; gap:6px; color:var(--blue); font-size:13px; font-weight:700; }
.blog-card-read svg { transition:transform .18s ease; }
.blog-card:hover .blog-card-read svg { transform:translateX(3px); }
.blog-button:not(.is-disabled) { cursor:pointer; }

.blog-archive-hero { padding:72px 32px 44px; background:var(--mist); text-align:center; }
.blog-archive-hero h1 { margin:0; color:var(--navy); font-size:48px; line-height:1.15; }
.blog-archive-hero p { max-width:760px; margin:18px auto 0; color:var(--ink); font-size:17px; line-height:1.7; }
.blog-archive-wrap { max-width:1380px; margin:0 auto; padding:58px 32px 88px; }
.blog-archive-wrap .blog-grid { margin-top:0; grid-template-columns:repeat(3,minmax(0,1fr)); }
.pagination-wrap { margin-top:46px; display:flex; justify-content:center; }
.pagination-wrap .page-numbers { min-width:40px; height:40px; margin:0 4px; padding:0 12px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; color:var(--navy); background:#fff; border:1px solid #e1e6eb; }
.pagination-wrap .current { background:var(--navy); color:#fff; border-color:var(--navy); }

.single-article { background:#fff; }
.single-article-header { padding:68px 32px 44px; background:var(--mist); }
.single-article-header-inner { max-width:980px; margin:0 auto; }
.single-category { color:var(--champagne); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; }
.single-article h1 { margin:14px 0 16px; color:var(--navy); font-size:50px; line-height:1.14; letter-spacing:-.5px; }
.single-meta { color:#7a8896; font-size:14px; }
.single-featured { max-width:1100px; margin:40px auto 0; padding:0 32px; }
.single-featured img { width:100%; max-height:600px; object-fit:cover; border-radius:20px; display:block; }
.single-content-wrap { max-width:860px; margin:0 auto; padding:54px 32px 90px; }
.single-content { color:#26394a; font-size:18px; line-height:1.85; }
.single-content h2 { margin:48px 0 16px; color:var(--navy); font-size:32px; line-height:1.25; }
.single-content h3 { margin:36px 0 14px; color:var(--navy); font-size:25px; line-height:1.3; }
.single-content a { color:var(--blue); text-decoration:underline; text-underline-offset:3px; }
.single-content img { max-width:100%; height:auto; border-radius:14px; }
.single-content blockquote { margin:32px 0; padding:20px 24px; border-left:4px solid var(--champagne); background:var(--mist); color:#425466; }
.article-back { margin-top:48px; padding-top:24px; border-top:1px solid #e1e6eb; }
.article-back a { display:inline-flex; align-items:center; gap:8px; color:var(--navy); font-weight:700; }

.not-found { max-width:900px; margin:0 auto; padding:100px 32px; text-align:center; }
.not-found h1 { font-size:48px; color:var(--navy); }
.not-found p { color:var(--ink); font-size:17px; }

@media (max-width:1100px) {
  .blog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .blog-archive-wrap .blog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:767px) {
  .blog-grid, .blog-archive-wrap .blog-grid { grid-template-columns:1fr; gap:18px; }
  .blog-card-image { aspect-ratio:16/9; }
  .blog-card-body { padding:19px; }
  .blog-card h3 { font-size:18px; }
  .blog-archive-hero { padding:54px 18px 32px; }
  .blog-archive-hero h1 { font-size:36px; }
  .blog-archive-hero p { font-size:15px; }
  .blog-archive-wrap { padding:38px 16px 64px; }
  .single-article-header { padding:48px 20px 32px; }
  .single-article h1 { font-size:36px; }
  .single-featured { margin-top:28px; padding:0 16px; }
  .single-featured img { border-radius:14px; }
  .single-content-wrap { padding:38px 20px 68px; }
  .single-content { font-size:17px; line-height:1.8; }
  .single-content h2 { font-size:28px; }
}

/* Foto real cadastrada no painel em Equipe */
.professional-photo.has-photo {
  display: block;
  background: #e8edf3;
}

.professional-photo.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  display: block;
}
