/* ── The Eatery Culinary Group — style.css ─────────────────────────────── */

/* Variables */
:root {
  --navy:        #1E2B6E;
  --gold:        #EAAA00;
  --off-white:   #F9F7F2;
  --border:      #E8E4DA;
  --text-light:  #888;
  --radius:      8px;
  --radius-lg:   14px;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.10);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: #2a2a2a;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; }
.logo-img  { height: 44px; width: auto; object-fit: contain; }

/* ── Container & Section ───────────────────────────────────────────────── */
.container  { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 40px 0 60px; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold  { background: var(--gold);  color: var(--navy); }
.btn-navy  { background: var(--navy);  color: #fff; }
.btn-white { background: #fff; color: var(--navy); border: 1.5px solid var(--border); }
.btn-sm    { padding: 8px 16px; font-size: 13px; }

/* ── Flash messages ────────────────────────────────────────────────────── */
.flash-container { max-width: 1120px; margin: 12px auto 0; padding: 0 24px; }
.flash {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 8px;
  animation: fadeIn 0.3s ease;
}
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.flash-info    { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── Notice banner ─────────────────────────────────────────────────────── */
.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff8e1;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #5a4800;
}

/* ── Order layout (two columns) ────────────────────────────────────────── */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.order-sidebar { position: sticky; top: 84px; }
.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.sidebar-header {
  background: var(--navy);
  padding: 14px 20px;
}
.sidebar-header h3 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
}
.sidebar-body { padding: 16px 20px; }
.estimate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: #555;
}
.estimate-row:last-of-type  { border-bottom: none; }
.estimate-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  padding-top: 10px;
  margin-top: 4px;
}
.estimate-note {
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 12px;
  color: #666;
  margin-top: 14px;
  line-height: 1.6;
}
.hidden { display: none !important; }

/* ── Menu sections ─────────────────────────────────────────────────────── */
.menu-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.menu-section-header {
  background: var(--navy);
  padding: 14px 24px;
}
.menu-section-header h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0;
}

/* ── Menu item rows ────────────────────────────────────────────────────── */
.menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  transition: background 0.1s;
}
.menu-item-row:last-child { border-bottom: none; }
.menu-item-row:hover { background: var(--off-white); }
.menu-item-info { flex: 1; min-width: 0; }
.menu-item-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.3;
}
.menu-item-desc {
  font-size: 13px;
  color: #777;
  margin-top: 3px;
  line-height: 1.5;
}
.menu-item-serves {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 4px;
}
.menu-item-price {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  white-space: nowrap;
}

/* ── Quantity control ──────────────────────────────────────────────────── */
.qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--off-white);
  border-radius: 999px;
  padding: 3px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.qty-btn:hover  { background: #2e3f9e; }
.qty-btn:active { transform: scale(0.92); }
.qty-display {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-group  { margin-bottom: 20px; }
.form-label  {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.req { color: #dc2626; margin-left: 2px; }
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: #222;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,43,110,0.10);
}
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: #222;
  min-height: 90px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}
.form-textarea:focus { border-color: var(--navy); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Radio options ─────────────────────────────────────────────────────── */
.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.radio-option {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.radio-option:hover   { border-color: var(--navy); background: var(--off-white); }
.radio-option.selected { border-color: var(--navy); background: rgba(30,43,110,0.04); }
.radio-option input   { position: absolute; opacity: 0; pointer-events: none; }
.radio-option label   { font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer; display: block; }
.radio-option p       { font-size: 12px; color: var(--text-light); margin-top: 3px; }

/* ── Delivery fields ───────────────────────────────────────────────────── */
.delivery-fields {
  display: none;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 12px;
  margin-bottom: 8px;
}
.delivery-fields.visible { display: block; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  margin-top: auto;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {}
.footer-logo    { height: 52px; margin-bottom: 14px; filter: brightness(10); }
.footer-tagline { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-social  { display: flex; gap: 12px; }
.footer-social a {
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
  display: flex;
  align-items: center;
}
.footer-social a:hover { color: var(--gold); }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col ul   { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col address { font-style: normal; font-size: 13px; line-height: 1.9; }
.footer-col address a { color: rgba(255,255,255,0.65); }
.footer-col address a:hover { color: #fff; }
.footer-col p   { font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.footer-bottom  {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 18px 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ── Page hero (used in confirmation, payment) ─────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 48px 24px;
  text-align: center;
}
.page-hero h1  { color: #fff; font-size: 2rem; margin: 8px 0 12px; }
.page-hero .eyebrow { color: var(--gold); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-sidebar { position: static; }
  .footer-inner  { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .form-row      { grid-template-columns: 1fr; }
  .radio-group   { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr; gap: 24px; }
  .nav-inner     { padding: 0 16px; }
  .container     { padding: 0 16px; }
  .menu-item-row { padding: 12px 16px; }
}
