/* ==========================================================================
   AGS Security theme styles
   Colors, fonts and spacing of the Allied Global Security design.
   Section layouts are built with Elementor; this file adds the base,
   header behaviour, custom widgets and a few helper classes used in Elementor
   (set under Advanced > CSS Classes).
   ========================================================================== */

:root {
	--ags-black: #0B0B0B;
	--ags-charcoal: #161616;
	--ags-panel: #222222;
	--ags-line: #333333;
	--ags-gold: #D4AF37;
	--ags-yellow: #F2C230;
	--ags-gold-dark: #B8962E;
	--ags-muted: #B5B5B5;
	--ags-white: #FFFFFF;
	--ags-head: "Cinzel", Georgia, "Times New Roman", serif;
	--ags-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
	--ags-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	--ags-topbar-h: 0px;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body.ags-theme {
	margin: 0;
	background: var(--ags-black);
	color: var(--ags-white);
	font-family: var(--ags-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.ags-theme *, .ags-theme *::before, .ags-theme *::after { box-sizing: border-box; }
.ags-theme img, .ags-theme iframe, .ags-theme video { max-width: 100%; }
.ags-theme img { height: auto; }
.ags-theme a { color: var(--ags-gold); }
.ags-theme a:hover { color: var(--ags-gold); }
.ags-theme ::selection { background: var(--ags-gold); color: var(--ags-black); }
.ags-theme h1, .ags-theme h2, .ags-theme h3, .ags-theme h4, .ags-theme h5, .ags-theme h6 { font-family: var(--ags-head); color: var(--ags-white); line-height: 1.15; margin: 0 0 .5em; }
.ags-theme .elementor-heading-title { margin: 0; }
.ags-theme .elementor-widget-text-editor p { margin: 0 0 1em; }
.ags-theme .elementor-widget-text-editor > *:last-child,
.ags-theme .elementor-widget-text-editor .elementor-widget-container > *:last-child,
.ags-theme .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.ags-main { display: block; outline: 0; }
.ags-mono { font-family: var(--ags-mono); }
.ags-gold { color: var(--ags-gold); }
.ags-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ags-skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ags-yellow); color: var(--ags-black) !important; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.ags-skip-link:focus { left: 8px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.ags-theme :focus-visible { outline: 2px solid var(--ags-gold); outline-offset: 2px; }

/* ---------- Sticky header (top bar scrolls away, main bar sticks) ---------- */
.ags-site-header {
	position: sticky;
	top: calc(-1 * var(--ags-topbar-h));
	z-index: 60;
}
.admin-bar .ags-site-header { top: calc(32px - var(--ags-topbar-h)); }
@media (max-width: 782px) { .admin-bar .ags-site-header { top: calc(0px - var(--ags-topbar-h)); } }
/* Note: no backdrop-filter here on purpose, it would trap the fixed mobile menu panel inside the bar. */
.ags-header-bar { position: relative; z-index: 2; }
.ags-topbar a { text-decoration: none; }
.ags-diamond { display: inline-block; width: 6px; height: 6px; background: var(--ags-gold); transform: rotate(45deg); margin-right: 10px; vertical-align: 2px; }
.ags-brand-text .elementor-heading-title a, .ags-brand-text .elementor-heading-title { color: var(--ags-white); }

/* ---------- AGS Nav Menu ---------- */
.ags-nav {
	--ags-nav-link: #FFFFFF;
	--ags-nav-hover: #D4AF37;
	--ags-nav-gap: 22px;
	--ags-nav-drop-bg: #222222;
	--ags-nav-panel-bg: #0B0B0B;
	--ags-cta-bg: #F2C230;
	--ags-cta-color: #0B0B0B;
	--ags-cta-bg-hover: #B8962E;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
}
.ags-nav ul { list-style: none; margin: 0; padding: 0; }
.ags-nav__desktop { display: flex; align-items: center; gap: var(--ags-nav-gap); }
.ags-menu { display: flex; align-items: center; gap: var(--ags-nav-gap); }
.ags-menu > li { position: relative; }
.ags-menu > li > a {
	display: flex; align-items: center; gap: 6px;
	padding: 30px 0;
	color: var(--ags-nav-link);
	text-decoration: none;
	font-family: var(--ags-body);
	font-size: 15px; font-weight: 600; white-space: nowrap;
	transition: color .2s;
}
.ags-menu > li > a:hover,
.ags-menu > li > a:focus-visible,
.ags-menu > li.ags-current > a,
.ags-menu > li.current-menu-item > a,
.ags-menu > li.current-menu-ancestor > a,
.ags-menu > li.current_page_item > a,
.ags-menu > li.current_page_ancestor > a { color: var(--ags-nav-hover); }
.ags-menu > li.menu-item-has-children > a::after,
.ags-menu > li.page_item_has_children > a::after { content: "\25BC"; font-size: 9px; color: var(--ags-gold); }
.ags-menu .sub-menu, .ags-menu .children {
	position: absolute; top: 100%; left: -22px; min-width: 300px;
	background: var(--ags-nav-drop-bg);
	border: 1px solid var(--ags-line); border-top: 2px solid var(--ags-gold);
	padding: 10px 0;
	box-shadow: 0 28px 56px rgba(0,0,0,.55);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
	z-index: 70;
}
.ags-menu > li:hover > .sub-menu, .ags-menu > li:focus-within > .sub-menu,
.ags-menu > li:hover > .children, .ags-menu > li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.ags-menu .sub-menu a, .ags-menu .children a { display: block; padding: 10px 22px; color: var(--ags-white); text-decoration: none; font-size: 15.5px; font-weight: 400; }
.ags-menu .sub-menu a:hover, .ags-menu .children a:hover,
.ags-menu .sub-menu .current-menu-item > a, .ags-menu .children .current_page_item > a { background: var(--ags-black); color: var(--ags-gold); }
.ags-menu .sub-menu .sub-menu { left: 100%; top: -10px; }
.ags-nav__cta {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 20px;
	background: var(--ags-cta-bg); color: var(--ags-cta-color) !important;
	font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 2px; white-space: nowrap;
	transition: background .2s;
}
.ags-nav__cta:hover { background: var(--ags-cta-bg-hover); color: var(--ags-cta-color) !important; }
.ags-nav__toggle {
	display: none; align-items: center; gap: 10px; margin-left: auto;
	background: transparent; border: 1px solid var(--ags-line); color: var(--ags-white);
	padding: 11px 16px; border-radius: 2px; font: inherit; font-weight: 700; font-size: 14px;
	letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.ags-nav__toggle:hover { border-color: var(--ags-gold); }
.ags-nav__toggle-icon { display: grid; gap: 4px; width: 18px; }
.ags-nav__toggle-icon span { display: block; height: 2px; background: var(--ags-gold); transition: transform .2s, opacity .2s; }
.ags-nav__toggle[aria-expanded="true"] .ags-nav__toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ags-nav__toggle[aria-expanded="true"] .ags-nav__toggle-icon span:nth-child(2) { opacity: 0; }
.ags-nav__toggle[aria-expanded="true"] .ags-nav__toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.ags-nav__panel {
	position: fixed; left: 0; right: 0; top: var(--ags-panel-top, 84px); bottom: 0;
	overflow-y: auto; -webkit-overflow-scrolling: touch;
	background: var(--ags-nav-panel-bg); border-top: 1px solid var(--ags-line);
	padding: 8px 24px 100px; z-index: 80;
}
.ags-nav__panel[hidden] { display: none !important; }
.ags-mmenu > li { border-bottom: 1px solid var(--ags-line); padding: 6px 0; }
.ags-mmenu > li > a { display: block; padding: 12px 0; color: var(--ags-white); text-decoration: none; font-family: var(--ags-head); font-weight: 600; font-size: 18px; }
.ags-mmenu > li.ags-current > a, .ags-mmenu > li.current-menu-item > a { color: var(--ags-gold); }
.ags-mmenu .sub-menu, .ags-mmenu .children { display: grid; gap: 2px; padding: 0 0 10px 14px; border-left: 1px solid var(--ags-gold); }
.ags-mmenu .sub-menu a, .ags-mmenu .children a { display: block; padding: 7px 0; color: var(--ags-muted); text-decoration: none; font-size: 16px; }
.ags-mmenu .sub-menu a:hover, .ags-mmenu .children a:hover { color: var(--ags-gold); }
.ags-nav__cta--mobile { display: flex; margin-top: 22px; padding: 15px 20px; }
.ags-nav-open { overflow: hidden; }

@media (max-width: 1279.98px) {
	.ags-bp-1280 .ags-nav__desktop { display: none; }
	.ags-bp-1280 .ags-nav__toggle { display: inline-flex; }
}
@media (min-width: 1280px) { .ags-bp-1280 .ags-nav__panel { display: none !important; } }
@media (max-width: 1023.98px) {
	.ags-bp-1024 .ags-nav__desktop { display: none; }
	.ags-bp-1024 .ags-nav__toggle { display: inline-flex; }
}
@media (min-width: 1024px) { .ags-bp-1024 .ags-nav__panel { display: none !important; } }
@media (max-width: 767.98px) {
	.ags-bp-768 .ags-nav__desktop { display: none; }
	.ags-bp-768 .ags-nav__toggle { display: inline-flex; }
}
@media (min-width: 768px) { .ags-bp-768 .ags-nav__panel { display: none !important; } }
@media (max-width: 1360px) and (min-width: 1280px) {
	.ags-bp-1280 .ags-nav { --ags-nav-gap: 16px; }
	.ags-bp-1280 .ags-menu > li > a { font-size: 14.5px; }
}

/* ---------- Buttons (used by widgets / PHP templates) ---------- */
.ags-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 26px; font-family: var(--ags-body); font-weight: 700; font-size: 16px; line-height: 1.2;
	text-decoration: none; border-radius: 2px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; cursor: pointer;
}
.ags-btn--lg { padding: 16px 28px; }
.ags-btn--primary { background: var(--ags-yellow); color: var(--ags-black) !important; border-color: var(--ags-gold); }
.ags-btn--primary:hover { background: var(--ags-gold-dark); color: var(--ags-black) !important; }
.ags-btn--ghost { background: transparent; color: var(--ags-white) !important; border-color: rgba(212,175,55,.8); }
.ags-btn--ghost:hover { background: rgba(212,175,55,.12); color: var(--ags-white) !important; }
.ags-btn--glass { background: rgba(11,11,11,.4); color: var(--ags-white) !important; border-color: rgba(212,175,55,.8); }
.ags-btn--glass:hover { background: rgba(212,175,55,.15); color: var(--ags-white) !important; }

/* ---------- AGS Hero Slider ---------- */
.ags-hero {
	--ags-hero-shade: #0B0B0B;
	position: relative; height: min(86vh, 780px); min-height: 620px; overflow: hidden; background: var(--ags-black);
	touch-action: pan-y;
}
.ags-hero__slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .9s cubic-bezier(.2,.7,.2,1); }
.ags-hero__slide.is-active { opacity: 1; pointer-events: auto; }
.ags-hero__img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.ags-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,11,.96) 0%, rgba(11,11,11,.82) 38%, rgba(11,11,11,.35) 70%, rgba(11,11,11,.15) 100%); }
.ags-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(0deg, var(--ags-hero-shade), rgba(11,11,11,0)); }
.ags-hero__inner { position: relative; height: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 24px 110px; display: flex; align-items: center; }
.ags-hero__content { max-width: 680px; display: grid; gap: 22px; }
.ags-hero__kicker { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ags-gold); }
.ags-hero__line { width: 40px; height: 1px; background: var(--ags-gold); flex-shrink: 0; }
.ags-hero__title { margin: 0; font-family: var(--ags-head); font-weight: 700; font-size: clamp(29px, 5.4vw, 66px); line-height: 1.06; letter-spacing: .01em; color: var(--ags-white); text-wrap: balance; }
.ags-hero__text { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ags-white); max-width: 560px; text-wrap: pretty; }
.ags-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ags-hero__controls { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 3; }
.ags-hero__controls-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.ags-hero__count { font-size: 14px; color: var(--ags-white); }
.ags-hero__bars { display: flex; gap: 8px; }
.ags-hero__bar { width: 22px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: all .3s; }
.ags-hero__bar.is-active { width: 44px; background: var(--ags-gold); }
.ags-hero__arrows { margin-left: auto; display: flex; gap: 8px; }
.ags-hero__arrow { width: 48px; height: 48px; border: 1px solid rgba(212,175,55,.6); background: rgba(11,11,11,.5); color: var(--ags-white); font-size: 18px; cursor: pointer; border-radius: 2px; transition: background .2s, color .2s; }
.ags-hero__arrow:hover { background: var(--ags-yellow); color: var(--ags-black); }
@media (max-width: 767px) {
	.ags-hero { min-height: 560px; }
	.ags-hero__shade { background: linear-gradient(90deg, rgba(11,11,11,.94) 0%, rgba(11,11,11,.78) 60%, rgba(11,11,11,.5) 100%); }
	.ags-hero__arrows { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ags-hero__slide { transition: none; } }

/* ---------- Helper classes for Elementor sections ---------- */
/* Rich text links (gold, underlined) */
.ags-rich a { color: var(--ags-gold); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ags-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }
.ags-rich-white a { color: var(--ags-white); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ags-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; white-space: nowrap; }

/* Breadcrumb text widget */
.ags-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ags-crumb p { margin: 0 !important; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ags-crumb a { color: var(--ags-muted) !important; text-decoration: none; }
.ags-crumb a:hover { color: var(--ags-gold) !important; }
.ags-crumb .ags-sep { color: var(--ags-line); }
.ags-crumb .ags-here, .ags-crumb strong { color: var(--ags-gold); font-weight: 700; }

/* Bottom fade on photo heroes */
.ags-hero-fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(0deg, #0B0B0B, rgba(11,11,11,0)); pointer-events: none; z-index: 0; }
.ags-hero-fade > * { position: relative; z-index: 1; }

/* Gold radial glow on plain heroes */
.ags-glow { background-image: radial-gradient(ellipse 60% 90% at 85% 50%, rgba(212,175,55,.14), rgba(212,175,55,0) 70%) !important; }

/* Lists built with the Icon List widget (no icon) */
.ags-list-lines .elementor-icon-list-items { display: grid; gap: 0 !important; }
.ags-list-lines .elementor-icon-list-item,
.ags-list-boxes .elementor-icon-list-item,
.ags-list-check .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.ags-list-lines .elementor-icon-list-item::after,
.ags-list-boxes .elementor-icon-list-item::after { display: none !important; }
.ags-list-lines .elementor-icon-list-item { display: flex !important; gap: 14px; align-items: flex-start !important; padding: 14px 0 !important; border-bottom: 1px solid var(--ags-line); }
.ags-list-lines .elementor-icon-list-item::before,
.ags-list-boxes .elementor-icon-list-item::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 8px; background: var(--ags-gold); transform: rotate(45deg); }
.ags-list-boxes .elementor-icon-list-items { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.ags-list-boxes .elementor-icon-list-item { display: flex !important; gap: 14px; align-items: flex-start !important; background: var(--ags-panel); border: 1px solid var(--ags-line); padding: 16px 18px !important; }
.ags-list-boxes .elementor-icon-list-item::before { margin-top: 7px; }
.ags-list-check .elementor-icon-list-items { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 40px; }
.ags-list-check .elementor-icon-list-item { padding: 16px 0 !important; border-bottom: 1px solid var(--ags-line); align-items: flex-start !important; }
.ags-list-check .elementor-icon-list-item::after { display: none !important; }
.ags-list-check .elementor-icon-list-icon { margin-top: 3px; }
.ags-list-pills .elementor-icon-list-items { display: flex !important; flex-wrap: wrap; gap: 10px; }
.ags-list-pills .elementor-icon-list-item { margin: 0 !important; padding: 10px 20px !important; border: 1px solid var(--ags-line); background: var(--ags-panel); border-radius: 999px; }
.ags-list-pills .elementor-icon-list-item::after { display: none !important; }
.ags-list-links .elementor-icon-list-item a:hover .elementor-icon-list-text { color: var(--ags-gold) !important; }
.ags-list-links .elementor-icon-list-item::after { display: none !important; }

/* Key / value rows (license box, sidebar, contact rows) */
.ags-kv .elementor-icon-list-items { display: grid; }
.ags-kv-row { border-bottom: 1px solid var(--ags-line); }
.ags-kv-row:last-child { border-bottom: 0; }
.ags-kv-row--line-last:last-child { border-bottom: 1px solid var(--ags-line); }
.ags-kv-label .elementor-heading-title { font-size: 12px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ags-muted) !important; font-family: var(--ags-body) !important; }

/* Tables inside Text Editor widgets */
.ags-table .elementor-widget-container, .ags-table { overflow-x: auto; }
.ags-table table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 16.5px; border: 1px solid var(--ags-line); margin: 0; }
.ags-table th { text-align: left; padding: 16px 20px; background: var(--ags-panel); color: var(--ags-gold); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--ags-line); }
.ags-table td { padding: 18px 20px; border-bottom: 1px solid var(--ags-line); color: var(--ags-muted); vertical-align: top; border-left: 0; border-right: 0; }
.ags-table td:first-child { color: var(--ags-white); font-weight: 700; }
.ags-table tr:last-child td { border-bottom: 0; }
.ags-reqs table { width: 100%; border-collapse: collapse; border: 1px solid var(--ags-line); margin: 0; }
.ags-reqs td { padding: 14px 18px; border-bottom: 1px solid var(--ags-line); vertical-align: top; color: var(--ags-muted); border-left: 0; border-right: 0; }
.ags-reqs td:first-child { color: var(--ags-gold); font-weight: 700; width: 168px; }
@media (max-width: 560px) { .ags-reqs td { display: block; width: auto !important; border-bottom: 0; padding: 4px 18px; } .ags-reqs tr { display: block; border-bottom: 1px solid var(--ags-line); padding: 10px 0; } }

/* Image with offset gold frame + license badge */
.ags-frame { position: relative; padding: 0 0 28px 28px !important; }
.ags-frame::after { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 75%; border: 1px solid var(--ags-gold); pointer-events: none; z-index: 0; }
.ags-frame > * { position: relative; z-index: 1; }
.ags-frame .ags-badge { position: absolute !important; right: 20px; bottom: 6px; z-index: 2; width: auto !important; box-shadow: 0 20px 44px rgba(0,0,0,.5); }
.ags-tag-wrap { position: relative; }
.ags-tag-wrap .ags-tag { position: absolute !important; left: -1px; top: 24px; z-index: 2; width: auto !important; }

/* Cards & tiles hover */
.ags-tile { transition: border-color .25s; overflow: hidden; }
.ags-tile:hover { border-color: var(--ags-gold) !important; }
.ags-tile .elementor-widget-text-editor p { margin: 0; }
a.e-con.ags-tile, a.e-con.ags-card-link { color: inherit; text-decoration: none; }
.ags-card-link:hover { border-color: var(--ags-gold) !important; }
.ags-icon-badge { margin-top: -46px !important; position: relative; z-index: 2; }
.ags-step-line { height: 1px; background: var(--ags-line); width: 100%; }
.ags-position-link a { display: flex !important; justify-content: space-between !important; width: 100%; }

/* Sticky aside on detail / quote pages */
@media (min-width: 1025px) { .ags-sticky { position: sticky !important; top: 110px; align-self: flex-start; } }

/* Thank You page: show the job message only for ?type=job */
.ags-thanks-job-msg { display: none; }
body.ags-thanks-job .ags-thanks-job-msg { display: block; }
body.ags-thanks-job .ags-thanks-default-msg { display: none; }

/* Certificate image */
.ags-cert img { border: 1px solid var(--ags-gold); background: #fff; display: block; width: 100%; }

/* ---------- AGS Forms ---------- */
.ags-form {
	--ags-form-bg: #222222;
	--ags-form-border: #333333;
	--ags-input-bg: #0B0B0B;
	--ags-input-color: #FFFFFF;
	--ags-label: #B5B5B5;
	--ags-form-accent: #D4AF37;
	--ags-btn-bg: #F2C230;
	--ags-btn-color: #0B0B0B;
	--ags-btn-bg-hover: #B8962E;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
	background: var(--ags-form-bg); border: 1px solid var(--ags-form-border);
	padding: clamp(20px, 4vw, 32px);
	font-family: var(--ags-body);
}
.ags-cols-1 .ags-form { grid-template-columns: 1fr; }
.ags-cols-3 .ags-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .ags-cols-3 .ags-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ags-form, .ags-cols-3 .ags-form { grid-template-columns: 1fr; } }
.ags-col-full { grid-column: 1 / -1; }
.ags-field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.ags-field > label, .ags-fieldset > legend { font-size: 14px; font-weight: 600; color: var(--ags-label); padding: 0; }
.ags-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ags-fieldset > legend { margin-bottom: 8px; float: left; width: 100%; }
.ags-fieldset > .ags-choices { clear: both; }
.ags-req { color: var(--ags-form-accent); }
.ags-form input[type="text"], .ags-form input[type="email"], .ags-form input[type="tel"], .ags-form input[type="number"], .ags-form input[type="date"], .ags-form select, .ags-form textarea, .ags-input {
	font: inherit; font-size: 16px; color: var(--ags-input-color); background: var(--ags-input-bg);
	border: 1px solid var(--ags-line); border-radius: 2px; padding: 13px 14px; width: 100%; min-height: 50px;
	color-scheme: dark; box-shadow: none; outline: none; transition: border-color .2s;
}
.ags-form select { appearance: auto; }
.ags-form textarea { resize: vertical; min-height: 120px; }
.ags-form input:focus, .ags-form select:focus, .ags-form textarea:focus { border-color: var(--ags-form-accent); outline: none; }
.ags-form ::placeholder { color: #8a8a8a; opacity: 1; }
.ags-choices { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--ags-white); font-size: 16px; }
.ags-choice { display: flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 400; color: var(--ags-input-color); }
.ags-choice input, .ags-consent input { accent-color: var(--ags-form-accent); width: 17px; height: 17px; margin: 0; flex-shrink: 0; }
.ags-choices--boxed { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.ags-choices--boxed .ags-choice { padding: 12px 14px; border: 1px solid var(--ags-line); background: var(--ags-input-bg); font-size: 15.5px; }
.ags-choices--boxed .ags-choice:has(input:checked) { border-color: var(--ags-form-accent); }
.ags-file { font: inherit; font-size: 15px; color: var(--ags-input-color); background: var(--ags-input-bg); border: 1px dashed var(--ags-line); border-radius: 2px; padding: 16px 14px; width: 100%; }
.ags-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ags-white); line-height: 1.5; cursor: pointer; }
.ags-consent input { margin-top: 4px; width: 18px; height: 18px; }
.ags-form__submit {
	padding: 17px 24px; background: var(--ags-btn-bg); color: var(--ags-btn-color); font: inherit; font-weight: 700; font-size: 17px;
	border: 0; border-radius: 2px; cursor: pointer; transition: background .2s;
}
.ags-form__submit:hover, .ags-form__submit:focus-visible { background: var(--ags-btn-bg-hover); }
.ags-form__submit[disabled] { opacity: .7; cursor: wait; }
.ags-form__error { background: rgba(212,175,55,.1); border: 1px solid var(--ags-form-accent); color: var(--ags-white); padding: 12px 16px; font-weight: 600; }
.ags-form .ags-invalid { outline: 1px solid #e5484d; }
.ags-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- AGS FAQ ---------- */
.ags-faq { --ags-faq-accent: #D4AF37; --ags-faq-line: #333333; border-top: 1px solid var(--ags-faq-accent); }
.ags-faq__item { border-bottom: 1px solid var(--ags-faq-line); }
.ags-faq__q {
	list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer;
	font-family: var(--ags-head); font-weight: 600; font-size: clamp(18px, 2vw, 22px); color: var(--ags-white); line-height: 1.35;
}
.ags-faq__q::-webkit-details-marker { display: none; }
.ags-faq__q::marker { content: ""; }
.ags-faq__qt { flex: 1; min-width: 0; }
.ags-faq__sign { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--ags-faq-accent); color: var(--ags-faq-accent); font-family: var(--ags-body); font-size: 22px; font-weight: 400; line-height: 1; }
.ags-faq__sign::before { content: "+"; }
.ags-faq__item[open] .ags-faq__sign::before { content: "\2212"; }
.ags-faq__a { padding: 0 0 26px; font-size: 18px; line-height: 1.7; color: var(--ags-muted); }
.ags-faq__a p { margin: 0 0 .8em; }
.ags-faq__a p:last-child { margin: 0; }
.ags-faq__a a { color: var(--ags-white); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ags-faq-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- AGS Portal Mockup ---------- */
.ags-portal { border: 1px solid var(--ags-line); border-radius: 4px; background: var(--ags-black); overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.5); color: var(--ags-white); }
.ags-portal__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--ags-line); font-size: 14px; flex-wrap: wrap; background: var(--ags-panel); }
.ags-portal__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ags-line); }
.ags-portal__title { margin-left: 8px; font-weight: 600; }
.ags-portal__live { margin-left: auto; color: var(--ags-gold); font-weight: 700; font-size: 12px; letter-spacing: .1em; }
.ags-portal__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; padding: 12px; }
.ags-portal__map { width: 100%; height: auto; display: block; border-radius: 3px; }
.ags-portal__side { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.ags-portal__card { border: 1px solid var(--ags-line); border-radius: 3px; padding: 10px 12px; display: grid; gap: 5px; background: var(--ags-panel); }
.ags-portal__card small { color: var(--ags-muted); }
.ags-portal__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ags-gold); font-weight: 700; }
.ags-portal__stat { font-size: 18px; }
.ags-portal__task.is-done { color: var(--ags-muted); text-decoration: line-through; }
.ags-portal__note { margin: 0; padding: 4px 16px 14px; font-size: 12.5px; color: var(--ags-muted); }

/* ---------- AGS Photo Grid ---------- */
.ags-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(50% - 6px, 240px), 1fr)); grid-auto-rows: clamp(140px, 22vw, 220px); grid-auto-flow: dense; gap: 12px; }
.ags-pgrid__item { display: block; overflow: hidden; border: 1px solid var(--ags-line); border-radius: 2px; min-height: 0; }
.ags-pgrid__item img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform .5s; }
a.ags-pgrid__item:hover img { transform: scale(1.04); }
.ags-pgrid__item--wide { grid-column: span 2; }
.ags-pgrid__item--tall { grid-row: span 2; }
.ags-pgrid__item--big { grid-column: span 2; grid-row: span 2; }

/* ---------- Mobile quick bar ---------- */
.ags-mobile-bar { display: none; }
@media (max-width: 1279.98px) {
	.ags-has-mobile-bar .ags-mobile-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr;
		border-top: 1px solid var(--ags-gold); background: var(--ags-black); padding-bottom: env(safe-area-inset-bottom);
	}
	.ags-has-mobile-bar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
	.ags-mobile-bar a { display: flex; justify-content: center; align-items: center; padding: 16px; font-weight: 700; text-decoration: none; font-size: 15.5px; }
	.ags-mobile-bar__call { color: var(--ags-white) !important; }
	.ags-mobile-bar__quote { background: var(--ags-yellow); color: var(--ags-black) !important; }
}

/* ---------- PHP fallback header / footer / blog ---------- */
.ags-fb-topbar { background: var(--ags-black); border-bottom: 1px solid var(--ags-line); font-size: 13.5px; color: var(--ags-muted); }
.ags-fb-topbar__in { max-width: 1360px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.ags-fb-topbar a { color: var(--ags-white); }
.ags-fb-header { background: rgba(11,11,11,.96); border-bottom: 1px solid var(--ags-line); }
.ags-fb-header__in { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.ags-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ags-white) !important; flex-shrink: 0; }
.ags-brand img { width: 48px; height: auto; display: block; }
.ags-brand__name { font-family: var(--ags-head); font-weight: 700; font-size: 18px; letter-spacing: .04em; line-height: 1.1; display: grid; gap: 4px; }
.ags-brand__name small { font-size: 12px; letter-spacing: .08em; }
.ags-fb-footer { background: var(--ags-black); border-top: 1px solid var(--ags-line); color: var(--ags-muted); font-size: 15.5px; }
.ags-fb-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 40px; }
.ags-fb-footer h4 { margin: 0 0 12px; font-family: var(--ags-body); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ags-gold); }
.ags-fb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ags-fb-footer a { color: var(--ags-muted); text-decoration: none; }
.ags-fb-footer a:hover { color: var(--ags-gold); }
.ags-fb-footer .ags-fb-phone { color: var(--ags-white); font-weight: 700; font-size: 18px; }
.ags-fb-footer__bottom { border-top: 1px solid var(--ags-line); font-size: 13.5px; }
.ags-fb-footer__bottom .ags-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 22px; padding-bottom: 30px; }
.ags-fb-footer__bottom p { margin: 0; }
.ags-fb-footer__bottom ul { display: flex; gap: 16px; }
.ags-hide-sm { display: inline; }
@media (max-width: 999px) { .ags-hide-sm { display: none; } }

.ags-plain-hero { position: relative; overflow: hidden; background: var(--ags-charcoal); border-bottom: 1px solid var(--ags-line); background-image: radial-gradient(ellipse 60% 90% at 85% 50%, rgba(212,175,55,.14), rgba(212,175,55,0) 70%); }
.ags-plain-hero__in { padding-top: clamp(56px, 8vw, 88px); padding-bottom: clamp(44px, 6vw, 72px); display: grid; gap: 20px; }
.ags-plain-hero .ags-crumb { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ags-gold); }
.ags-plain-hero .ags-crumb span:not(.ags-gold) { color: var(--ags-line); }
.ags-plain-hero__title { margin: 0; font-weight: 700; font-size: clamp(28px, 4.6vw, 58px); line-height: 1.08; max-width: 860px; }
.ags-plain-hero__intro { margin: 0; font-size: 19px; line-height: 1.65; max-width: 760px; }
.ags-plain-hero__intro a { color: var(--ags-gold); font-weight: 700; }
.ags-simple-buttons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 40px; padding-bottom: 120px; }
.ags-content-area { padding-top: 64px; padding-bottom: 96px; }
.ags-entry-content { font-size: 18px; line-height: 1.7; color: #e6e6e6; max-width: 860px; }
.ags-entry-content a { text-decoration: underline; }
.ags-entry-meta { color: var(--ags-muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.ags-entry-thumb { border: 1px solid var(--ags-line); margin-bottom: 28px; }
.ags-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.ags-card { background: var(--ags-panel); border: 1px solid var(--ags-line); overflow: hidden; }
.ags-card__thumb img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ags-card__body { padding: 28px; display: grid; gap: 12px; }
.ags-card__title { font-size: 22px; margin: 0; }
.ags-card__title a { color: var(--ags-white); text-decoration: none; }
.ags-search-form { display: flex; gap: 10px; max-width: 520px; }
.ags-theme .nav-links { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.ags-theme .page-numbers { padding: 8px 14px; border: 1px solid var(--ags-line); color: var(--ags-white); text-decoration: none; }
.ags-theme .page-numbers.current { background: var(--ags-yellow); color: var(--ags-black); }
.ags-comments { margin-top: 48px; }
.ags-comments input, .ags-comments textarea { width: 100%; background: var(--ags-panel); border: 1px solid var(--ags-line); color: var(--ags-white); padding: 12px; }
.ags-widget { margin-bottom: 32px; }

/* Elementor editor: keep fixed bars out of the canvas */
.elementor-editor-active .ags-mobile-bar { display: none !important; }

/* ---------- Image ratio + small helpers used in the imported layouts ---------- */
.ags-ar-43 img, .ags-ar-1610 img, .ags-ar-45 img { width: 100% !important; max-width: 100% !important; object-fit: cover; display: block; }
.ags-ar-43 img { aspect-ratio: 4 / 3; height: auto !important; }
.ags-ar-1610 img { aspect-ratio: 16 / 10; height: auto !important; }
.ags-ar-45 img { aspect-ratio: 4 / 5; height: auto !important; }
.ags-pos-top img { object-position: 50% 25%; }
.ags-pos-bottom img { object-position: 50% 80%; }
.ags-shield-drop img { filter: drop-shadow(0 24px 48px rgba(0,0,0,.6)); width: clamp(140px, 18vw, 230px); }
.ags-hline { display: inline-block; width: 28px; height: 2px; background: var(--ags-gold); vertical-align: middle; margin-right: 16px; position: relative; top: -3px; }
.ags-top-gold { border-top-color: var(--ags-gold) !important; }
.ags-underline .elementor-heading-title a, .ags-underline a { text-decoration: underline; text-underline-offset: 3px; }
.ags-tag { border-left-color: var(--ags-gold) !important; }
.ags-tag p { margin: 0 !important; }
.ags-card-link .elementor-widget-text-editor p { margin: 0; }
.e-con.ags-card-link, .e-con.ags-tile { cursor: pointer; }
.ags-brand-link img { display: block; }
.ags-brand-link .elementor-heading-title { white-space: nowrap; }
.ags-topbar .elementor-widget-text-editor p { margin: 0; }
.ags-topbar a:hover { color: var(--ags-gold) !important; }
.ags-icon-badge .elementor-icon { background: var(--ags-black); }
@media (max-width: 767px) { .ags-frame { padding: 0 0 20px 20px !important; } .ags-frame .ags-badge { right: 12px; } }
