/*
 * ClubPermits.au — static site styles.
 *
 * Colour and type tokens are copied from the resolved Angular Material 3
 * theme used by the live app's home page (angular-app/src/styles.scss,
 * angular-app/src/app/features/public/home/), not just its SCSS
 * fallback values, so this page's look and feel matches what actually
 * renders in the browser:
 *   --mat-sys-surface            #faf9fd
 *   --mat-sys-on-surface         #1a1b1f
 *   --mat-sys-on-surface-variant #44474e
 *   --mat-sys-primary            #005cbb
 *   --mat-sys-on-primary         #ffffff
 *   --mat-sys-outline            #74777f
 *   --mat-sys-error              #ba1a1a
 *   --mat-sys-body-medium        400 .875rem / 1.25rem Roboto
 *   --sidebar-bg / --hero-bg     #1a1a2e
 */

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: #faf9fd;
  color: #1a1b1f;
  font: 400 0.875rem/1.25rem Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
  color: #005cbb;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #005cbb;
  outline-offset: 2px;
}

/*
 * Decorative background logo, ported from the pre-migration app's own
 * public home page (docs/migration-baseline/templates/public_home.html
 * in the main app repo). Fixed to the viewport so it stays put while the
 * page scrolls; z-index: 0 keeps it below every opaque bar (z-index: 2)
 * but visible through the page's transparent content areas.
 */
.bg-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.bg-logo img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.04;
}

.site-header {
  background: #1a1a2e;
  color: #fff;
  padding: 16px 24px;
  position: relative;
  z-index: 2;
}

/* Used on pages with the image logo (instead of the text brand) so the
   logo fills the bar's full height with no padding above/below it, and
   sits flush against the true left edge of the bar rather than the
   left edge of the centered 960px content column. */
.site-header--logo {
  padding: 0 24px;
}

.site-header--logo .site-header__inner {
  max-width: none;
  margin: 0;
}

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header__brand {
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.site-header__logo img {
  display: block;
  height: 150px;
  width: auto;
}

.site-header__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-header__links a {
  color: #fff;
  text-decoration: underline;
  font-size: 0.9rem;
}

.hero {
  background: #1a1a2e;
  color: #fff;
  padding: 48px 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2.25rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  margin: 0 0 16px;
}

.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px;
}

.content section {
  margin-bottom: 32px;
}

.content h2 {
  font: 400 1.375rem/1.75rem Roboto, sans-serif;
  margin: 0 0 8px;
}

.content p {
  margin: 0 0 8px;
}

.content ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.content li {
  margin-bottom: 4px;
}

.site-footer {
  text-align: center;
  padding: 24px;
  color: #44474e;
}

.site-footer__links {
  margin-top: 4px;
  font-size: 0.8rem;
}

.privacy-notice {
  max-width: 640px;
  margin: 0 auto 20px;
  font-size: 0.8rem;
  color: #44474e;
}

/* Contact form */

.form {
  max-width: 560px;
  margin: 0 auto;
}

.form__field {
  margin-bottom: 20px;
}

.form__field label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.form__hint {
  display: block;
  font-size: 0.8rem;
  color: #44474e;
  margin-top: 4px;
}

.form input[type='text'],
.form input[type='email'],
.form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: #1a1b1f;
  background: #fff;
  border: 1px solid #74777f;
  border-radius: 4px;
}

.form input[type='text']:focus,
.form input[type='email']:focus,
.form textarea:focus {
  border-color: #005cbb;
}

.form textarea {
  resize: vertical;
  min-height: 140px;
}

/* Honeypot field: present in the DOM for bots to fill, hidden from
   sighted users and screen readers, and never reachable by keyboard. */
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit {
  background: #005cbb;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 28px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.form__submit:hover {
  background: #004a97;
}

.form__turnstile {
  margin-bottom: 20px;
}

.notice {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.notice--success {
  background: #e6f4ea;
  color: #1a3c22;
  border: 1px solid #34a853;
}

.notice--error {
  background: #fce8e6;
  color: #641e16;
  border: 1px solid #ba1a1a;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
}
