/* dock.css — Lakeshore Lawn Care's own layer, loaded AFTER the page's base
   template stylesheet (styles.css = CCBB, styles-abba.css, styles-eett.css; see
   templates.cjs CSS_FILES). Carries everything that must look the same on every
   page whichever base it uses: brand colors, the DOCK fonts, the DOCK nav +
   Services dropdown, the DOCK homepage hero, the quote pop-up, the quote starter
   card and the footer. Ported from ~/Code/abba-lab-site/site/assets/css/lab.css
   (body.v4 rules, unscoped). */

/* ------------------------------------------------------------ brand + type */
:root {
  /* From Glenn's sailboat logo: navy hull, green pines. Same six names and
     shape scaffold.cjs writes into styles.css; repeated here so the ABBA and
     EETT base sheets get the brand too. */
  --primary: #012b5d;
  --primary-dark: #01224a;
  --primary-darker: #011a38;
  --accent: #168a0a;
  --accent-dark: #127008;
  --accent-tint: #e8f3e7;
  --ink: #0d1f33;
  --pop: #ffffff;
  --pop-ink: #012b5d;
  --r: 2px;
  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --display: var(--font-display);
}
body { font-family: var(--font); }
h1, h2, h3, .title, .funnel-title, .est-head, .featured-review blockquote {
  font-family: var(--font-display) !important; font-weight: 400 !important; letter-spacing: -.01em; text-transform: none; }
h2.title, h1.title { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; }
.page-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }
.page-hero.with-calc h1 { font-size: clamp(38px, 4.4vw, 58px); }
.cta-band h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; }
.cta-band h2 em, .lhero em { font-style: italic; }
h3 { font-size: 1.45em; line-height: 1.15; }
.svc-label { font-family: var(--font-display); font-weight: 400; }
html { scroll-padding-top: 90px; }

/* ------------------------------------------------------------ nav */
.lnav { position: fixed; inset: 0 0 auto 0; z-index: 70; height: 76px; padding: 0 clamp(18px, 3.2vw, 44px);
  display: flex; align-items: center; gap: 28px; color: #fff; transition: background .25s, box-shadow .25s, color .25s; }
.lnav.scrolled, .lnav.open, .lnav.solid { background: #fff; color: var(--primary); box-shadow: 0 1px 0 rgba(0,0,0,.07), 0 8px 26px rgba(0,0,0,.06); }
.lnav.solid { position: sticky; top: 0; }
.lbrand { display: flex; align-items: center; gap: 11px; color: inherit; font-family: var(--font-display); font-size: 27px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; margin-right: auto; text-decoration: none; }
.lbrand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.lbrand b { font-weight: 400; font-style: italic; }
.lmenu { display: flex; align-items: center; gap: 4px; height: 100%; }
.ltop { display: inline-flex; align-items: center; gap: 5px; height: 100%; padding: 0 13px; color: inherit; font-size: 15.5px; font-weight: 500; opacity: .92; text-decoration: none; }
.ltop:hover, .ltop.active { opacity: 1; }
.lnav.solid .ltop.active, .lnav.scrolled .ltop.active { color: var(--accent-dark); }
.ltop svg { transition: transform .2s; }
.lacts { display: flex; align-items: center; gap: 18px; }
.lcall { color: inherit; font-weight: 700; font-size: 15.5px; white-space: nowrap; text-decoration: none; }
.lbtn { background: var(--pop); color: var(--pop-ink); font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: var(--r); white-space: nowrap; text-decoration: none; }
.lnav.scrolled .lbtn, .lnav.open .lbtn, .lnav.solid .lbtn { background: var(--primary); color: #fff; }
.lburger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: inherit; padding: 12px 10px; }
.lburger i { display: block; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; }

/* Services dropdown: featured photo left, quiet hairline list right */
.lnav .dd { height: 100%; position: relative; display: flex; align-items: center; }
.mm { position: absolute; top: calc(100% - 6px); left: -16px; width: 720px; display: grid; grid-template-columns: 270px 1fr; gap: 0 20px;
  background: #fff; color: var(--ink); border-radius: 4px; box-shadow: 0 24px 60px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.05); padding: 16px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; }
.dd:hover .mm, .dd:focus-within .mm, .dd.open .mm { opacity: 1; visibility: visible; transform: none; }
.dd:hover .ltop svg, .dd.open .ltop svg { transform: rotate(180deg); }
.mm-feature { display: flex; align-items: flex-end; grid-row: 1 / 3; min-height: 330px; background-size: cover; background-position: center; color: #fff; position: relative; overflow: hidden; border-radius: 2px; text-decoration: none; }
.mm-feature::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(1,18,40,.88), rgba(1,18,40,0) 65%); }
.mm-feature span { position: relative; padding: 18px; display: block; }
.mm-feature small { display: block; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; opacity: .8; }
.mm-feature b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.05; margin: 6px 0; }
.mm-feature i { display: block; font-style: normal; font-size: 13px; opacity: .85; line-height: 1.4; }
.mm-item { display: flex; align-items: center; gap: 13px; padding: 9px 4px; border-bottom: 1px solid #e3e7e0; color: var(--ink); text-decoration: none; }
.mm-item:first-child { display: none; }
.mm-item:hover { background: var(--accent-tint); }
.mm-ph { flex: none; width: 64px; height: 48px; border-radius: 1px; background-size: cover; background-position: center; }
.mm-t { display: block; min-width: 0; }
.mm-t b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.2; }
.mm-t small { display: block; font-size: 12.5px; color: #5b6b78; line-height: 1.35; margin-top: 2px; }
.mm-all { display: block; padding: 12px 4px 0; align-self: end; font-weight: 700; font-size: 14px; color: var(--accent-dark); text-decoration: none; }

/* ------------------------------------------------------------ DOCK hero */
.lhero { position: relative; min-height: 100svh; display: flex; flex-direction: column; color: #fff; background: var(--primary-darker); overflow: hidden; isolation: isolate; }
.lhero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; max-width: none; }
.lhero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(1,14,32,.92) 0%, rgba(1,14,32,.55) 34%, rgba(1,14,32,.05) 62%), linear-gradient(to bottom, rgba(1,14,32,.45), transparent 18%); }
.lhero-in { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 116px clamp(20px, 4vw, 56px) 34px; display: flex; align-items: flex-end; }
.lhero-copy { max-width: 900px; }
.lhero h1.leyebrow { font-family: var(--font) !important; font-weight: 600 !important; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; opacity: .9; margin-bottom: 22px; color: #fff; line-height: 1.4; }
.lhero-h { color: #fff; font-size: clamp(54px, 8.4vw, 132px); line-height: .92; letter-spacing: -.02em; text-wrap: balance; }
.llede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; opacity: .92; max-width: 480px; margin-top: 18px; }

/* the address bar */
.abar { display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: calc(var(--r) + 4px); max-width: 580px; margin-top: 34px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.abar-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; color: #74827a; cursor: text; margin: 0; }
.abar input { flex: 1; min-width: 0; width: auto; border: 0; outline: 0; background: none; font: 500 17px/1 var(--font); color: #16231c; padding: 16px 0; margin: 0; box-shadow: none; }
.abar input::placeholder { color: #8a968f; font-weight: 400; }
.abar button { flex: none; border: 0; cursor: pointer; background: var(--primary); color: #fff; font: 600 16px/1 var(--font); padding: 0 24px; border-radius: var(--r); white-space: nowrap; transition: filter .15s, transform .15s; }
.abar button:hover { filter: brightness(1.15); transform: translateY(-1px); }
.abar:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
.abar.shake { animation: lshake .35s; }
@keyframes lshake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.ldock { border-top: 1px solid rgba(255,255,255,.22); background: rgba(1,14,32,.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ldock-in { max-width: 1320px; margin: 0 auto; padding: 18px clamp(20px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ldock-q { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.ldock-l { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .78; white-space: nowrap; }
.ldock .abar { margin: 0; flex: 1; max-width: 560px; box-shadow: none; border-radius: 2px; padding: 4px; }
.ldock .abar button { border-radius: 1px; font-weight: 500; }
.ldock-stats { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.ldock-stats li { display: flex; flex-direction: column; line-height: 1.15; }
.ldock-stats b { font-family: var(--font-display); font-weight: 400; font-size: 30px; }
.ldock-stats span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; margin-top: 3px; white-space: nowrap; }

/* ------------------------------------------------------------ quote pop-up */
.qov { position: fixed; inset: 0; z-index: 90; background: rgba(1,14,32,.66); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s; overflow-y: auto; display: grid; place-items: center; padding: 24px; }
.qov.open { opacity: 1; visibility: visible; }
.qbox { position: relative; width: min(600px, 100%); transform: translateY(14px) scale(.985); transition: transform .22s; }
.qov.open .qbox { transform: none; }
.qbox .funnel { margin: 0; max-width: none; }
.qbox .funnel-card { border-radius: 10px; color: var(--ink); }
.qx { position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f0f2ee; color: #33423a; font-size: 24px; line-height: 1; cursor: pointer; }
.qov .funnel-title { font-size: 34px; color: var(--ink); }

/* ------------------------------------------------------------ quote starter card (inner-page heroes) */
.page-hero.with-calc .wrap { grid-template-columns: 1fr minmax(360px, 560px); align-items: center; }
.qstart { background: #fff; color: var(--ink); border-radius: 12px; padding: 28px 26px 24px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.page-hero .qstart h2 { color: var(--accent-dark); font-size: 32px; line-height: 1.1; }
.page-hero .qstart > p { color: #5b6b78; font-size: 14.5px; margin: 6px auto 16px; max-width: none; }
.qstart { display: flex; flex-direction: column; }
.qstart .abar { display: contents; }
.qstart .abar-in { order: 1; border: 1.5px solid #dfe4dc; border-radius: 8px; padding: 0 12px; }
.qstart .abar-in:focus-within { border-color: var(--accent); }
.qstart .abar input { padding: 15px 0; font-size: 16px; }
.qstart-fine { order: 2; display: flex; justify-content: center; gap: 18px; font-size: 12.5px; color: #6b7a86; margin: 12px 0 14px; }
.qstart .abar button { order: 3; padding: 16px; border-radius: 8px; font-weight: 700; }

/* ------------------------------------------------------------ footer */
.lfoot { background: var(--primary-darker); color: rgba(255,255,255,.78); font-size: 14.5px; padding: 0; margin: 0; border: 0; }
.lfoot-in { max-width: 1320px; margin: 0 auto; padding: 64px clamp(20px, 4vw, 56px) 26px; }
.lfoot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.lfoot a { color: rgba(255,255,255,.86); text-decoration: none; }
.lfoot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lfoot .lbrand { color: #fff; font-size: 30px; margin: 0 0 16px; }
.lfoot .lbrand img { width: 56px; height: 56px; }
.lfoot-brand p { max-width: 380px; line-height: 1.6; margin: 0; }
.lfoot ul { list-style: none; margin: 0; padding: 0; }
.lfoot li { margin: 0 0 9px; }
.lfoot-nap { margin-top: 18px !important; }
.lfoot-nap .nap-name { color: #fff; font-weight: 600; }
.lfoot h3 { color: #fff; font-size: 24px; margin: 0 0 16px; }
.lfoot-soc { display: flex; gap: 10px; margin-top: 14px; }
.lfoot-soc a { border: 1px solid rgba(255,255,255,.3); padding: 7px 14px; border-radius: var(--r); font-size: 13px; font-weight: 600; }
.lfoot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; color: rgba(255,255,255,.6); }

/* ------------------------------------------------------------ phones + tablets */
@media (max-width: 1080px) { .lcall { display: none; } }
@media (max-width: 900px) {
  .lnav { height: 66px; gap: 10px; }
  .lbrand { font-size: 22px; } .lbrand img { width: 38px; height: 38px; }
  .lburger { display: block; margin-left: 0; order: 3; }
  .lacts { margin-left: auto; } .lbtn { padding: 10px 14px; font-size: 14px; }
  .lmenu { display: none; position: fixed; inset: 66px 0 0 0; height: auto; background: #fff; color: var(--primary); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px 28px; overflow-y: auto; }
  .lnav.open .lmenu { display: flex; }
  .lmenu .ltop { height: auto; padding: 16px 4px; font-size: 18px; border-bottom: 1px solid #e3e7e0; }
  .lmenu .ltop svg { display: none; }
  .lnav .dd { display: block; height: auto; position: static; }
  .mm { position: static; width: auto; display: block; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding: 8px 0 4px; border-radius: 0; }
  .mm-feature, .mm-all { display: none; }
  .mm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mm-item, .mm-item:first-child { display: flex; border: 0; }
  .mm-t small { display: none; } .mm-ph { width: 46px; height: 46px; } .mm-t b { font-size: 17px; }
  .lhero-in { padding-top: 104px; padding-bottom: 30px; }
  .ldock-in { flex-direction: column; align-items: stretch; gap: 16px; }
  .ldock-q { flex-direction: column; align-items: stretch; gap: 8px; }
  .ldock .abar { max-width: none; }
  .ldock-stats { justify-content: space-between; gap: 12px; } .ldock-stats b { font-size: 24px; }
  .ldock-stats span { white-space: normal; font-size: 10.5px; }
  .page-hero.with-calc .wrap { grid-template-columns: 1fr; }
  .lfoot-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .lfoot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ldock .abar { flex-direction: column; }
  .ldock .abar button { padding: 17px; }
  .llede { display: none; }
  .qov { padding: 10px; place-items: start center; }
  .lbrand span { font-size: 19px; }
}

/* serif card headings need more size than the sans they replace */
.step h3, .val h3, .feat h3, .factor h3, .info-card h3, .form-card h3, .help-box h3, .cta-card h3, .includes h3, .svc-hover h3, .loc-card h3, .app-row h3 { font-size: 25px; line-height: 1.12; }
.svc-label { font-size: 26px; line-height: 1.1; }
.funnel h3, .foos h3 { font-size: 28px; }
.rev-card .who, .ticker-card .who { font-family: var(--font); }
.thanks-card .title { font-size: clamp(32px, 4vw, 48px); }

/* hero keyword line: sits on a busy photo, so it gets its own dark glass chip */
.lhero h1.leyebrow { display: inline-block; font-size: 14px; font-weight: 700 !important; letter-spacing: .18em; opacity: 1;
  background: rgba(1,14,32,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 10px 16px; border-radius: 2px;
  border-left: 3px solid #4fc03f; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.lhero-h { text-shadow: 0 2px 24px rgba(1,14,32,.45); }

/* address suggestions under (or, in the dock, above) an address bar */
.abar-in { position: relative; }
.abar-suggest { position: absolute; left: -6px; right: -6px; top: calc(100% + 10px); margin: 0; z-index: 80; background: #fff; color: var(--ink);
  border: 1px solid #dfe4dc; border-radius: 6px; box-shadow: 0 18px 44px rgba(0,0,0,.28); overflow: hidden; text-align: left; }
.abar-suggest .s { padding: 12px 14px; font: 500 15px/1.3 var(--font); cursor: pointer; display: flex; gap: 9px; align-items: center; color: var(--ink); }
.abar-suggest .s:hover, .abar-suggest .s.active { background: var(--accent-tint); color: var(--primary); }
.abar-suggest .s .ic { opacity: .55; font-size: 12px; }
.ldock .abar-suggest { top: auto; bottom: calc(100% + 12px); }
.qstart .abar-suggest { left: 0; right: 0; top: calc(100% + 6px); }

/* programs */
.prog-name { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.05; }
.prog-tagline { font-size: 15px; }
.qov .prog-pick .pp-name { font-family: var(--font-display); font-weight: 400; font-size: 21px; }
@media (max-width: 560px) { .lhero h1.leyebrow { font-size: 11.5px; letter-spacing: .14em; padding: 8px 12px; } }
