/* ==========================================================================
   Advanced Troubleshooting — coded header & footer
   Fonts: Oswald / Lato / Roboto are already self-hosted by Elementor.
   ========================================================================== */

:root {
	--at-header-bg: #242323;
	--at-footer-bg: #242323;
	--at-accent: #f2a900;
	--at-text: #e6ebf0;
	--at-muted: rgba(230, 235, 240, 0.68);
	--at-line: rgba(255, 255, 255, 0.1);
	--at-wrap: 1200px;
	--at-head-font: "Oswald", "Roboto", sans-serif;
	--at-body-font: "Lato", "Roboto", sans-serif;
	--at-bar-h: 84px;
}

.at-wrap {
	max-width: var(--at-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

.at-header *, .at-footer * { box-sizing: border-box; }
.at-header ul, .at-footer ul { list-style: none; margin: 0; padding: 0; }
.at-header a, .at-footer a { text-decoration: none; color: inherit; transition: color .2s ease; }

/* ---------- Header ---------- */
.at-header {
	background: var(--at-header-bg);
	color: var(--at-text);
	font-family: var(--at-body-font);
	position: relative;
	z-index: 1000;
}
.at-header--sticky { position: sticky; top: 0; }
.admin-bar .at-header--sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .at-header--sticky { top: 0; } }

.at-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.at-header.is-scrolled .at-topbar { display: none; }

/* Top bar */
.at-topbar {
	border-bottom: 1px solid var(--at-line);
	font-size: 14px;
	color: var(--at-muted);
}
.at-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	gap: 16px;
}
.at-contact { display: flex; gap: 24px; flex-wrap: wrap; }
.at-contact i { color: var(--at-accent); margin-right: 6px; }
.at-contact a:hover { color: var(--at-accent); }

.at-social { display: flex; gap: 8px; }
.at-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	font-size: 14px;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.at-social a:hover { background: var(--at-accent); color: #111; transform: scale(.92); }

/* Main bar */
.at-mainbar__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--at-bar-h);
}
.at-brand { flex: 0 0 auto; }
.at-logo { display: block; line-height: 0; }
.at-logo img { width: auto; max-height: 56px; height: auto; }
.at-logo--text {
	font-family: var(--at-head-font);
	font-size: 22px; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase;
}

.at-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.at-menu { display: flex; gap: 4px; }
.at-menu > li { position: relative; }
.at-menu a {
	display: block;
	padding: 10px 14px;
	font-family: var(--at-head-font);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	position: relative;
}
.at-menu > li > a::after {
	content: "";
	position: absolute; left: 14px; right: 14px; bottom: 4px;
	height: 2px; background: var(--at-accent);
	transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.at-menu > li > a:hover::after,
.at-menu > li.is-active > a::after { transform: scaleX(1); }
.at-menu a:hover { color: var(--at-accent); }

/* Dropdowns (depth 2) */
.at-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--at-header-bg); border-top: 2px solid var(--at-accent);
	box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .2s ease;
}
.at-menu li:hover > .sub-menu,
.at-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.at-menu .sub-menu a { text-transform: none; letter-spacing: 0; font-family: var(--at-body-font); }

.at-nav__phone { display: none; }

.at-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.at-header .at-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; padding: 0;
	background: transparent; color: var(--at-text);
	border: 1px solid var(--at-line); border-radius: 4px;
	cursor: pointer; font-size: 16px;
	transition: border-color .2s ease, color .2s ease;
}
.at-header .at-icon-btn:hover, .at-header .at-icon-btn:focus-visible { color: var(--at-accent); border-color: var(--at-accent); background: transparent; }

.at-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 11px 20px;
	background: var(--at-accent); color: #111 !important;
	border: 0; border-radius: 4px;
	font-family: var(--at-head-font); font-size: 14px; font-weight: 600;
	letter-spacing: .08em; text-transform: uppercase;
	cursor: pointer; white-space: nowrap;
	transition: transform .2s ease, filter .2s ease;
}
.at-btn:hover { filter: brightness(1.08); transform: scale(.97); }

.at-header .at-menu-toggle { display: none; }
.at-burger { display: grid; gap: 5px; width: 20px; }
.at-burger span { display: block; height: 2px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.at-menu-toggle[aria-expanded="true"] .at-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.at-menu-toggle[aria-expanded="true"] .at-burger span:nth-child(2) { opacity: 0; }
.at-menu-toggle[aria-expanded="true"] .at-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Tablet & mobile */
@media (max-width: 1024px) {
	:root { --at-bar-h: 70px; }
	.at-topbar { display: none; }
	.at-logo img { max-height: 44px; }
	.at-header .at-menu-toggle { display: inline-flex; }
	.at-actions { margin-left: auto; }

	.at-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		display: block;
		background: var(--at-header-bg);
		border-top: 1px solid var(--at-line);
		box-shadow: 0 16px 24px rgba(0, 0, 0, .35);
		max-height: 0; overflow: hidden;
		transition: max-height .3s ease;
	}
	.at-nav.is-open { max-height: 80vh; overflow-y: auto; }
	.at-menu { flex-direction: column; gap: 0; padding: 8px 0; }
	.at-menu a { padding: 14px 20px; border-bottom: 1px solid var(--at-line); text-align: center; }
	.at-menu > li > a::after { display: none; }
	.at-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; }
	.at-nav__phone {
		display: block; padding: 16px 20px; text-align: center;
		color: var(--at-accent) !important; font-weight: 700;
	}
}
@media (max-width: 600px) {
	.at-actions .at-btn { display: none; }
}

/* ---------- Footer ---------- */
.at-footer {
	background: var(--at-footer-bg);
	color: var(--at-muted);
	font-family: var(--at-body-font);
	font-size: 15px;
	border-top: 3px solid var(--at-accent);
}
.at-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	padding-top: 56px; padding-bottom: 48px;
}
.at-footer .at-logo img { max-height: 60px; }
.at-footer__tagline { margin: 18px 0 20px; max-width: 420px; line-height: 1.6; }
.at-footer__title {
	font-family: var(--at-head-font);
	color: var(--at-text);
	font-size: 17px; font-weight: 500;
	letter-spacing: .1em; text-transform: uppercase;
	margin: 0 0 16px;
}
.at-footer .at-menu,
.at-footer__menu { display: block; }
.at-footer .at-menu a,
.at-footer__menu a {
	display: inline-block; padding: 5px 0;
	font-family: var(--at-body-font); font-size: 15px;
	text-transform: none; letter-spacing: 0;
}
.at-footer .at-menu a::after { display: none; }
.at-footer a:hover { color: var(--at-accent); }
.at-footer__contact li { padding: 5px 0; }
.at-footer__contact i { color: var(--at-accent); width: 20px; }
.at-footer .at-social a { color: var(--at-text); }

.at-footer__bottom { border-top: 1px solid var(--at-line); font-size: 13px; }
.at-footer__bottom-inner {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 12px; padding-top: 18px; padding-bottom: 18px;
}
.at-copyright { margin: 0; }
.at-legal { display: flex; gap: 20px; }

@media (max-width: 900px) {
	.at-footer__grid { grid-template-columns: 1fr 1fr; }
	.at-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.at-footer__grid { grid-template-columns: 1fr; text-align: center; }
	.at-footer__tagline { margin-left: auto; margin-right: auto; }
	.at-footer .at-social { justify-content: center; }
	.at-footer .at-logo img { margin: 0 auto; }
	.at-footer__bottom-inner { justify-content: center; text-align: center; }
}

/* Offset in-page anchors under the sticky header */
html { scroll-padding-top: calc(var(--at-bar-h) + 16px); }

@media (prefers-reduced-motion: reduce) {
	.at-header *, .at-footer * { transition: none !important; }
	html { scroll-behavior: auto; }
}

/* ---------- Contact form [at_contact_form] ---------- */
.at-form-wrap, .at-form-wrap *, .at-modal, .at-modal * { box-sizing: border-box; }
.at-form-wrap { --at-ink: #1b232c; font-family: var(--at-body-font); color: var(--at-ink); }
.at-form__title { font-family: var(--at-head-font); font-size: 28px; font-weight: 500; margin: 0 0 24px; color: var(--at-ink); }
.at-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.at-form__field { grid-column: 1 / -1; margin: 0; }
.at-form__field--half { grid-column: span 1; }
.at-form__field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--at-ink); }
.at-form__field label span { color: #c0392b; }
/* "body … .at-form" outranks Elementor kit rules like .elementor-kit-16 input:not([type=button]):not([type=submit]) */
body .at-form-wrap .at-form input[type="text"],
body .at-form-wrap .at-form input[type="email"],
body .at-form-wrap .at-form input[type="tel"],
body .at-form-wrap .at-form select,
body .at-form-wrap .at-form textarea {
	width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit;
	color: var(--at-ink); background: #f5f7f9;
	border: 1px solid #dce2e8; border-radius: 4px;
	transition: border-color .2s ease, box-shadow .2s ease;
	-webkit-text-fill-color: currentColor;
	opacity: 1;
}
body .at-form-wrap .at-form input:focus,
body .at-form-wrap .at-form select:focus,
body .at-form-wrap .at-form textarea:focus { outline: none; border-color: var(--at-accent); box-shadow: 0 0 0 3px rgba(242, 169, 0, .25); background: #fff; }
body .at-form-wrap .at-form textarea { resize: vertical; min-height: 130px; }
body .at-form-wrap .at-form .at-form__submit {
	width: 100%; padding: 16px 24px; cursor: pointer;
	background: var(--at-header-bg); color: #fff;
	border: 0; border-radius: 4px;
	font-family: var(--at-head-font); font-size: 15px; font-weight: 600;
	letter-spacing: .1em; text-transform: uppercase;
	transition: background .2s ease, color .2s ease;
}
body .at-form-wrap .at-form .at-form__submit:hover,
body .at-form-wrap .at-form .at-form__submit:focus-visible { background: var(--at-accent); color: #111; }
.at-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.at-form__notice { padding: 14px 16px; border-radius: 4px; margin-bottom: 20px; font-size: 15px; }
.at-form__notice--ok { background: #e7f6ec; border-left: 4px solid #2e9e5b; }
.at-form__notice--err { background: #fdecea; border-left: 4px solid #c0392b; }
.at-form__notice a { color: inherit; font-weight: 700; }
#at-contact-form { scroll-margin-top: calc(var(--at-bar-h) + 24px); }
@media (max-width: 560px) {
	.at-form__field--half { grid-column: 1 / -1; }
}

body .at-form-wrap .at-form ::placeholder { color: #8a939c; opacity: 1; }

/* ---------- Contact form: sending state ---------- */
.at-form-wrap { position: relative; }
.at-form__sending {
	position: absolute; inset: -8px; z-index: 5;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .86);
	backdrop-filter: blur(2px);
	border-radius: 6px;
	opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.at-form-wrap.is-sending .at-form__sending { opacity: 1; visibility: visible; }
.at-form__sending-inner { text-align: center; }
.at-form__plane {
	width: 56px; height: 56px; fill: var(--at-accent);
	animation: at-fly 1.4s ease-in-out infinite;
	filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .15));
}
.at-form__sending-text {
	margin: 14px 0 0; font-family: var(--at-head-font); font-size: 18px;
	letter-spacing: .08em; text-transform: uppercase; color: #1b232c;
}
.at-dots span { animation: at-blink 1.2s infinite; opacity: 0; }
.at-dots span:nth-child(2) { animation-delay: .2s; }
.at-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes at-fly {
	0%   { transform: translate(-14px, 10px) rotate(-6deg); }
	50%  { transform: translate(14px, -10px) rotate(6deg); }
	100% { transform: translate(-14px, 10px) rotate(-6deg); }
}
@keyframes at-blink { 0%, 100% { opacity: 0; } 40% { opacity: 1; } }

/* Button spinner */
body .at-form-wrap .at-form .at-form__submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.at-form__spinner {
	display: none; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--at-accent);
	animation: at-spin .8s linear infinite;
}
.at-form-wrap.is-sending .at-form__spinner { display: inline-block; }
.at-form-wrap.is-sending .at-form__submit-label { font-size: 0; }
.at-form-wrap.is-sending .at-form__submit-label::after { content: attr(data-sending); font-size: 15px; }
body .at-form-wrap.is-sending .at-form .at-form__submit { pointer-events: none; background: var(--at-header-bg); color: #fff; }
@keyframes at-spin { to { transform: rotate(360deg); } }

/* ---------- Success pop-up ---------- */
html.at-modal-open { overflow: hidden; }
.at-modal {
	position: fixed; inset: 0; z-index: 100001;
	display: flex; align-items: center; justify-content: center; padding: 20px;
	background: rgba(20, 20, 20, .72);
	opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.at-modal.is-open { opacity: 1; visibility: visible; }
.at-modal__card {
	width: 100%; max-width: 440px; padding: 40px 32px 32px; text-align: center;
	background: #fff; border-top: 4px solid var(--at-accent); border-radius: 8px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
	font-family: var(--at-body-font); color: #1b232c;
	transform: translateY(16px) scale(.96); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.at-modal.is-open .at-modal__card { transform: none; }
.at-modal__check { width: 84px; height: 84px; margin: 0 auto 18px; display: block; }
.at-modal__circle {
	stroke: #2e9e5b; stroke-width: 3; stroke-dasharray: 152; stroke-dashoffset: 152;
	animation: at-draw .6s ease-out .15s forwards;
}
.at-modal__tick {
	stroke: #2e9e5b; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: 40; stroke-dashoffset: 40;
	animation: at-draw .4s ease-out .7s forwards;
}
@keyframes at-draw { to { stroke-dashoffset: 0; } }
.at-modal__title { font-family: var(--at-head-font); font-size: 30px; font-weight: 500; margin: 0 0 10px; color: #1b232c; }
.at-modal__text { font-size: 16px; line-height: 1.6; margin: 0 0 12px; color: #4a525b; }
.at-modal__call { font-size: 15px; margin: 0 0 24px; color: #4a525b; }
.at-modal__call a { color: #1b232c; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--at-accent); }
.at-modal__close {
	display: inline-block; padding: 13px 36px; border-radius: 4px; text-decoration: none;
	background: var(--at-header-bg); color: #fff !important;
	font-family: var(--at-head-font); font-size: 14px; font-weight: 600;
	letter-spacing: .1em; text-transform: uppercase;
	transition: background .2s ease, color .2s ease;
}
.at-modal__close:hover, .at-modal__close:focus-visible { background: var(--at-accent); color: #111 !important; }

@media (prefers-reduced-motion: reduce) {
	.at-form__plane, .at-dots span, .at-form__spinner { animation: none; opacity: 1; }
	.at-modal__circle, .at-modal__tick { animation: none; stroke-dashoffset: 0; }
	.at-modal, .at-modal__card { transition: none; }
}
