/*
 * NJ Gold Star — utility layer.
 * Colours and fonts are NOT set here: every value reads the Elementor Kit
 * (Site Settings → Global Colors / Global Fonts) through the CSS variables
 * Elementor prints on every page. Change a global and this file follows.
 * Only behaviour the Elementor panel cannot express lives here.
 */

/* Declared on body, not :root — Elementor prints the Kit variables on body.elementor-kit-N,
   so at :root they are undefined and every fallback would win (measured: 16 elements stuck on the old gold). */
body {
	--ngs-charcoal: var(--e-global-color-primary, #17191c);
	--ngs-gold: var(--e-global-color-secondary, #f2b01e);
	--ngs-text: var(--e-global-color-text, #17191c);
	--ngs-accent: var(--e-global-color-accent, #b4820a);
	--ngs-warm: var(--e-global-color-ngs_warm, #f6f3ee);
	--ngs-line: var(--e-global-color-ngs_line, #e5e0d8);
	--ngs-muted: var(--e-global-color-ngs_muted, #5c6068);
	--ngs-soft: var(--e-global-color-ngs_soft, #40454b);
	--ngs-fine: var(--e-global-color-ngs_fine, #7b8087);
	--ngs-ondark: var(--e-global-color-ngs_ondark, #c9ccd1);
	--ngs-gold-hi: var(--e-global-color-ngs_gold_hi, #ffc63f);
	--ngs-gold-tint: var(--e-global-color-ngs_gold_tint, rgba(242, 176, 30, .12));
	--ngs-head: var(--e-global-typography-primary-font-family, "Archivo"), system-ui, sans-serif;
	--ngs-body: var(--e-global-typography-text-font-family, "Source Sans 3"), system-ui, sans-serif;
	--ngs-callbar-h: 54px;
}

body.ngs-site { padding-bottom: var(--ngs-callbar-h); }

/* ---------- header (HFE) : topbar scrolls away, the white bar stays */
.ngs-site #masthead { position: sticky; top: -38px; z-index: 60; box-shadow: 0 1px 12px rgba(23, 25, 28, .06); }
.admin-bar.ngs-site #masthead { top: -6px; }
@media (max-width: 767px) {
	.ngs-site #masthead { top: 0; }
	.admin-bar.ngs-site #masthead { top: 46px; }
}
.ngs-header-logo img { height: auto; max-height: 52px; width: auto; }
.ngs-nav .hfe-nav-menu__toggle { margin-left: 4px; }
/* Six menu items + phone button: keep one line between the tablet breakpoint and full width. */
@media (min-width: 1025px) and (max-width: 1240px) {
	.ngs-nav .hfe-nav-menu > li > a.hfe-menu-item, .ngs-nav .hfe-nav-menu > li > .hfe-has-submenu-container > a.hfe-menu-item { padding-left: 7px !important; padding-right: 7px !important; font-size: 14px; }
	.ngs-header-logo img { max-height: 44px; }
}
/* Desktop bar only: the tablet/mobile dropdown must stay a vertical list (a site-wide nowrap turned it sideways). */
@media (min-width: 1025px) {
	.ngs-nav .hfe-nav-menu__layout-horizontal .hfe-nav-menu { flex-wrap: nowrap; }
}
/* The dropdown opens below the whole header bar, full width. */
@media (max-width: 1024px) {
	.ngs-nav nav.hfe-dropdown { position: absolute; left: 0; right: 0; top: 100%; width: 100vw; box-shadow: 0 12px 24px rgba(23, 25, 28, .12); }
	.ngs-header-row, .ngs-header .e-con-inner { position: static !important; }
	.ngs-header { position: relative; }
}
.ngs-header-actions .elementor-button { white-space: nowrap; }
@media (max-width: 480px) {
	.ngs-header-actions .elementor-widget-button .elementor-button { padding: 10px 11px; font-size: 13px; letter-spacing: 0; }
	.ngs-header-logo img { max-height: 40px; }
}

/* ---------- fixed call bar (from the footer template) */
.ngs-callbar.ngs-callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; }
.ngs-callbar > .elementor-element, .ngs-callbar .elementor-widget-button { flex: 1 1 50%; }
.ngs-callbar .elementor-button { width: 100%; border-radius: 0 !important; min-height: calc(var(--ngs-callbar-h) - 2px); white-space: nowrap; }
@media (max-width: 420px) { .ngs-callbar .elementor-button { font-size: 13px; letter-spacing: 0; padding-left: 6px; padding-right: 6px; } }
.elementor-editor-active .ngs-callbar.ngs-callbar { position: relative; }

/* ---------- rich text rhythm */
.elementor-widget-text-editor p:last-child, .elementor-widget-text-editor ul:last-child, .elementor-widget-text-editor ol:last-child { margin-bottom: 0; }
.ngs-prose p { margin: 0 0 1em; }
.ngs-prose ul, .ngs-prose ol { margin: 0 0 1em; padding-left: 22px; line-height: 1.8; }
.ngs-prose h3 { font-family: var(--ngs-head); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 1.3em 0 .45em; color: var(--ngs-charcoal); }
.ngs-prose a, .ngs-sources a, .ngs-answer a { text-decoration: underline; text-decoration-color: var(--ngs-gold); text-underline-offset: 3px; }
.ngs-lead p { border-left: 4px solid var(--ngs-gold); padding-left: 16px; font-weight: 600; }
.ngs-section + .ngs-section { margin-top: 18px; }
.ngs-byline p { border-top: 1px solid var(--ngs-line); padding-top: 14px; }

/* ---------- breadcrumbs, badges, answer box */
.ngs-crumbs p { margin: 0; }
.ngs-crumbs a { color: inherit; }
.ngs-crumbs a:hover { color: var(--ngs-gold); }
.ngs-sep { margin: 0 6px; opacity: .7; }
.ngs-answer .elementor-widget-text-editor p { margin: 0; }
.ngs-badge .elementor-heading-title { display: inline-block; background: var(--ngs-gold); padding: 7px 12px; border-radius: 2px; }
.ngs-hero-box { border: 1px solid rgba(242, 176, 30, .45); }
.ngs-hero-serving { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px !important; margin-top: 4px; }
.ngs-strip .elementor-heading-title { letter-spacing: .05em; }
.ngs-gold, .ngs-gold a { color: var(--ngs-gold) !important; font-weight: 700; }

/* ---------- cards */
.ngs-card { transition: box-shadow .2s ease; overflow: hidden; }
.ngs-card:hover { box-shadow: 0 12px 30px rgba(23, 25, 28, .12); }
.ngs-review:hover, .ngs-aside-cta:hover, .ngs-aside-box:hover, .ngs-county:hover { box-shadow: none; }
.ngs-card-img img, .ngs-card .elementor-widget-image img { display: block; }
.ngs-review-src { font-weight: 400; color: var(--ngs-fine); font-size: 14px; }
.ngs-caps-link .elementor-heading-title { display: inline-block; border-bottom: 2px solid var(--ngs-gold); }
.ngs-btn-full .elementor-button { width: 100%; }

/* ---------- facts list */
.ngs-facts { margin: 0; display: grid; gap: 12px; }
.ngs-facts dt { font-family: var(--ngs-head); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ngs-accent); }
.ngs-facts dd { margin: 3px 0 0; }
.ngs-facts--dark { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 14px; }
.ngs-facts--dark dt { color: var(--ngs-gold); }

/* ---------- tables (rich text, editable cell by cell) */
.ngs-table { margin: 0; overflow-x: auto; background: #fff; border: 1px solid var(--ngs-line); border-radius: 4px; }
.ngs-table figcaption { font-family: var(--ngs-head); font-weight: 700; font-size: 14px; padding: 12px 16px; color: var(--ngs-charcoal); background: var(--ngs-warm); border-bottom: 1px solid var(--ngs-line); }
.ngs-table table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; font-size: inherit; }
.ngs-table th { background: var(--ngs-charcoal); color: #fff; text-align: left; padding: 12px 16px; font-family: var(--ngs-head); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; border: 0; }
.ngs-table td { padding: 11px 16px; border: 0; border-top: 1px solid var(--ngs-line); vertical-align: top; }
.ngs-table tbody tr:nth-child(odd) td { background: transparent; }
.ngs-table--compare th:nth-child(2) { color: var(--ngs-gold); }
.ngs-table--compare td:nth-child(2) { font-weight: 700; color: var(--ngs-charcoal); }
.ngs-table--compare td:nth-child(3) { color: var(--ngs-fine); }

/* ---------- FAQ (Nested Accordion) */
.ngs-faq .e-n-accordion-item-title { cursor: pointer; }
.ngs-faq .e-n-accordion-item-title-header h3 { margin: 0; }
.ngs-faq .e-n-accordion-item > .e-con { padding-top: 0 !important; }

/* ---------- sources */
.ngs-sources ol { margin: 0; padding-left: 20px; line-height: 1.7; }
.ngs-sources-wrap { border-top: 1px solid var(--ngs-line); padding-top: 18px !important; }

/* ---------- chips + town list + footer */
.ngs-chips .elementor-button { border-radius: 999px !important; border-width: 1px !important; text-transform: none; letter-spacing: 0; font-weight: 600; font-family: var(--ngs-body); }
.ngs-townlist a { display: inline-block; margin: 0 13px 5px 0; }
.ngs-footer-logo img { background: #fff; border-radius: 3px; padding: 6px 10px; box-sizing: content-box; }
.ngs-footer-contact p { line-height: 1.8; }

/* ---------- quote form */
.ngs-quote { max-width: 760px; }
.ngs-form { display: grid; gap: 14px; }
.ngs-form .ngs-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ngs-form label { display: grid; gap: 5px; font-family: var(--ngs-body); font-size: 15px; font-weight: 600; color: var(--ngs-soft); }
.ngs-form input[type="text"], .ngs-form input[type="tel"], .ngs-form input[type="email"], .ngs-form select, .ngs-form textarea {
	font: inherit; font-weight: 400; font-size: 16px; padding: 12px 13px; border: 1px solid #cfc9be; border-radius: 3px; background: #fff; color: var(--ngs-text); width: 100%; box-sizing: border-box;
}
.ngs-form input:focus, .ngs-form select:focus, .ngs-form textarea:focus { outline: 2px solid var(--ngs-gold); outline-offset: 1px; border-color: var(--ngs-charcoal); }
.ngs-form [aria-invalid="true"] { border-color: #b3261e; }
.ngs-field-error { color: #b3261e; font-weight: 600; font-size: 14px; }
.ngs-req { color: var(--ngs-accent); margin-left: 2px; }
.ngs-form .ngs-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ngs-muted); font-weight: 400; }
.ngs-form .ngs-consent input { margin-top: 3px; flex: 0 0 auto; }
.ngs-submit { justify-self: start; font-family: var(--e-global-typography-accent-font-family, "Archivo"), sans-serif; font-weight: 800; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; padding: 16px 24px; border-radius: 3px; border: 0; cursor: pointer; background: var(--ngs-gold); color: var(--ngs-charcoal); }
.ngs-submit:hover, .ngs-submit:focus { background: var(--ngs-gold-hi); color: var(--ngs-charcoal); }
.ngs-form-note { font-size: 14px; color: var(--ngs-muted); margin: 0; }
.ngs-form-notice { padding: 14px 18px; border-radius: 3px; margin-bottom: 16px; font-weight: 600; }
.ngs-form-notice--ok { background: var(--ngs-gold-tint); border-left: 4px solid var(--ngs-gold); color: var(--ngs-charcoal); }
.ngs-form-notice--error { background: #fdecea; border-left: 4px solid #b3261e; color: #5f1410; }
.ngs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- blog templates (not Elementor documents) */
.ngs-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.ngs-post, .ngs-blog { font-family: var(--ngs-body); color: var(--ngs-text); font-size: 17px; line-height: 1.65; }
.ngs-post-hero { background: var(--ngs-charcoal); color: #fff; padding: 28px 0 48px; }
.ngs-post-hero .ngs-crumbs { font-size: 14px; color: #9ea2a8; margin: 0 0 18px; }
.ngs-post-cat { display: inline-block; font-family: var(--ngs-head); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ngs-gold); text-decoration: none; margin: 0; }
/* Two classes: the Kit prints `.elementor-kit-N h1 { color: primary }` (0,1,1), which beat a single class and made the title charcoal-on-charcoal. */
.ngs-post-hero .ngs-post-title { font-family: var(--e-global-typography-ngs_h1-font-family, "Archivo"), sans-serif; font-weight: 800; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.02em; color: #fff; margin: 10px 0 12px; max-width: 900px; }
.ngs-post-meta, .ngs-blog-intro { color: var(--ngs-ondark); margin: 0; max-width: 760px; }
.ngs-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-top: 44px; padding-bottom: 64px; }
@media (max-width: 1024px) { .ngs-post-layout { grid-template-columns: 1fr; } }
.ngs-post-image { margin: 0 0 26px; }
.ngs-post-image img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 4px; display: block; }
.ngs-post-content > * { max-width: 760px; }
.ngs-post-content h2.wp-block-heading, .ngs-post-content h2 { font-family: var(--ngs-head); font-weight: 800; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; margin: 1.8em 0 .5em; color: var(--ngs-charcoal); }
.ngs-post-content h3 { font-family: var(--ngs-head); font-weight: 700; font-size: 20px; margin: 1.4em 0 .4em; color: var(--ngs-charcoal); }
.ngs-post-content p, .ngs-post-content ul, .ngs-post-content ol { margin: 0 0 1em; }
.ngs-post-content ul, .ngs-post-content ol { padding-left: 22px; }
.ngs-post-content li { margin-bottom: .35em; }
.ngs-post-content a { color: var(--ngs-charcoal); text-decoration: underline; text-decoration-color: var(--ngs-gold); text-underline-offset: 3px; }
.ngs-post-content a:hover { color: var(--ngs-accent); }
.ngs-post-content .ngs-tldr { background: var(--ngs-gold-tint); border-left: 4px solid var(--ngs-gold); padding: 16px 20px; border-radius: 3px; font-size: 18px; }
.ngs-post-content .ngs-lead { border-left: 4px solid var(--ngs-gold); padding-left: 16px; font-weight: 600; }
.ngs-post-content .wp-block-table { margin: 0 0 1.4em; overflow-x: auto; border: 1px solid var(--ngs-line); border-radius: 4px; }
.ngs-post-content .wp-block-table table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ngs-post-content .wp-block-table th { background: var(--ngs-charcoal); color: #fff; text-align: left; padding: 12px 14px; font-family: var(--ngs-head); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; border: 0; }
.ngs-post-content .wp-block-table td { padding: 11px 14px; border: 0; border-top: 1px solid var(--ngs-line); vertical-align: top; }
.ngs-post-content .wp-block-table figcaption { font-size: 14px; color: var(--ngs-muted); padding: 8px 14px; }
.ngs-post-content .wp-block-details { border-bottom: 1px solid var(--ngs-line); padding: 14px 0; }
.ngs-post-content .wp-block-details summary { font-family: var(--ngs-head); font-weight: 700; font-size: 18px; cursor: pointer; }
.ngs-post-content .wp-block-details p { margin: 10px 0 0; color: var(--ngs-soft); }
.ngs-post-content .ngs-post-cta { margin-top: 2em; padding: 18px 20px; background: var(--ngs-warm); border-radius: 4px; font-weight: 600; }
.ngs-post-aside { display: grid; gap: 18px; align-content: start; }
.ngs-post-box { border: 1px solid var(--ngs-line); border-radius: 4px; padding: 20px 22px; }
.ngs-post-box--dark { background: var(--ngs-charcoal); border: 0; color: var(--ngs-ondark); }
.ngs-post-box-title { font-family: var(--ngs-head); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; color: var(--ngs-charcoal); }
.ngs-post-box--dark .ngs-post-box-title { color: #fff; }
.ngs-post-phone { display: block; font-family: var(--ngs-head); font-weight: 800; font-size: 26px; color: var(--ngs-gold); text-decoration: none; }
.ngs-post-btn { display: block; text-align: center; background: var(--ngs-gold); color: var(--ngs-charcoal); font-family: var(--ngs-head); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 14px; border-radius: 3px; text-decoration: none; }
.ngs-post-btn:hover { background: var(--ngs-gold-hi); color: var(--ngs-charcoal); }
.ngs-post-links { margin: 0; padding-left: 18px; }
.ngs-post-links a { color: var(--ngs-soft); }
.ngs-blog-cats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.ngs-blog-cats a { border: 1px solid rgba(255, 255, 255, .35); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 15px; text-decoration: none; }
.ngs-blog-cats a:hover, .ngs-blog-cats a[aria-current] { background: var(--ngs-gold); border-color: var(--ngs-gold); color: var(--ngs-charcoal); }
.ngs-blog-list { padding-top: 44px; padding-bottom: 64px; }
.ngs-blog-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.ngs-blog-card { border: 1px solid var(--ngs-line); border-radius: 4px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s ease; }
.ngs-blog-card:hover { box-shadow: 0 12px 30px rgba(23, 25, 28, .12); }
.ngs-blog-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.ngs-blog-card-body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.ngs-blog-card-cat { font-family: var(--ngs-head); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ngs-accent); }
.ngs-blog-card-title { font-family: var(--ngs-head); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 0; }
.ngs-blog-card-title a { color: var(--ngs-charcoal); text-decoration: none; }
.ngs-blog-card-title a:hover { color: var(--ngs-accent); }
.ngs-blog-card-excerpt { margin: 0; color: var(--ngs-muted); font-size: 16px; }
.ngs-blog-card-more { font-family: var(--ngs-head); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ngs-charcoal); text-decoration: none; border-bottom: 2px solid var(--ngs-gold); justify-self: start; }
.ngs-pagination { margin-top: 32px; }

/* Links inside the blog templates: out-rank the Kit's `.elementor-kit-N a` (0,1,1). */
body.ngs-site .ngs-post-hero .ngs-post-cat { color: var(--ngs-gold); }
body.ngs-site .ngs-post-hero .ngs-crumbs a { color: #9ea2a8; }
body.ngs-site .ngs-post-hero .ngs-crumbs a:hover { color: var(--ngs-gold); }
body.ngs-site .ngs-blog-cats a { color: #fff; }
body.ngs-site .ngs-blog-cats a:hover, body.ngs-site .ngs-blog-cats a[aria-current] { color: var(--ngs-charcoal); }
body.ngs-site .ngs-blog-card-title a, body.ngs-site .ngs-blog-card-more { color: var(--ngs-charcoal); }
body.ngs-site .ngs-blog-card-title a:hover { color: var(--ngs-accent); }
body.ngs-site .ngs-post-phone { color: var(--ngs-gold); }
body.ngs-site .ngs-post-btn { color: var(--ngs-charcoal); }
body.ngs-site .ngs-post-links a { color: var(--ngs-soft); }
body.ngs-site .ngs-post-content a { color: var(--ngs-charcoal); }
body.ngs-site .ngs-post-content a:hover { color: var(--ngs-accent); }

/* ---------- motion */
@media (prefers-reduced-motion: reduce) { .ngs-card, .ngs-blog-card { transition: none; } }
