/* —— Hero —— */
body.delamere-v2-parallax section.hero {
  background: none;
  background-image: none;
  padding: 0;
}
.hero {
  position: relative;
  height: 128vh;
}
.hero__sticky {
  position: sticky; top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  padding-bottom: clamp(56px, 9vh, 76px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}
.hero__bg {
  /* Left-weighted scrim keeps copy legible over the photograph */
  position: absolute;
  top: calc(-1 * var(--header-h));
  right: -28%;
  bottom: -8%;
  left: -4%;
  min-height: calc(100% + var(--header-h) + 8%);
  background-color: var(--olive-dark);
  background-image:
    linear-gradient(
      to right,
      rgba(32,35,27,.62) 0%,
      rgba(32,35,27,.48) 34%,
      rgba(32,35,27,.20) 58%,
      rgba(32,35,27,.04) 78%,
      rgba(32,35,27,0) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(32,35,27,.24) 0%,
      rgba(32,35,27,.10) 42%,
      rgba(32,35,27,.32) 100%
    ),
    var(--hero-bg-image, none);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 16% 58%;
  transform: translate3d(0,0,0);
}
.hero__leaf {
  position: absolute;
  left: -4%;
  bottom: -8%;
  width: min(34vw, 320px);
  opacity: .06;
  pointer-events: none;
  filter: brightness(0) invert(1);
}
.hero__content {
  position: relative; z-index: 2;
  flex: 0 0 auto;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: flex-start;
  min-height: 0;
  width: min(680px, calc(100% - var(--hero-gutter) - clamp(24px, 4vw, 48px)));
  margin-inline-start: var(--hero-gutter);
  padding:
    calc(var(--header-h) + clamp(8px, 2vh, 24px))
    0
    clamp(12px, 2vh, 20px)
    var(--hero-text-pad);
  color: #fff;
  text-align: left;
  --hero-headline-width: 22ch;
}
.hero__headline {
  max-width: var(--hero-headline-width, 22ch);
  font-size: clamp(32px, 4.8vw, 56px);
}
.hero__fold-foot {
  z-index: 3;
  flex: 0 0 auto;
  width: 100%;
  margin-top: 0;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vh, 24px);
}
/* Proof strip is pinned to the hero, not the fold, so it cannot cover the reviews or anchors. */
.hero:not(.hero--page-builder) .hero__sticky:has(.proof-strip) {
  padding-bottom: clamp(108px, 13vh, 128px);
}
.hero:not(.hero--page-builder) .hero__fold-foot:has(.proof-strip) {
  position: static;
  margin-bottom: 0;
}
.hero__title {
  margin: 0 0 20px;
  font-size: inherit;
  font-weight: 300; line-height: 1.12; letter-spacing: -.02em;
  max-width: none;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.45), 0 0 1px rgba(0,0,0,.35);
}
.hero__sub {
  margin: 0 0 30px;
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  max-width: none;
  color: rgba(255,255,255,.96);
  text-shadow: 0 1px 18px rgba(0,0,0,.42), 0 0 1px rgba(0,0,0,.3);
}
.hero__content .hero__cta-group {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}
.hero__content .hero__cta-group .btn--gold {
  grid-column: 1;
  grid-row: 1;
}
.hero__content .hero__cta-group .btn--ghost {
  grid-column: 2;
  grid-row: 1;
}
.hero__content .hero__cta-group .btn--phone {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
  margin-top: 0;
}
@media (min-width: 1024px) {
  .hero__content {
    justify-content: flex-start;
    padding-bottom: clamp(14px, 2.2vh, 28px);
  }
  .hero__title {
    margin-bottom: clamp(18px, 2.4vh, 28px);
  }
  .hero__sub {
    margin-bottom: clamp(28px, 3.6vh, 44px);
  }
  .hero__fold-foot {
    gap: clamp(14px, 2.2vh, 24px);
  }
  .hero__content .hero__cta-group {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    column-gap: 8px;
    row-gap: clamp(10px, 1.6vh, 16px);
    width: max-content;
    max-width: 100%;
    align-self: flex-start;
    margin-top: 0;
    margin-bottom: clamp(2px, 0.5vh, 8px);
  }
  .hero__content .hero__cta-group .btn--gold {
    grid-column: 1;
    grid-row: 1;
  }
  .hero__content .hero__cta-group .btn--ghost {
    grid-column: 2;
    grid-row: 1;
  }
  .hero__content .hero__cta-group .btn--phone {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }
  .hero__content .hero__cta-group .btn:not(.btn--phone) {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    padding-inline: clamp(18px, 2.1vw, 26px);
    font-size: 12px;
    letter-spacing: clamp(.12em, .02vw + .11em, .16em);
    white-space: nowrap;
  }
  .hero__fold-foot .hero__credibility {
    margin-top: 0;
    padding-inline: calc(var(--hero-gutter) + var(--hero-text-pad));
  }
  .hero__fold-foot .hero__anchors {
    margin: 0;
    padding-inline: calc(var(--hero-gutter) + var(--hero-text-pad));
  }
}
.hero__content .btn {
  min-width: min(220px, 42vw);
  min-height: 58px;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  text-decoration: none;
}
.hero__content .btn--gold,
.hero__content .btn--gold:hover,
.hero__content .btn--gold:focus-visible {
  color: var(--olive-dark) !important;
}
.hero__content .btn--ghost {
  background: #fff;
  color: var(--olive-dark) !important;
  border-color: #fff;
  backdrop-filter: none;
}
.hero__content .btn--ghost:hover,
.hero__content .btn--ghost:active,
.hero__content .btn--ghost:focus-visible {
  background: #fff;
  color: var(--olive-dark) !important;
  border-color: #fff;
}
.hero__content .btn--phone {
  display: inline-flex;
  align-self: flex-start;
  min-width: auto;
  min-height: auto;
  margin-top: 0;
  padding: 0;
  font-size: clamp(9px, 0.92vw, 11px);
  letter-spacing: clamp(.1em, .015vw + .09em, .14em);
  white-space: nowrap;
  background: transparent;
  color: rgba(255,255,255,.92);
  border-color: transparent;
  box-shadow: none;
  text-shadow: 0 1px 12px rgba(30,32,25,.75);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255,210,108,.6);
}
.hero__content .btn--phone:hover {
  color: rgba(255,255,255,.92);
  transform: none;
}
.hero__content .btn:hover,
.hero__content .btn:focus-visible {
  transform: none;
}
.hero__content .btn--gold:hover,
.hero__content .btn--gold:active,
.hero__content .btn--gold:focus-visible {
  color: var(--olive-dark) !important;
  background: var(--gold) !important;
  border-color: var(--gold) !important;
}
/* Doctify's genuine micro-star embed (layoutE, transparent) sits in
   #0k0svcvh. Its script is unreachable from a page served on this local
   host, so the container ships a reproduction at Doctify's native metrics;
   the script overwrites the container when it does load, so production gets
   the real widget and the prototype still shows the right design. */
.hero__credibility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  width: 100%;
}
.hero__doctify {
  width: fit-content;
  background: transparent;
  border: 0;
  padding: 0;
}
/* Scales whichever of the two renders down to hero size, layout box included */
.hero__doctify > div {
  zoom: .82;
}
.hero__doctify [class*="doctify_micro_stars_style_wrapper_"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Doctify ships no light theme — every background= value serves the same
   #3c464b, so both the embed and the reproduction are recoloured for the
   photograph. Hash-suffixed class names are matched by substring. */
.doctify-badge,
.hero__doctify [class*="doctify_micro_stars_style_wrapper_"] {
  color: #fff !important;
  text-shadow: 0 1px 12px rgba(30,32,25,.75);
}
/* The wordmark's letterforms are authored fill="currentColor", which a
   data-URI background cannot inherit, hence the pre-resolved white asset. */
.doctify-badge__logo,
.hero__doctify [class*="doctify_micro_stars_logo_logo_"] {
  background-image: url("/wp-content/themes/delamere-newbuild/prototypes/doctify-logo-white.svg") !important;
}
.doctify-badge__logo,
.doctify-badge__stars i,
.hero__doctify [class*="doctify_micro_stars_logo_logo_"],
.hero__doctify [class*="doctify_stars_item_"] {
  filter: drop-shadow(0 1px 10px rgba(30,32,25,.75));
}
.doctify-badge {
  display: flex;
  align-items: center;
  padding: 0;
  font-family: Poppins, Montserrat, sans-serif;
  line-height: 1.2;
  text-decoration: none;
  color: #fff !important;
}
.doctify-badge__verbal {
  font-size: 26px;
  font-weight: 500;
}
.doctify-badge__stars {
  display: flex;
  margin: 0 15px;
}
.doctify-badge__stars i {
  display: block;
  width: 27px; height: 30px;
  margin-right: 15px;
  background: url("/wp-content/themes/delamere-newbuild/prototypes/doctify-star.svg") 0 0/27px 30px no-repeat;
}
.doctify-badge__stars i:last-child {
  margin-right: 0;
}
.doctify-badge__logo {
  display: block;
  width: 85px; height: 29px;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
}
.hero__proof {
  margin: 0;
  padding-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
  white-space: nowrap;
}
.hero__content.is-ready .hero__credibility {
  animation: riseIn .9s cubic-bezier(.22,1,.36,1) .4s both;
}
.hero__content.is-ready .btn--phone {
  animation: riseIn .9s cubic-bezier(.22,1,.36,1) .36s both;
}
@media (max-width: 700px) {
  .hero__doctify > div { zoom: .72; }
  .hero__proof { letter-spacing: .12em; font-size: 10px; }
}
.hero__anchors {
  position: relative;
  display: flex; flex-wrap: nowrap; gap: clamp(6px, 0.9vw, 10px);
  justify-content: flex-start;
  align-self: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.hero__anchors a {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px clamp(12px, 1.4vw, 18px);
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,210,108,.72);
  background: rgba(32,35,27,.62);
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: background .2s, color .2s, border-color .2s;
}
.hero__anchors a:hover {
  background: rgba(255,210,108,.18);
  border-color: var(--gold);
  color: var(--gold);
}
/* Anchors + proof strip share the fold footer inside .hero__sticky */
@media (min-width: 701px) and (max-height: 860px) {
  .hero__headline { font-size: clamp(30px, 4.4vw, 46px); }
  .hero__title {
    margin-bottom: 12px;
  }
  .hero__sub {
    margin-bottom: 18px;
    line-height: 1.55;
    font-size: 16px;
  }
  .hero__content {
    padding-top: calc(var(--header-h) + clamp(4px, 1vh, 14px));
    padding-bottom: clamp(12px, 2vh, 22px);
  }
  .hero__content .btn:not(.btn--phone) { min-height: 52px; }
  .hero__doctify > div { zoom: .76; }
}
@media (min-width: 701px) and (max-height: 740px) {
  .hero__headline { font-size: clamp(28px, 4vw, 40px); }
  .hero__title { margin-bottom: 10px; }
  .hero__sub { margin-bottom: 14px; font-size: 15px; line-height: 1.5; }
  .hero__content .btn:not(.btn--phone) { min-height: 48px; }
  .hero__doctify > div { zoom: .72; }
}
@media (max-width: 1023px) {
  .hero { height: 100vh; height: 100dvh; }
  .hero__sticky {
    min-height: 100dvh;
    height: 100dvh;
  }
  .hero__content {
    padding-bottom: clamp(12px, 1.8vh, 18px);
  }
  .hero__fold-foot {
    gap: clamp(10px, 1.6vh, 16px);
  }
  .hero__fold-foot .hero__credibility,
  .hero__fold-foot .hero__anchors {
    flex: 0 0 auto;
  }
  .hero__title {
    margin-bottom: 12px;
  }
  .hero__sub {
    margin-bottom: 14px;
  }
  .hero__content .hero__cta-group {
    margin-top: 0;
  }
}
@media (min-width: 701px) and (max-width: 1023px) {
  .hero__content {
    padding-bottom: clamp(6px, 1vh, 12px);
  }
  .hero__fold-foot {
    gap: clamp(8px, 1.2vh, 14px);
    align-items: flex-start;
  }
  .hero__fold-foot .hero__credibility,
  .hero__fold-foot .hero__anchors {
    box-sizing: border-box;
    width: min(680px, calc(100% - var(--hero-gutter) - clamp(24px, 4vw, 48px)));
    margin-inline-start: var(--hero-gutter);
    padding-inline-start: var(--hero-text-pad);
    padding-inline-end: 0;
    align-self: flex-start;
    justify-content: flex-start;
  }
  .hero__fold-foot .hero__credibility {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .hero__fold-foot .hero__anchors {
    margin-top: 0;
  }
}
@media (max-width: 700px) {
  .hero__anchors { display: none; }
}

@media (max-width: 700px) {
  .hero__headline {
    font-size: clamp(27px, 7.8vw, 30px);
    max-width: 22ch;
  }
  .hero__title {
    margin-bottom: 10px;
    line-height: 1.12;
  }
  .hero__sub { margin-bottom: 12px; line-height: 1.55; font-size: 16px; }
  .hero__bg {
    top: calc(-1 * var(--header-h));
    right: -18%;
    bottom: -8%;
    left: -8%;
    min-height: calc(100% + var(--header-h) + 8%);
    background-position: 62% 56%;
  }
  .hero__content {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding:
      calc(var(--header-h) + 8px)
      var(--hero-gutter)
      clamp(10px, 1.5vh, 14px)
      var(--hero-gutter);
  }
  .hero__fold-foot {
    gap: clamp(12px, 2vh, 18px);
  }
  .hero__fold-foot .hero__credibility {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding-inline: var(--hero-gutter);
  }
  .hero__content .btn:not(.btn--phone) {
    min-height: 52px;
    min-width: 0;
    width: 100%;
  }
  .hero__content .hero__cta-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 0;
    flex-shrink: 0;
  }
  .hero__content .hero__cta-group .btn--gold,
  .hero__content .hero__cta-group .btn--ghost,
  .hero__content .hero__cta-group .btn--phone {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 100%;
  }
  .hero__content .hero__cta-group .btn:not(.btn--phone) {
    width: 100%;
    max-width: 100%;
    font-size: 12px;
    letter-spacing: .12em;
    padding-inline: 18px;
    white-space: nowrap;
  }
  .hero__content .hero__cta-group .btn--phone {
    display: none;
  }
  .hero__credibility .hero__proof {
    align-self: center;
    width: 100%;
    margin-bottom: 0;
    text-align: center;
    white-space: normal;
    letter-spacing: .1em;
    font-size: 9px;
    line-height: 1.45;
  }
}
@media (max-width: 1023px) and (max-height: 740px) {
  .hero__headline { font-size: clamp(25px, 7vw, 28px); }
  .hero__title {
    margin-bottom: 8px;
  }
  .hero__sub {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
  }
  .hero__content {
    padding-top: calc(var(--header-h) + 4px);
    padding-bottom: 10px;
  }
  .hero__content .btn:not(.btn--phone) { min-height: 48px; }
  .hero__doctify > div { zoom: .62; }
  .hero__fold-foot { gap: 8px; }
}
@media (max-width: 700px) and (max-height: 800px) {
  .hero__headline { font-size: clamp(26px, 7.2vw, 28px); }
  .hero__title {
    margin-bottom: 12px;
  }
  .hero__sub { margin-bottom: 14px; line-height: 1.5; font-size: 15px; }
  .hero__content .btn:not(.btn--phone) { min-height: 48px; }
  .hero__fold-foot { gap: clamp(20px, 4vh, 28px); }
  .hero__doctify > div { zoom: .64; }
}

/* Phones get .hero-anchors below the hero instead of this overlay: four
   44px rows cannot fit the 100vh hero without clipping the logo, so the
   two live as a breakpoint-swapped pair rather than one repositioned node. */
.hero-anchors { display: none; }
@media (max-width: 700px) {
  :root {
    --hero-gutter: 22px;
    --hero-text-pad: 16px;
  }
  /* Drop the 128vh parallax pin so the band sits immediately under the fold */
  .hero-anchors {
    display: block;
    position: relative;
    z-index: 2;
    background: var(--olive-dark);
  }
  /* Hero-to-band dissolve lives on .hero__sticky::after (above photo, below
     proof strip) so it cannot overlay carousel text in the fold footer. */
  .hero__sticky::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, var(--olive-dark), rgba(61,66,53,0));
  }
  .hero-anchors a {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px;
    min-height: 48px;
    padding: 14px var(--hero-gutter) 14px var(--hero-inset);
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    border-top: 1px solid rgba(255,210,108,.35);
    background: rgba(32,35,27,.55);
    transition: background-color .35s ease, color .35s ease;
  }
  .hero-anchors a:first-child { border-top: 0; }
  .hero-anchors a::after {
    content: "";
    flex: none;
    width: 8px; height: 8px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
    transition: transform .35s ease;
  }
  .hero-anchors a:hover,
  .hero-anchors a:active {
    background-color: rgba(255,210,108,.14);
    color: var(--gold);
  }
  .hero-anchors a:hover::after,
  .hero-anchors a:active::after {
    border-color: var(--gold);
    transform: translateX(3px) rotate(-45deg);
  }
}
.hero__content.is-ready .hero__title { animation: riseIn .9s cubic-bezier(.22,1,.36,1) both; }
.hero__content.is-ready .hero__sub { animation: riseIn .9s cubic-bezier(.22,1,.36,1) .12s both; }
.hero__content.is-ready .hero__cta-group { animation: riseIn .9s cubic-bezier(.22,1,.36,1) .22s both; }
/* Safety net: if the entrance animations never run (throttled tab), the
   fill-mode would otherwise hold the hero copy at opacity 0. */
.hero__content.is-shown .hero__title,
.hero__content.is-shown .hero__sub,
.hero__content.is-shown .hero__credibility,
.hero__content.is-shown .hero__cta-group {
  animation: none;
  opacity: 1;
  transform: none;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
