/* ============================================================
   MIDTOWN WOOD FIRED PIZZA — style.css
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --bg:            #0f1115;
  --panel:         #151922;
  --text:          #ffffff;
  --muted:         #b8c0cc;
  --accent:        #e53935;
  --header-h:      200px;   /* approx combined height of paddle + nav */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

/* ---------- Scroll Anchors ----------
   All sections get the same offset — the header height.
   No special-casing needed.
*/
section[id] {
  scroll-margin-top: var(--header-h);
}

/* ---------- Layout Helpers ---------- */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.narrow  { max-width: 700px; }
.center  { text-align: center; }
.hidden  { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, .85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* Logo strip */
.paddle-top {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  padding: 18px 0;
  display: flex;
  justify-content: center;
}

.logo-top img {
  width: min(220px, 70vw);
  height: auto;
  display: block;
}

/* Nav bar */
.header-inner { padding: 12px 0; }

.nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 700;
  transition: opacity .2s;
}

.btn:hover { opacity: .88; }

.btn-small { padding: 8px 16px; }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
}

/* ---------- Hero ---------- */
.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}

.hero-copy {
  padding: 24px 0;
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(24px, 4vw, 42px);
  margin: 0 0 10px;
}

.cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ---------- Sections ---------- */
.section     { padding: 60px 0; }
.section.alt { background: var(--panel); }

.big  { font-size: 26px; font-weight: 800; color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- Two-column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.feature-image img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* Menu: text first on mobile */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }

  #menu .menu-copy  { order: 1; }
  #menu .menu-image { order: 2; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform .25s ease;
}

.gallery img:hover { transform: scale(1.05); }

@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* ---------- Prep photo ---------- */
.prep-photo {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* ---------- Book / Form ---------- */
/* No layout on the section itself — .container.narrow handles width */

.form-intro {
  margin-bottom: 28px;
  opacity: .9;
}

.form-group { margin-bottom: 18px; }

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: var(--panel);
  color: var(--text);
  font-size: 16px;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(229, 57, 53, .2);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}

.btn-primary:hover { background: #c62828; }

@media (max-width: 600px) {
  .btn-primary { width: 100%; }
}

/* ---------- Contact ---------- */
.contact {
  padding: 120px 0 140px;
  position: relative;
}

/* Subtle radial glow */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(229, 57, 53, .12) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.contact h2 { font-size: clamp(32px, 4vw, 42px); margin-bottom: 20px; }

.cta-big a {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: .5px;
  color: #fff;
  text-decoration: none;
}

.contact a:hover { opacity: .85; }

/* ---------- Footer logo ---------- */
.footer-logo {
  margin-top: 80px;
  display: flex;
  justify-content: center;
}

.footer-logo img {
  background: #fff;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, .10);
  width: min(520px, 90vw);
  height: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Desktop hero ---------- */
@media (min-width: 1024px) {
  .hero-image img {
    height: 60vh;
    object-position: center 40%;
  }

  .hero-copy { margin-top: 40px; }
}

input[type="date"] {
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
}