/* ════════════════════════════════════════════════════════════
   Gabriel Pedrozo — Home Institucional (gabrielpedrozo.com)
   Design system: dark warm + Zapier tokens
   Default: dark warm (mentoria pattern). Toggle honra light.
   ════════════════════════════════════════════════════════════ */

/* ════════ TOKENS ════════ */

:root,
[data-theme="dark"] {
  color-scheme: dark;

  /* Surfaces */
  --bg:          #1a1413;
  --bg-soft:     #211b19;
  --surface:     #221b19;
  --surface-2:   #2a2220;
  --surface-3:   #312826;

  /* Ink */
  --ink:         #f7f3ea;
  --ink-2:       #d8d0c1;
  --ink-3:       #b0a898;
  --ink-muted:   #8a8278;

  /* Lines */
  --line:        #3a302d;
  --line-strong: #5a4d47;

  /* Brand */
  --accent:       #ff4f00;
  --accent-hover: #ff6722;
  --accent-soft:  rgba(255, 79, 0, 0.10);
  --accent-glow:  rgba(255, 79, 0, 0.30);
  --accent-ink:   #1a1413;

  /* Gold (editorial) */
  --gold:         #e2a93a;
  --gold-soft:    rgba(226, 169, 58, 0.14);

  /* Type */
  --font-display:  'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body:     'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-edit:     'Instrument Serif', Georgia, serif;

  /* Layout */
  --radius-button: 4px;
  --radius-card:   6px;
  --container:     1100px;
  --ease:          cubic-bezier(.2,.7,.2,1);
}

[data-theme="light"] {
  color-scheme: light;

  --bg:          #fffefb;
  --bg-soft:     #fffdf9;
  --surface:     #fffefb;
  --surface-2:   #eceae3;
  --surface-3:   #f5f3ec;

  --ink:         #201515;
  --ink-2:       #36342e;
  --ink-3:       #5f5a4e;
  --ink-muted:   #939084;

  --line:        #c5c0b1;
  --line-strong: #36342e;

  --accent:       #ff4f00;
  --accent-hover: #e84600;
  --accent-soft:  rgba(255, 79, 0, 0.06);
  --accent-glow:  rgba(255, 79, 0, 0.20);
  --accent-ink:   #fffefb;

  --gold:         #b88420;
  --gold-soft:    rgba(184, 132, 32, 0.16);
}

/* ════════ BASE ════════ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }

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

/* ════════ CONTAINER ════════ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════ TOPBAR ════════ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(26, 20, 19, 0.72);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  transition: background 0.25s var(--ease);
}

[data-theme="light"] .topbar {
  background: rgba(255, 254, 251, 0.78);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.topbar-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-button);
  border: 1px solid var(--accent);
  transition: background 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px var(--accent-glow);
}

/* ════════ THEME TOGGLE ════════ */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle .i-sun  { display: none; }
.theme-toggle .i-moon { display: block; }

[data-theme="light"] .theme-toggle .i-sun  { display: block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* ════════ ATMOSFERA ════════ */

.atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmos-glow {
  position: absolute;
  inset: -10vh -10vw;
  background:
    radial-gradient(ellipse 55% 45% at 50% 25%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(226, 169, 58, 0.04) 0%, transparent 70%);
  filter: blur(24px);
}

[data-theme="light"] .atmos-glow {
  background:
    radial-gradient(ellipse 55% 45% at 50% 25%, rgba(255, 79, 0, 0.04) 0%, transparent 60%);
}

/* ════════ HERO ════════ */

.hero {
  position: relative;
  z-index: 1;
  padding: 80px 24px 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 70px);
}

.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 28px;
}

.eyebrow-line {
  display: block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.hero-h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
}

.hero-h1 em {
  font-family: var(--font-edit);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.hero-sub {
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Hero photo */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.5),
    0 0 0 4px rgba(226, 169, 58, 0.04);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.6) contrast(1.05) brightness(0.9) sepia(0.15);
  transition: filter 0.3s var(--ease);
}

[data-theme="light"] .hero-photo {
  filter: saturate(0.8) contrast(1) brightness(1);
}

.hero-photo-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 20, 19, 0) 40%,
    rgba(26, 20, 19, 0.5) 85%,
    rgba(26, 20, 19, 0.75) 100%
  );
}

[data-theme="light"] .hero-photo-tint { display: none; }

/* ════════ CTA BUTTONS ════════ */

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-button);
  border: 1px solid var(--accent);
  box-shadow: 0 10px 28px -8px var(--accent-glow);
  transition: background 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  text-decoration: none;
}

.cta-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -8px var(--accent-glow);
}

.cta-primary:active { transform: translateY(0); }

.cta-arrow { transition: transform 0.2s var(--ease); }
.cta-primary:hover .cta-arrow { transform: translateX(3px); }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-button);
  border: 1px solid var(--line-strong);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
  text-decoration: none;
}

.cta-secondary:hover {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold-soft);
}

/* ════════ SECTION COMUM ════════ */

.section {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  border-top: 1px solid var(--line);
}

.section--alt {
  background: var(--bg-soft);
}

.section-header {
  max-width: var(--container);
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
}

.section-title em {
  font-family: var(--font-edit);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.section-lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ════════ BIO ════════ */

.bio-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bio-p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

.bio-p:first-child {
  font-size: 17px;
  color: var(--ink);
}

.bio-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bio-photo-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px -16px rgba(0, 0, 0, 0.4);
}

.bio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: saturate(0.65) contrast(1.05) brightness(0.9) sepia(0.12);
}

[data-theme="light"] .bio-photo {
  filter: saturate(0.8) contrast(1) brightness(1.02);
}

/* Social proof chips */
.proof-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.4;
}

.proof-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.proof-item a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ink-2) 35%, transparent);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.proof-item a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ════════ PRODUCTS GRID ════════ */

.products-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease),
    background 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  background: var(--surface-2);
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.3);
}

.product-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Card destaque (curso — CTA orange) */
.product-card--featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface-2) 0%, rgba(255, 79, 0, 0.07) 100%);
}

.product-card--featured:hover {
  border-color: var(--accent-hover);
  box-shadow: 0 12px 40px -12px var(--accent-glow);
}

.product-card-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  line-height: 1;
}

.product-card-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 48;
}

.product-card-desc {
  margin: 0 0 28px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  flex: 1;
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.18s var(--ease), color 0.18s var(--ease);
  margin-top: auto;
}

.product-card:hover .product-card-cta {
  gap: 12px;
}

.product-card--featured .product-card-cta {
  color: var(--accent);
}

/* Comunidade: verde WhatsApp */
.product-card--community .product-card-eyebrow { color: #25d366; }
.product-card--community .product-card-cta     { color: #25d366; }

/* ════════ SEO TEXT BLOCK ════════ */

.seo-section {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  border-top: 1px solid var(--line);
}

.seo-inner {
  max-width: 760px;
  margin: 0 auto;
}

.seo-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}

.seo-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}

.seo-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ════════ FOOTER ════════ */

.footer {
  position: relative;
  z-index: 1;
  padding: 48px 24px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.footer-tagline {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0;
  letter-spacing: 0.02em;
}

.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 8px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--surface);
  text-decoration: none;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.socials a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-contact {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
}

.footer-contact a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s var(--ease);
}

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

.legal {
  margin: 0;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ════════ ANIMATIONS ════════ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  opacity: 0;
  animation: fade-up 0.7s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.10s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-fade-up { opacity: 1; }
}

/* ════════ RESPONSIVE ════════ */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-photo-wrap {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 48px 24px 64px;
  }

  .hero-h1 { font-size: clamp(36px, 9vw, 56px); }

  .bio-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bio-aside {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .bio-photo-frame {
    width: 160px;
    flex-shrink: 0;
    aspect-ratio: 3/4;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .topbar { padding: 14px 18px; }

  .topbar-name { display: none; }

  .section { padding: 56px 18px; }
  .seo-section { padding: 56px 18px; }
  .footer { padding: 40px 18px 32px; }

  .hero { padding: 36px 18px 56px; }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card { padding: 24px 20px; }

  .bio-aside {
    flex-direction: column;
  }

  .bio-photo-frame {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas > * { width: 100%; justify-content: center; }

  .cta-primary, .cta-secondary { padding: 14px 20px; }
}

@media (max-width: 400px) {
  .hero-h1 { font-size: clamp(30px, 11vw, 44px); }
  .btn-nav { display: none; }
}

/* ════════ B2B — Treine sua equipe (mentoria in-company) ════════ */
.b2b{ padding: 8px 24px 64px; }
.b2b-inner{
  max-width: var(--container);
  margin: 0 auto;
  background:
    radial-gradient(120% 140% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}
.b2b-eyebrow{ font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.b2b-title{ font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 42px); line-height: 1.08; margin: 12px 0 16px; color: var(--ink); }
.b2b-title em{ font-family: var(--font-edit); font-style: italic; color: var(--accent); }
.b2b-lede{ max-width: 580px; margin: 0 auto 28px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.b2b-cta{ display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #0a3d23; font-weight: 700; font-size: 15px; padding: 15px 28px; border-radius: 999px; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.b2b-cta:hover{ transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37,211,102,.35); }
@media (max-width: 600px){ .b2b-inner{ padding: 36px 22px; } }
