/*
Theme Name: Luca d’Avanzo
Theme URI: https://lucadavanzo.co.uk
Author: Luca d’Avanzo
Description: Locked mid-twilight Tilly-style homepage for Luca d’Avanzo — Adult Psychotherapist, Liberis Practice, South Kensington. Full-bleed art hero, white nav, soft Get in Touch.
Version: 1.0.28
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luca-davanzo
Tags: one-column, custom-menu, custom-logo, full-width-template
*/

/* Luca d’Avanzo — Tilly Carnegie–inspired mid-twilight lock */
:root {
  --cream: #f6f1e8;
  --cream-deep: #ebe4d8;
  --charcoal: #1f1e1c;
  --charcoal-soft: #3d3a35;
  --muted: #6a645c;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.92);
  --line: rgba(31, 30, 28, 0.1);
  /* Dark band (About + Approach) — Tilly Carnegie's About row uses #445146 */
  --band-dark: #445146;
  --band-approach: #33302b; /* Approach row: warm charcoal, distinct from --band-dark, pairs with the gold (1.0.26). Quieter option: #36423a */
  --band-ink: #ffffff;
  --band-text: rgba(255, 255, 255, 0.9);
  --band-muted: rgba(255, 255, 255, 0.74);
  --band-line: rgba(255, 255, 255, 0.14);
  --band-link: #ffffff;
  --band-link-underline: rgba(255, 255, 255, 0.45);
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif; /* hero H1 + site name (Tilly Carnegie) */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* Always reserve the scrollbar track so short pages (e.g. Contact) don't
     shift the centred header/content sideways when navigating. */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* —— Transparent header over hero (Tilly) —— */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  padding: 1.6rem 2.5rem;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav {
  display: flex;
  gap: 1.15rem;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white-soft);
  transition: opacity 0.2s ease;
}
.nav a:hover { opacity: 0.75; }

/* Soft Get in Touch — circle arrow + label (Tilly) */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.cta-pill:hover { opacity: 0.8; }
.cta-pill .arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-pill .arrow svg { width: 14px; height: 14px; display: block; }

/* —— Full-bleed art hero (Tilly nature pattern) —— */
.hero {
  position: relative;
  /* Same box as v1.0.7: shorter than viewport so About peeks in (Tilly pattern) */
  min-height: 70vh;
  min-height: 70dvh;
  max-height: 780px;
  display: flex;
  align-items: flex-end;
  padding: 0 2.5rem 4rem;
  overflow: hidden;
  background: var(--charcoal);
  isolation: isolate;
}
/* Backdrop: blurred, darkened cover-sized copy of the same painting fills the
   space left beside (or above/below) the uncropped painting — no hard bars. */
.hero::before {
  display: none; /* blurred side fill no longer needed: painting covers the hero */
  content: "";
  position: absolute;
  inset: -60px; /* bleed past the edges so the blur has no soft/light rim */
  background-image: var(--hero, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(24px) brightness(0.8);
  transform: translateZ(0);
  z-index: 0;
}
/* Foreground: the whole painting (2400×1600, 3:2), centred, never cropped */
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: transparent;
  background-image: var(--hero-img, none); /* set inline in front-page.php (1.0.23) */
  background-position: center bottom; /* fill full width; crop from the sky, keep the trees */
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(20, 18, 16, 0.72) 0%,
      rgba(20, 18, 16, 0.35) 45%,
      rgba(20, 18, 16, 0.42) 100%
    );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.hero-id {
  font-family: var(--sans);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 14ch;
}
.hero-invite {
  margin-top: 1.1rem;
  max-width: 34rem;
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
}

/* Mid twilight variant (locked) */
.hero--mid .hero-bg::after {
  background:
    linear-gradient(
      to top,
      rgba(20, 18, 16, 0.50) 0%,
      rgba(20, 18, 16, 0.20) 44%,
      rgba(20, 18, 16, 0.24) 100%
    );
}
.hero--mid .hero-id {
  text-shadow: 0 2px 22px rgba(20, 18, 16, 0.4), 0 1px 3px rgba(20, 18, 16, 0.3);
}
.hero--mid .hero-invite {
  text-shadow: 0 1px 14px rgba(20, 18, 16, 0.38), 0 1px 3px rgba(20, 18, 16, 0.28);
}
.variant-mid .site-header .logo,
.variant-mid .site-header .nav a,
.variant-mid .site-header .cta-pill {
  text-shadow: 0 1px 11px rgba(20, 18, 16, 0.38);
}

/* —— Content sections —— */
.section {
  padding: 5.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.section-split {
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 3.5rem;
  align-items: start;
}
.section h2 {
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  color: var(--charcoal);
}
.section p { color: var(--charcoal-soft); }
.section p + p { margin-top: 1.15rem; }

.portrait-wrap {
  position: sticky;
  top: 2rem;
}
.portrait-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(31, 30, 28, 0.12);
}

/* Approach: text left, Luca's painting right */
.section-split--art {
  grid-template-columns: 1fr minmax(280px, 440px);
  align-items: center;
}
.art-wrap { margin: 0; }
.art-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.art-wrap figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.divider {
  border: none;
  height: 1px;
  background: var(--line);
  max-width: 1100px;
  margin: 0 auto;
}

.muted-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Dark full-bleed band: About (portrait) + Approach (Tilly pattern) —— */
.band-dark {
  background: var(--band-dark);
  color: var(--band-text);
  width: 100%;
}
.band-dark .section h2 { color: var(--band-ink); }
.band-dark .section p { color: var(--band-text); }
.band-dark .section strong,
.band-dark .section em { color: var(--band-ink); }
.band-dark .muted-note { color: var(--band-muted); }
.band-dark a {
  color: var(--band-link);
  text-decoration: underline;
  text-decoration-color: var(--band-link-underline);
  text-underline-offset: 0.18em;
}
.band-dark a:hover,
.band-dark a:focus-visible { text-decoration-color: currentColor; }
.band-dark a:focus-visible { outline: 2px solid var(--band-ink); outline-offset: 2px; }
.band-dark .portrait-wrap img { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); }
.band-dark .divider,
.divider--on-dark {
  background: var(--band-line);
  max-width: 1036px; /* aligns with the 1100px section content box */
  width: calc(100% - 4rem);
}
.band-dark #about { padding-bottom: 4.5rem; }
.band-dark #approach { padding-top: 4.5rem; }

/* Contact band — soft, calm */
.contact {
  background: var(--cream-deep);
  padding: 5.5rem 2rem;
  text-align: center;
}
.contact h2 {
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.contact p { color: var(--charcoal-soft); }
.contact .address {
  margin: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
}
.btn-soft .arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-soft .arrow svg { width: 14px; height: 14px; }
.btn-soft:hover { opacity: 0.75; }


/* Inner pages (About/Approach/Contact as WP pages fallback) */
.page-shell {
  padding: 6rem 2rem 4rem;
  max-width: 720px;
  margin: 0 auto;
}
.page-shell h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.page-shell .entry-content p {
  margin: 0 0 1.15rem;
  line-height: 1.75;
}
.page-shell .entry-content p:last-child {
  margin-bottom: 0;
}
.page-shell .entry-content strong {
  font-weight: 600;
}

body:not(.home) .site-header {
  position: relative;
  background: var(--charcoal);
}
body:not(.home) .logo,
body:not(.home) .nav a,
body:not(.home) .cta-pill {
  text-shadow: none;
}

/* —— Inner-page painting band (shorter cousin of the homepage hero) —— */
body.has-page-band .site-header {
  position: absolute;
  background: transparent;
}
.page-band {
  position: relative;
  height: 42vh;
  min-height: 300px;
  max-height: 460px;
  display: flex;
  align-items: flex-end;
  padding: 0 2rem 2.6rem;
  overflow: hidden;
  background: var(--charcoal);
  isolation: isolate;
}
.page-band-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}
/* Soft shade at the top (header) and a deeper one at the bottom (title) */
.page-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 18, 16, 0.38) 0%, rgba(20, 18, 16, 0) 34%),
    linear-gradient(to top, rgba(20, 18, 16, 0.66) 0%, rgba(20, 18, 16, 0.34) 38%, rgba(20, 18, 16, 0.08) 70%, rgba(20, 18, 16, 0) 100%);
}
/* Same column as the page text below, so title and body start at one x */
.page-band-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 656px; /* 720px .page-shell minus its 2×2rem padding */
  margin: 0 auto;
}
.page-band-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(20, 18, 16, 0.45), 0 1px 3px rgba(20, 18, 16, 0.35);
  /* Long titles may run up to 240px past the text column on wide screens */
  margin-right: calc(-1 * clamp(0px, (100vw - 720px) / 2, 240px));
}
.page-shell--band { padding-top: 3.75rem; }

@media (max-width: 860px) {
  .site-header { padding: 1.2rem 1.25rem; }
  .hero { padding: 0 1.25rem 3rem; min-height: 62vh; max-height: none; }
  .hero-id { max-width: none; }
  .page-band { height: 32vh; min-height: 240px; padding: 0 2rem 1.9rem; }
  .page-band-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .page-shell--band { padding-top: 2.75rem; }
  .section-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .art-wrap { max-width: 520px; margin: 0 auto; }
  .portrait-wrap {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }
  .band-dark .divider,
  .divider--on-dark { width: calc(100% - 2.5rem); }
}

/* Very narrow phones: keep logo + Get in Touch on one line */
@media (max-width: 400px) {
  .header-inner { gap: 0.75rem; }
  .logo, .cta-pill { white-space: nowrap; }
  .logo { font-size: 1rem; }
  .cta-pill { font-size: 0.88rem; gap: 0.5rem; }
  .cta-pill .arrow { width: 32px; height: 32px; }
}


/* —— Header CTA: oblong "Let’s talk" button (1.0.14) —— */
.cta-pill,
.variant-mid .site-header .cta-pill,
body:not(.home) .cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.45rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
  box-shadow: 0 4px 18px rgba(20, 18, 16, 0.18);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.cta-pill:hover,
.cta-pill:focus-visible,
.variant-mid .site-header .cta-pill:hover,
.variant-mid .site-header .cta-pill:focus-visible,
body:not(.home) .cta-pill:hover,
body:not(.home) .cta-pill:focus-visible {
  opacity: 1;
  background: #e2a454;
  color: var(--charcoal);
}
@media (max-width: 400px) {
  .cta-pill { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
}


/* —— Hero: "book your time here" link (1.0.16) —— */
.hero-book {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.hero-book:hover,
.hero-book:focus-visible {
  color: #e2a454;
  text-decoration-color: #e2a454;
}
.hero-book:focus-visible {
  outline: 2px solid #e2a454;
  outline-offset: 3px;
  border-radius: 2px;
}

/* —— Primary nav: dropdowns (desktop) + Menu panel (≤860px) — 1.0.16 —— */
.primary-nav .nav { align-items: center; }
.nav > li { position: relative; }

/* Caret after a dropdown parent's label */
.nav .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.nav .menu-item-has-children > a::after {
  content: "";
  width: 0.38em;
  height: 0.38em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.18em) rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.85;
}

/* Menu button: phones only */
.menu-toggle { display: none; }

@media (min-width: 861px) {
  /* Invisible bridge so the panel stays open while the pointer moves down */
  .nav .menu-item-has-children::after {
    content: "";
    position: absolute;
    left: -0.5rem;
    right: -0.5rem;
    top: 100%;
    height: 0.9rem;
  }
  .nav .sub-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: -1.1rem; /* panel padding: link text lines up under the parent label */
    z-index: 40;
    min-width: 220px;
    padding: 0.55rem;
    background: var(--band-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(20, 18, 16, 0.28), 0 2px 8px rgba(20, 18, 16, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }
  .nav .menu-item-has-children.is-open > .sub-menu,
  .nav .menu-item-has-children:focus-within:not(.is-dismissed) > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
  }
  .nav .menu-item-has-children.is-open > a::after,
  .nav .menu-item-has-children:focus-within:not(.is-dismissed) > a::after {
    transform: translateY(0.05em) rotate(-135deg);
  }
  .nav .sub-menu li { display: block; }
  .nav .sub-menu a,
  .variant-mid .site-header .nav .sub-menu a,
  body:not(.home) .site-header .nav .sub-menu a {
    display: block;
    padding: 0.55rem 0.6rem;
    border-radius: 5px;
    font-size: 0.93rem;
    line-height: 1.35;
    color: var(--white);
    text-shadow: none;
    white-space: nowrap;
    opacity: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .nav .sub-menu a:hover,
  .nav .sub-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
  }
  .nav .sub-menu a:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: -2px; }
  .nav .sub-menu .current-menu-item > a { color: #e2a454; }
}
@media (min-width: 861px) {
  .nav .menu-item-has-children:hover:not(.is-dismissed) > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
  }
  .nav .menu-item-has-children:hover:not(.is-dismissed) > a::after {
    transform: translateY(0.05em) rotate(-135deg);
  }
}

@media (max-width: 860px) {
  .site-header { transition: background-color 0.2s ease; }
  .header-right { gap: 0.9rem; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.2rem;
    background: none;
    border: 0;
    color: var(--white);
    font: inherit;
    font-size: 0.93rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 1px 11px rgba(20, 18, 16, 0.38);
  }
  body:not(.home):not(.has-page-band) .menu-toggle { text-shadow: none; }
  .menu-toggle:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }
  .menu-toggle-icon {
    position: relative;
    width: 16px;
    height: 10px;
    border-top: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transition: border-color 0.2s ease;
  }
  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1.5px;
    margin-top: -0.75px;
    background: currentColor;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* Panel: hidden until the button opens it */
  .primary-nav { display: none; }
  html body .site-header.is-menu-open { background: var(--charcoal); }
  .site-header.is-menu-open .primary-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.4rem 1.25rem 1.6rem;
    background: var(--charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 40px rgba(20, 18, 16, 0.3);
  }
  .site-header.is-menu-open .menu-toggle { text-shadow: none; }
  .site-header.is-menu-open .menu-toggle-icon { border-color: transparent; }
  .site-header.is-menu-open .menu-toggle-icon::before { opacity: 1; transform: rotate(45deg); }
  .site-header.is-menu-open .menu-toggle-icon::after { opacity: 1; transform: rotate(-45deg); }
  .site-header.is-menu-open .logo { text-shadow: none; }

  .primary-nav .nav {
    display: block;
    max-width: 560px;
    margin: 0 auto;
  }
  .primary-nav .nav > li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .primary-nav .nav > li:last-child { border-bottom: 0; }
  .primary-nav .nav a,
  .variant-mid .site-header .primary-nav .nav a {
    display: block;
    padding: 0.85rem 0.1rem;
    font-size: 1.05rem;
    color: var(--white);
    text-shadow: none;
  }
  .primary-nav .nav .current-menu-item > a,
  .variant-mid .site-header .primary-nav .nav .current-menu-item > a { color: #e2a454; }
  /* Parent label: plain heading for its indented list (no dropdown on phones) */
  .primary-nav .menu-item-has-children > a {
    display: block;
    padding-bottom: 0.3rem;
    cursor: default;
  }
  .primary-nav .menu-item-has-children > a::after { display: none; }
  .primary-nav .menu-item-has-children > a:hover { opacity: 1; }
  .primary-nav .sub-menu {
    padding: 0 0 0.5rem 1rem;
    margin-left: 0.15rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }
  .primary-nav .sub-menu a,
  .variant-mid .site-header .primary-nav .sub-menu a {
    padding: 0.5rem 0.1rem;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.82);
  }
}
@media (max-width: 400px) {
  .header-right { gap: 0.6rem; }
  .menu-toggle { font-size: 0.88rem; gap: 0.4rem; }
}
@media (max-width: 340px) {
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* —— About page: portrait beside the text (1.0.16) —— */
.page-shell--portrait { max-width: 1060px; }
.page-split {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}
.page-split .entry-content { max-width: 640px; }
.page-portrait { top: 2rem; }
.page-portrait img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(31, 30, 28, 0.14);
}
/* Band title lines up with the text column on the About page */
.page-band--portrait .page-band-inner {
  max-width: 996px; /* 1060px shell minus 2×2rem padding */
  padding-left: calc(280px + 3.5rem);
}
@media (max-width: 1000px) {
  .page-split { grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; }
  .page-band--portrait .page-band-inner { padding-left: calc(240px + 2.5rem); }
}
@media (max-width: 860px) {
  .page-split { grid-template-columns: 1fr; gap: 2.25rem; }
  .page-split .entry-content { max-width: none; }
  .page-portrait {
    position: static;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  .page-band--portrait .page-band-inner { max-width: 656px; padding-left: 0; }
}

/* —— Inner page content: lists + links (1.0.16) —— */
.page-shell .entry-content ul,
.page-shell .entry-content ol {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
}
.page-shell .entry-content ul { list-style: disc; }
.page-shell .entry-content ol { list-style: decimal; }
.page-shell .entry-content li { line-height: 1.75; padding-left: 0.2rem; }
.page-shell .entry-content li + li { margin-top: 0.35rem; }
.page-shell .entry-content li::marker { color: var(--muted); }
.page-shell .entry-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(31, 30, 28, 0.4);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.page-shell .entry-content a:hover,
.page-shell .entry-content a:focus-visible { text-decoration-color: currentColor; }

/* Booking phone button on Contact page (1.0.18) */
.contact-booking { margin-top: 2rem; }
.contact-booking .btn-soft { color: var(--charcoal); text-decoration: none; }
.btn-phone { white-space: nowrap; }


/* —— Booking actions: Call + Email side by side (1.0.19) —— */
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.contact .booking-actions { justify-content: center; }
.btn-soft { text-decoration: none; }
.btn-email .arrow {
  background: transparent;
  color: var(--charcoal);
  box-shadow: inset 0 0 0 1.5px var(--charcoal);
}
.btn-email .arrow svg { width: 16px; height: 16px; }
.contact-booking .booking-actions { justify-content: flex-start; }

/* Calendly inline widget (Contact page, only when a link is set) */
.contact-calendly {
  margin-top: 2.5rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(31, 30, 28, 0.08);
}

/* —— Homepage FAQ accordion (1.0.19) —— */
.faq {
  background: var(--cream);
  padding: 5.5rem 2rem;
}
.faq-inner {
  max-width: 820px; /* single column: "FAQs" heading stacked above the accordion (1.0.21) */
  margin: 0 auto;
}
.faq-heading {
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 1.6rem;
}
.faq-list { border-top: 1px solid rgba(31, 30, 28, 0.14); }
.faq-item { border-bottom: 1px solid rgba(31, 30, 28, 0.14); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0.1rem;
  cursor: pointer;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--charcoal);
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover { color: var(--band-dark); }
.faq-item summary:focus-visible {
  outline: 2px solid var(--band-dark);
  outline-offset: 4px;
  border-radius: 3px;
}
/* Plus / minus indicator */
.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(31, 30, 28, 0.32);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  margin: -0.75px 0 0 -5.5px;
  background: var(--charcoal);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.2s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon {
  background: var(--band-dark);
  box-shadow: none;
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: var(--white); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); opacity: 0; }
.faq-item summary:hover .faq-icon { box-shadow: inset 0 0 0 1.5px var(--band-dark); }
.faq-a {
  padding: 0 3.5rem 1.5rem 0.1rem;
  font-size: 0.99rem;
  color: var(--charcoal-soft);
  line-height: 1.75;
}
.faq-a.is-placeholder p { color: var(--muted); font-style: italic; }
.faq-item[open] .faq-a { animation: faq-in 0.25s ease; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-a { animation: none; }
  .faq-icon::before, .faq-icon::after { transition: none; }
}

/* —— Footer: practice details + map (1.0.19) —— */
.site-footer {
  background: var(--band-dark);
  color: var(--band-text);
  padding: 4.5rem 2rem 2rem;
  font-size: 0.95rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 3.5rem;
  align-items: start;
}
.footer-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}
.footer-role { margin-top: 0.15rem; color: var(--band-muted); font-size: 0.92rem; }
.footer-address {
  font-style: normal;
  margin-top: 1.6rem;
  line-height: 1.65;
  color: var(--band-text);
}
.footer-address strong { color: var(--white); font-weight: 600; }
.footer-contact { margin-top: 1.4rem; display: grid; gap: 0.35rem; }
.footer-contact li { display: flex; gap: 0.9rem; align-items: baseline; }
.footer-label {
  min-width: 3.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--band-muted);
}
.site-footer a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--band-link-underline);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible { text-decoration-color: currentColor; }
.site-footer a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-radius: 2px; }
.site-footer .footer-book {
  display: inline-flex;
  margin-top: 1.9rem;
  padding: 0.62rem 1.45rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.site-footer .footer-book:hover,
.site-footer .footer-book:focus-visible { background: #e2a454; color: var(--charcoal); }
.footer-map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}
.footer-map-link {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.85rem;
}
.site-footer .footer-map-link { color: var(--band-text); }
.footer-copy {
  max-width: 1100px;
  margin: 3.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--band-line);
  font-size: 0.8rem;
  color: var(--band-muted);
  text-align: center;
}

@media (max-width: 860px) {
  .faq { padding: 4rem 1.25rem; }
  .faq-heading { margin-bottom: 1.2rem; }
  .faq-item summary { font-size: 1rem; padding: 1.15rem 0; gap: 1rem; }
  .faq-a { padding-right: 0.5rem; }
  .site-footer { padding: 3.5rem 1.25rem 1.75rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-map iframe { height: 240px; }
  .footer-copy { margin-top: 2.5rem; }
}
@media (max-width: 400px) {
  .booking-actions { gap: 0.9rem 1.5rem; }
}
/* Homepage "Book your time": keep the fees line to a readable measure */
.contact p,
.contact .address { max-width: 40rem; margin-left: auto; margin-right: auto; }
.contact .fees { margin-top: 0.6rem; }


/* ===================================================================
   1.0.22 — justified body text, Contact band, mobile polish (Tilly)
   Desktop layout is unchanged apart from justified paragraphs.
   =================================================================== */

/* Justified body paragraphs (British hyphenation via <html lang="en-GB">) */
.page-shell .entry-content p,
.band-dark .section p,
.faq-a p {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
  overflow-wrap: break-word;
}
/* Short lines stay ragged: the About credentials block and one-line notes */
.band-dark .section p.muted-note { text-align: left; }

/* Contact band: hero painting, anchored on the golden horizon and trees */
.page-band--contact .page-band-bg { background-position: 60% 100%; }

/* "Let’s talk" inside the menu panel: phones only */
.nav-cta { display: none; }

/* —— Header + menu panel (≤860px, where the panel menu already applies) —— */
@media (max-width: 860px) {
  .site-header { padding: 1.1rem 1.25rem; }
  .logo { font-size: 1.05rem; font-weight: 500; letter-spacing: 0.005em; }
  .header-right { gap: 0; }
  html body .site-header .header-right > .cta-pill { display: none; }

  /* Icon-only hamburger, 44px tap target */
  .menu-toggle {
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    justify-content: center;
  }
  .menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .menu-toggle-icon {
    width: 22px;
    height: 14px;
    border-top-width: 1.5px;
    border-bottom-width: 1.5px;
    background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
  }
  .site-header.is-menu-open .menu-toggle-icon { background: none; }

  /* Panel: full width, dark green, generous tap targets */
  html body .site-header.is-menu-open { background: var(--band-dark); }
  .site-header.is-menu-open .primary-nav {
    padding: 0.5rem 1.5rem 2rem;
    background: var(--band-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 48px rgba(20, 18, 16, 0.35);
    max-height: calc(100vh - 76px);
    max-height: calc(100svh - 76px);
    overflow-y: auto;
  }
  .primary-nav .nav > li { border-bottom-color: rgba(255, 255, 255, 0.12); }
  .primary-nav .nav a,
  .variant-mid .site-header .primary-nav .nav a {
    padding: 1rem 0.1rem;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.005em;
  }
  .primary-nav .menu-item-has-children > a {
    padding-bottom: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
  }
  .variant-mid .site-header .primary-nav .menu-item-has-children > a,
  .primary-nav .nav .menu-item-has-children > a { font-size: 0.78rem; color: rgba(255, 255, 255, 0.62); padding-top: 1.1rem; }
  .primary-nav .sub-menu {
    margin-left: 0;
    padding: 0 0 0.6rem 0;
    border-left: 0;
  }
  .primary-nav .sub-menu a,
  .variant-mid .site-header .primary-nav .sub-menu a {
    padding: 0.7rem 0.1rem;
    font-size: 1.15rem;
    color: var(--white);
  }
  .primary-nav .nav .current-menu-item > a,
  .variant-mid .site-header .primary-nav .nav .current-menu-item > a { color: #e9b872; }
  .site-header.is-menu-open .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 560px;
    margin: 1.6rem auto 0;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--charcoal);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: none;
    transition: background-color 0.2s ease;
  }
  .site-header.is-menu-open .nav-cta:hover,
  .site-header.is-menu-open .nav-cta:focus-visible { background: #e2a454; }
}
@media (max-width: 400px) {
  .site-header { padding: 1rem 1.1rem; }
  .header-right { gap: 0; }
}
/* —— Phones (≤760px): full-screen hero + calmer sections —— */
@media (max-width: 760px) {
  .hero,
  .hero.hero--mid {
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    max-height: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0 1.75rem calc(7.25rem + env(safe-area-inset-bottom, 0px));
  }
  /* Portrait file (native 467×667, centred on the central tree): no extra zoom */
  .hero-bg {
    background-image: var(--hero-img-portrait, var(--hero-img, none));
    background-position: 50% 100%;
    background-size: cover;
  }
  .hero--mid .hero-bg::after {
    background: linear-gradient(
      to bottom,
      rgba(20, 18, 16, 0.42) 0%,
      rgba(20, 18, 16, 0.14) 22%,
      rgba(20, 18, 16, 0.16) 52%,
      rgba(20, 18, 16, 0.5) 82%,
      rgba(20, 18, 16, 0.42) 100%
    );
  }
  .hero-content {
    max-width: 22rem;
    text-align: center;
  }
  .hero-id,
  .hero--mid .hero-id {
    max-width: none;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.28;
    letter-spacing: -0.005em;
    text-wrap: balance;
    text-shadow: 0 1px 18px rgba(20, 18, 16, 0.45);
  }
  .hero-invite,
  .hero--mid .hero-invite {
    max-width: 19rem;
    margin: 1rem auto 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
    text-wrap: balance;
  }

  /* Dark band: tidier padding, smaller portrait that fits on screen */
  .section { padding: 3.75rem 1.5rem; }
  .band-dark #about { padding-bottom: 3.25rem; }
  .band-dark #approach { padding-top: 3.25rem; }
  .section h2,
  .contact h2,
  .faq-heading { font-size: 1.6rem; }
  .section-split { gap: 1.75rem; }
  .portrait-wrap,
  .band-dark .portrait-wrap { max-width: 210px; }
  .art-wrap { max-width: none; }
  .divider--on-dark { width: calc(100% - 3rem); }

  .faq { padding: 3.5rem 1.5rem; }
  .contact { padding: 3.75rem 1.5rem; }
  .site-footer { padding: 3.25rem 1.5rem 1.75rem; }

  /* Justified text on narrow screens: slightly smaller type and tighter word gaps
     keep the spacing even (iOS Safari / Android Chrome also hyphenate en-GB). */
  .page-shell .entry-content p,
  .band-dark .section p,
  .faq-a p {
    font-size: 1rem;
    word-spacing: -0.03em;
    hyphenate-limit-chars: 6 3 2;
  }

  /* Inner pages */
  .page-shell { padding-left: 1.5rem; padding-right: 1.5rem; }
  .page-shell .entry-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin: 2.1rem 0 0.7rem;
    text-wrap: balance;
  }
  .page-shell .entry-content > h2:first-child { margin-top: 0; }
  .page-band { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* —— 1.0.23: keep the hero painting sharp at in-between desktop widths ——
   The painting is 1000×667 (3:2) at native resolution. Between phones and 1200px,
   cap the hero at the painting's own proportions (height ≤ width ÷ 1.5) so `cover`
   fits the width and never zooms further into the picture as the window narrows.
   ≥1200px is unchanged. */
@media (min-width: 761px) and (max-width: 1199px) {
  .hero {
    min-height: min(70vh, 66.667vw);
    min-height: min(70dvh, 66.667vw);
    max-height: min(780px, 66.667vw);
  }
}
@media (min-width: 761px) and (max-width: 860px) {
  .hero { min-height: min(62vh, 66.667vw); }
}

/* —— 1.0.27: Tilly-style hero headline (desktop shrunk) + site-name typography ——
   H1 still Montserrat 500, letter-spacing -1px, white, no text-shadow,
   left-aligned (centred on phones), 70% content width at bottom of hero.
   Desktop sizes reduced from Tilly's exact 55/75 after Ed said the H1 was too big:
   H1   52px >1366px · 40px ≤1366px · 36px ≤760px (phones unchanged).
   Name Montserrat 600, 32px >1366px · 22px ≤1366px · 20px ≤760px (Ed 2026-10-08: smaller on desktop),
        letter-spacing normal, white, no text-shadow (unchanged). */
.logo,
.variant-mid .site-header .logo {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-shadow: none;
}
.hero-id,
.hero--mid .hero-id {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1px;
  max-width: 70%;
  text-shadow: none;
}
.hero-invite,
.hero--mid .hero-invite {
  margin-top: 1.25rem;
  font-size: 1.15rem;
}
.footer-name { font-family: var(--display); letter-spacing: normal; }
@media (min-width: 1367px) {
  .logo,
  .variant-mid .site-header .logo { font-size: 32px; }
  .hero-id,
  .hero--mid .hero-id { font-size: 52px; }
}
@media (max-width: 860px) {
  .hero-id,
  .hero--mid .hero-id { max-width: none; }
}
@media (max-width: 760px) {
  .logo,
  .variant-mid .site-header .logo { font-size: 20px; font-weight: 600; letter-spacing: normal; }
  .hero-id,
  .hero--mid .hero-id {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -1px;
    text-align: center;
    text-shadow: none;
  }
  .hero-content { max-width: 24rem; }
  .hero-invite,
  .hero--mid .hero-invite { margin-top: 1.1rem; font-size: 0.95rem; }
}

/* —— 1.0.26: Approach row gets its own, deeper band —— */
.band-dark--approach { background: var(--band-approach); }
.band-dark #about { padding-bottom: 5.5rem; }
.band-dark--approach #approach { padding-top: 5.5rem; }
@media (max-width: 760px) {
  .band-dark #about { padding-bottom: 3.75rem; }
  .band-dark--approach #approach { padding-top: 3.75rem; }
}

/* —— 1.0.26: portrait renders as a plain image ——
   Ed saw the About portrait break into coloured blocks in Chrome on Windows. The portrait was
   position: sticky, which puts it on its own GPU-composited layer, and it was a 872px Display-P3
   JPEG drawn at ~280px. Both are removed: no sticky layer, and sRGB size variants via srcset. */
.portrait-wrap,
.page-portrait {
  position: static;
  top: auto;
}
.portrait-wrap img { object-fit: initial; object-position: initial; }
