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

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

/* =====================
   SECTION SHELL (white / alt) + centered headers
   ===================== */
.per-section { background: var(--white); padding: 104px 48px; }
.per-section-alt { background: var(--alt); }
.per-inner { max-width: clamp(680px,85vw,1300px); margin: 0 auto; }
.per-header { text-align: center; max-width: clamp(480px,37vw,720px); margin: 0 auto 64px; }
.per-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; }

/* Prose intro */
.per-prose { max-width: clamp(680px,72vw,1000px); margin: 0 auto; }
.per-prose p { font-size: clamp(15px,0.89vw,20px); line-height: 1.85; color: var(--charcoal); margin: 0 0 24px 0; }
.per-prose p:last-child { margin-bottom: 0; }

/* =====================
   COMMON REPAIRS grid (grouped cards, arctic top border)
   ===================== */
.per-repairs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; align-items: stretch; }
@media (min-width: 961px) { .per-repairs-grid .per-repair-group:last-child { grid-column: 2; } }
.per-repair-group { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--arctic); border-radius: 4px; padding: 32px 28px 28px; display: flex; flex-direction: column; }
.per-repair-name { font-family: var(--font-body); font-weight: 700; font-size: clamp(11px,0.63vw,13px); letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); margin: 0 0 20px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.per-repair-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.per-repair-list li { position: relative; padding-left: 18px; font-weight: 500; font-size: clamp(13px,0.73vw,15px); line-height: 1.5; color: var(--charcoal); }
.per-repair-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--arctic); }
.per-repairs-note { font-size: clamp(13px,0.78vw,16px); line-height: 1.7; color: var(--muted); font-style: italic; max-width: clamp(480px,35vw,720px); margin: 48px auto 0; text-align: center; }

/* =====================
   PHOTO STRIPE (repair-or-replace)
   ===================== */
.per-stripe { background: var(--alt); 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); }
.per-stripe-photo { position: relative; overflow: hidden; background: #0a1428; min-height: 400px; }
.per-stripe-photo img,
.per-stripe-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.per-stripe-content { padding: 80px 64px; display: flex; flex-direction: column; justify-content: center; }
.per-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; }
.per-stripe-rule { width: 48px; height: 3px; background: var(--arctic); margin: 0 0 24px; }
.per-stripe-body { font-size: clamp(15px,0.89vw,20px); line-height: 1.75; color: var(--charcoal); margin: 0 0 24px 0; }
.per-stripe-body:last-child { margin-bottom: 0; }

/* =====================
   BRANDS grid
   ===================== */
.per-brands { background: var(--alt); padding: 104px 48px; }
.per-brands-inner { max-width: clamp(680px,80vw,1200px); margin: 0 auto; }
.per-brands-header { text-align: center; max-width: clamp(480px,35vw,720px); margin: 0 auto 56px; }
.per-brands-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; }
.per-brands-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 48px; }
.per-brand-card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; aspect-ratio: 5/2; display: flex; align-items: center; justify-content: center; padding: 24px; }
.per-brand-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.per-brand-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed rgba(2,52,143,0.18); border-radius: 3px; padding: 14px; background: rgba(238,241,246,0.4); }
.per-brand-ph-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: 0.02em; color: var(--navy); }
.per-brands-note { font-size: clamp(13px,0.78vw,16px); line-height: 1.7; color: var(--muted); text-align: center; max-width: clamp(480px,40vw,760px); margin: 0 auto; }

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

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 960px) {
	.per-repairs-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
	.per-brands-grid { grid-template-columns: repeat(3,1fr); gap: 16px; }
	.per-stripe-photo { min-height: 320px; }
	.per-stripe-content { padding: 48px 32px; }
}
@media (max-width: 760px) {
	.per-hero { padding: 120px 24px 64px; }
	.per-hero-content { max-width: 100%; }
	.per-hero-h1 br { display: none; }
	.per-hero-sub { font-size: 16px; max-width: 100%; }
	.per-hero-cta-pair { flex-direction: column; align-items: stretch; }
	.per-btn-hero { text-align: center; padding: 16px 24px; font-size: 13px; }
	.per-section, .per-brands, .per-faq { padding: 72px 24px; }
	.per-header { margin-bottom: 48px; }
	.per-repairs-grid { grid-template-columns: 1fr; gap: 16px; }
	.per-repair-group { padding: 28px 24px 24px; }
	.per-repairs-note { margin-top: 32px; font-size: 14px; }
	.per-stripe { grid-template-columns: 1fr; min-height: 0; }
	.per-stripe-content { padding: 40px 24px; }
	.per-brands-grid { grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 36px; }
	.per-brand-card { aspect-ratio: 5/2.4; padding: 16px; }
	.per-brand-ph-name { font-size: 15px; }
	.per-faq-card { padding: 32px 24px; }
	.per-headline { font-size: 32px; }
}
