/* ============================================
   PATCHOGUE ICE CREAM PARLOR — STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100vh;
}

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

#nav.scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(61, 34, 22, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-link {
  transition: opacity 0.3s ease;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

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

.menu-line {
  display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.25rem;
}

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

.geo-circle-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196, 101, 58, 0.08) 0%, transparent 70%);
  top: -100px;
  right: 10%;
  border-radius: 50%;
}

.geo-circle-2 {
  width: 250px;
  height: 250px;
  background: rgba(224, 196, 146, 0.25);
  bottom: 15%;
  left: -50px;
  border-radius: 50%;
}

.geo-circle-3 {
  width: 120px;
  height: 120px;
  background: rgba(196, 101, 58, 0.12);
  top: 40%;
  right: 5%;
  border-radius: 50%;
}

.geo-rect-1 {
  width: 80px;
  height: 80px;
  background: rgba(224, 196, 146, 0.35);
  top: 20%;
  left: 5%;
  border-radius: 16px;
  transform: rotate(30deg);
}

.geo-rect-2 {
  width: 60px;
  height: 60px;
  background: rgba(196, 101, 58, 0.15);
  bottom: 25%;
  right: 3%;
  border-radius: 12px;
  transform: rotate(-15deg);
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86px solid rgba(196, 101, 58, 0.08);
  top: 35%;
  left: 2%;
  transform: rotate(-20deg);
}

.geo-circle-4 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  border-radius: 50%;
}

.geo-rect-3 {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.06);
  bottom: -20px;
  left: 10%;
  border-radius: 20px;
  transform: rotate(45deg);
}

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

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

/* --- Marquee --- */
.marquee-track {
  animation: marquee 30s linear infinite;
}

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

.marquee-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* --- Responsive --- */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
}
