/* A freestanding logo and rounded navigation, inspired by the supplied reference. */
:root { --site-header-height: 118px; }
body > .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}
/* The initial header scrolls away; only the upward-scroll state is revealed. */
body > .site-header.is-floating {
  position: fixed;
  transform: translateY(-110%);
  visibility: hidden;
  pointer-events: none;
}
body > .site-header.is-floating.is-visible {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
body > .site-header.is-floating.is-animated {
  transition: transform .38s cubic-bezier(.22,1,.36,1), visibility .38s;
}
body.menu-open > .site-header { background: #fff; }
main:not(.page-index) { padding-top: var(--site-header-height); }
.page-news { background: linear-gradient(#f5f8fb, #f5f8fb) top / 100% var(--site-header-height) no-repeat; }
.page-index .showcase-main {
  padding-top: var(--site-header-height);
  min-height: 100svh;
}
.site-header .header-inner {
  width: min(1720px, calc(100% - 64px));
  height: auto;
  min-height: 118px;
  padding: 22px 0;
  gap: 24px;
}
.site-header .brand { position: relative; width: 200px; transform: none; }
.site-index .site-header:not(.is-floating) .brand { background: #fff; }
.site-header .brand:before {
  content: ''; position: absolute;
  inset: calc(0px - var(--site-header-height)) -14px -12px; z-index: -1;
  border-radius: 0 0 22px 22px; background: #fff; opacity: 0;
  transition: opacity .3s ease;
}
.site-header.is-floating .brand:before { opacity: 1; }
.site-index .site-header .brand:before { opacity: 1; }
.site-header #navigation {
  position: static;
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
  padding: 8px;
  background: #f3f5f8;
  border: 1px solid #eef1f5;
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.site-header #navigation > a:not(.button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 13px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--text-14);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .005em;
  white-space: nowrap;
  color: #20364b;
  transition: color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.site-header #navigation > a:not(.button):hover { color: #0868cc; background: #ffffffb3; }
.site-header #navigation > a[aria-current] { color: #0868cc; background: #fff; box-shadow: 0 2px 10px #12385706; }
.site-header #navigation > a[aria-current]:after,
.site-header #navigation:after { display: none; }
.site-header #navigation > .header-contact {
  min-height: 52px;
  margin: 0 0 0 6px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #082f50;
  color: white;
  gap: 14px;
  font-size: var(--text-14);
  font-weight: 600;
  line-height: 1.5;
  transition: background-color .35s ease, box-shadow .35s ease;
}
.site-header .header-contact span { font-size: inherit; line-height: inherit; }
.site-header .header-contact svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.site-header #navigation > .header-contact:hover { transform: none; background: #0868cc; box-shadow: 0 5px 18px #0868cc18; }
.site-header #navigation > .header-contact[aria-current] { background: #0868cc; color: #fff; }
.site-header .header-contact:hover svg { transform: translateX(3px); }
.site-header #navigation a:focus-visible { outline: 2px solid #0868cc; outline-offset: 3px; }
.site-header .menu-button { display: none; }
body.menu-open { overflow: hidden; }
@media (min-width: 1700px) {
  .page-index { --hero-main-height: 700px; }
}
@media (max-width: 1100px) {
  .page-index { --hero-main-height: 600px; }
}
@media (min-width: 1201px) and (max-width: 1450px) {
  :root { --site-header-height: 108px; }
  .site-header .header-inner { width: calc(100% - 48px); gap: 16px; min-height: 108px; }
  .site-header .brand { transform: scale(.88); transform-origin: left center; margin-right: -24px; }
  .site-header #navigation { gap: 1px; padding: 6px; }
  .site-header #navigation > a:not(.button) { padding: 0 9px; font-size: var(--text-14); min-height: 46px; }
  .site-header #navigation > .header-contact { font-size: var(--text-14); min-height: 48px; padding: 12px 16px; }
}
@media (max-width: 1200px) {
  :root { --site-header-height: 84px; }
  .site-header .header-inner { width: calc(100% - 48px); min-height: 84px; padding: 18px 0; gap: 16px; }
  .site-header .brand { width: 200px; transform: scale(.92); transform-origin: left center; }
  .site-header .menu-button {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; flex-shrink: 0;
    padding: 0; margin-left: auto; background: #f3f5f8;
    border: 1px solid #edf1f5; border-radius: 50%; z-index: 32;
  }
  .site-header #navigation {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    height: calc(100dvh - 84px); margin: 0;
    padding: 20px 32px 36px; border: 0; border-radius: 0;
    background: #fff; overflow-y: auto; overscroll-behavior: contain;
  }
  .site-header #navigation.open { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .site-header #navigation > a:not(.button) {
    justify-content: flex-start; flex-shrink: 0; min-height: 64px;
    padding: 15px 18px !important; border: 0; border-radius: 16px;
    font-size: var(--text-28); font-weight: 400; line-height: 1.4; white-space: normal;
  }
  .site-header #navigation > a[aria-current] { background: #eef5fb; box-shadow: none; }
  .site-header #navigation > .header-contact {
    align-self: stretch; justify-content: space-between; flex-shrink: 0;
    min-height: 58px; margin: 18px 0 0; padding: 16px 24px !important;
    font-size: var(--text-16);
  }
}
@media (max-width: 850px) {
  .page-index { --hero-main-height: 590px; }
}
@media (max-width: 560px) {
  .page-index { --hero-main-height: 730px; }
  .site-header .header-inner { width: calc(100% - 40px); }
  .site-header .menu-button { width: 46px; height: 46px; }
  .site-header #navigation { padding: 15px 20px 28px; }
  .site-header #navigation > a:not(.button) { font-size: var(--fluid-28); min-height: 59px; }
}
@media (prefers-reduced-motion: reduce) {
  body > .site-header.is-floating.is-animated,
  .site-header .brand:before,
  .site-header #navigation > a,
  .site-header .header-contact svg { transition: none; }
  .site-header .header-contact:hover svg { transform: none; }
}

/* Photo-led pages place the initial navigation directly over the image. */
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .brand {
  background: #fff;
}
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .brand:before { opacity: 1; }
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .brand img {
  filter: none;
  mix-blend-mode: normal;
}
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) #navigation {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
}
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) #navigation > a:not(.button) {
  color: #fff;
  background: transparent;
  box-shadow: none;
}
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) #navigation > a[aria-current],
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) #navigation > a:not(.button):hover {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) #navigation > .header-contact {
  background: transparent;
  border-color: #ffffff80;
}
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) #navigation > .header-contact:hover { background: #ffffff20; }
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) #navigation a:focus-visible { outline-color: #fff; }
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .menu-button { background: transparent; border-color: #ffffff80; }
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .menu-lines i { background: #fff; }

/* The white tab behind the logo starts above the viewport and ends 12px under the
   logo, while the logo sits centred in a taller header row, so the tab showed far
   more space above the logo than below it. Wherever the tab shows, lift the logo by
   half that difference and extend the tab downward by the same amount: the tab keeps
   its size and the logo sits with equal space above and below. The tab is drawn in
   the logo's own coordinates, so the extension is divided by the logo's scale. */
:root { --brand-lift: 12.5px; --brand-tab-extra: 12.5px; }
@media (min-width: 1201px) and (max-width: 1450px) {
  :root { --brand-lift: 12px; --brand-tab-extra: 13.7px; }
}
@media (max-width: 1200px) {
  :root { --brand-lift: 5.4px; --brand-tab-extra: 5.8px; }
}
.site-header.is-floating .brand,
.site-index .site-header .brand,
.site-services:not(.menu-open) .site-header:not(.is-floating) .brand {
  translate: 0 calc(-1 * var(--brand-lift));
}
.site-header.is-floating .brand:before,
.site-index .site-header .brand:before,
.site-services:not(.menu-open) .site-header:not(.is-floating) .brand:before {
  bottom: calc(-12px - var(--brand-tab-extra));
}

/* About Us groups four pages in a dropdown. On wide screens it opens on hover and on
   keyboard focus, so it works before JavaScript loads; app.js adds click, Escape and
   aria-expanded. In the phone menu it is an accordion that app.js opens and closes. */
.site-header .nav-group { position: relative; display: flex; flex-shrink: 0; }
.site-header .nav-group-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 50px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent;
  font-family: var(--font-display); font-size: var(--text-14); font-weight: 400; line-height: 1.4; letter-spacing: .005em;
  white-space: nowrap; color: #20364b; cursor: pointer;
  transition: color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.site-header .nav-group-toggle svg {
  width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .3s ease;
}
.site-header .nav-group-toggle:hover, .site-header .nav-group.is-open .nav-group-toggle { color: #0868cc; background: #ffffffb3; }
.site-header .nav-group.is-current .nav-group-toggle { color: #0868cc; background: #fff; box-shadow: 0 2px 10px #12385706; }
.site-header .nav-group-toggle:focus-visible { outline: 2px solid #0868cc; outline-offset: 3px; }
.site-header .nav-submenu { display: none; }
.site-header .nav-submenu a {
  display: block; border-radius: 10px; font-family: var(--font-display); font-weight: 400;
  color: #20364b; transition: color .2s ease, background-color .2s ease;
}
.site-header .nav-submenu a:hover { color: #0868cc; background: #f3f5f8; }
.site-header .nav-submenu a[aria-current] { color: #0868cc; background: #eef5fb; }
.site-header .nav-submenu a:focus-visible { outline: 2px solid #0868cc; outline-offset: -2px; }
@media (min-width: 1201px) {
  .site-header .nav-submenu {
    position: absolute; top: calc(100% + 12px); left: 0; z-index: 40;
    flex-direction: column; gap: 2px; min-width: 270px; padding: 8px;
    background: #fff; border: 1px solid #e3eaf0; border-radius: 16px;
    box-shadow: 0 2px 6px #1236520d, 0 22px 44px -22px #12365247;
  }
  /* Bridges the gap under the toggle so the pointer can travel into the menu. */
  .site-header .nav-submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .site-header .nav-group:hover .nav-submenu,
  .site-header .nav-group:focus-within .nav-submenu,
  .site-header .nav-group.is-open .nav-submenu { display: flex; }
  .site-header .nav-group.is-dismissed .nav-submenu { display: none; }
  .site-header .nav-group:hover .nav-group-toggle svg,
  .site-header .nav-group:focus-within .nav-group-toggle svg,
  .site-header .nav-group.is-open .nav-group-toggle svg { transform: rotate(180deg); }
  .site-header .nav-group.is-dismissed .nav-group-toggle svg { transform: none; }
  .site-header .nav-submenu a { padding: 12px 14px; font-size: var(--text-14); white-space: nowrap; }
}
@media (min-width: 1201px) and (max-width: 1450px) {
  .site-header .nav-group-toggle { padding: 0 9px; min-height: 46px; }
}
@media (max-width: 1200px) {
  .site-header .nav-group { flex-direction: column; }
  .site-header .nav-group-toggle {
    justify-content: space-between; width: 100%; min-height: 64px; padding: 15px 18px;
    border-radius: 16px; font-size: var(--text-28); text-align: left; white-space: normal;
  }
  .site-header .nav-group-toggle svg { width: 18px; height: 18px; }
  .site-header .nav-group.is-current .nav-group-toggle { background: #eef5fb; box-shadow: none; }
  .site-header .nav-group.is-open .nav-submenu { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 10px 18px; }
  .site-header .nav-group.is-open .nav-group-toggle svg { transform: rotate(180deg); }
  .site-header .nav-submenu a { padding: 12px 18px; font-size: var(--text-18); }
}
@media (max-width: 560px) {
  .site-header .nav-group-toggle { font-size: var(--fluid-28); min-height: 59px; }
  .site-header .nav-submenu a { font-size: var(--text-18); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .nav-group-toggle, .site-header .nav-group-toggle svg, .site-header .nav-submenu a { transition: none; }
}
/* Over the homepage and What We Do photographs, the toggle matches the white links. */
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .nav-group-toggle {
  color: #fff; background: transparent; box-shadow: none;
}
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .nav-group.is-current .nav-group-toggle,
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .nav-group-toggle:hover {
  text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px;
}
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .nav-group-toggle:focus-visible { outline-color: #fff; }

/* Over the homepage and What We Do photography the logo stands on the image: no white tab,
   and the light logo file (transparent, white wordmark, lightened ring) replaces the standard one. */
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .brand { background: transparent; translate: none; }
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .brand:before { opacity: 0; }
.brand .logo-light { display: none; }
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .brand img:not(.logo-light) { display: none; }
:is(.site-index, .site-services):not(.menu-open) .site-header:not(.is-floating) .brand .logo-light { display: block; }

/* The header that returns on upward scrolling spans the full width on a solid white bar,
   so the logo no longer needs its tab. */
body > .site-header.is-floating {
  background: #fff;
  box-shadow: 0 1px 0 #dce5ee, 0 10px 28px -20px #10284b59;
}
body > .site-header.is-floating .brand { translate: none; }
body > .site-header.is-floating .brand:before { opacity: 0; }
body > .site-header.is-floating .header-inner { min-height: 88px; padding: 12px 0; }
