/* André Azevedo — site one-page
   Paleta: navy/carvão, off-white quente, mostarda #FFC233
   Tipos: Fraunces (títulos) + Outfit (texto e UI) */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0f18;
  --bg-2: #111826;
  --bg-3: #171e2c;
  --ink: #f6f1e8;
  --muted: #c9c2b3;
  --muted-2: #b8b19f;
  --line: rgba(246, 241, 232, 0.12);
  --mustard: #ffc233;
  --mustard-deep: #e8ad1c;
  --mustard-soft: rgba(255, 194, 51, 0.14);
  --whatsapp: #25d366;
  --whatsapp-ink: #07331a;
  --header-h: 4.5rem;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 1.25rem;
  --font-serif: "Fraunces", "Times New Roman", serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  overflow-x: hidden;
}

html.nav-open {
  overflow: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 194, 51, 0.07), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(90, 70, 140, 0.12), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1, h2, h3, .logo-name, .footer-name {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 72;
}

h1 { font-size: clamp(2.15rem, 5.6vw, 4.35rem); font-weight: 500; }
h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; font-weight: 550; }

p { margin: 0 0 1rem; }

:focus-visible {
  outline: 2px solid var(--mustard);
  outline-offset: 3px;
}

::selection {
  background: var(--mustard);
  color: var(--bg);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--mustard);
  color: var(--bg);
  padding: 0.55rem 0.9rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
html.nav-open .site-header {
  background: rgba(11, 15, 24, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 0;
  line-height: 1.1;
}

.logo-name {
  font-size: 1.2rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-role {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mustard);
  font-weight: 500;
  margin-top: 0.18rem;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-list a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 450;
  position: relative;
  transition: color 0.2s;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 1px;
  background: var(--mustard);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--ink);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

html.nav-open .nav-toggle-bar:first-child {
  transform: translateY(0.28rem) rotate(45deg);
}

html.nav-open .nav-toggle-bar:last-child {
  transform: translateY(-0.28rem) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 560;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--mustard);
  color: #16110a;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ffd56a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--mustard);
  color: var(--mustard);
}

.btn-lg {
  min-height: 3.4rem;
  padding: 0.85rem 1.7rem;
  font-size: 1.05rem;
}

.btn-header {
  min-height: 2.55rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.88rem;
}

.btn-header-compact {
  display: none;
}

/* Hero
   ------------------------------------------------------------------ */
.hero {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter) clamp(3.5rem, 8vw, 6.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: calc(100svh - var(--header-h));
}

.kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mustard);
  font-weight: 500;
}

.hero h1 {
  margin: 0 0 1.4rem;
  max-width: 18ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--mustard);
  font-weight: 500;
  white-space: nowrap;
}

.hero-lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hero-photo {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 32rem;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 10% -8% -8% 12%;
  background: var(--mustard-soft);
  border-radius: 2rem;
  z-index: 0;
}

.hero-photo figure {
  margin: 0;
  position: relative;
  z-index: 1;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

/* Sections
   ------------------------------------------------------------------ */
.section {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--gutter);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-intro {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0;
}

.section-cta {
  margin-top: 2.5rem;
}

/* About
   ------------------------------------------------------------------ */
.about {
  padding-top: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-photo figure {
  margin: 0;
}

.about-photo img {
  width: 100%;
  border-radius: 1.5rem;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  object-position: 50% 15%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.about-photo figcaption {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.prose p {
  color: var(--muted);
  font-size: 1.0625rem;
}

.prose p:first-child {
  color: var(--ink);
  font-size: 1.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 28;
  line-height: 1.45;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -0.35em 0 var(--mustard-soft);
}

/* Consulta
   ------------------------------------------------------------------ */
.consulta {
  background:
    linear-gradient(180deg, transparent, var(--bg-2) 8%, var(--bg-2) 92%, transparent);
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.consulta > * {
  width: min(100%, var(--wrap));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.consulta .section-cta {
  padding-bottom: 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
}

.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--mustard);
  margin-bottom: 1rem;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 24;
}

.step h3 {
  margin-bottom: 0.6rem;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Temas
   ------------------------------------------------------------------ */
.themes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.theme {
  grid-column: span 2;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem 1.7rem;
  border-top: 2px solid transparent;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.theme:nth-child(4),
.theme:nth-child(5) {
  grid-column: span 3;
}

.theme:hover {
  border-top-color: var(--mustard);
}

.theme h3 {
  margin-bottom: 0.65rem;
}

.theme p {
  margin: 0;
  color: var(--muted);
}

/* E-books
   ------------------------------------------------------------------ */
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ebook {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.15rem 1.15rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ebook-cover {
  display: block;
  border-radius: 0.7rem;
  overflow: hidden;
  background: #0a0a12;
  margin-bottom: 1.15rem;
  aspect-ratio: 4 / 5;
}

.ebook-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.ebook:hover .ebook-cover img {
  transform: scale(1.03);
}

.ebook-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ebook-body h3 {
  font-size: 1.2rem;
}

.ebook-body p {
  color: var(--muted);
  font-size: 0.98rem;
}

.ebook-meta {
  color: var(--muted-2) !important;
  font-size: 0.9rem !important;
  margin-bottom: 1.1rem !important;
}

.price {
  color: var(--mustard);
  font-weight: 600;
}

.text-link {
  margin-top: auto;
  color: var(--mustard);
  font-weight: 560;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(4px);
}

/* Conteúdo
   ------------------------------------------------------------------ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.video {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.video-thumb {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0a12;
  margin-bottom: 0.9rem;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.video:hover .video-thumb img {
  transform: scale(1.04);
}

.play {
  position: absolute;
  inset: auto auto 0.85rem 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--mustard);
  display: grid;
  place-items: center;
}

.play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #16110a;
  margin-left: 2px;
}

.video-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 0.35rem;
}

.video h3 {
  font-size: 1.1rem;
  margin: 0;
}

.content-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.content-card {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s;
}

.content-card:hover,
.content-card:focus-visible {
  border-color: var(--mustard);
}

.content-card-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mustard);
}

.content-card strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.content-card span:last-child {
  color: var(--muted);
}

/* CTA final
   ------------------------------------------------------------------ */
.cta-final {
  width: min(100%, var(--wrap));
  margin-left: auto;
  margin-right: auto;
}

.cta-final-inner {
  width: 100%;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem);
  background:
    radial-gradient(600px 200px at 80% 0%, rgba(255, 194, 51, 0.1), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  text-align: center;
}

.cta-final-inner h2 {
  max-width: 22ch;
  margin: 0 auto 1rem;
}

.cta-final-inner p:not(.kicker) {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  font-size: 1.125rem;
}

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  padding: 3.5rem var(--gutter) 6.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-name {
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}

.footer-brand p:not(.footer-name) {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--mustard);
}

.footer-copy {
  margin: 0.5rem 0 0;
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* Floating WhatsApp
   ------------------------------------------------------------------ */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease);
}

.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-2px) scale(1.04);
}

/* Reveals
   ------------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .ebook-grid .reveal:nth-child(2),
.js .video-grid .reveal:nth-child(2),
.js .steps .reveal:nth-child(2),
.js .themes .reveal:nth-child(2) { transition-delay: 0.08s; }

.js .ebook-grid .reveal:nth-child(3),
.js .video-grid .reveal:nth-child(3),
.js .steps .reveal:nth-child(3),
.js .themes .reveal:nth-child(3) { transition-delay: 0.16s; }

.js .themes .reveal:nth-child(4) { transition-delay: 0.2s; }
.js .themes .reveal:nth-child(5) { transition-delay: 0.24s; }

/* Responsive
   ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 1.1rem;
    gap: 1.6rem;
  }

  .hero h1 { max-width: none; }

  .hero-photo {
    justify-self: center;
    max-width: 18rem;
    order: -1;
  }

  .hero-photo::before {
    inset: 8% 0 -8% 8%;
  }

  .hero-photo figure {
    aspect-ratio: 1 / 1;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    max-width: 17rem;
  }

  .steps,
  .ebook-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

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

  .theme,
  .theme:nth-child(4),
  .theme:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .btn-header-compact {
    display: inline-flex;
    margin-left: auto;
    min-height: 2.15rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .logo-name { font-size: 1.05rem; }
  .logo-role { font-size: 0.6rem; letter-spacing: 0.1em; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(11, 15, 24, 0.97);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 1.5rem var(--gutter) 3rem;
    gap: 1.5rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0.35s;
    overflow: auto;
  }

  html.nav-open .nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.25rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .nav-list a::after { display: none; }

  .nav .btn-header {
    width: 100%;
    min-height: 3rem;
    font-size: 1rem;
  }

  .content-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }

  .hero-photo { max-width: 16.5rem; }

  .hero-photo figure {
    border-radius: 1.1rem;
    aspect-ratio: 1 / 1;
  }

  .about-photo img {
    border-radius: 1.1rem;
  }

  .kicker {
    letter-spacing: 0.1em;
    font-size: 0.7rem;
  }

  .hero .kicker-sep { display: none; }
  .hero .kicker-rest { display: block; margin-top: 0.2rem; }

  .cta-final-inner {
    border-radius: 1.2rem;
    text-align: left;
  }

  .btn { white-space: normal; text-align: center; }

  .wa-float {
    width: 3.25rem;
    height: 3.25rem;
  }
}

@media (min-width: 961px) {
  .ebook-grid .ebook:hover,
  .video:hover {
    transform: translateY(-3px);
    transition: transform 0.3s var(--ease);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
