/* =============================================================================
   Sections added directly in CodeIgniter.

   A SEPARATE STYLESHEET, not an addition to styles.css, because styles.css is
   a copy of the legacy file and is replaced wholesale whenever the legacy site
   is imported. Anything written into it would be lost on the next import
   without anyone noticing. This file has no legacy counterpart, so nothing
   overwrites it.

   Loaded after styles.css, so it can lean on the tokens defined there
   (--sp-*, --ink, --gold-ink, --r-lg) and inherits whichever light/dark scope
   the surrounding .section establishes. That is why nothing here hardcodes a
   text colour: on .section--ivory the tokens resolve dark, on .section--forest
   they resolve light, and these rules work on both without a second set.
   ============================================================================= */

/* Lede paragraph under the section head. Capped in ch rather than px so the
   measure stays readable regardless of the font size the viewport lands on. */
.pitch__lede {
  max-width: 62ch;
  margin-top: var(--sp-4, 1rem);
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Two columns from 720px, one below.
   auto-fit with a minmax floor rather than a fixed column count: at awkward
   widths a hard `repeat(2, 1fr)` leaves a very short second column with one
   orphaned item, whereas this collapses to a single column on its own. */
.pitch__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--sp-3, 0.75rem) var(--sp-6, 2rem);
  margin-top: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
}

/* .term is inline-flex and centres its icon against a single line of text.
   These items run to two or three lines, so the icon is pulled to the top and
   the row switched to a grid - otherwise the tick floats to the vertical
   middle of a tall block and stops reading as a bullet. */
.pitch__list .term {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  line-height: 1.55;
}

.pitch__list .term .icon {
  /* 0.28em nudges the tick onto the text's optical baseline; centring on the
     line box sits it slightly high against the cap height. */
  margin-top: 0.28em;
  flex: none;
}

/* Closing line and call to action. */
.pitch__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4, 1rem) var(--sp-6, 2rem);
  margin-top: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  padding-top: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-top: 1px solid rgb(var(--gold-rgb, 215 180 106) / 28%);
}

.pitch__close {
  flex: 1 1 22rem;
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.35;
  color: var(--ink);
}

/* The button must not stretch across the full row on wide screens, and must
   not be squeezed to a couple of words on narrow ones. */
.pitch__cta .btn { flex: 0 0 auto; }

@media (max-width: 559px) {
  .pitch__cta .btn { width: 100%; justify-content: center; }
}

/* =============================================================================
   Owner care - three cards, not a second bullet list.
   ============================================================================= */
.care__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  margin-top: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  /* Cards lift on hover; without this the shadow is clipped by the grid. */
  padding-bottom: 0.5rem;
}

/*
 * Rebuilt 2026-08-24. The cards were a 6% gold wash on a section whose own
 * background is a cream-to-gold gradient, with box-shadow: none - so they had
 * almost nothing to separate them from what they sat on, and the row read as
 * one undifferentiated block rather than three services.
 *
 * The surface is now near-white and carries a real shadow, which is what makes
 * a card look like a card on a light ground. Everything else here is in service
 * of the same thing: a gold rule across the top edge that grows on hover, a
 * filled icon badge instead of a faint tint, and a lift.
 */
.care__card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.7rem;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  background: rgb(255 255 255 / 82%);
  border: 1px solid rgb(var(--gold-rgb, 215 180 106) / 38%);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgb(var(--midnight-rgb, 6 24 39) / 5%),
              0 10px 26px rgb(var(--midnight-rgb, 6 24 39) / 8%);
  overflow: hidden;
  transition: transform var(--dur, 380ms) var(--ease, ease),
              box-shadow var(--dur, 380ms) var(--ease, ease),
              border-color var(--dur, 380ms) var(--ease, ease);
}

/* Gold rule along the top edge. Scales from the left on hover rather than
   fading, so the movement reads as the card responding rather than blinking. */
.care__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg,
              rgb(var(--gold-rgb, 215 180 106)) 0%,
              rgb(var(--gold-rgb, 215 180 106) / 35%) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 480ms var(--ease, ease);
}

/*
 * !important, and not out of laziness.
 *
 * The entrance tween leaves GSAP's own inline transform on the element -
 * `transform: translate(0px, 0px); translate: none;` - and an inline style beats
 * a stylesheet rule, so the lift silently did nothing. It pins `translate` too,
 * so the standalone property is no escape either. Measured: hover computed to
 * matrix(1,0,0,1,0,0) with this declaration in place but unflagged.
 *
 * Overriding GSAP's own property would fight it; !important on a hover-only
 * declaration does not, because the entrance runs once and is finished long
 * before anyone can hover.
 */
.care__card:hover,
.care__card:focus-within {
  transform: translateY(-6px) !important;
  border-color: rgb(var(--gold-rgb, 215 180 106) / 70%);
  box-shadow: 0 2px 4px rgb(var(--midnight-rgb, 6 24 39) / 6%),
              0 22px 46px rgb(var(--midnight-rgb, 6 24 39) / 14%);
}

.care__card:hover::before,
.care__card:focus-within::before { transform: scaleX(1); }

/*
 * RP-46's dark card border lived here, scoped to `#owner-care li.care__card`.
 * RP-51 replaced the card row with the editorial spread below, so that selector
 * can no longer match anything and has been removed rather than left to rot.
 * The unscoped .care__card rules above STAY - the contact page's three
 * quick-contact cards are built from them.
 */

/* Sized in em against the card's own type rather than a fixed pixel box, so the
   badge tracks the text as the card scales down. */
.care__icon {
  display: grid;
  place-items: center;
  width: 2.9em;
  height: 2.9em;
  border-radius: 14px;
  background: linear-gradient(150deg,
              rgb(var(--gold-rgb, 215 180 106) / 30%) 0%,
              rgb(var(--gold-rgb, 215 180 106) / 12%) 100%);
  border: 1px solid rgb(var(--gold-rgb, 215 180 106) / 34%);
  color: var(--gold-ink);
  transition: transform var(--dur, 380ms) var(--ease, ease),
              background-color var(--dur, 380ms) var(--ease, ease);
}

.care__icon .icon { width: 1.35em; height: 1.35em; }

/* A small tilt, not a spin. The mark should acknowledge the pointer, not
   perform. */
.care__card:hover .care__icon,
.care__card:focus-within .care__icon { transform: translateY(-2px) rotate(-6deg) scale(1.06); }

.care__title { margin: 0; }
.care__text { margin: 0; color: var(--ink-soft); line-height: 1.6; }

/*
 * Pointer sheen. fx.js writes --mx/--my on the hovered card; this paints them.
 *
 * Gold rather than the teal the dark sections use: #owner-care renders on a
 * cream-to-gold gradient with near-white cards, and a teal wash on that ground
 * reads as a colour cast rather than a highlight.
 *
 * Behind the same hover/pointer query fx.js checks, so a touch device - where
 * there is no pointer to follow - never paints it.
 */
@media (hover: hover) and (pointer: fine) {
  .care__card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 320ms var(--ease, ease);
    background: radial-gradient(14rem 14rem at var(--mx, 50%) var(--my, 50%),
                rgb(var(--gold-rgb, 215 180 106) / 24%),
                rgb(var(--gold-rgb, 215 180 106) / 0%) 70%);
  }

  .care__card:hover::after { opacity: 1; }
}

/*
 * Everything above is decoration. Someone who has asked not to be moved gets
 * the same cards with none of the movement - the lift, the tilt and the rule
 * are all suppressed, and the rule is simply shown.
 */
@media (prefers-reduced-motion: reduce) {
  .care__card,
  .care__card::before,
  .care__icon { transition: none; }

  /* Also flagged, for the same reason as the rule it is cancelling. */
  .care__card:hover,
  .care__card:focus-within { transform: none !important; }

  .care__card::before { transform: scaleX(1); }

  .care__card:hover .care__icon,
  .care__card:focus-within .care__icon { transform: none; }

  /* A highlight that chases the pointer is motion too. */
  .care__card::after,
  .care__card:hover::after { display: none; }
}

/* Footer: one line saying what is sold and where. */
.footer-brand__what {
  margin-top: 0.35rem;
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
  max-width: 34ch;
}

/* Legal links sit with the copyright rather than as a fourth footer column. */
.footer-base__legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}
.footer-base__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.footer-base__legal a:hover,
.footer-base__legal a:focus-visible { color: var(--gold-ink); }

/* Sits under the submit button. */
.form-privacy {
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
}
.form-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.form-privacy a:hover,
.form-privacy a:focus-visible { color: var(--gold-ink); }

/* =============================================================================
   Payment schedule - compact by default. Nothing is removed from the DOM, so
   the accessible table and its caption still describe the full schedule.
   ============================================================================= */
.pay-table__controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--sp-3, 0.75rem);
}

.pay-table.is-compact .pay-stage { display: none; }

#stagesToggle .icon { transition: transform var(--dur, 0.25s) var(--ease, ease); }
#stagesToggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

@media (max-width: 559px) {
  .pay-table__controls { justify-content: stretch; }
  .pay-table__controls .btn { width: 100%; justify-content: center; }
}

/* =============================================================================
   Light section scope.

   The 2026-08-18 redesign made the site dark end to end: .section--ivory,
   --forest, --charcoal and --relief no longer pick a background at all, they
   pick an atmospheric bloom over one shared midnight ground. So "light
   background" is not a class swap - there is nothing left to swap to. It is a
   TONE INVERSION, and the only honest way to do it is to flip the tokens for
   the scope and let the components follow.

   That works here because .section reads `background: var(--bloom-b),
   var(--bloom-a), var(--surface)` and `color: var(--ink)`, and every rule
   inside .team / .member resolves through --line, --surface-sunken, --ink and
   --gold-ink. Not one component rule is repeated below; they all invert on
   their own. Anything dropped into this section later inverts too.

   Contrast measured against the new #F5F0E8 ground, not assumed:
     --ink        #061827            15.9:1
     --ink-soft   midnight 82%        9.6:1
     --ink-muted  midnight 68%        5.9:1
     --gold-ink   #8A6425             4.7:1
   ============================================================================= */
.section--light {
  /* No bloom. The blooms are dark radial glows; over a light ground they read
     as dirt rather than atmosphere. */
  --bloom-a: none;
  --bloom-b: none;

  --surface: var(--pearl);
  --surface-raised: #fff;
  /* Was rgb(0 0 0 / 26%) - a near-black plate. On light it has to be a tint of
     the ink, not a hole. This is what sits behind each portrait. */
  --surface-sunken: rgb(var(--midnight-rgb) / 6%);

  --ink: var(--midnight);
  --ink-soft: rgb(var(--midnight-rgb) / 82%);
  --ink-muted: rgb(var(--midnight-rgb) / 68%);

  /* Lines and washes are the same ratios as the dark theme with the pole
     flipped from Pearl/Silver to Midnight - so weights stay recognisable. */
  --line-strong: rgb(var(--midnight-rgb) / 34%);
  --line: rgb(var(--midnight-rgb) / 18%);
  --line-soft: rgb(var(--midnight-rgb) / 10%);
  --wash-strong: rgb(var(--midnight-rgb) / 10%);
  --wash: rgb(var(--midnight-rgb) / 6%);
  --wash-faint: rgb(var(--midnight-rgb) / 3%);

  /* The one token that CANNOT simply carry over. --gold-500 (#D7B46A) is
     documented as passing "on all three grounds" - all three of which are
     dark. On Pearl it measures 1.7:1 and is unreadable, and it is used by
     .eyebrow at --fs-micro and .member__role at --fs-sm, both small text
     needing 4.5:1. --gold-700 (#A77A36) only reaches 3.4:1, which is the
     large-text threshold, so it fails here too. This is that same gold taken
     down until it clears 4.5 - same hue, still reads as the brand gold. */
  --gold-ink: #8a6425;
  /* --gold is the DECORATIVE gold, kept separate from --gold-ink on purpose,
     so it gets its own treatment rather than the text value. .rule-gold paints
     a 1px hairline in it at 75%; --gold-500 over Pearl leaves a line you have
     to hunt for, next to the same rule reading crisply on the dark sections
     above and below. --gold-700 restores the weight. It is not a text tier and
     nothing here sets type in it. */
  --gold: var(--gold-700);

  /* Tuned for a dark ground: two stacked black layers at up to 46%. On light
     that is a bruise. Same geometry, alpha cut to roughly a third. */
  --shadow-sm: 0 1px 2px rgb(var(--midnight-rgb) / 8%), 0 6px 18px rgb(var(--midnight-rgb) / 8%);
  --shadow-md: 0 2px 6px rgb(var(--midnight-rgb) / 10%), 0 22px 48px rgb(var(--midnight-rgb) / 12%);
  /* A rim is a catchlight on the top edge; it has to be lighter than its
     surface, so on light ground it inverts from Pearl to white. */
  --rim: inset 0 1px 0 rgb(255 255 255 / 70%);
}

/* Portraits were desaturated to keep them from shouting against midnight.
   On Pearl that reads as washed out, so they go back to full colour. */
.section--light .member__img { filter: none; }

/* =============================================================================
   Site video (#progress).

   Click-to-load, like the location map: a local poster and a button, and the
   YouTube frame is only built once someone presses play. Nothing here is
   requested from Google before that, which is what keeps the privacy policy's
   statement about third parties true of this page.

   aspect-ratio rather than a padding-top box, so the reserved space is exactly
   16:9 before the poster decodes and the section does not shift when it does.
   ============================================================================= */
.site-video {
  margin: clamp(2rem, 1.5rem + 2vw, 3.25rem) 0 0;
  width: 100%;
}

.site-video__load {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgb(var(--gold-rgb, 215 180 106) / 30%);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-sunken);
  box-shadow: var(--shadow-md);
  transition: border-color var(--dur, 380ms) var(--ease, ease),
              box-shadow var(--dur, 380ms) var(--ease, ease);
}

.site-video__load:hover,
.site-video__load:focus-visible { border-color: rgb(var(--gold-rgb, 215 180 106) / 72%); }
.site-video__load:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

.site-video__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease, ease), filter 400ms var(--ease, ease);
}

.site-video__load:hover .site-video__poster { transform: scale(1.03); filter: brightness(0.9); }

/* Play badge. Centred over the poster, sized in rem so it stays a comfortable
   tap target on a phone rather than scaling down with the frame. */
.site-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgb(var(--gold-rgb, 215 180 106) / 92%);
  color: #061827;
  box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
  transition: transform var(--dur, 380ms) var(--ease, ease),
              background-color var(--dur, 380ms) var(--ease, ease);
}

.site-video__play .icon { width: 1.8rem; height: 1.8rem; margin-left: 0.2rem; }
.site-video__load:hover .site-video__play { transform: scale(1.08); background: rgb(var(--gold-rgb, 215 180 106)); }

.site-video__cta {
  position: absolute;
  left: 50%;
  bottom: clamp(0.9rem, 0.6rem + 1.4vw, 1.6rem);
  translate: -50% 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgb(6 24 39 / 62%);
  color: #F5F0E8;
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}

/* The frame replaces the button, so it inherits the same box. */
.site-video__frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-lg);
  background: #000;
  box-shadow: var(--shadow-md);
}

.site-video__cap {
  margin-top: 0.85rem;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  .site-video__poster,
  .site-video__play,
  .site-video__load { transition: none; }

  .site-video__load:hover .site-video__poster { transform: none; filter: none; }
  .site-video__load:hover .site-video__play { transform: scale(1); }
}

/* -----------------------------------------------------------------------------
   Site video: HIDDEN FOR NOW (2026-09-08, at the client's request).

   CSS only, and deliberately so. The markup, the poster, the click-to-load
   handler and the youtube-nocookie entry in the CSP all stay exactly where they
   are, so putting it back is deleting this one rule - not rebuilding the
   feature and re-widening a security header.

   Nothing is requested from YouTube while it is hidden: the embed was already
   click-to-load and the poster is served from this site, so a hidden section
   costs a visitor nothing at all. The privacy policy's description stays true
   either way.

   !important because the figure also carries .reveal, which GSAP drives with
   inline styles; a plain display:none would be fighting an inline rule for the
   same element.
   ----------------------------------------------------------------------------- */
figure.site-video,
.site-video.reveal { display: none !important; }

/* -----------------------------------------------------------------------------
   Footer social links (2026-09-11).

   The .social circles already existed in styles.css and are unchanged: 40px,
   1px border, muted ink, gold on hover. Only two things are adjusted here.

   SIZE. .icon resolves to 1.125em, and the footer sets font-size 0.9375rem, so
   the glyphs came out at ~17px inside a 40px button. That is fine for the
   stroked interface icons elsewhere, but these are brand marks - a TikTok note
   and a Facebook f are read by their shape, and at 17px they were a smudge.
   20px reads instantly and still leaves a 10px ring of space.

   MOTION. The same -2px lift the rest of the site uses for a raised control,
   gated on the pointer so it cannot fire on a tap. Kept in this file rather
   than styles.css because a legacy import overwrites styles.css wholesale.
   ----------------------------------------------------------------------------- */
.social .icon { width: 1.25rem; height: 1.25rem; }

@media (hover: hover) {
  .social a { transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .social a:hover { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .social a:hover { transform: none; }
}

/* -----------------------------------------------------------------------------
   Mobile drawer: compact items, and the social row (2026-09-11).

   WHY IT HAD TO SHRINK. The drawer carries eleven links at 1.4rem with 0.9rem
   of padding above and below each, which is ~51px an item - about 560px of list
   before the heading, the gaps and the Get Prices button. On a 667px phone that
   already scrolled, so adding a social row underneath would have pushed the CTA
   below the fold on every handset. 1.05rem with 0.58rem padding is ~38px an
   item: the same eleven links land around 420px and the whole drawer fits
   without scrolling on a small phone, social row and button included.

   Still a comfortable target. 38px of link plus the 1px rule is close to the
   44px touch guidance, and the anchors are full-width blocks, so the hit area
   spans the drawer rather than the width of the word.

   These override styles.css rules of equal specificity, and win on order
   because sections.css is loaded after it. No !important needed - GSAP does not
   touch the drawer.
   ----------------------------------------------------------------------------- */
@media (max-width: 1079px) {
  .primary-nav {
    gap: var(--sp-4);
    padding: calc(var(--sp-5) + env(safe-area-inset-top)) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom));
  }

  .primary-nav__list a {
    padding: 0.5rem 0;
    font-size: 1.05rem;
    /* The body's 1.7 line-height was doing more to the item height than the
       font size was: at 1.05rem it still reserved 28.6px of leading, so a
       "compact" item came out 47px tall. These are single-line labels and want
       display leading, not prose leading. */
    line-height: 1.2;
    letter-spacing: 0.01em;
  }

  /* The CTA no longer needs margin-top:auto to be pushed down - the list is
     short enough that auto would strand it against the bottom edge with a gap
     the social row then has to sit inside. */
  .primary-nav__cta { margin-top: var(--sp-2); }

  /* The social row closes the drawer: a rule above it, and the icons centred
     rather than left-aligned like the links, so it reads as a footer to the
     panel and not as a twelfth item. */
  .social--nav {
    justify-content: center;
    gap: var(--sp-2);
    margin-top: var(--sp-3);
    padding-top: var(--sp-4);
    border-top: 1px solid rgb(var(--mist-rgb) / 12%);
  }
  .social--nav a {
    width: 38px;
    height: 38px;
    color: var(--ink);
    border-color: rgb(var(--mist-rgb) / 28%);
  }
  .social--nav a:hover,
  .social--nav a:focus-visible {
    color: var(--gold-ink);
    border-color: var(--gold-ink);
  }
}

/* The drawer is desktop navigation above 1080px, where the social row would be
   a second copy of the footer's in the header bar. */
@media (min-width: 1080px) {
  .social--nav { display: none; }
}

/* =============================================================================
   Owner Care - editorial spread (RP-51, 2026-09-12)

   Replaces the three-card row. The diagnosis that produced this is in
   section_owner_care.php; the short version is that white cards on a
   cream-to-gold ramp had almost no separation, the icon badges were a wash
   behind a hairline, and the heading and lede left an empty corner beside them
   that the full-width card row underneath made obvious.

   A photograph solves all three: it fills the corner because there is no
   longer a corner, and the services become a ruled list, which is what they
   always were.

   Everything here is NEW class names - .care and .care__* prefixed rows - so
   nothing in this block can reach the contact page's .care__card / .care__icon
   / .care__title / .care__text, which are shared.
   ============================================================================= */
.care {
  display: grid;
  /* The photograph takes the narrower track: this is a service, evidenced by a
     room, not a picture with a caption. */
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-areas:
    "shot body"
    "cta  cta";
  gap: clamp(1.5rem, 1.1rem + 1.8vw, 3rem);
  /* STRETCH, so the photograph's top and bottom edges line up with the copy
     beside it rather than floating against a gap. This was briefly `start`
     with a fixed 4:5 to stop object-fit over-scaling the 480px source; the
     two-line copy shortened the column enough that stretch now lands around
     1.2 on its own, and .care__shot's max-height enforces that ceiling
     whatever the copy does later. */
  align-items: stretch;
}

.care__shot { grid-area: shot; }
.care__body { grid-area: body; }
.care__cta  { grid-area: cta; }

/* ---------------------------------------------------------------- the shot */
/*
 * max-height is a CROP CEILING expressed against the SOURCE.
 *
 * The photograph is 480x480, and object-fit: cover scales to the larger of the
 * two ratios - so the taller the box, the more it both upscales AND crops off
 * the sides, which is where the two armchairs that frame the window are. 640px
 * is 1.33x the source: past that the chairs start losing their arms. The
 * stretched first version ran to 739px (1.54x) and they did not survive it.
 *
 * A ceiling rather than a fixed ratio, so the figure still aligns with the
 * copy column at every width it can reach honestly. CARE-001 asserts the same
 * 1.35, so an edit to the copy cannot quietly push past it.
 *
 * This exists only because the source is small. With the original photograph
 * the max-height can go.
 */
.care__shot {
  position: relative;
  margin: 0;
  max-height: 40rem;
  border-radius: var(--r-lg, 16px);
  overflow: hidden;
  box-shadow: 0 2px 6px rgb(var(--midnight-rgb, 6 24 39) / 10%),
              0 20px 48px rgb(var(--midnight-rgb, 6 24 39) / 20%);
}

.care__shot picture { display: block; height: 100%; }

.care__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* The caption is a claim about the service, so it sits ON the photograph -
   a room with a label reads as a managed property; a room on its own is
   decoration. */
.care__stamp {
  position: absolute;
  right: clamp(0.7rem, 0.5rem + 0.6vw, 1rem);
  bottom: clamp(0.7rem, 0.5rem + 0.6vw, 1rem);
  left: clamp(0.7rem, 0.5rem + 0.6vw, 1rem);
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgb(var(--midnight-rgb, 6 24 39) / 78%);
  backdrop-filter: blur(3px);
  color: var(--pearl, #F5F0E8);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.care__stamp b {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--gold-500, #D7B46A);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- the body */
.care__body { display: flex; flex-direction: column; }

/* .section-head carries a large bottom margin for the usual full-width header.
   In here the lede follows immediately, so the gap comes from .care__lede. */
.care__head { margin-bottom: 0; max-width: none; }

.care__lede {
  max-width: 58ch;
  margin: var(--sp-4, 1rem) 0 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.care__list {
  display: flex;
  flex-direction: column;
  margin: clamp(1.25rem, 1rem + 1vw, 1.9rem) 0 0;
  padding: 0;
  list-style: none;
}

/* Grid, not flex: these run to two and three lines, and an inline-flex row
   floats the mark to the vertical middle of a tall block where it stops
   reading as a mark at all. Same correction .pitch__list .term needed. */
.care__row {
  /* Declared, not just defaulted in the var() fallback: GSAP reads the
     computed value to start the tween from, and an undeclared custom property
     computes to the empty string, which it cannot interpolate. */
  --care-underline: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem clamp(0.8rem, 0.65rem + 0.5vw, 1.1rem);
  padding: clamp(0.85rem, 0.7rem + 0.5vw, 1.15rem) 0;
  border-top: 1px solid rgb(var(--midnight-rgb, 6 24 39) / 15%);
}

.care__row:last-child { border-bottom: 1px solid rgb(var(--midnight-rgb, 6 24 39) / 15%); }

/* A SOLID gold disc, not the 12% wash the cards used. The mark is the only
   thing in the row that is not type, so it has to carry; a tint behind a
   hairline glyph disappeared at arm's length. Scoped to .care__row so the
   contact page's badges keep their own treatment. */
.care__row .care__icon {
  grid-row: span 2;
  align-self: start;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg,
              var(--gold-500, #D7B46A) 0%,
              var(--gold-700, #A77A36) 100%);
  color: var(--midnight, #061827);
  box-shadow: 0 4px 12px rgb(var(--gold-dk-rgb, 167 122 54) / 30%);
}

.care__row .care__icon .icon { width: 1.15rem; height: 1.15rem; }

/*
 * THE HIGHLIGHT. A gold rule wipes in beneath each service as it arrives.
 *
 * Driven by a custom property rather than a class, because GSAP animates
 * --care-underline on the element and the pseudo reads it - a pseudo-element
 * cannot be targeted directly. Default 0, so if GSAP never runs the rule
 * simply never appears; it is decoration, and decoration is allowed to be the
 * one thing that needs JavaScript.
 *
 * inline-block on the title so the rule is the width of the WORDS, not of the
 * column. A full-width rule under a short title reads as a divider.
 */
.care__row .care__title {
  margin: 0;
  position: relative;
  display: inline-block;
}

.care__row .care__title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
              var(--gold-500, #D7B46A) 0%,
              rgb(var(--gold-rgb, 215 180 106) / 25%) 100%);
  transform: scaleX(var(--care-underline, 0));
  transform-origin: left center;
}

/*
 * The marks start small and turn in. Gated on .js-gsap - set on <html> only
 * when GSAP actually loaded - so without it the icons render at rest instead
 * of being stranded mid-animation. That is the same rule animations.js states
 * at the top of the file: CSS owns the hidden state, JS only animates TO.
 */
.js-gsap .care__row .care__icon {
  transform: scale(0.72) rotate(-14deg);
  opacity: 0.45;
}
.care__row .care__text { margin: 0.1rem 0 0; color: var(--ink-soft); line-height: 1.6; }

/* ----------------------------------------------------------------- the cta */
/* A full-width foot under both columns. It reads as the section's closing
   line rather than as a fourth item in the list, and it means the figure and
   the list can end at different heights without leaving a hole. */
.care__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4, 1rem) var(--sp-5, 1.5rem);
  margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
  padding-top: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  border-top: 1px solid rgb(var(--gold-rgb, 215 180 106) / 34%);
}

.care__close {
  flex: 1 1 18rem;
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.35;
  color: var(--ink);
}

.care__cta .btn { flex: 0 0 auto; }

/* ================================ narrow ==================================
   Below 860px the two tracks stack - and two things change with them, because
   stacking on its own makes this worse rather than better.

   THE PHOTOGRAPH IS RE-CROPPED. At its desktop proportions it would be around
   470px tall on a 390px screen, more than half the handset, so the heading
   would open below the fold and a reader would meet a wall of picture before a
   single word. At 5:4 it costs about 250px, the heading clears the fold, and it
   still reads as a room rather than a letterbox banner. Same file: the crop is
   object-fit's, not a second derivative's.

   THE WORDS COME FIRST. Side by side the photograph and the heading arrive
   together. Stacked, whatever is on top is what the section appears to be
   ABOUT - and this section is about the service, not the room. So the order
   becomes heading, promise, photograph, the three services, the button.
   ========================================================================== */
@media (max-width: 859px) {
  .care {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 0.85rem + 0.6vw, 1.4rem);
    /* The base rule sets align-items:start for the desktop grid. In a flex
       COLUMN that is a cross-axis rule, so the figure shrank to the <img>
       width attribute - 480px inside a 712px tablet column - and sat there
       looking like a mistake. Stretch is what a stacked figure wants. */
    align-items: stretch;
  }
  /* grid-template-areas go with the grid; flex order takes over below. */

  .care__body { display: contents; }

  .care__head { order: 1; }
  .care__lede { order: 2; margin-top: 0; }
  .care__shot { order: 3; aspect-ratio: 5 / 4; }
  .care__list { order: 4; margin-top: 0; }
  .care__cta { order: 5; margin-top: 0.35rem; }
}

@media (max-width: 559px) {
  .care__cta .btn { width: 100%; justify-content: center; }
}

/* GSAP writes inline styles, so the global reduced-motion rule in styles.css
   cannot reach it. animations.js gates itself on the same query; these two
   put the CSS-owned start states back at rest for anyone who never gets the
   animation. */
@media (prefers-reduced-motion: reduce) {
  .js-gsap .care__row .care__icon { transform: none; opacity: 1; }
  .care__row .care__title::after { transform: scaleX(1); }
}
