/* =====================================================
   DPN Theme v2 – Main Stylesheet
   Royal Blue & Gold — Matching Official DPN Logo Crest
   Intelligentsia, Veritas & Decorum
   ===================================================== */

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

/* ── CSS Variables ── */
:root {
  --blue:        #1565C0;
  --blue-dark:   #0d2a6b;
  --blue-mid:    #1976D2;
  --blue-pale:   #E8F0FE;
  --blue-faint:  #F0F4FF;
  --gold:        #E8A020;
  --gold-light:  #F5C842;
  --gold-pale:   #FFF8E7;
  --cream:       #F8F6F0;
  --white:       #ffffff;
  --text:        #0d2a6b;
  --text-muted:  #4a5568;
  --border:      rgba(21,101,192,0.18);
  --gold-border: rgba(232,160,32,0.3);
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', sans-serif;
  --radius:      8px;
  --transition:  0.25s ease;
  --shadow:      0 4px 24px rgba(13,42,107,0.1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); transition: color var(--transition); text-decoration: none; }
a:hover { color: var(--gold); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
p  { font-size: 15px; line-height: 1.85; font-weight: 300; color: var(--text-muted); }
em { color: var(--gold); font-style: italic; }
strong { font-weight: 600; color: var(--text); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.section { padding: 90px 0; }
.section--dark  { background: var(--blue-dark); }
.section--blue  { background: var(--blue); }
.section--cream { background: var(--cream); }
.section--pale  { background: var(--blue-faint); }
.section--white { background: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 12px 28px;
  border-radius: var(--radius); font-family: var(--font-sans);
  font-size: 12px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; text-decoration: none;
  transition: all var(--transition); cursor: pointer; border: 2px solid transparent;
}
.btn-primary   { background: var(--blue); color: var(--white); }
.btn-primary:hover   { background: var(--blue-mid); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(21,101,192,0.3); }
.btn-gold      { background: var(--gold); color: var(--blue-dark); }
.btn-gold:hover      { background: var(--gold-light); color: var(--blue-dark); transform: translateY(-1px); }
.btn-outline   { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover   { background: var(--blue); color: var(--white); }
.btn-outline-white   { border-color: rgba(255,255,255,0.5); color: var(--white); background: transparent; }
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--blue-dark); }
.btn-block { display: block; text-align: center; width: 100%; }

/* ── Eyebrow Label ── */
.eyebrow {
  display: inline-block; background: var(--gold-pale); color: var(--gold);
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 3px; border: 1px solid rgba(232,160,32,0.2);
  margin-bottom: 14px;
}
.eyebrow--white { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.2); }

/* ── Gold Divider ── */
.gold-divider { width: 56px; height: 2px; background: var(--gold); margin: 16px 0; }

/* ════════════════════════════════
   NAVIGATION
════════════════════════════════ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,42,107,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border);
  height: 70px; transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 4px 32px rgba(13,42,107,0.4); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; max-width: 1200px; margin: 0 auto; padding: 0 48px; gap: 24px;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-logo-img {
  height: 46px; width: 46px; object-fit: contain; border-radius: 50%;
  border: 2px solid var(--gold-border);
}
.nav-logo-badge {
  width: 46px; height: 46px; border: 2px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 14px; font-weight: 700;
  color: var(--gold); flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-text .nav-org-name  { color: var(--white); font-size: 13px; font-weight: 500; letter-spacing: 0.5px; line-height: 1.2; }
.nav-logo-text .nav-org-motto { color: rgba(255,255,255,0.35); font-size: 10px; font-style: italic; font-family: var(--font-serif); letter-spacing: 0.5px; }

/* Menu */
.nav-menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  color: rgba(255,255,255,0.75); font-size: 12px; font-weight: 500;
  letter-spacing: 0.8px; text-transform: uppercase; text-decoration: none;
  transition: color var(--transition); padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a { color: var(--gold-light); border-bottom-color: var(--gold); }

/* Nav right buttons */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-donate {
  background: var(--gold); color: var(--blue-dark) !important; padding: 8px 18px;
  border-radius: var(--radius); font-size: 12px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; text-decoration: none; transition: all var(--transition);
  border: 2px solid transparent;
}
.nav-donate:hover { background: var(--gold-light); color: var(--blue-dark) !important; }
.nav-join {
  background: transparent; color: var(--white) !important; padding: 8px 18px;
  border-radius: var(--radius); font-size: 12px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; text-decoration: none; transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.4);
}
.nav-join:hover { border-color: var(--gold); color: var(--gold-light) !important; }

/* Mobile toggle */
.nav-toggle {
  /* display controlled by #nav-toggle rules in header.php */
  background: none; border: none; cursor: pointer;
  padding: 4px; flex-direction: column; gap: 5px; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all var(--transition); transform-origin: center; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════
   PAGE BANNER (inner pages)
════════════════════════════════ */
.page-banner {
  background: linear-gradient(135deg, #0a1f5c 0%, var(--blue) 100%);
  padding: 140px 0 70px; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(232,160,32,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-banner-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: linear-gradient(var(--gold) 1px, transparent 1px),
                    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.page-banner-eyebrow .eyebrow-line { width: 36px; height: 1px; background: var(--gold); }
.page-banner-eyebrow span { font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); }
.page-banner h1 { color: var(--white); margin-bottom: 10px; }
.page-banner p  { color: rgba(255,255,255,0.55); font-size: 16px; max-width: 580px; }

/* ════════════════════════════════
   PAGE CONTENT (inner pages)
════════════════════════════════ */
.page-content { padding: 80px 0; }
.page-content h2 { margin-bottom: 14px; }
.page-content h3 { font-size: 22px; margin: 32px 0 10px; }
.page-content p  { margin-bottom: 18px; }
.page-content ul, .page-content ol { margin: 0 0 20px 24px; }
.page-content li { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; font-weight: 300; }
.page-content .wp-block-separator { border: none; border-top: 1px solid rgba(21,101,192,0.15); margin: 36px 0; }

/* Block buttons */
.page-content .wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-content .wp-block-button__link {
  display: inline-block; padding: 12px 26px; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; text-decoration: none;
  background: var(--blue); color: var(--white) !important; transition: all var(--transition);
}
.page-content .wp-block-button__link:hover { background: var(--blue-mid); }
.page-content .is-style-outline .wp-block-button__link {
  background: transparent !important; border: 2px solid var(--blue); color: var(--blue) !important;
}
.page-content .is-style-outline .wp-block-button__link:hover { background: var(--blue) !important; color: var(--white) !important; }

/* ════════════════════════════════
   ELEMENTOR OVERRIDES
════════════════════════════════ */
.elementor-page .page-content { padding: 0; }
.elementor-section-wrap { padding-top: 70px; } /* Account for fixed header */

/* ════════════════════════════════
   EVENTS CALENDAR — Blue & Gold
════════════════════════════════ */
.post-type-archive-tribe_events,
.tribe-events-pg-template,
.single-tribe_events { background: var(--cream) !important; }

body .tribe-events .tribe-events-c-search__button,
body .tribe-common .tribe-common-c-btn-filled {
  background-color: var(--blue) !important; border-color: var(--blue) !important;
  color: var(--white) !important; font-family: var(--font-sans) !important;
  font-weight: 700 !important; border-radius: var(--radius) !important;
}
body .tribe-events .tribe-events-c-search__button:hover { background-color: var(--blue-mid) !important; }

body .tribe-events .tribe-events-c-view-selector__list-item-link {
  background: var(--white) !important; color: var(--text) !important;
  font-family: var(--font-sans) !important; font-size: 12px !important;
  font-weight: 600 !important; letter-spacing: 1px !important; text-transform: uppercase !important;
  border: 1px solid var(--border) !important; border-radius: var(--radius) !important;
  padding: 7px 16px !important; margin-left: 6px !important;
}
body .tribe-events .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link,
body .tribe-events .tribe-events-c-view-selector__list-item-link:hover {
  background: var(--blue) !important; border-color: var(--blue) !important; color: var(--white) !important;
}

body .tribe-events .tribe-events-c-top-bar__datepicker-button,
body .tribe-events .tribe-common-h6 {
  color: var(--gold) !important; font-family: var(--font-serif) !important;
  font-size: 28px !important; font-weight: 600 !important;
}
body .tribe-events .tribe-events-c-top-bar__today-button {
  background: var(--white) !important; border: 1px solid var(--blue) !important;
  color: var(--blue) !important; font-family: var(--font-sans) !important;
  font-size: 12px !important; font-weight: 600 !important; border-radius: var(--radius) !important;
  padding: 6px 16px !important;
}
body .tribe-events .tribe-events-c-top-bar__today-button:hover { background: var(--blue) !important; color: var(--white) !important; }

body .tribe-events .tribe-events-notices,
body .tribe-events .tribe-events-notices li {
  background: var(--white) !important; color: var(--text) !important;
  font-family: var(--font-sans) !important; font-size: 15px !important;
  border: 1px solid var(--border) !important; border-radius: 10px !important;
  padding: 28px 24px !important; text-align: center !important; list-style: none !important;
}
body .tribe-events .tribe-events-c-nav__list-item-link,
body .tribe-events .tribe-events-c-nav__list-item-link-label {
  color: var(--blue) !important; font-family: var(--font-sans) !important;
  font-size: 12px !important; font-weight: 700 !important; letter-spacing: 1px !important;
  text-transform: uppercase !important; text-decoration: none !important;
}
body .tribe-events .tribe-events-c-ical__link,
body a.tribe-events-c-ical__link {
  background: var(--white) !important; border: 1px solid var(--blue) !important;
  color: var(--blue) !important; font-family: var(--font-sans) !important;
  font-size: 12px !important; font-weight: 600 !important;
  border-radius: var(--radius) !important; padding: 8px 18px !important;
  text-decoration: none !important;
}
body .tribe-events .tribe-events-c-ical__link:hover { background: var(--blue) !important; color: var(--white) !important; }

body .tribe-events .tribe-events-calendar-month__header-column { background: var(--blue-dark) !important; }
body .tribe-events .tribe-events-calendar-month__header-column-title {
  color: var(--gold) !important; font-family: var(--font-sans) !important;
  font-size: 11px !important; font-weight: 600 !important; letter-spacing: 2px !important; text-transform: uppercase !important;
}
body .tribe-events .tribe-events-calendar-month__body-cell { background: var(--white) !important; border-color: var(--border) !important; border-radius: var(--radius) !important; }
body .tribe-events .tribe-events-calendar-month__body-cell-date-daynum { font-family: var(--font-serif) !important; font-size: 16px !important; font-weight: 600 !important; color: var(--text) !important; }
body .tribe-events .tribe-events-calendar-month__body-cell--current .tribe-events-calendar-month__body-cell-date-daynum {
  background: var(--blue) !important; color: var(--white) !important; border-radius: 50% !important;
  width: 28px !important; height: 28px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
}
body .tribe-events .tribe-events-calendar-month__calendar-event { background: rgba(21,101,192,0.08) !important; border-left: 3px solid var(--blue) !important; border-radius: 3px !important; }
body .tribe-events .tribe-events-calendar-month__calendar-event-title { color: var(--text) !important; font-family: var(--font-sans) !important; }
body .tribe-events .tribe-events-calendar-list__event-row { background: var(--white) !important; border: 1px solid var(--border) !important; border-radius: 10px !important; margin-bottom: 18px !important; }
body .tribe-events .tribe-events-calendar-list__event-row:hover { border-color: var(--blue) !important; box-shadow: 0 8px 32px rgba(21,101,192,0.1) !important; }
body .tribe-events .tribe-events-calendar-list__event-date-tag-daynum { font-family: var(--font-serif) !important; font-size: 48px !important; font-weight: 700 !important; color: var(--gold) !important; }
body .tribe-events .tribe-events-calendar-list__event-title-link { font-family: var(--font-serif) !important; font-size: 24px !important; font-weight: 600 !important; color: var(--text) !important; text-decoration: none !important; }
body .tribe-events .tribe-events-calendar-list__event-title-link:hover { color: var(--blue) !important; }
body .tribe-events .tribe-events-calendar-list__month-separator-text { background: var(--blue-dark) !important; color: var(--gold) !important; font-family: var(--font-serif) !important; font-size: 16px !important; font-weight: 600 !important; padding: 5px 18px !important; border-radius: 3px !important; }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
#site-footer { background: #0d2a6b; border-top: 1px solid var(--gold-border); padding: 0; }
.footer-main { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }

.footer-brand { }
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-img { height: 50px; width: 50px; object-fit: contain; border-radius: 50%; border: 2px solid var(--gold-border); }
.footer-logo-badge { width: 48px; height: 48px; border: 2px solid var(--gold-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 14px; font-weight: 700; color: var(--gold); }
.footer-org-name  { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; line-height: 1.2; }
.footer-org-sub   { color: rgba(255,255,255,0.35); font-size: 11px; font-weight: 300; }
.footer-brand-desc { color: rgba(255,255,255,0.45); font-size: 13px; line-height: 1.75; font-weight: 300; margin-bottom: 18px; }
.footer-motto { font-family: var(--font-serif); font-style: italic; color: rgba(255,255,255,0.3); font-size: 13px; }

.footer-col h4 { color: var(--gold); font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul  { list-style: none; padding: 0; margin: 0; }
.footer-col li  { margin-bottom: 10px; }
.footer-col a   { color: rgba(255,255,255,0.45); font-size: 13px; font-weight: 300; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-light); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.footer-contact-text { color: rgba(255,255,255,0.45); font-size: 13px; font-weight: 300; line-height: 1.5; }
.footer-contact-text a { color: rgba(255,255,255,0.45); }
.footer-contact-text a:hover { color: var(--gold-light); }

.footer-bottom { background: #0a1f5c; border-top: 1px solid rgba(232,160,32,0.15); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { color: rgba(255,255,255,0.25); font-size: 12px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.25); font-size: 12px; transition: color var(--transition); }
.footer-legal a:hover { color: var(--gold-light); }

/* Donate button in footer */
.footer-donate {
  display: inline-block; background: var(--gold); color: var(--blue-dark) !important;
  padding: 10px 22px; border-radius: var(--radius); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-top: 14px;
  transition: all var(--transition);
}
.footer-donate:hover { background: var(--gold-light); color: var(--blue-dark) !important; }

/* ════════════════════════════════
   FADE-UP ANIMATIONS
════════════════════════════════ */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════
   WP CORE FIXES
════════════════════════════════ */
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }
.alignwide  { max-width: 1200px; }
.alignfull  { max-width: none; padding-left: 0; padding-right: 0; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .nav-inner { padding: 0 24px; }
  .container { padding: 0 24px; }
  .nav-menu { display: none; position: absolute; top: 70px; left: 0; right: 0; background: rgba(13,42,107,0.98); flex-direction: column; padding: 20px 24px; border-top: 1px solid var(--gold-border); }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-menu a { display: block; padding: 13px 0; font-size: 13px; }
  /* .nav-toggle display handled by header.php */
  .nav-donate, .nav-join { font-size: 11px; padding: 7px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .elementor-section-wrap { padding-top: 70px; }
  .page-banner { padding: 110px 0 50px; }
}
@media (max-width: 600px) {
  .nav-actions { gap: 6px; }
  .nav-join { display: none; }
}

/* ── DPN v3 Footer Colour Fixes ── */
#site-footer,
.footer-main,
.footer-bottom {
  background: #0d2a6b;
}
.footer-bottom {
  background: #0a1f5c;
  border-top: 1px solid rgba(232,160,32,0.15);
}
.footer-col a:hover,
.footer-legal a:hover { color: #F5C842; }
.footer-donate {
  display: inline-block;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.4);
  color: #E8A020;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Jost', sans-serif;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.footer-donate:hover {
  background: #E8A020;
  color: #0d2a6b;
}

/* ── Leadership photo slots ── */
.dpn-leader-photo-wrap img { transition: transform .3s; }
.dpn-leader-photo-wrap:hover img { transform: scale(1.05); }