/* ============================================================
   Karura Bikes — hub / static pages (cost, gates, how-to-book)
   Scope: .w-hub-* only.
   ============================================================ */

/* Cost page: price cards */

.w-hub-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.w-hub-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid var(--k-line, #d5e4df);
}

.w-hub-card--muted {
  background: var(--k-surface, #eef3eb);
}

.w-hub-card h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading, 'Lato', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--k-ink, #1a211c);
}

.w-hub-card__amount {
  margin: 0 0 0.7rem;
  line-height: 1.25;
}

.w-hub-card__amount strong {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--k-ink, #1a211c);
}

.w-hub-card__amount span {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--k-muted, #5b6660);
}

.w-hub-card p {
  margin: 0 0 0.9rem;
  color: var(--k-muted, #5b6660);
  line-height: 1.55;
}

.w-hub-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

/* Shared white panel (tables, estimator) */

.w-hub-panel {
  height: 100%;
  padding: 1.35rem 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid var(--k-line, #d5e4df);
}

.w-hub-panel h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading, 'Lato', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--k-ink, #1a211c);
}

.w-hub-panel__hint {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--k-muted, #5b6660);
}

.w-hub-rate {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.w-hub-rate label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--k-ink, #1a211c);
  cursor: pointer;
}

/* Gates intro: framed photo + copy, no overlap */

.w-hub-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.w-hub-intro__media {
  min-width: 0;
  border: 8px solid color-mix(in srgb, var(--k-primary, #1f4d3a) 20%, #ffffff 80%);
  border-radius: 0;
  background: color-mix(in srgb, var(--k-primary, #1f4d3a) 20%, #ffffff 80%);
  overflow: hidden;
}

.w-hub-intro__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  vertical-align: middle;
}

.w-hub-intro__copy {
  min-width: 0;
}

.w-hub-intro__copy h2 {
  margin-top: 0;
}

@media (min-width: 992px) {
  .w-hub-intro {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
  }
}

/* Per-gate hire sections */

.w-hub-detail {
  background: #fff;
}

.w-hub-detail__title {
  margin: 0;
  font-family: var(--font-heading, 'Lato', sans-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--k-ink, #1a211c);
  text-align: left;
}

.w-hub-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem 1.5rem;
  align-items: start;
}

.w-hub-detail__title { order: 1; }
.w-hub-detail__grid .w-hub-intro__media { order: 2; }
.w-hub-detail__copy { order: 3; }

.w-hub-detail__copy {
  min-width: 0;
  text-align: left;
}

.w-hub-detail__copy p {
  margin: 0 0 0.95rem;
  color: var(--k-muted, #5b6660);
  font-size: 1.02rem;
  line-height: 1.65;
}

.w-hub-detail__copy p:last-child {
  margin-bottom: 0;
}

.w-hub-detail__summary {
  color: var(--k-ink, #1a211c);
}

.k-btn--outline-accent {
  background: #fff;
  border: 2px solid var(--k-accent, #c45a4a);
  color: var(--k-accent, #c45a4a);
}

.k-btn--outline-accent:hover,
.k-btn--outline-accent:focus {
  background: #fff;
  border-color: var(--k-accent-dark, #a8483c);
  color: var(--k-accent-dark, #a8483c);
}

@media (min-width: 992px) {
  .w-hub-detail__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 0.35rem 2rem;
    align-items: center;
  }

  .w-hub-detail__title {
    grid-column: 2;
    grid-row: 1;
    order: unset;
    align-self: end;
  }

  .w-hub-detail__grid .w-hub-intro__media {
    grid-column: 1;
    grid-row: 1 / span 2;
    order: unset;
  }

  .w-hub-detail__copy {
    grid-column: 2;
    grid-row: 2;
    order: unset;
  }

  .w-hub-detail__grid--flip .w-hub-detail__title,
  .w-hub-detail__grid--flip .w-hub-detail__copy {
    grid-column: 1;
  }

  .w-hub-detail__grid--flip .w-hub-intro__media {
    grid-column: 2;
  }
}

@media (max-width: 575.98px) {
  .w-hub-detail .k-btn--outline-accent {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Gates page: photo cards */

.w-hub-heading {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading, 'Lato', sans-serif);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--k-ink, #1a211c);
}

.w-hub-gates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.w-hub-gate {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--k-line, #d5e4df);
  overflow: hidden;
}

.w-hub-gate__photo {
  aspect-ratio: 4 / 3;
  background: #f4f1ea;
  overflow: hidden;
}

.w-hub-gate__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.w-hub-gate__body {
  padding: 1.15rem 1.2rem 1.3rem;
}

.w-hub-gate__body h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--k-ink, #1a211c);
}

.w-hub-gate__body p {
  margin: 0 0 0.65rem;
  color: var(--k-muted, #5b6660);
  font-size: 0.98rem;
  line-height: 1.55;
}

.w-hub-gate__body p strong {
  color: var(--k-ink, #1a211c);
}

.w-hub-gate__note {
  margin-bottom: 0;
}

.w-hub-gates__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.5rem 0 0;
}

.w-hub-gates__cta span {
  color: var(--k-muted, #5b6660);
}

.w-hub-cards--2 {
  grid-template-columns: 1fr;
}

.w-hub-card ul,
.w-hub-card ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--k-muted, #5b6660);
}

.w-hub-card li + li {
  margin-top: 0.45rem;
}

.w-hub-prose {
  max-width: 46rem;
  margin-top: 2rem;
}

.w-hub-prose h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading, 'Lato', sans-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--k-ink, #1a211c);
}

.w-hub-prose h3 {
  margin: 1.15rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--k-ink, #1a211c);
}

.w-hub-prose p {
  margin: 0 0 0.75rem;
  color: var(--k-muted, #5b6660);
  line-height: 1.65;
}

@media (min-width: 768px) {
  .w-hub-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .w-hub-cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .w-hub-gates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .w-hub-card__actions .k-btn,
  .w-hub-gates__cta .k-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.w-cost-start {
  background: #e6e3dc;
}

.w-cost-start h2,
.w-cost-start__lead {
  text-align: center;
}

.w-cost-start h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

.w-cost-start__lead {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--k-muted);
}

.w-cost-start__form {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.35rem 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid var(--k-line);
  text-align: left;
}

.w-cost-start__form .w-hub-rate {
  justify-content: flex-start;
}

.w-cost-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.w-cost-split h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  color: var(--k-primary);
}

.w-cost-split p:last-child {
  margin-bottom: 0;
}

.w-cost-split__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--k-line);
}

.w-cost-copy h2 {
  margin: 2.2rem 0 0.75rem;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  color: var(--k-primary);
}

.w-cost-copy h2:first-child {
  margin-top: 0;
}

.w-cost-table thead th {
  background: #1f3d38;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
}

.w-cost-table tbody th,
.w-cost-table tbody td {
  padding: 0.8rem 1rem;
  border-top: 1px solid #edf2f0;
  text-align: left;
}

@media (min-width: 992px) {
  .w-cost-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem;
  }
}
