/* ============================================================
   canada.css — Conaway.org Canada Trip 2006
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Open+Sans:wght@400;600&display=swap');

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #939ca3;
  color: #2c2c2c;
  line-height: 1.7;
}

/* ----- Page Wrapper ----- */
.page-wrapper {
  max-width: 960px;
  margin: 30px auto;
  background: #fff;
  box-shadow: 0 0 40px rgba(0,0,0,0.18);
  min-height: 100vh;
}

/* ----- Site Header ----- */
.site-header {
  background: linear-gradient(135deg, #1a2a3a 0%, #243447 60%, #1f3048 100%);
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.maple-leaf img {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.maple-leaf {
  flex-shrink: 0;
}
.maple-leaf svg {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.header-divider {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.header-text h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.header-text .subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: 1.0rem;
  color: #bed7eb;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ----- Navigation ----- */
.site-nav {
  background: #ffffff;
  border-bottom: 2px solid #e4dfd9;
  display: flex;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.site-nav a {
  display: inline-block;
  padding: 13px 15px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4a5568;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  white-space: nowrap;
}
.site-nav a:hover {
  color: #c8102e;
  border-bottom-color: #c8102e;
  background: #fdf5f6;
}
.site-nav a.active {
  color: #c8102e;
  border-bottom-color: #c8102e;
  font-weight: 700;
}
.site-nav .nav-home {
  color: #7a8899;
  border-right: 1px solid #e4dfd9;
  padding-right: 18px;
  margin-right: 4px;
}
.site-nav .nav-home:hover {
  color: #c8102e;
  background: #fdf5f6;
}

/* ----- Header Picture ----- */
.headerpic {
  width: 100%;
  overflow: hidden;
  border-bottom: 3px double #d0cbc4;
  background: #1a2a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 290px;
}
.headerpic img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ----- Content Area ----- */
.content {
  padding: 30px 38px 48px;
}

.content h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eae6e1;
}

.content p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 14px;
}

.content a {
  color: #2c5f8a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.content a:hover {
  color: #c8102e;
  border-bottom-color: #c8102e;
}

img.thumb {
  float: left;
  margin: 8px 16px 8px 0;
  border: 1px solid #ccc;
  padding: 3px;
  background: #fff;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

/* ----- Photo Grid ----- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 6px;
  margin-top: 26px;
  clear: both;
}

.photo-grid a {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 2px solid transparent;
  transition: transform 0.22s ease, border-color 0.18s;
  cursor: pointer;
}

.photo-grid a:hover img {
  border-color: #c8102e;
  transform: scale(1.05);
}

/* ----- Lightbox ----- */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 24, 0.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lb-overlay.open { display: flex; }

.lb-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 88vw;
}

.lb-img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border: 3px solid #000;
  box-shadow: 0 8px 48px rgba(0,0,0,0.7);
}

.lb-caption {
  color: #ddd;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
  letter-spacing: 0.02em;
}
.lb-counter {
  color: #7a8a9a;
  font-size: 0.72rem;
  margin-top: 5px;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lb-close {
  position: absolute;
  top: -44px;
  right: -4px;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 4px 10px;
  opacity: 0.75;
  transition: opacity 0.15s, color 0.15s;
}
.lb-close:hover { opacity: 1; color: #c8102e; }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 2.2rem;
  padding: 14px 18px;
  cursor: pointer;
  z-index: 10000;
  border-radius: 4px;
  transition: background 0.18s, border-color 0.18s;
  line-height: 1;
}
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-prev:hover, .lb-next:hover {
  background: rgba(200, 16, 46, 0.45);
  border-color: #c8102e;
}

/* ----- Movie Pages ----- */
.movie-subnav {
  text-align: center;
  padding: 14px 20px;
  background: #f7f4f0;
  border-bottom: 1px solid #e4dfd9;
  font-size: 0.83rem;
  color: #777;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.03em;
}
.movie-subnav a {
  color: #2c5f8a;
  text-decoration: none;
  margin: 0 4px;
  transition: color 0.15s;
  border-bottom: none;
}
.movie-subnav a:hover { color: #c8102e; }
.movie-subnav strong {
  color: #333;
  font-weight: 600;
  margin: 0 4px;
}
.movie-subnav .sep { color: #ccc; margin: 0 2px; }

.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 700px;
  margin: 32px auto;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.25);
}
.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 0;
}

/* ----- Movies Hub Cards ----- */
.movies-intro {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eae6e1;
}

.movie-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.movie-card {
  display: block;
  background: #f7f4f0;
  border: 2px solid #e4dfd9;
  border-radius: 8px;
  padding: 24px 16px 20px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: background 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.18s;
}
.movie-card:hover {
  background: #fff;
  border-color: #c8102e;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(200,16,46,0.12);
  color: #c8102e;
  text-decoration: none;
  border-bottom: 2px solid #c8102e;
}
.movie-card .card-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
}
.movie-card .card-label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: block;
}

/* ----- Links Page ----- */
.links-list p {
  padding: 13px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.94rem;
}
.links-list p:last-child { border-bottom: none; }

/* ----- Footer ----- */
.site-footer {
  background: #f2ede8;
  border-top: 3px double #d0cbc4;
  text-align: center;
  padding: 20px 24px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.76rem;
  color: #999;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer a {
  color: #777;
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer a:hover { color: #c8102e; }
.site-footer .sep { margin: 0 12px; color: #ccc; }

/* ----- Utility ----- */
.clearfix::after { content: ''; display: block; clear: both; }

/* ----- Responsive ----- */
@media (max-width: 680px) {
  .site-header { padding: 16px 20px; gap: 16px; }
  .maple-leaf svg { width: 44px; height: 44px; }
  .header-text h1 { font-size: 1.1rem; }
  .header-divider { height: 38px; }
  .site-nav a { padding: 10px 10px; font-size: 0.72rem; }
  .content { padding: 20px 22px 36px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 4px; }
  .lb-prev { left: 4px; padding: 10px 12px; }
  .lb-next { right: 4px; padding: 10px 12px; }
  .movie-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .header-text h1 { font-size: 0.95rem; }
  .header-text .subtitle { font-size: 0.68rem; }
  .maple-leaf svg { width: 36px; height: 36px; }
  .header-divider { display: none; }
}
