/* ============================================================
   we were here — stylesheet
   A warm, vintage-pastel theme for a history & exploration site.
   Colours, fonts and spacing are all controlled from the tokens
   in :root below — change those to restyle the whole site.
   ============================================================ */

:root {
  /* --- Painted peaks palette ---
     Soft sky blue, hand-painted pine greens and quiet cream:
     calm, airy and storybook-painterly. */
  --cream:      #F3F3EA;  /* main page background — soft cream            */
  --cream-2:    #E8ECDD;  /* alternate section background — pale moss     */
  --paper:      #FCFCF6;  /* cards, nav, lightest                         */
  --sage:       #7FA981;  /* painted moss green (decorative)              */
  --sage-dark:  #2F5D45;  /* deep pine for links/CTAs (AA on cream)       */
  --rose:       #8FA9C6;  /* soft slate-sky accent (decorative only)      */
  --rose-text:  #3E6288;  /* deeper slate blue for TEXT — readable        */
  --blue:       #A9C7E8;  /* the sky itself (decorative)                  */
  --gold:       #D6C08B;  /* pale straw highlight                         */
  --ink:        #2E352E;  /* main body text — green-black                 */
  --ink-soft:   #5C6658;  /* muted / secondary text                       */
  --line:       #DCE0CE;  /* hairline borders                             */

  /* --- Type --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Layout --- */
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px -18px rgba(61, 57, 47, 0.45);
  --shadow-soft: 0 8px 22px -16px rgba(61, 57, 47, 0.4);
}

/* --- Reset-ish --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.4em;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--sage-dark); color: var(--paper); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: #24483B; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--sage-dark); }
.btn-outline:hover { background: rgba(47, 93, 69, 0.10); }
.btn + .btn { margin-left: 12px; }

/* --- Header / nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #F3F3EA;
  font-size: 1rem;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.25);
}
.brand-text { font-style: italic; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--rose); }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--sage); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s;
}

/* --- Hero: full-height painted mountain scene --- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 94vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  background: linear-gradient(180deg, #C4D9F0 0%, #A9C7E8 48%, #BFD3E4 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding-top: 22vh;
  padding-bottom: 0;
}
.hero .eyebrow { color: var(--ink); opacity: 0.75; }
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  letter-spacing: 1px;
  line-height: 1.02;
  margin-bottom: 0.25em;
  text-shadow: 0 2px 30px rgba(36, 48, 40, 0.35);
}
.hero p.lead {
  font-size: 1.18rem;
  color: var(--paper);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 16px rgba(36, 48, 40, 0.45);
}
/* Buttons sitting on the painted scene */
.hero .btn-primary { background: var(--paper); color: var(--sage-dark); }
.hero .btn-primary:hover { background: var(--cream); }
.hero .btn-outline {
  color: var(--paper);
  border-color: rgba(252, 252, 246, 0.85);
  background: rgba(46, 53, 46, 0.22);
}
.hero .btn-outline:hover { background: rgba(46, 53, 46, 0.38); }

/* Transparent header floating over the scene (home page only) */
.site-header.on-scene {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  z-index: 60;
}
.site-header.on-scene .site-nav a { color: var(--ink); }
.site-header.on-scene .site-nav a:hover,
.site-header.on-scene .site-nav a.active { color: var(--ink); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--rose-text);
  margin-bottom: 18px;
}
.hero-cta { margin-top: 30px; }
.hero-scene {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 60vh;
  z-index: 1;
  display: block;
}

/* --- Sections --- */
.section { padding: 76px 0; }
.section-alt { background: var(--cream-2); }
.section-tint { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 0; }

/* --- Feature row --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}
.feature .ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.ico.green { background: rgba(157,179,154,0.35); }
.ico.blue  { background: rgba(167,194,214,0.4); }
.ico.rose  { background: rgba(221,161,137,0.32); }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 0; }

/* --- Location cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.loc-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.loc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.loc-thumb {
  height: 180px;
  position: relative;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
}
/* Pastel gradient placeholders — swap for a real photo by adding
   <img> or a background-image on .loc-thumb when you have one. */
.thumb-1 { background: linear-gradient(135deg, #8FB694, #3E6B4F); }
.thumb-2 { background: linear-gradient(135deg, #E0CD9C, #B9A05E); }
.thumb-3 { background: linear-gradient(135deg, #B7D0E8, #7E9EC0); }
.thumb-4 { background: linear-gradient(135deg, #C9D8AF, #93AC74); }
.loc-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.loc-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--sage-dark);
  margin-bottom: 8px;
}
.loc-body h3 { color: var(--ink); margin-bottom: 8px; }
.loc-body p { color: var(--ink-soft); font-size: 0.98rem; }
.loc-body .read-more {
  margin-top: auto;
  font-weight: 700;
  color: var(--rose-text);
}

/* --- Rich text (article / location pages) --- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; box-shadow: var(--shadow-soft); }

/* --- Location page header --- */
.loc-hero {
  height: 320px;
  display: grid; place-items: end start;
  color: var(--paper);
  position: relative;
  background: linear-gradient(135deg, #8FB694, #3E6B4F);
}
.loc-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(61,57,47,0) 40%, rgba(61,57,47,0.55) 100%);
}
.loc-hero .container { position: relative; z-index: 2; padding-bottom: 30px; }
.loc-hero h1 { color: var(--paper); margin-bottom: 4px; }
.loc-hero .loc-sub { color: rgba(255,253,248,0.92); font-weight: 600; }

/* --- Support / callout box --- */
.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--sage);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-soft);
  margin: 26px 0;
}
.callout.rose { border-left-color: var(--rose); }
.callout.blue { border-left-color: var(--blue); }
.callout h3 { margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

/* --- Contact --- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.contact-list .tag {
  min-width: 90px;
  font-weight: 800;
  color: var(--sage-dark);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
}

/* --- CTA banner --- */
.cta-band {
  background: var(--sage-dark);
  border-radius: var(--radius);
  padding: 52px 40px;
  text-align: center;
  color: var(--paper);
  box-shadow: var(--shadow);
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(255, 252, 243, 0.85); max-width: 520px; margin: 0 auto 22px; }
/* On the deep green band, the primary button flips to cream */
.cta-band .btn-primary { background: var(--paper); color: var(--sage-dark); }
.cta-band .btn-primary:hover { background: var(--cream); }

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: #D9D2C4;
  padding: 54px 0 30px;
  margin-top: 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}
.site-footer .brand-text { color: var(--gold); font-size: 1.4rem; }
.footer-tag { color: #A79F90; margin-top: 6px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #D9D2C4; font-weight: 600; }
.footer-nav a:hover { color: var(--gold); text-decoration: none; }
.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin: 14px 0 0;
  color: #8F887A;
  font-size: 0.88rem;
}

/* --- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .features, .card-grid, .support-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-header.on-scene .site-nav.open { background: var(--paper); }
  .hero { min-height: 86vh; }
  .hero-inner { padding-top: 16vh; }
  .hero-scene { height: 48vh; }
}

/* --- Feature icons (inline SVG) --- */
.ico svg { width: 26px; height: 26px; display: block; }
.ico.green { color: var(--sage-dark); }
.ico.blue  { color: #3E6288; }
.ico.rose  { color: var(--rose-text); }

/* --- Locations map --- */
.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 44px;
  background: var(--cream-2);
}
#loc-map { height: 440px; }
/* Soften the map tiles so they sit with the pastel palette */
#loc-map .leaflet-tile { filter: sepia(0.22) saturate(0.78) contrast(0.95); }
#loc-map .leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  color: var(--ink);
}
#loc-map .leaflet-popup-content { margin: 12px 16px; line-height: 1.4; }
#loc-map .leaflet-popup-content .pop-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
#loc-map .leaflet-popup-content .pop-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  color: var(--sage-dark);
  display: block;
  margin-bottom: 6px;
}
.map-note { font-size: 0.88rem; color: var(--ink-soft); margin: 10px 0 0; text-align: right; }

/* --- Sources & further reading --- */
.sources {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
}
.sources li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  position: relative;
}
.sources li::before {
  content: "§";
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-weight: 700;
}
.sources-note { font-size: 0.95rem; color: var(--ink-soft); }

/* --- Small print (e.g. donation handling note) --- */
.fine-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 10px;
}

@media (max-width: 860px) {
  #loc-map { height: 300px; }
}
