:root {
  --navy: #152B39;
  --navy-dark: #0e1e28;
  --navy-light: #223e50;
  --cream: #F5F1E8;
  --cream-dark: #eae3d1;
  --copper: #AF8764;
  --copper-dark: #8a6a4d;
  --white: #ffffff;
  --text: #26313b;
  --muted: #6d6558;
  --border: #e2dccb;
  --danger: #b3402f;
  --ok: #2f7a4f;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(21, 43, 57, 0.07);
  --shadow-md: 0 10px 30px rgba(21, 43, 57, 0.14);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Scroll-reveal ---------- */

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger.is-visible .card:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible .card:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible .card:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible .card:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible .card:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger .card { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease; }
.reveal-stagger.is-visible .card { opacity: 1; transform: none; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--navy); }

.muted { color: var(--muted); }
.muted-sm { color: var(--muted); font-size: 0.85rem; }

/* ---------- Logo / wordmark ---------- */

.brand-mark {
  display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.05;
}
.brand-mark .brand-name {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.01em;
}
.brand-mark .brand-name .stock { color: var(--navy); }
.brand-mark .brand-name .mann { color: var(--copper-dark); }
.brand-mark .brand-tagline {
  font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.32em;
  color: var(--muted); margin-top: 3px; padding-left: 1px;
}
.brand-mark.on-navy .brand-name .stock { color: var(--cream); }
.brand-mark.on-navy .brand-name .mann { color: var(--copper); }
.brand-mark.on-navy .brand-tagline { color: rgba(245, 241, 232, 0.65); }

/* ---------- Public site header/footer ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(245, 241, 232, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(21, 43, 57, 0.08); }
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; gap: 24px;
}
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a {
  color: var(--navy); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  position: relative; padding-bottom: 2px;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--copper-dark); transition: width 0.25s ease;
}
.site-nav a:not(.btn):hover::after { width: 100%; }
.site-nav a:hover { color: var(--copper-dark); }

.site-footer {
  margin-top: 64px;
  background: var(--navy);
  color: rgba(245, 241, 232, 0.85);
  padding: 40px 0;
}
.site-footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.site-footer .muted { color: rgba(245, 241, 232, 0.6); }
.site-footer strong { color: var(--cream); }
.footer-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.footer-links a { color: rgba(245, 241, 232, 0.85); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */

.hero-band {
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(175, 135, 100, 0.20), transparent 60%),
    radial-gradient(ellipse 700px 500px at 110% 110%, rgba(175, 135, 100, 0.12), transparent 60%),
    var(--navy);
  color: var(--cream);
  position: relative; overflow: hidden;
}
.hero {
  padding: 76px 24px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.hero.no-photo { grid-template-columns: 1fr; max-width: 720px; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  color: var(--copper); font-weight: 600; margin: 0 0 16px;
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero h1 {
  font-size: 3rem; margin: 0 0 18px; color: var(--cream); line-height: 1.1; font-weight: 600;
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}
.hero .lead {
  font-family: var(--font-sans); font-size: 1.15rem; color: rgba(245, 241, 232, 0.82);
  max-width: 480px; margin: 0 0 30px;
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}
.hero > div > .btn {
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}
.hero-meta { margin-top: 32px; color: rgba(245, 241, 232, 0.62); font-size: 0.88rem; }
.hero-meta a { color: var(--cream); }
.hero-photo {
  width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hero-photo:hover img { transform: scale(1.03); }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Icon strip ---------- */

.icon-strip {
  background: var(--cream); border-bottom: 1px solid var(--border);
  display: flex; justify-content: center; flex-wrap: wrap;
}
.icon-strip-inner {
  display: flex; flex-wrap: wrap; justify-content: center;
}
.icon-item {
  display: flex; align-items: center; gap: 12px; padding: 22px 36px;
  border-left: 1px solid var(--border); font-weight: 500; color: var(--navy);
}
.icon-item:first-child { border-left: none; }
.icon-item .icon-circle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; background: var(--cream-dark);
  transition: background 0.25s ease, transform 0.25s ease; flex-shrink: 0;
}
.icon-item:hover .icon-circle { background: var(--copper); transform: scale(1.08); }
.icon-item svg { width: 20px; height: 20px; color: var(--copper-dark); flex-shrink: 0; transition: color 0.25s ease; }
.icon-item:hover svg { color: var(--cream); }

/* ---------- Wordplay strip ---------- */

.wordplay {
  padding: 40px 24px; text-align: center; border-bottom: 1px solid var(--border);
}
.wordplay-line { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); margin: 0 0 4px; }
.wordplay-line .accent { color: var(--copper-dark); }
.wordplay-rule { width: 60px; height: 1px; background: var(--copper); border: none; margin: 14px auto; }
.wordplay-result {
  font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.06em; color: var(--muted);
  text-transform: uppercase;
}
.wordplay-result .accent { color: var(--copper-dark); font-weight: 600; }

.next-slot {
  font-size: 0.85rem; color: var(--ok); background: #e9f5ee;
  border-radius: var(--radius); padding: 6px 10px; margin: 0 0 14px;
  display: flex; align-items: center; gap: 7px;
}
.next-slot strong { font-weight: 700; }
.next-slot .live-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--ok); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(47, 122, 79, 0.5); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(47, 122, 79, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(47, 122, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 122, 79, 0); }
}

.video-embed {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.video-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem;
  color: var(--copper-dark); font-weight: 600; margin: 0 0 8px;
}

.section { padding: 56px 24px; }
.section.narrow { max-width: 640px; }
.section.tight { padding-top: 24px; padding-bottom: 24px; }
.section.center { text-align: center; }
.section-title { font-size: 1.8rem; color: var(--navy); margin-bottom: 32px; text-align: center; }
.section-title-sm { font-size: 1.15rem; color: var(--navy); margin: 32px 0 12px; font-family: var(--font-serif); }

.lead-sm { color: var(--muted); }

.about-text { max-width: 640px; margin: 0 auto; text-align: center; }
.about-text p { font-size: 1.05rem; color: var(--text); }

/* ---------- Cards ---------- */

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;
}
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--copper);
}
.card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.2rem; }
.card .meta { color: var(--copper-dark); font-weight: 600; font-size: 0.9rem; margin: 0 0 12px; }
.card-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }

.confirm-card { max-width: 420px; margin: 24px auto; text-align: left; }

.help-note {
  text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 28px;
}
.help-note a { color: var(--navy); font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius); font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; font-size: 0.95rem;
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  font-family: var(--font-sans);
}
.btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(21, 43, 57, 0.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--copper); color: var(--navy-dark); }
.btn-primary:hover { background: var(--copper-dark); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost.on-navy { color: var(--cream); border-color: rgba(245,241,232,0.5); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Forms ---------- */

label {
  display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 14px;
}
input, textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit; background: #fff; color: var(--text);
}
input:focus, textarea:focus, select:focus, button:focus, a:focus {
  outline: 2px solid var(--copper-dark); outline-offset: 2px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); max-width: 560px;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.checkbox-row input { width: auto; margin: 3px 0 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; max-width: none; }
.inline-form label { min-width: 140px; margin-bottom: 0; }
.inline-form button { margin-bottom: 0; height: 44px; }

.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* ---------- Booking flow ---------- */

.booking-step { margin: 30px 0; }
.step-title { font-size: 1.1rem; color: var(--navy); margin-bottom: 12px; font-family: var(--font-serif); }
#date-input { max-width: 220px; }

.slots { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-btn {
  padding: 11px 16px; border-radius: var(--radius); border: 1px solid var(--navy); background: #fff;
  color: var(--navy); font-weight: 600; cursor: pointer; font-family: var(--font-sans); font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.slot-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(21, 43, 57, 0.12); }
.slot-btn:hover { background: var(--cream-dark); }
.slot-btn.selected { background: var(--navy); color: var(--cream); }

/* ---------- Flash messages ---------- */

.flash {
  padding: 13px 16px; border-radius: var(--radius); margin: 16px 0; font-size: 0.92rem;
}
.flash-error { background: #fbeae7; color: var(--danger); border: 1px solid #f0c8c1; }
.flash-success { background: #e9f5ee; color: var(--ok); border: 1px solid #c6e6d3; }
.flash ul { margin: 0; padding-left: 18px; }

/* ---------- Admin login ---------- */

.admin-login-body {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: var(--navy-dark); font-family: var(--font-sans);
}
.login-box {
  background: #fff; padding: 40px; border-radius: var(--radius); width: 100%; max-width: 360px;
  box-shadow: var(--shadow-md);
}
.login-box h1 { margin-top: 0; font-size: 1.3rem; color: var(--navy); }

/* ---------- Admin shell ---------- */

.admin-shell { display: flex; min-height: 100vh; font-family: var(--font-sans); }
.admin-sidebar {
  width: 230px; background: var(--navy-dark); color: rgba(245, 241, 232, 0.85);
  display: flex; flex-direction: column; padding: 24px 0; flex-shrink: 0;
}
.admin-brand { font-weight: 700; color: var(--cream); padding: 0 24px 24px; font-size: 1.1rem; font-family: var(--font-serif); }
.admin-sidebar nav { display: flex; flex-direction: column; flex: 1; }
.admin-sidebar nav a {
  padding: 12px 24px; color: rgba(245, 241, 232, 0.75); text-decoration: none; font-size: 0.92rem;
  border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover { background: rgba(245, 241, 232, 0.08); color: var(--cream); }
.admin-sidebar nav a.active { color: var(--cream); border-left-color: var(--copper); background: rgba(245, 241, 232, 0.08); font-weight: 600; }
.admin-sidebar-footer { padding: 12px 24px; border-top: 1px solid rgba(245, 241, 232, 0.12); display: flex; flex-direction: column; gap: 8px; }
.admin-sidebar-footer a { color: rgba(245, 241, 232, 0.6); text-decoration: none; font-size: 0.85rem; }
.admin-sidebar-footer a:hover { color: var(--cream); }

.admin-main { flex: 1; padding: 36px 44px; max-width: 1100px; }
.admin-main h1 { color: var(--navy); margin-top: 0; }

.admin-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 12px; }

/* ---------- Tables ---------- */

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.table th { background: var(--cream-dark); color: var(--navy); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.table tr:last-child td { border-bottom: none; }
.table-actions { display: flex; gap: 12px; }

.link-btn { background: none; border: none; padding: 0; font: inherit; cursor: pointer; color: var(--navy); text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-ok { background: #e9f5ee; color: var(--ok); }
.badge-off { background: var(--cream-dark); color: var(--muted); }

/* ---------- Dashboard stats ---------- */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 20px 0 12px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--navy); font-family: var(--font-serif); }
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* ---------- Availability week grid ---------- */

.week-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.week-day { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.week-day h3 { margin: 0 0 8px; font-size: 0.88rem; color: var(--navy); font-family: var(--font-sans); font-weight: 600; }
.time-range-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; padding: 4px 0; }
.time-range-row form { margin: 0; }
.time-range-row button { color: var(--danger); }

/* ---------- Tabs ---------- */

.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.9rem; border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--navy); border-bottom-color: var(--copper); }

/* ---------- Profile photo upload (admin) ---------- */

.photo-preview { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.photo-preview img {
  width: 96px; height: 96px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--border);
}
.photo-preview-empty {
  width: 96px; height: 96px; border-radius: var(--radius); border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.75rem; text-align: center;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 56px 24px; text-align: left; }
  .hero-photo { max-width: 320px; }
  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 640px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 16px; }
  .site-nav .btn { margin-left: auto; }
}

@media (max-width: 720px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 12px 0; }
  .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .admin-main { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .icon-item { padding: 16px 20px; border-left: none; border-top: 1px solid var(--border); width: 100%; justify-content: center; }
  .icon-item:first-child { border-top: none; }
  .icon-strip-inner { flex-direction: column; width: 100%; }
}
