/* ==========================================================================
   Karine Freitas Advocacia — style.css
   Design premium: vinho profundo + dourado + creme
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --wine:       #5C1A28;
  --wine-deep:  #3D1019;
  --wine-light: #7A2336;
  --gold:       #C6A15B;
  --gold-light: #D4B577;
  --cream:      #FAF7F2;
  --cream-dark: #F0EBE2;
  --ink:        #1A1A1A;
  --ink-mid:    #3D3D3D;
  --ink-soft:   #6B6B6B;
  --white:      #FFFFFF;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;

  --radius:   4px;
  --shadow:   0 8px 40px rgba(0,0,0,.12);
  --trans:    0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow--light { color: var(--gold-light); }
.eyebrow--dark  { color: var(--wine); }

.eyebrow__line {
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 24px;
}
.section-title--dark  { color: var(--ink); }
.section-title--light { color: var(--white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: .06em;
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans), transform var(--trans), box-shadow var(--trans);
  white-space: nowrap;
}
.btn--sm  { font-size: .8rem;  padding: 10px 22px; }
.btn--md  { font-size: .9rem;  padding: 13px 28px; }
.btn--lg  { font-size: 1rem;   padding: 16px 36px; }
.btn--full { width: 100%; }

.btn--gold {
  background: var(--gold);
  color: var(--wine-deep);
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198,161,91,.35);
}

.btn--wine {
  background: var(--wine);
  color: var(--white);
}
.btn--wine:hover {
  background: var(--wine-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92,26,40,.35);
}

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

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(61,16,25,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(198,161,91,.18);
  transition: box-shadow var(--trans);
}
.header.is-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.3); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
}
.brand__role {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: rgba(255,255,255,.75);
  transition: color var(--trans);
}
.nav__link:hover { color: var(--gold); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =============================================
   HERO — split layout
   ============================================= */
.hero {
  padding-top: 72px; /* header height */
  min-height: 100vh;
  background: var(--wine-deep);
  display: flex;
  align-items: stretch;
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
  width: 100%;
}

/* Left panel */
.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px max(64px, calc((100vw - 1200px) / 2 + 24px));
  background: var(--wine-deep);
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,.72);
  margin-bottom: 48px;
  max-width: 440px;
}

/* Form */
.hero__form { display: flex; flex-direction: column; gap: 12px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--white);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(198,161,91,.25);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--trans), background var(--trans);
}
.field input::placeholder { color: rgba(255,255,255,.4); }
.field input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.12);
}
.field input.is-invalid { border-color: #e05;  }

/* Right panel — photo */
.hero__right {
  position: relative;
  overflow: hidden;
  background: var(--wine);
}

.hero__photo-wrap {
  position: absolute;
  inset: 0;
}
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(.92) contrast(1.04);
}

/* Overlay gradient on left edge of photo */
.hero__right::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 120px;
  background: linear-gradient(to right, var(--wine-deep), transparent);
  z-index: 1;
  pointer-events: none;
}

/* =============================================
   STATS BAR
   ============================================= */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 48px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { padding-right: 0; }

.stat-item__icon {
  flex-shrink: 0;
  color: var(--wine);
}

.stat-item__text {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-mid);
}
.stat-item__text strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--cream-dark);
  flex-shrink: 0;
}

/* =============================================
   PROBLEMA
   ============================================= */
.problem {
  padding: 100px 0;
  background: var(--cream);
}

.problem__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.problem__copy .section-title { color: var(--ink); }
.problem__copy p {
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.8;
}

.problem__risks {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.risk-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--cream-dark);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}
.risk-card:first-child { border-top: 1px solid var(--cream-dark); }

.risk-card__num {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  padding-top: 4px;
}

.risk-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.risk-card p {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.65;
  text-align: justify;
  grid-column: 2;
}

/* =============================================
   SERVIÇOS
   ============================================= */
.services {
  padding: 100px 0;
  background: var(--wine-deep);
}

.services .section-title--dark { color: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-bottom: 64px;
}

.service-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(198,161,91,.12);
  padding: 48px 40px;
  transition: background var(--trans), border-color var(--trans);
  position: relative;
}
.service-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(198,161,91,.3);
}

.service-card__num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(198,161,91,.18);
  line-height: 1;
  margin-bottom: 16px;
}

.service-card__icon {
  color: var(--gold);
  margin-bottom: 20px;
}
.service-card__icon svg { width: 36px; height: 36px; }

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}
.service-card p {
  font-size: .92rem;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
}

.services__cta { text-align: center; }

/* =============================================
   SERVIÇOS DO ESCRITÓRIO
   ============================================= */
.escritorio-services {
  padding: 100px 0;
  background: var(--cream);
}

.escritorio-services .section-title--dark { color: var(--ink); }

.escritorio-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-bottom: 64px;
  border-top: 1px solid var(--cream-dark);
}

.esvc-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 32px 40px 32px 0;
  border-bottom: 1px solid var(--cream-dark);
  align-items: start;
  transition: background var(--trans);
}
.esvc-card:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--cream-dark);
  padding-right: 48px;
}
.esvc-card:nth-child(even) {
  padding-left: 48px;
  padding-right: 0;
}
.esvc-card:hover { background: rgba(198,161,91,.04); }

.esvc-card__num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  padding-top: 3px;
  flex-shrink: 0;
}

.esvc-card__body h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
}
.esvc-card__body p {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;
}

/* =============================================
   SOBRE
   ============================================= */
.about {
  background: var(--cream);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}

.about__photo-col {
  overflow: hidden;
  position: relative;
}
.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about__copy-col {
  background: var(--wine-deep);
  display: flex;
  align-items: center;
  padding: 80px max(64px, calc((100vw - 1200px) / 2 + 24px)) 80px 80px;
}

.about__copy-inner { max-width: 480px; }

.about__copy-inner .section-title {
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.about__text {
  color: rgba(255,255,255,.72);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about__text strong { color: var(--gold); font-weight: 600; }

.about__badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}

.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
}
.badge__icon {
  color: var(--gold);
  font-size: .7rem;
}

/* =============================================
   DEPOIMENTOS
   ============================================= */
.testimonials {
  padding: 100px 0;
  background: var(--wine);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(198,161,91,.15);
  padding: 40px 36px 36px;
  border-radius: var(--radius);
  position: relative;
  transition: background var(--trans);
}
.testimonial:hover { background: rgba(255,255,255,.09); }

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: .7;
  color: var(--gold);
  opacity: .35;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial p {
  font-size: .96rem;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial footer {
  border-top: 1px solid rgba(198,161,91,.2);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testimonial footer strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.testimonial footer span {
  font-size: .8rem;
  color: var(--gold);
  letter-spacing: .06em;
}

/* =============================================
   CTA FINAL
   ============================================= */
.final-cta {
  padding: 120px 0;
  background: var(--wine-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(198,161,91,.08) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__inner { position: relative; }
.final-cta__inner .eyebrow { justify-content: center; }

.final-cta__inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
}
.final-cta__inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #1A0810;
  padding: 64px 0 0;
  color: rgba(255,255,255,.6);
  font-size: .88rem;
}

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

.footer__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.footer__oab {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--gold);
}

.footer__col h3 {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer__col a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  transition: color var(--trans);
}
.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p { font-size: .78rem; color: rgba(255,255,255,.35); }
.footer__bottom-note { font-size: .72rem !important; }

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--trans), box-shadow var(--trans);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37,211,102,.55);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .hero__split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__left {
    padding: 64px 24px;
    text-align: center;
  }
  .hero__sub { max-width: 100%; }
  .hero__eyebrow { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero__right {
    height: 60vw;
    max-height: 500px;
  }
  .hero__right::before { display: none; }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .stat-divider { display: none; }
  .stat-item { padding: 0; }

  .problem__inner { grid-template-columns: 1fr; gap: 48px; }

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

  .about__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .about__photo-col { height: 60vw; max-height: 480px; }
  .about__copy-col {
    padding: 64px 24px;
  }
  .about__copy-inner { max-width: 100%; }

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

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

/* Mobile */
@media (max-width: 640px) {
  .header__inner { height: 64px; }
  .nav {
    position: fixed;
    inset: 64px 0 0;
    background: rgba(61,16,25,.98);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    font-size: 1.1rem;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .nav.is-open { transform: none; }
  .nav__link { font-size: 1.05rem; color: rgba(255,255,255,.85); }
  .nav-toggle { display: flex; }

  .hero__left { padding: 48px 24px; }
  .hero__right { height: 80vw; }

  .stats { padding: 40px 0; }
  .stats__grid { grid-template-columns: 1fr; gap: 28px; }

  .problem { padding: 72px 0; }
  .services { padding: 72px 0; }
  .service-card { padding: 36px 28px; }
  .escritorio-services { padding: 72px 0; }
  .escritorio-services__grid { grid-template-columns: 1fr; }
  .esvc-card:nth-child(odd) { border-right: none; padding-right: 0; }
  .esvc-card:nth-child(even) { padding-left: 0; }

  .about__photo-col { height: 80vw; }
  .about__copy-col { padding: 56px 24px; }

  .testimonials { padding: 72px 0; }
  .testimonial { padding: 32px 24px 28px; }

  .final-cta { padding: 80px 0; }

  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
