/* ==========================================================================
   Wayfinder Hikes — site.css
   Plain CSS, no framework.
   1. Tokens  2. Base  3. Layout & type  4. Header & footer  5. Buttons
   6. Cover (home)  7. Treks page  8. Trek pages  9. Articles & contact
   10. Photo viewer  11. Phones
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
	/* Brand palette */
	--navy:      #101E4C;   /* page background */
	--navy-deep: #0B1638;   /* header, footer, boxes */
	--slate:     #38485E;
	--olive:     #4E6E26;
	--gold:      #F0B146;   /* buttons */
	--gold-pale: #F6D56F;   /* labels and links on navy */

	/* Text and lines on navy */
	--text:      #E6E3DA;
	--heading:   #FFFFFF;
	--muted:     #B8BCC8;
	--rule:      #2F3D6E;
	--field:     #6B779C;

	/* Type: Jost (a free Futura-style face) for headings and labels,
	   Archivo SemiCondensed for reading, Faustina for opening lines and quotes. */
	--font-label: "Jost", "Futura", "Trebuchet MS", sans-serif;
	--font-body:  "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-serif: "Faustina", Georgia, serif;

	--step-0: clamp(1.0625rem, 1rem + .25vw, 1.125rem);   /* body, 17–18px */
	--step-lede: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
	--step-h2: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
	--step-h1: clamp(2.1rem, 1.4rem + 3.4vw, 4.5rem);

	--wrap: 1240px;
	--column: 760px;   /* reading width */
	--gutter: clamp(16px, 3vw, 24px);
	--radius: 6px;
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--navy);
	color: var(--text);
	font-family: var(--font-body);
	font-stretch: 87.5%;
	font-size: var(--step-0);
	line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-pale); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--gold-pale); outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Layout & type ------------------------------------------------------ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.column { max-width: var(--column); margin: 0 auto; padding: 56px var(--gutter) 88px; }
.column > section { margin-top: 56px; }

h1, .section-title, .label, .eyebrow, .book-box h2, .cta-box p {
	font-family: var(--font-label);
	text-transform: uppercase;
	font-weight: 400;
}
h1 { font-size: var(--step-h1); line-height: 1.06; letter-spacing: .04em; color: var(--heading); margin: 0 0 .4em; }
.article h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); }
h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; }
.section-title { font-size: var(--step-h2); letter-spacing: .06em; margin: 0 0 .8em; color: var(--heading); }
.label { font-size: .95rem; font-weight: 500; letter-spacing: .12em; color: var(--gold-pale); margin: 0 0 1em; }
.eyebrow { font-size: .85rem; letter-spacing: .1em; color: var(--gold-pale); margin: 0; }
.lede { font-family: var(--font-serif); font-size: var(--step-lede); line-height: 1.45; color: var(--heading); margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text); }
.quote-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.quote-grid blockquote { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); }

/* 4. Header & footer ---------------------------------------------------- */
.site-header { background: var(--navy-deep); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding-top: 10px; padding-bottom: 10px; }
.wordmark { font-family: var(--font-label); font-size: 1.125rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; text-decoration: none; padding: 8px 0; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 500; padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--gold-pale); }
.site-nav a[aria-current="page"] { color: var(--gold-pale); border-bottom-color: var(--gold-pale); }

.site-footer { background: var(--navy-deep); border-top: 1px solid #2A3766; font-size: .875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.site-footer a { color: #D6D9E2; padding: 6px 0; }
.site-footer .copyright { margin: 0 0 0 auto; }

/* 5. Buttons ------------------------------------------------------------ */
.btn {
	display: inline-block; border: 0; border-radius: 4px; cursor: pointer;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
	padding: 13px 22px; text-decoration: none; text-align: center;
}
.btn-book { background: var(--gold); color: var(--navy); }
.btn-book:hover { background: var(--gold-pale); color: var(--navy); }
.btn-large { font-size: 1.125rem; padding: 16px 30px; }
.text-link { font-weight: 600; color: var(--heading); padding: 10px 4px; }

/* 6. Cover (home) ------------------------------------------------------- */
.cover { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: var(--navy-deep); --btn: var(--navy); }
.cover-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.cover-slides img.is-current { opacity: 1; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.42) 100%); pointer-events: none; }
.cover-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 4vh, 40px); padding: 0 16px clamp(24px, 6vh, 64px); text-align: center; }
.cover h1 { display: flex; flex-direction: column; align-items: center; margin: 0; line-height: 1.12; text-shadow: 0 1px 16px rgba(0,0,0,.5); font-size: inherit; letter-spacing: 0; }
.cover h1 .c-name { font-size: clamp(18px, 2.2vw, 30px); letter-spacing: .12em; margin-bottom: clamp(10px, 2vh, 24px); }
.cover h1 .c-what { font-size: clamp(30px, 4.8vw, 64px); letter-spacing: .06em; }
.cover h1 .c-where { font-size: clamp(18px, 2.9vw, 40px); letter-spacing: .07em; }
.cover-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cover-nav a { background: var(--btn); transition: background-color .9s ease; color: #ddd; text-decoration: none; font-weight: 700; font-size: clamp(14px, 3.8vw, 17px); padding: 14px clamp(10px, 2.6vw, 24px); border-radius: 4px; white-space: nowrap;}
.cover-nav a.primary {color:#fff;}
.cover-nav a:hover { filter: brightness(1.2); }
.cover-controls { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cover-place { font-size: 1.125rem; text-shadow: 0 1px 8px rgba(0,0,0,.7); color: #fff; }
.cover-dots { display: flex; align-items: center; }
.cover-dots button { width: 32px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cover-dots button span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 4px rgba(0,0,0,.5); }
.cover-dots button[aria-current="true"] span { background: #fff; }
.cover-dots .cover-pause { width: 36px; height: 36px; margin-left: 6px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(0,0,0,.25); }
.cover-pause svg { fill: #fff; }
.cover-pause .icon-play { display: none; }
.cover-pause[aria-pressed="true"] .icon-play { display: block; }
.cover-pause[aria-pressed="true"] .icon-pause { display: none; }
.no-js .cover-dots { display: none; }

.back-cover { border-top: 1px solid #000; }
.back-cover .wrap { max-width: 1100px; display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: center; padding-top: 40px; padding-bottom: 40px; }
.back-cover .sunset { display: flex; flex-direction: column; gap: 2px; flex: 0 1 300px; }
.back-cover .sunset-label { font-family: var(--font-label); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-pale); }
.back-cover .sunset-time { font-family: var(--font-label); font-size: 2.1rem; font-weight: 500; color: var(--heading); line-height: 1.2; }
.back-cover .sunset-in { color: var(--muted); font-size: .95rem; }
.back-cover nav { flex: 0 1 460px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 32px; }
.back-cover nav a { color: #fff; text-decoration: none; padding: 8px 0; }
.back-cover nav a span { color: var(--muted); }

/* 7. Treks page --------------------------------------------------------- */
.treks-intro { background: var(--navy-deep); color: #fff; }
.treks-intro .wrap { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.treks-intro-text { flex: 1 1 420px; }
.treks-intro-text h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
.treks-intro-text p { font-size: 1.2rem; color: var(--text); }
.video { flex: 1 1 520px; position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; color: #fff; text-decoration: none; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: rgba(16,30,76,.85); border: 2px solid var(--gold-pale); display: flex; align-items: center; justify-content: center; }
.video-play svg { fill: var(--gold-pale); margin-left: 4px; }
.video:hover .video-play { background: var(--navy); }
.video-title { position: absolute; left: 18px; bottom: 14px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.section { padding-top: 80px; padding-bottom: 40px; }
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.trek-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); }
.trek-card-photo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 18px; color: #fff; text-decoration: none; }
.trek-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; transform-origin: center bottom; }
.trek-card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,30,76,0) 45%, rgba(16,30,76,.92) 100%); }
.trek-card-photo > :not(img) { position: relative; z-index: 1; }
.trek-card-photo:hover img { transform: scale(1.03); }
.trek-card-photo h3 { margin: 6px 0 0; font-size: 1.45rem; }
.trek-card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; font-size: .95rem; }
.trek-card-body p { margin: 0; }
.trek-card-actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trek-card-actions .btn { font-size: .95rem; padding: 12px 18px; }
.trek-card-stats { margin: 0; padding: 12px 18px 16px; font-size: .95rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.compare { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; }
.compare thead tr { background: var(--navy-deep); }
.compare thead th a { color: var(--heading); }
.compare tbody tr { border-top: 1px solid var(--rule); }
.compare tbody th { color: var(--heading); font-weight: 600; width: 16%; }
.compare .btn { font-size: .875rem; padding: 10px 14px; }

.why { background: var(--navy-deep); margin-top: 40px; }
.why .wrap { padding-top: 80px; padding-bottom: 80px; }
.why dl { margin: 0; display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.why dl > div { border-top: 2px solid var(--gold); padding-top: 16px; }
.why dt { font-size: 1.2rem; font-weight: 700; color: var(--heading); }
.why dd { margin: 8px 0 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.steps li::before { content: counter(step); font-family: var(--font-label); font-size: 2.5rem; line-height: 1; color: var(--gold); }
.steps strong { font-size: 1.125rem; color: var(--heading); }

/* 8. Trek pages --------------------------------------------------------- */
.trek-hero { position: relative; min-height: min(78vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--navy-deep); }
.trek-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trek-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.5) 100%); }
.trek-hero-text { position: relative; z-index: 1; width: 100%; padding-bottom: 44px; color: #fff; text-shadow: 0 1px 16px rgba(0,0,0,.55); }
.trek-hero-text .eyebrow { color: #fff; margin-bottom: 10px; font-size: .95rem; }
.trek-hero-text h1 { margin: 0; }

.glance { position: sticky; top: 0; z-index: 10; background: rgba(11,22,56,.97); border-top: 1px solid #000; border-bottom: 1px solid #2A3766; color: #fff; }
.glance-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 12px; padding-bottom: 12px; }
.glance-stats { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .95rem; }
.glance-stats div { display: flex; gap: 6px; }
.glance-stats dt { color: var(--muted); }
.glance-stats dd { margin: 0; font-weight: 600; }
.glance-sun { color: var(--gold-pale); font-size: .95rem; white-space: nowrap; }
.btn-glance { flex: none; white-space: nowrap; }

.trek-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 40px 0 0; }
.trek-photos a { display: block; border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.trek-photos img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; transition: transform .6s ease; }
.trek-photos a:hover img { transform: scale(1.03); }

.map { position: relative; aspect-ratio: 5 / 3; margin: 8px 0 12px; border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); background: var(--navy-deep); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pull-quote p { font-family: var(--font-serif); font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem); line-height: 1.4; color: var(--heading); margin: 0 0 10px; }
.pull-quote footer { font-family: var(--font-label); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-pale); }

.faqs { border-top: 1px solid var(--rule); }
.faqs details { border-bottom: 1px solid var(--rule); }
.faqs summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--heading); }
.faqs details p { margin: 0 0 18px; }

.book-box { padding: 32px; border-radius: var(--radius); background: var(--navy-deep); }
.book-box-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; }
.book-box h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); letter-spacing: .06em; margin: 0 0 6px; }
.book-box .price { font-size: 1.25rem; font-weight: 600; color: var(--gold-pale); margin: 0; }
.book-box-lists { display: grid; gap: 20px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--rule); margin-top: 24px; padding-top: 22px; font-size: 1rem; }
.book-box h3 { font-size: 1rem; margin-bottom: 8px; }
.book-box .small { margin: 8px 0 0; }

.more-treks { padding-top: 72px; padding-bottom: 88px; }

/* 9. Articles & contact ------------------------------------------------- */
.article h2 { font-family: var(--font-label); text-transform: uppercase; font-weight: 500; font-size: .95rem; letter-spacing: .12em; color: var(--gold-pale); margin: 2.2em 0 1em; }
.article h2.big { font-weight: 400; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); letter-spacing: .06em; color: var(--heading); }
.article .float-photo { float: right; width: min(45%, 320px); margin: 6px 0 16px 28px; border-radius: var(--radius); }
.terms-list { margin: 0; border-top: 1px solid var(--rule); }
.terms-list > div { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(130px, 1fr) 3fr; gap: 6px 28px; }
.terms-list dt { font-weight: 700; color: var(--heading); }
.terms-list dd { margin: 0; }
.cta-box { clear: both; margin-top: 48px; padding: 26px 28px; border-radius: var(--radius); background: var(--navy-deep); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.cta-box p { margin: 0; font-size: 1.25rem; letter-spacing: .06em; color: var(--heading); }
.legal h2 { font-size: .9rem; }
.legal p, .legal li { font-size: 1rem; }

.note-box { padding: 16px 20px; border-radius: var(--radius); background: var(--navy-deep); }
.form-message { padding: 16px 20px; border-radius: var(--radius); border: 1px solid #A2BB70; }
.form-message.is-error { border-color: #F2A7A0; }
.contact-form { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.contact-form .pair { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; color: var(--heading); }
.field input, .field textarea { font: inherit; font-size: 1.0625rem; padding: 13px 14px; border-radius: 4px; border: 1px solid var(--field); background: var(--navy-deep); color: var(--text); width: 100%; }
.field textarea { resize: vertical; min-height: 10em; }
.field .error { color: #F2A7A0; font-size: .95rem; margin: 0; }
.field [aria-invalid="true"] { border-color: #F2A7A0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 10. Photo viewer (from the wehike kit) -------------------------------- */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 56px 16px 24px; border: 0; background: rgba(5,10,28,.95); color: #fff; }
.viewer::backdrop { background: rgba(5,10,28,.8); }
.viewer-figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.viewer-image { max-width: 100%; max-height: calc(100% - 60px); object-fit: contain; border-radius: 3px; opacity: 0; transition: opacity .3s; }
.viewer-image.is-loaded { opacity: 1; }
.viewer-caption { font-size: .9rem; color: var(--text); text-align: center; }
.viewer-count { color: var(--muted); margin-left: 8px; }
.viewer-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.35); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.viewer-btn svg { fill: none; stroke: #fff; stroke-width: 2; }
.viewer-close { top: 12px; right: 12px; }
.viewer-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 12px; top: 50%; transform: translateY(-50%); }
.viewer.is-single .viewer-prev, .viewer.is-single .viewer-next { display: none; }
.viewer { … background: #05091A; … }          /* was rgba(5,10,28,.95) */
.viewer::backdrop { background: #05091A; }     /* was rgba(5,10,28,.8) */

/* 11. Phones ------------------------------------------------------------ */
@media (max-width: 760px) {
	.glance-stats { display: none; }
	.glance-inner { padding-top: 10px; padding-bottom: 10px; }
	.glance-sun { font-size: .875rem; white-space: normal; }
	.cover h1 .c-what { font-size: clamp(24px, 7vw, 40px); }
	.cover-nav { gap: 8px; }
	.cover-nav a { padding: 13px 10px; font-size: 14px; }
	.article .float-photo { float: none; width: 100%; margin: 0 0 20px; }
	.terms-list > div { grid-template-columns: 1fr; }
	.site-footer .copyright { margin-left: 0; width: 100%; }
	.book-box { padding: 24px 20px; }
	.trek-photos { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
