/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --cream: #FAF8F4;
  --cream-card: #F7F4EF;
  --cream-mid: #EDE8DF;
  --gold: #A8894A;
  --gold-light: #C4A96A;
  --dark: #2f2f2f;
  --dark-navy: #202340;
  --mid: #5c5545;
  --light-text: #7a7060;
  --border: #d5cfc4;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', sans-serif;

  --max-w: 1200px;
  --section-pad: clamp(64px, 8vw, 100px) clamp(20px, 4vw, 60px);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { 
  scroll-behavior: smooth; 
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad);
}

.container--narrow { max-width: 860px; }
.container--center { text-align: center; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 36px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 15px 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  white-space: nowrap;
}

.btn--primary {
  background: var(--dark-navy);
  color: #fff;
  border: 2px solid var(--dark-navy);
}
.btn--primary:hover {
  background: #2d3159;
  border-color: #2d3159;
}

.btn--outline {
  background: transparent;
  color: var(--dark-navy);
  border: 2px solid var(--dark-navy);
}
.btn--outline:hover {
  background: var(--dark-navy);
  color: #fff;
}

.btn--outline-dark {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--gold);
  font-size: 13px;
  padding: 13px 28px;
}
.btn--outline-dark:hover {
  background: var(--gold);
  color: #fff;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar,
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: .35s ease;
}

.navbar {
  background: rgba(250,248,244,0.98);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 12px 0;
}

.navbar-custom {
  background: transparent;
  padding: 18px 40px;
}

.navbar-brand {
  margin-right: 50px;
  flex-shrink: 0;
}

.navbar-brand img {
  height: 100px;
  width: auto;
  transition: height 0.35s ease;
}

.navbar.scrolled {
  background: rgba(250,248,244,.96) !important;
  backdrop-filter: blur(12px);
  padding: 8px 0;
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.navbar.scrolled .navbar-brand img {
  height: 75px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  white-space: nowrap;
  font-size: 14px;
  color: #2f2f2f !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--gold) !important;
}

/* Navbar phone and button styles (fixed for mobile + desktop) */
.nav-phone {
  font-size: 14px;
  color: var(--dark-navy);
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-phone:hover {
  color: var(--gold);
}

.nav-btn {
  background: var(--dark-navy);
  color: #fff;
  padding: 11px 24px;
  border: 2px solid var(--dark-navy);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  background: #2d3159;
  border-color: #2d3159;
  color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero__content {
  padding: clamp(48px, 7vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--cream-mid);
  padding: 6px 14px;
  margin-bottom: 28px;
  color: var(--mid);
  font-size: clamp(7px, 1.2vw, 10.5px);
  letter-spacing: clamp(0.05em, 0.15vw, 0.15em);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 32px;
}

.hero__quote {
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  margin: 0 0 28px 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-style: normal;
  color: var(--mid);
  font-weight: 400;
  line-height: 1.6;
}

.hero__body {
  font-size: 17px;
  line-height: 1.9;
  color: var(--dark);
  margin-bottom: 14px;
}

.hero__location {
  font-size: 13.5px;
  color: var(--mid);
  margin: 18px 0 36px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  min-height: 420px;
}

.hero__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 38%);
  pointer-events: none;
}

/* ============================================================
   ÁREAS DE ATUAÇÃO
   ============================================================ */
.areas {
  background: var(--cream);
}

.areas .container {
  padding-bottom: 80px;
}

.areas .section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.areas__grid {
  margin-bottom: 40px;
}

.areas__card {
  display: flex;
  gap: 20px;
  padding: 24px 40px 24px 0;
  height: 100%;
}

.areas__card + .areas__card {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}

.areas__card-bar {
  width: 3px;
  min-height: 100%;
  background: var(--dark);
  flex-shrink: 0;
}

.areas__card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 12px;
}

.areas__card-body {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.8;
}

.areas__footnote {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--mid);
  font-style: italic;
}

/* ============================================================
   SOBRE
   ============================================================ */
.sobre {
  background: var(--cream);
  overflow: hidden;
}

.sobre__image {
  position: relative;
  overflow: hidden;
  background: var(--cream-card);
  min-height: 420px;
}

.sobre__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.sobre__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, var(--cream-card) 0%, transparent 38%);
  pointer-events: none;
}

.sobre__content {
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 80px) clamp(48px, 7vw, 80px) clamp(24px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream-card);
  align-self: stretch;
}

.sobre__body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 16px;
}

.sobre__cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}

.sobre__feature {
  position: relative;
  border: 1px solid #5d6270;
  background: transparent;
  padding: 22px 24px 22px 24px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sobre__feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: #2c3048;
}

.sobre__feature strong {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.sobre__feature p {
  font-size: 15px;
  line-height: 1.7;
  color: #6f6758;
  margin: 0;
}

.sobre .section-divider {
  margin: 45px 0 32px;
}

.sobre .btn--outline-dark {
  width: max-content;
}

/* ============================================================
   FORMAÇÃO
   ============================================================ */
.formacao {
  background: var(--cream);
}

.formacao .section-title {
  text-align: center;
}

.formacao__grid {
  margin-bottom: 20px;
}

.formacao__card {
  background: var(--cream-card);
  border-radius: 18px 0 18px 0;
  padding: 36px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formacao__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.formacao__card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 12px;
}

.formacao__card-body {
  font-size: 14.5px;
  color: var(--mid);
  line-height: 1.6;
}

.formacao__footnote {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--mid);
  font-style: italic;
}

/* ============================================================
   DEFESA CRIMINAL
   ============================================================ */
.defesa {
  background: var(--cream-card);
  overflow: hidden;
}

.defesa__content {
  padding: clamp(48px, 7vw, 90px) clamp(24px, 4vw, 52px) clamp(48px, 7vw, 90px) clamp(24px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.defesa .section-eyebrow {
  margin-bottom: 14px;
}

.defesa .section-title {
  font-size: clamp(2.1rem, 3vw, 3.2rem);
  line-height: 1.05;
  max-width: 420px;
  margin-bottom: 26px;
}

.defesa__body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--mid);
  max-width: 420px;
  margin-bottom: 18px;
}

.defesa .section-divider {
  margin: 24px 0 18px;
}

.defesa__cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.defesa__card {
  position: relative;
  background: transparent;
  border: 2px solid #545866;
  padding: 14px 18px 14px 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
}

.defesa__card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background: #2c3048;
}

.defesa__card-bar {
  display: none;
}

.defesa__card-title {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 400;
  color: #4a3b31;
  margin-bottom: 6px;
}

.defesa__card-body {
  font-size: 13px;
  line-height: 1.55;
  color: #5f584d;
  max-width: 260px;
}

.defesa .btn--outline-dark {
  align-self: flex-start;
  margin-top: 8px;
}

.defesa__image {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.defesa__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.defesa__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--cream-card) 0%,
    rgba(247,244,239,.95) 5%,
    rgba(247,244,239,.70) 10%,
    rgba(247,244,239,.25) 18%,
    transparent 28%
  );
  pointer-events: none;
}

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.depoimentos {
  background: var(--cream);
  padding-bottom: 28px;
}

.depoimentos .section-title {
  text-align: center;
}

.depoimentos__subtitle {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--mid);
  margin-bottom: 56px;
  display: block;
}

.depoimento {
  background: var(--cream-card);
  padding: 32px 28px;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.depoimento__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

.depoimento__author {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 6px;
}

.depoimento__stars {
  font-size: 13px;
  color: var(--gold-light);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: 45px 0 55px;
  background: #f6f2ec;
}

.faq-category {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 20px;
  margin-top: 30px;
}

.accordion { margin-top: 10px; }

.accordion-item {
  border: none;
  border-bottom: 1px solid rgba(181,147,93,.25);
  background: transparent;
}

.accordion-button {
  background: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  color: #2b2b2b;
  padding: 22px 10px;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.accordion-button:not(.collapsed) {
  background: #efe8de;
  color: var(--gold);
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-body {
  font-family: 'Montserrat', sans-serif;
  color: #555;
  line-height: 1.85;
  padding: 24px 28px;
  background: #fff;
  border-left: 3px solid var(--gold);
}

.accordion-button::after {
  transform: scale(1.15);
  transition: transform 0.2s ease;
}

/* ============================================================
   PARCERIA PROFISSIONAL
   ============================================================ */
.parceria {
  background: var(--cream);
  padding: 45px 0 70px;
}

.parceria__intro {
  font-size: 17px;
  color: var(--mid);
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}

.parceria__left p {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.8;
}

.parceria__right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.parceria__item {
  background: #2f2f2f;
  color: #fff;
  padding: 16px 24px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.parceria__item:hover {
  background: #3a3a3a;
  transform: translateX(4px);
}

.parceria__footer {
  text-align: center;
  font-style: italic;
  color: var(--mid);
  margin-top: 60px;
  font-size: 15px;
}

/* ============================================================
   CONTATO
   ============================================================ */
.contato {
  background: var(--cream-card);
  overflow: hidden;
}

.contato__image {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.contato__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.contato__content {
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 80px) clamp(48px, 7vw, 80px) clamp(24px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.contato__body {
  font-size: 17px;
  color: var(--dark);
  line-height: 1.9;
  max-width: 560px;
  margin-bottom: 0;
}

.contato__info {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contato__info li {
  font-size: 15px;
  color: var(--dark);
}

.contato__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contato__mapa {
  margin: 30px 0;
}

.contato__mapa iframe {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--cream);
  padding: 80px 60px 60px;
  text-align: center;
}

.footer__logo {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__logo-img {
  max-width: 220px;
  height: auto;
}

.footer__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px auto;
  max-width: 900px;
}

.footer__areas,
.footer__location {
  font-size: 13.5px;
  color: var(--mid);
  letter-spacing: 0.04em;
  padding: 8px 0;
}

.footer__copy {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--light-text);
  font-style: italic;
  padding: 8px 0;
}

/* ============================================================
   RESPONSIVE - Professional adjustments
   ============================================================ */
@media (max-width: 992px) {
  :root { --section-pad: 50px 24px; }

  .navbar-brand img { height: 85px; }

  .navbar-collapse {
    background: rgba(250,248,244,.98);
    padding: 20px;
    margin-top: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
  }

  .navbar-nav {
    gap: 12px;
    align-items: flex-start;
  }

  .navbar-actions {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .nav-phone,
  .nav-btn {
    display: block;
    text-align: center;
    width: 100%;
  }

  .hero__content,
  .sobre__content,
  .defesa__content,
  .contato__content {
    padding: 50px 24px;
  }

  .hero__image,
  .sobre__image,
  .defesa__image,
  .contato__image {
    min-height: 380px;
  }

  .areas__card + .areas__card {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 24px;
  }

  .depoimentos__subtitle {
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    line-height: 1.15;
  }

  .hero__title {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
  }

  .hero__cta,
  .contato__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn,
  .contato__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__image,
  .sobre__image,
  .defesa__image,
  .contato__image {
    min-height: 320px;
  }

  .faq-section {
    padding: 50px 0 70px;
  }

  .depoimentos {
    padding-bottom: 40px;
  }

  .parceria {
    padding: 50px 0 70px;
  }

  .accordion-button {
    font-size: 1.3rem;
    padding: 18px 8px;
  }

  .footer {
    padding: 50px 20px 40px;
  }
}

/* iOS Safari specific photo adaptation & safe areas */
@supports (-webkit-touch-callout: none) {
  .hero__image img,
  .sobre__image img,
  .defesa__image img,
  .contato__image img {
    object-fit: cover;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .wa-btn,
  .wa-pulse {
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    right: calc(28px + env(safe-area-inset-right, 0px));
  }

  .wa-popup {
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    right: calc(28px + env(safe-area-inset-right, 0px));
  }
}

/* Ultrawide / large desktop refinements */
@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }

  .hero__content {
    padding-left: clamp(60px, 6vw, 100px);
  }

  .sobre__content,
  .contato__content,
  .defesa__content {
    padding-left: clamp(50px, 5vw, 80px);
  }
}

/* Final polish - equal height cards & no horizontal scroll */
.depoimento,
.formacao__card,
.parceria__item {
  height: 100%;
}

.row {
  --bs-gutter-x: 1.5rem;
}