/* ========================================================
   AS Silva Advocacia — folha de estilo única do site
   ======================================================== */

:root {
  --color-primary: #8a0000;
  --color-primary-dark: #650000;
  --color-primary-light: #a91d1d;
  --color-whatsapp: #1fa855;
  --color-whatsapp-text-safe: #157347;
  --color-text: #232323;
  --color-text-light: #5c5c5c;
  --color-bg: #f8f6f6;
  --color-bg-alt: #ffffff;
  --color-border: #e6e0e0;
  --font-main: 'Montserrat', Arial, Helvetica, sans-serif;
  --container-width: 1200px;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 14px 34px rgba(30, 10, 10, 0.09);
  --shadow-lg: 0 22px 50px rgba(30, 10, 10, 0.16);
  --text-shadow-hero: 0 2px 10px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.22;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--color-primary); }
h3 { font-size: 1.2rem; }

p { color: var(--color-text-light); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header .eyebrow {
  justify-content: center;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid var(--color-primary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(138, 0, 0, 0.28);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(138, 0, 0, 0.34);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--color-whatsapp-text-safe);
  border-color: var(--color-whatsapp-text-safe);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 115, 71, 0.35);
}

.btn-whatsapp:hover {
  background: #0f5c38;
  border-color: #0f5c38;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(20, 10, 10, 0.03);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.site-header .logo img {
  height: 50px;
  width: auto;
}

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

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

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}

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

.main-nav a.btn-primary,
.main-nav a.btn-primary:hover {
  color: #fff;
}

.main-nav ul > li > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.main-nav ul > li > a:not(.btn):hover::after,
.main-nav ul > li > a.active::after {
  width: 100%;
}

.main-nav .has-dropdown {
  position: relative;
}

.main-nav ul.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 10px 0;
  min-width: 250px;
}

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

.dropdown li a {
  display: block;
  padding: 11px 22px;
  font-weight: 500;
  white-space: nowrap;
}

.dropdown li a::after {
  display: none;
}

.dropdown li a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 26px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(15, 6, 6, 0.78), rgba(15, 6, 6, 0.46)),
    url('/images/hero/img-hero.webp') center/cover no-repeat;
  color: #fff;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.hero .eyebrow {
  color: #ffd9d3;
  text-shadow: var(--text-shadow-hero);
}

.hero .eyebrow::before {
  background: #ffd9d3;
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: var(--text-shadow-hero);
}

.hero p {
  color: #f4e9e9;
  font-size: 1.12rem;
  margin-bottom: 34px;
  text-shadow: var(--text-shadow-hero);
  max-width: 520px;
}

.hero .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .btn-outline {
  border-color: #fff;
  color: #fff;
}

.hero .btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

.page-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(15, 6, 6, 0.8), rgba(15, 6, 6, 0.55)),
    url('/images/hero/institucional.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.page-hero.hero-areas {
  background: linear-gradient(120deg, rgba(15, 6, 6, 0.8), rgba(15, 6, 6, 0.55)),
    url('/images/hero/secundaria.jpg') center/cover no-repeat;
}

.page-hero .container {
  max-width: 780px;
}

.page-hero h1 {
  color: #fff;
  text-shadow: var(--text-shadow-hero);
}

.page-hero p {
  color: #f4e9e9;
  margin-top: 14px;
  text-shadow: var(--text-shadow-hero);
}

.page-hero .eyebrow {
  color: #ffd9d3;
  text-shadow: var(--text-shadow-hero);
  justify-content: center;
}

.page-hero .eyebrow::before {
  background: #ffd9d3;
}

/* ---------- Áreas de atuação ---------- */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.area-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}

.area-card:hover {
  box-shadow: var(--shadow-lg);
}

.area-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.area-card:hover img {
  transform: scale(1.07);
}

.area-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 6, 6, 0) 28%, rgba(12, 5, 5, 0.94) 100%);
}

.area-card-body {
  position: relative;
  z-index: 2;
  padding: 26px;
  color: #fff;
}

.area-card-body h3 {
  color: #fff;
  margin-bottom: 10px;
  text-shadow: var(--text-shadow-hero);
}

.area-card-body p {
  color: #ece3e3;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.area-card-body a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 2px solid var(--color-primary-light);
  padding-bottom: 2px;
}

/* ---------- Pilares / valores ---------- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar {
  text-align: center;
  padding: 36px 24px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pillar .pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(138, 0, 0, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.pillar .pillar-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.pillar h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* ---------- Duas colunas texto/imagem ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split p + p {
  margin-top: 16px;
}

.split-reverse .split-media {
  order: 2;
}

/* ---------- Equipe ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.team-card {
  display: flex;
  gap: 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-card .avatar {
  flex-shrink: 0;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
}

.team-card h3 {
  margin-bottom: 4px;
}

.team-card .role-email {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  word-break: break-word;
}

.team-card ul {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.team-card ul li {
  margin-bottom: 4px;
  padding-left: 14px;
  position: relative;
}

.team-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

/* ---------- Lista de serviços (páginas de área) ---------- */

.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.service-list li {
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  font-size: 0.95rem;
  color: var(--color-text);
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.contact-services {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px;
}

.contact-services h3 {
  color: var(--color-primary);
  margin-bottom: 16px;
}

/* ---------- CTA faixa ---------- */

.cta-strip {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.cta-strip h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-strip p {
  color: #f4e2e2;
  margin-bottom: 28px;
}

.cta-strip .btn-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-strip .btn-outline {
  border-color: #fff;
  color: #fff;
}

.cta-strip .btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

.cta-strip .btn-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.cta-strip .btn-primary:hover {
  background: #f4e2e2;
}

/* ---------- CTAs de contato (substituem formulários) ---------- */

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

.contact-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contact-cta-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-cta-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.contact-cta-card .cta-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
}

.contact-cta-card .cta-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.contact-cta-card.whatsapp .cta-icon {
  background: var(--color-whatsapp);
}

.contact-cta-card.email .cta-icon {
  background: var(--color-primary);
}

.contact-cta-card h3 {
  margin-bottom: 8px;
}

.contact-cta-card p {
  font-size: 0.92rem;
  margin-bottom: 22px;
}

/* ---------- Info de contato ---------- */

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-block {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.info-block .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-block .icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.info-block h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #1a1212;
  color: #d8caca;
  padding: 68px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid img.footer-logo {
  height: 44px;
  margin-bottom: 16px;
}

.footer-grid > div > p {
  color: #bfb0b0;
  font-size: 0.9rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li,
.footer-col ul li a {
  color: #cbbcbc;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #b8a9a9;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: #b8a9a9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom .footer-legal {
  max-width: 640px;
}

/* ---------- WhatsApp flutuante ---------- */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 600;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(31, 168, 85, 0.4);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 0.85rem;
  color: #f2e4e4;
  text-shadow: var(--text-shadow-hero);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #f2e4e4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb a:hover {
  color: #fff;
}

/* ---------- Política de privacidade ---------- */

.policy-content h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  margin-bottom: 16px;
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .service-columns,
  .contact-info-grid,
  .contact-cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-reverse .split-media {
    order: 0;
  }

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

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

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

@media (max-width: 720px) {
  .section {
    padding: 60px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 88px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .main-nav ul a {
    display: block;
    padding: 14px 4px;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav ul > li > a::after {
    display: none;
  }

  .main-nav ul.dropdown {
    display: block;
    position: static;
    box-shadow: none;
    padding-left: 12px;
  }

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

  .team-card {
    flex-direction: column;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .hero .btn-group,
  .cta-strip .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    scroll-behavior: auto !important;
  }
}
