/*
Theme Name: Barbosa & Castro Advogados
Theme URI: https://barbosaecastroadvogados.com.br/
Author: Barbosa & Castro Advogados
Description: Tema institucional personalizado, responsivo e otimizado para conversão.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: barbosa-castro
*/

:root {
  --navy-950: #07151f;
  --navy-900: #0b1e2d;
  --navy-800: #102c41;
  --gold: #c9a55c;
  --gold-light: #ead6a5;
  --paper: #f7f4ee;
  --white: #ffffff;
  --ink: #18232c;
  --muted: #62717c;
  --line: rgba(16, 44, 65, .14);
  --shadow: 0 24px 70px rgba(7, 21, 31, .12);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.12; font-weight: 500; }
h1 { font-size: clamp(2.55rem, 6vw, 5.35rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.8rem); letter-spacing: -.035em; }
h3 { font-size: 1.55rem; }
p { margin: 0; }
.section { padding: clamp(76px, 9vw, 126px) 0; }
.section-heading { max-width: 730px; margin-bottom: 48px; }
.section-heading p:last-child { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-950);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .025em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--gold-light); }
.whatsapp-button { background: var(--gold); color: var(--navy-950); box-shadow: none; }
.whatsapp-button:hover { background: var(--gold-light); color: var(--navy-950); }
.whatsapp-button svg { flex: 0 0 auto; width: 20px; height: 20px; }
.button-outline { border-color: rgba(255,255,255,.35); background: transparent; color: var(--white); }
.button-outline:hover { background: var(--white); color: var(--navy-950); }
.button svg { width: 18px; height: 18px; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(7, 21, 31, .88);
  backdrop-filter: blur(15px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: min(280px, 43vw); height: auto; filter: brightness(0) invert(1); }
.site-nav { display: flex; align-items: center; gap: 30px; color: rgba(255,255,255,.84); font-size: .9rem; font-weight: 650; }
.site-nav a:not(.button):hover { color: var(--gold-light); }
.menu-toggle { display: none; padding: 8px; border: 0; background: transparent; color: white; cursor: pointer; }
.menu-toggle span { display: block; width: 27px; height: 2px; margin: 6px 0; background: currentColor; }

.hero {
  position: relative;
  min-height: 790px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 154px 0 90px;
  color: var(--white);
  background: var(--navy-950);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,21,31,.98) 0%, rgba(7,21,31,.91) 44%, rgba(7,21,31,.36) 78%, rgba(7,21,31,.2) 100%),
              url("assets/images/escritorio-hero.jpg") center 34% / cover no-repeat;
}
.hero::after {
  content: "BC";
  position: absolute;
  right: -1vw;
  bottom: -10vw;
  color: rgba(255,255,255,.035);
  font-family: Georgia, serif;
  font-size: clamp(16rem, 34vw, 38rem);
  line-height: 1;
}
.hero-content { position: relative; z-index: 2; width: min(780px, 72%); }
.hero h1 span { color: var(--gold-light); }
.hero-lead { max-width: 640px; margin: 27px 0 35px; color: rgba(255,255,255,.77); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 27px; margin-top: 48px; color: rgba(255,255,255,.68); font-size: .87rem; }
.hero-proof span { display: flex; align-items: center; gap: 9px; }
.hero-proof span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.practice { background: var(--paper); }
.service-sections { display: grid; gap: 28px; }
.service-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 45px rgba(7, 21, 31, .06);
}
.service-feature-reverse .service-image { order: 2; }
.service-feature-reverse .service-copy { order: 1; }
.service-image { min-height: 100%; overflow: hidden; background: var(--navy-900); }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.service-feature:hover .service-image img { transform: scale(1.025); }
.service-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(35px, 5vw, 68px); }
.practice-number { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .18em; }
.service-copy h3 { margin: 24px 0 22px; color: var(--navy-900); font-size: clamp(2rem, 3.2vw, 3.15rem); }
.service-concern { color: var(--muted); font-size: .96rem; line-height: 1.75; }
.service-solution { margin-top: 24px; padding: 22px 24px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--paper); color: #354550; font-size: 1rem; line-height: 1.75; }
.service-solution strong { display: block; margin-bottom: 7px; color: var(--navy-900); font-family: Georgia, "Times New Roman", serif; font-size: 1.17rem; font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.tag-list span { padding: 6px 10px; border-radius: 999px; background: var(--paper); color: #4d5e69; font-size: .76rem; }
.service-button { width: fit-content; margin-top: 28px; }

.about-grid { display: grid; grid-template-columns: .87fr 1.13fr; gap: clamp(45px, 8vw, 110px); align-items: center; }
.about-mark { position: relative; min-height: 540px; border-radius: var(--radius); background: var(--navy-900); overflow: hidden; }
.about-mark img { position: absolute; width: 70%; left: 15%; top: 13%; opacity: .8; filter: brightness(0) invert(1); }
.about-mark blockquote { position: absolute; inset: auto 36px 36px; margin: 0; padding: 26px; border-left: 2px solid var(--gold); background: rgba(7,21,31,.74); color: rgba(255,255,255,.86); font-family: Georgia, serif; font-size: 1.25rem; }
.about-copy > p:not(.eyebrow) { margin-top: 23px; color: var(--muted); font-size: 1.06rem; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.value { padding-top: 18px; border-top: 1px solid var(--line); }
.value strong { display: block; margin-bottom: 5px; color: var(--navy-900); }
.value span { color: var(--muted); font-size: .88rem; }

.team { color: var(--white); background: var(--navy-950); }
.team .section-heading p:last-child { color: rgba(255,255,255,.64); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profile { display: grid; grid-template-columns: 43% 57%; min-height: 485px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: var(--navy-900); }
.profile-photo { position: relative; min-height: 350px; background: linear-gradient(150deg, #d8c49d, #8d6f40); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.profile-info { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.profile-info h3 { margin-bottom: 7px; font-size: 1.85rem; }
.profile-role { margin-bottom: 19px; color: var(--gold-light); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-info p:last-child { color: rgba(255,255,255,.64); font-size: .9rem; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.section-cta { display: flex; justify-content: center; margin-top: 38px; }
.section-cta-left { justify-content: flex-start; }
.step { padding: 31px; border-top: 3px solid var(--gold); background: var(--paper); }
.step span { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 2.4rem; }
.step h3 { margin: 19px 0 10px; color: var(--navy-900); }
.step p { color: var(--muted); font-size: .92rem; }

.testimonials { background: var(--paper); }
.google-rating { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; width: fit-content; margin: -24px 0 30px; padding: 11px 16px; border: 1px solid rgba(7,21,31,.1); border-radius: 999px; background: var(--white); color: var(--muted); font-size: .87rem; box-shadow: 0 8px 25px rgba(7,21,31,.05); }
.google-rating strong { color: var(--navy-900); font-size: 1.04rem; }
.google-rating-mark, .review-google, .google-button-mark { display: inline-grid; place-items: center; color: #4285f4; background: var(--white); font-family: Arial, sans-serif; font-weight: 800; }
.google-rating-mark { width: 25px; height: 25px; border-radius: 50%; box-shadow: 0 2px 8px rgba(7,21,31,.13); }
.google-rating .quote-stars { font-size: .8rem; }
.reviews-carousel { position: relative; }
.reviews-viewport { overflow: hidden; border-radius: var(--radius); }
.reviews-track { display: flex; gap: 18px; transition: transform .5s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.quote { padding: 30px; border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 35px rgba(7,21,31,.06); }
.review-card { display: flex; flex: 0 0 calc((100% - 36px) / 3); flex-direction: column; min-height: 350px; }
.reviewer { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; margin-bottom: 21px; }
.review-avatar { width: 52px; height: 52px; border: 2px solid var(--white); border-radius: 50%; object-fit: cover; box-shadow: 0 4px 16px rgba(7,21,31,.15); }
.reviewer cite { display: block; color: var(--navy-900); font-style: normal; font-weight: 800; font-size: .91rem; line-height: 1.25; }
.reviewer div > span { display: block; margin-top: 4px; color: var(--muted); font-size: .74rem; }
.review-google { align-self: start; width: 25px; height: 25px; border: 1px solid rgba(7,21,31,.08); border-radius: 50%; font-size: .8rem; }
.quote-stars { color: var(--gold); letter-spacing: .14em; }
.quote blockquote { margin: 18px 0 0; color: #3e4b54; font-family: Georgia, serif; font-size: 1.02rem; line-height: 1.65; }
.reviews-controls { display: flex; justify-content: center; gap: 18px; align-items: center; margin-top: 28px; }
.carousel-button { display: inline-grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(7,21,31,.16); border-radius: 50%; color: var(--navy-900); background: var(--white); cursor: pointer; font-family: Arial, sans-serif; font-size: 1.75rem; line-height: 1; transition: color .2s ease, background .2s ease, transform .2s ease; }
.carousel-button:hover:not(:disabled), .carousel-button:focus-visible { color: var(--white); background: var(--navy-900); transform: translateY(-2px); }
.carousel-button:disabled { cursor: not-allowed; opacity: .38; }
.carousel-dots { display: flex; gap: 8px; justify-content: center; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(7,21,31,.23); cursor: pointer; transition: width .2s ease, background .2s ease; }
.carousel-dot.is-active { width: 24px; border-radius: 999px; background: var(--gold); }
.reviews-actions { flex-wrap: wrap; gap: 12px; }
.google-reviews-button { border: 1px solid rgba(7,21,31,.15); background: var(--white); color: var(--navy-950); box-shadow: 0 8px 24px rgba(7,21,31,.08); }
.google-reviews-button:hover { color: var(--white); background: var(--navy-900); }
.google-button-mark { width: 22px; height: 22px; border-radius: 50%; font-size: .78rem; }

.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(40px, 7vw, 100px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 23px 42px 23px 0; cursor: pointer; color: var(--navy-900); font-family: Georgia, serif; font-size: 1.14rem; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 5px; top: 19px; color: var(--gold); font-size: 1.5rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 40px 23px 0; color: var(--muted); font-size: .94rem; }

.contact { color: var(--white); background: var(--navy-900); }
.contact-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; }
.contact h2 { max-width: 760px; }
.contact-copy > p:not(.eyebrow) { max-width: 680px; margin-top: 20px; color: rgba(255,255,255,.67); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.contact-actions .button { width: 100%; }
.contact-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 55px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.13); }
.contact-detail strong { display: block; color: var(--gold-light); font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; }
.contact-detail span, .contact-detail a { display: block; margin-top: 8px; color: rgba(255,255,255,.75); font-size: .9rem; }

.site-footer { padding: 28px 0; color: rgba(255,255,255,.53); background: var(--navy-950); font-size: .78rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.whatsapp-float { position: fixed; z-index: 40; right: 22px; bottom: 22px; display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: #25d366; color: white; box-shadow: 0 12px 30px rgba(0,0,0,.22); transition: transform .2s ease; }
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { flex: 0 0 auto; width: 27px; height: 27px; }

@media (max-width: 1000px) {
  .site-nav { position: fixed; inset: 82px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 20px; background: var(--navy-950); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px; }
  .menu-toggle { display: block; }
  .hero-content { width: 82%; }
  .team-grid { grid-template-columns: 1fr; }
  .profile { min-height: 430px; }
  .review-card { flex-basis: calc((100% - 18px) / 2); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 72px 0; }
  .hero { min-height: 720px; padding-top: 130px; }
  .hero::before { background: linear-gradient(180deg, rgba(7,21,31,.88), rgba(7,21,31,.97)), url("assets/images/escritorio-hero.jpg") 62% center / cover; }
  .hero-content { width: 100%; }
  .hero-proof { gap: 12px 20px; }
  .service-feature, .about-grid, .process-grid, .faq-grid, .contact-panel, .contact-details { grid-template-columns: 1fr; }
  .service-feature { min-height: 0; }
  .service-feature-reverse .service-image, .service-feature-reverse .service-copy { order: initial; }
  .service-image { min-height: 330px; max-height: 420px; }
  .service-copy { padding: 34px 27px 39px; }
  .about-mark { min-height: 410px; }
  .values { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile-photo { height: 410px; }
  .review-card { flex-basis: 100%; min-height: 320px; }
  .google-rating { border-radius: 18px; }
  .reviews-actions .button { width: 100%; }
  .contact-panel { align-items: stretch; }
  .footer-inner { flex-direction: column; }
}

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