/* ----------------------------------------------------------------------------------------
* Patriotic Pool Services — brand overlay
* Loaded after waveup.css; the theme file itself is never edited.
* Red #C1272D is reserved for the no-contract badge and small accents only.
* ---------------------------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
}

/* Anchor targets clear the sticky header */
#home, #about, #services, #why-us, #faq, #contact {
	scroll-margin-top: 90px;
}

/* Logo placeholder — slot for the incoming professional logo */
.logo-placeholder {
	display: inline-block;
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	letter-spacing: -0.3px;
	color: var(--white-color, #fff);
}
.logo-placeholder span {
	color: #C1272D;
}
.logo-placeholder small {
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 3.5px;
	text-transform: uppercase;
	opacity: 0.85;
	margin-top: 4px;
}
a.logo-placeholder:hover {
	color: var(--white-color, #fff);
}

/* Hero pool simulation: tiles background (static fallback) + ripple canvas.
   jquery.ripples inserts its <canvas> at z-index -1 inside #home, so the
   hero must be positioned and must not create its own stacking context. */
#home.hero {
	position: relative;
	overflow: hidden;
	background-image: url(../images/hero-pool-water-rays.jpg);
	background-size: cover;
	background-position: center;
}

/* Drifting sunlight shafts over the water (between ripple canvas and slides).
   The baked-in rays in the texture refract with the ripples; this layer adds
   slow visible movement. */
.hero-sun-rays {
	position: absolute;
	inset: -10% -5%;
	z-index: 0;
	pointer-events: none;
	mix-blend-mode: screen;
	opacity: 0.5;
	background:
		linear-gradient(108deg, transparent 6%, rgba(255, 252, 235, 0.28) 9%, transparent 13%,
			transparent 22%, rgba(255, 252, 235, 0.16) 26%, transparent 29%,
			transparent 41%, rgba(255, 252, 235, 0.30) 45%, transparent 50%,
			transparent 60%, rgba(255, 252, 235, 0.14) 63%, transparent 66%,
			transparent 76%, rgba(255, 252, 235, 0.26) 80%, transparent 85%),
		linear-gradient(180deg, rgba(255, 252, 235, 0.20) 0%, transparent 45%);
	filter: blur(6px);
	animation: sun-rays-drift 16s ease-in-out infinite alternate;
}
@keyframes sun-rays-drift {
	from { transform: translateX(-2.5%) skewX(0.6deg); opacity: 0.38; }
	50%  { opacity: 0.55; }
	to   { transform: translateX(2.5%) skewX(-0.6deg); opacity: 0.42; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-sun-rays { animation: none; opacity: 0.35; }
}

/* Slides are now transparent (shared pool background), so the inactive
   fade-slide must be fully hidden or its text ghosts through. */
#home .swiper-slide {
	opacity: 0 !important;
	transition: opacity 0.8s ease;
}
#home .swiper-slide-active {
	opacity: 1 !important;
}

/* Left-anchored overlay: darker behind the headline for legibility, the
   bright mosaic tiles stay clearly visible across the rest of the hero. */
#home .hero-slide::before {
	background: linear-gradient(90deg, rgba(4, 34, 69, 0.72) 0%, rgba(4, 34, 69, 0.5) 28%, rgba(4, 34, 69, 0.12) 55%, rgba(4, 34, 69, 0.04) 100%),
		linear-gradient(180deg, rgba(4, 34, 69, 0) 68%, rgba(4, 34, 69, 0.66) 97%);
}

/* Hero CTA buttons */
.hero-btn {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 30px;
}

/* "No Contracts, Ever" badge (replaces the years-experience counter) */
.about-experience-content.badge-no-contract {
	background: #C1272D;
	border-radius: 12px;
	padding: 12px 14px;
	left: 10px;
	right: 10px;
	bottom: 10px;
}
.about-experience-content.badge-no-contract h2 {
	font-size: 22px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}
.about-experience-content.badge-no-contract p {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Trust badges replacing numeric counters */
.why-choose-counter-item h2 .trust-badge-icon {
	font-size: 34px;
	line-height: 1;
}

/* Residential / Commercial split rows (replace skill bars) */
.expertise-audience {
	padding: 18px 0;
	border-bottom: 1px solid rgba(12, 26, 48, 0.1);
}
.expertise-audience:last-child {
	border-bottom: 0;
}
.expertise-audience h3 {
	font-size: 20px;
	margin-bottom: 6px;
}
.expertise-audience p {
	margin: 0;
}

/* Service-area town marquee (replaces partner logos) */
.company-supports-logo h3 {
	font-size: 22px;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0.65;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Promise cards: single flag accent instead of review stars */
.testimonial-rating .fa-flag-usa {
	color: #C1272D;
}

/* ---- Quote modal + forms -------------------------------------------------- */
.quote-modal .modal-content {
	border: 0;
	border-radius: 16px;
	overflow: hidden;
}
.quote-modal .modal-header {
	background: #025BDE;
	color: #fff;
	align-items: center;
	padding: 20px 26px;
	border-bottom: 0;
}
.modal-head-brand {
	display: flex;
	align-items: center;
	gap: 16px;
}
.modal-logo {
	width: 88px;
	height: auto;
	background: #fff;
	border-radius: 10px;
	padding: 8px 10px;
	flex-shrink: 0;
}
.quote-modal .modal-title {
	color: #fff;
	font-size: 26px;
	margin: 0;
}
.quote-modal .modal-subtitle {
	margin: 4px 0 0;
	font-size: 14px;
	opacity: 0.75;
}
.quote-modal .btn-close {
	filter: invert(1);
	opacity: 0.8;
	margin-top: 4px;
}
.quote-modal .modal-body {
	padding: 26px;
}

/* Shared form field styling */
.quote-form .form-row,
.contact-form .form-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}
.quote-form .form-field,
.contact-form .form-field {
	flex: 1 1 200px;
	margin-bottom: 16px;
}
.quote-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #123A6B;
}
.quote-form input,
.quote-form select,
.quote-form textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	background: #fff;
	border: 1px solid #d5e2ee;
	color: #0C1A30;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: #025BDE;
	box-shadow: 0 0 0 3px rgba(2, 91, 222, 0.15);
}
.quote-form textarea,
.contact-form textarea {
	resize: vertical;
}
.quote-form-footer {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-top: 6px;
}
.quote-form-footer p {
	margin: 0;
	font-size: 14px;
	color: #123A6B;
}

/* Contact form in the dark footer */
.footer-contact-form {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 34px;
	margin-bottom: 50px;
}
.footer-contact-intro h3 {
	color: #fff;
	font-size: 26px;
	margin-bottom: 12px;
}
.footer-contact-intro p {
	color: #fff;
	opacity: 0.92;
	margin-bottom: 18px;
}
.footer-contact-intro ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-contact-intro li {
	margin-bottom: 10px;
	color: #fff;
	opacity: 1;
}
.footer-contact-intro li i {
	color: #4d9bff;
	margin-right: 8px;
	width: 16px;
}
.footer-contact-intro a {
	color: #fff;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
	background: rgba(255, 255, 255, 0.95);
	border-color: transparent;
}
.contact-form-footer {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.form-sent {
	display: none;
	margin: 0;
	font-size: 14px;
	color: #7CFFB2;
}
.quote-form .form-sent {
	color: #1a8a4a;
}
@media (max-width: 991px) {
	.footer-contact-intro { margin-bottom: 28px; }
}

/* The eyebrow icon is now a flag; drop the oversized decorative watermark
   behind the why-choose images (it was a large sparkle, odd as a big flag). */
.why-choose-image-box-2 { background: none !important; }

/* Merged services + work section */
.services-work-heading { margin-top: 30px; }
.services-work-cta { text-align: center; margin-top: 30px; }
.services-work-cta p { margin: 16px 0 0; opacity: 0.75; font-size: 15px; }

/* Brand logo (header + footer) */
.site-logo {
	height: 58px;
	width: auto;
	display: block;
}
.footer-logo-img {
	width: 190px;
	max-width: 100%;
	height: auto;
	margin-bottom: 22px;
}
@media (max-width: 991px) {
	.site-logo { height: 46px; }
}

/* Patriotic promise (dark) section — render the icons white */
.our-benefits .icon-box img {
	filter: brightness(0) invert(1);
}

/* Why-choose 2x2 image grid with logo cell + smaller no-contracts wheel */
.why-grid-wrap {
	position: relative;
	max-width: 100%;
}
.why-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.why-grid-cell {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}
.why-grid-cell figure,
.why-grid-cell figure img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}
.why-grid-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #EAF4FB;
	border: 1px solid #d8e8f4;
	padding: 22px;
}
.why-grid-logo img {
	width: 100%;
	max-width: 220px;
	height: auto;
	object-fit: contain;
}
/* Smaller rotating wheel, centered on the grid intersection */
.why-grid-wrap .contact-now-box {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
}
.why-grid-wrap .contact-now-box img {
	max-width: 120px;
}
@media (max-width: 575px) {
	.why-grid-wrap .contact-now-box img { max-width: 92px; }
}

/* How-it-works: cards are equal-height, so shorter cards left a white strip
   below the text on hover. Make the content area grow to fill the card so the
   hover fill (::before) covers the whole white area down to the bottom. */
.how-work-item {
	display: flex;
	flex-direction: column;
}
.how-work-item .how-work-item-image {
	flex: 0 0 auto;
}
.how-work-item .how-work-item-content {
	flex: 1 1 auto;
}

/* Preloader: brand logo above a smaller spinner */
.preloader-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}
.preloader-logo {
	width: 240px;
	max-width: 72vw;
	height: auto;
	filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.3));
	animation: preloader-logo-pulse 1.8s ease-in-out infinite;
}
@keyframes preloader-logo-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.04); }
}
.preloader .loading {
	width: 54px;
	height: 54px;
	margin: 0;
}
@media (prefers-reduced-motion: reduce) {
	.preloader-logo { animation: none; }
}

/* Animated water background on the dark sections (v1 hero water, tinted navy).
   The canvas fills the section behind the content; the section's navy stays
   as the fallback when WebGL/motion is unavailable. */
.section-water-wrap {
	position: relative;
}
.section-water-wrap > .section-water {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	display: block;
	border-radius: inherit;
}
/* Slight dark overlay over the water so the content on top reads clearly */
.section-water-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(4, 34, 69, 0.38);
	pointer-events: none;
	border-radius: inherit;
}
/* Lift the real content above the water + overlay */
.section-water-wrap > .container,
.section-water-wrap > .row {
	position: relative;
	z-index: 2;
}

/* Residential & Commercial: show the flyer photo in full (no crop) */
.our-expertise .expertise-image img {
	aspect-ratio: auto;
	object-fit: contain;
	height: auto;
	border-radius: 12px;
}
