/* ==========================================================================
   EDWAY HEADER + FOOTER for the Gecko Web Enrol pages
   --------------------------------------------------------------------------
   Every rule is scoped under .edway-gk-header or .edway-gk-footer, so nothing
   here touches the enrolment form or the rest of the page. No JavaScript.
   Values are copied from the live Edway site (edway.edu.au).
   Font: Hanken Grotesk (Google Fonts), weights 400/500/600/700.
   ========================================================================== */

/* ---- shared scoped reset ------------------------------------------------ */
.edway-gk-header,
.edway-gk-header *,
.edway-gk-header *::before,
.edway-gk-header *::after,
.edway-gk-footer,
.edway-gk-footer *,
.edway-gk-footer *::before,
.edway-gk-footer *::after {
  box-sizing: border-box;
}

.edway-gk-header *,
.edway-gk-footer * {
  margin: 0;
  padding: 0;
  border: 0 solid;
  float: none;
  text-transform: none;
  text-shadow: none;
}

.edway-gk-header,
.edway-gk-footer {
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-style: normal;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.edway-gk-header a,
.edway-gk-footer a {
  color: inherit;
  text-decoration: none;
  background: transparent;
}

.edway-gk-header a:hover,
.edway-gk-header a:focus,
.edway-gk-footer a:hover,
.edway-gk-footer a:focus {
  text-decoration: none;
}

.edway-gk-header img,
.edway-gk-header svg,
.edway-gk-footer img,
.edway-gk-footer svg {
  display: block;
  max-width: 100%;
  vertical-align: middle;
}

.edway-gk-header a:focus-visible,
.edway-gk-footer a:focus-visible {
  outline: 2px solid #3b63ff;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   HEADER — the floating capsule, without the JavaScript parts
   ========================================================================== */
.edway-gk-header {
  position: relative;
  width: min(1440px, calc(100% - 80px));
  margin: 12px auto 0;
  padding: 0 0 4px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  color: #070f26;
}

.edway-gk-header .edway-gk-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 8px 10px 8px 20px;
  border: 1px solid rgba(211, 217, 228, .72);
  border-radius: 32px;
  background: rgba(244, 246, 250, .85);
  box-shadow: 0 24px 60px rgba(11, 27, 63, .12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.edway-gk-header .edway-gk-logo {
  display: flex;
  flex: none;
  align-items: center;
  min-height: 46px;
}

.edway-gk-header .edway-gk-logo img {
  display: block;
  width: auto;
  height: 30px;
  max-width: none;
}

/* Courses / Locations: plain links styled like the live bar triggers
   (no chevron, no dropdown) */
.edway-gk-header .edway-gk-barnav {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
}

.edway-gk-header .edway-gk-bar-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: #0b1b3f;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: background .2s ease, transform .15s ease;
}

.edway-gk-header .edway-gk-bar-link:hover { background: #e4eaf7; color: #0b1b3f; }

.edway-gk-header .edway-gk-bar-link:active { transform: scale(.98); }

.edway-gk-header .edway-gk-bar-label {
  position: relative;
  display: block;
  height: 18px;
  overflow: hidden;
}

.edway-gk-header .edway-gk-bar-label > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
}

.edway-gk-header .edway-gk-bar-label > span:first-child { position: relative; }

.edway-gk-header .edway-gk-bar-label > span + span { transform: translateY(110%); }

.edway-gk-header .edway-gk-bar-link:hover .edway-gk-bar-label > span,
.edway-gk-header .edway-gk-bar-link:focus-visible .edway-gk-bar-label > span { transform: translateY(-110%); }

.edway-gk-header .edway-gk-bar-link:hover .edway-gk-bar-label > span + span,
.edway-gk-header .edway-gk-bar-link:focus-visible .edway-gk-bar-label > span + span { transform: translateY(0); }

/* The two office numbers */
.edway-gk-header .edway-gk-phone {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  white-space: nowrap;
  color: #414b5e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.edway-gk-header .edway-gk-phone-link,
.edway-gk-header .edway-gk-phone-link:hover { color: inherit; }

.edway-gk-header .edway-gk-phone-label {
  margin-right: 4px;
  font-weight: 500;
}

/* Support / Login */
.edway-gk-header .edway-gk-head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.edway-gk-header .edway-gk-motion-link {
  position: relative;
  display: block;
  min-width: 90px;
  min-height: 46px;
  overflow: hidden;
  border-radius: 999px;
  color: #0b1b3f;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.edway-gk-header .edway-gk-motion-link:hover { color: #0b1b3f; }

.edway-gk-header .edway-gk-motion-link > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  white-space: nowrap;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.edway-gk-header .edway-gk-motion-link > span + span { transform: translateY(110%); }

.edway-gk-header .edway-gk-motion-link:hover > span,
.edway-gk-header .edway-gk-motion-link:focus-visible > span { transform: translateY(-110%); }

.edway-gk-header .edway-gk-motion-link:hover > span + span,
.edway-gk-header .edway-gk-motion-link:focus-visible > span + span { transform: translateY(0); }

.edway-gk-header .edway-gk-motion-link:active { transform: scale(.98); }

.edway-gk-header .edway-gk-motion-link:focus-visible {
  outline: 3px solid #f6c445;
  outline-offset: 2px;
  border-radius: 999px;
}

/* --- 761–1099px: tighter bar, same items ------------------------------- */
@media (min-width: 761px) and (max-width: 1099px) {
  .edway-gk-header .edway-gk-bar { gap: 10px; padding: 8px 8px 8px 16px; }
  .edway-gk-header .edway-gk-logo img { height: 26px; }
  .edway-gk-header .edway-gk-bar-link { padding: 0 10px; font-size: 14px; }
  .edway-gk-header .edway-gk-bar-label { height: 16px; }
  .edway-gk-header .edway-gk-motion-link { min-width: 74px; font-size: 14px; }
  .edway-gk-header .edway-gk-motion-link > span { padding: 0 10px; }
}

@media (max-width: 1099px) {
  .edway-gk-header { width: calc(100% - 16px); }
}

/* Below 900px the "NSW" / "Other states" labels hide (numbers stay). */
@media (max-width: 899px) {
  .edway-gk-header .edway-gk-phone-label { display: none; }
}

/* Below 780px the phone numbers leave the bar (as on the live site). */
@media (max-width: 780px) {
  .edway-gk-header .edway-gk-phone { display: none; }
  .edway-gk-header .edway-gk-head-actions { margin-left: auto; }
}

/* --- <=760px: phones. Logo on the left; Courses, Support, Login on the
       right. Locations shows only where it fits (480px and up). ---------- */
@media (max-width: 760px) {
  .edway-gk-header .edway-gk-bar { gap: 6px; min-height: 64px; padding: 6px 8px 6px 14px; }
  .edway-gk-header .edway-gk-logo img { height: 23px; }
  .edway-gk-header .edway-gk-barnav { margin-left: auto; }
  .edway-gk-header .edway-gk-head-actions { margin-left: 0; }
  .edway-gk-header .edway-gk-bar-link { min-height: 44px; padding: 0 9px; font-size: 14px; }
  .edway-gk-header .edway-gk-bar-label { height: 16px; }
  .edway-gk-header .edway-gk-bar-link--locations { display: none; }
  .edway-gk-header .edway-gk-motion-link { min-width: 64px; min-height: 44px; font-size: 14px; font-weight: 600; }
  .edway-gk-header .edway-gk-motion-link > span { padding-left: 9px; padding-right: 9px; }
}

@media (min-width: 480px) and (max-width: 760px) {
  .edway-gk-header .edway-gk-bar-link--locations { display: inline-flex; }
}

/* ==========================================================================
   FOOTER — static copy of the live site footer
   ========================================================================== */
.edway-gk-footer {
  display: block;
  width: min(1440px, calc(100% - 80px));
  margin: 80px auto 40px;
  padding: 48px 0 32px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: none;
  background: linear-gradient(45deg, #141c52 0%, #1e2a78 100%);
  color: #c6d4e8;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.18px;
}

.edway-gk-footer .edway-gk-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.edway-gk-footer h3 {
  margin: 0 0 16px;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.edway-gk-footer p,
.edway-gk-footer li { text-wrap: pretty; }

.edway-gk-footer .edway-gk-fgrid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 28px;
}

/* Brand column first on desktop by grid placement (reading order unchanged) */
.edway-gk-footer .edway-gk-fcol-brand { grid-area: 1 / 1; }
.edway-gk-footer .edway-gk-fcol-courses { grid-area: 1 / 2; }
.edway-gk-footer .edway-gk-fcol-locations { grid-area: 1 / 3; }
.edway-gk-footer .edway-gk-fcol-students { grid-area: 1 / 4; }

.edway-gk-footer .edway-gk-fcol-subgroup { margin-top: 20px; }

.edway-gk-footer ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edway-gk-footer li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.edway-gk-footer li::before,
.edway-gk-footer li::marker { content: none; }

.edway-gk-footer .edway-gk-frow {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #c6d4e8;
  font-size: 16px;
  line-height: 1.5;
}

.edway-gk-footer a.edway-gk-frow:hover { color: #fff; }

.edway-gk-footer a.edway-gk-frow:active { transform: scale(.98); }

.edway-gk-footer .edway-gk-flogo {
  display: block;
  width: auto;
  max-width: none;
  height: 30px;
  margin-bottom: 16px;
}

.edway-gk-footer .edway-gk-fabout {
  max-width: 34ch;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #c6d4e8;
}

.edway-gk-footer .edway-gk-rtoblock .edway-gk-r { margin-bottom: 8px; }

.edway-gk-footer .edway-gk-rtoblock b {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.edway-gk-footer .edway-gk-rtoblock span {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.edway-gk-footer .edway-gk-fsocial {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.edway-gk-footer .edway-gk-fsocial a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: #c6d4e8;
}

.edway-gk-footer .edway-gk-fsocial a:hover { color: #fff; }

.edway-gk-footer .edway-gk-fsocial a:active { transform: scale(.98); }

.edway-gk-footer .edway-gk-fsocial svg { width: 20px; height: 20px; }

/* the © bar */
.edway-gk-footer .edway-gk-fbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.edway-gk-footer .edway-gk-fbar p {
  max-width: 80ch;
  margin: 0;
  color: #c6d4e8;
  font-size: 14px;
  line-height: 1.5;
}

.edway-gk-footer .edway-gk-fbar .edway-gk-flegal { display: block; }

.edway-gk-footer .edway-gk-fbar .edway-gk-flegal p { max-width: none; }

.edway-gk-footer .edway-gk-fbar p.edway-gk-fack { flex-basis: 100%; }

.edway-gk-footer .edway-gk-fflags {
  display: inline-flex;
  gap: 6px;
  margin-right: 8px;
  vertical-align: middle;
}

.edway-gk-footer .edway-gk-fflags img {
  display: block;
  width: auto;
  height: 14px;
}

@media (min-width: 921px) {
  .edway-gk-footer .edway-gk-frow { min-height: 36px; }
  .edway-gk-footer .edway-gk-fsocial a { min-width: 36px; min-height: 36px; }
}

@media (max-width: 1099px) {
  .edway-gk-footer {
    width: 100%;
    margin: 48px 0 0;
    border-radius: 20px 20px 0 0;
  }
  .edway-gk-footer .edway-gk-fbar { margin-top: 24px; padding-top: 20px; }
}

@media (max-width: 920px) {
  .edway-gk-footer .edway-gk-fgrid { grid-template-columns: 1fr 1fr; }
  .edway-gk-footer .edway-gk-fgrid > div { grid-area: auto; }
}

@media (max-width: 560px) {
  .edway-gk-footer .edway-gk-fgrid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .edway-gk-footer,
  .edway-gk-footer * { transition-duration: .01ms !important; }
  .edway-gk-footer a.edway-gk-frow:active,
  .edway-gk-footer .edway-gk-fsocial a:active { transform: none; }
}
