/* ============================================
   Leddy Wholesale Candy — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Custom Properties --- */
:root {
  --nav-height: 72px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Navbar --- */
.navbar {
  height: var(--nav-height);
  background: rgba(254, 253, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6, 95, 70, 0.08);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  box-shadow: 0 4px 30px rgba(6, 95, 70, 0.1);
}

.nav-link {
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  border-radius: 1px;
  transition: width 0.3s var(--ease-out-expo);
}

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

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #065f46;
  color: #f5f0e8;
  font-weight: 600;
  border-radius: 1rem;
  padding: 12px 28px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.btn-primary:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 95, 70, 0.3);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 1rem;
  padding: 12px 28px;
  transition: background 0.25s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

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

/* --- Badges --- */
.badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}

.badge-cream {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f0e8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-geo {
  position: absolute;
  border-radius: 2rem;
  opacity: 0.15;
}

.hero-geo-1 {
  width: 300px;
  height: 300px;
  background: #f472b6;
  top: 10%;
  right: -5%;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero-geo-2 {
  width: 180px;
  height: 180px;
  background: #fbbf24;
  bottom: 15%;
  right: 35%;
  transform: rotate(45deg);
  animation: float 6s ease-in-out infinite reverse;
}

.hero-geo-3 {
  width: 120px;
  height: 120px;
  background: #a78bfa;
  top: 40%;
  right: 55%;
  border-radius: 50%;
  animation: float 7s ease-in-out infinite;
}

.hero-geo-4 {
  width: 80px;
  height: 80px;
  background: #fb923c;
  top: 60%;
  right: 10%;
  transform: rotate(30deg);
  animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* --- Floating Cards --- */
.floating-card {
  animation: floatCard 4s ease-in-out infinite;
}

.floating-card.card-pink {
  animation-delay: 0s;
}

.floating-card.card-yellow {
  animation-delay: 1.5s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f5f0e8;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: background 0.2s;
}

.scroll-indicator:hover {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes scrollBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* --- Card Hover --- */
.card-hover {
  cursor: default;
}

/* --- Feature Cards --- */
.feature-card {
  cursor: default;
}

/* --- Why Us Background Pattern --- */
.why-bg-pattern {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(244, 114, 182, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.15) 0%, transparent 50%);
}

/* --- CTA Gradient --- */
.cta-gradient {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%);
}

/* --- Input Fields --- */
.input-field {
  background: #f5f0e8;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #065f46;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.input-field::placeholder {
  color: #a7c4a8;
}

.input-field:focus {
  border-color: #059669;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

/* --- Info Cards --- */
.info-card {
  cursor: default;
}

/* --- Footer --- */
.footer {
  /* Footer styles handled by Tailwind */
}

/* --- Global Geometric Shapes --- */
.geo-shape {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
}

.circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #065f46;
  top: 20%;
  left: -100px;
  animation: float 12s ease-in-out infinite;
}

.circle-2 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: #f472b6;
  top: 60%;
  right: -60px;
  animation: float 9s ease-in-out infinite reverse;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 173px solid #fbbf24;
  top: 45%;
  left: 5%;
  opacity: 0.04;
  animation: spin 20s linear infinite;
}

.square-rotated {
  width: 150px;
  height: 150px;
  background: #a78bfa;
  top: 75%;
  right: 10%;
  transform: rotate(45deg);
  opacity: 0.05;
  animation: float 10s ease-in-out infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Mobile Menu --- */
.mobile-menu {
  transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #059669;
  border-radius: 1px;
  transition: width 0.3s var(--ease-out-expo);
}

.mobile-nav-link:hover::after,
.mobile-nav-link.active::after {
  width: 60%;
}

/* Mobile menu button animations */
.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
  margin: 0;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- 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;
  }

  .geo-shape,
  .hero-geo,
  .floating-card {
    animation: none;
  }
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h1 br {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}
