/* ==========================================================================
   GAK CONSTRUCTION — HERO SECTION  (Midnight Ocean & Rustic Ivory)
   File: public/css/hero.css

   Drop-in replacement: every original class name is preserved, including the
   three local custom properties --hero-green / --hero-gold / --hero-white and
   the banner variable --gak-hero-image. Existing template overrides keep working;
   they simply resolve to the new palette.

   PALETTE
   Midnight Navy #071A3A · Ocean Blue #234B78 · Steel Blue #669BC5
   Ice Blue #B7D9EF · Denim #6593BC · Ivory #E5E0D7 · Ink #0A1526

   SECTIONS
   01. Tokens & shell
   02. Background layers (image, gradient, texture, scrim)
   03. Container & eyebrow
   04. Title block
   05. Details, buttons
   06. Bottom information row
   07. Optional extras (badge, orbs)
   08. Motion
   09. Responsive
   10. Accessibility & print
   ========================================================================== */


/* ==========================================================================
   01. TOKENS & SHELL
   ========================================================================== */
.gak-hero {
  /* kept for backwards compatibility — now mapped to the blue palette */
  --hero-green: #071A3A;
  --hero-gold: #669BC5;
  --hero-white: #ffffff;

  /* new tokens */
  --hero-navy: #071A3A;
  --hero-navy-2: #04101F;
  --hero-navy-3: #102E5C;
  --hero-ocean: #234B78;
  --hero-steel: #669BC5;
  --hero-ice: #B7D9EF;
  --hero-ice-50: #DCEBF7;

  --hero-ease: cubic-bezier(.16, 1, .3, 1);
  --hero-sheen: linear-gradient(115deg, transparent 26%, rgba(255,255,255,.55) 46%, transparent 64%);

  --hero-grain: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='.55'/%3E%3C/svg%3E");

  --hero-grid: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0v64' fill='none' stroke='%23B7D9EF' stroke-opacity='.13' stroke-width='1'/%3E%3C/svg%3E");

  --hero-twill: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M-2 6 6-2M2 10 10 2' stroke='%23B7D9EF' stroke-opacity='.3' stroke-width='1'/%3E%3C/svg%3E");

  position: relative;
  display: flex;
  align-items: center;
  min-height: 690px;
  height: min(860px, calc(100svh - 80px));
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-navy);
  color: var(--hero-white);
}


/* ==========================================================================
   02. BACKGROUND LAYERS
   ========================================================================== */

/* your uploaded banner (variable name unchanged) */
.gak-hero__background {
  position: absolute;
  z-index: -4;
  inset: 0;
  background-image: var(--gak-hero-image, none);
  background-position: center;
  background-size: cover;
  background-color: var(--hero-navy);
  filter: saturate(1.18) brightness(1.22) contrast(1.04);
  transform: scale(1.015);
  animation: gak-hero-image-reveal 1.4s var(--hero-ease) both;
}

/* atmospheric navy→ocean wash — visible even with no banner image */
.gak-hero::before {
  content: "";
  position: absolute;
  z-index: -5;
  inset: -2%;
  background:
    radial-gradient(72% 92% at 12% 6%, rgba(102, 155, 197, .55), transparent 62%),
    radial-gradient(58% 80% at 88% 16%, rgba(183, 217, 239, .3), transparent 60%),
    radial-gradient(125% 125% at 50% 128%, #2F5C8A 0%, var(--hero-ocean) 34%, var(--hero-navy) 72%, #04101F 100%);
  animation: gak-hero-breathe 30s var(--hero-ease) infinite alternate;
}

/* denim twill + film grain + blueprint grid */
.gak-hero::after {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  background-image: var(--hero-grain), var(--hero-grid), var(--hero-twill);
  background-size: 180px 180px, 64px 64px, 8px 8px;
  opacity: .18;
  mix-blend-mode: overlay;
  mask-image: linear-gradient(105deg, #000 10%, rgba(0,0,0,.35) 62%, transparent 92%);
  -webkit-mask-image: linear-gradient(105deg, #000 10%, rgba(0,0,0,.35) 62%, transparent 92%);
}

/* readability scrim — navy replaces the old green wash */
.gak-hero__overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      94deg,
      rgba(4, 16, 31, .93) 0%,
      rgba(7, 26, 58, .78) 40%,
      rgba(10, 34, 66, .3) 72%,
      rgba(10, 34, 66, .06) 100%
    ),
    linear-gradient(
      0deg,
      rgba(4, 16, 31, .82) 0%,
      transparent 36%,
      rgba(4, 16, 31, .14) 100%
    );
  pointer-events: none;
}


/* ==========================================================================
   03. CONTAINER & EYEBROW
   ========================================================================== */
.gak-hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 100px, 1440px);
  min-height: 100%;
  margin: 0 auto;
  padding: 96px 0 40px;
}

.gak-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  color: var(--hero-ice);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.6;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(4, 16, 31, .6);
}

.gak-hero__eyebrow-line {
  width: 42px;
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--hero-ice), rgba(183, 217, 239, .08));
  transform-origin: left;
}


/* ==========================================================================
   04. TITLE BLOCK
   ========================================================================== */
.gak-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, .65fr);
  align-items: end;
  gap: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(56px, 8vw, 100px);
}

.gak-hero__heading-wrap { max-width: 880px; }

.gak-hero__title {
  margin: 0;
  color: #fff;
  font-family: "Manrope", "Inter", "Arial", sans-serif;
  font-size: clamp(52px, 7.1vw, 106px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .97;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 26px 70px rgba(0, 0, 0, .38);
  animation: gak-hero-text-reveal .9s .1s var(--hero-ease) both;
}

/* accent words inside the headline: <em> or <span class="ice"> */
.gak-hero__title em,
.gak-hero__title .hero-ice {
  font-style: normal;
  background: linear-gradient(100deg, var(--hero-ice) 0%, #FFFFFF 44%, var(--hero-steel) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* the old gold rule becomes a light-to-navy gradient mark */
.gak-hero__title-mark {
  width: 84px;
  height: 4px;
  margin-top: 28px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--hero-ice), var(--hero-steel) 55%, rgba(102, 155, 197, 0));
  box-shadow: 0 0 22px rgba(183, 217, 239, .45);
  animation: gak-hero-mark .9s .55s var(--hero-ease) both;
}


/* ==========================================================================
   05. DETAILS & BUTTONS
   ========================================================================== */
.gak-hero__details {
  max-width: 440px;
  padding-bottom: 6px;
  animation: gak-hero-text-reveal .9s .28s var(--hero-ease) both;
}

.gak-hero__description {
  margin: 0 0 28px;
  color: rgba(228, 239, 248, .86);
  font-size: clamp(.92rem, 1.05vw, .98rem);
  line-height: 1.95;
}

.gak-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- shared button --- */
.gak-hero__button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background .25s var(--hero-ease),
    border-color .25s var(--hero-ease),
    color .25s var(--hero-ease),
    box-shadow .25s var(--hero-ease),
    transform .25s var(--hero-ease);
}

/* shine sweep on both variants */
.gak-hero__button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-sheen);
  transform: translateX(-130%);
  transition: transform .85s var(--hero-ease);
}
.gak-hero__button:hover::after { transform: translateX(130%); }
.gak-hero__button > * { position: relative; }

/* --- primary: ice gradient with a lacquered edge --- */
.gak-hero__button--primary {
  background: linear-gradient(180deg, #E5F2FB 0%, var(--hero-ice) 48%, var(--hero-steel) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .88),
    inset 0 -2px 0 rgba(7, 26, 58, .2),
    0 16px 30px -16px rgba(183, 217, 239, .9);
  color: var(--hero-navy);
}
.gak-hero__button--primary:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #F2F9FE 0%, #D6EAF8 48%, #7FADD4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 24px 40px -18px rgba(183, 217, 239, 1);
}
.gak-hero__button--primary:active { transform: translateY(1px); }

.gak-hero__button-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(7, 26, 58, .26);
  border-radius: 50%;
  font-size: 13px;
  transition: transform .35s var(--hero-ease), background .3s var(--hero-ease);
}
.gak-hero__button--primary:hover .gak-hero__button-icon {
  transform: translateX(3px);
  background: rgba(7, 26, 58, .08);
}

/* --- secondary: frosted glass --- */
.gak-hero__button--secondary {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26);
  color: #fff;
  backdrop-filter: blur(12px);
}
.gak-hero__button--secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(183, 217, 239, .7);
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 32px -20px rgba(0, 0, 0, .9);
}


/* ==========================================================================
   06. BOTTOM INFORMATION ROW
   ========================================================================== */
.gak-hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(183, 217, 239, .26);
  animation: gak-hero-text-reveal .9s .42s var(--hero-ease) both;
}

/* trust block */
.gak-hero__trust { display: flex; align-items: center; gap: 13px; }

.gak-hero__trust-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid rgba(183, 217, 239, .4);
  border-radius: 13px;
  background: linear-gradient(165deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 24px -16px rgba(0, 0, 0, .9);
  color: var(--hero-ice);
  font-size: 15px;
  backdrop-filter: blur(12px);
  transition: transform .4s var(--hero-ease), background .4s var(--hero-ease);
}
.gak-hero__trust:hover .gak-hero__trust-icon {
  transform: translateY(-2px);
  background: linear-gradient(165deg, rgba(183, 217, 239, .35), rgba(102, 155, 197, .18));
}

.gak-hero__trust strong,
.gak-hero__trust small { display: block; }
.gak-hero__trust strong { color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .01em; }
.gak-hero__trust small {
  margin-top: 4px;
  color: rgba(228, 239, 248, .66);
  font-size: .7rem;
  line-height: 1.5;
}

/* service list */
.gak-hero__services {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(228, 239, 248, .8);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* the gold separator becomes a small ice pip */
.gak-hero__separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hero-ice);
  opacity: .7;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

/* scroll cue */
.gak-hero__scroll {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: rgba(228, 239, 248, .78);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s var(--hero-ease);
}
.gak-hero__scroll:hover { color: #fff; }

.gak-hero__scroll-line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--hero-ice), rgba(183, 217, 239, .1));
  transition: width .3s var(--hero-ease);
}
.gak-hero__scroll:hover .gak-hero__scroll-line { width: 54px; }


/* ==========================================================================
   07. OPTIONAL EXTRAS
   ========================================================================== */

/* (a) floating glass stat card — drop .gak-hero__badge into .gak-hero */
.gak-hero__badge {
  position: absolute;
  right: max(50px, calc((100vw - 1440px) / 2 + 50px));
  bottom: 128px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 21px;
  border: 1px solid rgba(183, 217, 239, .3);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.04));
  box-shadow: 0 24px 46px -28px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, .26);
  backdrop-filter: blur(16px);
  animation: gak-hero-float 7s var(--hero-ease) infinite alternate;
}
.gak-hero__badge strong {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.gak-hero__badge span {
  color: var(--hero-ice);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* (b) decorative orbiting contour rings */
.gak-hero__orbit {
  position: absolute;
  z-index: -1;
  right: -8%;
  top: 50%;
  width: min(48vw, 620px);
  height: min(48vw, 620px);
  translate: 0 -50%;
  opacity: .45;
  pointer-events: none;
  animation: gak-hero-spin 60s linear infinite;
}
.gak-hero__orbit circle,
.gak-hero__orbit path {
  fill: none;
  stroke: rgba(183, 217, 239, .28);
  stroke-width: 1;
}


/* ==========================================================================
   08. MOTION
   ========================================================================== */
@keyframes gak-hero-image-reveal {
  from { opacity: .5; transform: scale(1.07); filter: saturate(1.18) brightness(1.22) contrast(1.04) blur(7px); }
  to   { opacity: 1;  transform: scale(1.015); filter: saturate(1.18) brightness(1.22) contrast(1.04) blur(0); }
}

@keyframes gak-hero-text-reveal {
  from { opacity: 0; transform: translateY(20px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes gak-hero-mark {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

@keyframes gak-hero-breathe {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.09) translate3d(-1.5%, 1%, 0); }
}

@keyframes gak-hero-float {
  from { transform: translateY(-8px); }
  to   { transform: translateY(8px); }
}

@keyframes gak-hero-spin { to { transform: rotate(360deg); } }

/* eyebrow line draws itself in */
@media (prefers-reduced-motion: no-preference) {
  .gak-hero__eyebrow-line { animation: gak-hero-mark .8s .25s var(--hero-ease) both; }
  .gak-hero__eyebrow { animation: gak-hero-text-reveal .8s var(--hero-ease) both; }
}


/* ==========================================================================
   09. RESPONSIVE
   ========================================================================== */

/* Laptop / tablet */
@media (max-width: 1000px) {
  .gak-hero {
    min-height: 700px;
    height: auto;
  }

  .gak-hero__container {
    width: calc(100% - 60px);
    padding: 100px 0 30px;
  }

  .gak-hero__main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 66px;
  }

  .gak-hero__heading-wrap { max-width: 820px; }

  .gak-hero__title {
    max-width: 820px;
    font-size: clamp(52px, 8.6vw, 88px);
  }

  .gak-hero__details { max-width: 580px; }

  .gak-hero__bottom { grid-template-columns: 1fr auto; }

  .gak-hero__services {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-top: 10px;
  }

  .gak-hero__scroll {
    grid-column: 2;
    grid-row: 1;
  }

  .gak-hero__badge { display: none; }
  .gak-hero__orbit { width: 70vw; height: 70vw; right: -22%; opacity: .3; }
}

/* Phone */
@media (max-width: 600px) {
  .gak-hero {
    min-height: 680px;
    height: auto;
  }

  .gak-hero__background { background-position: 58% center; }

  .gak-hero__overlay {
    background:
      linear-gradient(180deg, rgba(4, 16, 31, .9) 0%, rgba(7, 26, 58, .74) 52%, rgba(4, 16, 31, .94) 100%),
      linear-gradient(0deg, rgba(4, 16, 31, .6), transparent 70%);
  }

  .gak-hero__container {
    width: calc(100% - 36px);
    padding: 92px 0 24px;
  }

  .gak-hero__eyebrow {
    gap: 10px;
    margin-bottom: 26px;
    font-size: .6rem;
    letter-spacing: .13em;
  }
  .gak-hero__eyebrow-line { width: 24px; }

  .gak-hero__main {
    gap: 26px;
    padding-bottom: 52px;
  }

  .gak-hero__title {
    font-size: clamp(42px, 11.5vw, 68px);
    letter-spacing: -.04em;
    line-height: 1.02;
  }

  .gak-hero__title-mark {
    width: 58px;
    height: 3px;
    margin-top: 20px;
  }

  .gak-hero__description {
    margin-bottom: 22px;
    font-size: .84rem;
    line-height: 1.85;
  }

  .gak-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gak-hero__button {
    width: 100%;
    justify-content: space-between;
    min-height: 50px;
  }

  .gak-hero__bottom {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 20px;
  }

  .gak-hero__services {
    grid-column: auto;
    grid-row: auto;
    justify-content: flex-start;
    gap: 8px;
    font-size: .58rem;
    line-height: 1.9;
  }

  .gak-hero__trust small { font-size: .66rem; }
  .gak-hero__scroll { display: none; }
}

@media (max-width: 400px) {
  .gak-hero__title { font-size: 40px; }
  .gak-hero__services { letter-spacing: .1em; }
  .gak-hero__trust-icon { width: 40px; height: 40px; border-radius: 12px; }
}


/* ==========================================================================
   10. ACCESSIBILITY & PRINT
   ========================================================================== */
.gak-hero__button:focus-visible,
.gak-hero__scroll:focus-visible {
  outline: 2px solid var(--hero-ice);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .gak-hero__background,
  .gak-hero__title,
  .gak-hero__eyebrow,
  .gak-hero__eyebrow-line,
  .gak-hero__title-mark,
  .gak-hero__details,
  .gak-hero__bottom,
  .gak-hero__badge,
  .gak-hero__orbit,
  .gak-hero::before {
    animation: none !important;
  }

  .gak-hero__background {
    transform: scale(1.015);
    filter: saturate(1.18) brightness(1.22) contrast(1.04);
  }

  .gak-hero__button,
  .gak-hero__button::after,
  .gak-hero__button-icon,
  .gak-hero__scroll-line,
  .gak-hero__trust-icon { transition: none !important; }
}

@media (prefers-contrast: more) {
  .gak-hero__overlay {
    background:
      linear-gradient(94deg, rgba(4, 16, 31, .97) 0%, rgba(7, 26, 58, .9) 55%, rgba(10, 34, 66, .7) 100%),
      linear-gradient(0deg, rgba(4, 16, 31, .8), transparent 50%);
  }
  .gak-hero__description,
  .gak-hero__services,
  .gak-hero__scroll,
  .gak-hero__trust small { color: #fff; }
  .gak-hero__bottom { border-top-color: rgba(255, 255, 255, .55); }
}

@media print {
  .gak-hero {
    min-height: auto;
    height: auto;
    color: #000;
    background: #fff !important;
  }
  .gak-hero__background,
  .gak-hero::before,
  .gak-hero::after,
  .gak-hero__overlay,
  .gak-hero__badge,
  .gak-hero__orbit,
  .gak-hero__scroll { display: none !important; }

  .gak-hero__container { padding: 8mm 0; }
  .gak-hero__title { color: #000; text-shadow: none; font-size: 30pt; }
  .gak-hero__title em,
  .gak-hero__title .hero-ice { -webkit-text-fill-color: #000; color: #000; }
  .gak-hero__description,
  .gak-hero__services,
  .gak-hero__trust small { color: #333; }
  .gak-hero__eyebrow { color: #555; }
  .gak-hero__bottom { border-top-color: #bbb; }
}
