/* ============================================================
   LUXE NOIR — External Stylesheet (styles.css)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&family=Montserrat:wght@300;400;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --gold:      #c9a84c;
  --gold-lt:   #e8c97a;
  --black:     #0a0a0a;
  --dark:      #111111;
  --dark2:     #1a1a1a;
  --dark3:     #222222;
  --white:     #f5f0eb;
  --grey:      #888888;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans:  'Montserrat', sans-serif;
  --transition: 0.35s ease;
  --radius:     4px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Marquee ───────────────────────────────────────────────── */
.marquee-bar {
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-bar marquee { display: inline-block; }

/* ── Navigation ────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.nav-logo span { color: var(--white); }
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ── Page Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 60%, #1c1407 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(201,168,76,0.15) 0%, transparent 65%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
  animation: fadeUp 1s ease forwards;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1rem;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  font-size: 1rem;
  color: var(--grey);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
}
.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  transition: background var(--transition), color var(--transition);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--black);
}
.btn-secondary {
  display: inline-block;
  padding: 14px 40px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--gold);
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover { background: var(--gold-lt); }

/* ── Sections ──────────────────────────────────────────────── */
section { padding: 90px 5%; }
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}
.section-body { color: var(--grey); max-width: 640px; line-height: 1.9; }

/* ── Cards Grid ────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.card {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); border-color: var(--gold); }
.card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: var(--dark3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.card-body { padding: 1.5rem; }
.card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.card-desc { font-size: 0.88rem; color: var(--grey); }
.card-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 1rem;
}

/* ── Trustees Grid ─────────────────────────────────────────── */
.trustees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.trustee-card {
  text-align: center;
  transition: transform var(--transition);
}
.trustee-card:hover { transform: translateY(-6px); }
.trustee-photo {
  width: 160px; height: 160px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  border: 3px solid var(--gold);
  overflow: hidden;
  background: var(--dark3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.trustee-photo img { width: 100%; height: 100%; object-fit: cover; }
.trustee-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}
.trustee-role { font-size: 0.75rem; letter-spacing: 0.15em; color: var(--gold); text-transform: uppercase; }
.trustee-dept { font-size: 0.8rem; color: var(--grey); margin-top: 0.3rem; }

/* ── Events ────────────────────────────────────────────────── */
.event-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 3rem; }
.event-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--dark2);
  border-left: 3px solid var(--gold);
  padding: 1.8rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background var(--transition);
}
.event-item:hover { background: var(--dark3); }
.event-date { text-align: center; }
.event-date .day {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.event-date .month { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.event-info h3 { font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: 0.3rem; }
.event-info p { font-size: 0.85rem; color: var(--grey); }
.event-badge {
  padding: 6px 14px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Form ──────────────────────────────────────────────────── */
.form-section { max-width: 700px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--dark2);
  border: 1px solid var(--dark3);
  color: var(--white);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-success {
  display: none;
  background: rgba(201,168,76,0.12);
  border: 1px solid var(--gold);
  padding: 1.2rem 1.5rem;
  color: var(--gold);
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ── DOM Page ──────────────────────────────────────────────── */
.dom-tree { font-family: monospace; font-size: 0.9rem; }
.dom-tree details { margin-left: 1.5rem; }
.dom-tree summary {
  cursor: pointer;
  padding: 4px 0;
  color: var(--gold);
  list-style: none;
}
.dom-tree summary::before { content: '▶ '; font-size: 0.7rem; }
details[open] > summary::before { content: '▼ '; }
.dom-tree span { color: var(--white); font-size: 0.85rem; margin-left: 1rem; }
.dom-attr { color: #6db3f2; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--dark3);
  text-align: center;
  padding: 3rem 5%;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  list-style: none;
  margin-bottom: 2rem;
}
.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.78rem; color: var(--grey); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-in { animation: fadeIn 0.8s ease forwards; }

/* ── Utilities ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.gold-text { color: var(--gold); }
.highlight-box {
  background: var(--dark2);
  border: 1px solid var(--dark3);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.7rem; }
  .event-item { grid-template-columns: 1fr; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .nav-links { display: none; }
}

/* ── Light Mode Theme ──────────────────────────────────────── */
body.theme-light {
  background-color: #f5f0eb;
  color: #111111;
}
body.theme-light nav {
  background: rgba(245,240,235,0.96);
  border-bottom-color: var(--gold);
}
body.theme-light .nav-links a { color: #111111; }
body.theme-light .nav-links a:hover { color: var(--gold); }
body.theme-light .hero-bg {
  background: linear-gradient(135deg, #e8ddd0 0%, #f5f0eb 60%, #f0e8d0 100%);
}
body.theme-light .hero-title { color: #111111; }
body.theme-light .hero-subtitle { color: #555555; }
body.theme-light section { background: #f5f0eb; }
body.theme-light section[style*="background:var(--dark2)"] { background: #ede8e0 !important; }
body.theme-light .card {
  background: #ffffff;
  border-color: #ddd;
}
body.theme-light .card-desc { color: #555555; }
body.theme-light .trustee-photo { background: #e0dbd5; }
body.theme-light .event-item {
  background: #ffffff;
}
body.theme-light .event-item:hover { background: #ede8e0; }
body.theme-light .event-info p { color: #555555; }
body.theme-light .section-body { color: #555555; }
body.theme-light .highlight-box { background: #ede8e0; border-color: #ccc; }
body.theme-light .form-group input,
body.theme-light .form-group select,
body.theme-light .form-group textarea {
  background: #ffffff;
  border-color: #ccc;
  color: #111111;
}
body.theme-light .dom-page-area { background: #ede8e0; }
body.theme-light footer {
  background: #ede8e0;
  border-top-color: #ccc;
}
body.theme-light .footer-links a { color: #555555; }
body.theme-light .footer-copy { color: #555555; }
body.theme-light .marquee-bar {
  background: #111111;
  color: #c9a84c;
}
