/* hepta-extra.css
   Extra styles for the Services, Support and Events pages (local draft).
   This is a separate file on purpose. It does not change app.min.css or custom.css.
   Every class starts with "hx-" so it cannot clash with the Sitejet styles.
   Colours follow the site theme: ink #2c3e50, text #34495e, accent #e67e22. */

.hx-page {
  --hx-ink: #2c3e50;
  --hx-text: #34495e;
  --hx-muted: #66768a;
  --hx-accent: #e67e22;
  --hx-accent-dark: #b85f0f;
  --hx-line: #e1e6ec;
  --hx-soft: #f4f6f9;
  display: block;
  width: 100%;
  background: #fff;
  color: var(--hx-text);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}
.hx-page *,
.hx-page *::before,
.hx-page *::after { box-sizing: border-box; }
.hx-page h2,
.hx-page h3,
.hx-page h4,
.hx-page p,
.hx-page ul,
.hx-page ol,
.hx-page figure { margin: 0; padding: 0; letter-spacing: 0; }
.hx-page ul,
.hx-page ol { list-style: none; }

/* Layout */
.hx-wrap { max-width: 1140px; margin: 0 auto; padding: 56px 24px; }
.hx-hero { background: var(--hx-soft); border-bottom: 1px solid var(--hx-line); }
.hx-hero .hx-wrap { padding-top: 64px; padding-bottom: 56px; }

/* Text */
.hx-page .hx-eyebrow {
  font: 700 13px/1.4 "Montserrat", Arial, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hx-accent-dark);
}
.hx-page .hx-title {
  margin: 8px 0 16px;
  font: 700 40px/1.2 "Montserrat", Arial, sans-serif;
  color: var(--hx-ink);
}
.hx-page .hx-lead { max-width: 780px; font-size: 18px; color: var(--hx-text); }
.hx-page h3 {
  font: 700 22px/1.3 "Montserrat", Arial, sans-serif;
  color: var(--hx-ink);
}
.hx-page h4 {
  font: 700 15px/1.4 "Montserrat", Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--hx-muted);
}
.hx-page a { color: var(--hx-accent-dark); }
.hx-page a:hover { color: var(--hx-ink); }

/* Cards */
.hx-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.hx-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-top: 4px solid var(--hx-accent);
  border-radius: 6px;
  color: var(--hx-text);
  text-decoration: none;
}
.hx-page a.hx-card { color: var(--hx-text); }
.hx-page a.hx-card:hover,
.hx-page a.hx-card:focus-visible {
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.14);
  transform: translateY(-2px);
  text-decoration: none;
}
.hx-card { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.hx-card .hx-more { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--hx-accent-dark); }
.hx-card .hx-big { font-size: 20px; font-weight: 700; color: var(--hx-ink); word-break: break-word; }

/* Service sections */
.hx-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  padding: 40px 0;
  border-top: 1px solid var(--hx-line);
  scroll-margin-top: 110px;
}
.hx-service:first-child { border-top: 0; padding-top: 8px; }
.hx-service h3 { font-size: 28px; margin-bottom: 12px; }
.hx-service p { font-size: 17px; }
.hx-page .hx-list-title { margin-bottom: 14px; }
.hx-page strong { font-weight: 700; }
.hx-list li { position: relative; margin: 0 0 12px; padding-left: 34px; font-size: 17px; }
.hx-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hx-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

/* Buttons */
.hx-page a.hx-btn {
  display: inline-block;
  padding: 13px 28px;
  border: 2px solid var(--hx-accent);
  border-radius: 4px;
  background: var(--hx-accent);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hx-page a.hx-btn:hover { background: var(--hx-accent-dark); border-color: var(--hx-accent-dark); color: #fff; }
.hx-page a.hx-btn:focus-visible { outline: 3px solid var(--hx-ink); outline-offset: 2px; }
.hx-page a.hx-btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.hx-page a.hx-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--hx-ink); }
.hx-page .hx-cta a.hx-btn:focus-visible { outline-color: #fff; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Call to action band */
.hx-cta { background: var(--hx-ink); color: #fff; }
.hx-cta .hx-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hx-page .hx-cta h3 { margin-bottom: 6px; color: #fff; font-size: 24px; }
.hx-cta p { color: #dfe6ee; }

/* Support page */
.hx-page .hx-steps { counter-reset: hxstep; max-width: 760px; margin-top: 18px; }
.hx-steps li { position: relative; margin: 0 0 14px; padding-left: 44px; font-size: 17px; counter-increment: hxstep; }
.hx-steps li::before {
  content: counter(hxstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hx-ink);
  color: #fff;
  font: 700 14px/30px "Montserrat", Arial, sans-serif;
  text-align: center;
}
.hx-page .hx-section-title { margin-bottom: 8px; font-size: 26px; }

/* Events gallery */
.hx-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.hx-event { overflow: hidden; background: #fff; border: 1px solid var(--hx-line); border-radius: 6px; }
.hx-event-link { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hx-soft); }
.hx-event-link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.hx-event-link:hover img { transform: scale(1.04); }
.hx-event-link.hx-noimg { pointer-events: none; }
.hx-event-link.hx-noimg img { display: none; }
.hx-event-link.hx-noimg::after {
  content: "Photo coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hx-muted);
  font-weight: 600;
}
.hx-event figcaption { padding: 14px 16px 16px; }
.hx-event figcaption strong { display: block; color: var(--hx-ink); font-size: 17px; }
.hx-event figcaption span { color: var(--hx-muted); font-size: 14px; }

/* Phone and small screens */
@media (max-width: 800px) {
  .hx-wrap { padding: 40px 20px; }
  .hx-hero .hx-wrap { padding-top: 44px; padding-bottom: 36px; }
  .hx-page .hx-title { font-size: 32px; }
  .hx-page .hx-lead { font-size: 17px; }
  .hx-service { grid-template-columns: 1fr; gap: 8px; padding: 32px 0; scroll-margin-top: 90px; }
  .hx-service h3 { font-size: 24px; }
  .hx-cta .hx-wrap { flex-direction: column; align-items: flex-start; }
  .hx-gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-card, .hx-event-link img { transition: none; }
  .hx-page a.hx-card:hover, .hx-page a.hx-card:focus-visible { transform: none; }
  .hx-event-link:hover img { transform: none; }
}

/* ===== Look: white cards with a thin navy border on the grey page ===== */
.hx-page { background: transparent; }
.hx-hero { background: transparent; border-bottom: 0; }
.hx-page .hx-card,
.hx-page .hx-service,
.hx-page .hx-event {
  background: #fff;
  border: 1px solid var(--hx-ink);
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.12);
}
.hx-page .hx-card { align-items: center; text-align: center; padding: 32px 24px; }
.hx-page .hx-service,
.hx-page .hx-service:first-child { padding: 28px; margin-bottom: 24px; }
.hx-page .hx-card h3,
.hx-page .hx-service h3 {
  font: 500 24px/1.4 "Montserrat", Arial, sans-serif;
  letter-spacing: 2px;
  color: var(--hx-accent);
}
.hx-services .hx-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ===== Events: swipe carousel (see js/hepta-events.js) ===== */
.hx-gallery { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.hx-carousel { position: relative; }
.hx-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hx-track::-webkit-scrollbar { display: none; }
.hx-track:focus-visible { outline: 3px solid var(--hx-accent); outline-offset: -3px; }
.hx-slide { position: relative; flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; background: var(--hx-soft); }
.hx-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx-slide.hx-noimg img { display: none; }
.hx-slide.hx-noimg::after {
  content: "Photo coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hx-muted);
  font-weight: 600;
}
.hx-page .hx-carousel button { cursor: pointer; }
.hx-prev,
.hx-next {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(44, 62, 80, 0.75);
  color: #fff;
  font-size: 26px;
  line-height: 38px;
  text-align: center;
}
.hx-prev { left: 10px; }
.hx-next { right: 10px; }
.hx-prev:hover,
.hx-next:hover { background: var(--hx-ink); }
.hx-prev:focus-visible,
.hx-next:focus-visible,
.hx-dot:focus-visible { outline: 3px solid var(--hx-accent); outline-offset: 2px; }
.hx-dots { position: absolute; right: 0; bottom: 10px; left: 0; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.hx-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(44, 62, 80, 0.5);
  pointer-events: auto;
}
.hx-dot[aria-current="true"] { background: #fff; box-shadow: 0 0 0 2px var(--hx-ink); }
.hx-event-info { padding: 16px; text-align: center; }
.hx-page .hx-event-info strong {
  display: block;
  font: 500 20px/1.4 "Montserrat", Arial, sans-serif;
  letter-spacing: 2px;
  color: var(--hx-accent);
}
.hx-event-info span { color: var(--hx-muted); font-size: 14px; }
@media (max-width: 800px) {
  .hx-gallery { grid-template-columns: 1fr; }
  .hx-prev, .hx-next { width: 36px; height: 36px; line-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-track { scroll-behavior: auto; }
}

/* Events: centre the last row (a grid can't do this, so use flex) */
.hx-gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.hx-gallery > .hx-event { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; }
@media (max-width: 1000px) {
  .hx-gallery > .hx-event { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 800px) {
  .hx-gallery > .hx-event { flex-basis: 100%; }
}


/* Events: year filter buttons */
.hx-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 28px; }
.hx-page .hx-filter-btn {
  padding: 8px 22px;
  border: 1px solid var(--hx-ink);
  border-radius: 0;
  background: #fff;
  color: var(--hx-ink);
  font: 600 15px/1.3 "Montserrat", Arial, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}
.hx-page .hx-filter-btn:hover { background: var(--hx-soft); }
.hx-page .hx-filter-btn[aria-pressed="true"] { background: var(--hx-ink); color: #fff; }
.hx-page .hx-filter-btn:focus-visible { outline: 3px solid var(--hx-accent); outline-offset: 2px; }
.hx-event[hidden] { display: none; }