/* PAGE CSS: high-net-worth-planning
   Enqueued by functions.php when the slug matches.
   Lifted verbatim from the approved static build. */


/* ==========================================================
   TYPE SCALE, matched to the homepage
     18px    running body copy (global default)
     16.5px  copy inside cards and panels
     16px    smallest tier
   ==========================================================
   PAGE: /services/high-net-worth-planning/
   Editorial layout: asymmetric blocks, images bleeding past the
   gutter, vertical stagger between paired elements, and a cream
   card overlapping a dark band. Deliberately looser than the
   Asset Protection template.
   ========================================================== */

/* ---------- Hero ---------- */
/* Plain block layout. No flex, no grid, no shrink-wrapping. The inner column
   is a centred block with auto margins; text-align:center inherits to every
   child, and each child is itself a block with auto side margins. */
.hero{position:relative;overflow:hidden;background:var(--ink-deep);}
.hero__media{position:absolute;inset:0;z-index:0;}
.hero__media img{width:100%;height:100%;object-fit:cover;object-position:46% 54%;filter:saturate(.72);}
.hero__media::after{content:"";position:absolute;inset:0;
  background:linear-gradient(rgba(16,41,53,.72),rgba(16,41,53,.72)),
    linear-gradient(to bottom,rgba(16,41,53,.62) 0%,rgba(16,41,53,.2) 42%,rgba(16,41,53,.7) 100%);}

.hero__in{
  position:relative;z-index:1;
  max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gut);
  padding-block:calc(var(--barh) + clamp(64px,9vw,140px)) clamp(72px,9vw,140px);
  text-align:center;
}
.hero__in > *{margin-inline:auto;}

.hero__eyebrow{
  display:block;width:100%;text-align:center;
  font-family:var(--display);font-size:11.5px;font-weight:400;
  text-transform:uppercase;letter-spacing:.28em;text-indent:.28em;
  color:rgba(244,240,232,.66);margin:0 auto 30px;
}
.hero h1{display:block;width:100%;text-align:center;
  font-size:clamp(38px,5.5vw,76px);line-height:1.06;color:var(--cream);
  max-width:none;margin:0 auto 28px;}
.hero h1 .ital{display:block;margin-top:.12em;}
.hero__lede{display:block;text-align:center;
  font-size:clamp(17px,1.7vw,20px);line-height:1.62;color:rgba(244,240,232,.82);
  max-width:50ch;margin:0 auto;}

/* ---------- Offset intro ---------- */
.intro{position:relative;}
.intro__grid{display:grid;grid-template-columns:44fr 56fr;gap:clamp(32px,5vw,90px);align-items:center;}
.intro__media{position:relative;aspect-ratio:5/4;overflow:hidden;background:var(--ink-deep);
  margin-left:calc(var(--gut) * -1);}
.intro__media img{width:100%;height:100%;object-fit:cover;object-position:52% 56%;display:block;}
/* one line. sits in the narrower right column, so it needs a smaller figure
   than a heading running the full content width. */
.intro__body h2{font-size:clamp(23px,2.55vw,34px);line-height:1.12;margin-bottom:20px;
  max-width:none;white-space:nowrap;}
.intro__body p{font-size:18px;line-height:1.7;color:rgba(23,55,70,.9);max-width:52ch;}
/* small plate riding the right edge, offset downward */
.intro__plate{position:absolute;right:0;bottom:clamp(-30px,-2vw,0px);width:clamp(130px,15vw,250px);
  aspect-ratio:4/5;overflow:hidden;background:var(--ink-deep);}
.intro__plate img{width:100%;height:100%;object-fit:cover;object-position:48% 40%;display:block;}

/* ---------- Numbered list beside an offset image ---------- */
/* stretch, so the image runs the full height of the numbered list beside it */
.four__grid{display:grid;grid-template-columns:54fr 46fr;gap:clamp(34px,5vw,88px);align-items:stretch;}
.four-band{padding-bottom:clamp(56px,7vw,108px);}
.four__list{border-top:1px solid var(--ink);}
.four__row{padding-block:clamp(22px,2.5vw,32px);border-bottom:1px solid var(--stone);
  display:grid;grid-template-columns:52px 1fr;gap:clamp(16px,2vw,28px);align-items:baseline;}
.four__no{font-family:var(--display);font-weight:200;font-size:clamp(20px,2.2vw,28px);
  color:var(--gold);line-height:1;}
.four__row h3{font-size:clamp(18px,1.9vw,23px);line-height:1.24;margin-bottom:10px;}
.four__row p{font-size:16.5px;line-height:1.66;color:rgba(23,55,70,.88);margin:0;max-width:46ch;}
.four__media{position:relative;overflow:hidden;background:var(--ink-deep);
  margin-right:calc(var(--gut) * -1);min-height:300px;}
.four__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:46% 52%;display:block;}

/* ---------- Quote ---------- */
/* sits between two full bands, so it carries less padding of its own */
.say{text-align:center;padding-block:clamp(56px,7vw,108px);}
.say blockquote{margin:0 auto;font-family:var(--display);font-weight:200;font-style:italic;
  font-size:clamp(24px,3.6vw,50px);line-height:1.26;color:var(--ink);max-width:22ch;
  letter-spacing:-.012em;}
.say figcaption{margin-top:26px;font-family:var(--display);font-size:10.5px;
  text-transform:uppercase;letter-spacing:.24em;color:var(--slate);}

/* ---------- Dark half-panel ---------- */
.half{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;background:var(--ink-deep);}
/* asymmetric: generous on the outside edge, tighter where it meets the photo */
.half__body{padding:clamp(48px,6vw,104px) clamp(24px,3vw,52px) clamp(48px,6vw,104px) clamp(28px,5vw,88px);
  display:flex;flex-direction:column;justify-content:center;}
.half__body h2{color:var(--cream);font-size:clamp(26px,3.1vw,44px);line-height:1.1;
  max-width:17ch;margin-bottom:20px;}
.half__body p{color:rgba(244,240,232,.82);font-size:18px;line-height:1.7;max-width:54ch;}
.half__media{position:relative;min-height:clamp(340px,42vw,600px);overflow:hidden;}
.half__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:44% 44%;}

/* ---------- Overlapping figures card ---------- */
/* a flat navy field covers the top 74% of the section; the rest is cream,
   so the card overlaps the navy and hangs off its bottom edge. */
.ovl{position:relative;background:var(--cream);padding-bottom:clamp(36px,4.2vw,66px);}
.ovl__media{position:absolute;inset:0 0 auto;height:74%;background:var(--ink-deep);}
.ovl > .wrap{position:relative;z-index:2;padding-top:clamp(64px,8vw,132px);}
.ovl__card{background:var(--cream);padding:clamp(32px,4vw,64px);
  box-shadow:0 24px 70px rgba(16,41,53,.24);text-align:center;}
/* contextual backstop alongside the .eyebrow--center utility, so the eyebrow
   centres whether or not the class survives an edit */
.ovl__card .eyebrow{display:block;text-align:center;max-width:none;width:100%;text-indent:.28em;}
.ovl__grid{display:grid;grid-template-columns:1fr;gap:0;}
.ovl__cell{padding-block:clamp(24px,2.8vw,34px);border-top:1px solid var(--stone);}
.ovl__cell:first-child{border-top:0;padding-top:0;}
/* a figure slot holding WORDS rather than a short number needs the smaller
   scale, the same correction made on the homepage stat block. */
.ovl__fig--words{font-size:clamp(28px,3.2vw,44px) !important;line-height:1.05;letter-spacing:-.01em;}
.ovl__fig{font-family:var(--display);font-weight:200;font-size:clamp(44px,6vw,88px);
  line-height:.96;color:var(--gold);letter-spacing:-.02em;margin-bottom:12px;}
.ovl__cell h3{font-size:clamp(19px,2vw,24px);line-height:1.22;margin-bottom:10px;}
.ovl__cell p{font-size:16.5px;line-height:1.66;color:rgba(23,55,70,.88);
  margin:0 auto;max-width:62ch;}
.ovl__note{font-size:16px;color:var(--slate);margin:0 auto;max-width:66ch;
  padding-top:clamp(24px,2.8vw,34px);border-top:1px solid var(--stone);}

/* ---------- Structures, staggered ---------- */
/* the card above already carries its own foot, so this band opens tighter */
.st-band{padding-top:clamp(48px,6vw,92px);}
/* stretch, so each image runs the full height of the copy beside it */
.st__row{display:grid;grid-template-columns:1fr 1fr;gap:clamp(30px,4.6vw,84px);align-items:stretch;
  margin-bottom:clamp(48px,6vw,96px);}
.st__row:last-child{margin-bottom:0;}
.st__row--flip .st__media{order:2;}
.st__row--flip{transform:translateY(clamp(0px,1.6vw,28px));}
.st__media{position:relative;overflow:hidden;background:var(--ink-deep);min-height:300px;}
.st__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:50% 50%;display:block;}
.st__body h3{font-size:clamp(22px,2.6vw,33px);line-height:1.16;margin-bottom:16px;max-width:18ch;}
.st__body p{font-size:18px;line-height:1.7;color:rgba(23,55,70,.9);max-width:46ch;margin:0 0 14px;}
.st__list{list-style:none;margin:18px 0 0;padding:0;}
.st__list li{padding-block:13px;border-bottom:1px solid var(--stone);
  font-size:16.5px;line-height:1.6;color:rgba(23,55,70,.9);}
.st__list li:first-child{border-top:1px solid var(--stone);}

/* ---------- Limits ---------- */
.care{border:1px solid var(--stone);padding:clamp(30px,3.6vw,56px);}
/* the intro reads across the full panel, matching the heading above it and
   the two columns below. */
.care > p{max-width:none;}
.care__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(26px,3.2vw,52px);margin-top:32px;}
.care__grid h3{font-size:18px;margin-bottom:10px;}
.care__grid p{font-size:16.5px;line-height:1.66;color:rgba(23,55,70,.84);margin:0;}

/* ---------- Closing ---------- */
.end{position:relative;overflow:hidden;background:var(--ink-deep);text-align:center;}
.end__media{position:absolute;inset:0;z-index:0;}
.end__media img{width:100%;height:100%;object-fit:cover;object-position:50% 46%;filter:saturate(.74);}
/* firm scrim: the window behind is bright and the copy is centred over it */
.end__media::after{content:"";position:absolute;inset:0;
  background:linear-gradient(rgba(16,41,53,.84),rgba(16,41,53,.84)),
    linear-gradient(to bottom,rgba(16,41,53,.5) 0%,rgba(16,41,53,.14) 48%,rgba(16,41,53,.55) 100%);}
.end > .wrap{position:relative;z-index:1;}
.end .eyebrow{display:block;text-align:center;max-width:none;width:100%;text-indent:.28em;}
.end h2{color:var(--cream);max-width:18ch;margin:0 auto 22px;}
.end p{color:rgba(244,240,232,.82);max-width:50ch;margin-inline:auto;}
.end__row{display:flex;flex-wrap:nowrap;gap:14px;justify-content:center;margin-top:30px;}
.end__row .btn{flex:0 0 auto;padding-inline:26px;}

/* ---------- One-line headings ---------- */
.ln{max-width:none;white-space:nowrap;}
.ln--four{font-size:clamp(24px,3.3vw,44px);}
.ln--st{font-size:clamp(24px,3.2vw,42px);}
.ln--care{font-size:clamp(23px,3.05vw,40px);}

@media (max-width:1080px){
  .intro__grid,.four__grid,.half,.st__row,.care__grid{grid-template-columns:1fr;}
  .intro__body h2{white-space:normal;font-size:clamp(24px,4.4vw,36px);max-width:18ch;}
  .intro__media{margin-left:0;aspect-ratio:16/10;}
  .intro__plate{display:none;}
  .four__media{margin-right:0;min-height:0;aspect-ratio:3/2;}
  .four__media img{position:relative;}
  .st__row--flip{transform:none;}
  .st__media{min-height:0;aspect-ratio:3/2;}
  .st__media img{position:relative;}
  .st__row--flip .st__media{order:0;}
  .half__body{padding-inline:var(--gut);}
  .half__media{min-height:clamp(280px,52vw,420px);}
  .ovl__media{height:58%;}
  .ovl > .wrap{padding-top:clamp(40px,7vw,80px);}
  .ln{white-space:normal;}
  .ln--four,.ln--st,.ln--care{font-size:clamp(24px,4.4vw,36px);max-width:22ch;}
}
@media (max-width:780px){
  .end__row{flex-wrap:wrap;}
  .end__row .btn{width:100%;justify-content:center;}
}

