/* Sweet Habit – Custom CSS (plain CSS only, no Tailwind directives) */

/* ─── Custom Properties ─────────────────────────────────────────── */
:root {
  --background: 40 30% 97%;
  --foreground: 220 15% 15%;
  --primary: #600040;
  --primary-light: #8a0058;
  --accent: #00D084;
  --cream: #FFF8F0;
  --dark: #1a0a12;
  --radius: 0.5rem;
}

/* ─── Google Fonts Assignment ───────────────────────────────────── */
.font-display,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
}

body,
.font-body,
p, a, span, li, label, input, textarea, button {
  font-family: 'Work Sans', system-ui, sans-serif;
}

/* ─── Skip Link ─────────────────────────────────────────────────── */
.wr-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: #600040;
  color: #FFF8F0;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.wr-skip-link:focus {
  top: 0;
}

/* ─── Hero Background ───────────────────────────────────────────── */
.hero-bg {
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(96, 0, 64, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 208, 132, 0.06) 0%, transparent 50%),
              #FFF8F0;
}

.hero-pattern {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(96,0,64,0.15) 1px, transparent 0);
  background-size: 32px 32px;
}

.tagline-pattern {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(96,0,64,0.4) 1px, transparent 0);
  background-size: 24px 24px;
}

/* ─── Text Stroke Effect ────────────────────────────────────────── */
.text-stroke {
  -webkit-text-stroke: 3px #1a0a12;
  color: transparent;
}

/* ─── Hero Reveal Animation ─────────────────────────────────────── */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text-col {
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-image-col {
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-img-reveal {
  animation: heroReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* ─── Gallery Hover ─────────────────────────────────────────────── */
.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

/* ─── Marquee Animation ─────────────────────────────────────────── */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee 22s linear infinite;
  width: max-content;
}

/* ─── Menu Card Hover Glow ──────────────────────────────────────── */
.menu-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* ─── Form Focus Ring ───────────────────────────────────────────── */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 0, 64, 0.15);
}

/* ─── Scroll-reveal utility (JS-driven) ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ─── Nav active state ──────────────────────────────────────────── */
.nav-link {
  position: relative;
}

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

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