/* ========================================================================
   SPECIALTY SERVICE DETAIL (shared) — FilterCare, Salt Cell Cleaning,
   Pool School, Pool Recovery, One-Time Cleaning all use this one stylesheet
   and template, driven by per-page Customizer fields. Shared shapes
   (.cred-bar, .cta-section/.cta-creds) live in style.css. Page-unique
   classes are sd- prefixed; the FAQ accordion keeps .faq-item/.faq-trigger/
   .faq-body for the shared vanilla-JS accordion.
   ======================================================================== */

/* =====================
   HERO (full-bleed photo)
   ===================== */
.sd-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%);
}
.sd-hero-photo { position: absolute; inset: 0; z-index: 0; }
.sd-hero-photo img,
.sd-hero-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sd-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%); }
.sd-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%); }
.sd-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); } }
.sd-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; }
.sd-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; }
.sd-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,40vw,760px); margin: 0 0 2vw 0; }
.sd-hero-cta-pair { display: flex; flex-wrap: wrap; gap: 14px; }
.sd-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; }
.sd-btn-hero:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

/* =====================
   SECTION SHELL + centered header
   ===================== */
.sd-section { background: var(--white); padding: 104px 48px; }
.sd-section-alt { background: var(--alt); }
.sd-inner { max-width: clamp(680px,85vw,1300px); margin: 0 auto; }
.sd-inner-narrow { max-width: clamp(680px,72vw,1000px); margin: 0 auto; }
.sd-header { text-align: center; max-width: clamp(480px,40vw,760px); margin: 0 auto 56px; }
.sd-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; }
.sd-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 22px 0; }
.sd-intro { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 auto; }

/* Rich text (paragraphs + bullet lists + bold + links) inside blocks/cards */
.sd-rich p { font-size: clamp(15px,0.89vw,19px); line-height: 1.8; color: var(--charcoal); margin: 0 0 20px 0; }
.sd-rich p:last-child { margin-bottom: 0; }
.sd-rich a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sd-rich a:hover { color: var(--ocean); }
.sd-rich strong { color: var(--navy); font-weight: 700; }
.sd-rich ul { list-style: none; padding: 0; margin: 0 0 20px 0; display: flex; flex-direction: column; gap: 10px; }
.sd-rich ul:last-child { margin-bottom: 0; }
.sd-rich ul li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--charcoal); font-weight: 500; }
.sd-rich ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--arctic); }
.sd-rich ol { list-style: decimal; padding-left: 22px; margin: 0 0 20px 0; }
.sd-rich ol li { margin-bottom: 8px; color: var(--charcoal); }
/* WYSIWYG lists inside the specialty-detail FAQ answers (global reset zeroes markers). */
.sd-faq .faq-body-inner ul,
.sd-faq .faq-body-inner ol { padding-left: 22px; margin: 0 0 14px 0; }
.sd-faq .faq-body-inner ul { list-style: disc; }
.sd-faq .faq-body-inner ol { list-style: decimal; }
.sd-faq .faq-body-inner li { margin-bottom: 6px; }
.sd-faq .faq-body-inner li::marker { color: var(--arctic); }

/* =====================
   INCLUDED cards (up to 3, numbered, arctic top border, checklist body)
   ===================== */
.sd-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.sd-cards.cols-2 { grid-template-columns: repeat(2,1fr); max-width: 900px; margin: 0 auto; }
.sd-cards.cols-1 { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.sd-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; }
.sd-card-alt { background: var(--alt); }
.sd-card-num { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; color: var(--arctic); margin-bottom: 14px; }
.sd-card-title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; line-height: 1.05; color: var(--navy); text-transform: uppercase; margin: 0 0 14px 0; }
.sd-card-rule { width: 36px; height: 3px; background: var(--arctic); margin: 0 0 20px 0; }
.sd-card .sd-rich { flex: 1; }
.sd-card .sd-rich p { font-size: 14px; line-height: 1.6; }
.sd-after-link { text-align: center; margin-top: 48px; }
.sd-after-link a { font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--navy); border-bottom: 2px solid rgba(2,52,143,0.25); padding-bottom: 3px; text-decoration: none; transition: border-color 0.2s; }
.sd-after-link a:hover { border-bottom-color: var(--navy); }
/* Before & After image pair (optional, image-driven section) */
.sd-ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.sd-ba-card { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 3/4; background: #0a1428; }
.sd-ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.sd-ba-label { position: absolute; bottom: 14px; left: 14px; font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.9); background: rgba(0,0,0,0.4); padding: 6px 12px; border-radius: 2px; }
@media (max-width: 760px) { .sd-ba-grid { gap: 12px; } }

/* =====================
   PROSE BLOCK (headline + rich body, optional side image)
   ===================== */
.sd-block-inner { max-width: clamp(680px,72vw,1000px); margin: 0 auto; }
.sd-block-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; }
.sd-block-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 28px 0; }
.sd-block-photo { margin-top: 36px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.sd-block-photo img { width: 100%; height: auto; display: block; }

/* =====================
   PRICING (tiers: name, price, description)
   ===================== */
.sd-pricing-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 4px; padding: 12px 40px; max-width: 820px; margin: 0 auto; }
.sd-tier { padding: 32px 0; border-bottom: 1px solid var(--line); }
.sd-tier:last-child { border-bottom: none; }
.sd-tier-top { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 10px; }
.sd-tier-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--navy); }
.sd-tier-price { font-family: var(--font-body); font-weight: 700; font-size: 20px; color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; }
.sd-tier-desc { font-size: 14px; line-height: 1.65; color: var(--muted); }

/* =====================
   FAQ (accordion — vanilla JS in theme.js)
   ===================== */
.sd-faq { padding: 80px 48px; background: var(--alt); }
.sd-faq-inner { max-width: clamp(680px,72vw,1000px); margin: 0 auto; }
.sd-faq-header { margin-bottom: 48px; }
.sd-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; }
.sd-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; }
.sd-faq-card { background: var(--white); padding: 48px; border-radius: 4px; border: 1px solid var(--line); }
.sd-faq-card .faq-list { border-top: 1px solid var(--line); }
.sd-faq-card .faq-item { border-bottom: 1px solid var(--line); }
.sd-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;
}
.sd-faq-card .faq-trigger:hover { color: var(--navy); }
.sd-faq-card .faq-icon { width: 18px; height: 18px; flex-shrink: 0; margin-left: 24px; position: relative; display: flex; align-items: center; justify-content: center; }
.sd-faq-card .faq-icon::before,
.sd-faq-card .faq-icon::after { content: ""; position: absolute; background: var(--arctic); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.sd-faq-card .faq-icon::before { width: 14px; height: 2px; }
.sd-faq-card .faq-icon::after { width: 2px; height: 14px; }
.sd-faq-card .faq-item.open .faq-icon::after { transform: rotate(90deg); }
.sd-faq-card .faq-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1); }
.sd-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; }
.sd-faq-card .faq-body-inner a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.sd-faq-card .faq-body-inner a:hover { color: var(--ocean); }
.sd-faq-card .faq-body-inner p { margin-bottom: 14px; }
.sd-faq-card .faq-body-inner p:last-child { margin-bottom: 0; }
.sd-faq-card .faq-body-inner ul { list-style: none; padding: 0; margin: 14px 0; }
.sd-faq-card .faq-body-inner ul li { position: relative; padding-left: 20px; margin-bottom: 10px; line-height: 1.65; }
.sd-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%; }
.sd-faq-card .faq-body-inner strong { color: var(--charcoal); font-weight: 700; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 960px) {
	.sd-section { padding: 72px 24px; }
	.sd-cards, .sd-cards.cols-2 { grid-template-columns: 1fr; gap: 18px; }
	.sd-card { padding: 32px 24px 28px; }
}
@media (max-width: 760px) {
	.sd-hero { padding: 120px 24px 64px; }
	.sd-hero-content { max-width: 100%; }
	.sd-hero-h1 br { display: none; }
	.sd-hero-sub { font-size: 16px; max-width: 100%; }
	.sd-hero-cta-pair { flex-direction: column; align-items: stretch; }
	.sd-btn-hero { text-align: center; padding: 16px 24px; font-size: 13px; }
	.sd-headline, .sd-block-headline { font-size: 32px; }
	.sd-pricing-card { padding: 8px 24px; }
	.sd-tier-top { flex-direction: column; gap: 4px; }
	.sd-faq { padding: 64px 24px; }
	.sd-faq-card { padding: 32px 24px; }
}

/* One-Time Cleaning: pricing section on white to match its mockup rhythm
   (feedback 954022). Scoped by the per-page body class so the other detail
   pages keep the shared alt-background pricing. */
body.sd-one-time-cleaning #pricing.sd-section-alt { background: var(--white); }
