/* ========================================================================
   POOL EQUIPMENT SERVICES — page-specific styles only.
   Shared shapes (.cred-bar, .cta-section/.cta-creds, nav, footer, sticky bar)
   live in style.css. Page-unique classes are es- prefixed; the FAQ accordion
   keeps .faq-item/.faq-trigger/.faq-body for the shared vanilla-JS accordion.
   ======================================================================== */

/* =====================
   HERO (full-bleed photo)
   ===================== */
.es-hero {
	position: relative; width: 100%; overflow: hidden;
	display: flex; align-items: center;
	padding: calc(84px + 7vw) clamp(24px,3.33vw,80px) 7vw;
	text-align: left; color: #fff;
	background: linear-gradient(155deg,#050d24 0%,#091e52 40%,#0f2868 70%,#07183e 100%);
}
.es-hero-photo { position: absolute; inset: 0; z-index: 0; }
.es-hero-photo img,
.es-hero-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.es-hero-overlay-left {
	position: absolute; inset: 0; z-index: 2;
	background: linear-gradient(108deg,rgba(2,52,143,0.97) 0%,rgba(2,52,143,0.88) 25%,rgba(2,52,143,0.55) 50%,rgba(2,52,143,0.15) 70%,transparent 85%);
}
.es-hero-overlay-bottom {
	position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; height: 60%;
	background: linear-gradient(to top,rgba(1,15,55,0.78) 0%,transparent 100%);
}
.es-hero-content {
	position: relative; z-index: 10;
	max-width: clamp(620px,52vw,1050px); margin: 0 auto 0 0; width: 100%;
	opacity: 0; transform: translateY(24px);
	animation: tpb-hero-fade-up 1.1s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}
@keyframes tpb-hero-fade-up { to { opacity: 1; transform: translateY(0); } }
.es-hero-eyebrow { font-family: var(--font-body); font-weight: 700; font-size: clamp(11px,0.73vw,16px); letter-spacing: 0.28em; text-transform: uppercase; color: #fff; margin: 0 0 1.45vw 0; }
.es-hero-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px,4.58vw,100px); letter-spacing: 0.04em; line-height: 1.0; color: #fff; text-transform: uppercase; margin: 0 0 1.65vw 0; }
.es-hero-sub { font-family: var(--font-body); font-weight: 400; font-size: clamp(15px,0.89vw,20px); line-height: 1.85; color: rgba(255,255,255,0.85); max-width: clamp(480px,34vw,660px); margin: 0 0 2vw 0; }
.es-hero-cta-pair { display: flex; flex-wrap: wrap; gap: 14px; }
.es-btn-hero { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 800; font-size: 14px; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; padding: 18px 32px; border-radius: 3px; background: #fff; color: var(--navy); transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.es-btn-hero:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

/* =====================
   DIAGNOSTIC (white, centered, price block)
   ===================== */
.es-diag { background: var(--white); padding: 104px 48px; }
.es-diag-inner { max-width: clamp(680px,72vw,1000px); margin: 0 auto; text-align: center; }
.es-diag-eyebrow { font-family: var(--font-body); font-weight: 700; font-size: var(--text-eyebrow); letter-spacing: 0.28em; text-transform: uppercase; color: var(--arctic); margin: 0 0 18px 0; }
.es-diag-headline { font-family: var(--font-display); font-weight: 700; font-size: var(--text-section-headline); letter-spacing: 0.04em; line-height: 1.08; color: var(--navy); text-transform: uppercase; margin: 0 0 32px 0; }
.es-diag-rule { width: 48px; height: 3px; background: var(--arctic); margin: 0 auto 36px; }
.es-diag-body { font-size: clamp(15px,0.89vw,20px); line-height: 1.75; color: var(--charcoal); margin: 0 auto 40px; max-width: clamp(480px,35vw,720px); }
.es-diag-price-block { display: flex; flex-direction: column; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 auto 32px; max-width: 520px; }
.es-diag-price { font-family: var(--font-display); font-weight: 700; font-size: 36px; letter-spacing: 0.02em; color: var(--navy); margin-bottom: 8px; }
.es-diag-price-comp { font-weight: 500; font-size: 14px; letter-spacing: 0.04em; color: var(--arctic); }
.es-diag-cta { display: inline-flex; align-items: center; background: var(--navy); color: #fff; font-family: var(--font-body); font-size: var(--text-btn); font-weight: 800; padding: 18px 36px; border-radius: 3px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: background 0.2s, transform 0.15s; white-space: nowrap; margin-top: 8px; }
.es-diag-cta:hover { background: var(--ocean); transform: translateY(-1px); }

/* =====================
   PHOTO STRIPES (Repair, Install) — alternating photo/content halves
   ===================== */
.es-stripe { background: var(--white); display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 560px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.es-stripe-alt { background: var(--alt); }
.es-stripe-photo { position: relative; overflow: hidden; background: #0a1428; min-height: 400px; }
.es-stripe-photo img,
.es-stripe-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.es-stripe-content { padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; }
.es-stripe-eyebrow { font-family: var(--font-body); font-weight: 700; font-size: var(--text-eyebrow); letter-spacing: 0.28em; text-transform: uppercase; color: var(--arctic); margin: 0 0 18px 0; }
.es-stripe-headline { font-family: var(--font-display); font-weight: 700; font-size: var(--text-section-headline); letter-spacing: 0.04em; line-height: 1.08; color: var(--navy); text-transform: uppercase; margin: 0 0 24px 0; }
.es-stripe-rule { width: 48px; height: 3px; background: var(--arctic); margin: 0 0 24px; }
.es-stripe-body { font-size: clamp(15px,0.89vw,20px); line-height: 1.75; color: var(--charcoal); margin: 0 0 24px 0; }
.es-stripe-body:last-child { margin-bottom: 0; }
.es-stripe-cta { align-self: flex-start; margin-top: 8px; }
/* photo-left: photo first; photo-right: content first */
.es-stripe-photo-left .es-stripe-photo { order: 1; }
.es-stripe-photo-left .es-stripe-content { order: 2; }
.es-stripe-photo-right .es-stripe-content { order: 1; }
.es-stripe-photo-right .es-stripe-photo { order: 2; }

/* =====================
   EQUIPMENT CATEGORIES (6-card grid)
   ===================== */
.es-eqcat { background: var(--white); padding: 104px 48px; }
.es-eqcat-inner { max-width: clamp(680px,85vw,1300px); margin: 0 auto; }
.es-eqcat-header { text-align: center; margin-bottom: 64px; }
.es-eqcat-eyebrow { font-family: var(--font-body); font-weight: 700; font-size: var(--text-eyebrow); letter-spacing: 0.28em; text-transform: uppercase; color: var(--arctic); margin: 0 0 18px 0; }
.es-eqcat-headline { font-family: var(--font-display); font-weight: 700; font-size: var(--text-section-headline); letter-spacing: 0.04em; line-height: 1.08; color: var(--navy); text-transform: uppercase; margin: 0 0 24px 0; }
.es-eqcat-subhead { font-size: clamp(14px,0.83vw,18px); line-height: 1.65; color: var(--muted); max-width: clamp(480px,35vw,720px); margin: 0 auto; }
.es-eqcat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.es-eqcat-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 4px; padding: 36px 32px 32px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; min-height: 260px; }
.es-eqcat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-top-color: var(--ocean); }
.es-eqcat-card-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px,1.15vw,22px); letter-spacing: 0.04em; color: var(--navy); text-transform: uppercase; margin: 0 0 12px 0; line-height: 1.1; }
.es-eqcat-card-rule { width: 32px; height: 2px; background: var(--arctic); margin: 0 0 20px 0; }
.es-eqcat-card-summary { font-size: clamp(13px,0.73vw,15px); line-height: 1.6; color: var(--charcoal); margin: 0 0 24px 0; flex: 1; }
.es-eqcat-card-cta { font-family: var(--font-body); font-weight: 600; font-size: clamp(13px,0.73vw,15px); letter-spacing: 0.02em; color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 2px; align-self: flex-start; transition: color 0.15s, border-color 0.15s; }
.es-eqcat-card:hover .es-eqcat-card-cta { color: var(--ocean); border-bottom-color: var(--ocean); }

/* =====================
   FAQ (accordion — vanilla JS in theme.js)
   ===================== */
.es-faq { padding: 80px 48px; background: var(--alt); }
.es-faq-inner { max-width: clamp(680px,72vw,1000px); margin: 0 auto; }
.es-faq-header { margin-bottom: 48px; }
.es-faq-eyebrow { font-family: var(--font-body); font-weight: 700; font-size: var(--text-eyebrow); letter-spacing: 0.28em; text-transform: uppercase; color: var(--arctic); margin: 0 0 16px 0; }
.es-faq-headline { font-family: var(--font-display); font-weight: 700; font-size: var(--text-section-headline); letter-spacing: 0.04em; line-height: 1; color: var(--navy); text-transform: uppercase; margin: 0; }
.es-faq-card { background: var(--white); padding: 48px; border-radius: 4px; border: 1px solid var(--line); }
.es-faq-card .faq-list { border-top: 1px solid var(--line); }
.es-faq-card .faq-item { border-bottom: 1px solid var(--line); }
.es-faq-card .faq-trigger {
	width: 100%; background: transparent; border: none;
	padding: 22px 0; display: flex; align-items: center; justify-content: space-between;
	cursor: pointer; font-family: var(--font-body);
	font-size: clamp(17px, calc(0.2vw + 16px), 19px); font-weight: 600; color: var(--charcoal);
	text-align: left; letter-spacing: -0.005em; line-height: 1.4;
	-webkit-appearance: none; appearance: none;
}
.es-faq-card .faq-trigger:hover { color: var(--navy); }
.es-faq-card .faq-icon { width: 18px; height: 18px; flex-shrink: 0; margin-left: 24px; position: relative; display: flex; align-items: center; justify-content: center; }
.es-faq-card .faq-icon::before,
.es-faq-card .faq-icon::after { content: ""; position: absolute; background: var(--arctic); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.es-faq-card .faq-icon::before { width: 14px; height: 2px; }
.es-faq-card .faq-icon::after { width: 2px; height: 14px; }
.es-faq-card .faq-item.open .faq-icon::after { transform: rotate(90deg); }
.es-faq-card .faq-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1); }
.es-faq-card .faq-body-inner { padding: 0 0 26px; font-size: clamp(15.5px, calc(0.18vw + 14.7px), 17px); line-height: 1.7; color: var(--muted); max-width: 760px; }
.es-faq-card .faq-body-inner a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.es-faq-card .faq-body-inner a:hover { color: var(--ocean); }
.es-faq-card .faq-body-inner p { margin-bottom: 14px; }
.es-faq-card .faq-body-inner p:last-child { margin-bottom: 0; }
.es-faq-card .faq-body-inner ul { list-style: none; padding: 0; margin: 14px 0; }
.es-faq-card .faq-body-inner ul li { position: relative; padding-left: 20px; margin-bottom: 10px; line-height: 1.65; }
.es-faq-card .faq-body-inner ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; background: var(--arctic); border-radius: 50%; }
.es-faq-card .faq-body-inner strong { color: var(--charcoal); font-weight: 700; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 760px) {
	.es-hero { padding: 120px 24px 64px; }
	.es-hero-content { max-width: 100%; }
	.es-hero-h1 br { display: none; }
	.es-hero-sub { font-size: 16px; max-width: 100%; }
	.es-hero-cta-pair { flex-direction: column; align-items: stretch; }
	.es-btn-hero { text-align: center; padding: 16px 24px; font-size: 13px; }
	.es-diag { padding: 72px 24px; }
	.es-diag-headline { margin-bottom: 24px; }
	.es-diag-body { font-size: 16px; }
	.es-diag-price { font-size: 30px; }
	.es-diag-cta { display: flex; justify-content: center; width: 100%; }
	.es-stripe { grid-template-columns: 1fr; min-height: 0; }
	.es-stripe-photo { min-height: 280px; }
	.es-stripe-content { padding: 48px 28px; }
	.es-stripe-photo-left .es-stripe-photo,
	.es-stripe-photo-right .es-stripe-photo { order: 0; }
	.es-stripe-photo-left .es-stripe-content,
	.es-stripe-photo-right .es-stripe-content { order: 1; }
	.es-eqcat, .es-faq { padding: 72px 24px; }
	.es-eqcat-header { margin-bottom: 48px; }
	.es-eqcat-grid { grid-template-columns: repeat(2,1fr); gap: 18px; }
	.es-eqcat-card { padding: 28px 24px 24px; min-height: 0; }
	.es-faq-card { padding: 32px 24px; }
}
@media (max-width: 480px) {
	.es-eqcat-grid { grid-template-columns: 1fr; gap: 16px; }
}
