/* Local layout tweaks: corner hero, matching nav type, transparent Services menu. */

/* --- Home hero: intro sits under the logo, left-aligned, discreet --- */
.still-full::after{
  background:linear-gradient(180deg,rgba(0,0,0,.38) 0%,rgba(0,0,0,.16) 32%,rgba(0,0,0,.1) 58%,rgba(0,0,0,.28) 100%);
}
.still-full .intro-overlay{
  position:absolute;
  left:0;
  right:0;
  top:var(--header-h);
  bottom:auto;
  z-index:2;
  width:100%;
  max-width:none;
  color:#fff;
  padding-top:.45rem!important;
  padding-bottom:0!important;
  padding-left:max(var(--gutter),calc((100% - var(--wrap)) / 2))!important;
  padding-right:var(--gutter)!important;
  box-sizing:border-box;
}
.still-full .intro-overlay h1{
  font-size:clamp(1.5rem,2.15vw,2.15rem);
  line-height:1.18;
  max-width:18ch;
  margin:0;
  color:#fff;
  text-shadow:0 1px 16px rgba(0,0,0,.4);
}
.still-full .intro-overlay .lede{
  margin-top:.7rem;
  max-width:22rem;
  font-size:.92rem;
  line-height:1.55;
  color:rgba(255,255,255,.88);
  text-shadow:0 1px 12px rgba(0,0,0,.4);
}
.still-full .intro-overlay .btn-primary{
  margin-top:1rem;
  min-height:2.35rem;
  padding:.5rem 1rem;
  font-family:var(--sans);
  font-size:1.05rem;
  font-weight:400;
}
@media (max-width:700px){
  .still-full .intro-overlay{padding-top:.3rem!important}
  .still-full .intro-overlay h1{font-size:clamp(1.4rem,6.2vw,1.8rem);max-width:16ch}
  .still-full .intro-overlay .lede{font-size:.88rem;max-width:20rem;margin-top:.55rem}
  .still-full .intro-overlay .btn-primary{margin-top:.85rem}
}

/* --- Top nav: same face, size and weight as body text; no underlines --- */
.nav-desktop,
.nav-link,
.has-sub>a,
.header-contact{
  font-family:var(--sans)!important;
  font-size:1.05rem!important;
  font-weight:400!important;
  letter-spacing:normal;
}
.nav-link,
.has-sub>a,
.nav-link[aria-current=page],
.has-sub>a[aria-current=page]{
  text-decoration:none!important;
  box-shadow:none!important;
  background-image:none!important;
  border-bottom:0!important;
}
.header-contact{
  font-weight:400!important;
}

/* --- Solid / inner-page header: fully opaque so headings never ghost through --- */
.site-header{
  background:var(--bg);
}
body:has(.still-full) .site-header.is-solid{
  background:var(--bg);
}

/* Headings: keep short last words (e.g. Ltd) from sitting alone */
h1,h2,h3,.display{
  text-wrap:balance;
}

/* --- Services dropdown --- */
.sub{
  box-shadow:none!important;
  border:0!important;
  border-radius:0!important;
  padding:.35rem 0!important;
  min-width:11rem;
}
.sub a{
  background:transparent!important;
  border-radius:0!important;
  padding:.4rem 0!important;
  font-family:var(--sans);
  font-size:1.05rem;
  font-weight:400;
  color:inherit;
}
.sub a:hover{
  background:transparent!important;
  opacity:.72;
}

/* Over the hero video, before the header turns solid: transparent, white links */
body:has(.still-full) .site-header:not(.is-solid) .sub{
  background:transparent!important;
}
body:has(.still-full) .site-header:not(.is-solid) .sub,
body:has(.still-full) .site-header:not(.is-solid) .sub a{
  color:#fff!important;
  text-shadow:0 1px 10px rgba(0,0,0,.45);
}

/* After scroll, and on inner pages: flat opaque panel, flush with the header */
.site-header.is-solid .sub,
body:not(:has(.still-full)) .site-header .sub{
  background:var(--bg)!important;
  box-shadow:none!important;
  border:0!important;
  border-right:1px solid var(--line)!important;
  border-bottom:1px solid var(--line)!important;
  border-left:1px solid var(--line)!important;
  border-radius:0!important;
  top:100%!important;
  padding:.55rem 1rem .65rem!important;
  min-width:12.5rem;
  color:var(--text);
  text-shadow:none;
}
.site-header.is-solid .sub a,
body:not(:has(.still-full)) .site-header .sub a{
  color:var(--text);
  text-shadow:none;
}

/* --- Mobile hero: fill the screen and frame left, so the mid-span is cropped off the right --- */
@media (max-width: 768px){
  .still-full .still-media{
    background-size:cover;
    background-position:30% 50%;
  }
  .still-full .still-media video{
    object-fit:cover;
    object-position:30% 50%;
  }
}

/* --- Hero headline: a little wider so the approved line wraps cleanly --- */
.still-full .intro-overlay h1{
  max-width:24ch;
}
@media (max-width:700px){
  .still-full .intro-overlay h1{max-width:18ch}
}

/* --- About portrait --- */
.about-profile{
  display:grid;
  gap:2.5rem;
  padding-bottom:5rem;
  align-items:start;
}
.about-profile .about-photo{
  width:100%;
  height:auto;
  max-width:22rem;
  display:block;
  object-fit:cover;
}
.about-profile .prose{
  max-width:38rem;
}
.about-profile .prose p:first-child{
  margin-top:0;
}
@media (min-width:800px){
  .about-profile{
    grid-template-columns:minmax(12rem,22rem) minmax(0,38rem);
    gap:4rem;
    padding-block:1rem 5rem;
  }
}

/* --- Enquiry form consent --- */
.field-consent label{
  display:flex;
  gap:.7rem;
  align-items:flex-start;
  font-size:.95rem;
  line-height:1.5;
  font-weight:400;
  width:100%;
  max-width:100%;
}
.field-consent input[type=checkbox]{
  width:auto!important;
  min-width:1.15rem;
  height:1.15rem;
  margin-top:.28rem;
  flex-shrink:0;
  accent-color:var(--accent);
}
.field-consent label span{
  flex:1;
  min-width:0;
}
