/* ==========================================================================
   Adhore Care: layout layer (loaded after styles.css)
   Structure: white header with a Services dropdown; full-width media heroes
   (photo or looping video) with a quick-route panel; flat full-bleed bands;
   icon card grids; a centred "promise" row. Colours and fonts come from styles.css.
   ========================================================================== */

:root { --radius: 10px; --radius-lg: 14px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: 0 6px 18px -14px rgb(42 31 39 / .35); }
.nav-primary > li { position: relative; display: flex; align-items: center; }
.has-sub > a { padding-right: 2px; }
.sub-toggle {
  display: inline-grid; place-items: center; width: 30px; min-height: 44px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--c-ink); cursor: pointer;
}
.sub-toggle .icon { width: 18px; height: 18px; stroke-width: 2.2; transition: transform var(--dur) var(--ease-out); }
.sub-toggle:hover { background: var(--c-blush); }
.has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 120;
  min-width: 250px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--c-line); border-top: 3px solid var(--c-accent);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  display: none;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
@media (hover: hover) { .has-sub:hover .sub-menu { display: block; } }
.has-sub.is-open .sub-menu { display: block; }
.sub-menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 6px;
  color: var(--c-ink); text-decoration: none; font-weight: 700; font-size: 1rem; white-space: nowrap;
}
.sub-menu a:hover, .sub-menu a:focus-visible { background: var(--c-blush); color: var(--c-primary); }
.nav-cta { border-radius: 6px; }

/* ---------- Shared background media (photo or looping clip) ---------- */
.media-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--c-primary-deep); }
.media-bg img, .media-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Home hero: full width, text left, quick-route panel right ---------- */
.hero.hero--media {
  margin: 0; border-radius: 0;
  min-height: clamp(560px, 84vh, 800px);
  display: flex; align-items: center; text-align: left;
}
.hero.hero--media::before {
  background: linear-gradient(90deg, rgb(52 22 42 / .86) 0%, rgb(52 22 42 / .66) 48%, rgb(52 22 42 / .30) 100%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(72px, 9vw, 112px) clamp(104px, 11vw, 140px);
}
.hero--media .hero__content { padding: 0; max-width: 680px; }
.hero__welcome { font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--c-accent-light); margin: 0 0 10px; }
.hero--media h1 { margin-bottom: 22px; }
.hero--media .lead { margin: 0 0 28px; max-width: 580px; }
.hero--media .hero__badge { margin: 0; }

.hero-panel {
  background: rgb(255 255 255 / .97); color: var(--c-ink);
  border-radius: var(--radius-lg); border-top: 5px solid var(--c-accent);
  padding: 28px 26px 26px; box-shadow: 0 24px 48px -24px rgb(20 8 16 / .6);
}
.hero-panel__title { font-size: 1.6rem; color: var(--c-ink); margin: 0 0 12px; }
.hero-panel__links { list-style: none; margin: 0 0 18px; padding: 0; }
.hero-panel__links li + li { border-top: 1px solid var(--c-line); }
.hero-panel__links a {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 6px 4px;
  color: var(--c-ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem;
}
.hero-panel__links a:hover { color: var(--c-primary); }
.hero-panel__links a > span:nth-child(2) { flex: 1; }
.hero-panel__icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-blush); color: var(--c-primary);
}
.hero-panel__icon .icon { width: 21px; height: 21px; }
.hero-panel__arrow { color: var(--c-mauve); transition: transform var(--dur) var(--ease-out); }
.hero-panel__links a:hover .hero-panel__arrow { transform: translateX(4px); }
.hero-panel__cta { width: 100%; border-radius: 6px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; padding-block: 64px 96px; }
  .hero.hero--media::before { background: linear-gradient(180deg, rgb(52 22 42 / .72) 0%, rgb(52 22 42 / .80) 100%); }
  .hero-panel { max-width: 520px; }
}

/* trust strip sits on the hero's lower edge, squarer to match */
.trust__grid { border-radius: var(--radius); }

/* ---------- Inner-page banners over a photo or clip ---------- */
.page-hero.page-hero--media {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0; border-radius: 0; text-align: left; color: #fff;
  background: var(--c-primary-deep);
  padding: clamp(80px, 10vw, 136px) 0 clamp(72px, 9vw, 120px);
}
.page-hero--media::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(52 22 42 / .88) 0%, rgb(52 22 42 / .70) 55%, rgb(52 22 42 / .40) 100%);
}
.page-hero__inner { max-width: var(--container); }
.page-hero__inner > * { max-width: 760px; }
.page-hero--media h1 { color: #fff; }
.page-hero--media .lead { margin-inline: 0; }
.page-hero--media .breadcrumb, .page-hero--media .breadcrumb a { color: rgb(255 255 255 / .85); }
.page-hero--media .breadcrumb ol { justify-content: flex-start; }
.page-hero--media .breadcrumb li + li::before { color: var(--c-accent-light); }
.page-hero--media .jump-links { justify-content: flex-start; }
.page-hero--media .jump-links a { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .45); color: #fff; border-radius: 6px; }
.page-hero--media .jump-links a:hover { background: #fff; color: var(--c-primary-deep); }

/* ---------- Full-width band over a photo or clip ---------- */
.media-band {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding-block: clamp(96px, 12vw, 168px);
}
.media-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(52 22 42 / .88) 0%, rgb(52 22 42 / .62) 55%, rgb(52 22 42 / .25) 100%);
}
.media-band__content { max-width: 620px; }
.media-band h2 { color: #fff; }
.media-band .lead { margin-bottom: 30px; }

/* ---------- Icon card grid (who we help) ---------- */
.cards--icons .card { text-align: center; border-top: 4px solid var(--c-accent); border-radius: var(--radius); }
.cards--icons .card__icon { width: 72px; height: 72px; margin: 0 auto 20px; background: var(--c-primary); color: #fff; border: 0; }
.cards--icons .card__icon .icon { width: 32px; height: 32px; }
.cards--icons .text-link { align-self: center; }

/* photo cards: squarer frames */
.card { border-radius: var(--radius); }
.card__media { padding: 0; }
.card__media img { border-radius: 0; aspect-ratio: 4 / 3; }

/* ---------- Promise row (why choose us): centred icon columns ---------- */
.values--promise { border-top: 0; gap: 28px; }
.values--promise > div, .values--promise > div + div {
  padding: 8px 12px 0; border: 0; text-align: center;
}
.values--promise h3 { flex-direction: column; justify-content: center; gap: 16px; font-size: 1.5rem; }
.values--promise h3 .icon {
  width: 72px; height: 72px; padding: 20px; border-radius: 50%;
  background: var(--c-blush); color: var(--c-primary); border: 1px solid #F3D3DD;
}
@media (max-width: 960px) { .values--promise > div:nth-child(3) { padding-left: 12px; } }
@media (max-width: 560px) { .values--promise > div + div { border-top: 0; } }

/* the closing call-to-action keeps its breathing room after a full-bleed band */
.route-page > section.container:last-child { margin-top: var(--section); }

/* areas band: its photo now sits in the shared media slot */
.areas .media-bg { z-index: -2; }

/* ---------- Centred info block (funding) ---------- */
.info-block { background: var(--c-sand); }
.info-block__icon { margin: 0 auto 18px; width: 64px; height: 64px; background: #fff; }
.info-block .lead { margin-bottom: 28px; }

/* ---------- Squarer surfaces to match the reference's flatter look ---------- */
.btn { border-radius: 6px; }
.cta-panel { border-radius: var(--radius); }
.cta-panel::before { display: none; }
.quote, .fund-card, .price, .form-card, .links-list a { border-radius: var(--radius); }
.chips li, .jump-links a, .meta li { border-radius: 6px; }

/* ---------- High contrast: keep text readable over photos and clips ---------- */
html.high-contrast .hero.hero--media::before,
html.high-contrast .page-hero--media::before,
html.high-contrast .media-band::before { background: rgb(20 8 16 / .86); }
html.high-contrast .hero-panel, html.high-contrast .sub-menu { border: 2px solid var(--c-line); }
html.high-contrast .page-hero.page-hero--media { border-block: 0; }

/* Clips start from script only when motion is allowed; otherwise the poster frame stays. */

/* buttons inside photo banners: left-aligned, outline buttons turned light */
.page-hero--media .btn-row { justify-content: flex-start; }
.page-hero--media .btn-outline { border-color: rgb(255 255 255 / .8); color: #fff; background: rgb(255 255 255 / .06); }
.page-hero--media .btn-outline:hover { background: #fff; color: var(--c-primary-deep); }
.page-hero--media .center { margin-inline: 0; text-align: left; }

/* ---- privacy and cookie pages: readable long-form text ---- */
.legal__body { max-width: 70ch; }
.legal__body h2 { margin-top: 2.2em; margin-bottom: .5em; }
.legal__body h3 { margin-top: 1.4em; margin-bottom: .35em; font-size: 1.1em; }
.legal__body p, .legal__body li { line-height: 1.65; }
.legal__body ul { padding-left: 1.2em; margin: .5em 0 1em; }
.legal__body li { margin-bottom: .45em; }
.legal__body a { text-decoration: underline; }

/* ---- no phone number yet: the email is the only top-bar link, so keep it visible on every screen size ---- */
.topbar__links:not(:has(a[href^="tel:"])) .topbar__email { display: inline-flex !important; }
@media (max-width: 900px) { .topbar__inner { justify-content: center; } }
.price__amount--ask { font-size: clamp(1.6rem, 3vw, 2rem); }
.email-card h3 { margin-top: 0; }
.email-card .btn { margin-top: 8px; }
.email-card__note { font-size: .9rem; opacity: .8; margin-top: 18px; }
