/* ==========================================================================
   HEF Germany — shared stylesheet
   Re-themed to echo wheforum.org (World Hindu Economic Forum): deep maroon
   & gold on a warm ivory ground, in place of the earlier WEF-style blue.
   Tokens: Maroon #7A1F2E · Gold #D6A331 · White #FFFFFF · Ivory #FAF6EF
   Type: Poppins (display) · Source Sans 3 (body)
   ========================================================================== */

:root {
  --hef-blue: #7A1F2E;       /* primary — maroon */
  --hef-blue-dark: #4E1119;  /* deep maroon */
  --hef-blue-mid: #93283A;   /* mid maroon */
  --hef-saffron: #D6A331;    /* gold */
  --hef-saffron-dark: #AD7E1E; /* deep gold */
  --hef-white: #FFFFFF;
  --hef-gray: #FAF6EF;       /* warm ivory */
  --hef-ink: #241417;
  --hef-slate: #5C4C4A;
  --hef-line: #E7DDD2;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  color: var(--hef-ink);
  background-color: var(--hef-white);
}

h1, h2, h3, h4, .font-display {
  font-family: 'Poppins', 'Source Sans 3', system-ui, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--hef-saffron);
  outline-offset: 3px;
}

/* Layout rhythm ---------------------------------------------------------- */
.hef-container { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 768px) { .hef-container { padding-left: 2.5rem; padding-right: 2.5rem; } }

.hef-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--hef-saffron-dark);
}

/* Header / nav ------------------------------------------------------------ */
.hef-header {
  background: var(--hef-blue);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hef-nav-link {
  position: relative;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 0.92rem;
  padding-bottom: 4px;
}
.hef-nav-link:hover { color: var(--hef-white); }
.hef-nav-link.is-active { color: var(--hef-white); }
.hef-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--hef-saffron);
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 1.75rem;
  border-radius: 2px;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}
.btn-saffron {
  background: var(--hef-saffron);
  color: var(--hef-blue-dark);
  border: 1px solid var(--hef-saffron);
}
.btn-saffron:hover { background: var(--hef-saffron-dark); border-color: var(--hef-saffron-dark); }
.btn-outline {
  background: transparent;
  color: var(--hef-white);
  border: 1px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { border-color: var(--hef-white); background: rgba(255,255,255,0.08); }
.btn-blue {
  background: var(--hef-blue);
  color: var(--hef-white);
  border: 1px solid var(--hef-blue);
}
.btn-blue:hover { background: var(--hef-blue-mid); }

/* Cards ---------------------------------------------------------------------- */
.hef-card {
  background: var(--hef-white);
  border: 1px solid var(--hef-line);
  border-top: 3px solid var(--hef-saffron);
  padding: 1.9rem;
}

.hef-card-flat {
  background: var(--hef-white);
  border: 1px solid var(--hef-line);
  padding: 1.9rem;
}

/* Hero ------------------------------------------------------------------------ */
.hef-hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(78,17,25,0.94) 0%, rgba(122,31,46,0.89) 46%, rgba(122,31,46,0.64) 100%),
    url('https://images.unsplash.com/photo-1577086664693-894d8405334a?q=80&w=2000&auto=format&fit=crop')
    center/cover no-repeat;
}
.hef-hero-mark {
  width: 46px; height: 3px; background: var(--hef-saffron); display: block;
}

/* Stat counters ----------------------------------------------------------------- */
.hef-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--hef-blue);
  line-height: 1;
}

/* Timeline (About page — genuine chronological sequence) ------------------------ */
.hef-timeline { position: relative; }
.hef-timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--hef-line);
}
@media (min-width: 768px) {
  .hef-timeline::before { left: 50%; margin-left: -1px; }
}
.hef-timeline-dot {
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--hef-white);
  border: 3px solid var(--hef-saffron);
}
@media (min-width: 768px) {
  .hef-timeline-dot { left: 50%; margin-left: -8px; }
}

/* Speaker cards -------------------------------------------------------------------- */
.hef-speaker-photo {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  filter: grayscale(38%) contrast(1.03);
  transition: filter 200ms ease;
}
.hef-speaker-card:hover .hef-speaker-photo { filter: grayscale(0%); }

/* Nav mobile panel ------------------------------------------------------------------- */
#mobileNav { max-height: 0; overflow: hidden; transition: max-height 260ms ease; }
#mobileNav.is-open { max-height: 640px; }

/* Newsletter / forms ------------------------------------------------------------------ */
.hef-input {
  width: 100%;
  border: 1px solid var(--hef-line);
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  background: var(--hef-white);
  color: var(--hef-ink);
}
.hef-input:focus { border-color: var(--hef-blue); outline: none; box-shadow: 0 0 0 3px rgba(122,31,46,0.14); }
.hef-label { font-size: 0.82rem; font-weight: 600; color: var(--hef-slate); display: block; margin-bottom: 0.35rem; }

/* Section dividers -------------------------------------------------------------------- */
.hef-rule { height: 1px; background: var(--hef-line); }

/* Gallery filter buttons ---------------------------------------------------------------- */
.hef-filter { font-family:'Montserrat',sans-serif; font-weight:600; font-size:0.82rem; padding:0.5rem 1rem; border:1px solid var(--hef-line); color: var(--hef-slate); background: var(--hef-white); }
.hef-filter.is-active { background: var(--hef-blue); border-color: var(--hef-blue); color: var(--hef-white); }

/* Back to top ------------------------------------------------------------------------------ */
#backToTop { transition: opacity 200ms ease, transform 200ms ease; }
