/* CGC site shell for page templates: header, mega menus, phone drawer, footer. Written from measurements of the Kadence header (260435) and footer (251543). */

/* ---------- Header bar ---------- */
.cgc-hd { position: relative; z-index: 100; background: var(--cgc-lime); border-bottom: 0.8px solid var(--cgc-purple); font-family: var(--cgc-font-body); }
.cgc-hd *, .cgc-hd *::before, .cgc-hd *::after { box-sizing: border-box; }
.cgc-hd__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; padding: 0 12.8px 0 16px; }
.cgc-hd__logo { display: inline-flex; flex: none; color: inherit; text-decoration: none; }
.cgc-hd__logo img { width: 220px; height: 27px; }
.cgc-hd__nav { display: flex; align-items: center; justify-content: space-between; flex: 1; min-width: 0; }
.cgc-hd__menu { display: flex; justify-content: center; flex: 1; list-style: none; margin: 0 0 0 -42px; padding: 0; }
.cgc-hd__item { position: static; }
.cgc-hd__link { display: inline-flex; align-items: center; gap: 6px; padding: 24px 4px 24px 12px; border: 0; background: transparent; font: 800 16px/1.5 var(--cgc-font-head); color: var(--cgc-purple); cursor: pointer; }
.cgc-hd__link:hover, .cgc-hd__item.is-open .cgc-hd__link { color: var(--cgc-purple-ink); }
.cgc-hd__ico { display: grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border-radius: 50%; background: var(--cgc-purple); color: #fff; }
.cgc-hd__ico i { font-size: 13px; }
.cgc-hd__chev { width: 14px; height: 14px; margin-left: 2px; transition: transform .15s; }
.cgc-hd__item.is-open .cgc-hd__chev { transform: rotate(180deg); }
.cgc-hd__link:focus-visible { outline: 3px solid var(--cgc-purple); outline-offset: -3px; }
.cgc-hd__tools { display: flex; align-items: center; gap: 16px; flex: none; }
.cgc-hd__garage { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border: 0.8px solid var(--cgc-purple); border-radius: 10px; background: #fff; color: var(--cgc-purple); font: 700 15.4px/1.6 var(--cgc-font-body); text-decoration: none; white-space: nowrap; }
.cgc-hd__garage i { font-size: 16px; }
.cgc-hd__garage:hover { background: var(--cgc-purple); color: #fff; }
.cgc-hd__burger { display: none; }

/* Search */
.cgc-hd__search { position: relative; display: flex; align-items: center; }
.cgc-hd__search-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; background: var(--cgc-purple); color: #f8fbf0; cursor: pointer; }
.cgc-hd__search-toggle svg { width: 18px; height: 18px; }
.cgc-hd__search-close, .cgc-hd__search.is-open .cgc-hd__search-open { display: none; }
.cgc-hd__search.is-open .cgc-hd__search-close { display: block; }
.cgc-hd__search-form { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); width: 0; overflow: hidden; opacity: 0; transition: width .2s, opacity .2s; }
.cgc-hd__search.is-open .cgc-hd__search-form { width: 240px; opacity: 1; }
.cgc-hd__search-form input { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--cgc-purple); border-radius: 999px; background: #fff; font: 400 15px/1 var(--cgc-font-body); color: var(--cgc-text); }

/* ---------- Mega panels (desktop) ---------- */
.cgc-hd__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: var(--cgc-paper); border-top: 0.8px solid var(--cgc-purple); box-shadow: 0 0 60px 5px rgba(0, 0, 0, .1); }
.cgc-hd__panel[hidden] { display: none; }
.cgc-hd__panel-inner { padding: 24px; }
.cgc-hd__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.cgc-hd__colhead, .cgc-tools-mega__group h3 { margin: 0 0 12px; font: 800 20px/1.6 var(--cgc-font-body); color: var(--cgc-text); }
.cgc-tools-mega__group h3 { margin-bottom: 20px; }

/* Menu-builder lists inside panels */
.cgc-hd .custom-menu-wrapper { margin: 0; }
.cgc-hd .menu-group-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cgc-hd .menu-group-list li { display: flex; align-items: center; gap: 16px; padding: 8px 6px; margin: 0 -6px; border-radius: 3px; transition: background .15s, transform .15s; }
.cgc-hd .menu-group-list li:hover { background: #faf8f3; }
.cgc-hd .menu-group-list li:hover a { color: var(--cgc-purple); }
.cgc-hd .menu-group-list i { flex: none; width: 18px !important; height: auto !important; font-size: 18px !important; color: var(--cgc-purple); text-align: center; }
.cgc-hd .menu-group-list a { color: var(--cgc-text); font: 400 16px/1.8 var(--cgc-font-body); text-decoration: none; }
.cgc-hd .menu-group-list a span { font-weight: 400; }

/* Tools panel */
.cgc-tools-mega__desktop { display: grid; grid-template-columns: 1.33fr 1fr 1fr; gap: 32px; }
.cgc-tools-mega__item { display: grid; grid-template-columns: 18px 1fr; gap: 16px; align-items: center; padding: 8px 6px; border-radius: 3px; color: var(--cgc-text); text-decoration: none; }
.cgc-tools-mega__item + .cgc-tools-mega__item, .cgc-tools-mega__premium + .cgc-tools-mega__item { margin-top: 8px; }
.cgc-tools-mega__item:hover, .cgc-tools-mega__item:focus-visible { background: #faf8f3; color: var(--cgc-purple); }
.cgc-tools-mega__item:hover .cgc-tools-mega__icon { color: #87be40; }
.cgc-tools-mega__item { transition: background .15s, transform .15s; }
.cgc-tools-mega__icon { font-size: 18px; color: var(--cgc-purple); text-align: center; }
.cgc-tools-mega__copy strong { display: block; font: 700 17px/1.4 var(--cgc-font-body); }
.cgc-tools-mega__item--featured .cgc-tools-mega__copy strong { font-size: 18px; }
.cgc-tools-mega__meta { display: block; font: 600 12px/1.5 var(--cgc-font-body); color: #615b63; }
.cgc-tools-mega__meta--free { font-weight: 800; text-transform: uppercase; color: #3f7012; }

/* ---------- Phone drawer (same markup) ---------- */
.cgc-hd__overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); }
.cgc-hd__overlay[hidden] { display: none; }
@media (max-width: 1024px) {
	.cgc-hd__bar { height: 69px; }
	.cgc-hd__logo img { width: 175px; height: 22px; }
	.cgc-hd__burger { display: grid; place-items: center; width: 47px; height: 47px; padding: 8px; border: 1.6px solid var(--cgc-purple); background: var(--cgc-bg-pale); color: var(--cgc-purple); cursor: pointer; }
	.cgc-hd__burger svg { width: 28px; height: 28px; }
	.cgc-hd__burger-close, .cgc-hd.is-open .cgc-hd__burger-open { display: none; }
	.cgc-hd.is-open .cgc-hd__burger-close { display: block; }
	.cgc-hd__nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(100%, 420px); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 64px 0 24px; overflow-y: auto; background: var(--cgc-paper); transform: translateX(100%); transition: transform .2s; }
	.cgc-hd.is-open .cgc-hd__nav { transform: none; }
	.cgc-hd.is-open .cgc-hd__burger { position: fixed; top: 9px; right: 9px; z-index: 96; background: var(--cgc-lime); }
	.cgc-hd__nav { overflow-x: hidden; }
	.cgc-hd__menu { display: block; flex: none; width: 100%; min-width: 0; margin: 0; }
	.cgc-hd__item, .cgc-hd__link { min-width: 0; max-width: 100%; }
	.cgc-hd__item { border-top: 1px solid var(--cgc-border); }
	.cgc-hd__link { width: 100%; justify-content: flex-start; padding: 8px 10px 8px 16px; font-size: 20px; color: var(--cgc-text); }
	.cgc-hd__ico { width: 24px; height: 24px; }
	.cgc-hd__chev { margin-left: auto; }
	.cgc-hd__item.is-open .cgc-hd__link { background: var(--cgc-bg-pale); color: var(--cgc-purple); }
	.cgc-hd__panel { position: static; border: 0; box-shadow: none; }
	.cgc-hd__panel-inner { padding: 20px 16px; }
	.cgc-hd__cols, .cgc-tools-mega__desktop { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.cgc-hd__panel, .cgc-hd__panel-inner, .cgc-tools-mega__group, .cgc-tools-mega__item { min-width: 0; max-width: 100%; }
	.cgc-tools-mega__copy { min-width: 0; white-space: normal; }
	.cgc-hd__colhead { font-size: 17px; margin-bottom: 14px; }
	.cgc-hd .menu-group-list a { font-size: 16px; }
	.cgc-hd__tools { justify-content: center; gap: 12px; padding: 32px 16px 0; border-top: 1px solid var(--cgc-border); margin-top: 8px; }
	.cgc-hd__garage { padding: 9px 16px; font-size: 20px; font-weight: 800; }
	.cgc-hd__search-form { right: 0; top: 100%; transform: none; }
}

/* ---------- Footer ---------- */
.cgc-ft { font-family: var(--cgc-font-body); color: #fff; background: var(--cgc-purple); }
.cgc-ft *, .cgc-ft *::before, .cgc-ft *::after { box-sizing: border-box; }
.cgc-ft a { color: inherit; text-decoration: none; }
.cgc-ft a:hover { text-decoration: underline; }
.cgc-ft__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 16px; }
.cgc-ft__head { display: block; font-size: 18px; font-weight: 700; line-height: 1.6; margin-bottom: 8px; }
.cgc-ft__col ul { list-style: none; margin: 0; padding: 0; }
.cgc-ft__col a { display: block; padding: 6px 0; font-size: 15.4px; line-height: 1.2; color: #fff; }
.cgc-ft__col:first-child a { color: #f3f3f3; }
.cgc-ft__brand { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.cgc-ft__brand img { width: 250px; height: 32px; }
.cgc-ft__social { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.cgc-ft__social a { display: grid; place-items: center; width: 36px; height: 36px; }
.cgc-ft__social svg { width: 24px; height: 24px; }
.cgc-ft__legal { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 32px; align-items: end; padding-bottom: 128px; }
.cgc-ft__legal p { margin: 0 0 8px; font-size: 12px; line-height: 1.4; }
.cgc-ft__legal a { text-decoration: underline; }
.cgc-ft__ian { width: 100px; height: 199px; justify-self: end; }
@media (max-width: 900px) {
	.cgc-ft__cols { grid-template-columns: 1fr 1fr; }
	.cgc-ft__brand { flex-direction: column; align-items: flex-start; }
	.cgc-ft__legal { grid-template-columns: 1fr; padding-bottom: 48px; }
	.cgc-ft__ian { justify-self: start; }
}
@media (max-width: 600px) {
	.cgc-ft__cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Document base (replaces what Kadence's global stylesheet used to provide) ---------- */
body.cgc-shell { margin: 0; background: #fff; color: var(--cgc-text); font-family: var(--cgc-font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.cgc-shell img { max-width: 100%; height: auto; }
.cgc-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; margin: 0; padding: 8px 12px; clip: auto; background: var(--cgc-lime); color: var(--cgc-purple-ink); font-weight: 800; border-radius: 4px; }
.cgc-lp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cgc-lp .cgc-lp-source img { height: 22px; width: auto; max-width: 88px; }
.cgc-hd__chev { flex: none; }

/* Dynamic footer message (ACF quote_page_footer_message on the page) */
.cgc-ft__message { background: var(--cgc-bg-cream); padding: 48px 0; font-size: 12px; line-height: 1.6; color: var(--cgc-text); }
.cgc-ft__message p { margin: 0 0 12px; }
.cgc-hd .menu-group-list li:hover i { color: #87be40; }
