/* =========================================================
   JFS ADVOCACIA - LANDING PAGE
   ========================================================= */

:root {
  /* Cores extraídas do design original */
  --color-bg-dark: #0F171A;
  --color-bg-dark-2: #101A1E;
  --color-accent: #6496AD;
  --color-accent-hover: #75A6BC;
  --color-icon: #0A4D6D;
  --color-card: #0E4B6B;
  --color-white: #FFFFFF;
  --color-text-dark: #17181A;
  --color-text-gray: #63686A;
  --color-text-gray-light: #A9AEAF;

  --font-title: 'Raleway', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --container-width: 1200px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-white);
  background-color: var(--color-bg-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

h3 {
  font-weight: 700;
}

/* =========================================================
   BOTÕES
   ========================================================= */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 18px 40px;
  border-radius: var(--radius-full);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(100, 150, 173, 0.35);
}

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

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

/* =========================================================
   SEÇÕES GERAIS
   ========================================================= */

.section {
  padding: 100px 0;
}

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

.section-light {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  padding: 100px 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-white);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.eyebrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-text-gray-light);
}

.eyebrow-dark {
  color: var(--color-text-dark);
}

.eyebrow-dark::after {
  background-color: var(--color-text-dark);
}

.heading-dark {
  color: var(--color-text-dark);
}

.section-lead {
  max-width: 800px;
  color: var(--color-text-gray-light);
  font-size: 1.05rem;
}

.section-light .section-lead {
  color: var(--color-text-gray);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  background-color: rgba(13, 19, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* No menu mobile aberto, garante fundo sólido mesmo no topo da página */
.site-header:has(.main-nav.open) {
  background-color: rgba(13, 19, 22, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo img {
  height: 66px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-white);
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 26, 0.97) 0%, rgba(15, 23, 26, 0.85) 40%, rgba(15, 23, 26, 0.55) 65%, rgba(15, 23, 26, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
  width: 100%;
}

.hero-inner {
  max-width: 760px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 24px;
  color: var(--color-white);
}

.hero-content h1 .accent {
  color: var(--color-accent);
}

.hero-content p {
  font-size: 1.15rem;
  color: #E5E7E8;
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-content p strong {
  color: var(--color-accent);
  font-weight: 700;
}

/* =========================================================
   NOSSO COMPROMISSO - CARROSSEL
   ========================================================= */

.compromisso {
  padding-bottom: 30px;
}

.compromisso .container {
  margin-bottom: 48px;
}

/* A seção "Áreas de Atuação" vem logo em seguida do carrossel:
   reduz o espaçamento superior para não deixar um vão grande entre as duas seções */
.compromisso + .section {
  padding-top: 30px;
}

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

.carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.compromisso-card {
  scroll-snap-align: start;
  flex: 0 0 calc(33.333% - 16px);
  background-color: var(--color-white);
  color: var(--color-text-dark);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.compromisso-num {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.compromisso-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.compromisso-card p {
  color: var(--color-text-gray);
  font-size: 0.98rem;
}

/* Indicação sutil de que o carrossel rola para o lado:
   leve gradiente de esmaecimento na borda direita + setas discretas */
.carousel-fade {
  position: absolute;
  top: 0;
  right: 24px;
  width: 64px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 23, 26, 0) 0%, rgba(15, 23, 26, 0.9) 100%);
  opacity: 1;
  transition: opacity var(--transition);
}

.carousel-fade.hidden {
  opacity: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), color var(--transition), opacity var(--transition);
  opacity: 0.85;
  cursor: pointer;
}

.carousel-arrow:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.carousel-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

#prevBtn {
  left: 4px;
}

.carousel-arrow-next {
  right: 4px;
}

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

.areas-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

.area-card {
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  padding: 40px;
}

.area-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--color-white);
  border-radius: 50%;
  margin-bottom: 20px;
}

.area-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.area-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--color-white);
}

.area-card p {
  color: #D6DEE2;
  font-size: 1rem;
}

/* =========================================================
   O PROFISSIONAL
   ========================================================= */

.profissional-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.profissional-text h2 {
  margin-bottom: 36px;
}

.profissional-nome {
  color: var(--color-accent);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.profissional-text > p {
  color: #D6DEE2;
}

.profissional-foto {
  background-color: transparent;
}

.profissional-foto img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: transparent;
}

/* =========================================================
   DEPOIMENTOS
   ========================================================= */

.depoimentos-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.depoimento-card {
  background-color: var(--color-card);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stars {
  color: var(--color-white);
  letter-spacing: 4px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.depoimento-card p {
  color: #E8ECEE;
  margin-bottom: 24px;
  font-size: 1rem;
}

.depoimento-autor {
  font-style: italic;
  font-weight: 600;
  font-size: 0.92rem;
  color: #C9D2D6;
}

/* =========================================================
   CTA FINAL
   ========================================================= */

.cta-final {
  text-align: center;
}

.cta-final h2 {
  margin-bottom: 20px;
}

.cta-final p {
  color: #D6DEE2;
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
}

.cta-final p strong {
  color: var(--color-white);
}

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

.site-footer {
  background-color: var(--color-card);
  padding-top: 72px;
}

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

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  color: #C9D2D6;
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: var(--color-white);
}

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

.footer-col a {
  color: #C9D2D6;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  font-weight: 600;
  color: #C9D2D6;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

/* Tablets */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .compromisso-card {
    flex: 0 0 calc(50% - 12px);
  }

  .profissional-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profissional-foto {
    max-width: 420px;
  }

  .depoimentos-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

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

/* Menu mobile + tablets pequenos */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(13, 19, 22, 0.98);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .main-nav.open {
    max-height: 320px;
  }

  .main-nav a {
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Smartphones */
@media (max-width: 640px) {
  .section {
    padding: 70px 0;
  }

  .section-light {
    padding: 70px 0;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 26, 0.75) 0%, rgba(15, 23, 26, 0.95) 55%, rgba(15, 23, 26, 1) 100%);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    padding: 16px 24px;
  }

  .compromisso-card {
    flex: 0 0 88%;
    padding: 32px 24px;
  }

  .areas-list {
    gap: 18px;
  }

  .area-card {
    padding: 28px 24px;
  }

  .depoimentos-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .logo img {
    height: 50px;
  }
}

/* Telas muito pequenas */
@media (max-width: 380px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* Acessibilidade: reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
