/* ═══════════════════════════════════════════════════════════════
   DULLSTROOM-EVENTS · SHARED STYLESHEET
   Link this file on every page:
   <link rel="stylesheet" href="shared.css" />
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ──────────────────────────────────────────── */
:root {
  --cream:      #f5f0e8;
  --parchment:  #ede5d0;
  --warm-tan:   #c9a97a;
  --rust:       #c0522a;
  --teal:       #2a7d7b;
  --dark:       #1e1a14;
  --mid:        #4a3f2f;
  --light-teal: #e8f4f3;
  --ink:        #2c2416;
  --gold:       #d4a843;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── TEXTURE OVERLAY ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   To update the menu, edit ONLY this section.
   The HTML on every page is just: <nav id="site-nav"></nav>
   and the JS below fills it in automatically.
   ═══════════════════════════════════════════════════════════════ */

/* ── Nav shell ───────────────────────────────────────────────── */
.site-nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(201,169,122,0.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}

/*---- Logo Next to Site name in Menu---*/
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

/* ── Brand / logo ────────────────────────────────────────────── */
.nav-brand {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--warm-tan);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { color: #fff; }

/* ── Link list ───────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245,240,232,0.55);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.nav-links a.active {
  color: var(--warm-tan);
  background: rgba(201,169,122,0.12);
}

/* ── Separator dots ─────────────────────────────────────────── */
.nav-sep {
  color: rgba(201,169,122,0.25);
  font-size: 10px;
  user-select: none;
}

/* ── Hamburger (mobile) ──────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(245,240,232,0.7);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ── Mobile drawer ───────────────────────────────────────────── */
@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    border-bottom: 1px solid rgba(201,169,122,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 28px;
    font-size: 11px;
    border-radius: 0;
  }
  .nav-sep { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   SHARED PAGE COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Page sub-header (used on inner pages) ───────────────────── */
.page-header {
  background: linear-gradient(160deg, #e8e0cc 0%, #f0e8d5 40%, #e5dcc4 100%);
  text-align: center;
  padding: 60px 20px 50px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -60px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(42,125,123,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 320px; height: 320px;
  background: radial-gradient(ellipse at center, rgba(192,82,42,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.page-header-inner { position: relative; z-index: 2; }

/* ── Labels & pills ──────────────────────────────────────────── */
.event-label {
  display: inline-block;
  border: 2px solid var(--teal);
  border-radius: 3px;
  padding: 6px 24px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--rust);
  line-height: 1.05;
  margin-bottom: 6px;
}
.page-title span { color: var(--teal); }

.page-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--mid);
  margin-bottom: 18px;
}

.date-pill {
  display: inline-block;
  background: var(--teal);
  color: var(--cream);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 2px;
}

/* ── Shared footer ───────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(245,240,232,0.45);
  text-align: center;
  padding: 28px 20px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
footer a { color: var(--warm-tan); text-decoration: none; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════
   NAV JAVASCRIPT (injected inline — define menu items here)
   When you want to add/remove/rename a nav item, edit the
   NAV_ITEMS array below. That's the ONLY place you need to change.
   ═══════════════════════════════════════════════════════════════ */

/*
  NOTE: The actual JS lives at the bottom of this comment block.
  It is loaded via <script src="nav.js"></script> on each page,
  OR you can paste the <script> block from nav.js into each HTML.

  See nav.js for the menu definition.
*/
