/* ============================================================
   Roland Banas — site styles
   Change colors and fonts here; every page uses this one file.
   ============================================================ */
:root {
  --ink: #2b2f33;          /* body text */
  --muted: #6b7178;        /* dates, small text */
  --accent: #b5562c;       /* links & buttons (desert rust) */
  --bg: #ffffff;
  --bg-alt: #f4f2ef;       /* footer / card background */
  --heading-font: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 760px;            /* width of article text */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body-font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 600; line-height: 1.25; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 100; }
.hidden { display: none; }

/* ---------- Header: sits on top of the photo ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 2rem; }
.logo { font-family: var(--heading-font); font-size: 1.6rem; color: #fff; text-decoration: none; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a { font-family: var(--heading-font); color: #fff; text-decoration: none; font-size: .95rem; padding-bottom: 3px; border-bottom: 2px solid transparent; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.site-nav a:hover, .site-nav a.active { border-bottom-color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* Pages without a big photo at the top get a dark header bar */
.page-title { background: #2f3a45; color: #fff; padding: 7.5rem 2rem 3rem; text-align: center; }
.page-title h1 { margin: 0; font-size: 2.4rem; font-weight: 400; }

/* ---------- Home hero ---------- */
.hero { min-height: 100vh; background: #4a5a6b center/cover no-repeat; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 6rem 1.5rem; position: relative; }
.hero::before, .banner::before, .contact-wrap::before { content: ""; position: absolute; inset: 0; background: rgba(20,30,45,.30); }
.hero > *, .banner > *, .contact-wrap > * { position: relative; }
.hero blockquote { margin: 0 0 2rem; max-width: 760px; }
.hero blockquote p { font-family: var(--heading-font); font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 400; margin: 0 0 .6rem; }
.hero cite { font-style: normal; font-size: .95rem; display: block; text-align: right; }

/* ---------- Buttons ---------- */
.button { display: inline-block; font-family: var(--heading-font); padding: .7rem 1.6rem; border: 2px solid #fff; color: #fff; text-decoration: none; font-size: .95rem; background: transparent; cursor: pointer; transition: background .2s, color .2s; }
.button:hover { background: #fff; color: var(--ink); }
.button.dark { border-color: var(--accent); background: var(--accent); color: #fff; }
.button.dark:hover { background: #fff; color: var(--accent); }

/* ---------- Page banner (top photo with title) ---------- */
.banner { min-height: 62vh; background: #4a5a6b center/cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; color: #fff; padding: 7rem 1.5rem 3.5rem; position: relative; }
.banner h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 400; margin: 0; max-width: 900px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }

/* ---------- Article text ---------- */
.content { max-width: var(--max); margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.content h2 { font-size: 1.7rem; margin-top: 3rem; }
.content h3 { font-size: 1.2rem; margin: 2.2rem 0 .4rem; }
.content p { margin: 0 0 1.1rem; }
.back { margin-top: 3rem; }

/* ---------- Photo gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 2.5rem -1.5rem; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
@media (min-width: 900px) { .gallery { margin: 2.5rem -6rem; } }

.lightbox-view { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; z-index: 200; cursor: zoom-out; }
.lightbox-view img { max-width: 94vw; max-height: 92vh; }

/* ---------- Expedition cards ---------- */
.cards { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 4rem; display: grid; gap: 3rem; }
.card { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.card:nth-child(even) .card-img { order: 2; }
.card-img { display: block; aspect-ratio: 4/3; background: #ccc center/cover no-repeat; }
.card h2 { margin-top: 0; font-size: 1.6rem; }

/* ---------- Media ---------- */
.media ul { list-style: none; padding: 0; }
.media li { margin: 0 0 1rem; }
.media .meta { display: block; color: var(--muted); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-wrap { min-height: 100vh; background: #4a5a6b center/cover no-repeat; display: flex; align-items: center; justify-content: center; padding: 7rem 1.5rem 4rem; position: relative; }
.contact-card { background: rgba(255,255,255,.96); padding: 2.5rem; max-width: 560px; width: 100%; }
.contact-card h1 { margin-top: 0; font-weight: 400; }
.contact-card label { display: block; font-size: .9rem; margin-bottom: 1rem; color: var(--muted); }
.contact-card input, .contact-card textarea { display: block; width: 100%; margin-top: .3rem; padding: .65rem .75rem; font: inherit; color: var(--ink); border: 1px solid #cfd3d7; }
.contact-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); text-align: center; padding: 2.5rem 1rem; font-family: var(--heading-font); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.social { display: flex; gap: 1.2rem; justify-content: center; margin: 1.4rem 0 .8rem; }
.social svg { width: 22px; height: 22px; fill: var(--ink); }
.social a:hover svg { fill: var(--accent); }
.copy { color: var(--muted); font-size: .85rem; margin: 0; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { padding: 1rem 1.2rem; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; right: 1rem; background: rgba(30,38,48,.95); flex-direction: column; gap: 0; padding: .5rem 0; min-width: 180px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem 1.2rem; border: 0; }
  .card { grid-template-columns: 1fr; gap: 1.2rem; }
  .card:nth-child(even) .card-img { order: 0; }
  .contact-card .row { grid-template-columns: 1fr; gap: 0; }
  .contact-card { padding: 1.6rem; }
}

/* Route map on the Alaska page */
.map { margin: 2rem 0; }
.map img { width: 100%; border: 1px solid #ddd; }
.map figcaption { color: var(--muted); font-size: .9rem; margin-top: .4rem; }

/* Expedition card photos (regular images, cropped to fill the box) */
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img { overflow: hidden; }
