/*
 * style.css — One More
 * Core CSS variables, resets, and utility classes.
 * The site uses Tailwind-style utility classes (defined below)
 * plus a small set of semantic custom classes.
 */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
/* Playfair Display (serif headings) + DM Sans (body) loaded via HTML <link> */

/* ── CSS CUSTOM PROPERTIES (DESIGN TOKENS) ─────────────────── */
:root {
  /* Color palette (HSL values for use with hsl()) */
  --background:    40 30% 97%;
  --foreground:    30 10% 15%;
  --card:          40 25% 95%;
  --muted:         35 12% 90%;
  --muted-foreground: 30 8% 45%;
  --primary:       30 10% 15%;
  --primary-foreground: 40 30% 97%;
  --secondary:     35 15% 88%;
  --secondary-foreground: 30 10% 25%;
  --accent:        25 35% 85%;
  --accent-foreground: 30 10% 15%;
  --border:        35 15% 85%;
  --input:         35 15% 88%;
  --ring:          30 10% 30%;
  --cream:         40 30% 97%;
  --cream-dark:    38 25% 92%;
  --charcoal:      30 10% 15%;
  --charcoal-light:30 8% 35%;

  /* Typography */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans:  "DM Sans", system-ui, sans-serif;

  /* Spacing */
  --section-padding:   clamp(4rem, 10vw, 8rem);
  --container-padding: clamp(1.5rem, 5vw, 4rem);

  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-cart:   transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;

  /* Border radius */
  --radius: 0.25rem;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; line-height: 1.5; }
body  {
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; height: auto; }
button { background: transparent; border: none; font-family: inherit; color: inherit; cursor: pointer; padding: 0; outline: none; appearance: none; }

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

main > section, .animate-slide, .fade-in {
  animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ── SEMANTIC UTILITY CLASSES ──────────────────────────────── */
.section-padding  { padding-top: var(--section-padding); padding-bottom: var(--section-padding); }
.container-padding{ padding-left: var(--container-padding); padding-right: var(--container-padding); box-sizing: border-box; width: 100%; }

/* Backgrounds */
.bg-background { background-color: hsl(var(--background)); }
.bg-cream-dark { background-color: hsl(var(--cream-dark)); }
.bg-secondary  { background-color: hsl(var(--secondary)); }
.bg-primary    { background-color: hsl(var(--primary)); }

/* Text colours */
.text-foreground         { color: hsl(var(--foreground)); }
.text-muted-foreground   { color: hsl(var(--muted-foreground)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }

/* ── EYEBROW (label above headings) ───────────────────────── */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.025em;
  padding: 0.75rem 2rem;
  height: 3rem;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary:hover { background-color: hsl(var(--charcoal-light)); }

.btn-primary-inverted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--primary-foreground));
  color: hsl(var(--primary));
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.025em;
  padding: 0.75rem 2rem;
  height: 3rem;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}
.btn-primary-inverted:hover { opacity: 0.9; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--foreground));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.025em;
  padding: 0.75rem 2rem;
  height: 3rem;
  transition: var(--transition-fast);
  cursor: pointer;
  background: transparent;
}
.btn-outline:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.grid          { display: grid; }
.flex          { display: flex; }
.hidden        { display: none; }
.block         { display: block; }
.relative      { position: relative; }
.absolute      { position: absolute; }
.fixed         { position: fixed; }
.top-0         { top: 0; }
.right-0       { right: 0; }
.bottom-0      { bottom: 0; }
.left-0        { left: 0; }
.inset-0       { top: 0; right: 0; bottom: 0; left: 0; }
.z-0           { z-index: 0; }
.z-10          { z-index: 10; }
.z-50          { z-index: 50; }
.w-full        { width: 100%; }
.h-full        { height: 100%; }
.min-h-screen  { min-height: 100vh; }
.max-w-xl      { max-width: 36rem; }
.max-w-2xl     { max-width: 42rem; }
.max-w-3xl     { max-width: 48rem; }
.max-w-lg      { max-width: 32rem; }
.mx-auto       { margin-left: auto; margin-right: auto; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center{ justify-content: center; }
.justify-between{justify-content: space-between; }
.flex-col      { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-1\.5      { gap: 0.375rem; }
.gap-4         { gap: 1rem; }
.gap-6         { gap: 1.5rem; }
.gap-8         { gap: 2rem; }
.gap-10        { gap: 2.5rem; }
.gap-14        { gap: 3.5rem; }
.gap-12        { gap: 3rem; }
.gap-16        { gap: 4rem; }
.text-center   { text-align: center; }
.overflow-hidden{ overflow: hidden; }
.object-cover  { object-fit: cover; }
.italic        { font-style: italic; }
.uppercase     { text-transform: uppercase; }
.rounded-sm    { border-radius: var(--radius); }
.rounded-full  { border-radius: 9999px; }
.border-t      { border-top: 1px solid hsl(var(--border)); }
.border-l-2    { border-left: 2px solid hsl(var(--border)); }
.border        { border: 1px solid hsl(var(--border)); }
.pl-6          { padding-left: 1.5rem; }
.pl-8          { padding-left: 2rem; }

/* Typography scale */
.font-serif    { font-family: var(--font-serif); }
.font-medium   { font-weight: 500; }
.text-xs       { font-size: 0.75rem; }
.text-sm       { font-size: 0.875rem; line-height: 1.25rem; }
.text-base     { font-size: 1rem; }
.text-lg       { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl       { font-size: 1.25rem; }
.text-2xl      { font-size: 1.5rem; }
.text-3xl      { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl      { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl      { font-size: 3rem; line-height: 1; }
.text-6xl      { font-size: 3.75rem; line-height: 1; }
.leading-tight  { line-height: 1.35; }
.leading-relaxed{ line-height: 1.625; }
.leading-\[1\.1\]{ line-height: 1.25; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide  { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest{ letter-spacing: 0.1em; }
.tracking-\[0\.2em\]{ letter-spacing: 0.2em; }
.opacity-50    { opacity: 0.5; }
.opacity-70    { opacity: 0.7; }
.opacity-80    { opacity: 0.8; }

/* Spacing utilities */
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }   .mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }   .mb-10{ margin-bottom: 2.5rem; }
.mb-12{ margin-bottom: 3rem; }   .mb-16{ margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }   .mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }      .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }      .mt-10{ margin-top: 2.5rem; }
.mt-12{ margin-top: 3rem; }      .pt-32{ padding-top: 8rem; }
.pb-16{ padding-bottom: 4rem; }  .space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12> * + * { margin-top: 3rem; }
.p-2 { padding: 0.5rem; } .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Aspect ratios */
.aspect-\[4\/3\] { aspect-ratio: 4/3; }

/* Gradient overlay */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-background\/60 { --tw-gradient-from: hsl(var(--background) / 0.6); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.via-background\/30  { --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--background) / 0.3), var(--tw-gradient-to, transparent); }
.to-transparent       { --tw-gradient-to: transparent; }

/* Image/bg overlays */
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-foreground\/60 { background-color: hsl(var(--foreground) / 0.6); }
.bg-foreground\/40 { background-color: hsl(var(--foreground) / 0.4); }

/* Active nav link */
.nav-active { color: hsl(var(--foreground)) !important; opacity: 1 !important; }

/* Hover transitions */
.transition-opacity    { transition: opacity var(--transition-fast); }
.transition-colors     { transition: color var(--transition-fast), background-color var(--transition-fast); }
.transition-transform  { transition: transform var(--transition-smooth); }
.hover\:opacity-60:hover { opacity: 0.6; }
.hover\:opacity-70:hover { opacity: 0.7; }
.hover\:scale-105:hover  { transform: scale(1.05); }
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* W/H combos */
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.w-6  { width: 1.5rem; }
.h-px { height: 1px; }
.w-8  { width: 2rem; }
.h-8  { height: 2rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:gap-2\.5 { gap: 0.625rem; }
  .sm\:flex { display: flex; }
  .sm\:mt-0 { margin-top: 0; }
}

@media (min-width: 768px) {
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-8xl { font-size: 6rem; line-height: 1; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:block { display: block; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-1  { grid-column: span 1 / span 1; }
  .lg\:gap-8  { gap: 2rem; }
  .lg\:gap-10 { gap: 2.5rem; }
  .lg\:gap-14 { gap: 3.5rem; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:gap-20 { gap: 5rem; }
  .lg\:gap-24 { gap: 6rem; }
  .lg\:pt-40  { padding-top: 10rem; }
  .lg\:pb-24  { padding-bottom: 6rem; }
  .lg\:pb-20  { padding-bottom: 5rem; }
  .lg\:text-2xl { font-size: 1.5rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .lg\:h-24 { height: 6rem; }
  .lg\:aspect-auto { aspect-ratio: auto; }
  .lg\:h-full { height: 100%; }
}
/* ── CART DRAWER ─────────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 100;
  background-color: hsl(var(--foreground) / 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-fast);
}
.cart-overlay.open {
  opacity: 1; pointer-events: auto;
}

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 101;
  width: 100%; max-width: 24rem;
  background-color: hsl(var(--background));
  border-left: 1px solid hsl(var(--border));
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: var(--transition-cart);
  will-change: transform;
  display: flex; flex-direction: column;
}
.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  display: flex; justify-content: space-between; align-items: center;
}
.cart-body {
  flex: 1; overflow-y: auto; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--cream-dark));
}

.cart-item {
  display: flex; gap: 1rem; align-items: center;
}
.cart-item-img {
  width: 4rem; height: 4rem; object-fit: cover;
  border-radius: var(--radius); background-color: hsl(var(--secondary));
}
.cart-item-details { flex: 1; }
.cart-item-title { font-family: var(--font-serif); font-size: 1.125rem; }
.cart-item-price { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.cart-remove-btn { font-size: 0.75rem; text-decoration: underline; cursor: pointer; color: hsl(var(--muted-foreground)); background: none; border: none; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

/* ── ONBOARDING MODAL ──────────────────────────────────────── */
.onboarding-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.onboarding-overlay.active {
  opacity: 1; pointer-events: auto;
}
.onboarding-modal {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  width: 90%; max-width: 36rem;
  padding: 4rem 3rem;
  position: relative;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  text-align: center;
}
.onboarding-overlay.active .onboarding-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.onboarding-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid transparent;
  transition: var(--transition-fast);
  cursor: pointer;
}
.onboarding-close:hover { border-color: hsl(var(--border)); }
.onboarding-step {
  display: none;
  animation: fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.onboarding-step.active { display: block; }
.onboarding-progress {
  display: flex; gap: 0.75rem; justify-content: center; margin-top: 3rem;
}
.onboarding-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: hsl(var(--border));
  transition: var(--transition-fast);
}
.onboarding-dot.active { background: hsl(var(--foreground)); transform: scale(1.2); }
.flex-1 { flex: 1; }

.mr-10 { margin-right: 2.5rem; }
.ml-auto { margin-left: auto; }

/* Mobile Menu Overlay Classes */
.h-0\.5 { height: 0.125rem; }
.w-5 { width: 1.25rem; }
.rounded-full { border-radius: 9999px; }
.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: hsl(var(--background));
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
.mobile-menu-overlay.open {
  transform: translateX(0);
}
