/* ============================================================
 * 5045 Gold Bend — Refined cabin / editorial styling
 * Palette: warm cream backgrounds, deep forest green, ember accents,
 * charcoal text. Typography-driven: serif headings + clean sans body.
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Warm cabin palette */
  --cream: #faf6ef;
  --cream-dark: #f1ead9;
  --paper: #fefcf7;
  --forest: #2c4032;
  --forest-deep: #1d2d22;
  --moss: #7a8b6d;
  --ember: #c2632a;
  --ember-light: #d97f3f;
  --rust: #9d4a1f;
  --charcoal: #2d2a26;
  --charcoal-soft: #4a463f;
  --muted: #8c8579;
  --border: #e6dfd0;
  --border-strong: #c9bfa9;
  --success: #4a6b3a;
  --warn: #b87333;
  --danger: #a8443a;

  --shadow-soft: 0 1px 3px rgba(45, 42, 38, 0.06), 0 6px 18px rgba(45, 42, 38, 0.05);
  --shadow-lift: 0 4px 12px rgba(45, 42, 38, 0.1), 0 16px 36px rgba(45, 42, 38, 0.08);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Backwards-compat aliases for existing markup */
  --navy: var(--forest);
  --blue: var(--ember);
  --shadow: var(--shadow-soft);
  --shadow-lg: var(--shadow-lift);
  --bg: var(--cream);
  --card: var(--paper);
  --text: var(--charcoal);
  --border-strong: #c9bfa9;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--rust); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--ember); }

img { max-width: 100%; display: block; }

p { margin-bottom: 1rem; }

/* ============================================================
 * Typography
 * ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
h1 { font-size: 3.5rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.5rem; font-weight: 600; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; font-weight: 600; }

.kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ember);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.lede { font-size: 1.2rem; color: var(--charcoal-soft); line-height: 1.6; }

blockquote {
  border-left: 3px solid var(--ember);
  padding-left: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--charcoal-soft);
  margin: 1.5rem 0;
}

/* ============================================================
 * Nav
 * ============================================================ */

.nav {
  background: rgba(254, 252, 247, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--forest);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-brand:hover { color: var(--forest); text-decoration: none; }
.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  color: var(--charcoal-soft);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a:hover { color: var(--forest); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--forest);
  color: var(--cream) !important;
  padding: 0.65rem 1.4rem;
  border-radius: 2px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--forest-deep); }
.nav-cta::after { display: none; }

/* ============================================================
 * Hero
 * ============================================================ */

.hero {
  position: relative;
  min-height: 78vh;
  background: var(--forest-deep);
  display: flex;
  align-items: center;
  color: var(--cream);
  text-align: left;
  padding: 6rem 2rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transform: scale(1.05);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 45, 34, 0.7) 0%, rgba(29, 45, 34, 0.25) 60%, rgba(29, 45, 34, 0.55) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}
.hero .kicker { color: rgba(250, 246, 239, 0.9); margin-bottom: 1.25rem; }
.hero h1 {
  color: var(--cream);
  font-size: 4.25rem;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(250, 246, 239, 0.92);
  font-weight: 400;
  max-width: 540px;
}

/* ============================================================
 * Buttons
 * ============================================================ */

.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-align: center;
  font-family: var(--sans);
  transition: all 0.2s;
  border-radius: 2px;
}
.btn-primary {
  background: var(--ember);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--rust);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(157, 74, 31, 0.25);
}
.btn-secondary {
  background: var(--cream);
  color: var(--forest);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--cream-dark); color: var(--forest); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--forest);
  color: var(--cream);
  text-decoration: none;
  border-color: var(--forest);
}
.btn-outline-cream {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250, 246, 239, 0.4);
}
.btn-outline-cream:hover {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
  text-decoration: none;
}
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #8b362e; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ============================================================
 * Sections
 * ============================================================ */

.section { padding: 6rem 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.section-narrow { max-width: 780px; margin: 0 auto; padding: 0 2rem; }
.section-tight { padding: 3.5rem 0; }
.section-cream { background: var(--paper); }
.section-deep { background: var(--forest); color: var(--cream); }
.section-deep h1, .section-deep h2, .section-deep h3 { color: var(--cream); }
.section-deep p { color: rgba(250, 246, 239, 0.85); }

.section-head {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head p { color: var(--charcoal-soft); font-size: 1.15rem; }

.divider {
  width: 60px;
  height: 1px;
  background: var(--ember);
  margin: 1.5rem auto;
}

/* ============================================================
 * Highlights (value props)
 * ============================================================ */

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 3rem;
}
.highlight {
  text-align: left;
  padding: 0;
}
.highlight-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ember);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.highlight h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--forest);
}
.highlight p { color: var(--charcoal-soft); margin: 0; }

/* ============================================================
 * Photo gallery
 * ============================================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-dark);
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}

/* ============================================================
 * Features (amenities list)
 * ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem 2.5rem;
}
.feature {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  color: var(--charcoal);
}
.feature::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--ember);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* ============================================================
 * Booking form
 * ============================================================ */

.form-card {
  background: var(--paper);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  max-width: 620px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.35rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--forest);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border-strong);
  background: var(--cream);
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--charcoal);
  border-radius: 2px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(194, 99, 42, 0.12);
  background: var(--paper);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-help {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Toggle */
.toggle-row {
  display: flex;
  background: var(--cream-dark);
  padding: 4px;
  gap: 0;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}
.toggle-row label {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--charcoal-soft);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: all 0.15s;
}
.toggle-row input[type="radio"] { display: none; }
.toggle-row input[type="radio"]:checked + label {
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 1px 3px rgba(45, 42, 38, 0.1);
}

/* Price box */
.price-box {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 1.4rem;
  margin: 1.25rem 0 1.5rem;
}
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.price-row.total {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  border-top: 1px solid var(--border-strong);
  padding-top: 0.85rem;
  margin-top: 0.6rem;
  color: var(--forest);
}
.price-info {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.6rem;
  font-style: italic;
}

/* ============================================================
 * Calendar
 * ============================================================ */

.cal-wrap {
  background: var(--paper);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.cal-nav-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--forest);
  border-radius: 2px;
  transition: all 0.15s;
}
.cal-nav-btn:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.cal-title {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--forest);
  font-size: 1.35rem;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow {
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  padding: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  position: relative;
  border-radius: 2px;
}
.cal-day-empty { visibility: hidden; }
.cal-day-available {
  background: var(--cream);
  color: var(--forest);
  font-weight: 500;
  border: 1px solid transparent;
}
.cal-day-available:hover { background: var(--cream-dark); border-color: var(--ember); }
.cal-day-booked {
  background: #e8dccb;
  color: var(--muted);
  text-decoration: line-through;
}
.cal-day-past { color: var(--border-strong); }
.cal-day-today {
  box-shadow: 0 0 0 1px var(--ember) inset;
  font-weight: 700;
}
.cal-legend {
  display: flex;
  gap: 1.75rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  justify-content: center;
  flex-wrap: wrap;
}
.cal-legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-right: 0.4rem;
}

/* ============================================================
 * Map
 * ============================================================ */

.map-wrap {
  margin: 2rem 0;
  border: 1px solid var(--border);
  background: var(--paper);
}
.map-inner {
  height: 420px;
  width: 100%;
}
.map-caption {
  padding: 1rem 1.25rem;
  background: var(--cream);
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ============================================================
 * Area page (Things to Do)
 * ============================================================ */

.area-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}
.area-toc a {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  color: var(--forest);
  text-decoration: none;
  transition: all 0.15s;
  border-radius: 2px;
}
.area-toc a:hover {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
  text-decoration: none;
}
.area-section { margin-bottom: 4rem; }
.area-section-head {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.area-section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
}
.area-intro {
  color: var(--charcoal-soft);
  max-width: 720px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}
.area-card {
  background: transparent;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.15s;
  padding-left: 1.5rem;
}
.area-card:hover { background: var(--paper); }
.area-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.area-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
}
.area-card h3 a {
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.area-card h3 a:hover {
  color: var(--forest);
  border-bottom-color: var(--ember);
}
.area-card-category {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  white-space: nowrap;
  font-weight: 600;
}
.area-card p { margin: 0; color: var(--charcoal-soft); font-size: 0.92rem; line-height: 1.55; }
.area-card .visit-link {
  font-size: 0.82rem;
  color: var(--ember);
  font-weight: 500;
  margin-top: auto;
  padding-top: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.area-card .visit-link:hover { color: var(--rust); }

/* ============================================================
 * Footer
 * ============================================================ */

.footer {
  background: var(--forest-deep);
  color: rgba(250, 246, 239, 0.75);
  padding: 5rem 0 2rem;
  margin-top: 6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer a { color: rgba(250, 246, 239, 0.75); }
.footer a:hover { color: var(--cream); }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 239, 0.12);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(250, 246, 239, 0.5);
  letter-spacing: 0.04em;
}

/* ============================================================
 * Condo stats
 * ============================================================ */

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0 3rem;
}
.kpi {
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.kpi:last-child { border-right: none; }
.kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.kpi-value {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--forest);
  line-height: 1;
}
.kpi-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ============================================================
 * Privacy / address notice
 * ============================================================ */

.privacy-note {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ember);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  font-style: italic;
}

/* ============================================================
 * Messages (success/warn)
 * ============================================================ */

.success-msg {
  background: #e8efe1;
  color: var(--success);
  border: 1px solid #c7d4ba;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: 2px;
}
.warn-msg {
  background: #faf0e0;
  color: var(--warn);
  border: 1px solid #ecd9b3;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: 2px;
}

/* ============================================================
 * Utility
 * ============================================================ */

.muted { color: var(--muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.flex-end { justify-content: flex-end; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ============================================================
 * ADMIN (keeps a cleaner, more utilitarian look — but in the warm palette)
 * ============================================================ */

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--cream);
}
.admin-sidebar {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 1.5rem 0;
}
.admin-sidebar-brand {
  padding: 0 1.5rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(250, 246, 239, 0.1);
  margin-bottom: 1rem;
  color: var(--cream);
}
.admin-nav { list-style: none; }
.admin-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(250, 246, 239, 0.7);
  font-weight: 500;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.admin-nav a:hover {
  background: rgba(250, 246, 239, 0.05);
  color: var(--cream);
  text-decoration: none;
  border-left-color: var(--ember);
}
.admin-nav a.active {
  background: var(--forest);
  color: var(--cream);
  border-left-color: var(--ember);
}
.admin-main { padding: 2.5rem; overflow-x: auto; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-header h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--forest);
}

.card {
  background: var(--paper);
  padding: 2rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.card-head h2, .card-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
}
.card-head h2 { font-size: 1.5rem; }
.card-head h3 { font-size: 1.25rem; }

/* Admin KPIs */
.kpis-admin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kpis-admin .kpi {
  background: var(--paper);
  border: 1px solid var(--border);
  text-align: left;
  padding: 1.25rem 1.5rem;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}
.table th, .table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.table th {
  background: var(--cream);
  font-weight: 600;
  color: var(--forest);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.table tr:hover td { background: var(--cream); }
.table .right { text-align: right; font-variant-numeric: tabular-nums; }
.table .center { text-align: center; }

/* Status pills */
.pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 2px;
}
.pill-received { background: #e1dfd0; color: #5e5a3d; }
.pill-emailed { background: #e0d9e6; color: #5a3d6a; }
.pill-declined { background: #ebd5d2; color: #7a3a32; }
.pill-accepted { background: #d4e0c8; color: #3d5a2a; }
.pill-completed { background: #d6d4cb; color: #4d4a40; }

/* Editor row */
.editor-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.editor-row:last-child { border-bottom: none; }
.editor-row label {
  font-weight: 500;
  color: var(--forest);
  padding-top: 0.55rem;
  font-size: 0.9rem;
}
.editor-row input,
.editor-row select,
.editor-row textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-strong);
  background: var(--cream);
  font-size: 0.95rem;
  font-family: var(--sans);
  border-radius: 2px;
}
.editor-row input:focus,
.editor-row select:focus,
.editor-row textarea:focus {
  outline: none;
  border-color: var(--ember);
}
.editor-row textarea { min-height: 80px; resize: vertical; font-family: inherit; }

/* ============================================================
 * Responsive
 * ============================================================ */

@media (max-width: 900px) {
  body { font-size: 16px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
  .hero { min-height: 60vh; padding: 4rem 1.5rem; }
  .hero h1 { font-size: 2.75rem; }
  .hero p { font-size: 1.05rem; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.5rem; }
  .nav-inner { padding: 0 1.5rem; }
  .nav-links { width: 100%; justify-content: flex-start; gap: 1.25rem; }
  .form-card { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .editor-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    padding: 1rem 0;
  }
  .admin-sidebar-brand { padding: 0 1.5rem 1rem; }
  .admin-main { padding: 1.5rem; }
  .area-card { padding: 1.25rem; border-right: none; }
}
