/* ============================================
   HTO Advogados — Landing Page
   Design: Editorial & Refined
   Colors: Navy + Gold + Off-white
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
  --navy: #0F1B2D;
  --navy-light: #162236;
  --navy-mid: #1A2A42;
  --gold: #C4A265;
  --gold-light: #D4B978;
  --gold-dark: #A8873F;
  --offwhite: #FAFAF7;
  --warm-gray: #F2F0EB;
  --text-dark: #1C1C1C;
  --text-body: #4A4A4A;
  --text-light: #8A8A8A;
  --white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --container: 1200px;
  --gutter: 24px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text-body); background: var(--offwhite); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s var(--ease); }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--text-dark); line-height: 1.15; font-weight: 600; }

/* --- UTILITIES --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.overline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.section-title em { font-style: italic; color: var(--gold-dark); }

.section-sub {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 3.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .9rem 2rem;
  border-radius: 4px;
  transition: all .35s var(--ease);
  letter-spacing: .02em;
}
.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 162, 101, .3);
}
.btn--outline {
  border: 1.5px solid rgba(255,255,255,.35);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--large {
  padding: 1.15rem 2.5rem;
  font-size: 1.05rem;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all .4s var(--ease);
}
.header--scrolled {
  background: rgba(15, 27, 45, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: .75rem 0;
  box-shadow: 0 1px 20px rgba(0,0,0,.15);
}
.header__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo img { height: 40px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 2rem; }
.header__link {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
  transition: color .3s var(--ease);
}
.header__link:hover { color: var(--gold); }
.header__link--cta {
  background: var(--gold);
  color: var(--navy);
  padding: .55rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
}
.header__link--cta:hover { background: var(--gold-light); color: var(--navy); }

.header__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.header__menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all .3s var(--ease);
}
.header__menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__menu.active span:nth-child(2) { opacity: 0; }
.header__menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(196,162,101,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(196,162,101,.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C4A265' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__container {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8rem var(--gutter) 5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__content {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(196,162,101,.3);
}
.hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: var(--white);
  margin-bottom: 1.75rem;
  line-height: 1.1;
}
.hero__title span { display: block; }
.hero__title--accent { color: var(--gold); font-style: italic; }

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.6);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; justify-content: center; }

.hero__trust { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .02em;
}
.hero__trust-item svg { color: var(--gold); opacity: .7; }
.hero__trust-divider { width: 1px; height: 16px; background: rgba(255,255,255,.15); }

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp .8s var(--ease-out) forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- PROBLEMS --- */
.problems {
  padding: 7rem 0;
  background: var(--offwhite);
}
.problems__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.problems__card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 8px;
  padding: 2.5rem;
  transition: all .4s var(--ease);
}
.problems__card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(196,162,101,.1);
  transform: translateY(-4px);
}
.problems__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(196,162,101,.1), rgba(196,162,101,.05));
  border-radius: 10px;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.problems__card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.problems__card p {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text-light);
}

/* --- ABOUT --- */
.about {
  padding: 7rem 0;
  background: var(--white);
}
.about__grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 5rem;
  align-items: start;
}
.about__content .section-title { margin-bottom: 1.5rem; }
.about__lead {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 1.75rem;
  font-weight: 500;
}
.about__content p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
}
.about__content strong { color: var(--text-dark); }

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 3rem;
  background: var(--navy);
  border-radius: 12px;
  position: sticky;
  top: 120px;
}
.about__stat { text-align: center; }
.about__stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.about__stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}
.about__stat-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gold);
}
.about__stat-label {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: .5rem;
}

/* --- AREAS --- */
.areas {
  padding: 7rem 0;
  background: var(--warm-gray);
}
.areas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.areas__card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all .4s var(--ease);
}
.areas__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.areas__card:hover::before { transform: scaleX(1); }
.areas__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
}
.areas__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(196,162,101,.15);
  margin-bottom: .75rem;
  line-height: 1;
}
.areas__card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.areas__card p {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-light);
}

/* --- PROCESS --- */
.process {
  padding: 7rem 0;
  background: var(--navy);
}
.process .overline { color: var(--gold); }
.process .section-title { color: var(--white); }
.process .section-sub { color: rgba(255,255,255,.5); }

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.process__step {
  position: relative;
  padding-top: 2rem;
}
.process__step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.process__step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(196,162,101,.2);
  line-height: 1;
  margin-bottom: .75rem;
}
.process__step h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .75rem;
}
.process__step p {
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(255,255,255,.5);
}

/* --- TEAM --- */
.team {
  padding: 7rem 0;
  background: var(--offwhite);
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.team__member { text-align: center; }
.team__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.team__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,27,45,.4) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.team__member:hover .team__photo::after { opacity: 1; }
.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s var(--ease);
}
.team__member:hover .team__photo img { transform: scale(1.04); }
.team__member h3 {
  font-size: 1.25rem;
  margin-bottom: .25rem;
}
.team__role {
  font-size: .85rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* --- FAQ --- */
.faq {
  padding: 7rem 0;
  background: var(--white);
}
.faq .section-title { margin-bottom: 3rem; }
.faq__list { max-width: 780px; }

.faq__item {
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color .3s var(--ease);
}
.faq__question:hover { color: var(--gold); }
.faq__chevron { transition: transform .3s var(--ease); color: var(--gold); flex-shrink: 0; margin-left: 1rem; }
.faq__item.active .faq__chevron { transform: rotate(180deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), padding .4s var(--ease);
}
.faq__item.active .faq__answer { max-height: 300px; }
.faq__answer p {
  padding-bottom: 1.5rem;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* --- FINAL CTA --- */
.cta {
  position: relative;
  padding: 7rem 0;
  background: var(--navy);
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(196,162,101,.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(196,162,101,.06) 0%, transparent 50%);
}
.cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.cta__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 2.5rem;
}
.cta__content .btn { margin-bottom: 3rem; }

.cta__info { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.cta__info-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.cta__info-item svg { color: var(--gold); opacity: .6; }

/* --- FOOTER --- */
.footer {
  background: #0A1420;
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer__brand img { height: 36px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { font-size: .85rem; color: rgba(255,255,255,.4); line-height: 1.65; }

.footer__links h4,
.footer__contact h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.25rem;
}
.footer__links a {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  padding: .3rem 0;
  transition: color .3s var(--ease);
}
.footer__links a:hover { color: var(--gold); }

.footer__contact p {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
  margin-bottom: .75rem;
}

.footer__bottom {
  padding: 1.5rem 0;
  text-align: center;
}
.footer__bottom p { font-size: .75rem; color: rgba(255,255,255,.25); }

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: all .3s var(--ease);
  animation: floatPulse 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.45);
}
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.35); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,.5); }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__stats { position: static; flex-direction: row; justify-content: space-around; }
  .areas__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right .4s var(--ease);
    box-shadow: -4px 0 30px rgba(0,0,0,.3);
  }
  .header__nav.active { right: 0; }
  .header__menu { display: flex; z-index: 1001; }
  .header__link { font-size: 1rem; color: rgba(255,255,255,.8); }
  .header__link--cta { text-align: center; width: 100%; }

  .hero__container { padding: 7rem var(--gutter) 3rem; }
  .hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__trust { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .hero__trust-divider { display: none; }

  .problems__grid { grid-template-columns: 1fr; }
  .areas__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

  .about__stats { flex-direction: column; padding: 2rem; }

  .cta__info { flex-direction: column; align-items: center; gap: 1rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .btn--large { padding: 1rem 1.5rem; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
