:root {
  --river: #2c5f7c;
  --stone: #8b7d6b;
  --green: #4a6b3a;
  --cream: #f5f0e8;
  --dark: #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
}

/* === Navigation === */
nav {
  position: sticky;
  top: 0;
  background: var(--river);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.nav-brand a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  font-family: Georgia, serif;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 14px 0;
  display: block;
}

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

.nav-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 14px 12px;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  transition: background 0.2s;
}

.nav-links a:hover { background: rgba(0,0,0,0.25); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 10px;
}

/* Mobile nav */
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--river);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
  }
  .nav-brand a { font-size: 1rem; }
}

/* === Hero === */
.hero {
  position: relative;
  height: 50vh;
  min-height: 320px;
  background: url('images/annick-water-below-lodge-mains.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.55));
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  letter-spacing: 1px;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  font-style: italic;
}

/* === Content === */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 25px;
}

.page-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 25px 0;
}

.page-header h1 {
  font-size: 2.2rem;
  color: var(--river);
  border-bottom: 3px solid var(--stone);
  padding-bottom: 10px;
  margin-bottom: 25px;
}

section h2 {
  font-size: 1.9rem;
  color: var(--river);
  border-bottom: 3px solid var(--stone);
  padding-bottom: 8px;
  margin-bottom: 25px;
}

section h3 {
  font-size: 1.35rem;
  color: var(--green);
  margin-top: 30px;
  margin-bottom: 12px;
}

section p { margin-bottom: 16px; font-size: 1.05rem; }
section ul { margin-left: 30px; margin-bottom: 16px; }

.lead {
  font-size: 1.2rem;
  color: var(--stone);
  font-style: italic;
  text-align: center;
  margin-bottom: 40px;
}

/* === Images === */
.fig { margin: 30px 0; }
.fig img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.fig figcaption {
  font-size: 0.85rem;
  color: #777;
  margin-top: 8px;
  text-align: center;
}

.img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}
.img-grid figure { margin: 0; }
.img-grid img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.img-grid figcaption {
  font-size: 0.8rem;
  color: #888;
  margin-top: 6px;
}

/* === Timeline === */
.timeline {
  border-left: 3px solid var(--river);
  padding-left: 30px;
  margin: 30px 0;
}
.timeline-item {
  margin-bottom: 25px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--stone);
  border-radius: 50%;
  border: 2px solid var(--cream);
}
.timeline-date {
  font-weight: bold;
  color: var(--river);
  font-size: 1.1rem;
}

/* === Cards === */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-left: 4px solid var(--stone);
}
.card.cat-a { border-left-color: #c0392b; }
.card.cat-b { border-left-color: #e67e22; }
.card.cat-c { border-left-color: var(--green); }

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: #fff;
  margin-bottom: 8px;
}
.badge.a { background: #c0392b; }
.badge.b { background: #e67e22; }
.badge.c { background: var(--green); }

.card h3 { margin-top: 0; }
.card .meta {
  font-size: 0.85rem;
  color: #999;
  font-family: Arial, sans-serif;
}
.card-img {
  margin: 15px 0 10px;
  border-radius: 6px;
  overflow: hidden;
}
.card-img img { width: 100%; display: block; }
.card-img .caption {
  font-size: 0.8rem;
  color: #888;
  padding: 6px 0;
}

/* === Quote === */
.quote {
  font-size: 1.3rem;
  font-style: italic;
  text-align: center;
  color: var(--stone);
  padding: 30px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin: 35px 0;
}

/* === Home page cards === */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.home-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.home-card .img-wrap {
  height: 160px;
  overflow: hidden;
}

.home-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-card .body {
  padding: 16px 18px;
}

.home-card .body h3 {
  color: var(--river);
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.home-card .body p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-card { display: flex; align-items: center; }
  .home-card .img-wrap { width: 110px; height: 110px; flex-shrink: 0; }
  .home-card .body { flex: 1; padding: 12px 14px; }
}

/* === Gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 30px 0;
}
.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* === Sources === */
.sources { font-size: 0.85rem; color: #888; font-family: Arial, sans-serif; }
.sources h3 { color: var(--stone); }
.sources a { color: var(--river); text-decoration: none; }
.sources a:hover { text-decoration: underline; }
.sources ul { list-style: none; padding-left: 0; }
.sources li {
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}
.sources li::before { content: '→'; position: absolute; left: 0; }

/* === Footer === */
footer {
  background: var(--dark);
  color: #aaa;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
}
footer a { color: var(--stone); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 15px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-nav a:hover { color: var(--stone); }

/* === Misc === */
.divider {
  text-align: center;
  font-size: 1.5rem;
  color: var(--stone);
  margin: 20px 0;
  letter-spacing: 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--river);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}
.back-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .img-grid { grid-template-columns: 1fr; }
  section { padding: 35px 18px; }
  .page-header { padding: 30px 18px 0; }
  .page-header h1 { font-size: 1.7rem; }
  .gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* Back to top */
#topBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background: var(--river);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
#topBtn:hover { background: var(--stone); }
