/* =========================================================
   Cartório Val-de-Cães — Home
   Referência desktop: 1920px de largura
   ========================================================= */

:root {
  /* Paleta extraída das referências */
  --color-primary: #2e514c;            /* botões principais, títulos de seção */
  --color-primary-title: #2e514d;
  --color-secondary: #99b7b5;          /* destaques e ícones */
  --color-background-dark: #1a2323;    /* hero, institucional, rodapé */
  --color-background-steps: #0d1819;
  --color-background-light: #f5f5f5;
  --color-surface: #fdfdfd;            /* cards, itens do FAQ */
  --color-surface-dark: #374645;       /* caixas de ícone */
  --color-banner-start: #303d3c;
  --color-banner-end: #344140;
  --color-button-dark: #384443;
  --color-button-login: #1b3434;
  --color-button-light: #eeeeee;
  --color-text-primary: #374645;
  --color-text-body: #4d4d4d;
  --color-text-secondary: #a0b5b3;
  --color-text-footer: #c7cfce;
  --color-text-button-light: #3b4b4a;
  --color-white: #ffffff;
  --color-online: #008c1a;
  --color-star: #fbc103;
  --color-border: rgba(255, 255, 255, 0.3);
  --color-divider: #485150;

  --font-family: 'Poppins', sans-serif;
  --nav-fixed-top: 20px;           /* distância do menu fixo ao topo */
  --site-scale: 0.7;               /* escala global no desktop (1 = 100% do layout) */
  /* nunca menor que o layout (1667px); em telas largas cresce até 72% da largura */
  --container-width: max(1667px, 72%);
  --gutter: 120px;
  /* borda única do conteúdo: no desktop o contêiner ocupa 7px além do layout de cada lado,
     a mesma largura do menu — títulos, textos e caixas de todas as páginas começam na borda do menu */
  --container-edge: 7px;
  /* Posição e largura reais do contêiner (resolvidas em elementos de largura total) */
}

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

html {
  scroll-behavior: smooth;
  /* âncoras não ficam escondidas atrás do menu fixo */
  scroll-padding-top: 190px;
}

/* Escala global do layout no desktop. Tablet e mobile têm tamanhos próprios
   em responsive.css e não recebem a escala. */
@media (min-width: 1201px) {
  html {
    zoom: var(--site-scale);
  }
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--color-text-body);
  background: var(--color-background-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

address {
  font-style: normal;
}

.container {
  width: min(calc(var(--container-width) + 2 * var(--container-edge)), calc(100% - 2 * var(--gutter) + 2 * var(--container-edge)));
  margin-left: auto;
  margin-right: auto;
}

.br-desktop {
  display: inline;
}

/* Ícones originais (PNG preto, fundo transparente) aplicados como máscara
   para receber a cor exata do layout. */
.icon {
  display: block;
  background-color: var(--color-secondary);
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}

.icon--usuario { --icon: url('../assets/icons/usuario.png'); }
.icon--pagamento { --icon: url('../assets/icons/pagamento.png'); }
.icon--certidao-recebida { --icon: url('../assets/icons/certidao-recebida.png'); }
.icon--nascimento { --icon: url('../assets/icons/nascimento.png'); }
.icon--casamento { --icon: url('../assets/icons/casamento.png'); }
.icon--obito { --icon: url('../assets/icons/obito.png'); }
.icon--notas { --icon: url('../assets/icons/notas.png'); }
.icon--whatsapp { --icon: url('../assets/icons/whatsapp.svg'); }
.icon--instagram { --icon: url('../assets/icons/instagram.svg'); }
.icon--facebook { --icon: url('../assets/icons/facebook.svg'); }
.icon--linkedin { --icon: url('../assets/icons/linkedin.svg'); }
.icon--x { --icon: url('../assets/icons/x.svg'); }
.icon--tiktok { --icon: url('../assets/icons/tiktok.svg'); }
.icon--threads { --icon: url('../assets/icons/threads.svg'); }
.icon--star { --icon: url('../assets/icons/star.svg'); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  transition: filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--outline {
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
}

.btn--dark {
  background: var(--color-button-dark);
  color: var(--color-white);
}

.btn--light {
  background: var(--color-button-light);
  color: var(--color-text-button-light);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 820px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 1150px 900px at 100% 0%, #305551 0%, rgba(48, 85, 81, 0.55) 40%, rgba(26, 35, 35, 0) 100%),
    var(--color-background-dark);
}

.hero__inner {
  position: relative;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 34px;
  padding-top: 33px;
  margin-right: -10px;
}

.topbar__link {
  font-size: 20px;
  letter-spacing: 0.9px;
  line-height: 28px;
  text-transform: uppercase;
  color: var(--color-white);
}

.navbar-slot {
  height: 153px;
  margin-top: 19px;
}

.navbar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 153px;
  /* mesma largura do contêiner (que já inclui a borda do menu) */
  width: 100%;
  padding: 0 66px 0 67px;
  border: 1.5px solid var(--color-border);
  border-radius: 40px;
  /* efeito vidro */
  background: rgba(26, 35, 35, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* menu fixo ao rolar: mesma largura do contêiner, colado ao topo */
.navbar.is-fixed {
  position: fixed;
  top: var(--nav-fixed-top);
  left: 50%;
  width: min(calc(var(--container-width) + 2 * var(--container-edge)), calc(100% - 2 * var(--gutter) + 2 * var(--container-edge)));
  margin-left: 0;
  transform: translateX(-50%);
  background: rgba(26, 35, 35, 0.74);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.navbar__logo img {
  width: 215px;
  height: auto;
}

.navbar__toggle {
  display: none;
}

.navbar__menu {
  display: flex;
  align-items: center;
  flex: 1;
}

.navbar__list {
  display: flex;
  gap: 49px;
  margin-left: 111px;
}

.navbar__link {
  position: relative;
  white-space: nowrap;
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 600;
  line-height: 28px;
  text-transform: uppercase;
  color: var(--color-white);
  transition: color 0.25s ease;
}

/* hover: cor de destaque */
.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--color-secondary);
}

.btn--login {
  margin-left: auto;
  width: 332px;
  height: 60px;
  font-size: 20px;
  letter-spacing: 0.9px;
  background: var(--color-button-login);
  color: var(--color-white);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 168px;
}

.hero__title {
  font-size: 74px;
  font-weight: 600;
  line-height: 88px;
  text-transform: uppercase;
  color: var(--color-white);
}

.hero__actions {
  display: flex;
  gap: 45px;
  margin-top: 40px;
}

.hero__actions .btn {
  height: 68px;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.btn--hero-primary {
  width: 410px;
}

.btn--outline {
  width: 397px;
}

.hero__image {
  position: absolute;
  z-index: 1;
  top: 93px;
  /* presa à borda direita do contêiner, passando 106px dela como no layout */
  right: -106px;
  width: 831px;
  height: auto;
}

/* =========================================================
   COMO FUNCIONA
   ========================================================= */
.steps {
  height: 260px;
  background: linear-gradient(90deg, #0d1819 0%, #101c1c 100%);
}

.steps__list {
  display: grid;
  grid-template-columns: 34.43% 40.73% 1fr;
  height: 100%;
  padding-top: 78px;
}

.step {
  display: flex;
  gap: 17px;
}

.step--3 {
  margin-right: -40px;
}

.step__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 69px;
  height: 66px;
  margin-top: 12px;
  border-radius: 6px;
  background: var(--color-surface-dark);
}

.step__icon .icon {
  width: 34px;
  height: 34px;
  background-color: var(--color-secondary);
}

.step__title {
  font-size: 24px;
  letter-spacing: 0.6px;
  font-weight: 600;
  line-height: 32px;
  text-transform: uppercase;
  color: var(--color-white);
}

.step__text {
  margin-top: 2px;
  font-size: 22px;
  line-height: 26px;
  color: var(--color-text-secondary);
}

.step--1 .step__text { max-width: 345px; }
.step--2 .step__text { max-width: 410px; }
.step--3 .step__text { max-width: 360px; }

/* =========================================================
   CERTIDÕES
   ========================================================= */
.certificates {
  padding-top: 112px;
  padding-bottom: 90px;
  background: var(--color-background-light);
}

.section-title {
  font-size: 50px;
  font-weight: 600;
  line-height: 62px;
  text-transform: uppercase;
  color: var(--color-primary-title);
}

.certificates__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 54px;
}

.cert-card {
  position: relative;
  display: block;
  height: 234px;
  padding: 40px 32px 0 38px;
  border-radius: 24px;
  background: var(--color-surface);
  transition: transform 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-2px);
}

.cert-card__icon {
  display: grid;
  place-items: center;
  width: 71px;
  height: 67px;
  margin-left: 2px;
  border-radius: 6px;
  background: var(--color-surface-dark);
}

.cert-card__icon .icon {
  width: 38px;
  height: 38px;
}

.cert-card__badge {
  position: absolute;
  top: 40px;
  right: 32px;
  width: 116px;
  height: 24px;
  border-radius: 3px;
  background: var(--color-online);
  font-size: 15px;
  line-height: 24px;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-white);
}

.cert-card__title {
  margin-top: 23px;
  font-size: 23px;
  letter-spacing: 0.4px;
  font-weight: 600;
  line-height: 32px;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.cert-card__text {
  margin-top: 3px;
  font-size: 21px;
  line-height: 30px;
  color: var(--color-text-body);
}

.presential {
  position: relative;
  display: flex;
  align-items: center;
  height: 196px;
  margin-top: 68px;
  padding-left: 82px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--color-banner-start) 0%, var(--color-banner-end) 100%);
}

.presential__text {
  margin-top: -6px;
  font-size: 25px;
  line-height: 30px;
  color: var(--color-white);
}

.presential__text strong {
  font-weight: 600;
  color: var(--color-secondary);
}

.presential__link {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.presential__image {
  --presential-image-width: 382px;
  position: absolute;
  right: 121px;
  /* o arquivo (1092×700) tem 28px transparentes embaixo: desce o mesmo tanto para a foto
     encostar na base do retângulo verde */
  bottom: calc(var(--presential-image-width) * -28 / 1092);
  width: var(--presential-image-width);
  height: auto;
}

/* =========================================================
   INSTITUCIONAL
   ========================================================= */
.about {
  padding-top: 105px;
  padding-bottom: 114px;
  background: var(--color-background-dark);
}

.about__grid {
  display: flex;
  align-items: flex-start;
}

.about__image {
  flex: none;
  width: 699px;
  height: 755px;
  border-radius: 30px;
  object-fit: cover;
  object-position: center 76%;
}

.about__content {
  /* 118px no layout; em contêineres mais largos o texto se centraliza no espaço livre */
  margin-left: max(118px, calc((100% - 699px - 760px) / 2));
  padding-top: 112px;
}

.about__title {
  font-size: 68px;
  font-weight: 600;
  line-height: 82px;
  text-transform: uppercase;
  color: var(--color-white);
}

.about__text {
  max-width: 780px;
  margin-top: 28px;
  font-size: 23px;
  line-height: 28px;
  color: var(--color-text-secondary);
}

.btn--about {
  width: 371px;
  height: 68px;
  margin-top: 38px;
  font-size: 20px;
}

/* ---------- Depoimentos ---------- */
.testimonials {
  --marquee-gap: 46px;
  --marquee-fade: 18%;
  margin-top: 79px;
  overflow: hidden;
  /* bordas esmaecidas dos dois lados */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent 100%);
}

/* faixa contínua: a lista é duplicada no JS e desliza metade do comprimento */
.testimonials__track {
  display: flex;
  gap: var(--marquee-gap);
  width: max-content;
}

.testimonials.is-marquee .testimonials__track {
  animation: testimonials-marquee var(--marquee-duration, 60s) linear infinite;
}

.testimonials.is-marquee:hover .testimonials__track {
  animation-play-state: paused;
}

@keyframes testimonials-marquee {
  to {
    transform: translateX(calc(-50% - var(--marquee-gap) / 2));
  }
}

.testimonial {
  flex: none;
  width: 526px;
  height: 207px;
  padding: 25px 32px 0 32px;
  border: 2px solid var(--color-border);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.testimonial__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial__avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-white);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-background-dark);
}

.testimonial__name {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  text-transform: uppercase;
  color: var(--color-white);
}

.testimonial__date {
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--color-white);
}

.testimonial__text {
  margin-top: 18px;
  font-size: 14.5px;
  white-space: nowrap;
  line-height: 17.5px;
  color: var(--color-text-secondary);
}

.testimonial__stars {
  display: flex;
  gap: 4.5px;
  margin-top: 17px;
}

.testimonial__stars .icon {
  width: 16px;
  height: 16px;
  background-color: var(--color-star);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  padding-top: 116px;
  padding-bottom: 112px;
  background: var(--color-background-light);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 54px;
}

.faq-item {
  border-radius: 20px;
  background: var(--color-surface);
}

.faq-item__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 96px;
  padding: 0 64px 0 58px;
  text-align: left;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.faq-item__icon {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  margin-left: 24px;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--color-text-primary);
  border-radius: 1px;
}

.faq-item__icon::before {
  top: 5px;
  left: 0;
  width: 12px;
  height: 2.4px;
}

.faq-item__icon::after {
  top: 0;
  left: 4.8px;
  width: 2.4px;
  height: 12px;
  transition: transform 0.2s ease;
}

.faq-item__button[aria-expanded='true'] .faq-item__icon::after {
  transform: scaleY(0);
}

.faq-item__panel {
  padding: 0 64px 32px 58px;
  font-size: 20px;
  line-height: 30px;
  color: var(--color-text-body);
}

/* respostas das perguntas em destaque (painel) */
.faq-item__panel p + p,
.faq-item__panel p + .faq-item__list,
.faq-item__list + p {
  margin-top: 12px;
}

.faq-item__list {
  padding-left: 22px;
  list-style: disc;
}

.faq-item__action {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
}

.btn--faq {
  width: 371px;
  height: 67px;
  margin-top: 58px;
  font-size: 19px;
  letter-spacing: 0.6px;
}

.help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 205px;
  margin-top: 79px;
  padding: 0 54px 0 49px;
  border-radius: 15px;
  background: linear-gradient(110deg, #344140 0%, #344140 60%, #394544 100%);
}

.help__title {
  font-size: 39px;
  font-weight: 600;
  line-height: 48px;
  text-transform: uppercase;
  color: var(--color-white);
}

.help__text {
  margin-top: 0;
  font-size: 24px;
  line-height: 29px;
  color: var(--color-white);
}

.help__text strong {
  font-weight: 600;
  color: var(--color-secondary);
}

.btn--whatsapp {
  gap: 12px;
  width: 414px;
  height: 67px;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.btn--whatsapp .icon {
  width: 26px;
  height: 26px;
  background-color: currentColor;
}

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer {
  padding-top: 92px;
  padding-bottom: 70px;
  background: var(--color-background-dark);
}

.footer__container {
  padding-left: 8px;
}

.footer__brand {
  /* a linha funciona como janela: as palavras são cortadas ao subir/entrar */
  overflow: hidden;
  white-space: nowrap;
  font-size: 120px;
  font-weight: 600;
  line-height: 130px;
  text-align: center;
  text-transform: uppercase;
  color: #9db8b6;
}

.footer__brand-word {
  display: inline-block;
  will-change: transform;
}

/* saída: sobe e some pelo topo (aceleração) */
.footer__brand-word.is-leaving {
  transform: translateY(-110%);
  transition: transform 0.18s cubic-bezier(0.55, 0, 1, 0.45);
}

/* entrada: começa abaixo da linha e sobe até o lugar (desaceleração) */
.footer__brand-word.is-entering {
  transform: translateY(110%);
  transition: none;
}

.footer__brand-word.is-entered {
  transform: translateY(0);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 678px 409px 1fr;
  margin-top: 104px;
}

.footer__logo {
  width: 220px;
  height: auto;
}

.footer__lgpd {
  max-width: 450px;
  margin-top: 40px;
  font-size: 21px;
  line-height: 26px;
  color: var(--color-text-footer);
}

.footer__highlight {
  color: var(--color-secondary);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  margin-left: 14px;
}

.footer__social .icon {
  width: 32px;
  height: 32px;
  background-color: var(--color-text-footer);
  transition: background-color 0.2s ease;
}

.footer__social a:hover .icon {
  background-color: var(--color-white);
}

.footer__heading {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 26px;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer__links,
.footer__contact {
  margin-top: 12px;
  font-size: 21px;
  line-height: 37.5px;
  color: var(--color-text-footer);
}

.footer__contact p {
  white-space: nowrap;
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--color-white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 36px;
  margin-right: -8px;
  border-top: 2px solid var(--color-divider);
  font-size: 21px;
  line-height: 26px;
  color: var(--color-text-footer);
}

/* Desktop: links do menu centralizados na página (logo à esquerda, botão à direita) */
@media (min-width: 1201px) {
  .navbar__list {
    position: absolute;
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
  }
}

/* Notebooks (1331–1600px): links um pouco mais próximos para respirar ao lado do botão */
@media (min-width: 1331px) and (max-width: 1600px) {
  .navbar__list {
    gap: 34px;
  }
}
