/* ==========================================================
   Carriel Vieira Advogados — landing page
   Paleta extraída do logo e do Instagram @adv.carrielvieira
   ========================================================== */

:root {
  --ink: #0e0c08;          /* preto quente */
  --ink-2: #16130d;
  --ink-3: #211c12;
  --brown: #33290a;        /* fundo do logo */
  --gold: #c9a55c;
  --gold-soft: #e2c88c;
  --gold-deep: #7a5d22;    /* dourado legível sobre creme (5,4:1) */
  --cream: #f6f1e7;
  --cream-2: #ece4d3;
  --text-light: #ece6d8;
  --muted-light: #b3aa97;
  --text-dark: #1d1912;
  --muted-dark: #5d5545;
  --line-light: rgba(201, 165, 92, .28);
  --line-dark: rgba(29, 25, 18, .14);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
p, li, dd { text-wrap: pretty; }

::selection { background: var(--gold); color: var(--ink); }
html { scrollbar-color: var(--brown) var(--ink); accent-color: var(--gold); caret-color: var(--gold); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.center { text-align: center; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* ---------- Elementos comuns ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.eyebrow::before { content: ''; width: 2.25rem; height: 1px; background: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: 1rem 1.6rem;
  font: 600 .92rem/1.2 var(--sans); letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border-color: var(--line-light); color: var(--text-light); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--brown); }
.btn--sm { padding: .7rem 1.1rem; font-size: .84rem; }
.btn--lg { padding: 1.15rem 1.9rem; font-size: 1rem; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--dark { background: var(--ink); color: var(--text-light); }
.section--light { background: var(--cream); color: var(--text-dark); }
.section--light h2 em { color: var(--gold-deep); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head p:last-child { margin-top: 1.1rem; font-size: 1.06rem; color: var(--muted-dark); max-width: 38rem; }

/* ---------- Cabeçalho ---------- */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.header.is-scrolled, .header.menu-open {
  background: rgba(14, 12, 8, .94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-light);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: #fff; }
.brand__icon { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.32rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.brand__sub { margin-top: .36rem; font-size: .7rem; font-weight: 600; letter-spacing: .44em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a:not(.btn) {
  font-size: .86rem; font-weight: 500; text-decoration: none; color: var(--text-light);
  padding: .4rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:not(.btn):hover { color: var(--gold-soft); border-bottom-color: var(--gold); }

.menu-btn {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-light); border-radius: var(--radius);
  color: var(--gold); cursor: pointer;
}

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

.hero {
  position: relative;
  padding: clamp(7.5rem, 13vw, 10.5rem) 0 0;
  background:
    radial-gradient(60rem 34rem at 82% 18%, rgba(201, 165, 92, .13), transparent 62%),
    linear-gradient(180deg, #14110b 0%, var(--ink) 70%);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.5rem); color: #fff; }
.hero__lead { margin-top: 1.6rem; max-width: 34rem; font-size: 1.08rem; color: var(--muted-light); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero__note { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; font-size: .84rem; color: var(--muted-light); }
.hero__note svg { width: 1rem; height: 1rem; color: var(--gold); flex: none; }

.hero__photo { position: relative; justify-self: end; width: 100%; max-width: 30rem; }
.hero__photo::before {
  content: ''; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--gold); opacity: .6; pointer-events: none;
}
.hero__photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; }
.hero__photo figcaption {
  position: absolute; left: -1.25rem; bottom: 2rem;
  padding: .9rem 1.2rem; background: var(--ink); border-left: 2px solid var(--gold);
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light);
}
.hero__photo figcaption span {
  display: block; margin-bottom: .15rem;
  font-family: var(--serif); font-size: 1.2rem; letter-spacing: 0; text-transform: none; color: #fff;
}

.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line-light);
}
.strip li {
  padding: 1.5rem 1rem; text-align: center;
  font-family: var(--serif); font-size: 1.22rem; color: var(--gold-soft);
}
.strip li + li { border-left: 1px solid var(--line-light); }

/* ---------- Áreas ---------- */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 2.2rem 1.7rem 2rem;
  background: #fffdf8; border: 1px solid var(--line-dark); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(122, 93, 34, .45); box-shadow: 0 24px 48px -28px rgba(29, 25, 18, .45); }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: 1.5rem;
  background: var(--ink); color: var(--gold); border-radius: 50%;
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card p { margin-top: .7rem; font-size: .95rem; color: var(--muted-dark); }
.card ul { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line-dark); display: grid; gap: .55rem; }
.card li { position: relative; padding-left: 1.1rem; font-size: .9rem; line-height: 1.5; }
.card li::before { content: ''; position: absolute; left: 0; top: .6em; width: .4rem; height: 1px; background: var(--gold-deep); }

.section__cta { margin-top: 2.6rem; font-size: 1rem; color: var(--muted-dark); }
.section__cta a {
  display: inline-flex; align-items: center; gap: .4rem; margin-left: .3rem;
  font-weight: 700; color: var(--text-dark); text-decoration: none; border-bottom: 1px solid var(--gold-deep);
}
.section__cta a:hover { color: var(--gold-deep); }
.section__cta svg { width: 1rem; height: 1rem; }

/* ---------- Sobre ---------- */

.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__photo { position: relative; }
.about__photo::before {
  content: ''; position: absolute; inset: -1rem 1rem 1rem -1rem; border: 1px solid var(--gold); opacity: .6;
}
.about__photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.about__oab { margin: .9rem 0 1.8rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.about__copy > p:not(.eyebrow):not(.about__oab) { color: var(--muted-light); font-size: 1.04rem; max-width: 36rem; }
.about__copy > p + p { margin-top: 1rem; }
.about__quote {
  margin: 2rem 0 2.2rem; padding-left: 1.4rem; border-left: 1px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.3; color: var(--gold-soft);
}

.team {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
  margin-top: clamp(4.5rem, 9vw, 7.5rem); padding-top: clamp(4.5rem, 9vw, 7.5rem);
  border-top: 1px solid var(--line-light);
}
.team__copy > p:not(.eyebrow) { margin-top: 1.2rem; color: var(--muted-light); font-size: 1.04rem; max-width: 34rem; }
.team__photo { justify-self: end; width: 100%; max-width: 27rem; border: 1px solid var(--line-light); padding: .6rem; }
.team__photo img { width: 100%; }

/* ---------- Passos ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 3.2rem; counter-reset: step; }
.step { position: relative; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 1.85rem; left: 4.6rem; right: -1.1rem; height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold-deep) 0 6px, transparent 6px 12px); opacity: .6;
}
.step__icon {
  display: grid; place-items: center; width: 3.7rem; height: 3.7rem; margin-bottom: 1.4rem;
  border: 1px solid var(--gold-deep); border-radius: 50%; color: var(--gold-deep); background: var(--cream);
}
.step__icon svg { width: 1.5rem; height: 1.5rem; }
.step__num { display: block; margin-bottom: .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.step p { margin-top: .6rem; font-size: .95rem; color: var(--muted-dark); }

/* ---------- Diferenciais ---------- */

#diferenciais { background: var(--ink-2); }
.diff { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.diff__head { position: sticky; top: 7rem; }
.diff__head > p:last-child { margin-top: 1.2rem; color: var(--muted-light); max-width: 26rem; }
.diff__list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  padding: 1.8rem 0; border-top: 1px solid var(--line-light);
}
.diff__list li:last-child { border-bottom: 1px solid var(--line-light); }
.diff__list svg { width: 1.9rem; height: 1.9rem; margin-top: .15rem; color: var(--gold); }
.diff__list h3 { color: #fff; }
.diff__list p { margin-top: .4rem; color: var(--muted-light); font-size: .98rem; }

/* ---------- FAQ ---------- */

.faq .section__head { margin-inline: auto; text-align: center; }
.faq .section__head p:last-child { margin-inline: auto; }
.accordion { max-width: 52rem; margin-inline: auto; border-top: 1px solid var(--line-dark); }
.acc { border-bottom: 1px solid var(--line-dark); }
.acc h3 { font-size: inherit; }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%;
  padding: 1.5rem .25rem; background: none; border: 0; cursor: pointer; text-align: left;
  font: 600 1.4rem/1.25 var(--serif); color: var(--text-dark); transition: color .2s;
}
.acc__btn:hover { color: var(--gold-deep); }
.acc__btn svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--gold-deep); transition: transform .35s var(--ease); }
.acc.is-open .acc__btn svg { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility .4s; }
.acc__panel > div { overflow: hidden; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; visibility: visible; }
.acc__panel p { padding: 0 .25rem 1.6rem; max-width: 44rem; color: var(--muted-dark); }

/* ---------- Contato ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: stretch; }
.contact__copy > p:not(.eyebrow) { margin-top: 1.2rem; color: var(--muted-light); max-width: 32rem; }
.contact__list { margin: 2.2rem 0 2.4rem; display: grid; gap: 1.4rem; }
.contact__list li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.contact__list svg { width: 1.4rem; height: 1.4rem; margin-top: .2rem; color: var(--gold); }
.contact__list strong { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .2rem; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--line-light); }
.contact__list a:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }

.contact__map { position: relative; min-height: 26rem; border: 1px solid var(--line-light); padding: .6rem; }
.contact__map iframe { width: 100%; height: 100%; min-height: 24rem; border: 0; filter: grayscale(.35) contrast(1.05); }
.contact__route {
  position: absolute; right: 1.3rem; bottom: 1.3rem;
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem;
  background: var(--ink); color: var(--gold-soft); border: 1px solid var(--line-light);
  font-size: .82rem; font-weight: 600; text-decoration: none;
}
.contact__route:hover { border-color: var(--gold); }
.contact__route svg { width: 1rem; height: 1rem; }

/* ---------- Rodapé ---------- */

.footer { background: #090805; border-top: 1px solid var(--line-light); padding: 4rem 0 2rem; font-size: .92rem; color: var(--muted-light); }
.footer__grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 3rem; }
.footer__brand img { width: 132px; height: 132px; border-radius: var(--radius); margin-bottom: 1.2rem; }
.footer__brand p { max-width: 22rem; }
.footer strong { display: block; margin-bottom: 1rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.footer__nav a, .footer__contact a { display: block; width: fit-content; padding: .22rem 0; text-decoration: none; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold-soft); }
.footer__contact address { margin-bottom: .6rem; }
.footer__legal { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(201, 165, 92, .14); font-size: .8rem; display: grid; gap: .5rem; }
.footer__legal p:last-child { max-width: 52rem; opacity: .8; }

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

.float-wa {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.float-wa.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-wa:hover { transform: scale(1.07); }
.float-wa svg { width: 2rem; height: 2rem; }
.float-wa::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- Animações de entrada ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-wa::after { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

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

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.6rem; }
  .step:nth-child(2)::after { display: none; }
}

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.5rem;
    background: rgba(14, 12, 8, .98); border-bottom: 1px solid var(--line-light);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 1rem 0; font-size: 1rem; border-bottom: 1px solid rgba(201, 165, 92, .14); }
  .nav .btn { margin-top: 1.2rem; padding: 1rem; font-size: .95rem; }

  .hero__grid, .about, .team, .diff, .contact { grid-template-columns: 1fr; }
  .hero__photo { justify-self: center; max-width: 26rem; margin-right: 1.1rem; }
  .hero__photo figcaption { left: -.75rem; }
  .about__photo { max-width: 26rem; margin-left: 1rem; }
  .team__photo { justify-self: start; }
  .diff__head { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: .98rem; }
  .brand__name { font-size: 1.08rem; }
  .brand__sub { font-size: .69rem; letter-spacing: .38em; }
  .brand__icon { width: 26px; height: 26px; }
  .hero__actions .btn { width: 100%; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip li { font-size: 1.05rem; padding: 1.1rem .5rem; }
  .strip li:nth-child(3) { border-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .cards, .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 1.2rem; }
  .step__icon { grid-row: span 3; margin-bottom: 0; }
  .acc__btn { font-size: 1.2rem; padding: 1.25rem 0; }
  .about__quote { font-size: 1.35rem; }
  .contact .btn--lg { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .section__cta a { margin-left: 0; margin-top: .4rem; }
}
