/* ===== Variables ===== */
:root {
  --green-dark: #1a3a2a;
  --green-mid: #2d5a3d;
  --green-light: #3d7a52;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #a68520;
  --cream: #f5f0e8;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --shadow: 0 8px 32px rgba(26, 58, 42, 0.15);
  --shadow-hover: 0 16px 48px rgba(26, 58, 42, 0.25);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Amiri', 'Scheherazade New', serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.9;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

h1, h2, h3, h4 {
  font-family: 'Scheherazade New', 'Amiri', serif;
  font-weight: 700;
  color: var(--green-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* ===== Islamic Geometric Header Pattern ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-dark) 0%, #0f2818 50%, var(--green-mid) 100%);
  color: var(--cream);
  padding: calc(var(--nav-height) + env(safe-area-inset-top, 0px) + 3rem) 0 5rem;
  overflow: hidden;
  text-align: center;
  max-width: 100vw;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(201, 162, 39, 0.06) 20px, rgba(201, 162, 39, 0.06) 21px),
    repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(201, 162, 39, 0.04) 20px, rgba(201, 162, 39, 0.04) 21px);
  animation: patternShift 20s linear infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--cream), transparent);
}

@keyframes patternShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeDown 1s ease 0.2s forwards;
}

.hero-ornament span {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-ornament svg {
  width: 40px;
  height: 40px;
  fill: var(--gold);
  animation: spinSlow 30s linear infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--gold-light);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeDown 1s ease 0.4s forwards;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--cream);
  opacity: 0;
  animation: fadeDown 1s ease 0.6s forwards;
}

.hero-dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeDown 1s ease 0.8s forwards;
}

.date-badge {
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid var(--gold);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 58, 42, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
  transition: box-shadow var(--transition), background var(--transition);
  padding-top: env(safe-area-inset-top, 0px);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  background: rgba(15, 40, 24, 0.98);
}

.nav-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-height);
  min-height: var(--nav-height);
}

.nav-logo {
  font-family: 'Scheherazade New', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex-shrink: 0;
  line-height: 1.2;
  order: 1;
}

.nav-logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
  fill: var(--gold);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  order: 2;
  margin-inline-end: auto;
  margin-inline-start: 1.5rem;
}

.nav-toggle {
  display: none;
  background: rgba(201, 162, 39, 0.1);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  order: 3;
}

.nav-toggle:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 1.05rem;
  position: relative;
  transition: all var(--transition);
  display: block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 70%;
}

.nav-backdrop {
  display: none;
}

/* ===== Sections ===== */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
}

.section-header .icon-wrap i,
.section-header .icon-wrap svg {
  font-size: 1.6rem;
  color: var(--gold);
  fill: var(--gold);
  width: 28px;
  height: 28px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-header p {
  color: #555;
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.2);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.card:hover::before {
  transform: scaleX(1);
}

/* ===== Intro ===== */
.intro-text {
  font-size: 1.25rem;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  line-height: 2.1;
}

.intro-text .highlight {
  color: var(--green-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

/* ===== Factions ===== */
.factions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.faction-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.faction-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 3px solid var(--gold);
  transition: transform var(--transition);
}

.faction-card:hover .faction-icon {
  transform: scale(1.1) rotate(5deg);
}

.faction-card.islamic .faction-icon {
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  color: var(--gold-light);
}

.faction-card.crusader .faction-icon {
  background: linear-gradient(135deg, #4a3728, #8b6914);
  color: var(--cream);
}

.faction-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--gold-dark);
}

.faction-card .leader {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.faction-card ul {
  list-style: none;
  text-align: right;
}

.faction-card li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(201, 162, 39, 0.3);
  font-size: 1.05rem;
}

.faction-card li:last-child {
  border-bottom: none;
}

/* ===== Timeline / Events ===== */
.timeline {
  position: relative;
  padding-right: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--green-dark));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 1.5rem 2rem 1.5rem 0;
  margin-bottom: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  right: -6px;
  top: 1.8rem;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border: 3px solid var(--green-dark);
  border-radius: 50%;
  transition: transform var(--transition);
}

.timeline-item:hover::before {
  transform: scale(1.4);
}

.timeline-item h4 {
  color: var(--gold-dark);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* ===== Causes ===== */
.causes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.cause-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.cause-card h3 i {
  color: var(--gold);
}

/* ===== Location & Map ===== */
.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--gold);
  aspect-ratio: 4/3;
}

.map-container iframe,
.map-container img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.map-container:hover img {
  transform: scale(1.03);
}

.location-desc {
  font-size: 1.15rem;
  line-height: 2;
}

.location-desc .place-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  display: block;
  margin-bottom: 0.5rem;
}

/* ===== Comparison Table ===== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 1.05rem;
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--cream);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.comparison-table th {
  font-size: 1.15rem;
  font-weight: 700;
}

.comparison-table tbody tr {
  transition: background var(--transition);
}

.comparison-table tbody tr:hover {
  background: rgba(201, 162, 39, 0.08);
}

.comparison-table .islamic-col {
  color: var(--green-dark);
  font-weight: 600;
}

.comparison-table .crusader-col {
  color: #6b4423;
  font-weight: 600;
}

/* ===== Battle Map SVG ===== */
.battle-map-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.battle-map-image {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
  display: block;
  border: 2px solid rgba(201, 162, 39, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}

.battle-map-container:hover .battle-map-image {
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(26, 58, 42, 0.2);
}

.battle-map-caption {
  text-align: center;
  margin-top: 1rem;
  color: #666;
  font-size: 1rem;
}

.battle-map-svg {
  width: 100%;
  max-height: 500px;
}

.battle-map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.legend-dot.muslim { background: var(--green-dark); }
.legend-dot.crusader { background: #8b4513; }
.legend-dot.water { background: #3498db; }
.legend-dot.fire { background: #e74c3c; }

.battle-map-svg .troop-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawPath 3s ease forwards;
}

.battle-map-svg .troop-path.delay-1 { animation-delay: 0.5s; }
.battle-map-svg .troop-path.delay-2 { animation-delay: 1s; }
.battle-map-svg .troop-path.delay-3 { animation-delay: 1.5s; }

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

.battle-map-svg .pulse {
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; r: 8; }
  50% { opacity: 0.6; r: 12; }
}

/* ===== Outcomes ===== */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.outcome-stat {
  text-align: center;
  padding: 2rem 1.5rem;
}

.outcome-stat .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  font-family: 'Scheherazade New', serif;
  display: block;
  margin-bottom: 0.5rem;
}

.outcome-stat .label {
  font-size: 1.05rem;
  color: #555;
}

/* ===== Lessons ===== */
.lessons-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.lesson-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-right: 4px solid var(--gold);
  transition: transform var(--transition);
}

.lesson-item:hover {
  transform: translateX(-6px);
}

.lesson-item .lesson-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--green-dark);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===== Page Navigation ===== */
.page-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 3rem 0;
}

.page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--cream);
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 700;
  border: 2px solid var(--gold);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.page-nav-btn:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--green-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.page-nav-btn i {
  font-size: 1.2rem;
}

/* ===== Sources Page ===== */
.video-grid,
.articles-grid,
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.video-card {
  padding: 0;
  overflow: hidden;
}

.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-dark), #0f2818);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(201,162,39,0.05) 10px, rgba(201,162,39,0.05) 11px);
}

.play-btn {
  width: 64px;
  height: 64px;
  background: rgba(201, 162, 39, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 1.5rem;
  z-index: 2;
  transition: transform var(--transition);
  border: none;
  cursor: pointer;
}

.video-card:hover .play-btn {
  transform: scale(1.15);
}

.video-info {
  padding: 1.5rem;
}

.video-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.video-info .channel {
  color: var(--gold-dark);
  font-size: 0.95rem;
}

.article-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--green-dark);
}

.article-card p {
  color: #555;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-dark);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--green-dark);
}

.book-card {
  display: flex;
  flex-direction: column;
}

.book-cover {
  width: 100%;
  height: 180px;
  background: linear-gradient(160deg, var(--green-dark) 30%, var(--gold-dark));
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -2rem -2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.book-cover i {
  font-size: 3rem;
  color: var(--gold-light);
  opacity: 0.6;
}

.book-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.book-card .author {
  color: var(--gold-dark);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.book-card .btn-gold {
  margin-top: auto;
  align-self: flex-start;
}

.sites-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.site-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 162, 39, 0.2);
  transition: all var(--transition);
}

.site-link:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-hover);
}

.site-link i {
  font-size: 1.5rem;
  color: var(--gold);
  min-width: 40px;
  text-align: center;
}

.site-link .site-name {
  font-weight: 700;
  color: var(--green-dark);
  display: block;
}

.site-link .site-desc {
  font-size: 0.9rem;
  color: #777;
}

/* ===== Stories Page ===== */
.story-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.story-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  font-size: 2rem;
  color: var(--gold);
  transition: transform var(--transition);
}

.story-card:hover .story-icon {
  transform: rotateY(180deg);
}

.story-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--gold-dark);
}

.story-card p {
  font-size: 1.05rem;
  line-height: 2;
  text-align: right;
}

/* ===== Biography Cards ===== */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.bio-card {
  text-align: center;
  padding-top: 4rem;
  position: relative;
}

.bio-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  border: 4px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -5rem auto 1.5rem;
  font-size: 3rem;
  color: var(--gold-light);
  box-shadow: var(--shadow);
}

.bio-card h3 {
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 0.25rem;
}

.bio-card .bio-name-en {
  color: var(--gold-dark);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.bio-dates {
  display: inline-flex;
  gap: 1rem;
  background: rgba(201, 162, 39, 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.bio-role {
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.bio-card p {
  text-align: right;
  font-size: 1.05rem;
  line-height: 2;
}

/* ===== Facts List ===== */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.fact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.fact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--green-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
}

.fact-item p {
  font-size: 1.05rem;
  line-height: 1.9;
}

/* ===== Footer ===== */
.footer {
  background: var(--green-dark);
  color: var(--cream);
  text-align: center;
  padding: 2rem 0;
  border-top: 3px solid var(--gold);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0, var(--gold) 10px, transparent 10px, transparent 20px);
}

.footer p {
  font-size: 1.1rem;
}

.footer-ornament {
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
}

/* ===== Scroll to Top ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--green-dark);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ===== Alternating Section Backgrounds ===== */
.bg-white {
  background: var(--white);
}

.bg-cream {
  background: var(--cream);
}

.bg-green-light {
  background: linear-gradient(180deg, rgba(26, 58, 42, 0.04), transparent);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-logo {
    flex: 1;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 998;
  }

  .nav-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    margin: 0;
    background: rgba(15, 40, 24, 0.98);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    z-index: 999;
    max-height: calc(100vh - var(--nav-height) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    order: unset;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
    font-size: 1.1rem;
  }

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

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links a.active {
    background: rgba(201, 162, 39, 0.12);
    border-right: 3px solid var(--gold);
  }

  .location-content {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px) + 2rem);
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    padding: 0 0.5rem;
  }

  .hero-ornament span {
    width: 40px;
  }

  section {
    padding: 3rem 0;
  }

  .scroll-top {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-logo svg {
    width: 24px;
    height: 24px;
  }

  .hero-dates {
    flex-direction: column;
    align-items: center;
  }

  .date-badge {
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
  }

  .page-nav-btn {
    width: 100%;
    justify-content: center;
  }
}
