/* ─────────────────────────────────────────────────────────────
   PCM VISUAL ELEVATION v3 — "dim-lit concierge evening"
   Loaded AFTER pcm.css on the homepage and /vision/ only; scoped by
   body.pcm-elev so subpages are untouched. Photography slots documented in
   /pcm/assets/photos/README.md.
   ───────────────────────────────────────────────────────────── */

:root {
  --pcm-ink: #062647;
  --pcm-ink-deep: #04203D;
  --pcm-navy: #0A3B7A;
  --pcm-brass: #a8874f;
  --pcm-brass-soft: #c4a76e;
  --pcm-cream: #f4efe6;
  --pcm-linen: #efe9dd;
  --pcm-walnut: #4a3628;
  --pcm-hairline: rgba(168, 135, 79, 0.35);
  --pcm-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --pcm-sans: 'Instrument Sans', 'Inter', system-ui, sans-serif;
}

body.pcm-elev {
  background: var(--pcm-linen);
  font-family: var(--pcm-sans);
  color: #232a38;
}
body.pcm-elev h1, body.pcm-elev h2, body.pcm-elev h3, body.pcm-elev h4 {
  font-family: var(--pcm-serif);
  font-weight: 480;
  letter-spacing: 0.005em;
}
body.pcm-elev .eyebrow {
  font-family: var(--pcm-sans);
  letter-spacing: 0.22em;
  color: var(--pcm-brass);
}
body.pcm-elev section { padding-top: 88px; padding-bottom: 88px; } /* +10% rhythm */
body.pcm-elev section.alt { background: #e9e2d3; }

/* Frosted nav (injected .site-header) */
body.pcm-elev .site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 38, 71, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pcm-hairline);
}
body.pcm-elev .site-header a { color: var(--pcm-cream); }
/* Top-level nav link hover/focus. The previous value here was #f5ecd9, chosen
   on the assumption that the hovered link stays on the navy bar. It does not:
   pcm.css .site-nav a:hover simultaneously paints a --gold-soft #F5ECD9 wash,
   which is the same colour, so every top-level link measured 1.00:1 and
   vanished under the cursor. Ink on that wash is 13.00:1, the identical
   pairing the Services toggle uses, so link and toggle now behave the same.
   The RESTING state one line above is untouched: cream on navy, 13.33:1.
   The background is declared here rather than inherited so focus-visible,
   which pcm.css does not paint, gets the same ground as hover. */
body.pcm-elev .site-header .site-nav a:hover,
body.pcm-elev .site-header .site-nav a:focus-visible {
  color: var(--pcm-ink);
  background: var(--gold-soft);
}

/* The Services toggle is a <button>, so the `a`-only rule two lines above never
   reaches it. It fell through to pcm.css .site-nav .has-dropdown > button
   (--charcoal) and rendered 1.06:1 on the navy bar while every link beside it
   sat at 13.33:1. Cream matches those siblings exactly at rest.
   Hover and keyboard focus are the same thing here, because the panel opens on
   both: pcm.css paints a --gold-soft wash behind the button in that state, and
   on that wash cream measures 1.03:1 and gold-deep 2.99:1, so neither clears
   4.5. --pcm-ink does, at 13.00:1, and it is the pairing already used for the
   dropdown panel immediately below. */
body.pcm-elev .site-header .site-nav .has-dropdown > button { color: var(--pcm-cream); }
body.pcm-elev .site-header .site-nav .has-dropdown > button:hover,
body.pcm-elev .site-header .site-nav .has-dropdown > button:focus-visible {
  color: var(--pcm-ink);
  background: var(--gold-soft);
}

/* Services dropdown panel is an opaque white surface, NOT the navy bar, so its
   anchors must not inherit the cream set two rules above (that pairing measured
   1.15:1 — effectively invisible). Navy ink on white = 15.26:1. Gold carries the
   hover as the background wash exactly as .site-nav a:hover does elsewhere;
   gold-deep as hover TEXT was rejected at 2.99:1 on that wash, so the ink stays
   and the hovered pairing measures 13.00:1. The .site-nav .dropdown-panel chain
   out-specifies .site-header a on its own, independent of source order. */
body.pcm-elev .site-header .site-nav .dropdown-panel a { color: var(--pcm-ink); }
body.pcm-elev .site-header .site-nav .dropdown-panel a:hover,
body.pcm-elev .site-header .site-nav .dropdown-panel a:focus-visible {
  color: var(--pcm-ink);
  background: var(--gold-soft);
}
body.pcm-elev .site-header .site-nav .dropdown-panel a:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

/* ── HERO: crossfading gallery ── */
.pcm-hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  background: var(--pcm-ink-deep); overflow: hidden; isolation: isolate;
}
.pcm-hero-slides { position: absolute; inset: 0; z-index: 0; }
.pcm-hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
  will-change: opacity, transform;
}
.pcm-hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .pcm-hero-slide.is-active { animation: pcmKenBurns 7.5s ease-out forwards; }
  @keyframes pcmKenBurns { from { transform: scale(1); } to { transform: scale(1.05); } }
}
/* v4.1 Synergy treatment: white text directly on vibrant imagery. Legibility
   from a LOCAL directional gradient at the text side (never a full-image wash)
   plus layered text-shadow. Image stays clean across 60%+ of the frame. */
.pcm-hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top right, rgba(6,38,71,0.72) 0%, rgba(6,38,71,0.54) 30%, rgba(6,38,71,0) 52%);
}
.pcm-hero .container { position: relative; z-index: 2; padding-bottom: 96px; padding-top: 140px; }
.pcm-hero .eyebrow,
.pcm-hero h1,
.pcm-hero .lead {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(6,38,71,0.45), 0 8px 28px rgba(6,38,71,0.35);
}
.pcm-hero .eyebrow { color: rgba(255,255,255,0.92); }
.pcm-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.08; max-width: 17ch; font-weight: 520; }
.pcm-hero h1 em { font-style: italic; color: #e7d5ae; }
.pcm-hero .lead { color: rgba(255,255,255,0.94); max-width: 54ch; font-size: clamp(1rem, 1.6vw, 1.12rem); font-weight: 500; }
.pcm-ecg { display: block; margin: 22px 0 6px; width: min(360px, 70vw); height: 28px; }
.pcm-ecg polyline {
  fill: none; stroke: #ffffff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.pcm-hero .pcm-ecg { filter: drop-shadow(0 1px 2px rgba(6,38,71,0.45)); }
@media (prefers-reduced-motion: no-preference) {
  .pcm-ecg polyline { stroke-dasharray: 640; stroke-dashoffset: 640; animation: pcmEcg 2.4s ease-out 0.4s forwards; }
  @keyframes pcmEcg { to { stroke-dashoffset: 0; } }
}
.pcm-hero-cards { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.pcm-hero-cards .btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.85); color: #ffffff;
  text-shadow: 0 1px 2px rgba(6,38,71,0.45);
  border-radius: 10px; padding: 15px 26px; font-family: var(--pcm-sans); font-weight: 600;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.pcm-hero-cards .btn:hover { background: rgba(255,255,255,0.18); border-color: #ffffff; transform: translateY(-1px); }
.pcm-hero-cards .btn.btn-primary { background: var(--pcm-brass); color: #fff; border-color: transparent; text-shadow: none; box-shadow: 0 6px 20px rgba(6,38,71,0.25); }
.pcm-hero-cards .btn.btn-primary:hover { background: #93753f; }

/* v4.15 header: the navy ink bar renders identically at every scroll position
   (client-approved). The former transparent-over-hero / frosted-after-80px states are
   REMOVED — the header stays sticky and in-flow, so hero content can never sit under it. */
body.pcm-elev .site-header .site-brand-mark { color: var(--pcm-cream) !important; }
body.pcm-elev .site-header .site-brand-name,
body.pcm-elev .site-header .site-brand-tag { color: var(--pcm-cream); }
body.pcm-elev .site-header .site-brand-tag { opacity: 0.75; }
body.pcm-elev .site-header .menu-toggle { color: var(--pcm-cream); }
/* The mobile Services control is a <summary>, not an <a>, so the
   `.site-header a` rule never reached it and it inherited body.pcm-elev's
   #232a38 onto the navy bar at 1.06:1. --pcm-cream is the value the mobile
   links around it already resolve to, so this matches its neighbours. */
body.pcm-elev .site-header .mobile-nav summary { color: var(--pcm-cream); }
.pcm-hero .scroll-cue { position: absolute; z-index: 2; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.85); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.65rem; text-shadow: 0 1px 8px rgba(6,38,71,0.6); }

/* ── THE SPACE: scroll-snap gallery strip (light) ── */
.pcm-space { background: var(--pcm-linen); padding: 96px 0; border-top: 1px solid var(--pcm-hairline); border-bottom: 1px solid var(--pcm-hairline); }
.pcm-space .eyebrow { color: #7a5f33; }
.pcm-space h2 { color: var(--pcm-ink); }
.pcm-space-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 34px max(24px, calc((100vw - 1140px) / 2)) 10px;
  scrollbar-width: thin; scrollbar-color: var(--pcm-brass) transparent;
}
.pcm-space-fig {
  flex: 0 0 min(72vw, 480px); scroll-snap-align: center; margin: 0;
  border: 1px solid var(--pcm-hairline); padding: 10px; background: #fff;
}
.pcm-space-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pcm-space-fig figcaption {
  padding: 12px 4px 4px; font-family: var(--pcm-serif); font-style: italic;
  color: #7a5f33; font-size: 1.02rem; letter-spacing: 0.02em;
}

/* ── PROGRAM PILLAR CARDS: image-topped, duotone-warm ── */
body.pcm-elev .home-programs-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1020px) { body.pcm-elev .home-programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { body.pcm-elev .home-programs-grid { grid-template-columns: 1fr; } }
body.pcm-elev .home-program-card {
  padding: 0 0 22px; overflow: hidden; border-radius: 12px; background: #fff;
  border: 1px solid var(--pcm-hairline);
}
.pcm-program-img { position: relative; aspect-ratio: 4 / 5; max-height: 300px; overflow: hidden; margin-bottom: 16px; }
.pcm-program-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 400ms ease;
}
body.pcm-elev .home-program-card:hover .pcm-program-img img { transform: scale(1.04); }
body.pcm-elev .home-program-card .home-program-num,
body.pcm-elev .home-program-card h4,
body.pcm-elev .home-program-card p { padding-left: 20px; padding-right: 20px; }
body.pcm-elev .home-program-card h4 { font-size: 1.28rem; }

/* ── CARE TEAM: light backdrop, monogram cards (gold-on-ink), unlabeled editorial panel ── */
.pcm-team { background: linear-gradient(180deg, #ffffff 0%, var(--pcm-linen) 100%); }
.pcm-team .eyebrow { color: #7a5f33; }
.pcm-team h2 { color: var(--pcm-ink); }
.pcm-team .lead { color: #3c4356; }
.pcm-team-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: stretch; }
@media (max-width: 900px) { .pcm-team-layout { grid-template-columns: 1fr; } }
.pcm-team-panel { position: relative; border: 1px solid var(--pcm-hairline); padding: 10px; min-height: 320px; background: #fff; }
.pcm-team-panel img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block;
}
body.pcm-elev .pcm-team .provider-grid--two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { body.pcm-elev .pcm-team .provider-grid--two { grid-template-columns: 1fr; } }
body.pcm-elev .pcm-team .provider-card {
  background: #ffffff; border: 1px solid var(--pcm-hairline); border-radius: 12px;
  text-decoration: none; overflow: hidden; transition: border-color 200ms ease, box-shadow 200ms ease;
  display: flex; flex-direction: column;
}
body.pcm-elev .pcm-team .provider-card:hover { border-color: var(--pcm-brass); box-shadow: 0 10px 28px rgba(10,59,122,0.08); }
.pcm-monogram {
  aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(168,135,79,0.20) 0%, rgba(6,38,71,0) 62%), var(--pcm-ink-deep);
  border-bottom: 1px solid var(--pcm-hairline);
}
.pcm-monogram span {
  font-family: var(--pcm-serif); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--pcm-brass);
  letter-spacing: 0.14em; line-height: 1;
}
body.pcm-elev .pcm-team .provider-card-body { padding: 20px 22px 24px; }
body.pcm-elev .pcm-team .provider-card h3 { color: var(--pcm-ink); font-size: 1.35rem; margin: 0 0 4px; }
body.pcm-elev .pcm-team .provider-card-title { color: #7a5f33; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
body.pcm-elev .pcm-team .provider-card-spec { color: #3c4356; font-size: 0.92rem; line-height: 1.6; }
body.pcm-elev .pcm-team .btn-ghost { color: #7a5f33; border: 1px solid var(--pcm-hairline); border-radius: 8px; padding: 12px 22px; }
body.pcm-elev .pcm-team .btn-ghost:hover { border-color: var(--pcm-brass); color: var(--pcm-ink); }

/* ── MEMBERSHIP dark panel: image-free, low gold radial ── */
body.pcm-elev .concierge-panel {
  background:
    radial-gradient(90% 120% at 15% 110%, rgba(168,135,79,0.16) 0%, rgba(168,135,79,0) 55%),
    var(--pcm-ink-deep);
  border-top: 1px solid var(--pcm-hairline);
  border-bottom: 1px solid var(--pcm-hairline);
}
body.pcm-elev .concierge-panel h2 { color: var(--pcm-cream); }
body.pcm-elev .concierge-panel h2 em { color: var(--pcm-brass-soft); }
body.pcm-elev .concierge-panel p { color: rgba(244,239,230,0.82); max-width: 62ch; }
body.pcm-elev .concierge-panel .concierge-panel-cta { color: var(--pcm-brass-soft); font-weight: 600; }
body.pcm-elev .concierge-panel .concierge-panel-cta:hover { color: var(--pcm-cream); }

/* ── quiet supporting sections ── */
body.pcm-elev .promise-band { background: var(--pcm-linen); border-bottom: 1px solid var(--pcm-hairline); }
body.pcm-elev .promise-cell h4 { color: var(--pcm-navy); }
body.pcm-elev .promise-cell-mark { color: var(--pcm-brass); }
body.pcm-elev .quote { border-left: 2px solid var(--pcm-hairline); padding-left: 18px; }
body.pcm-elev .quote-text { font-family: var(--pcm-serif); font-size: 1.02rem; color: #2c3345; }
body.pcm-elev .home-insight-card, body.pcm-elev .service-tile { border: 1px solid var(--pcm-hairline); border-radius: 12px; }
body.pcm-elev .home-insight-card:hover, body.pcm-elev .service-tile:hover { border-color: var(--pcm-brass); }
body.pcm-elev .final-cta {
  background: radial-gradient(80% 130% at 85% -10%, rgba(168,135,79,0.14) 0%, rgba(168,135,79,0) 60%), var(--pcm-ink);
}
body.pcm-elev .final-cta h2, body.pcm-elev .final-cta .eyebrow { color: var(--pcm-cream); }
body.pcm-elev .final-cta .eyebrow { color: var(--pcm-brass-soft); }
body.pcm-elev .final-cta p { color: rgba(244,239,230,0.82); }
body.pcm-elev .final-cta .final-cta-phone a { color: var(--pcm-brass-soft); }

/* reveal-on-scroll (JS adds .pcm-reveal; motion-safe only) */
@media (prefers-reduced-motion: no-preference) {
  .pcm-reveal { opacity: 0; transform: translateY(14px); transition: opacity 650ms ease, transform 650ms ease; }
  .pcm-reveal.is-in { opacity: 1; transform: none; }
}

/* preview provider portraits (owner-approved interim; shared by homepage + /vision/) */
.pcm-vision-portrait { position: relative; aspect-ratio: 4 / 5; max-height: 340px; overflow: hidden; border-bottom: 1px solid var(--pcm-hairline); }
.pcm-vision-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.pcm-vision-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,38,71,0.05) 55%, rgba(6,38,71,0.35) 100%); }
.pcm-sample-tag { display:inline-block; margin-left:8px; font-family: var(--pcm-sans); font-size:0.6rem; font-weight:700; letter-spacing:0.14em; color:#062647; background:var(--pcm-brass-soft); border-radius:4px; padding:2px 7px; vertical-align:middle; text-transform:uppercase; }
.pcm-preview-note { text-align:center; margin-top:26px; font-family: var(--pcm-sans); font-size:0.78rem; color:#8a8f9c; letter-spacing:0.04em; }

/* vision demo banner */
.pcm-vision-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--pcm-brass); color: #062647; text-align: center;
  font-family: var(--pcm-sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 12px;
}
body.pcm-vision { padding-top: 34px; }
body.pcm-vision .site-header { top: 34px; }

/* small screens */
@media (max-width: 640px) {
  /* Shorter mobile hero: keeps the cover crop width-dominated so the tight
     hero-team-m pair crop shows BOTH faces (needs hero height <= ~489px at
     390px wide; ~56vh + trimmed paddings lands under it). */
  .pcm-hero { min-height: 56vh; }
  .pcm-hero .container { padding-top: 96px; padding-bottom: 52px; }
  .pcm-hero .lead { font-size: 0.98rem; }
}
@media (max-width: 420px) {
  .pcm-space-track { padding-left: 16px; padding-right: 16px; }
  body.pcm-elev section { padding-top: 64px; padding-bottom: 64px; }
}
