/* ============================================
   Gruppe Offene Synode — Style Sheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Earthy / warm palette inspired by creation preservation */
  --color-forest:      #2d5016;
  --color-forest-dark: #1a3a0a;
  --color-olive:       #5a7247;
  --color-sage:        #7d9b6a;
  --color-sage-light:  #a8c496;
  --color-earth:       #8b7355;
  --color-warm:        #c9a96e;
  --color-cream:       #faf7f2;
  --color-sand:        #f0ebe3;
  --color-white:       #ffffff;
  --color-text:        #2c2c2c;
  --color-text-light:  #5a5a5a;
  --color-text-muted:  #8a8a8a;
  --color-border:      #e0dbd3;
  --color-accent:      #b8860b; /* warm gold accent */
  --color-accent-light:#d4a94220;

  /* Typography */
  --font-sans:  'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --section-pad: 6rem;
  --container-max: 1100px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-forest);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--color-accent);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-forest);
}

.nav-logo:hover {
  color: var(--color-forest-dark);
}

.logo-icon {
  font-size: 1.1rem;
  color: var(--color-sage);
}

/* Language switcher (inside nav) */

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-light);
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-sage);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--color-forest);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

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

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

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(90, 114, 71, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(201, 169, 110, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(45, 80, 22, 0.06) 0%, transparent 40%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.6vw, 3.5rem);
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-forest-dark);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--color-earth);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: var(--color-forest);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}

.hero-cta:hover {
  background: var(--color-forest-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-sage);
  animation: bobble 2s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* --- Sections --- */
.section {
  padding: var(--section-pad) 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-forest-dark);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-creed {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-forest-dark);
}

.hero-creed-source {
  margin: -0.25rem 0 2rem;
  font-size: 1rem;
  color: var(--color-text-light);
}

/* --- Wer wir sind / Was wir wollen / Wie wir arbeiten --- */
.section-who {
  background: var(--color-cream);
}


.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section-goals {
  background: var(--color-white);
}

.section-how {
  background: var(--color-sand);
}

.creed {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-forest-dark);
  text-align: center;
}

.section-people {
  background: var(--color-white);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.person-card {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.person-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--color-forest);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  margin-bottom: 0.25rem;
}

.person-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-olive);
  margin-bottom: 0.75rem;
}

.person-card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.person-mail {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-forest);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.person-phone {
  margin-top: 0.35rem;
}

.person-mail,
.person-phone {
  display: block;
}

.person-mail:hover {
  text-decoration: underline;
}

.creed[hidden] {
  display: none;
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.88rem;
  }
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Mitglieder-Login --- */
.nav-auth a {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem !important;
  color: var(--color-forest);
}

.nav-auth a::after {
  display: none;
}

.nav-auth a:hover {
  background: var(--color-sand);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 58, 10, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal[hidden] {
  display: none;
}

.auth-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--color-white);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.auth-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
}

.auth-logo {
  color: var(--color-accent);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.auth-card h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-forest-dark);
  margin-bottom: 0.5rem;
}

.auth-intro,
.auth-hint,
.auth-notice {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

.auth-intro {
  margin-bottom: 1.5rem;
}

.auth-hint {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.auth-notice {
  margin-bottom: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.auth-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.auth-form input {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;
}

.auth-form input:focus {
  outline: 2px solid var(--color-sage-light);
  border-color: var(--color-sage);
}

.btn-auth {
  margin-top: 1rem;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  background: var(--color-forest);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.btn-auth:hover {
  background: var(--color-forest-dark);
}

.auth-link {
  margin-top: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.auth-link-strong {
  color: var(--color-forest);
  font-weight: 600;
  margin-top: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-google:hover {
  background: var(--color-sand);
}

.auth-error.is-ok {
  color: var(--color-forest);
}

#authAccount .auth-form {
  margin-top: 0.5rem;
}

.auth-form[hidden] {
  display: none;
}

.auth-error {
  margin-top: 1rem;
  color: #a33a2a;
  font-size: 0.9rem;
}

/* --- Sessions / Timeline Section --- */
.section-sessions {
  background: var(--color-cream);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--color-sage-light), var(--color-border));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.35rem;
  top: 1.85rem;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-sage-light);
  border: 2px solid var(--color-cream);
  box-shadow: 0 0 0 2px var(--color-sage-light);
}

.timeline-dot::after {
  display: none;
}

.timeline-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  border: 1px solid var(--color-border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(45, 80, 22, 0.07);
}

.timeline-date {
  min-width: 80px;
  text-align: center;
  flex-shrink: 0;
}

.date-day {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-forest-dark);
  line-height: 1.2;
}

.date-month {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.timeline-body {
  flex: 1;
}

.session-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.badge-spring {
  background: rgba(90, 114, 71, 0.12);
  color: var(--color-olive);
}

.badge-dialogue {
  background: rgba(184, 134, 11, 0.12);
  color: var(--color-accent);
}

.badge-autumn {
  background: rgba(139, 115, 85, 0.15);
  color: var(--color-earth);
}

.badge-gos {
  background: rgba(45, 80, 22, 0.15);
  color: var(--color-primary);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 0;
  margin-bottom: 2.5rem;
  justify-content: center;
  background: var(--color-sand);
  border-radius: 50px;
  padding: 0.3rem;
  position: relative;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Sliding pill indicator */
.filter-pill {
  position: absolute;
  top: 0.3rem;
  left: 0;
  height: calc(100% - 0.6rem);
  border-radius: 50px;
  background: var(--color-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.15, 1), width 0.35s cubic-bezier(0.4, 0, 0.15, 1);
  z-index: 0;
  pointer-events: none;
}

.filter-btn {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.5rem;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.15, 1);
  position: relative;
  z-index: 1;
}

.filter-btn:hover {
  color: var(--color-forest);
}

.filter-btn.active {
  color: var(--color-forest);
}

.filter-btn[data-filter="synode"].active {
  color: var(--color-olive);
}

.filter-btn[data-filter="gos"].active {
  color: var(--color-forest);
}

/* Dot color by category — subtle tint only */
.dot-synode {
  background: var(--color-olive);
  box-shadow: 0 0 0 2px var(--color-olive);
}

.dot-gos {
  background: var(--color-forest);
  box-shadow: 0 0 0 2px var(--color-forest);
}

.dot-andere {
  background: var(--color-earth);
  box-shadow: 0 0 0 2px var(--color-earth);
}

.filter-bar[hidden] {
  display: none;
}

/* Filter animation */
.timeline-item {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.15, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.15, 1),
              max-height 0.45s cubic-bezier(0.4, 0, 0.15, 1),
              margin-bottom 0.45s cubic-bezier(0.4, 0, 0.15, 1);
  max-height: 300px; /* generous max for open state */
  overflow: hidden;
}

.timeline-item.hidden {
  opacity: 0;
  transform: translateX(-20px) scale(0.97);
  max-height: 0;
  margin-bottom: 0;
}

.timeline-item.filter-entering {
  animation: filterSlideIn 0.4s cubic-bezier(0.4, 0, 0.15, 1) forwards;
}

@keyframes filterSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.timeline-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  margin-bottom: 0.4rem;
}

.timeline-body p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* --- Documents Section --- */
.section-docs {
  background: var(--color-white);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: var(--color-text);
  transition: all 0.3s var(--ease);
}

.doc-card:hover {
  border-color: var(--color-sage-light);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.08);
  transform: translateY(-2px);
  color: var(--color-text);
}

.doc-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(90, 114, 71, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-olive);
}

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-info h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  margin-bottom: 0.2rem;
}

.doc-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.doc-meta {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-sage);
}

.doc-download {
  flex-shrink: 0;
  color: var(--color-sage);
  opacity: 0.5;
  transition: opacity 0.2s var(--ease);
}

.doc-card:hover .doc-download {
  opacity: 1;
}

/* --- Contact Section --- */
.section-contact {
  background: var(--color-cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-wrapper {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2.25rem;
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.required {
  color: var(--color-accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(125, 155, 106, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

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

.form-success {
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: 10px;
  background: rgba(90, 114, 71, 0.12);
  color: var(--color-forest-dark);
  font-weight: 600;
}

.form-success[hidden],
.form-error-global[hidden] {
  display: none;
}

.form-error-global {
  display: block;
  margin-bottom: 1rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form.sending .btn-submit {
  opacity: 0.6;
  pointer-events: none;
}

.form-error {
  display: none;
  font-size: 0.82rem;
  color: #c0392b;
  margin-top: 0.35rem;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #c0392b;
}

.form-group.error .form-error {
  display: block;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--color-forest);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}

.btn-submit:hover {
  background: var(--color-forest-dark);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Contact info cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
}

.contact-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.contact-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  margin-bottom: 0.35rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--color-olive);
  font-weight: 500;
}

.contact-link:hover {
  color: var(--color-forest);
}

/* --- Footer --- */
.footer {
  background: var(--color-forest-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
}

.footer-left p {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.footer-right a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-right a:hover {
  color: var(--color-white);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-admin-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s var(--ease);
}

.footer-admin-link:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-auth {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.5rem;
  }

  .nav-auth a {
    display: inline-block !important;
    padding: 0.4rem 1rem !important;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  :root {
    --section-pad: 4rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s var(--ease);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
  }

  .timeline-date {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .date-day {
    font-size: 1.25rem;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 90vh;
    padding: 5rem 1rem 3rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .timeline-marker {
    left: -1.85rem;
  }

  .timeline-dot {
    width: 8px;
    height: 8px;
  }
}

/* --- Dynamic Content Loading States --- */
.content-loading {
  text-align: center;
  padding: 3rem 1rem;
}

.loading-dots {
  display: inline-flex;
  gap: 0.5rem;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sage-light);
  animation: loadingDot 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes loadingDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

.content-empty,
.content-error {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  padding: 2rem 1rem;
  font-style: italic;
}

.content-error {
  color: var(--color-earth);
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .person-card,
  .timeline-item,
  .doc-card,
  .contact-form-wrapper,
  .contact-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .person-card.visible,
  .timeline-item.visible,
  .doc-card.visible,
  .contact-form-wrapper.visible,
  .contact-card.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .person-card:nth-child(2) { transition-delay: 0.1s; }
  .person-card:nth-child(3) { transition-delay: 0.2s; }
  .person-card:nth-child(4) { transition-delay: 0.3s; }
  .timeline-item:nth-child(2) { transition-delay: 0.15s; }
  .timeline-item:nth-child(3) { transition-delay: 0.3s; }
}
