/*
 * Zaxidna — Ally redesign (Sparkle-style structure)
 * Loaded after style.css; extends the existing design tokens:
 * primary #3d92e7, secondary (btn) red, dark #4d6d9a, accent #fccd04.
 */

/* ---------- Hero (front page) ---------- */
section.cover-hero.hero-redesign {
	height: auto;
	min-height: 100vh;
	min-height: calc(var(--vh, 1vh) * 100);
	display: flex;
}
section.cover-hero.hero-redesign .intro {
	position: relative !important;
	width: 100%;
	display: flex;
	align-items: center;
	padding: 7.5rem 0 3rem;
}
section.cover-hero.hero-redesign .mask-dark {
	background: linear-gradient(105deg, rgba(13, 36, 63, .78) 0%, rgba(13, 36, 63, .45) 55%, rgba(13, 36, 63, .15) 100%);
}
section.cover-hero.hero-redesign .title,
section.cover-hero.hero-redesign .title h1 {
	color: #fff;
}
section.cover-hero.hero-redesign .hero-eyebrow {
	color: #fccd04;
	letter-spacing: .12rem;
}
section.cover-hero.hero-redesign .btn-outline-light:hover {
	color: #3d92e7;
	background: #fff;
}

/* Service page hero */
section.pano.service-hero .hero-eyebrow {
	color: #fccd04;
	letter-spacing: .12rem;
}

/* ---------- Lead form card ---------- */
.lead-form-card {
	box-shadow: 0 1.25rem 3.5rem rgba(13, 36, 63, .35);
	color: #212529;
}
.lead-form-card h3 { color: #212529; }
.lead-form-card .form-control,
.lead-form-card .form-select,
.lead-form-card input[type="text"],
.lead-form-card input[type="email"],
.lead-form-card input[type="tel"],
.lead-form-card select,
.lead-form-card textarea {
	width: 100%;
	border: 1px solid #ced4da;
	border-radius: .375rem;
	font-size: 1rem;
	margin-bottom: .25rem;
	background: #fff;
}

.lead-form-card .wpcf7 p { margin-bottom: 0; }

/* ---------- Why choose ---------- */
.why-icon {
	width: 4.5rem;
	height: 4.5rem;
	color: #3d92e7;
	background: rgba(61, 146, 231, .12);
}
.why-icon i {
	font-size: 1.75rem;
}
.advantage .why-icon {
	width: 3.25rem;
	height: 3.25rem;
}
.why-icon-lg {
	width: 5.5rem;
	height: 5.5rem;
}
.why-icon-lg i {
	font-size: 2.25rem;
}

/* ---------- Services tabs ---------- */
.services-tabs .nav-pills .nav-link {
	color: #4d6d9a;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	border-radius: 2rem;
}
.services-tabs .nav-pills .nav-link.active {
	background: #3d92e7;
	color: #fff;
}
.service-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.service-card:hover img { transform: scale(1.04); }
.service-card-body {
	background: linear-gradient(0deg, rgba(13, 36, 63, .85) 0%, rgba(13, 36, 63, 0) 100%);
}
.service-card,
.service-card:hover { text-decoration: none; }

/* ---------- Stats band ---------- */
.stats-icon {
	width: 5.5rem;
	height: 5.5rem;
	background: rgba(255, 255, 255, .14);
	transition: transform .35s cubic-bezier(.4, 0, .2, 1), background-color .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s cubic-bezier(.4, 0, .2, 1);
}
.stats-icon i {
	color: #fccd04;
	font-size: 2.25rem;
	transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
/* 10% smaller than the default h4 (calc(1.275rem + .3vw), 1.5rem @ ≥1200px) */
.stats-band h4 {
	font-size: calc(1.1475rem + .27vw);
}
@media (min-width: 1200px) {
	.stats-band h4 { font-size: 1.35rem; }
}
.stats-item { cursor: default; }
.stats-item:hover .stats-icon {
	transform: translateY(-.35rem);
	background: rgba(255, 255, 255, .24);
	box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .25);
}
.stats-item:hover .stats-icon i {
	transform: scale(1.12);
}
@media (prefers-reduced-motion: reduce) {
	.stats-icon, .stats-icon i { transition: none; }
	.stats-item:hover .stats-icon, .stats-item:hover .stats-icon i { transform: none; }
}

/* ---------- Guarantee strip ---------- */
.guarantee-strip i { color: #fccd04; }

/* ---------- Before / After ---------- */
.ba-wrap { user-select: none; }
.ba-img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	max-width: none;
}
.ba-wrap > .ba-img { width: 100%; }
.ba-top {
	width: 50%;
	border-right: 3px solid #fff;
	box-shadow: .25rem 0 .75rem rgba(0, 0, 0, .25);
}
.ba-range {
	top: 0;
	left: 0;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	z-index: 5;
	-webkit-appearance: none;
	appearance: none;
}
.ba-handle {
	left: calc(50% - 1.25rem);
	top: 50% !important;
	transform: translateY(-50%);
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #fff;
	color: #3d92e7;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .3);
	z-index: 4;
	pointer-events: none;
}
.ba-badge {
	top: 1rem;
	padding: .25rem .75rem;
	border-radius: 2rem;
	background: rgba(13, 36, 63, .75);
	color: #fff;
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
	font-size: .85rem;
	z-index: 4;
	pointer-events: none;
}
.ba-badge-before { left: 1rem; }
.ba-badge-after  { right: 1rem; }

/* ---------- Mobile ---------- */
@media (max-width: 1199px) {
	section.cover-hero.hero-redesign .intro { padding-top: 6.5rem; }
	section.cover-hero.hero-redesign h1 { font-size: 2.75rem; }
}

/* ---------- Fixed white header ---------- */
.shadow-xl {
	box-shadow: 0 1.5rem 3rem rgba(13, 36, 63, .2) !important;
}
.site-header {
	z-index: 1030;
	transition: box-shadow .3s cubic-bezier(.4, 0, .2, 1), padding .3s cubic-bezier(.4, 0, .2, 1);
}
.site-header.is-scrolled {
	box-shadow: 0 .5rem 1.5rem rgba(13, 36, 63, .12);
}
/* The logo SVG is 300×216; a fixed-width box (8.625rem) with max-height
   letterboxes the drawing to the center. Height-based sizing with auto
   width makes the img box hug the artwork, so it starts at the container edge. */
.site-header .logo img {
	height: 3.74rem;
	width: auto;
	max-height: none;
	transition: height .3s cubic-bezier(.4, 0, .2, 1);
}
.site-header.is-scrolled .logo img {
	height: 3.16rem;
}
.header-spacer {
	height: 5.25rem;
}
.site-header .header-phone {
	text-decoration: none;
}
.site-header .navbar-nav .nav-link {
	font-family: "Open Sans", sans-serif;
	font-weight: 600;
	color: #212529;
}
.site-header .navbar-nav .nav-link:hover {
	color: #3d92e7;
}

/* Header dropdown menu: smooth open & close (paired with footer.php script) */
@keyframes dd-open {
	from { opacity: 0; transform: translateY(.5rem); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes dd-close {
	from { opacity: 1; transform: translateY(0); }
	to   { opacity: 0; transform: translateY(.5rem); }
}
.site-header .dropdown-menu.show {
	animation: dd-open .25s cubic-bezier(.22, .61, .36, 1);
}
.site-header .dropdown-menu.dd-closing {
	animation: dd-close .2s ease forwards;
	pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
	.site-header .dropdown-menu.show,
	.site-header .dropdown-menu.dd-closing { animation: none; }
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}
body {
	overflow-x: clip;
}

/* Hero sits right under the fixed header */
section.cover-hero.hero-redesign {
	min-height: calc(100vh - 5.25rem);
	min-height: calc(var(--vh, 1vh) * 100 - 5.25rem);
	overflow: hidden;
}
section.cover-hero.hero-redesign .intro {
	padding: 3.5rem 0 3rem;
}

/* ---------- Animations (simple & smooth) ---------- */
@keyframes anim-up {
	from { opacity: 0; transform: translateY(1.5rem); }
	to   { opacity: 1; transform: translateY(0); }
}
.anim-up {
	opacity: 0;
	animation: anim-up .7s cubic-bezier(.22, .61, .36, 1) forwards;
	animation-delay: var(--d, 0s);
}

/* Gentle slow zoom on the hero photo */
@keyframes hero-zoom {
	from { transform: scale(1.06); }
	to   { transform: scale(1); }
}
section.cover-hero.hero-redesign::before {
	content: "";
	position: absolute;
	inset: 0;
	background: inherit;
	background-size: cover;
	background-position: 50% 25%;
	animation: hero-zoom 8s ease-out forwards;
	will-change: transform;
	z-index: 0;
}
section.cover-hero.hero-redesign { background-attachment: initial; }
section.cover-hero.hero-redesign .mask-dark { z-index: 1; }
section.cover-hero.hero-redesign .intro     { z-index: 2; }

/* Buttons: smooth lift on hover */
.btn,
.lead-form-card input[type="submit"],
.lead-form-card button[type="submit"] {
	transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s cubic-bezier(.4, 0, .2, 1), background-color .3s cubic-bezier(.4, 0, .2, 1), color .3s cubic-bezier(.4, 0, .2, 1);
}
.btn:hover,
.lead-form-card input[type="submit"]:hover,
.lead-form-card button[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 .35rem .75rem rgba(13, 36, 63, .2);
}
.btn:active {
	transform: translateY(-1px);
}

/* Service cards & advantage image: soft hover */
.service-card,
.advantage img {
	transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s cubic-bezier(.4, 0, .2, 1);
}
.service-card:hover,
.advantage img:hover {
	box-shadow: 0 1rem 2.5rem rgba(13, 36, 63, .18);
}
.advantage img:hover {
	transform: translateY(-4px);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	.anim-up { animation: none; opacity: 1; }
	section.cover-hero.hero-redesign::before { animation: none; transform: none; }
	.btn, .service-card, .advantage img { transition: none; }
	html { scroll-behavior: auto; }
}

@media (max-width: 767px) {
	.header-spacer { height: 4.25rem; }
	section.cover-hero.hero-redesign {
		min-height: calc(100vh - 4.25rem);
		min-height: calc(var(--vh, 1vh) * 100 - 4.25rem);
	}
}

/* ---------- Soft shadow / rounded-corner design tokens ---------- */
/* ---------- Corner radius ---------- */
/* rounded-4 (cards, images, hero panel) gets its own smaller size instead
   of Bootstrap's default 1rem. Other rounded-N classes (rounded-2,
   rounded-3, rounded-top-2 …) keep Bootstrap's own scale, so sizes stay
   graduated rather than forced identical. Circular icon badges and
   pill-shaped buttons are a different shape language and stay untouched. */
:root {
	--radius-card: .625rem;
}
@media (max-width: 767px) {
	:root { --radius-card: .5rem; }
}
.rounded-4 {
	border-radius: var(--radius-card) !important;
}
.rounded-top-4 {
	border-top-left-radius: var(--radius-card) !important;
	border-top-right-radius: var(--radius-card) !important;
}
/* Form inputs: Bootstrap's own rounded-1 size */
.lead-form-card .form-control,
.lead-form-card .form-select,
.lead-form-card input[type="text"],
.lead-form-card input[type="email"],
.lead-form-card input[type="tel"],
.lead-form-card select,
.lead-form-card textarea,
.form-control,
.form-select {
	border-radius: var(--bs-border-radius-sm) !important;
}

:root {
	--shadow-soft: 0 .5rem 1.5rem rgba(13, 36, 63, .10);
	--shadow-soft-hover: 0 1rem 2.5rem rgba(13, 36, 63, .18);
}
/* Cards animate with shadows only: smooth grow on hover, smooth shrink on leave */
.shadow-soft,
.good-hands-card {
	transition: box-shadow .45s ease;
}
.shadow-soft {
	box-shadow: var(--shadow-soft);
}
.shadow-soft:hover {
	box-shadow: var(--shadow-soft-hover);
}
/* "You're in Good Hands" & "How we work" cards: small button-like lift */
.good-hands-card,
.good-hands-card.shadow-soft {
	transition: box-shadow .45s ease, transform .3s cubic-bezier(.4, 0, .2, 1);
}
.good-hands-card:hover {
	transform: translateY(-.25rem);
}
@media (prefers-reduced-motion: reduce) {
	.shadow-soft, .good-hands-card { transition: none; }
	.good-hands-card:hover { transform: none; }
}

/* ---------- Here's What We Do — two full-width blocks (no tabs) ---------- */
.service-group-head {
	border-top: 1px solid #dee2e6;
	padding-top: 1rem;
}
.services-blocks .service-card .service-card-body {
	transition: background .35s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- You're in Good Hands ---------- */
.good-hands-card {
	background: #fff;
	border: 1px solid rgba(13, 36, 63, .06);
}
.good-hands-card .why-icon {
	width: 5.5rem;
	height: 5.5rem;
}
.good-hands-card .why-icon i {
	font-size: 2.25rem;
}

/* ---------- Footer (sparklesquad-style columns) ---------- */
.site-footer .footer-heading {
	font-family: "Montserrat", sans-serif;
	letter-spacing: .06rem;
	color: #fff;
}
.site-footer .footer-links li {
	margin-bottom: .5rem;
}
.site-footer .footer-links a {
	color: #fff;
	text-decoration: none;
	transition: color .25s ease;
}
.site-footer .footer-links a:hover {
	color: #c4dbf6;
	text-decoration: underline;
}
.site-footer .footer-contact {
	font-style: normal;
}
.site-footer .footer-contact a {
	color: #fff;
	text-decoration: none;
	transition: color .25s ease;
	word-break: break-word;
}
.site-footer .footer-contact a:hover {
	color: #c4dbf6;
	text-decoration: underline;
}
.site-footer .footer-contact-label {
	font-size: .75rem;
	letter-spacing: .06rem;
	color: #fff;
}
.site-footer .footer-legal-link {
	color: #fff;
	text-decoration: none;
	transition: color .25s ease;
}
.site-footer .footer-legal-link:hover {
	color: #fff;
	text-decoration: underline;
}

/* ---------- Back to top ---------- */
.back-to-top {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	width: 3.25rem;
	height: 3.25rem;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #3d92e7;
	color: #fff;
	font-size: 1.1rem;
	z-index: 1020;
	opacity: 0;
	visibility: hidden;
	transform: translateY(.75rem);
	transition: opacity .3s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(.4, 0, .2, 1), visibility .3s, background-color .3s cubic-bezier(.4, 0, .2, 1);
}
.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.back-to-top:hover {
	background: #2f74ba;
}
@media (prefers-reduced-motion: reduce) {
	.back-to-top { transition: opacity .2s, visibility .2s; }
}
@media (max-width: 767px) {
	.back-to-top {
		right: 1rem;
		bottom: 1rem;
		width: 2.85rem;
		height: 2.85rem;
	}
}

/* ---------- Scroll reveal ---------- */
.sr {
	opacity: 0;
	transform: translateY(1.75rem);
	transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
	will-change: opacity, transform;
}
.sr.sr-in {
	opacity: 1;
	transform: none;
}
/* buttons keep their hover lift even while still tagged for reveal */
.btn.sr.sr-in:hover {
	transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
	.sr { opacity: 1; transform: none; transition: none; }
}

/* ---------- Services block: photo + blue panel in one rounded container ---------- */
.services-block-inner {
	background: #0d243f;
}
.services-block-inner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Hero form: collapsible SMS consent (native details accordion) ---------- */
.consent-details summary {
	display: flex;
	align-items: center;
	gap: .4rem;
	cursor: pointer;
	list-style: none;
	font-size: .8125rem;
	font-weight: 600;
	color: #4d6d9a;
	transition: color .25s ease;
}
.consent-details summary::-webkit-details-marker {
	display: none;
}
.consent-details summary::after {
	content: "\f078";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: .65em;
	transition: transform .25s ease;
}
.consent-details summary:hover {
	color: #3d92e7;
}
.consent-details[open] summary::after {
	transform: rotate(180deg);
}
.consent-details article {
	color: #4d6d9a;
	font-size: .8125rem;
}
/* Smooth, quick slide open/close (heights animated from JS) */
.consent-details article {
	overflow: hidden;
	transition: max-height .3s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
}
@media (prefers-reduced-motion: reduce) {
	.consent-details article { transition: none; }
}
