/* ==========================================================================
   GP Link marketing site — shared design system
   Ported from the approved design preview:
   docs/mockups/marketing-homepage-prototype.html
   Every public page (Tasks 7-12) includes this stylesheet, then adds its
   own page-local <style> block for hero/app-push/oz/etc sections.
   ========================================================================== */

:root {
  /* Palette pulled from the current mygplink.com.au */
  --ink: #2b5672;
  --ink-2: #14324c;
  --teal: #116dff;
  --teal-soft: #e8f2ff;
  --bg: #f7fafd;
  --card: #ffffff;
  --line: #dce6ee;
  --mut: #456a85;
  --mut-2: #64829b;
  --gold: #116dff;
  --sky: #4eb7f5;
  /* Figtree is loaded per-page from Google Fonts (display=swap); the system
     stack below is both the fallback and the pre-swap render. */
  --sys: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pad: clamp(22px, 5vw, 72px);
  --r: 18px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-wipe: cubic-bezier(.7, 0, .3, 1);
}

/* ---------- base / reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sys);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Soft page entrance — opacity only (a transform on <body> would break the
   fixed header), paired with each page's own hero stage animation. */
@media (prefers-reduced-motion: no-preference) {
  body { animation: gpPageIn .5s ease-out; }
  @keyframes gpPageIn { from { opacity: 0; } to { opacity: 1; } }
}
img { max-width: 100%; display: block; }
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- site header / nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(13, 58, 79, .35);
  background: rgba(255, 255, 255, .94);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 13px var(--pad);
  transition: padding .35s ease;
}
.site-header.scrolled .nav-in { padding-top: 8px; padding-bottom: 8px; }
.nav-logo { flex: 0 0 auto; }
.nav-logo img { height: 38px; width: auto; transition: height .35s ease; }
.site-header.scrolled .nav-logo img { height: 30px; }
.nav-links { display: flex; gap: 4px; font-size: 14px; font-weight: 590; color: var(--ink); margin: 0 auto; }
.nav-links a {
  color: inherit;
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 9px;
  position: relative;
  transition: color .2s, background .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--teal); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav-signin {
  font-size: 14px;
  font-weight: 620;
  color: var(--mut);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 9px;
  transition: color .2s, background .2s;
}
.nav-signin:hover { color: var(--teal); background: var(--teal-soft); }
.nav-cta {
  background: var(--teal);
  color: #fff;
  font-size: 13.5px;
  font-weight: 680;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 8px 20px -10px rgba(17, 109, 255, .7);
}
.nav-cta:hover { background: #0d5ee0; transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(17, 109, 255, .8); }

/* mobile menu button (hidden on desktop) */
.site-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.site-menu-btn:hover { background: var(--teal-soft); border-color: var(--teal); }
.site-menu-btn[aria-expanded="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }

/* mobile dropdown panel — the prototype has no mobile menu; this extends
   the same frosted chrome consistently for narrow viewports */
.site-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px var(--pad) 18px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(13, 58, 79, .35);
}
.site-mobile-menu.open { display: flex; }
.site-mobile-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
}
.site-mobile-menu a:last-child { border-bottom: 0; }
.site-mobile-menu a:hover { color: var(--teal); }
.site-mobile-menu .nav-cta { text-align: center; margin-top: 10px; }
.site-mobile-menu .nav-signin { text-align: center; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-right > .nav-signin { display: none; }
  .nav-right { margin-left: auto; }
  .site-menu-btn { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 660;
  padding: 15px 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.btn.primary { background: var(--teal); color: #fff; box-shadow: 0 14px 34px -12px rgba(17, 109, 255, .6); }
.btn.primary:hover { transform: translateY(-2px); background: #0d5ee0; box-shadow: 0 20px 40px -12px rgba(17, 109, 255, .75); }
.btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(4px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.btn.white { background: #fff; color: #0d5ee0; box-shadow: 0 14px 34px -14px rgba(9, 30, 50, .7); }
.btn.white:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
.btn:active { transform: translateY(0) scale(.97); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- section scaffolding ---------- */
section.block { padding: clamp(44px, 6vw, 84px) 0; }
.sec-eyebrow { color: var(--teal); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 750; }
h2.sec-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.06;
  margin: .4em 0 .35em;
  text-wrap: balance;
  color: var(--ink-2);
}
.sec-sub { color: var(--mut); font-size: clamp(15px, 1.7vw, 17.5px); max-width: 60ch; margin: 0; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out);
}
/* Directional / scale / blur variants — combine with .reveal */
.reveal.rv-left { transform: translateX(-44px); }
.reveal.rv-right { transform: translateX(44px); }
.reveal.rv-scale { transform: scale(.92) translateY(18px); }
.reveal.rv-blur { transform: translateY(24px); filter: blur(10px); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.dl1 { transition-delay: .08s; }
.reveal.dl2 { transition-delay: .16s; }
.reveal.dl3 { transition-delay: .24s; }
.reveal.dl4 { transition-delay: .32s; }

/* Image unmask — the picture scales down while its frame opens up.
   JS toggles .in with the same IntersectionObserver as .reveal. */
.img-reveal {
  clip-path: inset(10% 10% 10% 10% round 26px);
  transform: scale(1.08);
  transition: clip-path 1.1s var(--ease-out), transform 1.3s var(--ease-out);
}
.img-reveal.in { clip-path: inset(0 0 0 0 round 0px); transform: none; }

/* Split-headline word rise — js/site.js wraps [data-split] words in spans */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span {
  display: inline-block;
  transform: translateY(112%);
  animation: gpWordUp .75s var(--ease-out) forwards;
  animation-delay: var(--wd, 0s);
}
@keyframes gpWordUp { to { transform: none; } }

/* Parallax hook — js/site.js drives translate3d; keep layout-stable */
[data-parallax] { will-change: transform; }

/* ---------- page-transition veil + scroll progress ---------- */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: linear-gradient(135deg, #0c2e66 0%, #0d5ee0 55%, #116dff 100%);
  /* Rest fully off-screen: the ::after dome arcs 15vh above the veil's top
     edge, so anything under ~115% leaves a blue sliver visible at the bottom
     of every page. 120% keeps the dome clear of the viewport at rest. */
  transform: translateY(120%);
  transition: transform .42s var(--ease-wipe);
}
.page-veil::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -14vh;
  height: 15vh;
  background: inherit;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.page-veil.cover { transform: translateY(0); pointer-events: all; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 210;
  pointer-events: none;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  bottom: 54px;
  background: var(--ink-2);
  color: #eaf3fb;
  font-size: 13.5px;
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: 0 18px 40px -16px rgba(9, 30, 50, .7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  max-width: min(92vw, 640px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast code { background: rgba(255, 255, 255, .12); border-radius: 6px; padding: 2px 7px; font-size: 12.5px; word-break: break-all; }

/* ---------- form controls ---------- */
.site-field { display: grid; gap: 5px; }
.site-field label,
label.site-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mut-2);
}
.site-field input,
.site-field select,
.site-field textarea,
.site-field.go {
  font: inherit;
}
.site-field input,
.site-field select,
.site-field textarea {
  font-size: 14.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  width: 100%;
}
.site-field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.site-field input:focus,
.site-field select:focus,
.site-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.site-field .hint { font-size: 12px; color: var(--mut-2); }
.site-field .error { font-size: 12.5px; color: #c0392b; }

/* generic form-submit button reused by job search / enquiry forms */
.site-submit {
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.site-submit:hover { background: #0d5ee0; transform: translateY(-1px); }
.site-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* thank-you panel swapped in by GPSite.bindEnquiryForm() on success */
.site-thanks {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  text-align: center;
}
.site-thanks .ok {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 14px;
}
.site-thanks h4 { margin: 0 0 6px; font-size: 18px; font-weight: 720; color: var(--ink-2); }
.site-thanks p { margin: 0; color: var(--mut); font-size: 14.5px; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.faq-item.open { border-color: var(--teal); box-shadow: 0 22px 44px -30px rgba(13, 58, 79, .45); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  background: none;
  border: 0;
  margin: 0;
  padding: 20px 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 680;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
}
.faq-q::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: transform .3s ease;
}
.faq-item.open .faq-q::after { transform: rotate(135deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s cubic-bezier(.2, .7, .2, 1);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--mut);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink-2); color: #9db4cc; font-size: 14px; }
.foot-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px var(--pad) 28px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer .flogo { background: #fff; border-radius: 12px; padding: 9px 14px; display: inline-block; }
.site-footer .flogo img { height: 30px; }
.foot-col { display: grid; gap: 9px; }
.foot-col b { color: #dfeaf6; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { color: #9db4cc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-base {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 16px var(--pad);
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #7391ac;
}

/* ---------- destination cards (Where you could live) ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 30px;
}
.dest-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  background: var(--ink-2);
  text-decoration: none;
  transform: translateZ(0);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  box-shadow: 0 18px 40px -26px rgba(13, 58, 79, .5);
}
.dest-card:hover { transform: translateY(-7px); box-shadow: 0 30px 60px -28px rgba(13, 58, 79, .65); }
.dest-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.dest-card:hover img { transform: scale(1.08); }
.dest-card .dveil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 32, 56, 0) 42%, rgba(12, 32, 56, .82) 100%);
}
.dest-card .dmeta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 16px 15px;
  color: #fff;
}
.dest-card .dmeta b { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.dest-card .dmeta span { display: block; font-size: 12.5px; color: #cfe2ff; margin-top: 3px; line-height: 1.4; }
@media (max-width: 1080px) { .dest-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) {
  .dest-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-left: calc(var(--pad) * -1);
    margin-right: calc(var(--pad) * -1);
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
  .dest-card { flex: 0 0 68vw; scroll-snap-align: center; }
}

/* ---------- partner logo marquee (shared) ---------- */
.logo-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logo-track { display: flex; align-items: center; width: max-content; animation: logoMarqueeLtr 24s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-seq { display: flex; align-items: center; flex-shrink: 0; gap: clamp(26px, 6vw, 72px); padding-right: clamp(26px, 6vw, 72px); }
.logo-seq img { height: 52px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s, transform .3s; }
.logo-seq img:hover { filter: none; opacity: 1; transform: translateY(-3px); }
/* Rightward flow (owner-requested): 3 identical .logo-seq copies make
   -33.3334% exactly one sequence, so the loop restarts seamlessly. */
@keyframes logoMarqueeLtr {
  from { transform: translateX(-33.3334%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .img-reveal { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .split-words .w > span { animation: none !important; transform: none !important; }
  .page-veil, .scroll-progress { display: none !important; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-track { animation: none; transform: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .logo-seq[aria-hidden="true"] { display: none; }
  .logo-seq { padding-right: 0; }
  html { scroll-behavior: auto; }
}
