/* ============================================
   CHLOE PESSOA — Component Styles
   ============================================ */

/* ── Custom Cursor ── */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-black);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              border-color 0.3s,
              background-color 0.3s;
  mix-blend-mode: difference;
  background: transparent;
}

.cursor--hover {
  width: 60px;
  height: 60px;
  border-color: var(--color-accent);
  background: rgba(201, 169, 110, 0.1);
}

.cursor--text {
  width: 100px;
  height: 100px;
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

.cursor__dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--color-black);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

@media (max-width: 768px) {
  .cursor, .cursor__dot {
    display: none !important;
  }
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-lg) 0;
  transition: all 0.5s var(--ease-out-expo);
}

.navbar.scrolled {
  padding: var(--space-md) 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  transition: color 0.5s;
  position: relative;
  z-index: 10;
}

.navbar.scrolled .navbar__logo {
  color: var(--color-black);
}

.navbar__logo span {
  font-weight: 600;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.navbar__link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--color-white);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.5s;
}

.navbar.scrolled .navbar__link {
  color: var(--color-text-primary);
}

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

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

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 10;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-white);
  transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled .navbar__hamburger span {
  background: var(--color-black);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: var(--color-white) !important;
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: var(--color-white) !important;
}

@media (max-width: 768px) {
  .navbar__hamburger {
    display: flex;
  }

  .navbar__nav {
    position: fixed;
    inset: 0;
    background: var(--color-black);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2xl);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
  }

  .navbar__nav.open {
    opacity: 1;
    visibility: visible;
  }

  .navbar__nav.open .navbar__link {
    color: var(--color-white) !important;
    font-size: var(--text-lg);
    letter-spacing: 0.3em;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: var(--space-lg) var(--space-2xl);
  border: 1px solid var(--color-black);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-black);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out-expo);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn__text {
  position: relative;
  z-index: 1;
  transition: color 0.5s var(--ease-out-expo);
}

.btn:hover .btn__text {
  color: var(--color-white);
}

.btn--white {
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn--white::before {
  background: var(--color-white);
}

.btn--white:hover .btn__text {
  color: var(--color-black);
}

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

.btn--accent::before {
  background: var(--color-accent);
}

.btn--accent:hover .btn__text {
  color: var(--color-white);
}

.btn--filled {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.btn--filled::before {
  background: var(--color-accent);
}

.btn--filled:hover .btn__text {
  color: var(--color-white);
}

.btn__arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.5s var(--ease-out-expo);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header__label {
  display: block;
  margin-bottom: var(--space-md);
}

.section-header__title {
  margin-bottom: var(--space-lg);
}

.section-header__subtitle {
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--text-lg);
}

/* ── Cards ── */
.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

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

.card:hover .card__image {
  transform: scale(1.05);
}

.card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo);
}

.card:hover .card__overlay {
  opacity: 1;
}

.card__content {
  padding: var(--space-lg) 0;
}

.card__category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.card__price {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ── Marquee ── */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.marquee__inner {
  display: inline-flex;
  gap: var(--space-3xl);
  animation: marquee 30s linear infinite;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xl);
}

.marquee__item::after {
  content: '✦';
  font-size: var(--text-sm);
  color: var(--color-accent);
}

.section--dark .marquee {
  border-color: var(--color-border-dark);
}

.section--dark .marquee__item {
  color: var(--color-white);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-white);
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator__text {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

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

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe57;
  color: #FFF;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}
