/* ---------------------------------------------------------------------------
   Our Approach to Care (Jaan's brief and mockup, 2 Oct 2026).

   Page-scoped styles, linked from the view alone. Everything here is built on
   the locked tokens (the --color-* and --font-* custom properties that the
   theme emits) and the site's one lift shadow; nothing new is introduced.
   Depth comes from layering, not effects: the benefits strip overlaps the
   hero, badges float on photographs, two sections sit as raised ivory panels
   on a soft sage ground, and the closing band's photograph blends into it.
   Motion is hover-only and entrance-only, and every transform used for
   movement is switched off under prefers-reduced-motion.
--------------------------------------------------------------------------- */

.approach {
  --approach-beat: 56px;
  --approach-radius: 1.75rem;
  --approach-photo-radius: 1.375rem;
}
@media (min-width: 768px)  { .approach { --approach-beat: 72px; } }
@media (min-width: 1024px) { .approach { --approach-beat: 88px; --approach-radius: 2rem; } }

/* The page owns its own rhythm (the brief asks for a more generous beat than
   the interior default), so every section opts out of the site rule with
   .sanna-flush and takes the beat here. */
.approach > section.sanna-flush { padding-block: var(--approach-beat); }
.approach > .approach-hero,
.approach > .approach-strip { padding-block: 0; }

.approach-frame {
  max-width: 85rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px)  { .approach-frame { padding-inline: 2.5rem; } }
@media (min-width: 1024px) { .approach-frame { padding-inline: 3.5rem; } }

/* Type: the page's hero is the one place the site lets a heading run large. */
.approach h1 { font-size: clamp(2.75rem, 5.2vw, 4.25rem); line-height: 1.04; text-wrap: balance; }
.approach h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1; text-wrap: balance; }
.approach h3 { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; color: var(--color-ink); }
.approach .approach-lead { max-width: 34rem; }
.approach .approach-lead p + p { margin-top: 1rem; }

/* CTA buttons carry the arrow, which steps forward on hover. */
.approach-cta img { width: 1.25rem; height: 1.25rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .approach-cta img { transition: transform 220ms ease; }
  .approach-cta:hover img { transform: translateX(3px); }
}

/* ----- Hero ------------------------------------------------------------- */
.approach-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-ivory) 0%, var(--color-cream) 100%);
}
.approach-hero-grid { display: grid; }
.approach-hero-copy {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem 3.25rem;
}
.approach-hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-cream);
}
.approach-hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 28%;
}
/* The photograph settles into the page: a fade at its foot on phones, where
   the strip sits over it, and a fade on its left edge from lg, where it meets
   the copy. */
.approach-hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--color-cream) 85%, transparent) 100%);
}
@media (min-width: 768px) {
  .approach-hero-copy { padding: 3rem 2.5rem 4.5rem; }
}
@media (min-width: 1024px) {
  .approach-hero-grid { grid-template-columns: 45fr 55fr; min-height: 38rem; }
  .approach-hero-copy { padding: 4.5rem 3rem 7.5rem 3.5rem; align-self: center; }
  .approach-hero-copy .approach-lead { max-width: 30rem; }
  .approach-hero-media { aspect-ratio: auto; min-height: 100%; }
  .approach-hero-media img { object-position: 50% 30%; }
  .approach-hero-media::after {
    background:
      linear-gradient(90deg, var(--color-cream) 0%, color-mix(in srgb, var(--color-cream) 55%, transparent) 10%, transparent 26%),
      linear-gradient(180deg, transparent 70%, color-mix(in srgb, var(--color-cream) 70%, transparent) 100%);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .approach-hero-media img { transition: transform 900ms ease; }
  .approach-hero:hover .approach-hero-media img { transform: scale(1.01); }
}

/* ----- Floating benefits strip ----------------------------------------- */
.approach-strip { position: relative; z-index: 2; margin-top: -2.5rem; }
@media (min-width: 1024px) { .approach-strip { margin-top: -3rem; } }
.approach-strip-card {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 1.5rem;
  box-shadow: var(--sanna-lift);
  padding: 1.25rem;
}
.approach-strip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 0.75rem;
}
.approach-strip-item {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.25rem;
}
.approach-strip-item p {
  font-size: 1.0625rem; line-height: 1.3; font-weight: 500;
  color: var(--color-ink); text-wrap: balance;
}
@media (min-width: 768px) {
  .approach-strip-card { padding: 1.5rem 1rem; }
  .approach-strip-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .approach-strip-item { padding: 0.25rem 1.25rem; border-left: 1px solid var(--color-line); }
  .approach-strip-item:first-child { border-left: 0; }
}
@media (min-width: 1024px) {
  .approach-strip-item { gap: 1.125rem; padding-inline: 1.75rem; }
}

/* ----- Raised panels on a soft sage ground ----------------------------- */
.approach-ground {
  position: relative;
  background:
    radial-gradient(ellipse 55% 60% at 0% 20%,  color-mix(in srgb, var(--color-sage) 85%, transparent) 0%, transparent 70%),
    radial-gradient(ellipse 50% 55% at 100% 85%, color-mix(in srgb, var(--color-sage) 75%, transparent) 0%, transparent 70%);
}
.approach-panel {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: var(--approach-radius);
  box-shadow: var(--sanna-lift);
  padding: 1.75rem 1.25rem;
  overflow: hidden;
}
@media (min-width: 768px)  { .approach-panel { padding: 2.5rem; } }
@media (min-width: 1024px) { .approach-panel { padding: 3.5rem; } }
/* The personalised panel's photograph reaches the panel's own edge on the left. */
.approach-panel--flush { padding: 0; }
.approach-panel--flush .approach-panel-copy { padding: 1.75rem 1.25rem; }
@media (min-width: 768px)  { .approach-panel--flush .approach-panel-copy { padding: 2.5rem; } }
@media (min-width: 1024px) { .approach-panel--flush .approach-panel-copy { padding: 3.5rem 3.5rem 3.5rem 3rem; } }

.approach-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) {
  .approach-split { gap: 3.5rem; }
  .approach-split--difference   { grid-template-columns: 1fr 1.1fr; }
  .approach-split--life         { grid-template-columns: 38fr 62fr; gap: 3rem; }
  .approach-split--personalised { grid-template-columns: 46fr 54fr; gap: 0; align-items: stretch; }
  .approach-split--visit        { grid-template-columns: 45fr 55fr; }
}

/* ----- Photographs ------------------------------------------------------ */
.approach-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--approach-photo-radius);
  box-shadow: var(--sanna-lift);
  background: var(--color-forest-deep);
}
.approach-photo img, .approach-photo picture { display: block; width: 100%; height: 100%; }
.approach-photo img { object-fit: cover; }
.approach-photo--wide { aspect-ratio: 16 / 10; }
.approach-photo--slide { aspect-ratio: 4 / 3; }
.approach-photo--portrait { aspect-ratio: 4 / 3; }
@media (min-width: 1024px) {
  .approach-photo--portrait { aspect-ratio: auto; height: 100%; min-height: 28rem; border-radius: var(--approach-radius) 0 0 var(--approach-radius); box-shadow: none; }
}
.approach-photo-wrap { position: relative; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .approach-photo { transition: transform 220ms ease, box-shadow 220ms ease; }
  .approach-photo-wrap:hover > .approach-photo,
  .approach-slide:hover .approach-photo {
    transform: translateY(-4px);
    box-shadow:
      0 -7px 22px -12px color-mix(in srgb, var(--color-forest-deep) 24%, transparent),
      0 22px 34px -14px color-mix(in srgb, var(--color-forest-deep) 40%, transparent),
      0 2px 5px color-mix(in srgb, var(--color-forest-deep) 6%, transparent);
  }
}

/* A scrim at the foot of a photograph that carries words. */
.approach-photo--scrim::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, color-mix(in srgb, var(--color-forest-deep) 72%, transparent) 0%, transparent 55%);
}
/* The closing band's photograph blends into the band on its left. */
.approach-photo--blend::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--color-forest-deep) 0%, color-mix(in srgb, var(--color-forest-deep) 45%, transparent) 18%, transparent 40%);
}

/* The decorative line in the brand's italic. Decorative only: aria-hidden. */
.approach-script {
  position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 1;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.125rem); line-height: 0.95;
  color: var(--color-ivory);
  text-shadow: 0 2px 18px color-mix(in srgb, var(--color-forest-deep) 60%, transparent);
  transform: rotate(-4deg);
  transform-origin: left bottom;
}
@media (min-width: 1024px) { .approach-script { left: 2rem; bottom: 2rem; } }

/* ----- Checklist and principles ---------------------------------------- */
.approach-checklist { display: grid; gap: 0.875rem; margin-top: 1.5rem; }
.approach-checklist li { display: flex; align-items: center; gap: 0.875rem; font-size: 1.0625rem; color: var(--color-ink); }
.approach-tick {
  flex: none; width: 1.75rem; height: 1.75rem; border-radius: 999px;
  background: var(--color-forest); display: grid; place-items: center;
}
.approach-tick img { width: 1rem; height: 1rem; filter: brightness(0) invert(1); }

.approach-principles { display: grid; gap: 1rem 1.5rem; margin-top: 1.75rem; }
@media (min-width: 640px) { .approach-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.approach-principle { display: flex; align-items: center; gap: 0.875rem; padding: 0.25rem; border-radius: 0.75rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .approach-principle, .approach-principle > *, .approach-strip-item > * { transition: transform 200ms ease, background-color 200ms ease; }
  .approach-principle:hover .approach-badge-circle { background: var(--color-champagne); }
  .approach-principle:hover h3 { transform: translateX(2px); }
}

/* ----- Life at Sanna band and gallery ---------------------------------- */
.approach-life { background: var(--color-sage); position: relative; overflow: hidden; }

.approach-gallery { position: relative; }
.approach-track {
  position: relative;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.5rem;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0.75rem 0.5rem 1rem;
  margin: -0.75rem -0.5rem -1rem;
}
.approach-track::-webkit-scrollbar { display: none; }
.approach-track:focus-visible { outline: 2px solid var(--color-forest); outline-offset: 4px; border-radius: var(--approach-photo-radius); }
.approach-track > ul { display: flex; gap: 1.25rem; }
.approach-slide { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 768px) { .approach-slide { flex-basis: calc(50% - 0.625rem); } }
/* The mockup's second picture sits at a slight angle. Only where there is
   room and motion is welcome; a tilt is still a transform, so it rests flat
   under reduced motion. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .approach-slide:nth-child(even) .approach-photo { transform: rotate(1.5deg); }
  .approach-slide:nth-child(even):hover .approach-photo { transform: rotate(1.5deg) translateY(-4px); }
}

.approach-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.approach-gallery-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: var(--color-card); border: 1px solid var(--color-line);
  box-shadow: var(--sanna-lift);
  display: grid; place-items: center; cursor: pointer;
}
.approach-gallery-btn img { width: 1.25rem; height: 1.25rem; }
.approach-gallery-btn--prev img { transform: rotate(180deg); }
.approach-gallery-btn[disabled] { opacity: 0.4; cursor: default; box-shadow: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .approach-gallery-btn { transition: transform 180ms ease, box-shadow 180ms ease; }
  .approach-gallery-btn:not([disabled]):hover { transform: translateY(-1px); }
}
.approach-dots { display: flex; }
.approach-dot { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; cursor: pointer; background: none; border: 0; border-radius: 999px; }
.approach-dot::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 999px;
  background: color-mix(in srgb, var(--color-forest) 35%, transparent);
}
.approach-dot[aria-current="true"]::before { background: var(--color-forest); width: 0.75rem; height: 0.75rem; }

/* ----- Closing band ----------------------------------------------------- */
.approach-visit {
  position: relative; overflow: hidden;
  background: var(--color-forest-deep);
  color: var(--color-ivory);
  border-radius: var(--approach-radius) var(--approach-radius) 0 0;
}
.approach-visit h2 { color: var(--color-ivory); }
.approach-visit .approach-lead p { color: color-mix(in srgb, var(--color-ivory) 85%, transparent); }

/* ----- Botanical line art ----------------------------------------------- */
.approach-botanical {
  position: absolute; pointer-events: none; user-select: none;
  color: var(--color-brand-gold);
  opacity: 0.55;
  width: 9rem; height: auto;
}
@media (min-width: 1024px) { .approach-botanical { width: 13rem; } }
.approach-botanical--hero  { left: -2.5rem; bottom: 1rem; }
.approach-botanical--life  { right: -3rem; top: 1rem; transform: scaleX(-1); opacity: 0.5; }
.approach-botanical--panel { right: -2rem; top: -1rem; transform: scaleX(-1) rotate(12deg); opacity: 0.45; }
/* On the dark band the sprigs run behind body copy, so they stay faint enough
   that a line under a glyph still clears AA: measured 8:1 and above. */
.approach-botanical--visit { color: color-mix(in srgb, var(--color-sage) 40%, transparent); opacity: 0.35; }
.approach-botanical--visit-a { left: -3rem; bottom: -2rem; }
.approach-botanical--visit-b { right: -2.5rem; top: -2rem; transform: scaleX(-1) rotate(160deg); }
@media (max-width: 767px) {
  .approach-botanical--hero, .approach-botanical--life, .approach-botanical--panel { display: none; }
}

/* ----- Motion backstop -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .approach *, .approach *::before, .approach *::after { transition: none !important; animation: none !important; }
  .approach-photo, .approach-hero-media img, .approach-principle h3 { transform: none !important; }
}

/* Grid children default to min-width:auto, and the scroll-snap gallery inside
   one would otherwise push its column wider than the page on a phone. */
.approach-hero-grid > *, .approach-split > * { min-width: 0; }
.approach-gallery { min-width: 0; }

/* Phones: the strip's labels need the whole cell, so the icon sits above the
   words rather than beside them, and the circle steps down a size. */
@media (max-width: 767px) {
  .approach-strip-item { flex-direction: column; text-align: center; gap: 0.625rem; padding: 0.25rem 0.125rem; }
  .approach-strip-item p { font-size: 1rem; }
  .approach-strip-item .approach-badge-circle { width: 3rem; height: 3rem; }
  .approach-strip-item .approach-badge-circle img { width: 1.75rem; height: 1.75rem; }
}

/* Hero composition (mockup): the photograph runs to the right edge of the
   screen from lg, and the copy column takes the frame's left padding itself,
   lining up with every section below it. */
.approach-hero-copy { padding-inline: 1.25rem; }
@media (min-width: 768px) { .approach-hero-copy { padding-inline: 2.5rem; } }
@media (min-width: 1024px) {
  .approach-hero-copy { padding-left: max(3.5rem, calc((100vw - 85rem) / 2 + 3.5rem)); padding-right: 3rem; }
}
