/* Holymoorside Table Tennis Club — layout on top of Material Design 3 */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

main {
  flex: 1;
}

.httc-nav-logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.mobile-sidenav-header .httc-nav-logo {
  width: 24px;
  height: 24px;
}

.httc-flash-stack {
  padding-top: 1rem;
}

/* Hero: flat surface band — accent comes from typography and buttons, not the background */
.httc-hero {
  background-color: var(--md-sys-color-surface-container-low);
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.httc-hero-inner {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.httc-hero-inner .httc-eyebrow,
.httc-hero-inner .httc-hero-title,
.httc-hero-inner .httc-hero-lead {
  text-align: center;
}

.httc-eyebrow {
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-sys-color-primary);
  margin: 0 0 0.5rem;
}

.httc-hero-title {
  margin: 0 0 1rem;
}

.httc-hero-lead {
  font-family: var(--md-sys-typescale-body-large-font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0 0 1.75rem;
}

.httc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.httc-section {
  padding: 4rem 0;
}

.httc-section-alt {
  background-color: var(--md-sys-color-surface-container-low);
}

.httc-section-head {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.httc-section-head .httc-section-title {
  margin: 0;
}

.httc-section-head .httc-section-title::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--md-sys-color-primary),
    var(--md-sys-color-tertiary)
  );
}

.httc-section-lead {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--md-sys-color-on-surface-variant);
}

.httc-section-title {
  margin: 0 0 1.25rem;
}

.httc-section-body {
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
}

.httc-prose {
  font-family: var(--md-sys-typescale-body-large-font);
  font-size: var(--md-sys-typescale-body-large-size);
  line-height: 1.65;
  color: var(--md-sys-color-on-surface);
  max-width: 40rem;
}

.httc-prose p {
  margin: 0 0 1rem;
}

.httc-prose p:last-child {
  margin-bottom: 0;
}

/* Inline text links — MD3 accent; visited matches unvisited */
.httc-prose a,
.httc-prose a:visited,
.httc-section-lead a,
.httc-section-lead a:visited,
.httc-lottery-intro a,
.httc-lottery-intro a:visited {
  color: var(--md-sys-color-primary);
  font-weight: 500;
  text-decoration: none;
}

.httc-prose a:focus-visible,
.httc-section-lead a:focus-visible,
.httc-lottery-intro a:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.httc-price-card {
  max-width: 22rem;
  margin-inline: auto;
  padding: 2rem 1.75rem;
  text-align: center;
}

.httc-price-amount {
  font-family: "Poppins", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--md-sys-color-primary);
  margin: 0.5rem 0;
}

.httc-price-note {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9375rem;
}

.httc-lottery-intro {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
  text-align: center;
}

.httc-lottery-card {
  max-width: 28rem;
  margin-inline: auto;
  padding: 2rem 1.75rem;
  text-align: center;
}

.httc-lottery-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--md-sys-color-primary);
  margin: 0 0 0.5rem;
}

.httc-lottery-winner {
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
  color: var(--md-sys-color-on-surface);
}

.httc-lottery-meta {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--md-sys-color-on-surface-variant);
}

.httc-lottery-unavailable {
  margin: 0 0 1.25rem;
  color: var(--md-sys-color-on-surface-variant);
}

.httc-venue {
  margin: 1.75rem 0;
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-radius: 16px;
  background-color: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  box-shadow: var(--md-sys-elevation-level1);
}

.httc-venue-intro {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
}

.httc-address {
  margin: 0 0 0.75rem;
  font-style: normal;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--md-sys-color-on-surface);
}

.httc-session-times {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--md-sys-color-on-surface);
}

.httc-maps-btn {
  margin-top: 0.5rem;
}

.httc-lottery-cta {
  margin-top: 0.25rem;
}

.httc-contact-wrap {
  max-width: 32rem;
  margin-inline: auto;
}

.httc-contact-form-card {
  padding: 1.75rem 1.5rem;
  margin-inline: auto;
}

.httc-contact-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.httc-contact-submit {
  align-self: center;
  margin-top: 0.25rem;
}

.httc-contact-form .md-text-field {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}

.httc-field-error {
  display: block;
  font-size: 0.8125rem;
  color: var(--md-sys-color-error);
  margin-top: 0.35rem;
}

.httc-turnstile {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0.5rem 0 1.25rem;
}

.httc-turnstile .cf-turnstile {
  display: inline-flex;
}

.httc-footer {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  background-color: var(--md-sys-color-surface-container);
}

.httc-footer-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--md-sys-color-on-surface-variant);
  text-align: center;
}
