/* ==========================================================================
   DC Retreat System
   Shared stylesheet. Every page loads this one file.
   ========================================================================== */

:root {
 --red-deep:#155f44; --red:#1c7552; --orange:#ae874b; --amber:#cfb57d;
 --yellow:#e6d6ac; --lime:#a0b59b; --green:#1c7552; --green-deep:#155f44;
 --forest:#193a30; --forest-lit:#285c48; --ink:var(--forest);
 --accent:var(--red); --highlight:var(--amber); --cream:#f5f4ee;
 --card:#fffefa; --sand:#eaf0e7; --line:#dce1d5; --muted:#5c6b62;
 --ok:#2e7d3f; --warn:#976a24; --err:#a82424;
 --brand-sweep:linear-gradient(90deg,#193a30,#1c7552 72%,#cfb57d);
 --radius:1.1rem; --radius-sm:.6rem; --shadow:0 24px 80px -48px rgba(25,58,48,.5);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .display {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
}

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

/* --- Signature: the logo's color sweep as a hairline rule ---------------- */
.sweep { height: 4px; background: var(--brand-sweep); }
.sweep-thin { height: 2px; width: 44px; background: var(--brand-sweep); border-radius: 2px; }

/* --- Shell -------------------------------------------------------------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: 1120px; margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo img { display: block; height: 42px; width: auto; }
@media (max-width: 560px) { .logo img { height: 32px; } }

.nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.nav a {
  color: var(--ink); text-decoration: none;
  font-size: .875rem; font-weight: 600;
  padding: .45rem .75rem; border-radius: 999px;
}
.nav a:hover { background: var(--sand); }
.nav a.here { background: var(--ink); color: #fff; }

main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
main.narrow { max-width: 760px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 1.25rem;
  text-align: center;
  font-size: .8125rem;
  color: var(--muted);
}

/* --- Type helpers ------------------------------------------------------- */
.eyebrow {
  font-size: .6875rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.lede  { color: var(--muted); font-size: 1rem; }
.small { font-size: .8125rem; color: var(--muted); }
.mono  { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* --- Surfaces ----------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card + .card { margin-top: 1rem; }
@media (min-width: 640px) { .card { padding: 2rem; } }

.panel-dark {
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 1.5rem;
}
.panel-dark .eyebrow { color: var(--highlight); }
.panel-dark .small   { color: #D2E0D2; }

.tint { background: var(--sand); border-radius: var(--radius-sm); padding: 1rem 1.15rem; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: .9375rem;
  padding: .7rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--forest-lit); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--sand); }
.btn-quiet { background: transparent; color: var(--muted); padding: .5rem .75rem; }
.btn-quiet:hover { color: var(--ink); }
.btn-danger { background: transparent; color: var(--err); border-color: #E3C3C1; }
.btn-danger:hover { background: #FAEBE9; }
.btn-sm { font-size: .8125rem; padding: .45rem .95rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* --- Forms -------------------------------------------------------------- */
.field { display: block; margin-bottom: 1rem; }
.field > span {
  display: block; font-size: .8125rem; font-weight: 700;
  margin-bottom: .35rem; color: var(--ink);
}
input, select, textarea {
  font: inherit; width: 100%;
  padding: .6rem .8rem;
  background: #fff;
  border: 1px solid var(--line); border-radius: .6rem;
  color: var(--ink);
}
textarea { min-height: 5.5rem; resize: vertical; }
.grid-2 { display: grid; gap: 0 1rem; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }

/* --- Selectable option rows (rooms, payment plans) ---------------------- */
.option {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.1rem 1.25rem;
  margin-bottom: .75rem; font: inherit; color: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.option:hover:not(.is-out) { border-color: var(--accent); }
.option.is-on {
  border-color: var(--ink); background: var(--sand);
  box-shadow: 3px 3px 0 var(--ink);
}
.option.is-out { opacity: .55; cursor: not-allowed; }
.option .name  { font-family: Fraunces, Georgia, serif; font-size: 1.25rem; font-weight: 600; }
.option .price { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; white-space: nowrap; }

/* --- Steps -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1.75rem 0; }
.step .rule { height: 4px; border-radius: 2px; background: var(--line); }
.step.done .rule, .step.on .rule { background: var(--brand-sweep); }
.step span { display: block; font-size: .75rem; font-weight: 700; margin-top: .5rem; color: var(--muted); }
.step.on span { color: var(--ink); }

/* --- Badges ------------------------------------------------------------- */
.badge {
  display: inline-block; font-size: .6875rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
  background: var(--sand); color: var(--ink); white-space: nowrap;
}
.badge.ok   { background: #DFEEDD; color: #235F2C; }
.badge.warn { background: #FBEFD0; color: #8A5D10; }
.badge.err  { background: #F8E2E0; color: #8E1620; }
.badge.info { background: #F0F3DA; color: #5C6612; }

/* --- Stats -------------------------------------------------------------- */
.stats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1rem 1.15rem;
}
.stat .n { font-family: Fraunces, Georgia, serif; font-size: 1.9rem; line-height: 1.1; display: block; }
.stat .k { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* --- Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); background: var(--cream); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FBF7EA; }

/* --- Notices ------------------------------------------------------------ */
.notice {
  border-radius: var(--radius-sm); padding: .9rem 1.1rem;
  font-size: .875rem; line-height: 1.55; margin-bottom: 1rem;
  border: 1px solid var(--line); background: var(--card);
}
.notice.warn { background: #FDF4DC; border-color: #EBD494; color: #6E5211; }
.notice.err  { background: #FAE7E4; border-color: #E4BEB9; color: #8E1620; }
.notice.ok   { background: #E8F2E5; border-color: #C3DBBD; color: #1F5A2D; }
.notice strong { font-weight: 800; }

/* --- Toast -------------------------------------------------------------- */
#toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem);
  background: var(--ink); color: #fff;
  padding: .8rem 1.25rem; border-radius: 999px;
  font-size: .875rem; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 60; max-width: min(92vw, 30rem);
  text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--err); }

/* --- Utility ------------------------------------------------------------ */
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.hide { display: none !important; }
.spin {
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero {
  border: 1px solid var(--line); border-radius: 2rem;
  background: linear-gradient(180deg, #FFFDF7, var(--cream));
  padding: 2.5rem 1.5rem; overflow: hidden;
}
@media (min-width: 720px) { .hero { padding: 3.5rem 3rem; } }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

.split { display: grid; gap: 1.25rem; }
@media (min-width: 940px) { .split { grid-template-columns: minmax(0,1fr) 320px; align-items: start; } }
@media (min-width: 940px) { .split aside { position: sticky; top: 1.25rem; } }

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

@media print {
  .site-header, .site-footer, .btn, .no-print { display: none !important; }
  body { background: #fff; }
  .card { border-color: #ccc; box-shadow: none; }
}

/* ==========================================================================
   Staff shell: a left rail instead of a top bar, so the working area stays
   put as you move between sections.
   ========================================================================== */

.staff-shell .site-header { background: none; border: 0; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 232px; z-index: 40;
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding-bottom: 1rem;
  overflow-y: auto;
}
.sidebar .sweep { flex: none; }
.side-logo { display: block; padding: 1.15rem 1.25rem .5rem; }
.side-logo img { display: block; width: 100%; max-width: 158px; height: auto; }
.side-label {
  padding: 0 1.25rem 1rem; font-size: .6875rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}

.side-nav { display: flex; flex-direction: column; gap: .15rem; padding: 0 .75rem; }
.side-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .62rem .75rem; border-radius: .6rem;
  font-size: .9375rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.side-nav a:hover { background: var(--sand); }
.side-nav a.here { background: var(--ink); color: #fff; }
.side-nav .ico { display: grid; place-items: center; width: 18px; height: 18px; flex: none; }
.side-nav .ico svg { width: 18px; height: 18px; }

.side-foot {
  margin-top: auto; padding-top: 1rem;
  display: flex; flex-direction: column; gap: .75rem; align-items: flex-start;
}
.side-foot .btn { margin: 0 1.25rem; }

.staff-shell main { max-width: none; padding-left: 2rem; padding-right: 2rem; margin-left: 232px; }
.staff-shell .site-footer { margin-left: 232px; }

/* Mobile: the rail slides in over the page. */
.staff-topbar { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%); transition: transform .2s ease;
    box-shadow: 0 0 40px rgba(16,61,38,.25);
  }
  .nav-open .sidebar { transform: translateX(0); }
  .staff-shell main, .staff-shell .site-footer { margin-left: 0; }
  .staff-shell main { padding-left: 1.25rem; padding-right: 1.25rem; }

  .staff-shell .site-header {
    background: var(--card); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 30;
  }
  .staff-topbar {
    display: flex; align-items: center; gap: .85rem; padding: .7rem 1rem;
  }
  .staff-topbar .logo img { height: 30px; width: auto; }
  .nav-toggle {
    display: grid; gap: 4px; padding: .5rem; cursor: pointer;
    background: none; border: 0;
  }
  .nav-toggle span {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  }
  .nav-open .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 35;
    background: rgba(16,61,38,.35);
  }
}

/* DC identity and an editorial retreat showcase. */
.logo { display:flex; align-items:center; gap:.8rem; text-decoration:none; color:var(--ink); flex-shrink:0; }
.logo img { height:44px; width:50px; object-fit:contain; mix-blend-mode:multiply; }
.brand-name { font-size:1.1rem; font-weight:800; letter-spacing:-.025em; line-height:1.15; }
.brand-name span { display:block; font-size:.65rem; font-weight:500; text-transform:uppercase; letter-spacing:.2em; margin-top:.2rem; }
.side-logo { display:flex; }
.side-logo img { width:45px; }
.side-logo .brand-name { font-size:.95rem; }
.site-header .bar { padding-top:1.2rem; padding-bottom:1.2rem; }
.demo-banner { display:flex; align-items:center; gap:.8rem; padding:.25rem 0 1.5rem; color:var(--muted); font-size:.8rem; }
.demo-banner .badge { background:#e2ebdf; }
.home-page main { padding-top:1.75rem; }
.home-page .hero { border:0; border-radius:0; padding:2.5rem 0 3rem; background:transparent; }
.home-page .hero-grid { align-items:center; gap:3rem; }
.home-page .hero h1 { font-size:clamp(2.7rem,5.3vw,4.1rem); letter-spacing:-.045em; line-height:1.1; }
.home-page .hero h1 em { font-weight:500; }
.home-page .lede { font-size:1.05rem; line-height:1.8; }
.home-page .panel-dark { padding:2.5rem; border-radius:8rem 8rem 1rem 1rem; background:var(--forest); box-shadow:var(--shadow); }
.retreat-mark { width:108px; height:108px; padding:23px 17px; margin:0 auto 2rem; border-radius:50%; background:#fff; }
.retreat-mark img { width:100%; height:100%; object-fit:contain; }
.panel-dark .btn-ghost { border-color:#829d8d; color:#fff; }
.panel-dark .btn-ghost:hover { background:var(--forest-lit); }
.journey { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--line); padding:2rem 0; gap:2rem; }
.journey-step { padding-right:1rem; }
.journey-number { display:block; font-family:Fraunces,Georgia,serif; color:var(--accent); font-size:1.7rem; margin-bottom:.75rem; }
.journey .k { font-size:.95rem; font-weight:700; }
.btn { border-radius:.5rem; }
@media (max-width:600px) {
 .site-header .bar { flex-wrap:wrap; }
 .nav { gap:.1rem; }
 .nav a { padding:.4rem .55rem; }
 .brand-name { font-size:1rem; }
 .demo-banner { align-items:flex-start; }
 .demo-banner .badge { flex-shrink:0; }
 .journey { grid-template-columns:1fr; gap:1.5rem; }
 .journey-step { display:grid; grid-template-columns:3rem 1fr; }
 .journey-step .small { grid-column:2; }
 .journey-number { grid-row:span 2; }
 .home-page .panel-dark { padding:2rem; }
}
