/*
Theme Name: D'Angelo & Silvestrini Advogadas
Theme URI: https://dsadvogadas.com.br
Author: D'Angelo & Silvestrini Sociedade de Advogadas
Description: Tema institucional one-page para D'Angelo & Silvestrini - Sociedade de Advogadas (Direito Penal Digital e Investigação Defensiva Cibernética).
Version: 1.0
License: Uso privado
Text Domain: dangelo-silvestrini
*/

/* ===== Fontes ===== */
/* Cormorant Garamond (títulos) e Jost (texto) são carregadas via functions.php (Google Fonts) */

/* ===== Tokens de design ===== */
:root {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", ui-sans-serif, system-ui, sans-serif;

  --background: #fbfaf6;
  --foreground: #0d1f16;
  --card: #ffffff;
  --primary: #073120;
  --primary-foreground: #f8f5ea;
  --muted-foreground: #54615a;
  --border: #d9dcd1;

  --gold: #d0ad54;
  --gold-soft: #e2d099;
  --deep: #062619;
  --deep-2: #03190f;

  --gradient-deep: linear-gradient(160deg, #062b1d, #01110a);
  --gradient-gold: linear-gradient(100deg, var(--gold-soft), var(--gold));
  --shadow-elegant: 0 24px 60px -30px rgba(3, 25, 15, 0.55);

  --whatsapp-green: #25d366;
}

/* ===== Reset básico ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

/* ===== Header ===== */
.site-header {
  background-color: var(--deep-2);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.site-header__logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.site-header__contact {
  display: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  transition: color 0.2s ease;
}

.site-header__contact:hover {
  color: var(--gold-soft);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 20px;
  background-image: var(--gradient-deep);
}

.hero__inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin: 0;
}

.hero__title {
  margin-top: 24px;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--primary-foreground);
}

.hero__title .gold {
  color: var(--gold);
}

.hero__text {
  margin: 24px auto 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(248, 245, 234, 0.75);
}

.btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  padding: 16px 32px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--deep);
}

.btn-gold {
  background-image: var(--gradient-gold);
  color: var(--deep);
}

.btn-gold:hover {
  opacity: 0.9;
}

.hero__cta {
  margin-top: 40px;
}

.hero__divider {
  margin: 56px auto 0;
  height: 1px;
  width: 6rem;
  background-color: rgba(208, 173, 84, 0.4);
}

/* ===== Seções gerais ===== */
.section {
  padding: 80px 20px;
}

.section--tight {
  max-width: 64rem;
  margin: 0 auto;
}

.section h2 {
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--foreground);
}

.section--deep h2 {
  color: var(--primary-foreground);
}

.section__lead {
  max-width: 42rem;
}

.section__lead p {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.section--deep .section__lead p {
  color: rgba(248, 245, 234, 0.7);
}

/* ===== Cards de método ===== */
.cards-grid {
  margin-top: 48px;
  display: grid;
  gap: 24px;
}

.method-card {
  border-top: 2px solid var(--gold);
  background-color: var(--card);
  padding: 28px;
  box-shadow: var(--shadow-elegant);
}

.method-card h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--primary);
}

.method-card p {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ===== Autoridade ===== */
.section--autoridade {
  background-image: var(--gradient-deep);
}

.team-grid {
  margin-top: 48px;
  display: grid;
  gap: 32px;
}

.team-card {
  border: 1px solid rgba(208, 173, 84, 0.25);
  padding: 24px;
  text-align: left;
}

.team-card__photo {
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 15rem;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid rgba(208, 173, 84, 0.4);
}

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

.team-card h3 {
  margin-top: 28px;
  font-size: 1.5rem;
  color: var(--gold);
}

.team-card p {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(248, 245, 234, 0.7);
}

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

.autoridade__cta .btn {
  width: 100%;
}

/* ===== Prova social ===== */
.reviews {
  overflow: hidden;
  padding: 80px 0;
}

.reviews__header {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.reviews__eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
  margin: 0;
}

.reviews__header h2 {
  margin-top: 16px;
  font-size: 1.875rem;
  color: var(--foreground);
}

.marquee-mask {
  margin-top: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  width: max-content;
  animation: marquee-x 42s linear infinite;
}

@keyframes marquee-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

.review-card {
  width: 19rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-elegant);
}

.review-card__stars {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.review-card p {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--foreground);
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--deep-2);
  padding: 56px 20px;
}

.site-footer__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.site-footer__logo {
  height: 48px;
  width: auto;
  opacity: 0.9;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
}

.site-footer address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(248, 245, 234, 0.7);
}

.site-footer address p {
  margin-top: 8px;
}

.site-footer address p:first-child {
  margin-top: 0;
}

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

.site-footer__legal {
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(248, 245, 234, 0.5);
}

/* ===== Botão flutuante de WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--whatsapp-green);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

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

/* ===== Responsivo (>= 640px) ===== */
@media (min-width: 640px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .site-header__inner {
    padding: 16px 32px;
  }

  .site-header__logo {
    height: 56px;
  }

  .site-header__contact {
    display: inline-block;
  }

  .hero {
    padding: 112px 32px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__text {
    font-size: 1.125rem;
  }

  .hero__cta .btn {
    width: auto;
  }

  .section {
    padding: 96px 32px;
  }

  .section h2 {
    font-size: 2.25rem;
  }

  .section__lead p {
    font-size: 1.125rem;
  }

  .method-card {
    padding: 36px;
  }

  .method-card p {
    font-size: 1rem;
  }

  .team-card {
    padding: 32px;
  }

  .autoridade__cta .btn {
    width: auto;
  }

  .reviews {
    padding: 96px 0;
  }

  .reviews__header {
    padding: 0 32px;
  }

  .reviews__header h2 {
    font-size: 2.25rem;
  }

  .marquee-track {
    gap: 24px;
  }

  .review-card {
    width: 24rem;
    padding: 32px;
  }

  .review-card p {
    font-size: 1.25rem;
  }

  .site-footer {
    padding: 56px 32px;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.4rem;
  }

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

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