/* components.css — Botões, cards, badges, navbar */

/* ── Botões ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo),
              background-color 0.3s ease,
              border-color 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::after { opacity: 1; }

.btn:hover {
  transform: translateY(-2px);
}

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

/* Primário — sálvia */
.btn--primary {
  background-color: var(--sage-light);
  color: var(--forest);
  box-shadow: 0 4px 20px rgba(184, 196, 172, 0.3);
}

.btn--primary:hover {
  background-color: var(--sage);
  box-shadow: 0 8px 32px rgba(181, 194, 166, 0.35);
}

/* Secundário — borda oliva */
.btn--secondary {
  background-color: transparent;
  color: var(--forest);
  border: 1.5px solid var(--olive);
}

.btn--secondary:hover {
  background-color: var(--olive);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(138, 154, 123, 0.2);
}

/* Outline cream (para fundo escuro) */
.btn--outline-cream {
  background-color: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(247, 244, 237, 0.4);
}

.btn--outline-cream:hover {
  background-color: var(--cream);
  color: var(--forest-deep);
  border-color: var(--cream);
}

/* Botão ícone pequeno */
.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 11px;
}

/* Botão grande */
.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: 14px;
}

/* ── WhatsApp pulse ─────────────────────────────────── */

.btn--whatsapp {
  background-color: var(--sage-light);
  color: var(--forest);
  animation: whatsapp-pulse 3s ease-in-out infinite;
}

.btn--whatsapp:hover {
  background-color: var(--sage);
  animation-play-state: paused;
}

/* ── Navbar ─────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  background: rgba(247, 244, 237, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  animation: navbar-slide-down 0.8s var(--ease-out-expo) 0.1s forwards;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--forest);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  line-height: 1;
}

.navbar__logo em {
  font-style: italic;
}

@media (max-width: 768px) {
  .navbar__logo {
    font-size: 1.25rem;
  }
}

.navbar__nav {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

@media (min-width: 1024px) {
  .navbar__nav { display: flex; }
}

.navbar__link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--olive);
  transition: width 0.4s var(--ease-out-expo);
}

.navbar__link:hover {
  color: var(--forest);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Hamburguer mobile */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .navbar__hamburger { display: none; }
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--forest);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
  transform-origin: center;
}

.navbar__hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.navbar__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Menu mobile */
.navbar__mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: calc(var(--z-sticky) - 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.navbar__mobile-menu.is-open {
  transform: translateY(0);
  pointer-events: all;
}

.navbar__mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  color: var(--forest);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.navbar__mobile-link:hover {
  color: var(--olive);
}

/* ── Cards de produto ───────────────────────────────── */

.product-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out-expo),
              box-shadow 0.6s var(--ease-out-expo);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--sage-light);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

.product-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.2;
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.product-card__price {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--olive);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

.produto-divisor {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-top: var(--space-md);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s var(--ease-out-expo), background 0.6s var(--ease-out-expo);
}

.product-card.is-revealed .produto-divisor {
  transform: scaleX(1);
}

.product-card:hover .produto-divisor {
  background: var(--olive);
}

/* ── Cards de depoimento ────────────────────────────── */

.testimonial-card {
  padding: 2.5rem;
  background: rgba(247, 244, 237, 0.06);
  border: 1px solid rgba(247, 244, 237, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(247, 244, 237, 0.9);
  position: relative;
}

.testimonial-card__quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--olive);
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.testimonial-card__author {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ── Cursor customizado ─────────────────────────────── */

.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--olive);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: multiply;
}

.cursor--large {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--olive);
  opacity: 0.5;
}

@media (pointer: coarse) {
  .cursor, .cursor--large { display: none; }
}

/* ── Scroll indicator ───────────────────────────────── */

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
}

.scroll-indicator__line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--olive), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

.scroll-indicator__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  writing-mode: vertical-rl;
}
