/* Header dropdowns: Services + Service Areas (markup from tkg_nav_dropdowns()) */
.dd{position:relative;display:flex;align-items:center;gap:2px}
.dd-btn{display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:8px;background:none;color:inherit;cursor:pointer}
.dd-btn svg{width:16px;height:16px;transition:transform .2s var(--ease-out)}
.dd-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.dd-btn:focus-visible{outline:2px solid var(--lime);outline-offset:2px}

/* desktop panel */
.a-nav .dd-btn{color:var(--paper)}
.a-nav .dd-menu{position:absolute;left:50%;top:calc(100% + 14px);z-index:40;min-width:230px;display:grid;gap:2px;padding:var(--s1);
  background:var(--loam);border-top:3px solid var(--lime);border-radius:0 0 16px 16px;box-shadow:var(--sh-2);
  opacity:0;visibility:hidden;transform:translate(-50%,6px);transition:opacity .18s var(--ease-out),transform .18s var(--ease-out),visibility 0s linear .18s}
.a-nav .dd-menu::before{content:"";position:absolute;left:0;right:0;top:-17px;height:17px} /* hover bridge */
.a-nav .dd-menu.dd-cols{grid-template-columns:repeat(2,minmax(170px,1fr));min-width:380px}
.a-nav .dd-menu a{padding:10px 14px;border-radius:10px;white-space:nowrap;font-weight:700}
.a-nav .dd-menu a:hover,.a-nav .dd-menu a:focus-visible{background:var(--loam-3);color:var(--lime)}
.a-nav .dd-menu a[aria-current="page"]{color:var(--lime);box-shadow:inset 3px 0 0 var(--lime)}
.a-nav .dd.open .dd-menu{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .18s var(--ease-out),transform .18s var(--ease-out),visibility 0s}
@media (hover:hover) and (pointer:fine){
  .a-nav .dd:hover .dd-menu{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .18s var(--ease-out),transform .18s var(--ease-out),visibility 0s}
  .a-nav .dd:hover .dd-btn svg{transform:rotate(180deg)}
  .dd-btn:hover{color:var(--lime)}
}

/* mobile menu: accordion rows */
.mnav nav{min-width:min(310px,calc(100vw - 32px));max-height:calc(100vh - 140px);overflow-y:auto;overscroll-behavior:contain}
.mnav .dd{flex-wrap:wrap;justify-content:space-between}
.mnav .dd>a{flex:1}
.mnav .dd-btn{width:40px;height:40px;color:var(--paper)}
.mnav .dd-menu{display:none;flex-basis:100%;margin:0 0 4px 6px;padding-left:8px;border-left:2px solid var(--loam-3)}
.mnav .dd.open .dd-menu{display:grid}
.mnav .dd-menu.dd-cols{grid-template-columns:1fr 1fr}
.mnav .dd-menu a{font-weight:600;padding:8px 6px;white-space:nowrap;color:var(--on-dark)}
.mnav .dd-menu a[aria-current="page"]{color:var(--lime)}

@media (prefers-reduced-motion:reduce){
  html:not([data-motion="force"]) .a-nav .dd-menu{transform:translate(-50%,0)}
  html:not([data-motion="force"]) .dd-btn svg{transition:none}
}

/* keep every top-level label on one line between the 1240px burger breakpoint and wide desktop */
.a-nav>a,.a-nav .dd>a{white-space:nowrap}
@media (max-width:1380px){.a-nav{gap:var(--s3)} .va .a-head{gap:var(--s3)}}

/* header logo: bigger, from the 232px source so it stays sharp (Spencer 2026-10-12, was 60px tall and hard to see) */
.brand .logo{height:84px}
.va .a-head{padding-top:12px;padding-bottom:12px}
@media (max-width:860px){.brand .logo,.vc .c-brand .logo{height:60px}}

/* back to top: bottom left, clear of the chat bubble and its greeting popup on the right */
.to-top{position:fixed;left:24px;bottom:24px;z-index:45;width:48px;height:48px;display:grid;place-items:center;border:2px solid var(--lime);border-radius:50%;background:var(--loam);color:var(--lime);cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.22);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity 200ms var(--ease-out),transform 200ms var(--ease-out),visibility 0s linear 200ms}
.to-top.show{opacity:1;visibility:visible;transform:none;transition:opacity 200ms var(--ease-out),transform 200ms var(--ease-out),visibility 0s}
.to-top svg{width:22px;height:22px}
.to-top:focus-visible{outline:3px solid var(--lime);outline-offset:3px}
@media (hover:hover) and (pointer:fine){.to-top:hover{background:var(--lime);color:var(--loam)}}
@media (max-width:860px){.to-top{left:16px;bottom:16px;width:44px;height:44px}}
@media (prefers-reduced-motion:reduce){.to-top,.to-top.show{transform:none}}

/* wide screens: top bar + header line up with the page's 1360px content column instead of the window edge (Spencer 2026-10-12) */
@media (min-width:861px){.va .a-top,.va .a-head{padding-left:max(48px,calc((100% - 1360px) / 2 + 48px));padding-right:max(48px,calc((100% - 1360px) / 2 + 48px))}}

/* GHL lead forms (inc/helpers.php tkg_ghl_*). The iframes paint their own fields; style them with GHL-CUSTOM-CSS.css pasted into each form. */
.est-ghl{margin-top:var(--s2)}
.est-ghl iframe{display:block;width:100%;min-height:inherit}
.est-has-ghl .calc{margin-bottom:0}
/* Banner form: fixed-height panel that scrolls, so the long form never stretches the hero card */
.est-ghl--scroll{height:520px;overflow-y:auto;overscroll-behavior:contain;border-radius:var(--r-sm);position:relative;
  scrollbar-width:thin;scrollbar-color:var(--leaf) var(--line);
  -webkit-mask-image:linear-gradient(#000 calc(100% - 40px),transparent);mask-image:linear-gradient(#000 calc(100% - 40px),transparent)}
.est-ghl--scroll:focus-visible{outline:3px solid var(--leaf);outline-offset:3px}
@media (max-width:760px){.est-ghl--scroll{height:480px}}
/* Pop up form modal */
.est-modal{border:0;padding:0;background:transparent;max-width:min(560px,calc(100vw - 24px));width:100%;max-height:calc(100dvh - 24px);overflow:visible}
.est-modal::backdrop{background:rgba(15,25,17,.72)}
.est-modal-card{background:var(--white);border-radius:var(--r-card);border-top:6px solid var(--lime);box-shadow:var(--sh-2);
  padding:var(--s5) var(--s3) var(--s2);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;position:relative}
.est-modal .est-h{font-size:var(--t-2xl);color:var(--loam);text-align:center;margin-right:32px;margin-left:32px}
.est-modal-body{min-height:979px}
.est-modal-x{position:sticky;top:0;float:right;margin:-28px -8px 0 0;z-index:2;width:44px;height:44px;border:0;border-radius:50%;background:var(--paper,#F4F5EC);color:var(--loam);font-size:28px;line-height:1;cursor:pointer}
.est-modal-x:focus-visible{outline:3px solid var(--leaf);outline-offset:2px}
html.est-modal-open{overflow:hidden}
/* Service-row estimate button (was a text link) */
.row-cta{display:inline-flex;width:auto;align-self:flex-start;margin-top:var(--s2)}
@media (max-width:760px){.row-cta{width:100%;justify-content:center}}
/* Balanced 3-up card lists (assets/js/balance.js picks one on wide screens) */
.tkg-cards.c3.bal-first,.tkg-cards.c3.bal-last{display:grid;columns:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto 1fr;column-gap:var(--s3);row-gap:0;align-items:start} /* 1fr second row: the spanning card never stretches row 1, so no gap between the stacked cards */
.tkg-cards.c3.bal-first>li,.tkg-cards.c3.bal-last>li{margin:0 0 var(--s3)}
.tkg-cards.c3.bal-first>li:nth-child(1){grid-column:1;grid-row:1 / span 2}
.tkg-cards.c3.bal-first>li:nth-child(2){grid-column:2;grid-row:1}
.tkg-cards.c3.bal-first>li:nth-child(3){grid-column:2;grid-row:2}
.tkg-cards.c3.bal-last>li:nth-child(1){grid-column:1;grid-row:1}
.tkg-cards.c3.bal-last>li:nth-child(2){grid-column:1;grid-row:2}
.tkg-cards.c3.bal-last>li:nth-child(3){grid-column:2;grid-row:1 / span 2}
.tkg-cards.c3.bal-wide-last,.tkg-cards.c3.bal-wide-first{display:grid;columns:auto;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s3);row-gap:0;align-items:stretch}
.tkg-cards.c3.bal-wide-last>li,.tkg-cards.c3.bal-wide-first>li{margin:0 0 var(--s3)}
.tkg-cards.c3.bal-wide-last>li:nth-child(3),.tkg-cards.c3.bal-wide-first>li:nth-child(1){grid-column:1 / -1;columns:2;column-gap:var(--s5)}
.tkg-cards.c3.bal-wide-last>li:nth-child(3)>.ia-wn,.tkg-cards.c3.bal-wide-last>li:nth-child(3)>h3,
.tkg-cards.c3.bal-wide-first>li:nth-child(1)>.ia-wn,.tkg-cards.c3.bal-wide-first>li:nth-child(1)>h3{column-span:all}
.tkg-cards.c3.bal-wide-last>li:nth-child(3) p,.tkg-cards.c3.bal-wide-last>li:nth-child(3) ul,
.tkg-cards.c3.bal-wide-first>li:nth-child(1) p,.tkg-cards.c3.bal-wide-first>li:nth-child(1) ul{break-inside:avoid}
/* Intro text moved out of the hero (tkg_intro_rest_block): full width, no half-empty row */
.tkg-intro{padding-top:var(--s5);padding-bottom:var(--s2)}
.tkg-intro .tkg-lead{max-width:none;columns:2;column-gap:var(--s6);font-size:var(--t-md)}
.tkg-intro .tkg-lead p{max-width:none;break-inside:avoid}
.tkg-intro.one .tkg-lead{columns:1;max-width:72ch;margin:0 auto;text-align:center;font-size:var(--t-lg)}
@media (max-width:860px){.tkg-intro .tkg-lead{columns:1}}
/* Launch check B122/B132: big step numerals on the dark home sections kept faint but now 3.2:1 (large-text minimum 3:1) */
.step-n{color:#6A7B2C!important;-webkit-text-stroke-color:#6A7B2C}
.a-wc-in .a-wn{color:#6A7B2C;opacity:1}
/* Launch check B131: text links that act as buttons get a 24px minimum tap target */
a.more,.a-more{display:inline-flex;align-items:center;min-height:24px;padding-block:2px}
/* Launch check B120: between the mobile pill and the full header phone (821 to 1240px) the phone was hidden */
@media (min-width:821px) and (max-width:1240px){.m-tel{display:inline-block}}
.tkg-noresults{max-width:60ch;margin:var(--s4) auto;text-align:center}
