/* ==========================================================================
   KFS — page hero imagery + footer
   Load AFTER styles.css:  <link rel="stylesheet" href="imagery.css">
   ========================================================================== */

:root{
  --kfs-ink:   #09142a;               /* footer navy, sampled from the skyline image */
  --kfs-ink-2: #0f1f3f;
  --kfs-gold:  var(--gold, #c9a24a);
  --kfs-ivory: #f6f1e6;
  --kfs-mist:  rgba(246,241,230,.72);
}

/* --------------------------------------------------------------------------
   1. PAGE HEROES  (.pagehead on every inner page)
   Image sits right; a navy wash holds the left so the headline always reads.
   -------------------------------------------------------------------------- */
.pagehead{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(380px, 52vh, 560px);
  display: flex;
  align-items: center;
  padding-block: clamp(72px, 10vw, 132px) clamp(64px, 8vw, 112px);
  background-color: var(--kfs-ink);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 70% center;
  color: var(--kfs-ivory);
}
.pagehead::before{               /* legibility wash */
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(9,20,42,.94) 0%,
      rgba(9,20,42,.86) 34%,
      rgba(9,20,42,.45) 62%,
      rgba(9,20,42,.12) 100%),
    linear-gradient(0deg, rgba(9,20,42,.55) 0%, rgba(9,20,42,0) 40%);
}
.pagehead::after{                /* thin gold edge where the hero meets the page */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--kfs-gold), rgba(201,162,74,0) 70%);
}
.pagehead > .wrap{ position: relative; width: 100%; }
.pagehead .h-xl,
.pagehead .lede,
.pagehead .crumb,
.pagehead .pagehead__eyebrow{ max-width: 34ch; }
.pagehead .lede{ max-width: 54ch; color: var(--kfs-mist); }
.pagehead .h-xl{ color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.pagehead .pagehead__eyebrow{ color: var(--kfs-gold); }
.pagehead .crumb,
.pagehead .crumb span{ color: rgba(246,241,230,.6); }
.pagehead .crumb a{ color: var(--kfs-ivory); text-decoration-color: rgba(201,162,74,.6); }
.pagehead .crumb a:hover{ color: var(--kfs-gold); }

/* buttons on the dark hero */
.pagehead .btn--primary{ background: var(--kfs-gold); border-color: var(--kfs-gold); color: var(--kfs-ink); }
.pagehead .btn--primary:hover{ background: #dcb65c; border-color: #dcb65c; }
.pagehead .btn--ghost{ background: transparent; border-color: rgba(246,241,230,.55); color: var(--kfs-ivory); }
.pagehead .btn--ghost:hover{ border-color: var(--kfs-gold); color: var(--kfs-gold); }

/* per-page image (body class) */
.pg-about        .pagehead{ background-image: url("assets/hero/about.webp");        background-position: 80% center; }
.pg-businesses   .pagehead{ background-image: url("assets/hero/businesses.webp");   background-position: 75% center; }
.pg-case-studies .pagehead{ background-image: url("assets/hero/case-studies.webp"); background-position: 65% 60%; }
.pg-contact      .pagehead{ background-image: url("assets/hero/contact.webp");      background-position: 80% 40%; }
.pg-developers   .pagehead{ background-image: url("assets/hero/developers.webp");   background-position: 70% 45%; }
.pg-insights     .pagehead{ background-image: url("assets/hero/insights.webp");     background-position: 70% center; }
.pg-solutions    .pagehead{ background-image: url("assets/hero/solutions.webp");    background-position: 70% 35%; }

/* phones: lighter files, full-width wash */
@media (max-width: 760px){
  .pagehead{ min-height: 0; padding-block: 64px 56px; }
  .pagehead::before{
    background: linear-gradient(180deg, rgba(9,20,42,.78) 0%, rgba(9,20,42,.9) 100%);
  }
  .pg-about        .pagehead{ background-image: url("assets/hero/about-800.webp"); }
  .pg-businesses   .pagehead{ background-image: url("assets/hero/businesses-800.webp"); }
  .pg-case-studies .pagehead{ background-image: url("assets/hero/case-studies-800.webp"); }
  .pg-contact      .pagehead{ background-image: url("assets/hero/contact-800.webp"); }
  .pg-developers   .pagehead{ background-image: url("assets/hero/developers-800.webp"); }
  .pg-insights     .pagehead{ background-image: url("assets/hero/insights-800.webp"); }
  .pg-solutions    .pagehead{ background-image: url("assets/hero/solutions-800.webp"); }
}

/* --------------------------------------------------------------------------
   2. FOOTER — Sea Link skyline dissolving into navy
   -------------------------------------------------------------------------- */
.foot.foot--sky{
  position: relative;
  isolation: isolate;
  background: var(--kfs-ink);
  color: var(--kfs-mist);
  padding: 0 0 max(24px, env(safe-area-inset-bottom, 0px));
  border-top: 0;
}
.foot__sky{
  height: clamp(150px, 22vw, 300px);
  background: url("assets/hero/footer.webp") center 55% / cover no-repeat;
  position: relative;
}
.foot__sky::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(9,20,42,.15) 0%,
    rgba(9,20,42,.05) 35%,
    rgba(9,20,42,.7) 78%,
    var(--kfs-ink) 100%);
}
@media (max-width: 760px){
  .foot__sky{ background-image: url("assets/hero/footer-800.webp"); }
}

.foot--sky .foot__grid{
  display: grid;
  grid-template-columns: 1.35fr .8fr 1.1fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(-40px, -3vw, -16px);   /* let the brand block rise into the fade */
  position: relative;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,241,230,.12);
}
.foot--sky h4{
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #fff;
  margin: 0 0 18px;
  padding-bottom: 12px;
  position: relative;
}
.foot--sky h4::after{
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--kfs-gold);
}
.foot--sky ul{ list-style: none; margin: 0; padding: 0; }
.foot--sky li{ margin: 0; }
.foot--sky .foot__links a{
  display: inline-block;
  padding: 5px 0;
  color: var(--kfs-mist);
  text-decoration: none;
  font-size: .95rem;
  line-height: 1.35;
  transition: color .15s ease;
}
.foot--sky .foot__links a:hover,
.foot--sky .foot__links a:focus-visible{ color: var(--kfs-gold); }
.foot--sky a:focus-visible{ outline: 2px solid var(--kfs-gold); outline-offset: 3px; border-radius: 2px; }

/* brand column */
.foot--sky .foot__logo img{ max-width: 220px; height: auto; display: block; }
.foot--sky .foot__lines{ margin: 18px 0 0; font-size: .92rem; line-height: 1.6; max-width: 34ch; }
.foot--sky .foot__tag{
  margin: 22px 0 0;
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--kfs-gold);
  max-width: 28ch;
  padding-left: 14px;
  border-left: 2px solid rgba(201,162,74,.5);
}

/* contact column */
.foot__contact li{
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: .95rem;
}
.foot__contact a{ color: var(--kfs-ivory); text-decoration: none; }
.foot__contact a:hover{ color: var(--kfs-gold); }
.foot__contact small{ display: block; color: rgba(246,241,230,.5); font-size: .78rem; }
.foot__ico{
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(201,162,74,.45);
  color: var(--kfs-gold);
}
.foot__ico svg{ width: 17px; height: 17px; }

.foot__social{ display: flex; gap: 10px; margin-top: 18px; }
.foot__social a{
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff;
  transition: transform .15s ease, filter .15s ease;
}
.foot__social a:hover{ transform: translateY(-2px); filter: brightness(1.08); }
.foot__social .is-wa{ background: #25d366; }
.foot__social .is-li{ background: #0a66c2; }
.foot__social svg{ width: 20px; height: 20px; }

/* legal + bottom bar */
.foot--sky .foot__legal{
  margin: 28px 0 0;
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(246,241,230,.5);
  max-width: 110ch;
}
.foot--sky .foot__bar{
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(246,241,230,.1);
  font-size: .85rem;
  color: rgba(246,241,230,.6);
}
.foot--sky .foot__bar nav{ display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot--sky .foot__bar a{ color: rgba(246,241,230,.75); text-decoration: none; }
.foot--sky .foot__bar a:hover{ color: var(--kfs-gold); }

@media (max-width: 1024px){
  .foot--sky .foot__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .foot--sky .foot__grid{ grid-template-columns: 1fr; margin-top: -12px; }
  .foot--sky .foot__links--solutions{ columns: 2; column-gap: 20px; }
  .foot--sky .foot__links--solutions li{ break-inside: avoid; }
  .foot--sky .foot__bar{ flex-direction: column; }
  body{ padding-bottom: 72px; }          /* keeps the bar clear of the floating WhatsApp button */
}

@media (prefers-reduced-motion: reduce){
  .foot__social a, .foot--sky .foot__links a{ transition: none; }
}
