/* Antico Forno Bacci — base styles beyond Tailwind utilities */

@font-face {
  font-family: 'Antique Olive Std';
  src: url('../fonts/AntiqueOliveStd-Roman.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Antique Olive Std';
  src: url('../fonts/AntiqueOliveStd-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Antique Olive Std';
  src: url('../fonts/AntiqueOliveStd-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Antique Olive Std';
  src: url('../fonts/AntiqueOliveStd-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bordeaux-900: #3d1102;
  --bordeaux-800: #5e1a03;
  --bordeaux-700: #7f2203;
  --bordeaux-600: #8a320f;
  --bordeaux-500: #9c4726;
  --cream-50: #fdfaf4;
  --cream-100: #f7efe0;
  --cream-200: #f0e4cd;
  --gold-500: #b8862e;
  --rose-300: #dfa8b4;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: var(--cream-50);
  font-feature-settings: "kern" 1;
}

/* Subtle warm paper texture, very low contrast so it never fights content */
.texture-bg {
  background-image: radial-gradient(rgba(107, 20, 32, 0.035) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out;
  min-height: 44px;
}
.btn:hover {
  transform: scale(1.06) translateY(-2px);
}
.btn:active {
  transform: scale(0.94);
  transition: transform 120ms ease-out;
}
.btn-primary {
  background-color: var(--bordeaux-700);
  color: var(--cream-50);
  box-shadow: 0 8px 20px -8px rgba(107, 20, 32, 0.55);
}
.btn-primary:hover {
  background-color: var(--bordeaux-600);
}
.btn-outline {
  background-color: transparent;
  color: var(--cream-50);
  border: 1.5px solid rgba(253, 250, 244, 0.7);
}
.btn-outline:hover {
  background-color: rgba(253, 250, 244, 0.12);
}
.btn-outline-dark {
  background-color: transparent;
  color: var(--bordeaux-700);
  border: 1.5px solid var(--bordeaux-700);
}
.btn-outline-dark:hover {
  background-color: var(--bordeaux-700);
  color: var(--cream-50);
}

/* Focus visibility across the site */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scroll reveal — scenic entrance: rises, scales up and settles with an expo-out ease */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.95);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Bouncy hover for cards, icons and tappable tiles */
.hover-bounce {
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 250ms ease-out;
}
.hover-bounce:hover {
  transform: translateY(-6px) scale(1.03);
}
.hover-bounce:active {
  transform: scale(0.97);
  transition: transform 120ms ease-out;
}

/* Custom bread-loaf cursor (desktop, fine-pointer only — see script.js) */
body.bread-cursor-active,
body.bread-cursor-active a,
body.bread-cursor-active button,
body.bread-cursor-active input,
body.bread-cursor-active textarea {
  cursor: none;
}
#bread-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 29px;
  margin: -14px 0 0 -22px;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
#bread-cursor img {
  width: 100%;
  height: 100%;
  display: block;
}
@media (hover: none), (pointer: coarse) {
  #bread-cursor {
    display: none;
  }
}

/* Decorative quote marks */
.quote-mark {
  font-family: 'Antique Olive Std', serif;
  line-height: 0.6;
}

/* Hand-drawn underline squiggle used for eyebrow labels and nav hover/active state */
.squiggle-underline {
  display: block;
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left center;
  transition: opacity 250ms ease-out, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
a:hover .squiggle-underline,
a:focus-visible .squiggle-underline,
a.nav-active .squiggle-underline {
  opacity: 1;
  transform: scaleX(1);
}

/* Mobile nav */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out;
}
#mobile-menu.open {
  max-height: 480px;
}

/* Header elevation on scroll */
#site-header.scrolled {
  box-shadow: 0 4px 24px -8px rgba(36, 28, 24, 0.18);
}

/* Tabular numerals for hours/prices */
.tabular {
  font-variant-numeric: tabular-nums;
}
