/* ALTO — The Alpine Field Manual, part 3: prep, filters, page-hero, FAQ, detail, forms, contacts, about, footer, responsive */

/* ---------- Preparation grid ---------- */
.prep-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 68px;
  align-items: start;
}
.prep-copy p { color: var(--muted); margin: 0 0 26px; max-width: 48ch; }
.prep-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 560;
  margin: 0 0 16px;
}
.prep-figure {
  margin: 28px 0 0;
  border: 1px solid var(--ink);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}
.prep-figure img { width: 100%; height: 100%; object-fit: cover; }

.steps { position: relative; }
.steps li {
  position: relative;
  padding: 0 0 34px 64px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 4px;
  width: 1px;
  background: var(--ink);
}
.steps li:last-child::before { display: none; }
.step-num {
  position: absolute;
  left: 0; top: 2px;
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-3);
}
.steps h3 {
  font-size: 1.04rem;
  font-weight: 560;
  letter-spacing: -0.015em;
  margin: 8px 0 5px;
}
.steps p { color: var(--muted); font-size: 0.91rem; margin: 0; max-width: 42ch; }

/* ---------- Band ---------- */
.band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}
.band-card {
  border: 1px solid var(--ink);
  padding: 32px 30px;
  background: var(--paper-3);
  display: flex;
  align-items: center;
  gap: 24px;
  transition: box-shadow 0.3s ease;
}
.band-card:hover { box-shadow: 6px 6px 0 rgba(28, 26, 21, 0.12); }
.band-card .icon-ring {
  flex-shrink: 0;
  width: 74px; height: 74px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.band-card .icon-ring svg { width: 34px; height: 34px; }
.band-card h3 { font-size: 1.1rem; font-weight: 560; letter-spacing: -0.02em; margin: 0 0 6px; }
.band-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.band-cta {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  background: var(--paper-2);
}
.band-cta h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

/* ---------- Filters ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 40px;
}
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}
.filter-btn:hover { background: var(--paper-2); color: var(--ink); }
.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  font-weight: 560;
}

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 72px 0 44px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 560;
  margin: 0 0 16px;
  color: var(--ink);
}
.page-hero .lede { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq-item { border-top: 1px solid var(--ink); }
.faq-item:last-child { border-bottom: 1px solid var(--ink); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 21px 4px;
  font-size: 1.02rem;
  font-weight: 560;
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--red); }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 15px; height: 15px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform 0.3s ease;
}
.faq-icon::before { left: 0; top: 7px; width: 15px; height: 1.5px; }
.faq-icon::after { left: 7px; top: 0; width: 1.5px; height: 15px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); }
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item.open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
  visibility: hidden;
  transition: visibility 0s 0.35s;
}
.faq-item.open .faq-panel-inner { visibility: visible; transition: visibility 0s; }
.faq-panel p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
  padding: 0 42px 22px 4px;
  max-width: 60ch;
}
.faq-panel a { color: var(--ink); border-bottom: 1px solid var(--ink); font-weight: 500; }
.faq-panel a:hover { color: var(--red); border-color: var(--red); }

/* ---------- Expedition detail ---------- */
.detail-hero { padding: 48px 0 0; }
.detail-hero .hero-figure {
  position: relative;
  aspect-ratio: 21 / 9;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  margin: 0;
  overflow: hidden;
}
.detail-hero .hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.detail-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 38px;
  background: linear-gradient(to top, rgba(242,236,221,0.88) 0%, rgba(242,236,221,0.4) 42%, transparent 68%);
  color: var(--ink);
}
.detail-overlay .eyebrow { color: var(--red); margin-bottom: 8px; }
.detail-overlay .eyebrow::before { display: none; }
.detail-overlay h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 560;
  margin: 0 0 10px;
  color: var(--ink);
}
.detail-overlay p {
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 16px;
  font-size: 0.98rem;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tags li {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 5px 12px;
  background: var(--paper-3);
}
.detail-ctas { display: flex; flex-wrap: wrap; gap: 14px; padding: 26px 0 0; }

/* Dossier layout */
.dossier-page { container: dossier / inline-size; }
.dossier-grid {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 64px;
  align-items: start;
  padding: 36px 0 0;
}
.dossier-rail {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  border: 1px solid var(--ink);
  background: var(--paper-3);
  padding: 24px 22px 20px;
}
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.rail-list li:last-of-type { border-bottom: 0; }
.rail-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 2px;
}
.rail-value { color: var(--ink); font-weight: 520; letter-spacing: -0.01em; }
.rail-value a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: border-color 0.25s ease;
}
.rail-value a:hover { border-color: var(--red); color: var(--red); }
.rail-marker {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  word-break: break-all;
  padding: 7px 0 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.rail-cta { margin-top: 18px; width: 100%; justify-content: center; }

.dossier-body { min-width: 0; }
.dossier-section { padding: 44px 0; }
.dossier-section + .dossier-section { border-top: 1px solid var(--ink); }
.dossier-section h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  letter-spacing: -0.028em;
  line-height: 1.15;
  font-weight: 560;
  margin: 0 0 16px;
  color: var(--ink);
}
.dossier-section p { color: var(--muted); margin: 0 0 14px; max-width: 60ch; }
.dossier-section p:last-child { margin-bottom: 0; }
.dossier-cta { margin-top: 24px; }
.dossier-cta svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.dossier-cta:hover svg { transform: translateX(3px); }
.dossier-cta--pre { margin-top: 0; margin-bottom: 32px; }

.dossier-figure {
  margin: 16px 0 0;
  border: 1px solid var(--ink);
  overflow: hidden;
  background: var(--paper-2);
}
.dossier-figure + .dossier-section { border-top: 0; padding-top: 44px; }
.dossier-figure img { width: 100%; height: auto; display: block; }

.dossier-list { list-style: none; margin: 10px 0 0; padding: 0; }
.dossier-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
}
.dossier-list li:last-child { border-bottom: 0; }
.dossier-list .list-marker {
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--red);
  margin-top: 8px;
}

.dossier-external {
  padding: 26px 0 18px;
  border-top: 1px solid var(--ink);
}
.dossier-external a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.91rem;
  font-weight: 560;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.25s ease;
}
.dossier-external a:hover { color: var(--red); border-color: var(--red); }
.dossier-external svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Two-col prose */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col .figure {
  margin: 0;
  border: 1px solid var(--ink);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}
.two-col .figure img { width: 100%; height: 100%; object-fit: cover; }
.spec-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: 0.93rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list strong { color: var(--ink); font-weight: 560; }
.spec-list .dot {
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--red);
  margin-top: 8px;
}

/* ---------- Application form ---------- */
.apply-wrap {
  border: 1px solid var(--ink);
  background: var(--paper-3);
  padding: 42px;
}
.apply-wrap > p { color: var(--muted); margin: 0 0 30px; max-width: 56ch; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem;
  font-weight: 560;
  color: var(--ink);
  margin-bottom: 8px;
}
.field label .req { color: var(--muted-2); font-weight: 400; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.93rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 11px 13px;
  transition: border-color 0.25s ease;
  width: 100%;
}
.field textarea { min-height: 116px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236b6355' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--red); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(178,58,38,0.18);
}
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error {
  display: none;
  color: var(--red);
  font-size: 0.8rem;
  margin: 6px 0 0;
}
.field-error.show { display: block; }
.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.consent input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.consent label { font-size: 0.86rem; color: var(--muted); margin: 0; }
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form-note { font-size: 0.8rem; color: var(--muted-2); }
.form-success {
  border: 1px solid var(--red);
  background: var(--paper-2);
  padding: 28px;
}
.form-success h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 560; }
.form-success p { color: var(--muted); margin: 0; }
.apply-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--red);
  color: var(--paper-3);
  font-size: 0.88rem;
  font-weight: 560;
  padding: 13px 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.apply-fab.visible { opacity: 1; transform: none; pointer-events: auto; }
.apply-fab:hover { background: var(--red-deep); }
.apply-fab svg { width: 14px; height: 14px; }
