/* ============================================================
   Panino's Pizza & Pasta | styles.css
   Dark Italian Premium | Downtown Orlando
   ============================================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/assets/fonts/cormorant-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- Variables --- */
:root {
  --primary: #C41E3A;
  --primary-dark: #9e1830;
  --accent: #D4A843;
  --accent-soft: rgba(212, 168, 67, 0.15);
  --bg: #1C1917;
  --bg-elevated: #292524;
  --bg-card: #231f1e;
  --text: #F2EDE4;
  --text-muted: rgba(242, 237, 228, 0.85);
  --text-subtle: rgba(242, 237, 228, 0.62);
  --border: rgba(242, 237, 228, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 8px;
  --radius-lg: 16px;
  --max-w: 1200px;
  --header-h: 72px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --transition: 0.25s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.12; }
p { margin: 0; line-height: 1.65; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
address { font-style: normal; }

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--space-xl) 0; }
.section--tight { padding: var(--space-lg) 0; }
.section-header { margin-bottom: var(--space-lg); text-align: center; max-width: 42rem; margin-inline: auto; }
.section-header p { margin-top: var(--space-sm); color: var(--text-muted); }

/* --- Typography --- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
h1 { font-size: clamp(2.25rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-muted); line-height: 1.7; }
.text-center { text-align: center; }
.text-gold { color: var(--accent); }
.text-muted { color: var(--text-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn--outline:hover { background: rgba(242, 237, 228, 0.08); }
.btn--ghost { background: rgba(242, 237, 228, 0.08); color: var(--text); }
.btn--ghost:hover { background: rgba(242, 237, 228, 0.14); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* --- Header --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.88) 0%, rgba(28, 25, 23, 0.45) 65%, transparent 100%);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.header.scrolled,
.header--solid {
  background: rgba(28, 25, 23, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); width: 100%; }
.header__logo img { height: 2.5rem; width: auto; }
.header__nav { display: none; align-items: center; gap: 1.75rem; }
.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.header__nav a:hover, .header__nav a.is-active { color: var(--accent); }
.header__actions { display: none; align-items: center; gap: var(--space-sm); }
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: var(--space-xl) var(--space-md);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
}
.mobile-nav.open { visibility: visible; opacity: 1; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.mobile-nav .btn { margin-top: var(--space-sm); }

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  z-index: 180;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}
.floating-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta .btn {
  padding: 0.85rem 1.5rem;
  box-shadow: var(--shadow);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(28, 25, 23, 0.97) 0%, rgba(28, 25, 23, 0.82) 28%, rgba(28, 25, 23, 0.45) 55%, rgba(28, 25, 23, 0.55) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 40rem; }
.hero h1 {
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero .lead {
  margin-bottom: var(--space-md);
  max-width: 32rem;
  color: rgba(242, 237, 228, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.hero .btn--outline {
  border-color: rgba(242, 237, 228, 0.9);
  background: rgba(28, 25, 23, 0.35);
  backdrop-filter: blur(6px);
}
.hero .btn--outline:hover {
  background: rgba(242, 237, 228, 0.12);
  border-color: var(--text);
}
.hero__since {
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* --- Page hero (inner pages) --- */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: var(--space-sm); }
.page-hero .lead { max-width: 36rem; }

/* --- Cards grid --- */
.card-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: rgba(212, 168, 67, 0.3); }
.card__img { aspect-ratio: 4/3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: var(--space-md); }
.card__body h3 { margin-bottom: 0.5rem; }
.card__body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: var(--space-sm); }
.card .btn--ghost { border: 1px solid var(--border); }
.card .btn--ghost:hover { border-color: rgba(212, 168, 67, 0.4); color: var(--accent); }
.card__price { font-weight: 600; color: var(--accent); font-size: 0.9rem; }

/* --- About split --- */
.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}
.split__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.split__content .lead { margin: var(--space-md) 0; }

/* --- CTA banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #a01830 100%);
  padding: var(--space-xl) 0;
  text-align: center;
}
.cta-banner h2 { margin-bottom: var(--space-sm); }
.cta-banner p { color: rgba(255,255,255,0.88); max-width: 32rem; margin: 0 auto var(--space-md); }
.cta-banner .btn--accent { box-shadow: var(--shadow); }

/* --- Menu category cards --- */
.menu-cats {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(2, 1fr);
}
.menu-cat {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--border);
}
.menu-cat img { width: 100%; height: 100%; object-fit: cover; }
.menu-cat__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(28,25,23,0.92) 0%, rgba(28,25,23,0.35) 55%, transparent 100%);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* --- Lunch specials --- */
.lunch-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.lunch-block h2 { margin-bottom: var(--space-sm); }
.lunch-list { margin: var(--space-md) 0; }
.lunch-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.lunch-list li:last-child { border-bottom: none; }
.lunch-list .price { color: var(--accent); font-weight: 600; white-space: nowrap; }
.lunch-hours { font-size: 0.9rem; color: var(--text-muted); margin-top: var(--space-sm); }

/* --- Gallery masonry --- */
.gallery-grid {
  columns: 2;
  column-gap: var(--space-sm);
}
.gallery-grid__item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-grid__item img { width: 100%; }

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  gap: var(--space-md);
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.review-card__stars { color: var(--accent); font-size: 1rem; letter-spacing: 0.1em; margin-bottom: var(--space-sm); }
.review-card blockquote { font-style: italic; color: var(--text-muted); margin-bottom: var(--space-sm); }
.review-card cite { font-size: 0.85rem; color: var(--text-subtle); font-style: normal; }
.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  padding: 0.5rem 1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent);
}
.reviews-badge-wrap { text-align: center; margin-top: var(--space-md); }

/* --- Location --- */
.location-grid {
  display: grid;
  gap: var(--space-lg);
}
.location-info { display: grid; gap: var(--space-md); }
.info-block h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.35rem; color: var(--accent); }
.info-block p, .info-block a { color: var(--text-muted); font-size: 0.95rem; }
.info-block a:hover { color: var(--text); }
.hours-table { width: 100%; font-size: 0.9rem; }
.hours-table td { padding: 0.35rem 0; color: var(--text-muted); }
.hours-table td:last-child { text-align: right; color: var(--text); }
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* --- Footer --- */
.footer {
  background: #141210;
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer__grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer__brand img { height: 2rem; margin-bottom: var(--space-sm); }
.footer__brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 20rem; }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.footer__col ul { display: grid; gap: 0.5rem; }
.footer__col a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer__col a:hover { color: var(--text); }
.footer__social { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.footer__social a {
  min-width: 40px; height: 40px;
  padding: 0 0.65rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition), border-color var(--transition);
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-subtle);
}
.footer__bottom a { color: var(--text-muted); }
.footer__bottom a:hover { color: var(--text); }

/* --- Menu page --- */
.menu-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(28, 25, 23, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.menu-nav__inner { display: flex; gap: 0.5rem; min-width: max-content; padding: 0 1.25rem; }
.menu-nav__inner .container { display: flex; gap: 0.5rem; padding: 0; }
.menu-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.menu-tab:hover { color: var(--text); background: rgba(242,237,228,0.06); }
.menu-tab.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.menu-section { scroll-margin-top: calc(var(--header-h) + 60px); padding: var(--space-lg) 0; border-bottom: 1px solid var(--border); }
.menu-section:last-child { border-bottom: none; }
.menu-section h2 { margin-bottom: var(--space-md); color: var(--accent); }
.menu-items { display: grid; gap: var(--space-sm); }
.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}
.menu-item:last-child { border-bottom: none; }
.menu-item__name { font-weight: 600; }
.menu-item__desc { grid-column: 1; font-size: 0.9rem; color: var(--text-muted); }
.menu-item__price { grid-row: 1 / 3; align-self: start; color: var(--accent); font-weight: 600; white-space: nowrap; }
.menu-note {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Contact form --- */
.form { display: grid; gap: var(--space-sm); max-width: 32rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 500; }
.form input, .form textarea, .form select {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--accent);
}
.form textarea { min-height: 140px; resize: vertical; }
.form__success {
  padding: var(--space-sm) var(--space-md);
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  border-radius: var(--radius);
  color: #a5d6a7;
  display: none;
}
.form__success.is-visible { display: block; }

/* --- Placeholder page --- */
.placeholder-page {
  text-align: center;
  padding: var(--space-xl) 0;
  max-width: 32rem;
  margin: 0 auto;
}
.placeholder-page p { color: var(--text-muted); margin: var(--space-md) 0; }

/* --- Reveal animations --- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- 404 --- */
.error-page {
  min-height: 80svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}
.error-page h1 { font-size: 6rem; color: var(--primary); line-height: 1; }
.error-page p { color: var(--text-muted); margin: var(--space-md) 0; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  .section { padding: 5rem 0; }
  .header__nav { display: flex; }
  .header__actions { display: flex; }
  .hamburger { display: none; }
  .floating-cta { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .menu-cats { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { columns: 3; column-gap: var(--space-md); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .location-grid { grid-template-columns: 1fr 1.4fr; }
  .footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .menu-items { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .menu-item { border-bottom: none; padding: var(--space-sm); background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); }
}

@media (min-width: 1024px) {
  .container { padding: 0 2.5rem; }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .menu-cats { grid-template-columns: repeat(6, 1fr); }
  .hero { align-items: center; padding-bottom: 5rem; }
  .hero__content { max-width: 44rem; }
}
