/* ============================================================
   Loretta's — shared styles for booking pages
   (events.html, account.html, admin.html)
   Palette + components matched to index.html
   ============================================================ */

:root {
  --cream: #faf4ec;
  --cream-deep: #f3e7d7;
  --tan: #e2c39c;
  --tan-soft: #edd7bc;
  --caramel: #d9a86f;
  --caramel-deep: #96601f;
  --green: #5c6f5a;
  --green-deep: #414f3f;
  --brown: #6f4e37;
  --brown-deep: #573b28;
  --chocolate: #3f2a26;
  --text-muted: #857260;
  --danger: #b34a3f;
  --danger-soft: #f6e0dd;
  --ok: #5c6f5a;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--chocolate);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; }

/* ---------- Nav (matches index.html) ---------- */
.site-logo {
  position: fixed;
  top: clamp(0.85rem, 2.6vw, 1.5rem);
  left: clamp(0.85rem, 2.6vw, 1.5rem);
  z-index: 50;
  width: clamp(80px, 9vw, 120px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(87, 59, 40, 0.2));
}

.site-nav {
  position: fixed;
  top: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 0.75rem 0.65rem 1.5rem;
  background: rgba(250, 244, 236, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 195, 156, 0.6);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(87, 59, 40, 0.18);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--chocolate);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--caramel-deep); font-weight: 600; }

.nav-cta {
  padding: 0.7rem 1.5rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---------- Type ---------- */
.eyebrow {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--green);
}
h1 em, h1 span { font-style: italic; font-weight: 500; color: var(--caramel-deep); }

h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--green-deep);
}

.lede {
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 38rem;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: inline-block;
  border: none;
}

.btn-primary {
  background: var(--caramel);
  color: var(--chocolate);
  box-shadow: 0 8px 24px rgba(150, 96, 31, 0.35);
}
.btn-primary:hover {
  background: var(--caramel-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(150, 96, 31, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--tan);
}
.btn-secondary:hover { border-color: var(--green); transform: translateY(-2px); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 2px solid var(--danger-soft);
}
.btn-danger:hover { border-color: var(--danger); transform: translateY(-2px); }

.btn-small { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- Page shell ---------- */
.page-wrap {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(7rem, 14vw, 9rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.page-head { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 0.9rem; }

img { height: auto; }

/* ---------- Cards / panels ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--tan-soft);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(87, 59, 40, 0.1);
  padding: clamp(1.25rem, 3vw, 2rem);
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: 0.88rem; color: var(--brown-deep); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--tan-soft);
  border-radius: 14px;
  background: var(--cream);
  color: var(--chocolate);
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--caramel); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-error {
  display: none;
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.form-error.show { display: block; }

.form-success {
  display: none;
  background: #e8efe6;
  color: var(--green-deep);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.form-success.show { display: block; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.badge-confirmed { background: #e8efe6; color: var(--green-deep); }
.badge-cancelled { background: var(--cream-deep); color: var(--text-muted); }
.badge-refunded  { background: var(--danger-soft); color: var(--danger); }
.badge-soldout   { background: var(--danger-soft); color: var(--danger); }
.badge-spaces    { background: var(--tan-soft); color: var(--caramel-deep); }
.badge-low       { background: #fbe9d2; color: #b35c10; }

/* ---------- Demo mode banner ---------- */
.demo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--green-deep);
  color: var(--cream);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.6rem 1rem;
}
.demo-banner strong { color: var(--tan); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(63, 42, 38, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 5vh, 4rem) 1rem;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--cream);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 520px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--chocolate); }

.modal h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--green-deep);
  margin-bottom: 0.35rem;
}
.modal .modal-sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.4rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--tan-soft);
  white-space: nowrap;
}
table.data td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--cream-deep);
  vertical-align: middle;
}
table.data tr:hover td { background: rgba(237, 215, 188, 0.25); }

/* ---------- Footer (compact) ---------- */
.mini-footer {
  background: var(--green-deep);
  color: rgba(250, 244, 236, 0.85);
  text-align: center;
  padding: 1.5rem 1rem 2.6rem;
  font-size: 0.85rem;
}
.mini-footer a { color: var(--tan); text-decoration: none; }
.mini-footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Mobile navigation ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--chocolate);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 2.5rem;
  background: var(--cream);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.mobile-menu-top img { width: 74px; height: auto; }
.mobile-menu-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--tan);
  background: transparent;
  color: var(--caramel-deep);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu li { border-bottom: 1px solid rgba(226, 195, 156, 0.5); }
.mobile-menu li a {
  display: block;
  padding: 1.05rem 0.25rem;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
}
.mobile-menu li a.active { color: var(--caramel-deep); }
.mobile-menu .mobile-menu-cta {
  margin-top: auto;
  padding-top: 2rem;
}
.mobile-menu .mobile-menu-cta .btn { display: block; text-align: center; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    gap: 0.4rem;
    padding: 0.5rem 0.5rem 0.5rem 0.6rem;
  }
  .nav-cta {
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
  }
}

/* ---------- Full site footer (shared with index.html / cafe.html) ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(250, 244, 236, 0.85);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 6rem) 1.75rem;
}
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250, 244, 236, 0.15);
}
.footer-brand img { width: 60px; height: auto; margin-bottom: 1rem; opacity: 1; }
.footer-brand p { font-size: 0.9rem; line-height: 1.65; color: rgba(250, 244, 236, 0.62); max-width: 26em; }
.footer-heading {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--tan-soft);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { color: rgba(250, 244, 236, 0.75); text-decoration: none; font-size: 0.92rem; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--tan-soft); }
.footer-contact p { font-size: 0.92rem; color: rgba(250, 244, 236, 0.75); line-height: 1.7; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: var(--tan-soft); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.2rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(250, 244, 236, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(250, 244, 236, 0.85);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.footer-social a svg { width: 17px; height: 17px; display: block; }
.footer-social a:hover { background: rgba(250, 244, 236, 0.12); border-color: rgba(250, 244, 236, 0.5); }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(250, 244, 236, 0.5);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
