/* Duda Mabê · Treinamentos In Company */

:root {
  --navy: #141B34;
  --navy-2: #1E2748;
  --gold: #B8935A;
  --gold-soft: #D9C29A;
  --gold-text: #7E602E; /* dourado para texto pequeno em fundo claro (contraste 5:1) */
  --sand: #B9AEA2;
  --cream: #F4EFE9;
  --ink: #111111;
  --white: #FFFFFF;

  --text: #1C1F2A;
  --muted: #5B5F6B;
  --on-dark: #E9E5DF;
  --on-dark-muted: #A9A6A1;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 72px;
  --radius: 4px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw + .5rem, 5rem); }
h2 { font-size: clamp(2rem, 3.4vw + .6rem, 3.4rem); }
h3 { font-size: clamp(1.7rem, 1.6vw + 1rem, 2.3rem); }

section { scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.dark :focus-visible, .navy :focus-visible, .band :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-soft); }

/* ---------- Tipos auxiliares ---------- */

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.4em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow-gold { color: var(--gold-soft); }

.lead { font-size: 1.08em; color: var(--muted); max-width: 36em; }
.big { font-size: clamp(1.1rem, .6vw + .95rem, 1.32rem); line-height: 1.6; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 .86rem/1.2 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 20px; height: 20px; flex: none; }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(20, 27, 52, .35); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: .76rem; }
.btn-lg { min-height: 60px; padding: 18px 34px; font-size: .92rem; }

.link-gold {
  display: inline-block;
  margin-top: .6em;
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 194, 154, .4);
  padding-bottom: 2px;
}
.link-gold:hover { border-color: var(--gold-soft); }

/* ---------- Cabeçalho ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(244, 239, 233, .0);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244, 239, 233, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(20, 27, 52, .08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--navy);
  line-height: 1;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand-sub {
  margin-top: 5px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a:not(.btn) {
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--navy);
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--navy);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 899px) {
  .js .nav-toggle { display: flex; }
  .nav { flex-wrap: wrap; gap: 8px 20px; }
  .js .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--cream);
    box-shadow: 0 18px 30px -18px rgba(20, 27, 52, .25);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav a:not(.btn) {
    padding: 16px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(20, 27, 52, .08);
  }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 20px; }
  /* Menu aberto: fundo sólido no cabeçalho */
  .site-header:has(.nav.is-open) { background: var(--cream); }
}

/* ---------- Abertura ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(24px, 5vw, 64px));
  background:
    radial-gradient(120% 80% at 85% 20%, rgba(185, 174, 162, .55), transparent 60%),
    var(--cream);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: end;
}
.hero-text { padding-bottom: clamp(8px, 4vw, 96px); }
.hero h1 { color: var(--navy); margin-bottom: .45em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }

.hero-media {
  position: relative;
  margin-inline: calc(var(--gutter) * -1);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 1600 / 1486;
  object-fit: cover;
}

/* Celular: rosto da Duda primeiro, acima da dobra, com fusão suave no texto */
@media (max-width: 899px) {
  .hero { padding-top: var(--header-h); }
  .hero-grid { gap: 0; }
  .hero-media { order: -1; }
  .hero-media img {
    aspect-ratio: 1 / 0.82;
    object-position: 50% 18%;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
  .hero-text { margin-top: -28px; position: relative; padding-bottom: 56px; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-media { margin-inline: 0 calc(var(--gutter) * -1); }
  .hero-media img {
    aspect-ratio: 4 / 4.6;
    object-position: 50% 20%;
    -webkit-mask-image: linear-gradient(to left, #000 72%, transparent), linear-gradient(to bottom, transparent, #000 22%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to left, #000 72%, transparent), linear-gradient(to bottom, transparent, #000 22%);
    mask-composite: intersect;
  }
}

/* ---------- Seções ---------- */

.section { padding-block: var(--section-y); }
.section.dark { background: var(--ink); color: var(--on-dark); }
.section.navy { background: var(--navy-2); color: var(--on-dark); }
.section.cream { background: var(--cream); }
.section.dark h2, .section.navy h2 { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { color: inherit; }
.section.cream .section-head h2 { color: var(--navy); }

.split {
  display: grid;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.split-text p:not(.eyebrow) { color: var(--on-dark-muted); }
.split-text .big { color: var(--on-dark); }
@media (min-width: 900px) {
  .split { grid-template-columns: 0.9fr 1fr; }
  .split-reverse .split-media { order: 2; }
}

/* ---------- Foto P&B interativa ---------- */

.bw {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.bw img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.02);
  transition: filter .9s var(--ease), transform 1.2s var(--ease);
}
.bw:hover img,
.bw.is-color img {
  filter: grayscale(0) contrast(1);
  transform: scale(1);
}
.bw::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(217, 194, 154, .35);
  pointer-events: none;
}

/* ---------- Faixa ---------- */

.band {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(56px, 8vw, 96px);
  text-align: center;
}
.band-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw + .5rem, 4.4rem);
  line-height: 1;
  color: var(--gold-soft);
  margin-bottom: .2em;
}
.band-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1.8vw + .7rem, 2rem);
  color: var(--on-dark);
  margin-bottom: 1.4em;
}

/* ---------- Treinamentos ---------- */

.trainings {
  display: grid;
  gap: 24px;
}
@media (min-width: 1000px) {
  .trainings { grid-template-columns: repeat(3, 1fr); }
}

.training {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 24px 50px -36px rgba(20, 27, 52, .45);
}
.training h3 { color: var(--navy); margin-bottom: .2em; }
.training-format {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.2em;
}
.training-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.35;
  color: var(--muted);
}
.training-intro { font-size: .95rem; color: var(--muted); }
.training-label {
  margin-top: .6em;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}

.tags {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 7px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--navy);
}

.topics {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  font-size: .94rem;
  color: var(--muted);
}
.topics li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-top: 1px solid rgba(20, 27, 52, .08);
}
.topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.topics strong { color: var(--navy); font-weight: 600; }
.training .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Depoimento ---------- */

.testimonial {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .testimonial { grid-template-columns: minmax(280px, 400px) 1fr; gap: 72px; }
}

.video-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.video-card video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

.video-play { display: none; }
.js .video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, .55), rgba(17, 17, 17, .05) 55%);
  cursor: pointer;
}
.js .video-play[hidden] { display: none; }
.video-play-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.video-play-icon::after {
  content: "";
  position: absolute;
  left: 34px; top: 26px;
  border-style: solid;
  border-width: 16px 0 16px 24px;
  border-color: transparent transparent transparent var(--ink);
}
.video-play:hover .video-play-icon { transform: scale(1.06); background: var(--gold-soft); }

.testimonial-side { text-align: center; }
.testimonial-photo {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 32px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.testimonial-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 12%; }
.testimonial-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(to top, rgba(20, 27, 52, .85), transparent);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
  text-align: left;
}
.testimonial-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 2.4vw + 1rem, 2.8rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: .1em;
}
.testimonial-role {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.testimonial-note { color: var(--on-dark-muted); max-width: 26em; margin-inline: auto; }

@media (min-width: 900px) {
  .testimonial-side { text-align: left; }
  .testimonial-photo { margin-inline: 0; }
  .testimonial-note { margin-inline: 0; }
}

/* ---------- Projetos ---------- */

.project {
  display: grid;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(20, 27, 52, .45);
}
.project-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 55%; }
.project-text { padding: clamp(28px, 4vw, 56px); align-self: center; }
.project-text h3 { color: var(--navy); }
.project-text p:not(.project-place) { color: var(--muted); }
.project-place {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
@media (min-width: 900px) {
  .project { grid-template-columns: 1.15fr 1fr; }
  .project-media img { height: 100%; aspect-ratio: 4 / 4.4; }
}

/* ---------- Contato ---------- */

.contact {
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(184, 147, 90, .18), transparent 60%),
    var(--navy);
  color: var(--on-dark);
  text-align: center;
}
.contact-inner { max-width: 820px; }
.contact .eyebrow { justify-content: center; }
.contact h2 { color: var(--white); }
.contact .big { color: var(--on-dark-muted); margin-bottom: 1.8em; }
.contact-alt { margin-top: 1.6em; font-size: .92rem; color: var(--on-dark-muted); }
.contact-alt a { color: var(--gold-soft); }

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding-block: 48px 112px;
  font-size: .88rem;
}
.footer-inner {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}
.brand-footer { color: var(--white); align-items: center; }
.brand-footer .brand-sub { color: var(--gold); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold-soft); }
.copy { margin: 0; font-size: .8rem; }

@media (min-width: 900px) {
  .site-footer { padding-bottom: 48px; }
  .footer-inner { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; }
  .brand-footer { align-items: flex-start; }
  .footer-links { justify-content: center; justify-self: center; }
}

/* ---------- WhatsApp flutuante ---------- */

.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }
.wa-float.is-hidden, .wa-float.is-hidden:hover { opacity: 0; transform: scale(.6); pointer-events: none; }

/* Contato final no celular: espaço para o botão flutuante não cobrir */
@media (max-width: 899px) {
  .contact { padding-bottom: calc(var(--section-y) + 40px); }
}

/* ---------- Animação de entrada (só com JS) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .wa-float:hover { transform: none; }
}
