/* Global variables */
:root {
  --gold: #DCB75C; /* Text color */
  --gold-2: #DCB75C; /* Text color as secondary */
  --gold-3: #DCB75C; /* Text color for accents */
  --bg: #181C1A; /* Background color */
  --surface: #1F1F1D; /* Button color */
  --panel: #1F1F1D; /* Button color */
  --text: #DCB75C; /* Text color */
  --muted: #A89A6E; /* Sub-text color - lightened for better visibility */
  --hair: rgba(255,255,255,0.15);
  --radius: 10px;
  --speed: 180ms;

  /* background images */
  --marble-img: url("/assets/marble-bg.png");
  --hero-img: url("/assets/hero-bg.png");
}

/* Reset-ish */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Cinzel", "Crimson Text", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: transparent;
}
html {
  background-image:
    linear-gradient(0deg, rgba(0,0,0,.42), rgba(0,0,0,.42)),
    radial-gradient(120% 80% at 50% -10%, transparent 50%, rgba(0,0,0,.14) 100%),
    var(--marble-img);
  background-size: auto, 100% 100%, cover;
  background-position: 0 0, 50% -10%, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  background-color: var(--bg);
  color-scheme: dark;
}

a {
  color: var(--gold-2); /* Use the original gold for links */
  text-decoration: none; /* never underlined */
}
a:hover, a:focus {
  text-decoration: none; /* never underlined */
  color: var(--gold); /* Use the brighter gold on hover */
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  margin: 0.5em 0;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; color: var(--gold); }
h3 { font-size: 1.25rem; color: var(--gold-2); }

/* Layout helpers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 3rem 0; }
.section-title { margin: 0 0 18px; font-size: 22px; color: var(--gold); }

/* Grid helpers for cards/tiles */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(24, 28, 26, 0.95), rgba(24, 28, 26, 0.98)), var(--bg);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 100%;
}

.site-header-inner .navbar {
  display: flex;
  align-items: center;
  width: 100%;
}

.site-header-inner .nav-brand {
  flex-shrink: 0;
}

.site-header-inner .nav-menu {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.site-header-inner .nav-items {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.nav-brand a { 
  font-weight: 700; 
  letter-spacing: .3px; 
  color: var(--gold);
  z-index: 11; /* Ensure it's above the mobile menu */
  font-size: 1.4rem;
  text-decoration: none;
}

.nav-brand a:hover {
  color: var(--gold);
  transform: translateY(-2px);
  transition: transform var(--speed);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 11; /* Ensure it's above the mobile menu */
  border-radius: 6px;
  transition: background var(--speed);
}

.nav-toggle:hover {
  background: rgba(220, 183, 92, 0.15);
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--gold);
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Mobile menu toggle animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 7px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -7px);
}

/* Desktop navigation menu */
.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* Generic header links (non-CTA) */
.site-header .nav-items a {
  color: var(--text);
  padding: 10px 16px;
  border-radius: 8px;
  transition: color var(--speed), background var(--speed), border-color var(--speed), transform var(--speed);
  position: relative;
  font-weight: 500;
  text-decoration: none;
  font-size: 1.05rem;
}

/* Hover/focus only for non-CTA links, so we don't stomp button visuals */
.site-header .nav-items a:not(.cta):hover,
.site-header .nav-items a:not(.cta):focus {
  color: var(--gold);
  background: rgba(220, 183, 92, 0.15); /* Gold with transparency */
  transform: translateY(-2px);
}

/* Active link state for non-CTA items */
.site-header .nav-items a.active,
.site-header .nav-items a[aria-current="page"] {
  color: var(--gold);
  background: rgba(220, 183, 92, 0.2); /* More visible active state */
  box-shadow: 0 2px 8px rgba(220, 183, 92, 0.1);
}

/* Mobile navigation */
@media screen and (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .site-header-inner .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: linear-gradient(to right, rgba(24, 28, 26, 0.98), rgba(24, 28, 26, 0.95)), var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 10;
    border-left: 1px solid var(--hair);
    overflow-y: auto;
    backdrop-filter: blur(10px);
    display: flex;
  }
  
  .site-header-inner .nav-menu.active {
    right: 0;
  }
  
  .site-header-inner .nav-items {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .nav-items a {
    width: 100%;
    text-align: left;
    padding: 16px 24px;
    margin: 8px 0;
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--speed);
    text-decoration: none;
    font-size: 1.1rem;
  }
  
  .nav-items a:hover,
  .nav-items a:focus {
    background: rgba(220, 183, 92, 0.15);
    transform: translateX(4px);
  }
  
  .nav-items a.active {
    background: rgba(220, 183, 92, 0.2);
    box-shadow: 0 2px 8px rgba(220, 183, 92, 0.1);
  }
  
  .nav-items a.cta {
    margin-top: 10px;
    text-align: center;
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--hair);
  padding: 26px 0;
  color: var(--muted);
  background: linear-gradient(to top, rgba(24, 28, 26, 0.95), rgba(24, 28, 26, 0.98)), var(--bg);
  backdrop-filter: blur(10px);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 84px;
  border-bottom: 1px solid var(--hair);
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  top:0;
  right:0;
  left:0;
  bottom:-6px; /* extend overlay */
  background: rgba(0,0,0,0.75);
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; text-align: center; }
.hero h1 { font-size: clamp(36px,6vw,64px); margin: 0 0 6px; color: var(--gold); }
.hero .sub { color: var(--muted); font-size: clamp(16px,2.2vw,18px); margin: 2px 0 18px; }

/* Hero intro chips */
.intro-wrap{
  display:inline-flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:6px;
}
h1.intro-chip,
p.intro-chip{
  display:inline-block;
  padding:4px 6px;
  border-radius:10px;
  border:1px solid transparent;
  background:rgba(0,0,0,0.14);
  box-shadow:none;
  backdrop-filter:none;
}
h1.intro-chip{
  color:var(--gold);
  text-shadow:0 1px 0 rgba(0,0,0,0.35);
}
.hero .sub.intro-chip{
  color:var(--text);
  text-shadow:0 1px 0 rgba(0,0,0,0.25);
  max-width:860px;
}
@media (prefers-reduced-transparency: reduce){
  h1.intro-chip,
  p.intro-chip{ background:#0b0b0c; }
}

/* CTA button */
.cta {
  display: inline-block;
  background: #15161a;
  color: var(--text);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid var(--hair);
  transition: filter var(--speed), transform var(--speed), background var(--speed), color var(--speed), border-color var(--speed);
}
.cta:hover,
.cta:focus {
  background: var(--gold);
  color: #0b0b0c !important;
  border-color: var(--gold);
  transform: translateY(-1px);
  text-decoration: none;
}
.cta[aria-disabled="true"] {
  pointer-events: none;
  opacity: .65;
}
/* Outline CTA */
.cta-outline {
  display: inline-block;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  background: transparent;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease, transform var(--speed) ease;
  line-height: 1;
}
.cta-outline:hover,
.cta-outline:focus-visible {
  background: var(--gold);
  color: #0b0b0c;
  border-color: var(--gold);
  transform: translateY(-1px);
}
.cta-outline:active { transform: translateY(0); }
.prose .cta-row { margin-top: 0.75rem; }
.prose .cta-row .cta-outline { vertical-align: middle; }

/* Cards */
.card {
  background: linear-gradient(0deg, rgba(0,0,0,.25), rgba(0,0,0,.25)), var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform var(--speed), border-color var(--speed), box-shadow var(--speed);
}
.card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.card h3 { margin: 10px 0 6px; font-size: 18px; color: var(--text); }
.card p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.more { color: var(--gold-2); font-weight: 600; }

/* Thumbs inside card */
.thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(230, 195, 94, 0.15), rgba(0,0,0,.1) 60%), #0a0a0a; /* Use new gold color */
  border: 1px solid var(--hair);
  position: relative;
  overflow: hidden;
}
.thumb-pic {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
  opacity: .95; filter: saturate(.95);
}

/* Coming Soon badge */
.badge-soon {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 10px;
  background: rgba(230, 195, 94, 0.15); /* Use new gold color */
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

/* Soon overlay */
.soon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--gold);
}

/* Panel */
.panel {
  background: linear-gradient(0deg, rgba(0,0,0,.25), rgba(0,0,0,.25)), var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 24px;
}

/* Prose */
.prose {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.prose p { margin: 0.8em 0; }
.prose ul,
.prose ol { padding-left: 1.5rem; margin: 0.8em 0; }
.prose li { margin: 0.3em 0; }
.prose a { font-weight: 600; }

/* Updates list */
.updates-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.updates-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.updates-list li:last-child {
  border-bottom: none;
}
.updates-list time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

/* View more link */
.view-more {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hair);
}

/* --- Forms --- */
.field {
  margin-bottom: 1.2rem;
  position: relative;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--speed), box-shadow var(--speed);
  box-sizing: border-box;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 195, 94, 0.18); /* Use new gold color */
}

.field input:hover:not(:focus),
.field textarea:hover:not(:focus) {
  border-color: rgba(230, 195, 94, 0.5);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Floating labels */
.field .flabel {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: all var(--speed);
  background: var(--panel);
  padding: 0 4px;
  font-size: 1rem;
}

.field input:focus + .flabel,
.field textarea:focus + .flabel,
.field .has-value .flabel {
  top: 0;
  left: 0.8rem;
  transform: translateY(-50%) scale(0.85);
  color: var(--gold);
}

/* Placeholder positioning */
.field input::placeholder,
.field textarea::placeholder {
  transition: opacity var(--speed), transform var(--speed);
  opacity: 0.7;
  transform: translateX(1rem);
}

.field:hover input::placeholder,
.field:hover textarea::placeholder {
  opacity: 1;
}

.field input:focus::placeholder,
.field textarea:focus::placeholder {
  opacity: 1;
  transform: translateX(-0.5rem);
}

.field .has-value input::placeholder,
.field .has-value textarea::placeholder {
  opacity: 0;
  transform: translateX(0);
}

/* Subtle invalid hint without screaming red */
.field input:invalid:not(:focus):not(:placeholder-shown),
.field textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: rgba(255, 120, 120, .65);
}

/* Actions + status */
.form-actions { margin-top: 8px; display: flex; gap: 12px; align-items: center; }
.status { font-size: 14px; color: var(--muted); }
.status.ok { color: #9be99b; }
.status.err { color: #ff9b9b; }

/* Utilities */
.hidden { display: none !important; }

/* --- Modern checkbox row (site-wide) --- */
.check-field { margin: 10px 0 18px; }
.check-line { display: flex; align-items: center; gap: 10px; }

.check-field input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border: 1.5px solid var(--hair);
  border-radius: 5px;
  background: #0b0b0c;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: border-color var(--speed), box-shadow var(--speed), background var(--speed), transform var(--speed);
}

/* Hover/focus ring so it doesn't look "dead" */
.check-field input[type="checkbox"]:hover{ border-color: var(--gold); }
.check-field input[type="checkbox"]:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 195, 94, 0.18); /* Use new gold color */
}

/* Checked state: clear gold + visible tick glyph */
.check-field input[type="checkbox"]:checked{
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(230, 195, 94, 0.22), rgba(230, 195, 94, 0.12)), /* Use new gold color */
    /* crisp SVG tick centered; no blur, no guessing */
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <polyline points='20 6 9 17 4 12' fill='none' stroke='%230b0b0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>") center/14px 14px no-repeat #e6c35e; /* Use new gold color */
}

/* Optional: if you prefer a white tick on gold, swap stroke to %23ffffff above */

/* Invalid hint (should rarely show because button is gated) */
.check-field input[type="checkbox"].is-invalid {
  border-color: #ff7878;
  box-shadow: 0 0 0 3px rgba(255, 120, 120, .18);
}

.check-field label{
  color: var(--text);
  user-select: none;
  cursor: pointer;
  line-height: 1.35;
}