/* Shared refinements. Homepage scene geometry and motion styles stay in style.css. */
:root { --gb-contact-reserve: calc(88px + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-bottom: calc(var(--gb-contact-reserve) + 20px); }
body { padding-bottom: var(--gb-contact-reserve); }
a, button, summary, input, [tabindex] { scroll-margin-bottom: calc(var(--gb-contact-reserve) + 20px); }
.gb-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.button { border: 1px solid transparent; font-family: inherit; cursor: pointer; text-decoration: none; }
.button-outline { color: #202b2b; background: #f5f4ef; border-color: #a5aea1; box-shadow: none; }
.button-outline:hover { background: white; color: #174cdf; }
.header-whatsapp { margin-left: auto; }
.header-whatsapp .button { font-size: 12px; min-height: 44px; padding: 10px 14px; gap: 7px; }
.header-whatsapp .button svg:last-child { display: none; }
.site-header, .gb-top-banner, .site-footer, .gb-contact-bar { line-height: normal; }
.site-header nav { margin-left: 0; }
.gb-cta-banner .enquiry-inner { align-items: center; gap: 40px; }
.gb-cta-banner .enquiry-action { width: auto; padding-right: 0; }
.gb-cta-banner .gb-actions { position: relative; z-index: 1; }
.gb-cta-banner .enquiry-location { font-size: 16px; line-height: 1.7; max-width: 480px; }
.gb-cta-banner .button { font-size: 14px; }
.site-footer nav { flex-wrap: wrap; align-items: center; gap: 18px; }
.site-footer nav a, .site-footer nav button { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
.site-footer .footer-bottom { gap: 20px; flex-wrap: wrap; line-height: 1.7; }
.site-footer .text-link { color: #202b2b; }
.gb-contact-bar { display: block; position: fixed; inset: auto 0 0; z-index: 40; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background: #f5f4ef; border-top: 1px solid #dcded6; box-shadow: 0 -4px 20px #202b2b0d; }
.gb-contact-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gb-contact-prompt { color: #202b2b; font-size: 15px; font-weight: 600; line-height: 1.5; }
.gb-contact-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gb-contact-bar :is(a, button) { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 4px; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.gb-contact-bar svg { width: 19px; height: 19px; flex-shrink: 0; }
.gb-contact-bar .gb-contact-whatsapp { background: #174cdf; color: #fff; }
.gb-contact-bar .gb-contact-email { color: #202b2b; background: transparent; border-color: #bec4bb; }
.gb-contact-bar :is(a, button):hover { filter: brightness(.96); }
.gb-contact-bar :is(a, button):active { opacity: .8; }
.gb-modal { width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 34px; border: 1px solid #bec4bb; border-radius: 4px; color: #202b2b; background: #f5f4ef; margin: auto; box-shadow: 0 20px 80px #101e2440; }
.gb-modal::backdrop { background: #172329b3; }
.gb-modal h2 { font-size: clamp(28px, 5vw, 36px); line-height: 1.15; font-weight: 550; letter-spacing: -.04em; margin: 0 0 22px; }
.gb-modal p { font-size: 16px; line-height: 1.7; margin: 0 0 20px; color: #465568; }
.gb-modal p a { text-decoration: underline; text-underline-offset: 4px; }
.gb-modal .button { font-size: 14px; }
.gb-modal :focus-visible { outline: 3px solid #174cdf; outline-offset: 4px; }
.gb-modal h2:focus { outline: none; }
.gb-noscript { padding: 22px 0; font-size: 15px; line-height: 1.8; }
.gb-noscript a { color: #174cdf; text-decoration: underline; }
.email-address { display: inline-block; color: #174cdf; font-weight: 650; font-size: clamp(17px, 2.1vw, 24px); overflow-wrap: anywhere; user-select: text; text-decoration: underline; }
#email-copy-status { min-height: 2em; font-size: 14px; line-height: 1.6; margin-top: 14px; }
#email-copy-fallback { width: 100%; min-height: 48px; padding: 12px; font: inherit; color: #202b2b; background: white; border: 1px solid #a5aea1; margin-top: 12px; }
@media (max-width: 1200px) {
  .header-location { display: none; }
  .gb-cta-banner .enquiry-inner { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  :root { --gb-contact-reserve: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .header-whatsapp { display: none; }
  .site-header nav { margin-left: auto; }
  .gb-contact-bar { display: block; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); }
  .gb-contact-bar-inner { display: block; }
  .gb-contact-prompt { display: none; }
  .gb-contact-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
  .gb-contact-bar :is(a, button) { display: flex; min-height: 48px; padding: 12px; font-size: 12px; }
  .gb-cta-banner .enquiry-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
  .gb-cta-banner .enquiry-action { margin-top: 0; width: 100%; }
  .gb-cta-banner .enquiry-location { font-size: 15px; }
  .gb-cta-banner .button { width: 100%; font-size: 14px; }
  .gb-cta-banner .gb-actions { width: 100%; }
  .gb-modal { padding: 26px; max-height: calc(100dvh - 24px); }
  .gb-modal .gb-actions { align-items: stretch; }
  .site-footer nav { gap: 10px 22px; }
  .footer-bottom p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
/* Homepage services: icon, service name, arrow */
#services .gb-service-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
}

#services .gb-service-icon {
  grid-column: 1;
  grid-row: 1;
}

#services .gb-service-name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

#services .gb-service-arrow {
  grid-column: 3;
  grid-row: 1;
}
/* HOMEPAGE — HOW IT WORKS */
#how-it-works.gb-home-process {
  position: relative;
  padding: clamp(64px, 7vw, 112px) 0;

  background: #152b47;
  color: #f5f4ef;

  scroll-margin-top:
    calc(var(--gb-header-height, 100px) + 24px);
}

#how-it-works .gb-home-process-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 7vw, 112px);
}

#how-it-works .gb-home-process-intro,
#how-it-works .gb-home-process-step-copy {
  min-width: 0;
}

#how-it-works .gb-home-process-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 24px;

  color: #c8d4e4;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.15em;
}

#how-it-works .gb-home-process-eyebrow > span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;

  border-radius: 50%;
  background: #a8c2ff;
}

#how-it-works h2 {
  max-width: 13ch;
  margin: 0;

  color: #f5f4ef;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.045em;

  text-wrap: balance;
}

#how-it-works h2 > span {
  color: #bdcce0;
}

#how-it-works .gb-home-process-description {
  max-width: 38ch;
  margin: 24px 0 0;

  color: #d0dae7;
  font-size: 16px;
  line-height: 1.8;
}

#how-it-works .gb-home-process-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  min-height: 48px;
  margin-top: 28px;
  padding: 10px 0;

  border-bottom: 1px solid rgb(245 244 239 / 40%);

  color: #f5f4ef;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

#how-it-works .gb-home-process-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;

  transition: transform 180ms ease;
}

@media (hover: hover) {
  #how-it-works .gb-home-process-link:hover svg {
    transform: translate(3px, -3px);
  }
}

#how-it-works .gb-home-process-link:focus-visible {
  outline: 2px solid #b9d0ff;
  outline-offset: 6px;
  border-radius: 2px;
}

#how-it-works .gb-home-process-steps {
  display: grid;
  gap: 0;

  margin: 0;
  padding: 0;

  list-style: none;
}

#how-it-works .gb-home-process-step {
  position: relative;

  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;

  margin: 0;
  padding: 0 0 36px;
}

#how-it-works .gb-home-process-step:last-child {
  padding-bottom: 0;
}

/* A quiet connecting line, not a large card or box. */
#how-it-works .gb-home-process-step:not(:last-child)::after {
  content: "";
  position: absolute;

  top: 58px;
  bottom: 10px;
  left: 23px;

  width: 1px;
  background: rgb(200 216 239 / 22%);
}

#how-it-works .gb-home-process-icon {
  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  border: 1px solid rgb(200 216 239 / 26%);
  border-radius: 50%;

  background: rgb(255 255 255 / 4%);
  color: #c5d7ff;
}

#how-it-works .gb-home-process-icon svg {
  width: 23px;
  height: 23px;
}

#how-it-works .gb-home-process-step-label {
  margin: 1px 0 8px;

  color: #bdcce0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

#how-it-works .gb-home-process-step h3 {
  margin: 0;

  color: #f5f4ef;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

#how-it-works .gb-home-process-step-copy > p:last-child {
  max-width: 43ch;
  margin: 12px 0 0;

  color: #d0dae7;
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 760px) {
  #how-it-works.gb-home-process {
    padding: 58px 0 62px;
  }

  #how-it-works .gb-home-process-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  #how-it-works .gb-home-process-eyebrow {
    margin-bottom: 20px;
  }

  #how-it-works h2 {
    font-size: clamp(34px, 8.8vw, 44px);
  }

  #how-it-works .gb-home-process-description {
    margin-top: 20px;
    font-size: 15px;
  }

  #how-it-works .gb-home-process-link {
    margin-top: 20px;
  }

  #how-it-works .gb-home-process-step {
    gap: 18px;
    padding-bottom: 32px;
  }

  #how-it-works .gb-home-process-step:last-child {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #how-it-works .gb-home-process-link svg {
    transition: none;
  }
}
