/* ═══════════════════════════════
   KEYFRAMES — CORE
   ═══════════════════════════════ */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }
}

@keyframes drawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

/* ═══════════════════════════════
   KEYFRAMES — HERO TEXT
   ═══════════════════════════════ */

@keyframes heroWordReveal {
  0% {
    opacity: 0;
    transform: translateY(100%) rotateX(-80deg);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes accentShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes accentGlow {
  0%, 100% {
    text-shadow: none;
  }
  50% {
    text-shadow: none;
  }
}

@keyframes labelDash {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 2.5em;
    opacity: 1;
  }
}

/* ═══════════════════════════════
   KEYFRAMES — HERO BACKGROUND
   ═══════════════════════════════ */

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(15px, -20px) scale(1.05);
  }
  50% {
    transform: translate(-10px, -35px) scale(0.97);
  }
  75% {
    transform: translate(20px, -15px) scale(1.03);
  }
}

@keyframes blobFloat2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-20px, 15px) scale(1.06);
  }
  66% {
    transform: translate(15px, -25px) scale(0.95);
  }
}

@keyframes blobFloat3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  20% {
    transform: translate(10px, 20px) scale(0.98);
  }
  50% {
    transform: translate(-15px, 10px) scale(1.04);
  }
  80% {
    transform: translate(5px, -15px) scale(1.01);
  }
}

@keyframes leafSway {
  0%, 100% {
    transform: rotate(0deg) translateX(0);
  }
  25% {
    transform: rotate(3deg) translateX(5px);
  }
  75% {
    transform: rotate(-2deg) translateX(-3px);
  }
}

@keyframes citrusSpin {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(15deg);
  }
}

@keyframes floatingParticle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  15% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
  85% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(0.4);
  }
}

/* ═══════════════════════════════
   KEYFRAMES — INTERACTIVE
   ═══════════════════════════════ */

@keyframes btnRipple {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes cardShine {
  0% {
    transform: translateX(-100%) skewX(-15deg);
  }
  100% {
    transform: translateX(200%) skewX(-15deg);
  }
}

@keyframes numberPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 148, 90, 0.2);
  }
  50% {
    box-shadow: 0 4px 30px rgba(0, 148, 90, 0.45), 0 0 0 8px rgba(0, 148, 90, 0.08);
  }
}

/* ═══════════════════════════════
   HERO — STAGGER ON LOAD
   ═══════════════════════════════ */

.hero__label {
  animation: fadeSlideUp 0.8s var(--ease-out) 0.15s both;
}

.hero__label::before {
  content: '';
  display: inline-block;
  width: 2.5em;
  height: 2px;
  background: var(--palm);
  vertical-align: middle;
  margin-right: 0.75em;
  animation: labelDash 0.6s var(--ease-out) 0.6s both;
}

.hero__heading {
  perspective: 600px;
}

.hero__heading .hero-word {
  display: inline-block;
  animation: heroWordReveal 0.7s var(--ease-out) both;
  transform-origin: center bottom;
}

.hero__accent {
  font-style: italic;
}

.hero__accent,
.hero__accent .hero-word {
  background: linear-gradient(
    90deg,
    var(--palm) 0%,
    var(--citrus) 30%,
    var(--coral) 55%,
    var(--berry) 80%,
    var(--palm) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--palm);
  animation: accentShimmer 4s ease-in-out infinite 1.5s;
}

.hero__accent .hero-word {
  animation: heroWordReveal 0.7s var(--ease-out) both,
             accentShimmer 4s ease-in-out infinite 1.5s;
}

.hero__subtitle {
  animation: fadeSlideUp 0.7s var(--ease-out) 0.9s both;
}

.hero__ctas {
  animation: fadeSlideUp 0.7s var(--ease-out) 1.1s both;
}

.hero__scroll {
  animation: fadeIn 0.6s var(--ease-out) 1.6s both;
}

/* Hero blobs — continuous floating */
.hero__blob {
  animation: scaleIn 1s var(--ease-out) 0.4s both;
}

.hero__blob--1 {
  animation: scaleIn 1s var(--ease-out) 0.3s both,
             blobFloat 12s ease-in-out infinite 1.3s;
}

.hero__blob--2 {
  animation: scaleIn 1s var(--ease-out) 0.5s both,
             blobFloat2 14s ease-in-out infinite 1.5s;
}

.hero__blob--3 {
  animation: scaleIn 1s var(--ease-out) 0.7s both,
             blobFloat3 10s ease-in-out infinite 1.7s;
}

.hero__leaf {
  animation: scaleIn 1s var(--ease-out) 0.6s both,
             leafSway 6s ease-in-out infinite 1.6s;
}

.hero__citrus {
  animation: scaleIn 1s var(--ease-out) 0.8s both,
             citrusSpin 8s ease-in-out infinite 1.8s;
}

/* Hero scroll indicator enhanced bounce */
.hero__scroll {
  animation: fadeIn 0.6s var(--ease-out) 1.6s both,
             bounceDown 2.5s var(--ease-in-out) infinite 2s;
}

/* ═══════════════════════════════
   HERO — FLOATING PARTICLES
   ═══════════════════════════════ */

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  border-radius: 50%;
  animation: floatingParticle linear infinite;
}

.hero__particle--1 {
  width: 6px; height: 6px;
  background: var(--palm);
  opacity: 0.3;
  bottom: 30%;
  left: 15%;
  animation-duration: 7s;
  animation-delay: 0s;
}

.hero__particle--2 {
  width: 4px; height: 4px;
  background: var(--citrus);
  opacity: 0.25;
  bottom: 20%;
  left: 45%;
  animation-duration: 9s;
  animation-delay: 2s;
}

.hero__particle--3 {
  width: 8px; height: 8px;
  background: var(--coral);
  opacity: 0.15;
  bottom: 40%;
  right: 25%;
  animation-duration: 11s;
  animation-delay: 4s;
}

.hero__particle--4 {
  width: 5px; height: 5px;
  background: var(--lime);
  opacity: 0.2;
  bottom: 15%;
  right: 35%;
  animation-duration: 8s;
  animation-delay: 1s;
}

.hero__particle--5 {
  width: 3px; height: 3px;
  background: var(--palm-light);
  opacity: 0.3;
  bottom: 50%;
  left: 70%;
  animation-duration: 6s;
  animation-delay: 3s;
}

.hero__particle--6 {
  width: 7px; height: 7px;
  background: var(--citrus-light);
  opacity: 0.15;
  bottom: 25%;
  left: 80%;
  animation-duration: 10s;
  animation-delay: 5s;
}

/* ═══════════════════════════════
   SCROLL REVEAL — ENHANCED
   ═══════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out),
              filter var(--duration-slow) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 120ms);
  filter: blur(4px);
}

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

.reveal--scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out),
              filter var(--duration-slow) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 120ms);
  filter: blur(3px);
}

.reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.reveal--left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out),
              filter var(--duration-slow) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 120ms);
  filter: blur(3px);
}

.reveal--left.is-visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal--right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out),
              filter var(--duration-slow) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 120ms);
  filter: blur(3px);
}

.reveal--right.is-visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal--rotate {
  opacity: 0;
  transform: translateY(30px) rotate(3deg);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 120ms);
}

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

/* ═══════════════════════════════
   PARALLAX LAYERS
   ═══════════════════════════════ */

[data-parallax] {
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-section {
  position: relative;
  overflow: hidden;
}

/* ═══════════════════════════════
   INTERACTIVE — BUTTONS
   ═══════════════════════════════ */

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: none;
  pointer-events: none;
}

.btn:active::before {
  animation: btnRipple 0.5s ease-out;
}

.btn--primary:hover {
  box-shadow: var(--shadow-glow-palm), 0 8px 25px rgba(0, 148, 90, 0.3);
}

.btn--outline:hover {
  box-shadow: 0 8px 25px rgba(26, 15, 8, 0.15);
}

.btn--white:hover {
  box-shadow: var(--shadow-xl), 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* ═══════════════════════════════
   INTERACTIVE — CARDS (services)
   ═══════════════════════════════ */

.services__card {
  transition: all 0.4s var(--ease-out);
}

.services__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: skewX(-15deg);
  transition: none;
  pointer-events: none;
}

.services__card:hover::after {
  animation: cardShine 0.8s ease-out;
}

.services__card:hover {
  transform: translateY(-8px);
}

.services__card:hover .services__card-accent {
  width: 8px;
}

.services__card:hover .services__card-tag {
  transform: scale(1.05);
}

.services__card-tag {
  transition: transform var(--duration-fast) var(--ease-out);
}

/* ═══════════════════════════════
   INTERACTIVE — MENU CARDS
   ═══════════════════════════════ */

.menu__card {
  transition: transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

.menu__card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(26, 15, 8, 0.25);
}

.menu__card-bg {
  transition: transform 0.8s var(--ease-out);
}

.menu__card:hover .menu__card-bg {
  transform: scale(1.1);
}

.menu__card-content {
  transition: transform 0.4s var(--ease-out);
}

.menu__card:hover .menu__card-content {
  transform: translateY(-4px);
}

.menu__card:hover .pill {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pill {
  transition: transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

/* ═══════════════════════════════
   INTERACTIVE — GALLERY ITEMS
   ═══════════════════════════════ */

.gallery__item {
  transition: transform 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out);
}

.gallery__item:hover {
  transform: scale(1.04) rotate(-0.5deg);
  box-shadow: 0 20px 40px rgba(26, 15, 8, 0.2);
}

.gallery__overlay {
  transition: opacity 0.4s var(--ease-out);
  backdrop-filter: blur(2px);
}

.gallery__overlay span {
  transition: transform 0.4s var(--ease-out),
              opacity 0.4s var(--ease-out);
  transform: translateY(8px);
  opacity: 0;
}

.gallery__item:hover .gallery__overlay span {
  transform: translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════
   INTERACTIVE — ABOUT CIRCLES
   ═══════════════════════════════ */

.about__circle {
  transition: transform 0.6s var(--ease-out);
}

.about__visual:hover .about__circle--citrus {
  transform: translate(-8px, -10px) scale(1.08);
}

.about__visual:hover .about__circle--palm {
  transform: translate(10px, 8px) scale(1.05);
}

.about__visual:hover .about__circle--coral {
  transform: translate(5px, -12px) scale(1.1);
}

.about__visual:hover .about__circle--lime {
  transform: translate(-5px, 10px) scale(1.12);
}

/* ═══════════════════════════════
   INTERACTIVE — PROCESS STEPS
   ═══════════════════════════════ */

.process__number {
  transition: transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.process__step:hover .process__number {
  transform: scale(1.12);
  animation: numberPulse 1.5s ease-in-out infinite;
}

.process__line {
  transform-origin: left;
}

.process__line.is-visible {
  animation: drawLine 0.8s var(--ease-out) forwards;
}

/* ═══════════════════════════════
   INTERACTIVE — TESTIMONIALS
   ═══════════════════════════════ */

.testimonials__arrow {
  transition: all 0.3s var(--ease-out);
}

.testimonials__arrow:hover {
  transform: scale(1.15);
}

.testimonials__arrow:active {
  transform: scale(0.95);
}

.testimonials__dot {
  transition: all 0.3s var(--ease-out);
}

.testimonials__dot:hover {
  transform: scale(1.3);
}

/* ═══════════════════════════════
   INTERACTIVE — CONTACT SOCIAL
   ═══════════════════════════════ */

.contact__social {
  transition: all 0.3s var(--ease-out);
}

.contact__social:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 148, 90, 0.25);
}

.footer__social {
  transition: all 0.3s var(--ease-out);
}

.footer__social:hover {
  transform: translateY(-3px) scale(1.1);
}

/* ═══════════════════════════════
   INTERACTIVE — FORM FIELDS
   ═══════════════════════════════ */

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px var(--palm-pale), 0 4px 12px rgba(0, 148, 90, 0.1);
}

/* ═══════════════════════════════
   INTERACTIVE — NAV LINKS
   ═══════════════════════════════ */

.nav__link {
  transition: color var(--duration-base) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.nav__link:hover {
  transform: translateY(-1px);
}

/* ═══════════════════════════════
   SECTION TRANSITIONS
   ═══════════════════════════════ */

.wave-divider svg path {
  transition: d 0.6s var(--ease-out);
}

/* CTA banner shimmer */
.cta-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.06) 55%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: accentShimmer 5s ease-in-out infinite;
}

/* ═══════════════════════════════
   MAGNETIC HOVER (via JS)
   ═══════════════════════════════ */

.magnetic {
  transition: transform 0.2s var(--ease-out);
}

/* ═══════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal--scale,
  .reveal--left,
  .reveal--right,
  .reveal--rotate {
    opacity: 1;
    transform: none;
    filter: none;
  }

  [data-parallax] {
    transform: none !important;
  }

  .hero__accent {
    -webkit-text-fill-color: var(--coral);
    background: none;
  }

  .hero-word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
