/* Wasatch Guiding — site styles */
:root {
  --ink: #1f2a30;
  --ink-soft: #4a5961;
  --granite-50: #f5f6f4;
  --granite-100: #e9ece8;
  --granite-200: #d4d9d4;
  --granite-400: #8b968f;
  --slate-700: #34434b;
  --slate-800: #26333a;
  --slate-900: #1a242a;
  --pine: #2f5d48;
  --pine-dark: #234736;
  --pine-light: #e3ede6;
  --sun: #c9853a;
  --white: #ffffff;
  --error: #a3332a;
  --error-bg: #fbecea;
  --radius: 10px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(20, 30, 35, .06), 0 4px 16px rgba(20, 30, 35, .06);
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--granite-50);
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--slate-900);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--pine-dark); }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 3px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--ink); padding: 10px 14px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  background: var(--slate-900);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.brand:hover { color: var(--white); }
.brand svg { width: 34px; height: 34px; flex: none; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid rgba(255,255,255,.3); color: var(--white);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; font-size: .95rem;
  align-items: center; gap: 8px;
}
.nav-toggle .bars { display: inline-block; width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 5px; }
.nav-toggle .bars::after { bottom: 0; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: #dfe5e2; text-decoration: none; font-weight: 600; font-size: .98rem;
}
.site-nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.1); }
.site-nav .nav-cta { background: var(--pine); color: var(--white); }
.site-nav .nav-cta:hover { background: #3a6f57; }

@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--slate-900); border-top: 1px solid rgba(255,255,255,.08); padding: 8px 20px 16px; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .no-js .site-nav ul, html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 8px 0; }
  .site-nav a { padding: 12px; }
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, #2b3a42 0%, #3f5560 55%, #6c8187 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; padding: 88px 20px 200px; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 46ch; color: #e4ebe8; }
.hero-art { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: clamp(110px, 18vw, 250px); }
.page-hero .hero-art { height: clamp(60px, 9vw, 110px); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: #b9d3c4; margin-bottom: 10px; }

.page-hero {
  background: linear-gradient(180deg, #2b3a42 0%, #465c66 100%);
  color: var(--white); position: relative; overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 96px; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: #e1e8e5; max-width: 56ch; font-size: 1.12rem; margin: 0; }
.page-hero .hero-art { opacity: .95; }

/* Photo hero (home) */
.hero.has-photo { background: var(--slate-900); }
.hero.has-photo .hero-inner { padding-bottom: 112px; }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 29, 34, .84) 0%, rgba(20, 29, 34, .62) 55%, rgba(20, 29, 34, .38) 100%),
    linear-gradient(0deg, rgba(20, 29, 34, .45) 0%, rgba(20, 29, 34, 0) 50%);
}

/* Photos */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--granite-200); background: var(--granite-100); }
.photo img { width: 100%; height: auto; object-fit: cover; }
.contact-aside .photo { margin-bottom: 18px; }
.credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; color: var(--ink-soft); max-width: 820px; }
.credits strong { color: var(--ink); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--pine); color: var(--white); }
.btn-primary:hover { background: var(--pine-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-outline { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-outline:hover { background: var(--pine-light); color: var(--pine-dark); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--granite-200); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.section-alt .card { background: var(--granite-50); box-shadow: none; }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; color: var(--pine); margin-bottom: 12px; }
.card .more { font-weight: 700; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--pine-dark); background: var(--pine-light); padding: 3px 10px; border-radius: 999px;
}

.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr .9fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--pine-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%232f5d48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.illustration { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--granite-200); background: var(--white); }

.cta-band { background: var(--pine-dark); color: var(--white); padding: 56px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d9e7df; max-width: 60ch; }
.cta-band .btn-primary { background: var(--white); color: var(--pine-dark); }
.cta-band .btn-primary:hover { background: var(--granite-100); }

/* Trips */
.trip { scroll-margin-top: 84px; }
.trip-card { display: grid; gap: 0; grid-template-columns: 1fr; padding: 0; overflow: hidden; }
@media (min-width: 860px) { .trip-card { grid-template-columns: 300px 1fr; } }
.trip-art { background: var(--slate-800); color: var(--white); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.trip-art svg { width: 100%; height: auto; max-height: 150px; }
.trip-art.has-photo { position: relative; min-height: 220px; justify-content: flex-end; overflow: hidden; }
.trip-art.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-art.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 29, 34, .78) 0%, rgba(20, 29, 34, 0) 50%); }
.trip-art.has-photo .season { position: relative; z-index: 1; color: var(--white); }
.trip-art .season { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #b9d3c4; }
.trip-body { padding: 28px; }
.trip-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px 20px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--granite-200); border-bottom: 1px solid var(--granite-200); }
.trip-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.trip-facts dd { margin: 2px 0 0; font-weight: 600; }
.trip-list { display: grid; gap: 28px; }
.note { font-size: .95rem; color: var(--ink-soft); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.subnav a { color: var(--white); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: .95rem; font-weight: 600; }
.subnav a:hover { background: rgba(255,255,255,.12); }

/* FAQ */
.faq-group { margin-bottom: 44px; }
.faq-group > h2 { font-size: 1.5rem; }
details {
  background: var(--white); border: 1px solid var(--granite-200); border-radius: var(--radius);
  margin-bottom: 10px; padding: 0 20px;
}
summary {
  cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; list-style: none; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--pine); font-weight: 400;
}
details[open] summary::after { content: "\2013"; }
details > div { padding: 0 0 16px; color: var(--ink-soft); }
details > div ul { padding-left: 20px; margin: 0 0 1em; }

/* Contact */
.form { background: var(--white); border: 1px solid var(--granite-200); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
label { display: block; font-weight: 700; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--granite-400); border-radius: 8px; padding: 11px 12px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(47, 93, 72, .35); outline-offset: 0; border-color: var(--pine); }
.hint { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.success { background: var(--pine-light); color: var(--pine-dark); border: 1px solid #b9d3c4; }
.form-status.error { background: var(--error-bg); color: var(--error); border: 1px solid #e6bbb6; }

.contact-aside .card + .card { margin-top: 18px; }
.contact-aside h2 { font-size: 1.3rem; }

/* Footer */
.site-footer { background: var(--slate-900); color: #c3ccc8; padding: 48px 0 28px; font-size: .97rem; }
.site-footer a { color: #e6ece9; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 28px; }
.footer-grid h2 { font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #9fb0a8; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* 404 */
.not-found { text-align: center; padding: 96px 0; }
.not-found p { color: var(--ink-soft); }
.not-found .btn-row { justify-content: center; }

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  section { padding: 52px 0; }
  .hero-inner { padding: 60px 16px 140px; }
  .hero.has-photo .hero-inner { padding-bottom: 72px; }
  .hero-photo::after { background: rgba(20, 29, 34, .7); }
  .card, .form, .trip-body, .trip-art { padding: 20px; }
}
