/* =============================================
   HELOISY ALBINO — ADVOCACIA E CONSULTORIA
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Caveat:wght@400;500&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --color-bg:           #fffcf9;
  --color-bg-alt:       #f5ede9;
  --color-maroon:       #3f171f;
  --color-maroon-hover: #5a2530;
  --color-maroon-dark:  #2a0f15;
  --color-accent:       #a58570;
  --color-text:         #262626;
  --color-text-muted:   #575757;
  --color-white:        #ffffff;
  --color-whatsapp:     #25D366;
  --color-whatsapp-dark:#1ebe5a;
  --color-border:       rgba(63, 23, 31, 0.1);

  --font-main:   'Inter', sans-serif;
  --font-accent: 'Caveat', cursive;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(63, 23, 31, 0.07);
  --shadow-md: 0 4px 24px rgba(63, 23, 31, 0.11);
  --shadow-lg: 0 12px 48px rgba(63, 23, 31, 0.18);

  --transition:    0.25s ease;
  --max-width:     1200px;
  --nav-height:    72px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(255, 252, 249, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.nav__logo img { height: 42px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--color-maroon); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-maroon);
  color: var(--color-white) !important;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.nav__cta:hover {
  background: var(--color-maroon-hover);
  transform: translateY(-1px);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
  background: none;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-maroon);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== BUTTONS ===== */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.38);
}
.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.48);
}
.btn-whatsapp--sm {
  padding: 13px 26px;
  font-size: 15px;
}

/* ===== SECTION WRAPPER ===== */
.section { padding: 100px 0; }
.section--alt  { background: var(--color-bg-alt); }
.section--white { background: var(--color-white); }
.section--dark { background: var(--color-maroon); }

.section__label {
  display: block;
  font-family: var(--font-accent);
  font-size: 22px;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.section__label--light { color: rgba(255, 252, 249, 0.55); }

.section__title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section__title--white { color: var(--color-white); }

.section__subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 56px;
}
.section__subtitle--white { color: rgba(255, 252, 249, 0.72); }

.section__cta { text-align: center; margin-top: 56px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background-color: var(--color-maroon);
  display: flex;
  align-items: stretch;
  padding-top: var(--nav-height);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 45%, rgba(90, 37, 48, 0.45) 0%, transparent 65%);
  pointer-events: none;
}
.hero__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
}
.hero__content {
  padding: 72px 0;
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 252, 249, 0.1);
  border: 1px solid rgba(255, 252, 249, 0.22);
  color: rgba(255, 252, 249, 0.85);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-accent);
  font-size: 18px;
  margin-bottom: 24px;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero__headline {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}
.hero__headline em {
  font-style: normal;
  color: #d4a8a0;
}
.hero__subheadline {
  font-size: 17px;
  color: rgba(255, 252, 249, 0.75);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(255, 252, 249, 0.52);
}
.hero__trust-item { white-space: nowrap; }
.hero__trust-sep {
  margin: 0 8px;
  color: rgba(255, 252, 249, 0.25);
  user-select: none;
}
.hero__image {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.hero__photo {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - var(--nav-height));
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ===== SERVICES ===== */
.services__header { margin-bottom: 56px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(63, 23, 31, 0.2);
}
.service-card__icon {
  width: 36px; height: 36px;
  color: var(--color-maroon);
  margin-bottom: 16px;
}
.service-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--color-text);
}
.service-card__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: center;
}
.about__image { position: relative; }
.about__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
}
.about__image-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--color-maroon);
  color: var(--color-white);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  line-height: 1.4;
}
.about__text p {
  font-size: 16px;
  line-height: 1.82;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.about__text p:first-child {
  font-size: 17px;
  color: var(--color-text);
  font-weight: 500;
}
.about__text p:last-child { margin-bottom: 0; }
.about__cta { margin-top: 36px; }

/* ===== HOW IT WORKS ===== */
.how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.how-step {
  padding: 32px 24px 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.how-step::before {
  content: attr(data-num);
  position: absolute;
  top: -12px;
  right: 16px;
  font-size: 96px;
  font-weight: 700;
  color: var(--color-maroon);
  opacity: 0.06;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.how-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--color-maroon);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.how-step__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 10px;
}
.how-step__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== FAQ ===== */
.faq__list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-main);
  transition: color var(--transition);
}
.faq-item__btn:hover { color: var(--color-maroon); }
.faq-item__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-maroon);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-item__icon { transform: rotate(45deg); background: var(--color-maroon-hover); }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-item__answer { max-height: 400px; }
.faq-item__answer-inner {
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ===== FINAL CTA ===== */
.cta {
  background: var(--color-maroon);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 40px;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('./assets/images/8b434482b4b3abd5-47TJJ8Qsf4DciSE3psPm2YQ.png');
  background-size: cover;
  background-position: center;
  opacity: 0.07;
}
.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}
.cta__title {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.cta__text {
  font-size: 18px;
  color: rgba(255, 252, 249, 0.75);
  line-height: 1.75;
  margin-bottom: 40px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-maroon-dark);
  padding: 52px 0;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer__logo img { height: 38px; }
.footer__address {
  font-size: 13.5px;
  color: rgba(255, 252, 249, 0.5);
  line-height: 1.6;
}
.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__nav a {
  font-size: 13px;
  color: rgba(255, 252, 249, 0.55);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--color-white); }
.footer__copy {
  font-size: 12px;
  color: rgba(255, 252, 249, 0.3);
  margin-top: 4px;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px; height: 58px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 200;
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* ===== TABLET ===== */
@media (max-width: 1080px) {
  .hero__container { grid-template-columns: 1fr 400px; gap: 48px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .how__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 340px 1fr; gap: 56px; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .container { padding: 0 20px; }

  /* Nav */
  .nav__inner { padding: 0 20px; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-bg);
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
    gap: 20px;
    border-top: 1px solid var(--color-border);
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 16px; }
  .nav__cta--desktop { display: none; }
  .nav__toggle { display: flex; }

  /* Hero */
  .hero { min-height: auto; padding-top: var(--nav-height); }
  .hero__container {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 20px 0;
    gap: 32px;
  }
  .hero__content { padding: 0; text-align: center; }
  .hero__trust { justify-content: center; }
  .hero__image { order: 2; }
  .hero__photo {
    max-height: 420px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    object-fit: cover;
    object-position: top;
  }

  /* Sections */
  .section { padding: 64px 0; }
  .section__subtitle { margin-bottom: 36px; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; gap: 10px; }

  /* About */
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__image { max-width: 280px; margin: 0 auto; }
  .about__image-badge { bottom: -12px; right: -8px; }

  /* How it works */
  .how__grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta { padding: 80px 20px; }
  .cta__text { font-size: 16px; }

  /* Footer */
  .footer__inner { padding: 0 20px; }

  /* Float button */
  .wa-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
}
