/* ==========================================================================
   REPTD — components.css
   Reusable pieces: buttons, cards, pricing tables, FAQ accordions, forms.
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.85rem;
  --btn-pad-x: 1.5rem;
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-label);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    color var(--fast) var(--ease),
    box-shadow var(--med) var(--ease),
    translate var(--med) var(--ease-spring),
    scale var(--fast) var(--ease);
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--btn-fg);
  translate: 0 -2px;
  box-shadow: 0 8px 20px rgb(35 36 31 / 0.18);
}
.btn:active { translate: 0 0; scale: 0.98; box-shadow: none; }

/* Arrow that nudges forward on hover */
.btn--arrow::after {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  rotate: 45deg;
  transition: translate var(--med) var(--ease-spring);
}
.btn--arrow:hover::after { translate: 4px 0; }

.btn--brand { --btn-bg: var(--brand); --btn-fg: var(--white); }
.btn--brand:hover { background: var(--brand-strong); }
.btn--dark { --btn-bg: var(--stone-900); --btn-fg: var(--white); }
.btn--dark:hover { background: #000; }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--stone-900); }
.btn--light:hover { background: var(--cream); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.12); }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--stone-900);
  border-color: var(--stone-900);
}
.btn--outline:hover { background: var(--stone-900); color: var(--white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-label);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-arrow::after {
  content: "→";
  transition: translate var(--med) var(--ease-spring);
}
.link-arrow:hover::after { translate: 5px 0; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--olive-200);
  border-radius: 999px;
  background: var(--brand-soft);
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-700);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), translate var(--med) var(--ease-spring);
}
.chips li:hover { background: var(--brand); color: var(--white); translate: 0 -2px; }

/* ---------- Cards ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: translate var(--med) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.card:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--stone-200); }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale 700ms var(--ease);
}
.card:hover .card__media img { scale: 1.06; }
.card__body { display: grid; gap: 0.85rem; align-content: start; padding: 1.5rem; flex: 1; }
.card h3, .section--stone .card h3, .section--brand .card h3 { color: var(--heading); font-size: var(--step-1); }
.card__focus { font-size: var(--step--1); color: var(--text-muted); }
.card__focus b {
  font-family: var(--font-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Info panel (flat card, no hover lift) */
.panel {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel--soft { background: var(--brand-soft); border-color: var(--olive-200); box-shadow: none; }
.panel h3 { margin-bottom: 0.85rem; }

.note {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  font-size: var(--step--1);
}
.note--alert { border-left-color: #b3261e; background: #fdf1ef; }
.note a { font-weight: 600; white-space: nowrap; }

/* ---------- Pricing table ----------
   A real <table> on wide screens. Below 40em every row becomes its own card,
   with the column header shown as a small label — no sideways scrolling.   */
.price-table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.price-table caption {
  caption-side: top;
  padding-bottom: 0.9rem;
  text-align: left;
}
.price-table th, .price-table td {
  padding: 1.1rem 1.35rem;
  text-align: left;
  vertical-align: top;
}
.price-table thead th {
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.price-table tbody tr { transition: background var(--fast) var(--ease); }
.price-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.price-table tbody tr:hover { background: var(--bg-alt); }
.price-table tbody th { font-weight: 400; }
.price-table .plan { display: block; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: var(--heading); line-height: 1.2; }
.price-table .plan + .plan-desc { display: block; margin-top: 0.3rem; color: var(--text-muted); font-size: var(--step--1); }
.price-table .rate { white-space: nowrap; }
.price {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1;
  color: var(--brand-strong);
}
.price small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.price-table tr.is-featured { background: var(--brand-soft); }
.badge {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 39.99em) {
  .price-table,
  .price-table tbody { display: block; }
  .price-table {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .price-table caption { display: block; }
  .price-table thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .price-table tbody { display: grid; gap: 0.85rem; }
  .price-table tbody tr {
    display: grid;
    gap: 0.75rem;
    padding: 1.15rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
  }
  .price-table tbody tr.is-featured { background: var(--brand-soft); border-color: var(--olive-200); }
  .price-table tbody :is(th, td) { display: block; padding: 0; border: 0 !important; }
  .price-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font-family: var(--font-label);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .price-table td.rate {
    order: 2;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--line) !important;
  }
  .price-table td.notes { order: 3; font-size: var(--step--1); color: var(--text-muted); }
}

/* ---------- Camp / plan cards ---------- */
.plan-card {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.6rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: translate var(--med) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.plan-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--brand);
  scale: 0.25 1;
  transform-origin: left;
  transition: scale var(--med) var(--ease);
}
.plan-card:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); border-color: var(--olive-200); }
.plan-card:hover::before { scale: 1 1; }
.plan-card h3 { font-size: var(--step-1); }
.plan-card__when {
  font-family: var(--font-label);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.plan-card .ticks { font-size: var(--step--1); }
.plan-card .btn { margin-top: auto; }
/* Whole card is clickable via the button's stretched hit area */
.plan-card .btn::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

/* ---------- FAQ accordion (native <details>) ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.faq details:hover { border-color: var(--olive-200); }
.faq details[open] { border-color: var(--olive-400); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 0.8rem 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 0.8rem no-repeat,
    var(--brand-soft);
  transition: rotate var(--med) var(--ease), background-size var(--med) var(--ease);
}
.faq details[open] > summary::after {
  rotate: 180deg;
  background-size: 0.8rem 2px, 2px 0, auto;
}
.faq summary:hover::after { background-color: var(--olive-200); }
.faq__body { padding: 0 1.35rem 1.35rem; max-width: 46rem; }
.faq__body > * + * { margin-top: 0.9rem; }
.faq__body ul:not([class]) { padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.faq__body h3 { margin-top: 1.4rem; font-size: 1.05rem; }
.faq__body .price-table { margin-top: 0.5rem; }
@supports selector(::details-content) {
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size var(--med) var(--ease), content-visibility var(--med) allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 36em) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: 0.4rem; }
.field label, .form legend {
  font-family: var(--font-label);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
}
.field .req { color: #b3261e; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--stone-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem; /* 16px+ stops iOS from zooming on focus */
  line-height: 1.4;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--stone-500); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgb(95 99 58 / 0.18);
}
.field input:user-invalid, .field textarea:user-invalid {
  border-color: #b3261e;
  box-shadow: 0 0 0 4px rgb(179 38 30 / 0.12);
}
.field input:user-valid, .field textarea:user-valid {
  border-color: var(--olive-400);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235f633a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.4 3 3 6-6.4'/%3E%3C/svg%3E") right 0.8rem top 0.95rem / 1rem no-repeat,
    var(--white);
  padding-right: 2.4rem;
}
.field__hint { font-size: var(--step--1); color: var(--text-muted); }
.field__error { display: none; font-size: var(--step--1); color: #b3261e; font-weight: 600; }
.field:has(:user-invalid) .field__error { display: block; }
.form__trap { position: absolute; left: -100vw; }
.form .btn { justify-self: start; }

/* ---------- Contact info list ---------- */
.contact-list { display: grid; gap: 1.5rem; }
.contact-list__item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.contact-list__icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  transition: background var(--med) var(--ease), color var(--med) var(--ease), rotate var(--med) var(--ease-spring);
}
.contact-list__item:hover .contact-list__icon { background: var(--brand); color: var(--white); rotate: -8deg; }
.contact-list__icon svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list h2 { font-size: var(--step-1); margin-bottom: 0.2rem; }
.contact-list a.big {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
}
.contact-list a.big:hover { color: var(--brand); }

/* ---------- Sign-up block (QR + button) ---------- */
.signup {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}
.signup__qr {
  width: 11rem;
  padding: 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: rotate var(--med) var(--ease-spring), scale var(--med) var(--ease-spring);
}
.signup__qr:hover { rotate: -2deg; scale: 1.04; }
@media (max-width: 39.99em) {
  /* A QR code is no use on the phone you're holding */
  .signup__qr, .signup__qr-label { display: none; }
}

/* ---------- Social band ---------- */
.social-band {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-soft), var(--cream));
  border: 1px solid var(--olive-200);
}
@media (min-width: 48em) {
  .social-band { grid-template-columns: 1fr auto; }
}
.social-band h2 { font-size: var(--step-3); }
.social-band .socials { margin: 0; }
.social-band .socials a { width: 3.25rem; height: 3.25rem; }

/* ---------- Cross-link banner ---------- */
.crosslink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.crosslink h2 { font-size: var(--step-3); max-width: 34rem; }

/* ---------- Team group photos ---------- */
.team__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2rem, 5vw, 3.25rem);
}
.team__groups img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
