/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ── Nav ── */
#nav {
  background: rgba(253, 248, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 97, 58, 0.08);
  transition: box-shadow 0.3s ease;
}
#nav.scrolled {
  box-shadow: 0 4px 30px rgba(196, 97, 58, 0.1);
}
.nav-link { position: relative; }

/* ── Hero Geometric Shapes ── */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.geo-circle--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196, 97, 58, 0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: float-slow 8s ease-in-out infinite;
}
.geo-circle--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(226, 179, 98, 0.1) 0%, transparent 70%);
  bottom: 10%; left: 5%;
  animation: float-slow 10s ease-in-out infinite reverse;
}
.geo-circle--3 {
  width: 150px; height: 150px;
  background: rgba(196, 97, 58, 0.06);
  top: 30%; right: 35%;
  animation: float-slow 6s ease-in-out infinite;
}
.geo-rect {
  position: absolute;
  pointer-events: none;
  border-radius: 20px;
}
.geo-rect--1 {
  width: 120px; height: 120px;
  background: rgba(226, 179, 98, 0.08);
  top: 20%; left: 45%;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}
.geo-tri {
  position: absolute;
  pointer-events: none;
  width: 0; height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(196, 97, 58, 0.05);
  top: 60%; right: 10%;
  animation: float-slow 7s ease-in-out infinite;
}
.geo-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(196, 97, 58, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── Animations ── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}
@keyframes spin-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-float { animation: float 3s ease-in-out infinite; }
.marquee-track { animation: marquee 30s linear infinite; }

/* ── Reveal on Scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 100ms; }
.reveal:nth-child(3) { transition-delay: 200ms; }
.reveal:nth-child(4) { transition-delay: 300ms; }

/* ── Hero Badge ── */
.hero-badge {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge ~ * { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-badge ~ h1 { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-badge ~ p { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.hero-badge ~ div { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }

/* ── Mobile Menu ── */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-link { display: block; }

/* ── Product Cards ── */
.group:hover img { transform: scale(1.05); }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F0; }
::-webkit-scrollbar-thumb { background: #E0C4AA; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C4613A; }

/* ── Focus styles ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #C4613A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .geo-circle--1 { width: 250px; height: 250px; }
  .geo-circle--2 { width: 150px; height: 150px; }
  .geo-circle--3 { display: none; }
  .geo-rect--1 { display: none; }
  .geo-tri--1 { display: none; }
  #hero h1 { font-size: 2.75rem; }
}
