@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  --primary: #7A4328;          /* Marrom terracota nobre */
  --primary-hover: #5F311B;    /* Marrom cafe profundo */
  --primary-light: #9B5C3B;    /* Caramelo quente */
  --secondary: #F2EAE0;        /* Bege areia suave */
  --secondary-hover: #E8DCCF;  /* Bege areia medio */
  --text-dark: #2C1E18;        /* Marrom espresso */
  --text-muted: #6B584E;       /* Marrom suave legivel */
  --bg-cream: #FBF8F3;         /* Fundo linho acolhedor */
  --bg-card: #FFFFFF;          /* Branco puro para cards */
  --border-beige: #E6D9CB;     /* Borda bege areia */
  --border-beige-subtle: #EFE6DC;
  --glow-warm: rgba(155, 92, 59, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif-accent {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ==========================================================
   REACTBITS: AURORA ANIMATED BACKGROUND
   ========================================================== */
.aurora-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora-blob-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(242, 234, 224, 0.9) 0%, rgba(251, 248, 243, 0) 70%);
  filter: blur(60px);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

.aurora-blob-2 {
  position: absolute;
  top: 15%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 217, 203, 0.6) 0%, rgba(251, 248, 243, 0) 70%);
  filter: blur(70px);
  animation: aurora-drift 22s ease-in-out 4s infinite alternate-reverse;
}

.aurora-blob-3 {
  position: absolute;
  bottom: 5%;
  left: 10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(219, 196, 178, 0.35) 0%, rgba(251, 248, 243, 0) 70%);
  filter: blur(60px);
  animation: aurora-drift 20s ease-in-out 8s infinite alternate;
}

@keyframes aurora-drift {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(40px, 35px) scale(1.08); }
  100% { transform: translate(-30px, -25px) scale(0.95); }
}

/* ==========================================================
   MAGIC UI: INTERACTIVE GRID PATTERN WITH RADIAL MASK
   ========================================================== */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(#C49A7D 0.8px, transparent 0.8px);
  background-size: 28px 28px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 100%);
  pointer-events: none;
}

/* ==========================================================
   MAGIC UI: BORDER BEAM
   ========================================================== */
.border-beam-container {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #ffffff;
  padding: 2px;
}

.border-beam-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent 0deg,
    transparent 280deg,
    #7A4328 320deg,
    #9B5C3B 340deg,
    transparent 360deg
  );
  animation: border-beam-rotate 6s linear infinite;
  z-index: 0;
}

.border-beam-content {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: calc(1.5rem - 2px);
  width: 100%;
  height: 100%;
}

@keyframes border-beam-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================
   REACTBITS: SPOTLIGHT CARD (CURSOR MOUSE-FOLLOWING)
   ========================================================== */
.spotlight-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid var(--border-beige);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(155, 92, 59, 0.1),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(122, 67, 40, 0.12);
  border-color: #C49A7D;
}

/* ==========================================================
   REACTBITS: 3D PERSPECTIVE TILT
   ========================================================== */
.tilt-wrapper {
  perspective: 1000px;
}

.tilt-inner {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

/* ==========================================================
   MAGIC UI: INFINITE MARQUEE (VELOCITY SCROLL)
   ========================================================== */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  min-width: 100%;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-track-reverse {
  animation: marquee-scroll 32s linear infinite reverse;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 2rem)); }
}

/* ==========================================================
   MAGIC UI & 21ST.DEV: SHIMMER BUTTONS
   ========================================================== */
.btn-shimmer {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7A4328 0%, #9B5C3B 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(122, 67, 40, 0.32);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.75s ease;
}

.btn-shimmer:hover::before {
  left: 150%;
}

.btn-shimmer:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(122, 67, 40, 0.45);
  background: linear-gradient(135deg, #5F311B 0%, #7A4328 100%);
}

.btn-whatsapp-modern {
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 20px -4px rgba(37, 211, 102, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-whatsapp-modern:hover {
  background: linear-gradient(135deg, #1EBE5D 0%, #17A34F 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(37, 211, 102, 0.45);
}

/* ==========================================================
   MAGIC UI: BENTO GRID ARCHITECTURE
   ========================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bento-span-2 {
    grid-column: span 2 / span 2;
  }
  .bento-span-3 {
    grid-column: span 3 / span 3;
  }
}

.bento-item {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid var(--border-beige);
  padding: 2rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-item:hover {
  border-color: #C49A7D;
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -8px rgba(122, 67, 40, 0.08);
}

/* ==========================================================
   21ST.DEV & UIVERSE: INTERACTIVE SEGMENTED TABS
   ========================================================== */
.tab-pill {
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.tab-pill.active {
  background: #7A4328;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(122, 67, 40, 0.25);
}

/* ==========================================================
   SCROLL REVEAL (INTERSECTION OBSERVER)
   ========================================================== */
.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-revealed {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================================
   MOBBIN: BOTTOM STICKY ACTION BAR FOR MOBILE
   ========================================================== */
.mobile-sticky-dock {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(230, 217, 203, 0.85);
  box-shadow: 0 12px 36px -4px rgba(44, 30, 24, 0.18);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* ==========================================================
   UIVERSE: PULSING LIVE STATUS PILL
   ========================================================== */
.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #178742;
  font-size: 0.78rem;
  font-weight: 700;
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #25D366;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  border: 2px solid #25D366;
  opacity: 0.75;
  animation: ping-slow 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping-slow {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Number Ticker animation helper */
.ticker-val {
  font-variant-numeric: tabular-nums;
}

/* Custom Accordion Chevron */
.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}
