/* Westford Law PLLC | Three art-directed hero scenes. No slider dependency. */
.home-page{--wf-ink:#10233e;--wf-accent:#bb5332;--wf-bg:#edf2f9;color:var(--wf-ink);background:#fff}
.home-page .site-header{position:relative;z-index:15;top:auto;background:#fff;border-bottom:1px solid #edf0f2}
.home-page .nav-inner{height:86px}
.home-page .brand{color:var(--wf-ink);font-size:14px;letter-spacing:.14em;gap:14px}
.home-page .brand-mark{width:43px;height:43px;background:#fff;border:1.5px solid var(--wf-accent);color:var(--wf-ink);border-radius:0;font:400 29px Georgia,'Times New Roman',serif;position:relative}
.home-page .brand-mark:before,.home-page .brand-mark:after{content:"";position:absolute;background:#fff;width:17px;height:3px;left:12px}
.home-page .brand-mark:before{top:-2px}.home-page .brand-mark:after{bottom:-2px}
.home-page .brand small{font-size:9px;letter-spacing:.35em;color:var(--wf-accent)}
.home-page .nav-cta{display:none}
.home-page .menu-button{display:flex;order:3;margin-left:auto;width:48px;height:48px;border:0;border-radius:0;background:transparent}
.home-page .menu-button span{width:27px;height:1.5px;background:var(--wf-ink)}
.home-page .main-nav{display:none;position:absolute;top:86px;right:max(20px,calc((100vw - 1160px)/2));left:auto;width:min(350px,calc(100vw - 36px));padding:17px 23px;background:#fff;border:1px solid #e5e8ee;box-shadow:0 18px 40px rgb(16 35 62 / .1);flex-direction:column;align-items:stretch;gap:0;margin:0}
.home-page .main-nav.open{display:flex}
.home-page .main-nav a{font-size:13px;padding:11px 1px;border-bottom:1px solid #edf0f3;font-weight:550}
.home-page .main-nav a:last-child{border-bottom:0}
.home-page .main-nav a:hover,.home-page .main-nav a[aria-current=page]{color:var(--wf-accent)}
.wf-hero{position:relative;background:var(--wf-bg);isolation:isolate;color:var(--wf-ink);overflow:hidden}
.wf-hero-stage{position:relative;min-height:clamp(640px,calc(100svh - 86px),810px)}
.wf-hero-slide{position:absolute;inset:0;overflow:hidden;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .7s cubic-bezier(.22,1,.36,1),visibility 0s linear .7s;z-index:0;background:var(--wf-bg)}
.wf-hero-slide.is-active{z-index:1;opacity:1;visibility:visible;pointer-events:auto;transition:opacity .7s cubic-bezier(.22,1,.36,1),visibility 0s}
.wf-hero-media{position:absolute;inset:0;display:block;width:100%;height:100%}
.wf-hero-media img{display:block;object-fit:cover;object-position:center center;width:100%;height:100%;filter:saturate(.9)}
.wf-hero-tint{position:absolute;inset:0;background:linear-gradient(90deg,rgba(239,244,251,.64) 0%,rgba(239,244,251,.31) 38%,rgba(239,244,251,.03) 69%);pointer-events:none}
.wf-hero-inner{position:relative;z-index:1;height:100%;display:flex;align-items:center;padding-block:72px 116px;width:min(1170px,calc(100% - 100px))}
.wf-hero-copy{width:min(790px,70%);transform:translate3d(0,12px,0);opacity:0;transition:opacity .55s ease,transform .65s cubic-bezier(.22,1,.36,1)}
.wf-hero-slide.is-active .wf-hero-copy{opacity:1;transform:translate3d(0,0,0);transition-delay:.15s}
.wf-hero-kicker{display:block;font-size:12px;letter-spacing:.32em;font-weight:700;margin-bottom:32px;color:var(--wf-ink)}
.wf-hero-heading{font-family:Georgia,'Times New Roman',serif;font-size:clamp(53px,5.65vw,83px);letter-spacing:-.047em;line-height:1.11;font-weight:400;text-transform:uppercase;margin:0 0 28px;color:var(--wf-ink);text-wrap:balance}
.wf-hero-description{max-width:650px;font-size:clamp(16px,1.48vw,21px);line-height:1.75;letter-spacing:-.015em;font-weight:400;color:#233957;margin:0}
.wf-hero-links{margin-top:68px;display:flex;flex-wrap:wrap;align-items:center;gap:18px 62px}
.wf-hero-links a{display:inline-flex;align-items:center;gap:15px;padding:8px 0;font-size:12px;font-weight:750;letter-spacing:.13em;text-transform:uppercase;line-height:1.4;color:var(--wf-ink);white-space:nowrap}
.wf-hero-links a span{font-size:22px;font-weight:400;line-height:1;color:var(--wf-accent);transition:transform .22s ease}
.wf-hero-links a:hover span{transform:translate(3px,-3px)}
.wf-hero-controls{position:absolute;z-index:4;bottom:29px;left:50%;transform:translateX(-50%);display:flex;gap:4px;align-items:center;justify-content:center}
.wf-hero-dot{width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;padding:0;color:var(--wf-accent);touch-action:manipulation}
.wf-hero-dot span{display:block;width:14px;height:14px;background:currentColor;transform:rotate(45deg) scale(.72);opacity:.45;transition:opacity .25s ease,transform .25s ease}
.wf-hero-dot.is-active span{transform:rotate(45deg) scale(1);opacity:1}
.wf-hero-dot:hover span{opacity:1}
.wf-home-foot{padding:18px 0;background:#fff;border-top:1px solid #ecedf0}
.wf-home-foot .wrap{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 18px}
.wf-home-foot span,.wf-home-foot a{font-size:11px;color:#607085}
.wf-home-foot a{text-decoration:underline}
@media(min-width:1500px){.wf-hero-inner{width:min(1280px,calc(100% - 160px))}.wf-hero-copy{width:min(860px,72%)}}
@media(max-width:1080px){.wf-hero-inner{width:calc(100% - 78px)}.wf-hero-copy{width:min(650px,76%)}.wf-hero-heading{font-size:clamp(51px,6vw,69px)}.wf-hero-links{margin-top:52px;gap:16px 34px}.wf-hero-tint{background:linear-gradient(90deg,rgba(239,244,251,.82),rgba(239,244,251,.43) 62%,rgba(239,244,251,.1))}}
@media(max-width:700px){
 .home-page .nav-inner{height:73px}.home-page .brand{font-size:12px;letter-spacing:.10em;gap:10px}.home-page .brand-mark{width:39px;height:39px;font-size:27px}.home-page .brand small{font-size:8px}.home-page .main-nav{top:73px;right:18px}
 .wf-hero-stage{min-height:max(710px,calc(100svh - 73px))}
 .wf-hero-media img{object-position:center center}
 .wf-hero-tint{background:linear-gradient(180deg,rgba(238,244,252,.94) 0%,rgba(238,244,252,.87) 40%,rgba(238,244,252,.48) 71%,rgba(238,244,252,.10) 100%)}
 .wf-hero-inner{width:calc(100% - 44px);align-items:flex-start;padding-top:75px;padding-bottom:145px}
 .wf-hero-copy{width:100%;max-width:570px}
 .wf-hero-kicker{font-size:10px;letter-spacing:.27em;margin-bottom:29px}
 .wf-hero-heading{font-size:clamp(39px,9.6vw,61px);line-height:1.12;letter-spacing:-.055em;margin-bottom:25px}
 .wf-hero-description{font-size:clamp(15.5px,4.1vw,18px);max-width:520px;line-height:1.72}
 .wf-hero-links{margin-top:42px;flex-direction:column;align-items:flex-start;gap:15px}
 .wf-hero-links a{font-size:11px;gap:10px}
 .wf-hero-controls{bottom:19px}
}
@media(max-width:390px){.wf-hero-stage{min-height:max(710px,calc(100svh - 73px))}.wf-hero-inner{padding-top:59px;width:calc(100% - 36px)}.wf-hero-heading{font-size:clamp(35px,9.7vw,41px)}.wf-hero-description{font-size:15px}.wf-hero-links{margin-top:35px}.home-page .brand{font-size:10.5px}}
@media(min-width:701px) and (max-height:730px){.wf-hero-stage{min-height:620px}.wf-hero-inner{padding-top:52px;padding-bottom:96px}.wf-hero-links{margin-top:39px}.wf-hero-kicker{margin-bottom:20px}.wf-hero-heading{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){.wf-hero-slide,.wf-hero-copy,.wf-hero-dot span,.wf-hero-links a span{transition:none!important;transform:none!important}.wf-hero-copy{opacity:1!important}}

.home-page .brand,.wf-hero-kicker,.wf-hero-description,.wf-hero-links a{font-family:var(--font-sans)}
.wf-hero-heading{font-family:var(--font-display);font-size:clamp(57px,5.5vw,80px);font-weight:600;line-height:1.04;letter-spacing:-.025em}
.wf-hero-description{font-weight:400;letter-spacing:0;line-height:1.63}
@media(max-width:700px){.wf-hero-heading{font-size:clamp(43px,9.5vw,59px);line-height:1.08;letter-spacing:-.025em}}
@media(max-width:390px){.wf-hero-heading{font-size:clamp(35px,9.4vw,42px)}}

/* Westford 2026-11-05 | Soft architectural-glass hero actions.
   Links remain native anchors: an understated discovery action and
   a warmer consultation action. Layout stays stable between slides. */
.wf-hero-links{
  margin-top:94px;
  gap:14px;
  align-items:center;
}
.wf-hero-links a{
  position:relative;
  isolation:isolate;
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  padding:12px 22px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.86);
  background:linear-gradient(145deg,rgba(255,255,255,.83),rgba(246,249,254,.62));
  color:#10233e;
  font-size:11px;
  font-weight:700;
  letter-spacing:.085em;
  line-height:1.4;
  white-space:normal;
  text-align:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 7px 18px rgba(18,39,67,.085);
  transition:transform .22s ease,background-color .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.wf-hero-links a:nth-child(2){
  border-color:rgba(172,74,43,.44);
  background:linear-gradient(140deg,rgba(255,248,244,.91),rgba(245,207,186,.69));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 7px 18px rgba(87,46,29,.10);
}
.wf-hero-links a span{
  color:#ad4728;
  font-size:20px;
  transition:transform .22s ease;
}
.wf-hero-links a:hover{
  transform:translateY(-2px);
  border-color:rgba(188,93,57,.54);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 10px 23px rgba(18,39,67,.13);
}
.wf-hero-links a:hover span{transform:translate(2px,-2px)}
.wf-hero-links a:active{transform:translateY(0)}
.wf-hero-links a:focus-visible{outline:3px solid #b84923;outline-offset:3px}
@supports ((-webkit-backdrop-filter:blur(7px)) or (backdrop-filter:blur(7px))){
  @media(min-width:701px) and (prefers-reduced-transparency:no-preference){
    .wf-hero-links a{-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
  }
}
@media(max-width:1080px){
  .wf-hero-links{margin-top:72px;gap:12px}
  .wf-hero-links a{min-height:47px;padding:12px 17px;font-size:10.5px}
}
@media(max-width:700px){
  .wf-hero-links{margin-top:60px;gap:12px;align-items:flex-start}
  .wf-hero-links a{min-height:46px;padding:11px 17px;font-size:11px;letter-spacing:.075em;justify-content:space-between;max-width:100%}
  .wf-hero-stage{min-height:max(770px,calc(100svh - 73px))}
}
@media(max-width:390px){
  .wf-hero-links{margin-top:52px;gap:11px}
  .wf-hero-links a{padding:11px 14px;min-height:45px;font-size:10.5px;gap:10px}
  .wf-hero-stage{min-height:max(795px,calc(100svh - 73px))}
}
@media(min-width:701px) and (max-height:730px){
  .wf-hero-links{margin-top:55px}
}
@media(prefers-reduced-motion:reduce){
  .wf-hero-links a,.wf-hero-links a span{transition:none!important}
  .wf-hero-links a:hover,.wf-hero-links a:active{transform:none!important}
}

/* Final polish: translucent glazing with a distinct top-edge glint.
   Keeps fallback backgrounds readable without CSS backdrop-filter. */
.wf-hero-links a{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.98);
  background:linear-gradient(130deg,rgba(255,255,255,.56),rgba(204,221,237,.33));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(110,139,163,.17),
    0 8px 22px rgba(16,35,62,.11);
}
.wf-hero-links a::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:45%;
  border-radius:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.37),transparent);
  pointer-events:none;
}
.wf-hero-links a:nth-child(2){
  border:1px solid rgba(181,91,54,.58);
  background:linear-gradient(140deg,rgba(255,239,229,.65),rgba(223,172,138,.39));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.94),
    inset 0 -1px 0 rgba(185,89,52,.12),
    0 8px 22px rgba(104,50,29,.12);
}
.wf-hero-links a:hover{
  box-shadow:inset 0 1px 0 #fff,0 11px 24px rgba(16,35,62,.16);
}
@supports ((-webkit-backdrop-filter:blur(8px)) or (backdrop-filter:blur(8px))){
  @media(min-width:701px) and (prefers-reduced-transparency:no-preference){
    .wf-hero-links a{-webkit-backdrop-filter:blur(8px) saturate(1.12);backdrop-filter:blur(8px) saturate(1.12)}
  }
}

/* 2026-11-05 | Anchor hero CTAs close to the lower edge while preserving breathing room.
   The text stays in the upper composition; the actions settle near the end of each slide. */
.wf-hero-inner{
  align-items:stretch;
  padding-top:72px;
  padding-bottom:94px;
}
.wf-hero-copy{
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.wf-hero-links{
  margin-top:auto;
  margin-bottom:0;
  padding-top:34px;
}
@media(max-width:1080px){
  .wf-hero-inner{padding-bottom:90px}
  .wf-hero-links{margin-top:auto;padding-top:30px}
}
@media(max-width:700px){
  .wf-hero-inner{
    align-items:stretch;
    padding-top:75px;
    padding-bottom:79px;
  }
  .wf-hero-copy{min-height:100%}
  .wf-hero-links{
    margin-top:auto;
    margin-bottom:0;
    padding-top:28px;
  }
}
@media(max-width:390px){
  .wf-hero-inner{
    padding-top:59px;
    padding-bottom:76px;
  }
  .wf-hero-links{margin-top:auto;padding-top:24px}
}
@media(min-width:701px) and (max-height:730px){
  .wf-hero-inner{padding-top:52px;padding-bottom:88px}
  .wf-hero-links{margin-top:auto;padding-top:22px}
}

/* 2026-11-05 | Compact hero rhythm: preserve premium composition without a stretched viewport. */
.wf-hero-stage{
  min-height:clamp(590px,76svh,700px);
}
.wf-hero-inner{
  padding-top:54px;
  padding-bottom:72px;
}
.wf-hero-kicker{margin-bottom:24px}
.wf-hero-heading{margin-bottom:20px}
.wf-hero-description{line-height:1.56}
.wf-hero-links{
  margin-top:auto;
  padding-top:24px;
}
.wf-hero-controls{bottom:18px}
@media(max-width:1080px){
  .wf-hero-stage{min-height:clamp(580px,74svh,670px)}
  .wf-hero-inner{padding-top:50px;padding-bottom:70px}
  .wf-hero-kicker{margin-bottom:22px}
  .wf-hero-heading{margin-bottom:18px}
  .wf-hero-links{padding-top:22px}
}
@media(max-width:700px){
  .wf-hero-stage{min-height:clamp(645px,78svh,715px)}
  .wf-hero-inner{padding-top:52px;padding-bottom:66px}
  .wf-hero-kicker{margin-bottom:22px}
  .wf-hero-heading{margin-bottom:18px}
  .wf-hero-description{line-height:1.55}
  .wf-hero-links{margin-top:auto;padding-top:20px}
  .wf-hero-controls{bottom:14px}
}
@media(max-width:390px){
  .wf-hero-stage{min-height:clamp(625px,77svh,690px)}
  .wf-hero-inner{padding-top:44px;padding-bottom:62px}
  .wf-hero-links{padding-top:18px}
}
@media(min-width:701px) and (max-height:730px){
  .wf-hero-stage{min-height:570px}
  .wf-hero-inner{padding-top:42px;padding-bottom:66px}
  .wf-hero-links{padding-top:18px}
}

/* Home header stays sticky and translucent without leaving document flow. */
.home-page .site-header{
  position:sticky;
  top:0;
  z-index:80;
  background:rgba(255,255,255,.72);
  border-bottom:1px solid rgba(18,35,62,.08);
}
.home-page .site-header.is-scrolled{
  background:rgba(255,255,255,.95);
  border-bottom-color:rgba(18,35,62,.12);
  box-shadow:0 8px 24px rgba(16,35,62,.08);
}
@media(max-width:700px){.home-page .site-header{background:rgba(255,255,255,.91)}}
