/* =========================================================
   1. TOKENS DE DESIGN
   Altere aqui para trocar a identidade visual inteira.
   ========================================================= */
:root {
  --navy:       #101d2b;
  --navy-soft:  #1a2c40;
  --gold:       #b99a5b;
  --gold-soft:  #d9c59a;
  --white:      #ffffff;
  --grey-100:   #f4f5f6;
  --grey-200:   #e3e6e9;
  --grey-800:   #343a40;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1120px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
}

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden;
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
  color: var(--grey-800); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; color: var(--navy); }
p, dl, dd, dt { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.005em; }
.section-lead { margin-top: 1rem; max-width: 34rem; }

/* =========================================================
   3. BOTÕES
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .85rem 1.75rem;
  border: 1.5px solid transparent; border-radius: 2px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--outline { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); }

/* =========================================================
   4. HERO
   ========================================================= */
.hero {
  position: relative; overflow: clip;
  min-height: 100svh; display: flex; align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(135deg, var(--navy) 55%, var(--navy-soft) 100%);
  color: var(--white);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.hero__brand {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--gold);
  margin-bottom: 1.75rem;
}
.hero__brand::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.hero__title { color: var(--white); font-size: clamp(2.5rem, 5.6vw, 4.4rem); max-width: 17ch; }
.hero__text { margin-top: 1.5rem; max-width: 33rem; color: rgba(255,255,255,.82); font-size: 1.125rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.hero__note { margin-top: 2rem; font-size: .875rem; color: rgba(255,255,255,.62); }

/* Foto com moldura fina dourada deslocada: o elemento de destaque da página */
.hero__figure { margin: 0; }
.photo { position: relative; width: min(100%, 420px); margin-left: auto; margin-right: 18px; }
.photo::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--gold); transform: translate(18px, 18px);
}
.photo img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  background: linear-gradient(160deg, var(--navy-soft), var(--gold)); /* aparece se a imagem não carregar */
}
.photo { background: linear-gradient(160deg, var(--navy-soft), var(--gold)); aspect-ratio: 4 / 5; }
.photo img { position: absolute; inset: 0; height: 100%; }

/* Sequência de entrada do hero */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__brand, .hero__title, .hero__text, .hero__actions, .hero__note, .hero__figure { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__title { animation-delay: .1s; }
.hero__text { animation-delay: .2s; }
.hero__actions { animation-delay: .3s; }
.hero__note { animation-delay: .38s; }
.hero__figure { animation-delay: .25s; }

/* =========================================================
   5. SOBRE
   ========================================================= */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.about__body p + p { margin-top: 1.1rem; }
.principles { margin-top: 2.25rem; display: grid; gap: 1.25rem; }
.principles li { padding-left: 1.4rem; border-left: 2px solid var(--gold); }
.principles strong { color: var(--navy); font-weight: 700; }

/* =========================================================
   6. ÁREAS DE ATUAÇÃO
   ========================================================= */
.areas { background: var(--grey-100); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative; padding: 2rem 1.75rem 2.25rem;
  background: var(--white); border: 1px solid var(--grey-200);
  transition: transform .3s ease, border-color .3s ease;
}
/* Linha dourada que cresce ao passar o mouse ou focar */
.card::before {
  content: ""; position: absolute; left: -1px; top: -1px; height: 2px; width: 0;
  background: var(--gold); transition: width .4s ease;
}
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: var(--gold-soft); }
.card:hover::before, .card:focus-within::before { width: calc(100% + 2px); }
.card__icon { width: 38px; height: 38px; margin-bottom: 1.5rem; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.55rem; margin-bottom: .6rem; }
.card__text { font-size: 1rem; }

/* =========================================================
   7. FORMA DE ATUAÇÃO
   ========================================================= */
.method { background: var(--navy); color: rgba(255,255,255,.82); }
.method .section-title { color: var(--white); }
.method__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.method__item { padding-top: 1.75rem; border-top: 1px solid rgba(185,154,91,.55); }
.method__num { display: block; font-family: var(--font-display); font-size: 4rem; line-height: 1; font-weight: 500; color: var(--gold); margin-bottom: 1rem; }
.method__title { color: var(--white); font-size: 1.75rem; margin-bottom: .5rem; }

/* =========================================================
   8. EQUIPE
   ========================================================= */
.team { background: var(--white); }
.team__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: clamp(2rem, 6vw, 5rem); }
.member__portrait {
  aspect-ratio: 4 / 5; margin-bottom: 1.5rem; overflow: hidden;
  background: var(--navy); border: 1px solid var(--gold);
}
.member__portrait--alt { background: var(--navy-soft); }
.member__portrait svg { width: 100%; height: 100%; fill: rgba(185,154,91,.35); }
.member__name { font-size: 1.7rem; }
.member__reg { margin-top: .25rem; color: var(--grey-800); font-weight: 500; }
.demo-note { margin-top: 2.5rem; font-size: .95rem; padding-left: 1.1rem; border-left: 2px solid var(--gold); max-width: 36rem; }

/* =========================================================
   9. CONTATO
   ========================================================= */
.contact { background: var(--grey-100); }
.contact__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.contact__text { margin: 1.25rem 0 2rem; max-width: 30rem; }
.contact__list { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); border-top: 2px solid var(--gold); }
.contact__list dt { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.contact__list a { text-underline-offset: 3px; }
.fict { display: inline-block; font-size: .875rem; color: #5b636b; }

/* =========================================================
   10. RODAPÉ
   ========================================================= */
.footer { background: var(--navy); color: rgba(255,255,255,.78); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .975rem; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer__brand { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--white); }
.footer__text { margin-top: .4rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer__links a { text-decoration: none; padding-block: .4rem; display: inline-block; }
.footer__links a:hover { color: var(--gold-soft); }
.footer__legal { margin-top: 1.75rem; display: grid; gap: .8rem; font-size: .9rem; color: rgba(255,255,255,.7); max-width: 52rem; }
.footer__legal strong { color: var(--white); }
.privacy summary { cursor: pointer; color: var(--gold-soft); width: fit-content; padding-block: .25rem; }
.privacy p { margin-top: .5rem; }
.footer__copy { margin-top: .5rem; color: rgba(255,255,255,.58); }

/* =========================================================
   11. BOTÃO FLUTUANTE DE WHATSAPP
   ========================================================= */
.wa-float {
  position: fixed; z-index: 50;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold); border: 1.5px solid var(--gold);
  box-shadow: 0 8px 24px rgba(16,29,43,.35);
  transition: transform .25s ease, opacity .25s ease, background-color .25s ease;
}
.wa-float:hover { transform: scale(1.06); background: var(--navy-soft); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* =========================================================
   12. ANIMAÇÃO DE ENTRADA (só com JavaScript ativo)
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(3n+2), .js .method__list .reveal:nth-child(2), .js .team__grid .reveal:nth-child(2) { transition-delay: .1s; }
.js .cards .reveal:nth-child(3n+3), .js .method__list .reveal:nth-child(3) { transition-delay: .2s; }
/* Os cartões usam transform no hover: mantém a resposta imediata depois de revelados */
.js .card.reveal.is-visible { transition: transform .3s ease, border-color .3s ease; }

/* =========================================================
   13. RESPONSIVO
   ========================================================= */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .method__list { grid-template-columns: 1fr; gap: 2rem; }
  .method__item { display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1rem; }
  .method__num { grid-row: span 2; font-size: 3.2rem; margin: 0; }
}
@media (max-width: 820px) {
  .hero { min-height: auto; padding-block: 3.5rem 4.5rem; }
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__title { max-width: 18ch; }
  /* Mobile: foto em proporção mais larga, sem cortes agressivos */
  .photo { margin-left: 0; width: calc(100% - 18px); max-width: 480px; aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .hero__actions .btn, .contact .btn { width: 100%; }
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .member__name { font-size: 1.3rem; }
  .footer__top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
