/* ============================================
   FSX Advogados — folha de estilos
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.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;
}

:root {
  --roxo: #582a51;
  --roxo-escuro: #4a2244;
  --roxo-claro: #a5789d;
  --divisor: #58585a;
  --cinza-texto: #333333;
  --cinza-claro: #999999;
  --cinza-icone: #9a9a9a;
  --branco: #ffffff;
}

body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  color: var(--cinza-texto);
  line-height: 1.6;
  background: var(--branco);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER / NAV ============ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  position: relative;
}

.logo img {
  height: 78px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #7a7a7a;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--roxo);
}

.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: middle;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: #6b6b6b;
  z-index: 50;
  padding: 4px 0;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 16px 22px;
}

.dropdown a:hover {
  background: #5a5a5a;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--roxo);
}

/* ============ HERO / BANNER (home slider) ============ */

.hero {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
  position: relative;
}

.hero-slider {
  position: relative;
  width: 100%;
  padding-top: 41.4%; /* mantém a proporção 1151x476 do banner original */
  overflow: hidden;
  background: #eee;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-caption {
  position: absolute;
  left: 0;
  top: 13%;
  height: 35%;
  display: flex;
  align-items: center;
  padding-left: 6.2%;
  padding-right: 4%;
}

.hero-caption span {
  color: #fff;
  font-size: clamp(20px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(70, 70, 70, 0.6);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.hero-arrow:hover {
  background: rgba(50, 50, 50, 0.8);
}

.hero-arrow.prev { left: 10px; }
.hero-arrow.next { right: 10px; }

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cfcfcf;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
}

.hero-dots button.active {
  background: #7a7a7a;
}

/* ============ INNER PAGE BANNER (hands writing strip) ============ */

.page-banner {
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ CONTENT SECTIONS ============ */

.section {
  padding: 60px 0;
}

.section-tight {
  padding: 50px 0 20px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col img {
  border-radius: 2px;
  width: 100%;
}

.two-col.reverse .col-text {
  order: 1;
}

.two-col.reverse .col-media {
  order: 2;
}

.section h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 18px;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--divisor);
  border: none;
  margin-bottom: 22px;
}

.col-text p {
  color: #444;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  background: var(--roxo);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--roxo-escuro);
}

/* ============ PAGE TITLE (inner pages) ============ */

.page-title {
  text-align: center;
  padding: 55px 0 10px;
}

.page-title h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.page-title .divider {
  margin: 22px auto 0;
}

.page-intro {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
  color: #444;
}

/* ============ MISSÃO E VALORES (full page) ============ */

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 40px 0 110px;
}

.mv-grid h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 22px 0 10px;
}

.mv-grid h3:first-child {
  margin-top: 0;
}

.mv-grid ul {
  margin-bottom: 6px;
}

.mv-grid li {
  color: #333;
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
}

.mv-grid li::before {
  content: '•';
  position: absolute;
  left: 0;
}

.mv-grid p strong {
  font-weight: 700;
}

.mv-values p {
  margin-bottom: 10px;
}

/* ============ ÁREA DE ATUAÇÃO ============ */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 30px;
  padding: 20px 0 70px;
  text-align: center;
}

.area-item .icon-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--cinza-icone);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
}

.area-item .icon-circle svg {
  width: 47px;
  height: 47px;
  fill: #fff;
  stroke: #fff;
}

.area-item span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ============ ADVOGADOS (equipe) ============ */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 10px 0 70px;
}

.team-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 30px;
}

.team-card p {
  color: #333;
  margin-bottom: 22px;
  font-size: 15px;
}

.team-card .person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-card .person img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.team-card .person strong {
  display: block;
  color: var(--roxo);
  font-size: 15px;
  letter-spacing: 0.3px;
}

.team-card .person span {
  color: var(--roxo-claro);
  font-size: 13px;
}

/* ============ FALE CONOSCO ============ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 10px 0 40px;
  max-width: 640px;
}

.contact-grid label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

.contact-grid input,
.contact-grid textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}

.contact-grid textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-grid .btn {
  justify-self: start;
  width: fit-content;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  padding: 30px 0 50px;
}

.contact-info .icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #6b6b6b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.contact-info .icon-circle svg {
  width: 33px;
  height: 33px;
  fill: #fff;
  stroke: #fff;
}

.contact-info h4 {
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.contact-info p {
  font-size: 14px;
  color: #444;
}

.map-embed {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.form-note {
  font-size: 13px;
  color: #777;
  margin-top: -6px;
  margin-bottom: 10px;
}

.form-success,
.form-error {
  display: none;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 640px;
}

.form-success {
  background: #eef7ee;
  border: 1px solid #bfe3bf;
  color: #2c6b2c;
}

.form-error {
  background: #fdecec;
  border: 1px solid #f3baba;
  color: #a02020;
}

.contact-grid button[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
}

.contact-grid button[type="submit"][disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============ BLOG (placeholder) ============ */

.blog-empty {
  text-align: center;
  padding: 40px 0 90px;
  color: #555;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--roxo);
  color: #f1e8ef;
  padding: 60px 0 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.footer-about p {
  font-size: 14px;
  color: #e4d5e1;
  margin-bottom: 22px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #cbb7c8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons svg {
  width: 19px;
  height: 19px;
  fill: #fff;
}

.footer-links li {
  margin-bottom: 14px;
  font-size: 14px;
  color: #e4d5e1;
}

.footer-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links li svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.footer-location p,
.footer-location a {
  font-size: 14px;
  color: #e4d5e1;
  margin-bottom: 14px;
  display: block;
}

.footer-bottom {
  background: var(--roxo-claro);
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
  color: #fff;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .two-col,
  .mv-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .two-col.reverse .col-text,
  .two-col .col-media {
    order: initial;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    z-index: 60;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
  }

  .main-nav ul li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .has-dropdown .dropdown {
    position: static;
    background: #f4f4f4;
  }

  .dropdown a {
    color: #444;
  }

  .nav-toggle {
    display: flex;
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: 26px;
  }
}
