/*
 * Mikey's Diner - Main Stylesheet
 * Color scheme from diner menu PDFs: red, cream, gold, black.
 */

:root {
  /* Diner palette (menu-style) */
  --diner-red: #b91c1c;
  --diner-red-dark: #991b1b;
  --diner-red-light: #fef2f2;
  --diner-cream: #fef9e7;
  --diner-cream-dark: #f5e6c8;
  --diner-gold: #d4a017;
  --diner-gold-light: #fef3c7;
  --diner-black: #1c1917;
  --diner-charcoal: #292524;

  --primary-color: var(--diner-red);
  --primary-dark: var(--diner-red-dark);
  --secondary-color: var(--diner-black);
  --accent-color: var(--diner-gold);
  --text-color: var(--diner-charcoal);
  --text-light: #57534e;
  --text-on-dark: #fff;
  --bg-light: var(--diner-cream);
  --bg-body: var(--diner-cream);
  --border-color: #e7e5e4;
  --success-color: #15803d;
  --error-color: #b91c1c;
  --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.08);
  --shadow: 0 8px 24px rgba(28, 25, 23, 0.12);
  --radius: 12px;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  --container: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background: var(--bg-body);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 70px 0; }
.bg-light { background: var(--diner-cream-dark); }
.bg-red { background: var(--diner-red); color: #fff; }

/* ========== Header (red band, white text) ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--diner-red);
  border-bottom: 4px solid var(--diner-gold);
  box-shadow: var(--shadow);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--diner-gold);
  color: var(--diner-black);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  border: 2px solid rgba(255,255,255,0.9);
}
.logo-text {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
}
.nav-menu { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: rgba(255,255,255,0.2); color: #fff; }
.nav-link.active { background: var(--diner-gold); color: var(--diner-black); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle .bar {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--diner-red);
  color: #fff;
  border-color: var(--diner-red-dark);
}
.btn-primary:hover {
  background: var(--diner-red-dark);
  border-color: var(--diner-red);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.9);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.btn-secondary {
  background: var(--diner-black);
  color: #fff;
  border-color: var(--diner-charcoal);
}
.btn-secondary:hover {
  background: var(--diner-charcoal);
  color: #fff;
}
.btn-gold {
  background: var(--diner-gold);
  color: var(--diner-black);
  border-color: #b45309;
}
.btn-gold:hover { filter: brightness(1.08); color: var(--diner-black); }
.btn-block { width: 100%; }

/* ========== Hero (with background image) ========== */
.hero {
  position: relative;
  min-height: 75vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(185,28,28,0.88) 0%, rgba(28,25,23,0.75) 60%, rgba(28,25,23,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 80px 0 100px;
  text-align: left;
}
.hero h1 {
  font-family: var(--font-secondary);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero .subtitle {
  color: rgba(255,255,255,0.95);
  font-size: 1.12rem;
  max-width: 52ch;
  line-height: 1.6;
}
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.trust-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}
.trust-pill {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.trust-pill i { margin-right: 6px; opacity: 0.95; }

/* Legacy hero (if no img) */
.hero-static-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--diner-red) 0%, var(--diner-charcoal) 100%);
}
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }

/* ========== Section headers ========== */
.section-header { text-align: center; margin-bottom: 36px; }
.section-subtitle {
  display: inline-block;
  color: var(--diner-red);
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 0.8rem;
}
.section-title {
  font-family: var(--font-secondary);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--diner-black);
  margin-top: 10px;
}

/* ========== Cards (cream/white with red accent) ========== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--diner-red);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--diner-cream-dark);
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 20px; }
.card h3 {
  font-family: var(--font-secondary);
  color: var(--diner-black);
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.card p { color: var(--text-light); font-size: 0.95rem; }
.card .btn { margin-top: 14px; }

.featured-item { display: flex; gap: 12px; align-items: flex-start; }
.price { font-weight: 900; color: var(--diner-red); }
.pill {
  display: inline-block;
  background: var(--diner-gold-light);
  border: 1px solid var(--diner-gold);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  color: #92400e;
  font-size: 0.78rem;
}

/* ========== Footer (black with gold accent) ========== */
.footer {
  background: var(--diner-black);
  color: #fff;
  border-top: 4px solid var(--diner-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer h3 {
  font-family: var(--font-secondary);
  margin-bottom: 12px;
  color: var(--diner-gold);
  font-size: 1.1rem;
}
.footer p, .footer a { color: rgba(255,255,255,0.88); }
.footer a:hover { color: var(--diner-gold); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 28px;
  padding-top: 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ========== Forms ========== */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { font-weight: 700; color: var(--diner-black); }
input, select, textarea {
  font-family: inherit;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--diner-red);
}
textarea { resize: vertical; }
.form-message { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.form-message.success { background: #dcfce7; border: 1px solid #22c55e; color: #166534; }
.form-message.error { background: #fee2e2; border: 1px solid #ef4444; color: #b91c1c; }

/* ========== Page hero (inner pages) ========== */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.page-hero .hero-bg-img { background-image: var(--page-hero-bg); }
.page-hero .hero-overlay { background: rgba(185,28,28,0.85); }
.page-hero-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 70px 20px;
}
.page-hero h1 {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 8px 0 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.page-hero p { color: rgba(255,255,255,0.95); font-size: 1.05rem; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--diner-red);
  color: #fff;
  display: none;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 60;
  border: 2px solid var(--diner-gold);
}
.back-to-top.show { display: grid; }
.back-to-top:hover { background: var(--diner-red-dark); color: #fff; }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--diner-red);
    border-bottom: 4px solid var(--diner-gold);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .nav-menu.active { display: flex; }
  .nav-link { padding: 14px; }
}
