/* Golden Hour Marketing brand tokens — pulled from admin.ghmarketing.co */
:root {
  --gh-bg: #faf6ed;
  --gh-card: #fff;
  --gh-surface: #f5efe0;
  --gh-text: #201d17;
  --gh-muted: #8a8370;
  --gh-border: #e6ddc6;
  --gh-panel: #1b2118;
  --gh-gold: #b99b55;
  --gh-gold-deep: #a6853f;
  --gh-green-btn: #3f5c3a;
  --gh-orange: #d98b4b;
  --gh-rust-btn: #b85c38;
  --gh-cream: #f5efe0;
  --gh-teal: #2f6f68;
  --shadow-card: 0 1px 2px rgba(32, 29, 23, 0.06), 0 1px 1px rgba(32, 29, 23, 0.04);
}

:root.dark {
  --gh-bg: #17140f;
  --gh-card: #211c15;
  --gh-surface: #2a2318;
  --gh-text: #f1ebdd;
  --gh-muted: #a69c87;
  --gh-border: #3a3325;
}

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

body {
  background: var(--gh-bg);
  color: var(--gh-text);
  font-family: -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gh-muted);
}

/* ---------- header ---------- */
.gh-header {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--gh-panel);
  padding: 28px 28px 24px;
  color: var(--gh-cream);
  margin-bottom: 22px;
}
.gh-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 85% -20%, rgba(185, 155, 85, 0.25), transparent 70%);
  pointer-events: none;
}
.gh-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.gh-brand-name {
  line-height: 0;
}
.gh-brand-logo {
  display: block;
  height: 34px;
  width: auto;
}
.theme-toggle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(245, 239, 224, 0.25);
  background: rgba(245, 239, 224, 0.08);
  color: var(--gh-cream);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.theme-toggle:hover { background: rgba(245, 239, 224, 0.16); }

.gh-title {
  margin: 18px 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
}
.gh-sub {
  margin: 0;
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(245, 239, 224, 0.75);
  position: relative;
}
.gh-meta {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  position: relative;
}
.gh-meta b {
  color: var(--gh-cream);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tab {
  border: 1px solid var(--gh-border);
  background: var(--gh-card);
  color: var(--gh-text);
  border-radius: 7px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.tab:hover { border-color: var(--gh-gold); }
.tab.active {
  background: var(--gh-gold-deep);
  border-color: var(--gh-gold-deep);
  color: #fff;
}
.tab .count { opacity: 0.65; font-weight: 500; margin-left: 3px; }

/* ---------- grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.card {
  background: var(--gh-card);
  border: 1px solid var(--gh-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--gh-gold); transform: translateY(-1px); }

.card-stage {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  cursor: zoom-in;
  background: var(--stage-bg, #faf6ed);
  transition: background 0.15s ease;
}
.card-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-body {
  padding: 11px 13px 13px;
  border-top: 1px solid var(--gh-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.card-id {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gh-muted);
  text-transform: uppercase;
}
.card-label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 1px;
}
.fav-btn {
  border: 1px solid var(--gh-border);
  background: var(--gh-surface);
  width: 30px;
  height: 30px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gh-muted);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}
.fav-btn:hover { border-color: var(--gh-gold); color: var(--gh-gold-deep); }
.fav-btn.on {
  background: var(--gh-gold);
  border-color: var(--gh-gold);
  color: #fff;
}

.stage-toggle {
  display: flex;
  gap: 4px;
  padding: 8px 13px 0;
}
.stage-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid var(--gh-border);
  cursor: pointer;
  padding: 0;
}
.stage-dot.active { outline: 2px solid var(--gh-gold-deep); outline-offset: 1px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(23, 20, 15, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox-panel {
  background: var(--gh-card);
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.lightbox-stage {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--stage-bg, #faf6ed);
}
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--gh-border);
}
.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.lightbox-close {
  border: none;
  background: var(--gh-surface);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  color: var(--gh-muted);
}

/* ---------- feedback panel ---------- */
.feedback {
  background: var(--gh-card);
  border: 1px solid var(--gh-border);
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}
.feedback h2 {
  margin: 0 0 4px;
  font-size: 17px;
}
.feedback p.hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--gh-muted);
}
.fav-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.fav-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  color: var(--gh-text);
  padding: 5px 10px;
  border-radius: 999px;
}
.fav-summary.empty .fav-chip { color: var(--gh-muted); font-weight: 500; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gh-muted);
  margin-bottom: 6px;
}
input[type="text"], input[type="email"], textarea {
  width: 100%;
  border: 1px solid var(--gh-border);
  background: var(--gh-surface);
  color: var(--gh-text);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--gh-gold); }
textarea { min-height: 110px; resize: vertical; margin-bottom: 14px; }

.submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-submit {
  border: none;
  background: var(--gh-green-btn);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-submit:hover { filter: brightness(1.08); }
.btn-submit:disabled { opacity: 0.6; cursor: default; }
.form-note { font-size: 12px; color: var(--gh-muted); }

.success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(63, 92, 58, 0.12);
  border: 1px solid rgba(63, 92, 58, 0.35);
  color: var(--gh-green-btn);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.success.show { display: flex; }
:root.dark .success { color: #8fd188; }

.error-note {
  display: none;
  color: var(--gh-rust-btn);
  font-size: 12.5px;
  margin-top: 10px;
}
.error-note.show { display: block; }

footer.site-footer {
  text-align: center;
  margin-top: 36px;
  font-size: 11px;
  color: var(--gh-muted);
  letter-spacing: 0.03em;
}

/* ---------- project index (no ?p= given) ---------- */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.index-card {
  display: block;
  background: var(--gh-card);
  border: 1px solid var(--gh-border);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
}
.index-card:hover { border-color: var(--gh-gold); }
.index-card .eyebrow { margin-bottom: 6px; }
.index-card h3 { margin: 0 0 4px; font-size: 16px; }
.index-card p { margin: 0; font-size: 12.5px; color: var(--gh-muted); }
