/* Kingswell Publishing
   nav, footer, page-wide reduced motion
   Edit this file for the header, the footer and global motion rules. Design tokens live in tokens.css. */

/* ---------- header: logo left, floating frosted pill right ---------- */
/* a fixed, full-width strip lined up with .wrap, so the logo sits on the
   content's left edge and the pill on its right edge. The strip itself lets
   clicks through; only the logo and the pill catch them. */
.site-head{position:fixed;top:16px;left:0;right:0;z-index:900;pointer-events:none;}
.site-head__in{
  max-width:1560px;margin:0 auto;padding-inline:var(--gutter);
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.site-head__in > *{pointer-events:auto;}

.nav{
  position:relative;
  display:flex;align-items:center;gap:clamp(8px,1.6vw,22px);
  padding:9px 12px;
  max-width:100%;
  background:rgba(9,13,15,.42);
  -webkit-backdrop-filter:blur(16px) saturate(1.5);
  backdrop-filter:blur(16px) saturate(1.5);
  border-radius:999px;
  color:#fff;
  box-shadow:0 16px 44px -18px rgba(7,33,31,.4), inset 0 0 0 1px rgba(255,255,255,.12);
}
/* no backdrop-filter support: fall back to a more solid ground so text still reads */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .nav{background:rgba(9,13,15,.82);}
}
/* the section-inversion class + no-gsap fallback are no longer needed:
   the pill carries its own ground on every page */
.nav.is-light,
.no-gsap .nav,
body.page-flat .nav{color:#fff;text-shadow:none;mix-blend-mode:normal;}
body.page-flat{background:var(--paper);}

.nav__home{
  flex:0 0 auto;
  display:flex;align-items:center;
  transition:opacity .3s var(--ease-out-expo);
}
.nav__home img{height:clamp(36px,3.4vw,48px);width:auto;display:block;
  filter:drop-shadow(0 4px 12px rgba(7,33,31,.25));}   /* holds up on both the dark hero and the paper sections */
.nav__home:hover{opacity:.8;}

.nav__links{display:flex;align-items:center;gap:4px;padding-inline:8px;font-size:14.5px;}
.nav__links a{
  padding:9px 16px;border-radius:999px;color:rgba(255,255,255,.82);
  transition:color .3s var(--ease-out-expo), background .3s var(--ease-out-expo);
}
.nav__links a:hover{color:#fff;background:rgba(255,255,255,.10);}

.nav__cta{
  flex:0 0 auto;
  background:#fff;color:var(--ink);
  padding:11px 20px;border-radius:999px;
  font-size:14px;font-weight:500;white-space:nowrap;
  transition:background .3s var(--ease-out-expo), transform .3s var(--ease-out-expo);
}
.nav__cta:hover{background:var(--mint);transform:translateY(-1px);}

/* phone, just left of the CTA */
.nav__phone{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:10px;
  padding:4px 6px 4px 4px;border-radius:999px;
  font-size:14.5px;font-weight:500;color:#fff;white-space:nowrap;
  transition:color .3s var(--ease-out-expo);
}
.nav__phone-ic{
  display:grid;place-items:center;width:32px;height:32px;border-radius:50%;
  background:var(--mint);color:var(--ink);
  transition:transform .3s var(--ease-out-expo);
}
.nav__phone:hover{color:var(--mint);}
.nav__phone:hover .nav__phone-ic{transform:rotate(-12deg) scale(1.06);}
/* phones: icon only, the number would crowd the pill */
@media (max-width:820px){ .nav__phone-t{display:none;} .nav__phone{padding:0;} }

/* hamburger - hidden on desktop, where .nav__links already shows every link */
.nav__burger{
  display:none;flex:0 0 auto;width:34px;height:34px;padding:0;
  border:0;background:none;cursor:pointer;
  align-items:center;justify-content:center;gap:4px;flex-direction:column;
}
.nav__burger span{
  display:block;width:17px;height:1.5px;border-radius:1px;background:#fff;
  transition:transform .3s var(--ease-out-expo), opacity .3s var(--ease-out-expo);
}
.nav.is-open .nav__burger span:nth-child(1){transform:translateY(5.5px) rotate(45deg);}
.nav.is-open .nav__burger span:nth-child(2){opacity:0;}
.nav.is-open .nav__burger span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg);}

/* the panel the hamburger opens - carries the links that no longer fit the pill */
.nav__panel{                             /* drops from under the pill, on the right */
  position:fixed;top:74px;right:var(--gutter);z-index:899;
  width:calc(100vw - 24px);max-width:300px;
  display:none;flex-direction:column;gap:2px;padding:10px;
  background:rgba(9,13,15,.88);
  -webkit-backdrop-filter:blur(18px) saturate(1.5);
  backdrop-filter:blur(18px) saturate(1.5);
  border-radius:20px;
  box-shadow:0 24px 60px -20px rgba(7,33,31,.55), inset 0 0 0 1px rgba(255,255,255,.12);
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translateY(-10px);
  transition:opacity .3s var(--ease-out-expo), transform .3s var(--ease-out-expo), visibility .3s;
}
.nav__panel a{
  padding:13px 16px;border-radius:12px;
  color:rgba(255,255,255,.85);font-size:15px;
  transition:background .25s, color .25s;
}
.nav__panel a:hover{background:rgba(255,255,255,.09);color:#fff;}
.nav__panel.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .nav__panel{background:rgba(9,13,15,.97);}
}

@media (max-width:820px){
  .nav{gap:6px;padding:8px 10px;}
  .nav__links{display:none;}
  .nav__burger{display:flex;}
  .nav__panel{display:flex;}
}


/* ============================================================
   9. FOOTER  (illustrated lake-and-hills scene, dusk teal — on brand)
   ============================================================ */
.foot{
  position:relative;overflow:hidden;
  padding-top:clamp(76px,9vw,130px);
  background-color:var(--ink);                         /* shows while the image loads / if it fails */
  background-image:
    linear-gradient(180deg, rgba(7,33,31,.30) 0%, rgba(7,33,31,.58) 45%, rgba(7,33,31,.90) 100%),
    url("../assets/footer-scene.jpg");
  background-position:center top, center bottom;
  background-size:100% 100%, cover;
  background-repeat:no-repeat, no-repeat;
  text-shadow:0 1px 6px rgba(7,33,31,.4);                /* keeps type crisp over the busy artwork */
}
/* with the form above, the scene runs taller, so let the sky breathe a
   little more before the scrim darkens toward the links */
.foot--form{
  background-image:
    linear-gradient(180deg, rgba(7,33,31,.55) 0%, rgba(7,33,31,.30) 30%, rgba(7,33,31,.62) 62%, rgba(7,33,31,.94) 100%),
    url("../assets/footer-scene.jpg");
}

/* ---- pre-footer contact form ---- */
.pf{
  display:grid;grid-template-columns:5fr 7fr;gap:clamp(32px,5vw,96px);
  align-items:start;
  padding-bottom:clamp(64px,8vw,120px);margin-bottom:clamp(56px,7vw,96px);
  border-bottom:1px solid rgba(234,244,241,.18);
  scroll-margin-top:110px;
}
@media (max-width:900px){.pf{grid-template-columns:1fr;}}
.pf__eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;
  color:var(--mint);margin-bottom:clamp(16px,2vw,24px);
}
.pf__eyebrow::before{content:"";width:28px;height:1px;background:currentColor;}
.pf__h{font-size:clamp(34px,4.4vw,68px);max-width:11ch;}
.pf__note{margin-top:clamp(18px,2vw,26px);max-width:42ch;color:rgba(234,244,241,.72);font-size:15.5px;}

.pf__direct{margin-top:clamp(28px,3vw,40px);display:grid;gap:16px;}
.pf__direct li{display:flex;align-items:center;gap:14px;font-size:15px;color:var(--paper);}
.pf__direct small{display:block;font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:rgba(234,244,241,.5);margin-bottom:2px;}
.pf__direct a:hover{color:var(--mint);}
.pf__ic{
  flex:0 0 auto;width:40px;height:40px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(245,189,2,.14);color:var(--mint);
  border:1px solid rgba(245,189,2,.35);
}

/* frosted card: the lake stays visible through it */
.pf__card{
  text-shadow:none;
  padding:clamp(24px,3vw,44px);border-radius:22px;
  background:rgba(7,33,31,.55);
  -webkit-backdrop-filter:blur(18px) saturate(1.3);
  backdrop-filter:blur(18px) saturate(1.3);
  border:1px solid rgba(234,244,241,.14);
  box-shadow:0 40px 80px -40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.pf__form{display:grid;gap:clamp(16px,1.6vw,22px);}
.pf__row{display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,1.6vw,22px);}
@media (max-width:600px){.pf__row{grid-template-columns:1fr;}}
.pf__field{display:grid;gap:8px;}
.pf__field label{font-size:13px;font-weight:500;color:rgba(234,244,241,.78);}
.pf__field label span{color:var(--mint);margin-left:2px;}
.pf__field input,.pf__field select,.pf__field textarea{
  width:100%;font:inherit;font-size:15px;color:var(--paper);
  background:rgba(234,244,241,.05);
  border:1px solid rgba(234,244,241,.18);border-radius:12px;
  padding:13px 16px;
  transition:border-color .3s var(--ease-out-expo), background .3s var(--ease-out-expo), box-shadow .3s var(--ease-out-expo);
}
.pf__field textarea{resize:vertical;min-height:120px;line-height:1.55;}
.pf__field select{
  appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:42px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F5BD02' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;
}
.pf__field select option{color:var(--ink);background:#fff;}
.pf__field ::placeholder{color:rgba(234,244,241,.38);}
.pf__field input:hover,.pf__field select:hover,.pf__field textarea:hover{border-color:rgba(234,244,241,.32);}
.pf__field input:focus,.pf__field select:focus,.pf__field textarea:focus{
  outline:none;border-color:var(--mint);background:rgba(234,244,241,.08);
  box-shadow:0 0 0 4px rgba(245,189,2,.14);
}
.pf__field.is-invalid input,.pf__field.is-invalid select,.pf__field.is-invalid textarea{border-color:#FF8A7A;}
.pf__error{font-size:12.5px;color:#FFB4A8;}
.pf__trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}

.pf__foot{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:4px;}
.pf__legal{font-size:12.5px;color:rgba(234,244,241,.5);}
.pf__legal a{color:rgba(234,244,241,.8);border-bottom:1px solid rgba(234,244,241,.3);}
.pf__submit{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--mint);color:var(--ink);border:0;
  padding:15px 26px;border-radius:999px;
  font:inherit;font-size:15px;font-weight:600;
  transition:background .3s var(--ease-out-expo), transform .3s var(--ease-out-expo);
}
.pf__submit span{transition:transform .3s var(--ease-out-expo);}
.pf__submit:hover{background:#fff;transform:translateY(-1px);}
.pf__submit:hover span{transform:translateX(3px);}

.pf__sent{display:grid;justify-items:start;gap:18px;padding-block:clamp(20px,3vw,40px);}
.pf__sent-ic{
  width:56px;height:56px;border-radius:50%;display:grid;place-items:center;
  background:var(--mint);color:var(--ink);font-size:24px;font-weight:700;
}
.pf__sent p{font-size:clamp(17px,1.4vw,21px);line-height:1.55;color:var(--paper);max-width:36ch;}

.foot__grid{display:grid;grid-template-columns:4fr 8fr;gap:clamp(28px,4vw,72px);padding-bottom:clamp(50px,6vw,90px);}
@media (max-width:900px){.foot__grid{grid-template-columns:1fr;}}
.foot__cols{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;font-size:14px;}
@media (max-width:600px){.foot__cols{grid-template-columns:1fr 1fr;}}
.foot__cols h4{font-size:12.5px;color:rgba(234,244,241,.55);font-weight:400;margin-bottom:14px;}
.foot__cols li{margin-bottom:9px;color:rgba(234,244,241,.8);}
.foot a{transition:color .35s var(--ease-out-expo);}
.foot a:hover{color:#fff;}
.foot__icon{
  height:24px;width:24px;display:inline-block;vertical-align:-6px;
  border-radius:0;transition:transform .35s var(--ease-out-expo);
}
.foot a:hover .foot__icon{transform:scale(1.12);}
/* icon-only rows (social links) sit in one line instead of stacking like the text rows */
.foot__cols li:has(.foot__icon){display:inline-block;margin:0 14px 9px 0;}
.foot__logo{width:100%;max-width:340px;height:auto;}
/* business + mailing addresses, just above the copyright line */
.foot__addr{display:flex;flex-wrap:wrap;gap:18px clamp(28px,5vw,72px);margin-bottom:clamp(22px,3vw,34px);}
.foot__addr address{font-style:normal;font-size:13.5px;line-height:1.6;color:rgba(234,244,241,.78);}
.foot__addr small{display:block;margin-bottom:4px;font-size:11px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:#22A08D;}   /* the brighter teal used on other dark bands */
.foot__legal{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;
  padding-top:22px;border-top:1px solid rgba(234,244,241,.22);font-size:12.5px;color:rgba(234,244,241,.55);}


/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important;transition-duration:.001ms !important;}
  .cursor,.cursor-follow{display:none !important;}
  .line > span{transform:none !important;filter:none !important;opacity:1 !important;}
}
