@import url('variables.css');

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--hgs-font-sans);
  color: var(--hgs-ink);
  background: var(--hgs-paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--hgs-blue); }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--hgs-blue-dark);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.shell {
  width: 100%;
  max-width: var(--hgs-shell-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Brand stripe: the full four-colour palette in one thin band. */
.brand-stripe {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--hgs-blue) 0%, var(--hgs-blue) 25%,
    var(--hgs-green) 25%, var(--hgs-green) 50%,
    var(--hgs-gold) 50%, var(--hgs-gold) 75%,
    var(--hgs-red) 75%, var(--hgs-red) 100%
  );
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hgs-white);
  border-bottom: 1px solid var(--hgs-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand__crest { border-radius: 6px; }
.brand__name { font-weight: 700; font-size: 1.05rem; color: var(--hgs-blue-dark); }

.site-nav__external {
  text-decoration: none;
  color: var(--hgs-blue) !important;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--hgs-green) 0%, var(--hgs-blue) 100%);
  color: #fff;
  padding-block: 96px;
}
.hero__inner { max-width: 640px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.92); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Buttons */
.button-link {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--hgs-gold);
  color: var(--hgs-blue-dark);
}
.button-link:hover { filter: brightness(1.05); }
.button-link--outline {
  background: transparent;
  color: var(--hgs-blue-dark);
  border: 1px solid var(--hgs-line);
}

/* Sections (used by 404) */
.section { padding-block: 56px; }

/* Footer */
.site-footer {
  background: var(--hgs-blue-dark);
  color: rgba(255,255,255,0.85);
  margin-top: 40px;
}
.site-footer a { color: #fff; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* 404 */
.error-page { text-align: center; padding-block: 90px; }
.error-page h1 { font-size: 4rem; color: var(--hgs-green); }
