:root {
  --background: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --border: rgba(255, 255, 255, 0.1);
  --foreground: #f2f0ea;
  --muted-foreground: #8d8a82;
  --gold: #d9b45c;
  --gold-soft: #f3d98c;
  --destructive: #e5484d;
  --primary-foreground: #0a0a0a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--background);
  color: var(--foreground);
}

.font-display {
  font-family: "Playfair Display", serif;
}

/* ---------- shared primitives ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.text-gradient-gold {
  background-image: linear-gradient(135deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gold-gradient {
  background-image: linear-gradient(135deg, var(--gold), var(--gold-soft));
}

.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
}

.glow-bg {
  background: radial-gradient(circle, rgba(217, 180, 92, 0.16), transparent 70%);
  filter: blur(10px);
}

/* ---------- nav ---------- */
.site-nav {
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0));
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
}
.site-nav.scrolled {
  background: rgba(10, 10, 10, 0.88);
  border-bottom: 1px solid var(--border);
}
.nav-link {
  position: relative;
}
.nav-link.active {
  color: var(--gold);
}
.underline-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover .underline-bar,
.nav-link.active .underline-bar {
  transform: scaleX(1);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- form inputs ---------- */
.placeholder-muted::placeholder {
  color: rgba(141, 138, 130, 0.7);
  letter-spacing: 0.02em;
}
[data-field].field-error input,
[data-field].field-error textarea {
  border-color: var(--destructive) !important;
}

/* ---------- custom select ---------- */
.cselect {
  position: relative;
}
.cselect-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  font-size: 14px;
  font-family: inherit;
  padding: 12px 0;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.cselect-btn:focus {
  border-color: var(--gold);
}
.cselect-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.cselect-btn .ph {
  color: rgba(141, 138, 130, 0.7);
}
.cselect-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted-foreground);
  transition: transform 0.2s;
}
.cselect.open .cselect-chevron {
  transform: rotate(180deg);
}
.cselect-panel {
  display: none;
  position: absolute;
  z-index: 50;
  margin-top: 6px;
  width: 100%;
  min-width: 160px;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.cselect.open .cselect-panel {
  display: block;
}
.cselect-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  color: rgba(242, 240, 234, 0.9);
  cursor: pointer;
  font-family: inherit;
}
.cselect-opt:hover {
  background: rgba(255, 255, 255, 0.05);
}
.cselect-opt svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}
.cselect-empty {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ---------- date picker ---------- */
.datepicker-panel {
  display: none;
  position: absolute;
  z-index: 50;
  margin-top: 6px;
  width: 288px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.cselect.open .datepicker-panel {
  display: block;
}
.dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dp-head button {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.dp-head button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
}
.dp-head span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 12px;
  text-align: center;
}
.dp-dow {
  font-size: 10px;
  color: var(--muted-foreground);
}
.dp-day {
  padding: 7px 0;
  font-size: 12px;
  border-radius: 999px;
  background: none;
  border: none;
  color: rgba(242, 240, 234, 0.9);
  cursor: pointer;
  font-family: inherit;
}
.dp-day:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
}
.dp-day:disabled {
  color: rgba(141, 138, 130, 0.3);
  cursor: not-allowed;
}
.dp-day.today {
  border: 1px solid var(--gold);
  color: var(--gold);
}
.dp-day.selected {
  background-image: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--primary-foreground);
  font-weight: 600;
}

/* ---------- spinner ---------- */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10, 10, 10, 0.3);
  border-top-color: var(--primary-foreground);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- toast ---------- */
#toast-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px;
  min-width: 240px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.25s ease;
}
.toast.success {
  border-color: var(--gold);
}
.toast.error {
  border-color: var(--destructive);
  color: #ffd7d8;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}