/* ============================================================
   Ribeiro & Spricigo Advocacia — paleta: azul marinho, branco,
   dourado e detalhes em marsala.
   ============================================================ */

:root {
  --navy-900: #081428;
  --navy-800: #0b1d3a;
  --navy-700: #12294e;
  --navy-600: #1a3563;
  --gold-500: #c9a24b;
  --gold-400: #d9b96a;
  --gold-300: #e9d5a1;
  --marsala-600: #7b2d3b;
  --marsala-500: #8e3a49;
  --white: #ffffff;
  --off-white: #f7f5f0;
  --ink: #24292f;
  --ink-soft: #5a6270;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Segoe UI", sans-serif;
  --shadow-lg: 0 24px 60px rgba(8, 20, 40, 0.18);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1160px, 92%); margin-inline: auto; }

.section { padding: 96px 0; }
.section--navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700)); color: var(--white); }
.section--soft { background: var(--off-white); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }

h1 em, h2 em { font-style: italic; color: var(--gold-500); }
.section--navy h2 em, .cta-final h2 em { color: var(--gold-400); }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.72rem; font-weight: 600; color: var(--gold-500);
  margin-bottom: 18px;
}
.eyebrow__line { display: inline-block; width: 44px; height: 1px; background: var(--gold-500); }
.eyebrow--dark { color: var(--marsala-600); }
.eyebrow--dark .eyebrow__line { background: var(--marsala-600); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius);
  text-decoration: none; transition: all 0.25s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn--lg { padding: 17px 32px; font-size: 0.9rem; }
.btn--xl { padding: 20px 40px; font-size: 1rem; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-500), #b78c33);
  color: var(--navy-900);
  box-shadow: 0 10px 28px rgba(201, 162, 75, 0.35);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(201, 162, 75, 0.45); }
.btn--outline { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn--outline:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--marsala-600); transform: translateY(-2px); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: all 0.3s ease;
  background: linear-gradient(180deg, rgba(8, 20, 40, 0.85), rgba(8, 20, 40, 0));
}
.header.is-scrolled {
  background: rgba(8, 20, 40, 0.96);
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}
.header__inner { display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand__logo { height: 48px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; white-space: nowrap; }
.brand__text small { font-size: 0.58rem; letter-spacing: 0.13em; color: var(--gold-300); white-space: nowrap; }

.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a {
  color: rgba(255, 255, 255, 0.85); text-decoration: none;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; position: relative; padding: 4px 0;
  white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold-400); transition: width 0.25s ease;
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.header__cta { padding: 11px 20px; font-size: 0.75rem; white-space: nowrap; }

.nav-toggle {
  display: none; background: none; border: none;
  flex-direction: column; gap: 5px; padding: 6px; margin-left: auto;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--gold-400); transition: 0.3s; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(900px 500px at 85% 12%, rgba(123, 45, 59, 0.28), transparent 60%),
    radial-gradient(700px 480px at 12% 90%, rgba(201, 162, 75, 0.12), transparent 60%),
    linear-gradient(150deg, var(--navy-900) 20%, var(--navy-800) 60%, var(--navy-700));
  color: var(--white);
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "R&S";
  position: absolute; right: -2%; bottom: -6%;
  font-family: var(--serif); font-size: 26rem; font-weight: 700;
  color: rgba(255, 255, 255, 0.025); line-height: 1; pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 64px; align-items: center; position: relative;
}
.hero__lead { margin: 26px 0 34px; font-size: 1.06rem; font-weight: 300; color: rgba(255, 255, 255, 0.88); max-width: 54ch; }
.hero__lead strong { color: var(--gold-300); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__badges {
  display: flex; gap: 36px; margin-top: 52px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 28px;
}
.badge-item { display: flex; flex-direction: column; }
.badge-item__title { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-400); font-weight: 600; }
.badge-item__desc { font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); letter-spacing: 0.04em; }

.hero__figure { position: relative; justify-self: end; }
.hero__frame {
  position: relative; width: min(400px, 100%);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(201, 162, 75, 0.5);
  border-radius: var(--radius); transform: translate(14px, 14px);
  pointer-events: none;
}
.hero__frame img { width: 100%; height: auto; }
.hero__card {
  position: absolute; left: -34px; bottom: 34px;
  background: var(--marsala-600); color: var(--white);
  padding: 18px 22px; border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: flex; align-items: center; gap: 14px;
}
.hero__card-logo { height: 42px; width: auto; }
.hero__card p { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.5; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
}
.hero__scroll span {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(var(--gold-400), transparent);
  animation: scrollHint 2s ease infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- cred band ---------- */
.cred-band { background: var(--marsala-600); color: var(--white); padding: 26px 0; }
.cred-band__inner { text-align: center; }
.cred-band p { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-style: italic; }
.cred-band strong { color: var(--gold-300); }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 72px; align-items: center; }
.about__figures { position: relative; padding: 0 40px 56px 0; }
.about__img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about__img--main { width: 82%; }
.about__img--accent {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border: 6px solid var(--white);
}
.about__content h2 { margin-bottom: 24px; color: var(--navy-800); }
.about__content p { color: var(--ink-soft); margin-bottom: 18px; }
.about__content p strong { color: var(--navy-800); }
.about__values { list-style: none; margin: 26px 0 34px; display: grid; gap: 12px; }
.about__values li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; color: var(--navy-800); }
.about__values li span { color: var(--gold-500); font-size: 0.7rem; }

/* ---------- section head ---------- */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { justify-content: flex-start; }
.section-head h2 { color: inherit; }
.section-head__sub { margin-top: 16px; color: var(--ink-soft); }
.section--navy .section-head__sub { color: rgba(255, 255, 255, 0.7); }

/* ---------- practice ---------- */
.practice__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(201, 162, 75, 0.22);
  border-radius: var(--radius); padding: 34px 28px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.p-card:hover {
  transform: translateY(-6px);
  background: rgba(201, 162, 75, 0.08);
  border-color: rgba(201, 162, 75, 0.55);
}
.p-card__icon {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 22px;
  color: var(--gold-400);
  background: linear-gradient(140deg, rgba(201, 162, 75, 0.16), rgba(123, 45, 59, 0.28));
  border: 1px solid rgba(201, 162, 75, 0.35);
}
.p-card h3 { font-size: 1.35rem; margin-bottom: 12px; color: var(--gold-300); }
.p-card p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); font-weight: 300; }

.practice__cta {
  margin-top: 56px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.practice__cta p { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: rgba(255, 255, 255, 0.85); }

/* ---------- process ---------- */
.process .section-head { margin-inline: auto; text-align: center; }
.process .section-head .eyebrow { justify-content: center; }
.process .section-head h2 { color: var(--navy-800); }
.process__grid {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  counter-reset: step;
}
.step {
  position: relative; padding: 30px 24px 26px;
  border-top: 3px solid var(--gold-500);
  background: var(--off-white); border-radius: 0 0 var(--radius) var(--radius);
}
.step__num {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 700;
  color: rgba(123, 45, 59, 0.25); line-height: 1;
}
.step h3 { color: var(--navy-800); font-size: 1.3rem; margin: 8px 0 8px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- team ---------- */
.team__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); gap: 40px; justify-content: center; }
.t-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 14px 40px rgba(8, 20, 40, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.t-card__photo { height: 420px; overflow: hidden; background: var(--navy-800); }
.t-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; }
.t-card:hover .t-card__photo img { transform: scale(1.04); }
.t-card__body { padding: 28px 30px 32px; border-top: 3px solid var(--gold-500); }
.t-card__body h3 { color: var(--navy-800); font-size: 1.6rem; }
.t-card__role {
  color: var(--marsala-600); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; margin: 4px 0 14px;
}
.t-card__body p:last-child { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- instagram ---------- */
.insta .section-head { margin-inline: auto; text-align: center; }
.insta .section-head .eyebrow { justify-content: center; }
.insta .section-head h2 { color: var(--navy-800); }
.insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.insta__item {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; background: var(--navy-800);
}
.insta__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease, opacity 0.3s ease; }
.insta__item:hover img { transform: scale(1.07); opacity: 0.85; }
.insta__item--cta {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  text-decoration: none; text-align: center; padding: 14px;
  background: linear-gradient(150deg, var(--marsala-600), var(--navy-800));
}
.insta__item--cta span { font-family: var(--serif); font-size: 1.05rem; color: var(--white); line-height: 1.3; }
.insta__item--cta em { font-style: normal; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-300); }

/* ---------- depoimentos ---------- */
.reviews .section-head { margin-inline: auto; text-align: center; }
.reviews .section-head .eyebrow { justify-content: center; }
.reviews .section-head h2 { color: var(--navy-800); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.r-card {
  background: var(--white); border: 1px solid rgba(123, 45, 59, 0.18);
  border-top: 3px solid var(--marsala-600);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: 0 10px 30px rgba(8, 20, 40, 0.07);
  display: flex; flex-direction: column; gap: 14px; margin: 0;
}
.r-card__stars { color: var(--gold-500); font-size: 1.05rem; letter-spacing: 0.2em; }
.r-card p { font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--ink); line-height: 1.55; }
.r-card footer { font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.reviews__empty {
  text-align: center; color: var(--ink-soft); font-family: var(--serif);
  font-size: 1.2rem; font-style: italic;
}
.reviews__cta { margin-top: 44px; text-align: center; }

/* ---------- newsletter / conteúdos ---------- */
.news .section-head { margin-inline: auto; text-align: center; }
.news .section-head .eyebrow { justify-content: center; }
.news .section-head h2 { color: var(--navy-800); }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.n-card {
  background: var(--white); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 10px 30px rgba(8, 20, 40, 0.07);
  border-top: 3px solid var(--gold-500);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.n-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.n-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.n-card__tag {
  background: rgba(123, 45, 59, 0.1); color: var(--marsala-600);
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; padding: 5px 10px; border-radius: 999px;
}
.n-card__meta time { font-size: 0.74rem; color: var(--ink-soft); letter-spacing: 0.06em; }
.n-card h3 { font-size: 1.35rem; color: var(--navy-800); line-height: 1.25; }
.n-card p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.n-card__author { font-size: 0.76rem; color: var(--gold-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.news__cta {
  margin-top: 48px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.news__cta p { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--navy-800); }

/* ---------- CTA final ---------- */
.cta-final {
  background:
    radial-gradient(760px 420px at 15% 20%, rgba(123, 45, 59, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white); padding: 110px 0; text-align: center;
}
.cta-final__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta-final .eyebrow { justify-content: center; }
.cta-final h2 { max-width: 21ch; margin-bottom: 12px; }
.cta-final__sub { color: rgba(255, 255, 255, 0.75); max-width: 56ch; margin-bottom: 30px; font-weight: 300; }
.cta-final__note { margin-top: 20px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.8); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding: 64px 0 48px;
}
.footer__logo { width: 150px; height: auto; }
.footer__brand p { margin-top: 16px; font-size: 0.9rem; line-height: 1.6; }
.footer__brand strong { font-family: var(--serif); font-size: 1.1rem; color: var(--white); }
.footer__col h4 {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 18px; font-weight: 600;
}
.footer__col a, .footer__col span {
  display: block; color: rgba(255, 255, 255, 0.72); text-decoration: none;
  font-size: 0.9rem; margin-bottom: 10px; transition: color 0.2s;
}
.footer__col a:hover { color: var(--gold-300); }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; }
.footer__bar-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.72rem; color: rgba(255, 255, 255, 0.45);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: var(--white);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease;
  animation: waPulse 2.6s ease infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal--delay { transition-delay: 0.15s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .header__cta { display: none; }
}

@media (max-width: 1024px) {
  .practice__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .insta__grid { grid-template-columns: repeat(3, 1fr); }
  .news__grid, .reviews__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__figure { justify-self: center; }
  .hero__card { left: -12px; }
  .header__cta { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .nav {
    position: fixed; inset: 0; z-index: 99;
    flex-direction: column; justify-content: center; align-items: center; gap: 34px;
    background: rgba(8, 20, 40, 0.98);
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: 1.05rem; }
  .nav-toggle { display: flex; z-index: 100; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .team__grid { grid-template-columns: 1fr; }
  .t-card__photo { height: 360px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero::before { font-size: 14rem; }
}

@media (max-width: 540px) {
  .practice__grid, .process__grid { grid-template-columns: 1fr; }
  .insta__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__badges { gap: 20px; }
  .brand__text strong { font-size: 0.95rem; }
  .wa-float { width: 54px; height: 54px; right: 18px; bottom: 18px; }
}
