/* ==========================================================================
   Hall Museum — Sage Green / Forest Theme — Refined Edition
   ========================================================================== */

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

:root {
  --parchment:    #eaede6;
  --parchment-dk: #d8ddd3;
  --ink:          #1e2920;
  --ink-light:    #4a5a4e;
  --accent:       #5c7265;
  --accent-dark:  #3f5247;
  --accent-gold:  #8a9e82;
  --cream:        #f2f4f0;
  --border:       #b4bdb0;
  --shadow:       rgba(30, 41, 32, .12);
  --radius:       6px;
  --transition:   .3s ease;
}

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

/* Skip Navigation Link (Accessibility) */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--ink);
  color: var(--parchment);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-nav:focus {
  top: 16px;
}

body {
  font-family: 'Lora', 'EB Garamond', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background-color: var(--parchment);
  line-height: 1.75;
  font-size: 17px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #eaede6 0%, #d8ddd3 100%);
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-gold); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.caption {
  font-size: 0.85rem;
  color: var(--ink-light);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* ---------- SVG Ornaments ---------- */
.svg-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.svg-ornament svg {
  width: 36px;
  height: 36px;
  opacity: .55;
}

.svg-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}
.svg-divider .line {
  width: 48px;
  height: 1px;
  background: var(--accent);
  opacity: .35;
}
.svg-divider svg {
  width: 18px;
  height: 18px;
  opacity: .4;
}

/* ---------- Navigation ---------- */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 17, 18, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 169, 64, .35);
  transition: background var(--transition), box-shadow var(--transition);
}
.main-nav.scrolled {
  background: rgba(8, 10, 12, .98);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e2bf5e;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand-logo {
  height: 42px;
  width: 42px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.nav-brand span {
  color: #e2bf5e;
}
.nav-brand:hover { color: #f5d780; }
.nav-brand:hover span { color: #f5d780; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}
.nav-links a {
  display: block;
  padding: 6px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d4a940;
  letter-spacing: .4px;
  font-family: 'Lora', serif;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover {
  color: #f5d780;
  background: rgba(212, 169, 64, .12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(184, 134, 11, .75);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 600px) {
  .nav-brand-logo { height: 34px; width: 34px; }
  .nav-brand { gap: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    linear-gradient(180deg, rgba(30,41,32,.6) 0%, rgba(30,41,32,.4) 100%),
    url('images/looking South from the Hugh Hall House.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-ornament {
  margin-bottom: 20px;
  opacity: .7;
  display: flex;
  justify-content: center;
}
.hero-ornament svg {
  width: 48px;
  height: 48px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  letter-spacing: 2px;
}

.hero-tagline {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #fff;
  font-style: italic;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.hero-rule .line {
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
  opacity: .5;
}
.hero-rule svg {
  width: 16px;
  height: 16px;
  opacity: .5;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(92, 114, 101, .35);
}

/* ---------- Sections ---------- */
.section {
  padding: 90px 0;
}
.section-alt {
  background-color: var(--parchment-dk);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.header-rule {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.header-rule span {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--accent);
  opacity: .4;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ink-light);
  margin-top: 18px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Museum Content ---------- */
.museum-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}
.museum-intro p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.museum-features {
  max-width: 750px;
  margin: 0 auto 50px;
}
.museum-features p {
  margin-bottom: 1rem;
}

.rustic-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
.rustic-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.rustic-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c7265' stroke-width='2'%3E%3Cpath d='M12 2L9 9H2l6 4.5L5.5 22 12 17l6.5 5L16 13.5 22 9h-7z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: .5;
}

/* ---------- Community Profiles ---------- */
.community-profiles {
  max-width: 900px;
  margin: 0 auto 50px;
}

.community-block {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

.community-block.reverse {
  grid-template-columns: 300px 1fr;
}

.community-block.reverse .community-text {
  order: 2;
}

.community-block.reverse .community-image {
  order: 1;
}

.community-text h3 {
  margin-bottom: 16px;
  color: var(--accent-dark);
}

.community-text p {
  margin-bottom: 1rem;
  line-height: 1.85;
}

.community-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 30px var(--shadow);
  border: 4px solid rgba(180, 189, 176, .4);
  object-fit: cover;
}

.descendants-section {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.descendants-section h3 {
  margin-bottom: 20px;
  color: var(--accent-dark);
}

.descendants-section p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.descendants-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.descendants-gallery .gallery-item img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 30px var(--shadow);
  border: 4px solid rgba(180, 189, 176, .4);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease, box-shadow .4s ease;
}

.descendants-gallery .gallery-item img:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(30, 41, 32, 0.18);
}

/* ---------- Museum Gallery ---------- */
.museum-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-item img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 6px 30px var(--shadow);
  border: 4px solid rgba(180, 189, 176, .4);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease, box-shadow .4s ease;
}

.gallery-item img:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(30, 41, 32, 0.18);
}

/* ---------- Interactive Map ---------- */
.map-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px var(--shadow);
  border: 4px solid rgba(180, 189, 176, .4);
}

#wagon-road-map {
  width: 100%;
  height: 520px;
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 16px;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-light);
  font-weight: 600;
}

.map-legend-line {
  width: 24px;
  height: 3px;
  border-radius: 2px;
}

/* ---------- Donate ---------- */
.donate-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.donate-lead {
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}
.donate-box {
  margin-top: 36px;
  padding: 44px 36px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
}
.donate-box h3 {
  margin-bottom: 16px;
}
.donate-box p {
  margin-bottom: 14px;
  color: var(--ink-light);
}
.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 18px 48px;
  background: var(--accent);
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-donate svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn-donate:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(92, 114, 101, .4);
}

/* ---------- Contact ---------- */
.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.contact-content > p {
  margin-bottom: 30px;
  color: var(--ink-light);
}
.contact-card {
  padding: 40px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  margin-bottom: 30px;
}
.contact-card h3 {
  margin-bottom: 16px;
}
.contact-card p {
  margin-bottom: 8px;
}
.contact-card a {
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 50px 0 30px;
}
.footer-content {
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-brand svg {
  width: 32px;
  height: 32px;
  opacity: .5;
}
.footer-brand h3 {
  color: var(--accent-gold);
  margin-bottom: 2px;
  font-size: 1.3rem;
}
.footer-brand p {
  font-style: italic;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  opacity: .7;
}
.footer-nav {
  margin: 28px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(255,255,255,.55);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 700;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.footer-nav a:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  margin-top: 8px;
}
.footer-bottom p {
  font-size: 0.8rem;
  opacity: .5;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .museum-gallery {
    grid-template-columns: 1fr;
  }
  .community-block,
  .community-block.reverse {
    grid-template-columns: 1fr;
  }
  .community-block.reverse .community-text,
  .community-block.reverse .community-image {
    order: unset;
  }
  .community-image {
    max-width: 300px;
    margin: 0 auto;
  }
  .descendants-gallery {
    grid-template-columns: 1fr;
  }
  #wagon-road-map {
    height: 400px;
  }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }

  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: rgba(8, 10, 12, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 20px 16px;
    gap: 0;
    border-bottom: 1px solid rgba(212, 169, 64, .35);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links a {
    padding: 11px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
  }
  .nav-links a:hover {
    background: rgba(212, 169, 64, .12);
  }

  .hero { min-height: 60vh; padding: 100px 20px 60px; }
  .hero h1 { font-size: 2rem; }

  .map-legend {
    gap: 16px;
  }

  #wagon-road-map {
    height: 350px;
  }
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Print ---------- */
@media print {
  .main-nav,
  .hero-overlay,
  .nav-toggle,
  .hero-ornament,
  .hero-rule,
  .header-rule,
  .svg-ornament,
  .svg-divider,
  .map-container,
  .map-legend { display: none !important; }

  body {
    font-size: 12pt;
    background: #fff;
    color: #000;
  }

  .hero {
    background: none !important;
    color: #000;
    min-height: auto;
    padding: 20px 0;
  }

  .section, .section-alt {
    background: #fff !important;
    padding: 16px 0;
  }

  a { color: #000; text-decoration: underline; }
  img { max-width: 100%; height: auto; }
  .btn, .btn-donate { display: none; }

  .site-footer {
    background: #fff !important;
    color: #000;
    border-top: 1px solid #ccc;
  }
}
