/* ============================================
   Frutas Frescas — Custom Styles
   ============================================ */

/* --- Base / Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: #E8A838;
  color: #3d0f48;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #faf5fb;
}
::-webkit-scrollbar-thumb {
  background: #d9aed7;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a552a1;
}

/* --- Navigation --- */
#site-header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(123, 45, 139, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #E8A838;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-nav-link {
  font-size: 1.125rem;
  letter-spacing: 0.15em;
}

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-line:first-child {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

/* --- Hero --- */
#top {
  position: relative;
}

/* --- Menu Section --- */
#menu ul li {
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(217, 174, 215, 0.2);
}

#menu ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* --- Form --- */
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #E8A838 !important;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #ebd1ea;
}

/* --- Reveal Animations (progressive enhancement) --- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-enabled .reveal.revealed {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-enabled .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-enabled .reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Responsive tweaks --- */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.15;
  }
}
