/* ===================== HEADER DROPDOWN — CORRECTED ===================== */
/* Fix: wp_nav_menu() here uses items_wrap => '%3$s', meaning WordPress
   outputs <li> items directly with NO wrapping <ul>. All selectors below
   target .site-nav / .mobile-nav themselves as the flex containers. */

.site-nav,
.mobile-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- DESKTOP NAV ---------- */

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav > li {
  list-style: none;
  position: relative;
}

.site-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a1a2e;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
}

/* Arrow icon — shown always, rotates on hover */
.site-nav > li.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg); /* pointing down by default */
  transition: transform 0.2s ease;
}

.site-nav > li.menu-item-has-children:hover > a::after {
  transform: rotate(225deg); /* pointing up on hover */
}

/* Dropdown panel */
.site-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  z-index: 100;
  display: none;
}

.site-nav > li.menu-item-has-children:hover > .sub-menu {
  display: block;
}

.site-nav .sub-menu li {
  list-style: none;
  width: 100%;
}

.site-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  color: #4b5563;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}

.site-nav .sub-menu a:hover {
  background: #fff4ec;
  color: #ff6b1a;
}


/* ---------- MOBILE NAV ---------- */

/* Fully hidden on desktop — this is a device-size difference,
   not an open/close animation, so display:none is fine here. */
.mobile-nav {
  display: none;
}

.mobile-nav .btn {
    width: 92% !important;
}

.mobile-nav .btn.btn--primary,
.mobile-nav .btn.btn--dark{
  margin: auto;
  color: white !important;
}

/* Burger hidden on desktop by default */
.site-header__burger {
  display: none;
}


/*
 * Location landing pages.
 * Paste into twentytwenty-child/style.css, or enqueue alongside listing.css.
 */

.location-page {
	--loc-orange: #f26522;
	--loc-navy: #0f2137;
	--loc-muted: #6b7280;
	--loc-line: #e6e8ec;
}

.location-banner {
	background-position: center;
	background-size: cover;
	height: clamp(160px, 22vw, 260px);
	width: 100%;
}

.location-crumbs {
	align-items: center;
	color: var(--loc-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: .92rem;
	gap: .35rem;
	padding: 1.5rem 0;
}

.location-crumbs__label { color: inherit; font-weight: 600; }
.location-crumbs a { color: var(--loc-orange); text-decoration: none; }
.location-crumbs a:hover { text-decoration: underline; }
.location-crumbs [aria-current] { color: var(--loc-muted); }

.location-intro { margin-bottom: 1.5rem; max-width: 70ch; }

.location-links {
	columns: 260px;
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 0;
}

.location-links__item {
	break-inside: avoid;
	padding: .45rem 0;
}

.location-links__item a {
    color: #1c1c1c;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.location-links__item a:hover { color: var(--loc-orange); }

.location-links__count {
    color: var(--loc-muted);
    font-size: .88rem;
    font-weight: 700;
}

/* Start Signature CSS */
/* ============================================================
   SIGNATURE / AUTHORITY PAGE
   Append to assets/css/custom.css
   ============================================================ */

.signature-page {
    --sig-ink:      #0E2A47;
    --sig-ink-soft: #5C6B7A;
    --sig-signal:   #F58220;
    --sig-paper:    #FBFAF7;
    --sig-rule:     #DDE3EA;
    --sig-mono:     ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
}

/* Ink band behind the top of the sheet, paper below it. */
.signature-page .band--ink {
    background: linear-gradient(180deg, #0E2A47 0 300px, var(--sig-paper) 300px);
    padding: 56px 0 96px;
}

/* ---- Progress: three real steps, two already complete ---- */

.sigtrack {
    display: flex;
    gap: 10px;
    max-width: 820px;
    margin: 0 auto 22px;
    padding: 0;
    list-style: none;
    font: 600 11px/1 var(--sig-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.sigtrack__step {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sigtrack__step + .sigtrack__step::before {
    content: "";
    width: 22px;
    height: 1px;
    background: rgba(255, 255, 255, .25);
}

.sigtrack__step--done { color: rgba(255, 255, 255, .8); }
.sigtrack__step--now  { color: #fff; }

.sigtrack__tick {
    color: var(--sig-signal);
    font-size: 13px;
}

/* ---- The sheet ---- */

.sigsheet {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--sig-rule);
    border-radius: 3px;
    box-shadow: 0 24px 60px -28px rgba(14, 42, 71, .45);
    overflow: hidden;
    animation: sig-rise .5s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes sig-rise {
    from { opacity: 0; transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
    .sigsheet { animation: none; }
}

/* ---- Document body ---- */

.sigdoc { padding: 44px 40px 48px; }

.sigdoc__kicker {
    font: 600 11px/1 var(--sig-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sig-signal);
    margin: 0 0 12px;
}

.sigdoc__title {
    margin: 0 0 24px;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--sig-ink);
}

.sigdoc__terms {
    border-left: 2px solid var(--sig-rule);
    padding-left: 20px;
    margin: 0 0 38px;
}

.sigdoc__terms p {
    margin: 0 0 13px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--sig-ink-soft);
}

.sigdoc__terms p:last-child { margin-bottom: 0; }
.sigdoc__terms strong { color: var(--sig-ink); font-weight: 600; }

.sigdoc__rule {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 26px;
    font: 600 11px/1 var(--sig-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sig-ink-soft);
}

.sigdoc__rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--sig-rule);
}

.sigdoc__stamp {
    margin: 32px 0 0;
    padding-top: 18px;
    border-top: 1px dashed var(--sig-rule);
    font: 500 12px/1.5 var(--sig-mono);
    color: var(--sig-ink-soft);
}

/* ---- Gravity Forms, scoped to this sheet ---- */

.sigdoc .gform_wrapper { margin: 0; }

/* Form title is on, so it sits under the "Sign here" rule. */
.sigdoc .gform_wrapper .gform_title {
    font-size: 17px;
    font-weight: 600;
    color: var(--sig-ink);
    margin: 0 0 22px;
}

.sigdoc .gform_wrapper .gform_fields { gap: 22px; }

.sigdoc .gform_wrapper .gfield_label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--sig-ink);
    margin-bottom: 9px;
}

.sigdoc .gform_wrapper .gfield_required { color: var(--sig-signal); }

.sigdoc .gform_wrapper input[type="text"],
.sigdoc .gform_wrapper input[type="email"],
.sigdoc .gform_wrapper input[type="tel"],
.sigdoc .gform_wrapper input[type="date"],
.sigdoc .gform_wrapper textarea {
    width: 100%;
    padding: 13px 15px;
    font-size: 16px;   /* 16px stops iOS zooming on focus */
    color: var(--sig-ink);
    background: #fff;
    border: 1px solid var(--sig-rule);
    border-radius: 2px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.sigdoc .gform_wrapper input:focus,
.sigdoc .gform_wrapper textarea:focus {
    outline: none;
    border-color: var(--sig-signal);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, .16);
}

/* Sign-or-type choice: two tappable cards, not bare radios. */
.sigdoc .gform_wrapper .gfield_radio { display: grid; gap: 10px; }

.sigdoc .gform_wrapper .gchoice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid var(--sig-rule);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.sigdoc .gform_wrapper .gchoice:hover { border-color: #B9C4D0; }

.sigdoc .gform_wrapper .gchoice:has(input:checked) {
    border-color: var(--sig-signal);
    background: rgba(245, 130, 32, .05);
}

.sigdoc .gform_wrapper .gchoice input {
    margin-top: 3px;
    accent-color: var(--sig-signal);
}

.sigdoc .gform_wrapper .gchoice label {
    font-size: 15px;
    line-height: 1.5;
    color: var(--sig-ink);
    cursor: pointer;
    margin: 0;
}

/* Signature pad reads as a ruled signing line on paper. */
.sigdoc .gform_wrapper .gfield--type-signature .gfield_label { margin-bottom: 11px; }

.sigdoc .gform_wrapper canvas {
    border: 1px solid var(--sig-rule) !important;
    border-bottom: 2px solid var(--sig-ink) !important;
    border-radius: 2px 2px 0 0;
    background: var(--sig-paper) !important;
    max-width: 100%;
    touch-action: none;   /* lets a finger draw instead of scrolling the page */
}

.sigdoc .gform_wrapper .gform_footer {
    margin: 34px 0 0;
    padding: 0;
}

.sigdoc .gform_wrapper .gform_button {
    appearance: none;
    border: 0;
    border-radius: 2px;
    background: var(--sig-signal);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 16px 40px;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}

.sigdoc .gform_wrapper .gform_button:hover { background: #DE7016; }
.sigdoc .gform_wrapper .gform_button:active { transform: translateY(1px); }

.sigdoc .gform_wrapper .gform_button:focus-visible {
    outline: 3px solid rgba(245, 130, 32, .4);
    outline-offset: 2px;
}

.sigdoc .gform_wrapper .validation_message {
    font-size: 13px;
    color: #C0392B;
    margin-top: 6px;
}

.sigdoc .gform_wrapper .gform_validation_errors {
    border-radius: 2px;
    margin-bottom: 26px;
}

.d-flex {
    display: flex;
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

/* ============================================================
   PAYMENT COMPLETE PAGE
   Append to assets/css/custom.css
   ============================================================ */

.paid-page {
    --paid-ink:      #0E2A47;
    --paid-ink-soft: #5C6B7A;
    --paid-signal:   #F58220;
    --paid-paper:    #FBFAF7;
    --paid-rule:     #DDE3EA;
    --paid-seal:     #1F7A5C;
    --paid-mono:     ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
}

.paid-page .band--ink {
    background: linear-gradient(180deg, #0E2A47 0 280px, var(--paid-paper) 280px);
    padding: 56px 0 96px;
}

/* ---- Progress: the whole flow is behind them now ---- */

.paidtrack {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto 22px;
    padding: 0;
    list-style: none;
    font: 600 11px/1 var(--paid-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
}

.paidtrack__step {
    display: flex;
    align-items: center;
    gap: 7px;
}

.paidtrack__step + .paidtrack__step::before {
    content: "";
    width: 22px;
    height: 1px;
    background: rgba(255, 255, 255, .25);
}

.paidtrack__tick {
    color: var(--paid-signal);
    font-size: 13px;
}

/* ---- The sheet ---- */

.paidsheet {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--paid-rule);
    border-radius: 3px;
    box-shadow: 0 24px 60px -28px rgba(14, 42, 71, .45);
    padding: 52px 44px 46px;
    text-align: center;
    animation: paid-rise .5s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes paid-rise {
    from { opacity: 0; transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
    .paidsheet { animation: none; }
}

.paidsheet__seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 0 20px;
    border-radius: 50%;
    background: rgba(31, 122, 92, .1);
    color: var(--paid-seal);
    font-size: 24px;
    line-height: 1;
}

.paidsheet__kicker {
    font: 600 11px/1 var(--paid-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--paid-seal);
    margin: 0 0 14px;
}

.paidsheet__title {
    margin: 0 0 16px;
    font-size: clamp(28px, 4.5vw, 38px);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--paid-ink);
}

.paidsheet__lede {
    max-width: 440px;
    margin: 0 auto 32px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--paid-ink-soft);
}

/* ---- Single action ---- */

.paidbtn {
    display: inline-block;
    background: var(--paid-signal);
    color: #fff;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 16px 42px;
    text-decoration: none;
    transition: background .15s ease, transform .1s ease;
}

.paidbtn:hover {
    background: #DE7016;
    color: #fff;
}

.paidbtn:active { transform: translateY(1px); }

.paidbtn:focus-visible {
    outline: 3px solid rgba(245, 130, 32, .4);
    outline-offset: 2px;
}

/* ---- Help line ---- */

.paidsheet__help {
    margin: 30px 0 0;
    padding-top: 22px;
    border-top: 1px dashed var(--paid-rule);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--paid-ink-soft);
}

.paidsheet__help a {
    color: var(--paid-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.sigsheet .gform-theme--framework .gfield--type-choice .gfield_radio {
    max-width: 100% !important;
}
/* ---- Mobile ---- */

@media (max-width: 640px) {
    .paid-page .band--ink {
        background: linear-gradient(180deg, #0E2A47 0 240px, var(--paid-paper) 240px);
        padding: 34px 0 64px;
    }

    .paidtrack { font-size: 10px; gap: 7px; }
    .paidtrack__step + .paidtrack__step::before { width: 12px; }

    .paidsheet { padding: 38px 22px 34px; }
    .paidbtn { display: block; }
}

/* ---- Mobile ---- */

@media (max-width: 640px) {
    .signature-page .band--ink {
        background: linear-gradient(180deg, #0E2A47 0 250px, var(--sig-paper) 250px);
        padding: 34px 0 64px;
    }

    .sigtrack { font-size: 10px; gap: 7px; }
    .sigtrack__step + .sigtrack__step::before { width: 12px; }

    .sigdoc { padding: 32px 22px 36px; }
    .sigdoc .gform_wrapper .gform_button { width: 100%; }
}

/* End Signature CSS */


@media (max-width: 640px) {
	.location-links { columns: 1; }
}

/* Residential and commercial toggle ------------------------------------ */

.location-toggle {
	display: flex;
	flex-wrap: wrap;
	gap: 1.75rem;
	margin-bottom: 1.75rem;
}

.location-toggle__item {
	align-items: center;
	color: inherit;
	display: inline-flex;
	font-weight: 600;
	gap: .5rem;
	text-decoration: none;
}

.location-toggle__dot {
	border: 2px solid #c4c9d2;
	border-radius: 50%;
	display: inline-block;
	height: 17px;
	position: relative;
	width: 17px;
}

.location-toggle__item.is-active .location-toggle__dot { border-color: var(--loc-orange); }

.location-toggle__item.is-active .location-toggle__dot::after {
	background: var(--loc-orange);
	border-radius: 50%;
	content: "";
	inset: 3px;
	position: absolute;
}

/* City and region columns ---------------------------------------------- */

.location-groups {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	margin-bottom: 2.5rem;
}

@media (min-width: 800px) {
	.location-groups { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

.location-group__title {
	background: var(--loc-orange);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 .75rem;
	padding: .7rem 1rem;
}

.location-groups .location-links {
	columns: 1;
	margin: 0;
	padding-inline-start: 1rem;
}

/* Bottom CTA band ------------------------------------------------------ */

.location-cta {
	align-items: center;
	background: #eaf2fb;
	border-radius: 14px;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
	margin: 3rem 0;
	overflow: hidden;
	padding: 2.5rem;
}

@media (min-width: 900px) {
	.location-cta {
		gap: 2.5rem;
		grid-template-columns: 1.05fr .95fr;
		/* No right padding, so the picture runs to the edge of the panel
		   the way it does in the design. */
		padding: 2.5rem 0 2.5rem 3rem;
	}
}

.location-cta__title {
	color: var(--loc-navy);
	font-size: clamp(1.5rem, 3vw, 2.15rem);
	line-height: 1.2;
	margin: 0 0 .8rem;
}

.location-cta__text {
	color: #45566b;
	font-size: .95rem;
	line-height: 1.65;
	margin: 0 0 1.5rem;
	max-width: 46ch;
}

.location-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

/* The theme has no ghost variant, so it is defined here rather than
   added to the global button styles. */
.location-cta .btn--ghost {
	background: #fff;
	border: 1px solid #d7dee7;
	color: var(--loc-navy);
}

.location-cta .btn--ghost:hover,
.location-cta .btn--ghost:focus {
	border-color: var(--loc-navy);
	color: var(--loc-navy);
}

.location-cta__media { margin: 0; }

.location-cta__media img {
	display: block;
	height: auto;
	width: 100%;
}

@media (max-width: 899px) {
	/* Picture above the words on a phone, otherwise it is only reached
	   after scrolling past the whole paragraph. */
	.location-cta__media { order: -1; }

	.location-cta__media img { border-radius: 10px; }
}

@media (max-width: 640px) {
	.location-cta {
		margin: 2rem 0;
		padding: 1.5rem;
	}

	.location-cta__text { margin-bottom: 1.25rem; }

	.location-cta__actions .btn { flex: 1 1 100%; text-align: center; }
}


@media (max-width: 900px) {

  .mobile-nav {
    display: flex;              /* present in layout on mobile */
    flex-direction: column;
    width: 100%;

    max-height: 0;               /* collapsed by default */
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

#navtoggle:checked ~ .mobile-nav {
    height: 100svh;
    max-height: 100svh;
    overflow: auto;
    position: absolute;
    top: 0;
    padding-top: 80px;
    padding-bottom: 40px;
}
body.menu-open header.site-header .container.site-header__inner {
    position: relative;
    z-index: 3;
    background: #FFF;
}
.mobile-nav a.btn.btn--dark {
    width: 95% !important;
    margin-top: 20px;
}

  /* Hide the desktop inline nav + CTA buttons on mobile —
     the hamburger + .mobile-nav take over instead */
  .site-header__inner .site-nav,
  .site-header__inner .site-header__cta {
    display: none;
  }

  /* Make sure the burger icon itself is visible on mobile —
     this override must come AFTER the base rule above so it
     actually wins inside this media query */
  .site-header__burger {
    display: flex;
  }
}

.mobile-nav > li {
  list-style: none;
  width: 100%;
  border-bottom: 1px solid #eee;
}

.mobile-nav > li > a {
  display: block;
  padding: 14px 18px;
  color: #1a1a2e;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav > li.menu-item-has-children {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav > li.menu-item-has-children > a {
  flex: 1;
}

/* Arrow toggle button — injected by JS next to the parent link */
.mobile-nav .dropdown-toggle {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 6px;
    border: 1px solid #00000029;
    margin-right: 22px;
}

.mobile-nav .dropdown-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #1a1a2e;
  border-bottom: 2px solid #1a1a2e;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.mobile-nav > li.menu-item-has-children.is-open > .dropdown-toggle::before {
  transform: rotate(225deg);
}

/* Submenu — collapsed by default, expands on click via .is-open class */
.mobile-nav .sub-menu {
  list-style: none;
  flex-basis: 100%;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: #fafafa;
  transition: max-height 0.25s ease;
}
.mobile-nav > li.menu-item-has-children > .sub-menu{
 padding-left:16px; 
}
.mobile-nav > li.menu-item-has-children.is-open > .sub-menu {
  max-height: 500px;
   /* padding: 4px 0 10px 16px;  */
   padding-top: 4px;
   padding-bottom: 10px;
 
}

.mobile-nav .sub-menu li {
  list-style: none;
  border-bottom: none;
}

.mobile-nav .sub-menu a {
  display: block;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
}