/* Linton VFW Post 7118 — Public Site Styles */

:root {
  --navy: #1a2654;
  --navy-light: #243070;
  --red: #c41e3a;
  --red-light: #e0263f;
  --gold: #c9a84c;
  --gold-light: #f0d590;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --gray: #666;
  --gray-light: #eee;
  --text: #1a1a2e;
  --border: #ddd;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */

.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
}

.nav-brand {
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-brand .star { color: var(--gold); font-size: 1.3rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links li a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  display: block;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-links li a.nav-order {
  background: var(--red);
  color: var(--white);
  font-weight: 700;
}

.nav-links li a.nav-order:hover { background: var(--red-light); }

.nav-links li a.nav-admin {
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
}

.nav-links li a.nav-admin:hover {
  background: rgba(201,168,76,0.1);
  color: var(--gold-light);
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--navy-light);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { border-radius: 0; padding: 12px 24px; }
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0d1535 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.025) 40px, rgba(255,255,255,0.025) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px);
}

.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }

.hero-emblem {
  font-size: 5rem;
  color: var(--gold);
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(201,168,76,0.4);
  line-height: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-post {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-location {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.1s, opacity 0.15s;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-light); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover { background: rgba(201,168,76,0.1); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Section headings ────────────────────────────────────────────────────────── */

.section { padding: 60px 0; }
.section-alt { background: var(--white); }

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 2rem;
  color: var(--navy);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--red);
}

.section-head p {
  color: var(--gray);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ── Announcements ───────────────────────────────────────────────────────────── */

.announcements-section {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0;
}

.announce-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.announce-card:last-child { margin-bottom: 0; }

.announce-card h3 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.announce-card p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

.announce-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 16px;
}

/* ── Events cards ────────────────────────────────────────────────────────────── */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 4px solid var(--navy);
  transition: transform 0.15s;
}

.event-card:hover { transform: translateY(-3px); }
.event-card.featured { border-top-color: var(--gold); }

.event-card-date {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 14px;
}

.event-card-date .month {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.event-card-date .day {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-card-body { padding: 20px; }
.event-card-body h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.15rem; }

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.event-meta span {
  font-size: 0.85rem;
  color: var(--gray);
}

.event-meta span::before { margin-right: 6px; }
.event-meta .time::before { content: '🕐'; }
.event-meta .loc::before { content: '📍'; }

.featured-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.no-events {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.no-events .icon { font-size: 3rem; margin-bottom: 16px; }

/* ── Page content (about, membership) ───────────────────────────────────────── */

.page-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-content h2 { color: var(--navy); margin-top: 32px; margin-bottom: 12px; font-size: 1.7rem; }
.page-content h3 { color: var(--navy); margin-top: 24px; margin-bottom: 8px; font-size: 1.25rem; }
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin: 12px 0 16px 24px; }
.page-content li { margin-bottom: 6px; }
.page-content strong { font-weight: 600; }

/* ── Order page ──────────────────────────────────────────────────────────────── */

.order-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 800px) { .order-layout { grid-template-columns: 1fr; } }

.menu-section { margin-bottom: 32px; }

.menu-section h3 {
  font-size: 1.1rem;
  color: var(--navy);
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-section h3 .star { color: var(--gold); }

.menu-items { border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); background: var(--white); }

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-light);
  gap: 12px;
}

.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-size: 0.95rem; flex: 1; }
.menu-item-price { color: var(--red); font-weight: 700; font-size: 0.95rem; min-width: 48px; text-align: right; }

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border-radius: 20px;
  padding: 2px 4px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.1s;
}

.qty-btn:hover { background: var(--navy-light); }
.qty-num { min-width: 20px; text-align: center; font-weight: 700; font-size: 0.95rem; }

/* Order cart sticky */
.order-cart {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
  position: sticky;
  top: 80px;
}

.cart-head {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cart-items { padding: 16px 20px; min-height: 80px; }
.cart-empty { color: var(--gray); font-size: 0.9rem; font-style: italic; }

.cart-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 4px 0;
  border-bottom: 1px dashed var(--gray-light);
}

.cart-line:last-child { border-bottom: none; }

.cart-total {
  padding: 14px 20px;
  border-top: 2px solid var(--navy);
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
}

.cart-total .amount { color: var(--red); font-weight: 700; }

.cart-form { padding: 16px 20px; border-top: 1px solid var(--gray-light); }

.field-error { color: var(--red); font-size: 0.78rem; display: block; margin-top: 3px; min-height: 1em; }
.input-error { border-color: var(--red) !important; }

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea { resize: vertical; min-height: 60px; }

/* ── Sign In ─────────────────────────────────────────────────────────────────── */

.signin-wrap {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.signin-box {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.signin-box .emblem { font-size: 3rem; margin-bottom: 16px; }
.signin-box h2 { color: var(--navy); margin-bottom: 4px; }
.signin-box .sub { color: var(--gray); font-size: 0.9rem; margin-bottom: 32px; }

.signin-box .form-group { text-align: left; }

/* ── Toast / alerts ──────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  font-size: 0.9rem;
  z-index: 9999;
  max-width: 320px;
  animation: slideUp 0.3s ease;
}

.toast.success { background: #2d7a3a; border-left: 4px solid #5cb85c; }
.toast.error { background: #8b1a1a; border-left: 4px solid var(--red); }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */

.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 32px 20px;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer strong { color: var(--gold); }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--white); }

/* ── Utility ─────────────────────────────────────────────────────────────────── */

.star-divider {
  text-align: center;
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 12px;
  margin: 8px 0;
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-light) 25%, #e8e8e8 50%, var(--gray-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Modals ──────────────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}
