/* -----------------------------
   RESET & FUNDAMENTOS
----------------------------- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.section__label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

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

/* -----------------------------
   VARIÁVEIS (fallback)
----------------------------- */

:root {
  --bg-body: #f7fafc;
  --bg-hero: #fef9c3;
  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-header-scrolled: rgba(255, 255, 255, 0.95);
  --border-header: rgba(0, 0, 0, 0.06);
  --text-main: #1f2933;
  --text-muted: #4a5568;
  --accent: #4c51bf;
  --accent-secondary: #7c3aed;
  --accent-soft: #e0e7ff;
  --btn-shadow: rgba(88, 80, 236, 0.35);
  --card-bg: rgba(255, 255, 255, 0.96);
  --card-text: #111827;
  --card-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  --hero-badge-bg: rgba(255, 255, 255, 0.2);
  --hero-badge-border: rgba(255, 255, 255, 0.35);
}

/* -----------------------------
   HEADER
----------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header--scrolled {
  background: var(--bg-header-scrolled);
  border-bottom-color: var(--border-header);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0.85rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header__nav a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-header__nav a:hover {
  opacity: 1;
}

.site-header__cta {
  font-size: 0.82rem !important;
  padding: 0.55rem 1.1rem !important;
}

/* -----------------------------
   LAYOUT
----------------------------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

.section__note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section p + p {
  margin-top: 0.75rem;
}

/* Grid */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Cards */

.card {
  background: var(--card-bg);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  color: var(--card-text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.card--review {
  font-style: italic;
  position: relative;
}

.card--review::before {
  content: "\201C";
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
}

.card--review p {
  padding-top: 1.5rem;
}

/* Lists */

.list {
  list-style: none;
}

.list--check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.list--check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
}

/* -----------------------------
   HERO
----------------------------- */

.hero {
  padding: 7rem 0 4.5rem;
  background: var(--bg-hero);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.hero__text {
  flex: 1 1 340px;
  min-width: 0;
}

.hero__image {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-slideshow {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.hero-slideshow__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 340 / 480;
}

.hero-slideshow__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hero-slideshow__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slideshow__slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.625rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.4s ease;
}

.hero__image:hover .hero-slideshow__slide.is-active img {
  transform: scale(1.03) translateY(-4px);
}

.hero-slideshow__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-slideshow__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--accent-soft);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-slideshow__dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.hero-slideshow__dot:hover {
  background: var(--accent-secondary);
}

.hero__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-border);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero__subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero__highlights {
  list-style: none;
  margin-bottom: 2rem;
}

.hero__highlights li {
  margin-bottom: 0.55rem;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.98rem;
}

.hero__highlights li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.hero__microcopy {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

/* -----------------------------
   BOTÕES
----------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  box-shadow: 0 10px 28px var(--btn-shadow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px var(--btn-shadow);
}

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

.btn--outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-header);
  box-shadow: none;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--large {
  padding: 1.05rem 2.5rem;
  font-size: 1.05rem;
}

/* -----------------------------
   TIMELINE (Pirâmide olfativa)
----------------------------- */

.timeline {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.timeline__item {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 2.25rem;
  background: var(--accent-soft);
  border-radius: 0.75rem;
  border-left: 3px solid var(--accent);
}

.timeline__item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* -----------------------------
   PERFORMANCE BARS
----------------------------- */

.performance-bars {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  max-width: 480px;
}

.performance-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.performance-bar__track {
  height: 6px;
  background: var(--accent-soft);
  border-radius: 999px;
  overflow: hidden;
}

.performance-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 999px;
  transition: width 1.2s ease;
}

.reveal .performance-bar__fill {
  width: 0 !important;
}

.reveal.is-visible .performance-bar__fill {
  width: var(--fill-width) !important;
}

/* -----------------------------
   SEÇÕES ESPECÍFICAS
----------------------------- */

.section--why p,
.section--performance p,
.section--story p,
.section--experience p {
  max-width: 680px;
}

.section--offer {
  text-align: center;
}

.section--offer p {
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.section--story {
  position: relative;
}

.section--story .container {
  max-width: 800px;
}

.section--videos .section__subtitle {
  margin-bottom: 2rem;
}

/* -----------------------------
   VIDEO GALLERY
----------------------------- */

.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-gallery--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.video-card {
  background: var(--card-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  color: var(--card-text);
}

.video-card__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-card__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card--instagram {
  padding: 0.5rem;
}

.video-card--instagram .instagram-media {
  margin: 0 auto !important;
  min-width: unset !important;
  width: 100% !important;
}

.video-card__title {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.video-card--external {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-decoration: none;
  color: var(--card-text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card--external:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.video-card__external-inner {
  text-align: center;
  padding: 2rem 1.5rem;
}

.video-card__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.video-card__external-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.video-card__external-cta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* -----------------------------
   REVEAL ANIMATIONS
----------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------
   RESPONSIVIDADE
----------------------------- */

@media (max-width: 768px) {
  .site-header__nav a:not(.site-header__cta) {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero__content {
    flex-direction: column;
    text-align: left;
  }

  .hero__image {
    order: -1;
    width: 100%;
    flex: 1 1 100%;
  }

  .hero-slideshow {
    width: 100%;
    max-width: min(100%, 22rem);
  }

  .hero-slideshow__viewport {
    aspect-ratio: 4 / 5;
    min-height: 240px;
    max-height: min(52vh, 420px);
  }

  .hero-slideshow__slide {
    align-items: flex-end;
  }

  .hero-slideshow__slide img {
    object-fit: contain;
    object-position: center bottom;
  }

  .section--offer p {
    text-align: left;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .btn--large {
    width: 100%;
  }

  .hero-slideshow {
    max-width: 100%;
  }

  .hero-slideshow__viewport {
    min-height: 260px;
    max-height: min(48vh, 380px);
  }
}
