/* =========================================================
   DRAGON SCALE DIGITAL — stylesheet
   Palette pulled directly from the logo: deep space navy,
   steel-blue dragon scales, amber ember eye/accent.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --void: #050B12;         /* darkest background */
  --panel: #0D1B29;        /* card / section background */
  --steel: #3E5B72;        /* mid steel blue, borders */
  --steel-dim: #26394A;    /* darker steel, dividers */
  --steel-light: #9FC1D6;  /* bright steel blue, headings */
  --ember: #D98A2E;        /* amber accent, CTAs */
  --ember-bright: #F0B255; /* hover / glow */
  --ink: #E8EEF2;          /* body text on dark */
  --ink-soft: #A9BBC7;     /* secondary text */

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 4px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(217,138,46,0.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(62,91,114,0.12), transparent 60%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  color: var(--steel-light);
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-block;
  margin-bottom: 0.6em;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- header ---------- */
.site-header {
  background: rgba(5, 11, 18, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--steel-dim);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name {
  font-family: var(--font-display);
  color: var(--steel-light);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-text .tag {
  font-family: var(--font-mono);
  color: var(--ember);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.main-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.main-nav a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  border-color: var(--ember);
  color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--ember); color: var(--void); border-color: var(--ember); }
.btn-primary:hover { background: var(--ember-bright); box-shadow: 0 0 18px rgba(217,138,46,0.35); }

.btn-outline { background: transparent; color: var(--steel-light); border-color: var(--steel); }
.btn-outline:hover { background: var(--steel-dim); }

.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 60px; border-bottom: 1px solid var(--steel-dim); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy p.lede { font-size: 1.1rem; color: var(--ink); max-width: 48ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art img { width: 100%; filter: drop-shadow(0 20px 40px rgba(217,138,46,0.15)); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- service pillars ---------- */
.services { padding: 60px 0; border-bottom: 1px solid var(--steel-dim); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }

.service-card {
  background: var(--panel);
  border: 1px solid var(--steel-dim);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover { border-color: var(--ember); transform: translateY(-3px); }

.service-card .tag-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ember);
  border: 1px solid var(--ember);
  border-radius: 20px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 14px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.94rem; margin-bottom: 16px; }
.service-card .btn { font-size: 0.7rem; padding: 10px 16px; }

@media (max-width: 780px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- content sections ---------- */
.section { padding: 60px 0; }
.section-border { border-bottom: 1px solid var(--steel-dim); }
.section-alt { background: var(--panel); }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
@media (max-width: 700px) { .feature-list { grid-template-columns: 1fr; } }

.feature-item {
  border-left: 2px solid var(--ember);
  padding: 4px 0 4px 16px;
}
.feature-item h4 {
  font-family: var(--font-body);
  text-transform: none;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.feature-item p { font-size: 0.9rem; margin-bottom: 0; }

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--steel);
  color: var(--steel-light);
  padding: 6px 12px;
  border-radius: 20px;
}

/* ---------- booking form ---------- */
.booking-section { padding: 56px 0 90px; }

.service-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 36px;
}
@media (max-width: 780px) { .service-picker { grid-template-columns: 1fr; } }

.service-option {
  background: var(--panel);
  border: 2px solid var(--steel-dim);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.service-option:hover { border-color: var(--steel); }
.service-option.selected { border-color: var(--ember); background: rgba(217,138,46,0.08); }
.service-option input { display: none; }
.service-option .opt-code { font-family: var(--font-mono); font-size: 0.65rem; color: var(--ember); letter-spacing: 0.1em; text-transform: uppercase; }
.service-option h3 { margin: 6px 0 4px; font-size: 1.05rem; }
.service-option p { font-size: 0.85rem; margin-bottom: 0; }

form.booking-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--steel-dim);
  border-radius: var(--radius);
  background: var(--panel);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ember); }

.form-note { font-size: 0.82rem; color: var(--ink-soft); }
.form-success {
  display: none;
  background: rgba(217,138,46,0.1);
  border: 1px solid var(--ember);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.form-success.show { display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--void); border-top: 1px solid var(--steel-dim); padding: 40px 0 30px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer small { opacity: 0.7; font-size: 0.78rem; color: var(--ink-soft); }
.site-footer .contact-line { font-family: var(--font-mono); font-size: 0.78rem; color: var(--steel-light); }

/* ---------- page hero (sub-pages) ---------- */
.page-hero { padding: 54px 0; text-align: center; border-bottom: 1px solid var(--steel-dim); background: var(--panel); }
.page-hero p { max-width: 52ch; margin: 0 auto; }

/* ---------- admin dashboard ---------- */
.admin-section { padding: 44px 0 80px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

.admin-banner {
  border: 1px solid var(--ember);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  margin-bottom: 22px;
  display: none;
  color: var(--ink);
}
.admin-banner.show { display: block; }
.admin-banner.error { border-color: #C0503D; color: #F0A48F; }

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--steel-dim); border-radius: var(--radius); background: var(--panel); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 900px; }
table.admin-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--void);
  padding: 12px 14px;
  border-bottom: 1px solid var(--steel-dim);
}
table.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--steel-dim); vertical-align: top; color: var(--ink); }
table.admin-table tr:last-child td { border-bottom: none; }
table.admin-table .mono-cell { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  border: 1px solid;
}
.status-pending { color: var(--ember); border-color: var(--ember); }
.status-confirmed { color: #5FA8D3; border-color: #5FA8D3; }
.status-completed { color: #6FBF73; border-color: #6FBF73; }
.status-cancelled { color: var(--ink-soft); border-color: var(--steel-dim); }

.status-select {
  background: var(--void);
  color: var(--ink);
  border: 1px solid var(--steel-dim);
  border-radius: var(--radius);
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }

.detail-toggle { background: none; border: none; color: var(--steel-light); font-family: var(--font-mono); font-size: 0.72rem; cursor: pointer; text-decoration: underline; padding: 0; }
.detail-row { display: none; }
.detail-row.show { display: table-row; }
.detail-row td { background: var(--void); font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- listen links (music page) ---------- */
.listen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 700px) { .listen-grid { grid-template-columns: repeat(2, 1fr); } }

.listen-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--steel-dim);
  border-radius: var(--radius);
  padding: 18px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--steel-light);
  transition: border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.listen-link:hover {
  border-color: var(--ember);
  color: var(--ember-bright);
  transform: translateY(-2px);
}

/* ---------- about / story ---------- */
.story { padding: 60px 0; }
.story .wrap { max-width: 760px; }
.story blockquote {
  border-left: 3px solid var(--ember);
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: none;
  color: var(--steel-light);
}
