/* =====================================================================
   Solar Harbour site header
   Loaded by header.php. Upload to: assets/css/sh-header.css
   Colours: navy #18457b, gold #f8bc2d and white. Every class starts with
   "sh-hd" so nothing here clashes with the theme.
   ===================================================================== */

/* page-wide: in-page links land below the fixed header, and the page
   doesn't scroll behind the open phone menu */
html { scroll-padding-top: 84px; }
html.sh-hd-lock, html.sh-hd-lock body { overflow: hidden; }
#sh-main { display: block; height: 0; outline: none; }

.sh-hd {
  --sh-hd-navy: #18457b;
  --sh-hd-gold: #f8bc2d;
  --sh-hd-navy-rgb: 24, 69, 123;
  --sh-hd-gold-rgb: 248, 188, 45;
  --sh-hd-head: var(--font-primary, "Exo"), system-ui, sans-serif;
  --sh-hd-text: var(--font-secondary, "Albert Sans"), system-ui, -apple-system, "Segoe UI", sans-serif;
  --sh-hd-h: 88px;              /* main bar height */
  --sh-hd-h-stuck: 68px;        /* main bar height once it sticks to the top */
  --sh-hd-logo: 50px;
  --sh-hd-logo-stuck: 42px;
  --sh-hd-ease: cubic-bezier(.16, .8, .24, 1);
  position: relative; z-index: 1000; display: block; margin: 0; padding: 0;
  font-family: var(--sh-hd-text); font-size: 16px; line-height: 1.4; font-weight: 400; text-align: left;
  color: var(--sh-hd-navy);
}
.sh-hd *, .sh-hd *::before, .sh-hd *::after { box-sizing: border-box; }
/* keep the theme's global p / ul / li / link / button styles out (zero-specificity, so the rules below still win) */
:where(.sh-hd) p { margin: 0; }
:where(.sh-hd) ul, :where(.sh-hd) ul li { margin: 0; padding: 0; list-style: none; font-size: inherit; line-height: inherit; color: inherit; }
:where(.sh-hd) a { text-decoration: none; color: inherit; }
:where(.sh-hd) button { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; -webkit-appearance: none; appearance: none; }
:where(.sh-hd) svg { display: block; }
.sh-hd [hidden] { display: none !important; }
.sh-hd a:focus-visible, .sh-hd button:focus-visible { outline: 3px solid var(--sh-hd-gold); outline-offset: 2px; border-radius: 8px; }
.sh-hd .sh-hd__vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sh-hd__wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.sh-hd__skip {
  position: absolute; left: 16px; top: 0; z-index: 3000; padding: 10px 16px; border-radius: 0 0 10px 10px;
  background: var(--sh-hd-gold); color: var(--sh-hd-navy); font-weight: 700; transform: translateY(-120%);
}
.sh-hd__skip:focus { transform: none; }

/* ================= top strip ================= */
.sh-hd__top { background: var(--sh-hd-navy); color: rgba(255, 255, 255, .84); font-size: 13.5px; line-height: 1.3; }
.sh-hd__top .sh-hd__wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.sh-hd__facts, .sh-hd__reach { display: flex; align-items: center; gap: 28px; }
.sh-hd__fact { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sh-hd__fact svg { flex: none; width: 15px; height: 15px; color: var(--sh-hd-gold); }
.sh-hd__fact--link, .sh-hd__fact--link:visited { color: #ffffff; transition: color .15s ease; }
.sh-hd__fact--link:hover { color: var(--sh-hd-gold); }
.sh-hd__top .sh-hd__social { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .2); }
.sh-hd__social { display: flex; align-items: center; gap: 4px; }
.sh-hd__social a, .sh-hd__social a:visited {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #ffffff;
  transition: background-color .2s ease, color .2s ease;
}
.sh-hd__social a:hover { background: var(--sh-hd-gold); color: var(--sh-hd-navy); }
.sh-hd .sh-hd__brand-ico {                       /* brand icons from the free Font Awesome set, drawn inline and coloured by the link */
  display: block !important; width: 14px; height: 14px; line-height: 0; opacity: 1; visibility: visible;
}
.sh-hd .sh-hd__brand-ico svg { display: block !important; width: 100% !important; height: 100% !important; fill: currentColor; }

/* ================= main bar ================= */
.sh-hd__slot { height: var(--sh-hd-h); }        /* keeps the bar's space in the page once it sticks */
.sh-hd__bar {
  position: relative; height: var(--sh-hd-h); background: #ffffff;
  border-bottom: 1px solid rgba(var(--sh-hd-navy-rgb), .1);
  transition: height .35s var(--sh-hd-ease), box-shadow .35s ease;
}
.sh-hd.is-stuck .sh-hd__bar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--sh-hd-h-stuck);
  box-shadow: 0 12px 30px -20px rgba(var(--sh-hd-navy-rgb), .55);
}
.sh-hd__bar .sh-hd__wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.sh-hd__logo { flex: none; display: block; }
.sh-hd__logo img { display: block; height: var(--sh-hd-logo); width: auto; max-width: 240px; transition: height .35s var(--sh-hd-ease); }
.sh-hd.is-stuck .sh-hd__bar .sh-hd__logo img { height: var(--sh-hd-logo-stuck); }

/* ---- menu ---- */
.sh-hd__nav { flex: 1 1 auto; align-self: stretch; display: flex; justify-content: center; min-width: 0; }
.sh-hd__menu { display: flex; align-items: stretch; height: 100%; }
.sh-hd__item { position: relative; display: flex; align-items: center; }
.sh-hd__link, .sh-hd__link:visited {
  display: inline-flex; align-items: center; gap: 5px; height: 100%; padding: 0 13px;
  font-family: var(--sh-hd-head); font-weight: 600; font-size: 15.5px; line-height: 1; white-space: nowrap;
  color: rgba(var(--sh-hd-navy-rgb), .82); transition: color .15s ease;
}
.sh-hd__item:hover > .sh-hd__link, .sh-hd__item.is-open > .sh-hd__link, .sh-hd__item.is-current > .sh-hd__link { color: var(--sh-hd-navy); }
.sh-hd__chev { width: 14px; height: 14px; flex: none; transition: transform .25s var(--sh-hd-ease); }
.sh-hd__item.is-open .sh-hd__chev { transform: rotate(180deg); }
.sh-hd__caret {                                  /* the arrow beside "Services" opens its pages; the word goes to services.php */
  display: grid; place-items: center; width: 26px; height: 26px; margin-left: -10px; margin-right: 4px; border-radius: 50%;
  color: rgba(var(--sh-hd-navy-rgb), .82);
}
.sh-hd__caret:hover { background: rgba(var(--sh-hd-navy-rgb), .07); color: var(--sh-hd-navy); }
/* a small gold sun rises from the bottom edge under the page you're on, and under the item you point at */
.sh-hd__item::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 22px; height: 11px; margin-left: -11px; pointer-events: none;
  background: radial-gradient(circle at 50% 100%, var(--sh-hd-gold) 10.4px, rgba(var(--sh-hd-gold-rgb), 0) 11px) no-repeat 0 0 / 22px 22px;
  transition: background-position .4s var(--sh-hd-ease);
}
.sh-hd__item:hover::after, .sh-hd__item.is-open::after, .sh-hd__item.is-current::after { background-position: 0 -11px; }

/* ---- dropdowns ---- */
.sh-hd__dd {
  position: absolute; top: 100%; left: -8px; z-index: 10; padding-top: 10px; width: 330px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .25s var(--sh-hd-ease), visibility 0s linear .25s;
}
.sh-hd__item.is-open > .sh-hd__dd,
.sh-hd:not(.js) .sh-hd__item:hover > .sh-hd__dd { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .25s var(--sh-hd-ease), visibility 0s; }
.sh-hd__dd--wide { left: 50%; width: 760px; margin-left: -380px; }
.sh-hd__card {
  padding: 10px; border-radius: 16px; background: #ffffff;
  border: 1px solid rgba(var(--sh-hd-navy-rgb), .1);
  box-shadow: 0 30px 60px -30px rgba(var(--sh-hd-navy-rgb), .5), 0 2px 6px rgba(var(--sh-hd-navy-rgb), .05);
}
.sh-hd__dd--wide .sh-hd__card { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 10px; }
.sh-hd__dd--wide .sh-hd__dd-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.sh-hd__dd-link, .sh-hd__dd-link:visited { display: block; padding: 11px 14px; border-radius: 10px; transition: background-color .15s ease; }
.sh-hd__dd-link strong { display: block; font-family: var(--sh-hd-head); font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--sh-hd-navy); }
.sh-hd__dd-link small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: rgba(var(--sh-hd-navy-rgb), .68); }
.sh-hd__dd-link:hover { background: rgba(var(--sh-hd-navy-rgb), .05); }
.sh-hd__dd-link[aria-current="page"] { background: rgba(var(--sh-hd-gold-rgb), .18); }
.sh-hd__promo {                                  /* the call-to-action card in the Services menu */
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 20px 20px; border-radius: 12px; background: var(--sh-hd-navy); color: #ffffff;
}
.sh-hd__promo::after {                           /* a sun peeking in from the corner */
  content: ""; position: absolute; z-index: -1; right: -40px; bottom: -40px; width: 92px; height: 92px; border-radius: 50%;
  background: var(--sh-hd-gold); box-shadow: 0 0 0 12px rgba(var(--sh-hd-gold-rgb), .2), 0 0 0 26px rgba(var(--sh-hd-gold-rgb), .08);
}
.sh-hd__promo-title { font-family: var(--sh-hd-head); font-weight: 700; font-size: 18px; line-height: 1.2; }
.sh-hd__promo-text { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.sh-hd__promo-call, .sh-hd__promo-call:visited { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; font-family: var(--sh-hd-head); font-weight: 700; font-size: 17px; color: #ffffff; }
.sh-hd__promo-call svg { width: 17px; height: 17px; color: var(--sh-hd-gold); }
.sh-hd__promo-call:hover { color: var(--sh-hd-gold); }
.sh-hd__promo .sh-hd__btn { align-self: flex-start; margin-top: auto; min-height: 44px; padding: 0 18px; font-size: 14.5px; }

/* ---- phone, quote and menu button ---- */
.sh-hd__actions { flex: none; display: flex; align-items: center; gap: 18px; margin-left: auto; }
.sh-hd__call, .sh-hd__call:visited { display: flex; align-items: center; gap: 10px; color: var(--sh-hd-navy); }
.sh-hd__call-ico {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(var(--sh-hd-navy-rgb), .22); color: var(--sh-hd-navy);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.sh-hd__call-ico svg { width: 18px; height: 18px; }
.sh-hd__call:hover .sh-hd__call-ico { background: var(--sh-hd-navy); border-color: var(--sh-hd-navy); color: #ffffff; }
.sh-hd__call:hover .sh-hd__call-ico svg { animation: sh-hd-ring .5s ease 2; }
.sh-hd__call-text small { display: block; font-size: 12.5px; line-height: 1.2; color: rgba(var(--sh-hd-navy-rgb), .7); }
.sh-hd__call-text strong { display: block; font-family: var(--sh-hd-head); font-weight: 700; font-size: 18px; line-height: 1.2; white-space: nowrap; }
@keyframes sh-hd-ring { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }

.sh-hd__btn, .sh-hd__btn:visited {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--sh-hd-head); font-weight: 700; font-size: 15.5px; line-height: 1; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.sh-hd__btn svg { width: 17px; height: 17px; flex: none; }
.sh-hd__btn--gold, .sh-hd__btn--gold:visited { background: var(--sh-hd-gold); color: var(--sh-hd-navy); box-shadow: 0 10px 22px -12px rgba(var(--sh-hd-gold-rgb), .95); }
.sh-hd__btn--gold::after {                       /* a sheen sweeps across on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .65), rgba(255, 255, 255, 0));
  transform: skewX(-20deg); transition: left .6s ease;
}
.sh-hd__btn--gold:hover::after { left: 120%; }
.sh-hd__btn--gold:hover { color: var(--sh-hd-navy); transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(var(--sh-hd-gold-rgb), 1); }
.sh-hd__btn--line, .sh-hd__btn--line:visited { border-color: var(--sh-hd-navy); background: #ffffff; color: var(--sh-hd-navy); }
.sh-hd__btn--line:hover { background: var(--sh-hd-navy); color: #ffffff; }

.sh-hd__menu-btn {
  display: none; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--sh-hd-navy); color: #ffffff; transition: background-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.sh-hd__menu-btn svg { width: 20px; height: 15px; }
.sh-hd__menu-btn:hover { background: var(--sh-hd-gold); color: var(--sh-hd-navy); }

/* ================= phone and tablet menu ================= */
.sh-hd__scrim { position: fixed; inset: 0; z-index: 2000; background: rgba(var(--sh-hd-navy-rgb), .55); opacity: 0; transition: opacity .35s ease; }
.sh-hd__panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2001; width: min(420px, 100%);
  display: flex; flex-direction: column; background: #ffffff;
  box-shadow: -24px 0 60px -30px rgba(var(--sh-hd-navy-rgb), .6);
  transform: translateX(100%); transition: transform .4s var(--sh-hd-ease);
}
.sh-hd.is-menu-open .sh-hd__scrim { opacity: 1; }
.sh-hd.is-menu-open .sh-hd__panel { transform: none; }
.sh-hd__panel-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: env(safe-area-inset-top, 0px) 16px 0 20px; border-bottom: 1px solid rgba(var(--sh-hd-navy-rgb), .1);
}
.sh-hd__panel-head .sh-hd__logo img { height: 38px; max-width: 200px; }
.sh-hd__close {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(var(--sh-hd-navy-rgb), .07); color: var(--sh-hd-navy); transition: background-color .2s ease, color .2s ease;
}
.sh-hd__close svg { width: 20px; height: 20px; }
.sh-hd__close:hover { background: var(--sh-hd-navy); color: #ffffff; }
.sh-hd__panel-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px 20px; }
.sh-hd__m-link, .sh-hd__m-link:visited {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 4px;
  border-bottom: 1px solid rgba(var(--sh-hd-navy-rgb), .09); text-align: left;
  font-family: var(--sh-hd-head); font-weight: 600; font-size: 18px; line-height: 1.2; color: var(--sh-hd-navy);
}
.sh-hd__m-toggle .sh-hd__chev { width: 18px; height: 18px; margin-left: auto; color: rgba(var(--sh-hd-navy-rgb), .7); }
.sh-hd__m-toggle[aria-expanded="true"] .sh-hd__chev { transform: rotate(180deg); }
/* the page you're on: a small gold sun before its name */
.sh-hd__m-link[aria-current="page"]::before, .sh-hd__m-toggle.is-current::before, .sh-hd__m-sub a[aria-current="page"]::before {
  content: ""; flex: none; width: 14px; height: 7px; border-radius: 14px 14px 0 0; background: var(--sh-hd-gold);
}
.sh-hd__m-sub { padding: 6px 0 12px 14px; border-bottom: 1px solid rgba(var(--sh-hd-navy-rgb), .09); }
.sh-hd__m-sub a, .sh-hd__m-sub a:visited {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  font-size: 16px; line-height: 1.3; color: rgba(var(--sh-hd-navy-rgb), .85);
}
.sh-hd__m-sub a:hover, .sh-hd__m-sub a[aria-current="page"] { color: var(--sh-hd-navy); font-weight: 600; }
.sh-hd__m-contact {                            /* email, hours and social at the end of the list, on a sunrise tint */
  display: flex; flex-direction: column; gap: 12px; margin-top: 22px; padding: 18px 16px; border-radius: 14px;
  background: linear-gradient(100deg, rgba(var(--sh-hd-navy-rgb), .08) 0%, rgba(var(--sh-hd-navy-rgb), .03) 45%, rgba(var(--sh-hd-gold-rgb), .22) 100%), #ffffff;
}
.sh-hd__m-fact, .sh-hd__m-fact:visited { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.3; color: var(--sh-hd-navy); }
.sh-hd__m-fact svg { flex: none; width: 17px; height: 17px; color: var(--sh-hd-navy); }
.sh-hd__panel-foot {                             /* the two main actions stay in reach */
  flex: none; display: flex; flex-direction: column; gap: 10px;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #ffffff; border-top: 1px solid rgba(var(--sh-hd-navy-rgb), .1);
  box-shadow: 0 -14px 28px -22px rgba(var(--sh-hd-navy-rgb), .5);
}
.sh-hd__panel-foot .sh-hd__btn { width: 100%; min-height: 48px; }
.sh-hd__social--panel { gap: 8px; margin-top: 2px; }
.sh-hd__social--panel a, .sh-hd__social--panel a:visited { width: 40px; height: 40px; border: 1.5px solid rgba(var(--sh-hd-navy-rgb), .25); color: var(--sh-hd-navy); }
.sh-hd__social--panel a:hover { border-color: var(--sh-hd-navy); background: var(--sh-hd-navy); color: #ffffff; }
.sh-hd .sh-hd__social--panel .sh-hd__brand-ico { width: 16px; height: 16px; }

/* ================= smaller screens ================= */
@media (max-width: 1365px) {
  .sh-hd__call-text small { display: none; }
  .sh-hd__link, .sh-hd__link:visited { padding: 0 11px; }
}
@media (max-width: 1279px) {
  .sh-hd__call-text { display: none; }          /* phone shows as an icon; the number is in its label */
  .sh-hd__bar .sh-hd__wrap { gap: 18px; }
  .sh-hd__actions { gap: 12px; }
}
@media (max-width: 1199px) {                     /* the main menu moves into the menu button */
  .sh-hd { --sh-hd-h: 80px; --sh-hd-h-stuck: 66px; --sh-hd-logo: 44px; --sh-hd-logo-stuck: 40px; }
  .sh-hd__nav { display: none; }
  .sh-hd__menu-btn { display: grid; }
  .sh-hd__call-text { display: block; }
}
@media (max-width: 991px) {
  .sh-hd__top { display: none; }
  .sh-hd { --sh-hd-h: 72px; --sh-hd-h-stuck: 64px; --sh-hd-logo: 42px; --sh-hd-logo-stuck: 38px; }
  html { scroll-padding-top: 76px; }
}
@media (max-width: 767px) {
  .sh-hd__wrap { padding: 0 16px; }
  .sh-hd__call-text { display: none; }
  .sh-hd__call-ico { width: 44px; height: 44px; }
  .sh-hd__quote { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
  .sh-hd__actions { gap: 10px; }
  .sh-hd { --sh-hd-logo: 38px; --sh-hd-logo-stuck: 36px; }
  .sh-hd__logo img { max-width: 168px; }
}
@media (max-width: 479px) {
  .sh-hd__quote { display: none; }              /* it's in the menu, and the phone button stays */
}
@media (prefers-reduced-motion: reduce) {
  .sh-hd *, .sh-hd *::before, .sh-hd *::after { animation: none !important; transition: none !important; }
}
