/* Pizzeria Oleander — shared styles */

:root {
  --ink: #241e1b;
  --ink-soft: #4a4038;
  --cream: #fbf4ea;
  --cream-soft: #f3e8d8;
  --cream-deep: #ead9bd;
  --pink: #e6aec1;
  --pink-deep: #b96c86;
  --pink-pale: #f8e3ea;
  --terracotta: #c1602e;
  --terracotta-deep: #9c4a20;
  --olive: #4b5d3a;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
}

.font-display {
  font-family: 'Fraunces', 'Playfair Display', serif;
}

/* subtle grain texture overlay for depth */
.grain {
  position: relative;
  isolation: isolate;
}
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* layered, color-tinted shadows */
.shadow-float {
  box-shadow:
    0 2px 4px rgba(36, 30, 27, 0.04),
    0 12px 24px -8px rgba(185, 108, 134, 0.25),
    0 24px 48px -16px rgba(36, 30, 27, 0.18);
}
.shadow-card {
  box-shadow:
    0 1px 2px rgba(36, 30, 27, 0.05),
    0 8px 16px -6px rgba(36, 30, 27, 0.10);
}
.shadow-btn {
  box-shadow:
    0 1px 1px rgba(156, 74, 32, 0.25),
    0 8px 20px -6px rgba(193, 96, 46, 0.55);
}

/* hero video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

/* animations — transform/opacity only */
@keyframes rise-fade {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-rise {
  animation: rise-fade 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

@keyframes soft-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* quantity stepper */
.qty-btn {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, color 0.15s ease;
}
.qty-btn:hover { transform: translateY(-1px); }
.qty-btn:active { transform: scale(0.92); }

/* nav link underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1.5px;
  width: 0%;
  background: var(--terracotta);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

/* focus-visible ring, consistent everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}

/* star rating */
.stars {
  color: var(--terracotta);
  letter-spacing: 0.1em;
}

/* divider line echoing logo's circular rule */
.rule-line {
  height: 1px;
  background: linear-gradient(to right, transparent, currentColor, transparent);
  opacity: 0.3;
}

::selection {
  background: var(--pink);
  color: var(--ink);
}

/* scrollbar (webkit) tuned to brand */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--cream-deep); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink-deep); }
