/* ==================================================
   1. Variáveis e estilos globais
   ================================================== */
:root {
  --brand-primary: #36566f;
  --brand-primary-dark: #243e54;
  --brand-secondary: #325f33;
  --brand-secondary-dark: #244a29;
  --brand-accent: #f3b71b;
  --surface: #f7f8f5;
  --surface-alt: #eef2ec;
  --ink: #17252e;
  --muted: #66737a;
  --white: #fff;
  --line: rgba(23, 37, 46, 0.12);
  --shadow-subtle: 0 14px 34px rgba(23, 37, 46, 0.07);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --container: 1200px;
  --header-height: 92px;
  --font-display: "Montserrat", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

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

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

p {
  margin-top: 0;
}

.container {
  width: min(calc(100% - clamp(32px, 6vw, 64px)), var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 8vw, var(--space-24)) 0;
}

/* ==================================================
   2. Elementos reutilizáveis
   ================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 16px 24px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand-accent);
  color: var(--ink);
  font: 700 0.78rem/1.15 var(--font-body);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.button:hover {
  background: #ffd05a;
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}

.button-small {
  white-space: nowrap;
}

.button-gold {
  background: var(--brand-accent);
  color: var(--ink);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--brand-secondary);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-light {
  padding: 9px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.eyebrow-gold {
  color: var(--brand-accent);
}

.image-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed rgba(54, 86, 111, 0.45);
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-slot img:not([src]),
.image-slot img[src=""] {
  display: none;
}

.image-slot.has-image,
.image-slot:has(img[src]:not([src=""])) {
  border: 0;
}

.image-slot.has-image > span,
.image-slot:has(img[src]:not([src=""])) > span {
  display: none;
}

.section-heading {
  margin-bottom: 50px;
  text-align: center;
}

.section-heading p {
  color: var(--muted);
}

/* ==================================================
   3. Cabeçalho fixo
   ================================================== */
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-content {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 30px;
}

.logo {
  display: block;
  width: 260px;
  height: 62px;
  flex: none;
  background: transparent;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-whatsapp {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.header-whatsapp > span {
  color: var(--brand-primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

/* ==================================================
   4. Hero
   ================================================== */
.hero {
  overflow: hidden;
  background-color: var(--brand-primary);
}

.hero-background {
  width: 100%;
  aspect-ratio: 2 / 1;
}

.hero-background picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ==================================================
   5. Depoimento
   ================================================== */
.testimony-section {
  background: var(--white);
}

.testimony-content {
  max-width: 1050px;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  padding: 9px 28px;
  border: 1px solid var(--brand-primary);
  border-radius: 999px;
  color: var(--brand-primary);
  font-weight: 600;
}

.testimony-content > h2 {
  margin: 28px 0 42px;
  font-size: clamp(2.5rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.testimony-content > h2 span {
  color: var(--brand-secondary);
}

.testimony-image {
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.testimony-content blockquote {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: -24px auto 0;
  padding: 28px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-subtle);
  text-align: left;
}

.testimony-content blockquote p {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.testimony-content cite {
  color: var(--brand-secondary);
  font-style: normal;
  font-weight: 800;
}

/* ==================================================
   6. Princípios e cards
   ================================================== */
.principles-section {
  background: var(--surface-alt);
}

.principles-heading h2 {
  max-width: none;
  color: var(--brand-primary-dark);
  font-size: clamp(2.5rem, 4vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.principles-heading > p {
  max-width: 850px;
  margin-inline: auto;
  font-size: 1.05rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.principle-card {
  position: relative;
  min-height: 250px;
  padding: 36px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-secondary);
  border-radius: var(--radius-md);
  background: var(--white);
}

.card-number {
  display: flex;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--brand-accent);
  border-radius: 50%;
  color: var(--brand-secondary-dark);
  font-weight: 800;
}

.principle-card h3 {
  max-width: 510px;
  color: var(--brand-primary-dark);
  font-size: 1.4rem;
}

.principle-card p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
}

.principle-cta {
  align-items: stretch;
  justify-content: flex-start;
  border: 0;
  border-top-color: var(--brand-accent);
  background: var(--brand-secondary-dark);
  color: var(--white);
}

.principle-cta > img {
  position: absolute;
  inset: 0;
  object-position: right center;
}

.principle-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 74, 41, 0.98), rgba(36, 74, 41, 0.76) 55%, rgba(36, 74, 41, 0.1));
}

.principle-cta .image-label {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 20px;
  left: 45%;
  color: #d9e3ef;
}

.principle-cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 176px;
  max-width: 58%;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.principle-cta-content h3 {
  color: var(--white);
  font-size: 1.7rem;
}

/* ==================================================
   7. Próximo passo
   ================================================== */
.next-step-section {
  background: var(--white);
}

.next-step-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: 80px;
}

.next-step-copy > h2 {
  max-width: 800px;
  color: var(--brand-primary-dark);
  font-size: clamp(2.6rem, 4.5vw, 3.5rem);
  line-height: 1.05;
}

.next-step-intro {
  max-width: 820px;
  margin-bottom: 55px;
  font-size: 1.08rem;
}

.priorities-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.priorities-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.priorities-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.priorities-list li > span {
  color: var(--brand-accent);
  font-size: 5.8rem;
  font-weight: 800;
  line-height: 0.9;
}

.priorities-list h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.priorities-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.next-step-media {
  height: 100%;
}

.next-step-photo {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  height: 620px;
  border-radius: var(--radius-md);
}

/* ==================================================
   8. Pessoas que construíram a história
   ================================================== */
.voices-section {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-secondary);
  background-image: url("./img/identity-facets.svg");
  background-size: cover;
  color: var(--white);
}

.voices-heading {
  max-width: 900px;
  margin-bottom: 55px;
}

.voices-heading .eyebrow {
  color: var(--brand-accent);
}

.voices-heading h2 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 4.5vw, 3.4rem);
  line-height: 1.05;
}

.voices-heading p {
  max-width: 820px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.voice-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: var(--brand-secondary-dark);
}

.voice-card-featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: stretch;
}

.voice-media {
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.voice-card-featured .voice-media {
  height: auto;
}

.voice-content {
  padding: 28px;
}

.voice-card-featured .voice-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 42px;
}

.voice-type {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.voice-content h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 1.35rem;
}

.voice-card-featured h3 {
  font-size: 2rem;
}

.voice-content p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

/* ==================================================
   9. História
   ================================================== */
.two-columns {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 100px;
}

.intro-section h2,
.build-main h2 {
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.intro-section h2 span {
  color: var(--brand-secondary);
}

.intro-section p,
.build-main p {
  max-width: 570px;
  font-size: 1.03rem;
}

.intro-section small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

.portrait-slot {
  height: 480px;
  border-radius: var(--radius-md);
}

/* ==================================================
   10. Galeria
   ================================================== */
.gallery-section {
  overflow: hidden;
  background: var(--white);
}

.gallery-heading {
  max-width: 820px;
  margin-bottom: 20px;
  text-align: center;
}

.gallery-heading h2 {
  margin-bottom: 18px;
  color: var(--brand-primary-dark);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  line-height: 1.05;
}

.gallery-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.gallery {
  max-width: 1200px;
}

.gallery-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  perspective: 1200px;
  touch-action: pan-y;
}

.gallery-card {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: clamp(220px, 22vw, 300px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transform-style: preserve-3d;
  transition: transform 0.55s ease, opacity 0.4s ease;
}

.gallery-card[data-position="0"] {
  z-index: 5;
  opacity: 1;
  transform: translate(-50%, -50%) translateX(0) rotateY(0) scale(1);
}

.gallery-card[data-position="-1"] {
  z-index: 4;
  opacity: 0.72;
  transform: translate(-50%, -50%) translateX(clamp(-330px, -23vw, -180px)) rotateY(34deg) scale(0.82);
}

.gallery-card[data-position="1"] {
  z-index: 4;
  opacity: 0.72;
  transform: translate(-50%, -50%) translateX(clamp(180px, 23vw, 330px)) rotateY(-34deg) scale(0.82);
}

.gallery-card[data-position="-2"] {
  z-index: 3;
  opacity: 0.28;
  transform: translate(-50%, -50%) translateX(clamp(-570px, -41vw, -330px)) rotateY(48deg) scale(0.66);
}

.gallery-card[data-position="2"] {
  z-index: 3;
  opacity: 0.28;
  transform: translate(-50%, -50%) translateX(clamp(330px, 41vw, 570px)) rotateY(-48deg) scale(0.66);
}

.gallery-card[data-position="hidden"] {
  pointer-events: none;
}

.gallery-card:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 6px;
}

.gallery-image {
  display: flex;
  width: 100%;
  aspect-ratio: 3 / 4;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  box-shadow: 0 20px 55px rgba(23, 37, 46, 0.18);
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-image.is-missing {
  background: linear-gradient(145deg, var(--surface-alt), #e4eae2);
}

.gallery-controls {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.gallery-arrow {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-primary-dark);
  font: 700 1.25rem/1 var(--font-body);
  cursor: pointer;
}

.gallery-arrow:hover:not(:disabled) {
  border-color: var(--brand-primary);
  background: var(--surface-alt);
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-arrow:focus-visible,
.gallery-dot:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}

.gallery-dots {
  display: flex;
  max-width: 220px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 62, 84, 0.26);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.gallery-dot[aria-current="true"] {
  width: 28px;
  background: var(--brand-primary);
}

.gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================================================
   11. Formulário final
   ================================================== */
.build-section {
  background: var(--surface-alt);
}

.build-main {
  display: grid;
  grid-template-columns: 1fr 1fr 0.65fr;
  align-items: center;
  gap: 42px;
}

.build-image {
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: var(--radius-md);
}

.form-card {
  padding: 0 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-subtle);
}

.form-card > h3 {
  margin-inline: -26px;
  padding: 22px 26px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--brand-primary);
  color: var(--white);
  font-size: 0.9rem;
  text-align: center;
  text-transform: uppercase;
}

.gold-form > h3 {
  background: var(--brand-accent);
  color: var(--ink);
}

.form-card label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.form-card input {
  width: 100%;
  margin-top: 5px;
  padding: 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 0.8rem;
}

.form-card .button {
  width: 100%;
}

.form-message {
  margin: 12px 0 0;
  color: var(--brand-secondary);
  font-weight: 700;
}

/* ==================================================
   12. Rodapé
   ================================================== */
.site-footer {
  padding: 42px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.footer-content {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 28px 60px;
}

.footer-logo {
  display: block;
  width: 220px;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  font-style: normal;
  text-align: right;
}

.footer-contact p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-contact strong {
  color: var(--ink);
}

.footer-contact a {
  text-decoration: underline;
  text-decoration-color: rgba(23, 37, 46, 0.35);
  text-underline-offset: 3px;
}

.footer-contact a:hover {
  color: var(--brand-secondary);
}

.footer-logo:focus-visible,
.footer-contact a:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}

.footer-copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

/* ==================================================
   13. Tablet
   ================================================== */
@media (max-width: 1050px) {
  .header-whatsapp {
    gap: 12px;
  }

  .header-whatsapp > span {
    max-width: 210px;
    text-align: right;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .testimony-content > h2,
  .principles-heading h2 {
    font-size: 2.8rem;
  }

  .next-step-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .next-step-photo {
    position: relative;
    top: auto;
    height: 500px;
  }

  .build-main {
    grid-template-columns: 1fr 1fr;
  }

  .voices-grid {
    grid-template-columns: 1fr;
  }

  .voice-card-featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .form-card {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
  }
}

/* ==================================================
   14. Celular
   ================================================== */
@media (max-width: 760px) {
  :root {
    --header-height: 76px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .header-content {
    gap: 12px;
  }

  .logo {
    width: 105px;
    height: 44px;
  }

  .header-whatsapp {
    gap: 8px;
  }

  .header-whatsapp > span {
    max-width: 105px;
    font-size: 0.64rem;
    line-height: 1.15;
  }

  .header-whatsapp .button {
    padding: 11px 10px;
    font-size: 0.58rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .hero-background {
    aspect-ratio: 4 / 5;
  }

  .testimony-content > h2,
  .principles-heading h2,
  .next-step-copy > h2,
  .voices-heading h2 {
    font-size: 2.2rem;
  }

  .voices-heading {
    margin-bottom: 36px;
  }

  .voice-card-featured .voice-content {
    padding: 28px;
  }

  .testimony-image {
    height: auto;
  }

  .testimony-content blockquote {
    margin-top: 18px;
    padding: 22px;
  }

  .principle-card {
    min-height: 0;
    padding: 26px;
  }

  .principle-cta {
    min-height: 300px;
  }

  .principle-cta > img {
    object-position: 70% center;
  }

  .principle-cta-content {
    max-width: 78%;
  }

  .principle-cta-content h3 {
    font-size: 1.45rem;
  }

  .principle-cta-content .button {
    line-height: 1.25;
  }

  .priorities-list li {
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding: 28px 0;
  }

  .priorities-list li > span {
    font-size: 3.2rem;
  }

  .next-step-photo {
    height: 400px;
  }

  .two-columns,
  .build-main {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .intro-section h2,
  .build-main h2 {
    font-size: 2.8rem;
  }

  .portrait-slot {
    height: 360px;
  }

  .gallery-stage {
    min-height: 450px;
  }

  .gallery-card {
    width: 220px;
  }

  .gallery-card[data-position="-1"] {
    opacity: 0.5;
    transform: translate(-50%, -50%) translateX(-165px) rotateY(34deg) scale(0.76);
  }

  .gallery-card[data-position="1"] {
    opacity: 0.5;
    transform: translate(-50%, -50%) translateX(165px) rotateY(-34deg) scale(0.76);
  }

  .gallery-card[data-position="-2"],
  .gallery-card[data-position="2"] {
    opacity: 0;
    pointer-events: none;
  }

  .form-card {
    grid-column: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 26px;
  }

  .footer-contact {
    justify-content: center;
    text-align: center;
  }

  .footer-copyright {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .gallery-card,
  .gallery-dot {
    transition: none;
  }
}
