/* =============================================================
   Conecta Assessoria — base styles
   Mobile-first. Design tokens → reset → tipografia → layout.
   Cores translúcidas em rgba() (suporte universal, sem color-mix).
============================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy:      #0D1B2A;
  --navy-deep: #08111c;
  --gold:      #B8952A;       /* bordas, linhas, acentos decorativos */
  --gold-deep: #8a6a16;       /* texto dourado sobre fundo claro (AA) */
  --gold-soft: #c9a948;       /* texto dourado sobre fundo escuro */
  --gray:      #555555;
  --offwhite:  #F5F5F0;
  --white:     #FFFFFF;

  --font-title: "Montserrat", system-ui, sans-serif;
  --font-body:  "Cormorant Garamond", Georgia, serif;

  --container: 1140px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4rem, 10vw, 8rem);

  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* guarda contra overflow de elementos decorativos */
}

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

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

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:where(a, button):focus-visible,
.btn:focus-visible,
.nav__toggle:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
}

em { font-style: italic; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-head__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.section-head__eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2px;
  background: var(--gold);
}
.section-head--light .section-head__eyebrow::before { background: var(--gold-soft); }

.section-head__title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
}

.section-head--light .section-head__title { color: var(--white); }
.section-head--light .section-head__eyebrow { color: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}

.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { transform: scale(1.03); opacity: 0.95; }

.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { transform: scale(1.03); opacity: 0.8; }

/* =============================================================
   1 · NAV
============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow 0.3s var(--ease);
}

.nav--scrolled { box-shadow: 0 1px 0 rgba(184, 149, 42, 0.35); }

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

/* Logo: monograma + wordmark, ambos recortados da marca real (transparentes) */
.nav__logo { display: flex; align-items: center; gap: 0.55rem; }
.nav__logo-img { height: 42px; width: auto; }
.nav__logo-word { height: 34px; width: auto; }

.nav__links { display: none; align-items: center; gap: 2rem; }
.nav__links a {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--white);
  transition: color 0.2s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--gold-soft); }
.nav__cta {
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.5rem 1.1rem;
  color: var(--gold-soft) !important;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__cta:hover { background: var(--gold); color: var(--navy) !important; }

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 var(--gutter);
  background: var(--navy);
  /* Fechado: colapsado e fora da árvore de acessibilidade. */
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 0.42s var(--ease), opacity 0.3s var(--ease),
              padding 0.42s var(--ease), visibility 0s linear 0.42s;
}
.nav__mobile.is-open {
  max-height: 360px;
  opacity: 1;
  visibility: visible;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease),
              padding 0.45s var(--ease), visibility 0s;
}
.nav__mobile a {
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--white);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  /* Stagger: cada link entra deslizando quando o menu abre. */
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.nav__mobile.is-open a { transform: none; opacity: 1; }
.nav__mobile.is-open a:nth-child(1) { transition-delay: 0.08s; }
.nav__mobile.is-open a:nth-child(2) { transition-delay: 0.14s; }
.nav__mobile.is-open a:nth-child(3) { transition-delay: 0.20s; }
.nav__mobile.is-open a:nth-child(4) { transition-delay: 0.26s; }

/* =============================================================
   2 · HERO
============================================================= */
.hero {
  background:
    radial-gradient(circle at 78% 32%, rgba(184, 149, 42, 0.12), transparent 52%),
    var(--navy);
  color: var(--white);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(72px + var(--section-y));
  padding-bottom: var(--section-y);
  position: relative;
  overflow: hidden;
}
.hero__inner { max-width: var(--container); position: relative; z-index: 2; }

/* Arco dourado decorativo (eco do "C" da marca) — só onde há espaço (>=760px) */
.hero__deco {
  display: none;
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: clamp(360px, 48vw, 660px);
  height: auto;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}
.hero__deco-arc { opacity: 0.55; }
.hero__deco-arc--inner { opacity: 0.3; }

/* Kicker — tracinho dourado antes do eyebrow */
.hero__kicker {
  display: inline-block;
  width: 2.25rem;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.75rem;
  transform: translateY(-2px);
}

/* Indicador de scroll */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: none; /* escondido no mobile (sobreporia o conteudo); aparece no desktop */
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
}
.hero__scroll-label {
  font-family: var(--font-title);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-soft), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 40%;
  background: var(--gold-soft);
  animation: scroll-cue 2.2s var(--ease) infinite;
}
@keyframes scroll-cue {
  0%   { transform: translateY(-100%); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(260%); opacity: 0; }
}
.hero__eyebrow {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4rem);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero__title em { color: var(--gold-soft); font-weight: 700; }
.hero__subtitle {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* =============================================================
   3 · PROBLEMA
============================================================= */
.problema { background: var(--offwhite); padding-top: var(--section-y); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.problema__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card-dor {
  min-width: 0;
  position: relative;
  background: var(--white);
  padding: 2.5rem 2rem 2rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
}
.card-dor::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  left: 1.25rem;
  font-family: var(--font-body);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(184, 149, 42, 0.45);
}
.card-dor p {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--navy);
}

.problema__closer {
  max-width: 46ch;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  color: var(--navy);
}
.problema__closer em { color: var(--gold-deep); font-weight: 600; }

/* =============================================================
   4 · SERVIÇOS
============================================================= */
.servicos { background: var(--white); padding-top: var(--section-y); padding-bottom: var(--section-y); }
.servicos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card-servico {
  min-width: 0;
  background: var(--white);
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-left: 3px solid var(--gold);
  padding: 2.25rem;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  will-change: transform;
}
.card-servico:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: #fffdf6;
  box-shadow: 0 16px 36px -14px rgba(13, 27, 42, 0.3);
}
.card-servico__num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 1.1rem;
}
.card-servico__num::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  background: rgba(184, 149, 42, 0.55);
  margin-top: 0.6rem;
}
.card-servico h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.card-servico__lead {
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.85rem;
}
.card-servico p { color: var(--gray); }
.card-servico__list {
  list-style: none;
  padding: 1.25rem 0 0;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(13, 27, 42, 0.08);
  display: grid;
  gap: 0.5rem;
}
.card-servico__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.98rem;
  color: var(--navy);
}
.card-servico__list li::before {
  content: "\2192"; /* → */
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* =============================================================
   5 · PROCESSO
============================================================= */
.processo { background: var(--navy); color: var(--white); padding-top: var(--section-y); padding-bottom: var(--section-y); }
.processo__steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.passo {
  min-width: 0;
  position: relative;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(184, 149, 42, 0.35);
}
.passo::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.passo__kicker {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}
.passo__num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-soft);
  display: block;
  margin-bottom: 0.85rem;
}
.passo h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.passo p { color: rgba(255, 255, 255, 0.78); }

/* =============================================================
   6 · DIFERENCIAIS
============================================================= */
.diferenciais { background: var(--offwhite); padding-top: var(--section-y); padding-bottom: var(--section-y); }
.diferenciais__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.diferencial {
  min-width: 0;
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
}
.diferencial h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.diferencial p { color: var(--gray); }

/* =============================================================
   7 · CTA FINAL
============================================================= */
.cta-final {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 70%, rgba(184, 149, 42, 0.12), transparent 52%),
    var(--navy);
  color: var(--white);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.cta-final__deco {
  display: none;
  position: absolute;
  bottom: -18%;
  right: -6%;
  width: clamp(360px, 42vw, 580px);
  height: auto;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}
.cta-final__inner { position: relative; z-index: 2; max-width: var(--container); }
.cta-final__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.cta-final__eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2px;
  background: var(--gold-soft);
}
.cta-final__title {
  font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3rem);
  margin-bottom: 1.25rem;
  max-width: 20ch;
  text-wrap: balance;
}
.cta-final__text {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.5rem;
  max-width: 54ch;
}
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-final__note {
  margin-top: 1.25rem;
  font-style: italic;
  color: var(--gold-soft);
}

/* =============================================================
   8 · FOOTER
============================================================= */
.footer { background: var(--navy-deep); color: var(--white); padding-top: 4rem; padding-bottom: 1.5rem; }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__logo-img { height: 112px; width: auto; margin: 0 auto 1.5rem; }
.footer__statement {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  max-width: 32ch;
  margin: 0 auto 1.25rem;
}
.footer__statement::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.25rem;
}
.footer__location {
  font-family: var(--font-title);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Colunas de links */
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.25rem 2.75rem;
}
.footer__col { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.footer__col-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.25rem;
}
.footer__col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: var(--gold-soft); }

/* Barra legal */
.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding-top: 1.5rem;
}
.footer__legal p { color: rgba(255, 255, 255, 0.55); font-size: 0.82rem; }
.footer__privacy { color: rgba(255, 255, 255, 0.55); font-size: 0.82rem; transition: color 0.2s var(--ease); }
.footer__privacy:hover { color: var(--gold-soft); }

/* =============================================================
   Responsive — min-width breakpoints
============================================================= */
@media (min-width: 600px) {
  .problema__grid { grid-template-columns: repeat(2, 1fr); }
  .diferenciais__list { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
  .servicos__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__deco, .cta-final__deco { display: block; }

  /* Footer volta ao layout alinhado a esquerda (marca | colunas) */
  .footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    text-align: left;
  }
  .footer__logo-img { margin: 0 0 1.25rem; }
  .footer__statement { margin: 0 0 1.25rem; }
  .footer__statement::before { margin: 0 0 1.25rem; }
  .footer__nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 3rem; }
  .footer__col { align-items: flex-start; }
  .footer__legal { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}

@media (min-width: 800px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none; }
  .hero__scroll { display: flex; }
  .processo__steps { grid-template-columns: repeat(4, 1fr); }
  .processo__steps .passo { padding-right: 1rem; }
}
