/* =========================================================
   Santos, Braga & Araújo - Sociedade de Advogados
   Stylesheet principal
   ========================================================= */

/* ---------- Variáveis / Tokens ---------- */
:root {
  --color-navy: #051A54;
  --color-navy-light: #142c73;
  --color-white: #ffffff;
  --color-gold: #C2A874;
  --color-gold-dark: #a88c5c;
  --color-bg-alt: #F5F5F3;
  --color-text: #3A3A3A;
  --color-text-muted: #5a6472;

  --font-title: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;

  --container-width: 1200px;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(10, 31, 61, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 31, 61, 0.10);
  --transition: 0.3s ease;
}

/* ---------- Reset básico ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
  overflow-x: hidden;
}

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

.icon {
  width: 18px;
  height: 18px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform var(--transition), background-color var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--color-gold);
  color: var(--color-navy);
}

.btn--primary:hover {
  background-color: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-2px);
}

/* ---------- Topbar ---------- */
.topbar {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
}

.topbar__info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar__social a {
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  transition: color var(--transition);
}

.topbar__social a:hover {
  color: var(--color-gold);
}

/* ---------- Header / Navbar ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  transition: box-shadow var(--transition), padding var(--transition);
}

.header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  height: 72px;
  width: auto;
}

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

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-navy);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--color-gold-dark);
}

.nav__link:hover::after {
  width: 100%;
}

/* Botão hambúrguer */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

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

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

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

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

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  padding: 120px 0;
  text-align: center;
}

.hero__inner {
  max-width: 820px;
}

.hero__title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

/* ---------- Seções genéricas ---------- */
.section {
  padding: 96px 0;
}

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

.section--center {
  text-align: center;
}

.section__title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 16px;
}

.section__title--left {
  text-align: left;
}

.section__eyebrow {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 12px;
}

.section__subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.section--center .section__subtitle {
  margin-bottom: 0;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 32px;
}

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

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

/* ---------- Cards (Áreas de Atuação) ---------- */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--color-gold);
}

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

.card__title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.card__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-gold-dark);
  transition: color var(--transition);
}

.card__link:hover {
  color: var(--color-navy);
}

/* ---------- Sobre o Escritório ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}

.about__media {
  display: flex;
  justify-content: center;
}

.about__logo-full {
  width: 100%;
  max-width: 320px;
}

.about__text {
  color: var(--color-text-muted);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

/* ---------- Diferenciais ---------- */
.feature {
  text-align: center;
  padding: 24px;
}

.feature__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__icon svg {
  width: 28px;
  height: 28px;
}

.feature__title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.feature__text {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ---------- Equipe ---------- */
.team-card {
  text-align: center;
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.team-card__photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  overflow: hidden;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card__name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.team-card__oab {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 72px 0 0;
}

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

.logo__img--footer {
  width: 300px;
  height: auto;
  margin-bottom: 12px;
}

.footer__heading {
  font-family: var(--font-title);
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.footer__list li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer__list a {
  transition: color var(--transition);
}

.footer__list a:hover {
  color: var(--color-gold);
}

.footer__bottom {
  text-align: center;
  padding: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Botão flutuante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25d366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: transform var(--transition);
}

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

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

/* ---------- Scroll reveal (animação via IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =========================================================
   Responsivo
   ========================================================= */

/* Tablet */
@media (max-width: 992px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section__title--left {
    text-align: center;
  }

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

/* Mobile */
@media (max-width: 768px) {
  .topbar__item--hide-mobile {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 80%);
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    transition: right var(--transition);
    padding: 100px 32px;
  }

  .nav.is-open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero {
    padding: 90px 0;
  }

  .section {
    padding: 64px 0;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .logo--footer {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .topbar__inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
