/* ========================================================================
   HOME — page-specific styles only.
   Shared shapes (.cred-bar, .cta-section, nav, footer, sticky bar, buttons)
   live in style.css and are NOT redeclared here.
   ======================================================================== */

/* =====================
   HERO
   ===================== */
.hero {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh; /* small-viewport height: the real "fold" once mobile browser chrome is counted */
	min-height: 560px;
	overflow: hidden;
	display: flex;
	align-items: center;
	padding-top: 84px; /* clears the fixed header */
	box-sizing: border-box;
}
.hero-photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(155deg, #050d24 0%, #091e52 40%, #0f2868 70%, #07183e 100%);
}
.hero-photo img,
.hero-photo-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.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%);
}
.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%);
}
.overlay-top {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 3;
	height: 220px;
	background: linear-gradient(to bottom, rgba(0,0,0,0.32) 0%, transparent 100%);
}
.hero-content {
	position: relative;
	z-index: 10;
	padding: 0 72px;
	max-width: 1100px;
	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); }
}
.hero-eyebrow {
	font-size: var(--text-eyebrow);
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 28px;
}
.hero-h1 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #fff;
	text-transform: uppercase;
	margin-bottom: 32px;
	line-height: 1.0;
	font-size: clamp(38px, 4.6vw, 64px);
}
.hero-sub {
	font-size: var(--text-body);
	color: rgba(255,255,255,0.75);
	line-height: 1.85;
	max-width: 560px;
	margin-bottom: 24px;
	font-weight: 400;
}
.hero-cta-pair {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: stretch;
}
.btn-hero-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: var(--navy);
	font-family: var(--font-body);
	font-size: var(--text-btn);
	font-weight: 800;
	padding: 18px 32px;
	border-radius: 3px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s, transform 0.15s;
	white-space: nowrap;
}
.btn-hero-secondary:hover {
	background: var(--off);
	transform: translateY(-1px);
}

/* =====================
   STANDARD OF CARE
   ===================== */
.soc-section { background: var(--charcoal); padding: var(--fs-section-y) 0; }
.soc-inner { max-width: var(--fs-container); margin: 0 auto; padding: 0 var(--fs-inner-x); }
.soc-top-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: clamp(40px, calc(2.78vw + 19.33px), 80px);
	align-items: center;
	margin-bottom: var(--fs-header-mb);
}
.soc-header { margin-bottom: 0; }
.soc-eyebrow {
	font-size: var(--text-eyebrow);
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--arctic);
	margin-bottom: 20px;
}
.soc-headline {
	font-family: var(--font-display);
	font-size: var(--text-section-headline);
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.04em;
	line-height: 1.05;
	text-transform: uppercase;
	margin-bottom: 28px;
}
/* Raise the ® a touch higher than the site-wide cap-height alignment (feedback 949133) */
.soc-headline .tpb-mark {
	position: relative;
	top: -0.1em; /* visual nudge only; keeps the line box unchanged */
}
.soc-body {
	font-size: var(--text-body);
	color: rgba(255,255,255,0.7);
	line-height: 1.85;
}
.soc-photo {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.soc-photo img { width: 100%; height: 100%; object-fit: cover; }
.pillar-transition { margin-bottom: var(--fs-pillar-transition-mb); text-align: center; }
.pillar-transition-text {
	font-size: clamp(18px, 2vw, 26px);
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.01em;
	line-height: 1.4;
}
.pillar-transition-text strong { color: var(--arctic); font-weight: 900; }

/* =====================
   PILLARS ACCORDION
   ===================== */
.pacc { max-width: 880px; margin: 0 auto; }
.pacc-row {
	border-bottom: 1px solid rgba(255,255,255,0.12);
	cursor: pointer;
	transition: background-color 0.25s ease;
}
.pacc-row:first-child { border-top: 1px solid rgba(255,255,255,0.12); }
.pacc-row:hover { background: rgba(255,255,255,0.025); }
.pacc-row.open { background: rgba(255,255,255,0.02); }
.pacc-head {
	display: flex;
	align-items: flex-start;
	padding: 28px 8px;
	gap: 24px;
	width: 100%;
	border: none;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
}
.pacc-num {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 700;
	color: var(--arctic);
	letter-spacing: 0.18em;
	min-width: 42px;
	padding-top: 6px;
}
.pacc-title-block { flex: 1; }
.pacc-title {
	font-family: var(--font-display);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.05;
}
.pacc-chev {
	color: var(--arctic);
	font-size: 16px;
	line-height: 1;
	padding-top: 12px;
	transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
	font-family: var(--font-body);
	font-weight: 300;
	user-select: none;
}
.pacc-row.open .pacc-chev { transform: rotate(180deg); }
.pacc-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.55s cubic-bezier(0.16,1,0.3,1);
}
.pacc-body-inner { padding: 0 8px 32px 74px; }
.pacc-rule { width: 36px; height: 3px; background: var(--arctic); margin: 0 0 18px; }
.pacc-text {
	font-family: var(--font-body);
	font-size: 15px;
	color: rgba(255,255,255,0.75);
	line-height: 1.7;
	max-width: 680px;
}
@media (max-width: 768px) {
	.pacc-head { padding: 22px 4px; gap: 16px; }
	.pacc-num { min-width: 32px; font-size: 12px; }
	.pacc-title { font-size: 20px; }
	.pacc-body-inner { padding: 0 4px 24px 52px; }
	.pacc-text { font-size: 14px; }
}

/* =====================
   ALGAECARE GUARANTEE
   ===================== */
.algae-section { background: var(--white); padding: var(--fs-section-y) var(--fs-section-x); }
.algae-inner { max-width: var(--fs-container); margin: 0 auto; }
.algae-card {
	background: var(--charcoal);
	border-radius: 8px;
	padding: clamp(48px,6vw,80px) clamp(32px,5vw,64px);
	position: relative;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.algae-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 6px; height: 100%;
	background: linear-gradient(180deg, var(--algae) 0%, rgba(0,201,80,0.3) 60%, transparent 100%);
}
.algae-grid {
	display: grid;
	grid-template-columns: 1fr 220px;
	gap: clamp(48px,5vw,96px);
	align-items: center;
}
.algae-eyebrow {
	font-size: var(--text-eyebrow);
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--algae);
	margin-bottom: 20px;
}
.algae-headline {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--text-section-headline);
	color: #fff;
	letter-spacing: 0.04em;
	line-height: 1.05;
	text-transform: uppercase;
	margin-bottom: 24px;
}
.algae-headline span { color: var(--algae); }
.algae-rule { width: 32px; height: 3px; background: var(--algae); margin-bottom: 24px; }
.algae-body {
	font-size: var(--text-body);
	color: rgba(255,255,255,0.85);
	line-height: 1.85;
	margin-bottom: 24px;
}
.algae-programs { font-size: 13px; font-weight: 700; color: var(--algae); }
.algae-conditions-link {
	color: rgba(255,255,255,0.85);
	font-weight: 500;
	border-bottom: 1px solid rgba(255,255,255,0.25);
	text-decoration: none;
	padding-bottom: 1px;
	transition: color 0.15s, border-color 0.15s;
}
.algae-conditions-link:hover { color: var(--algae); border-color: var(--algae); }
.algae-right { display: flex; align-items: center; justify-content: center; }
.algae-right svg { filter: drop-shadow(0 8px 24px rgba(0,201,80,0.15)); }

/* =====================
   SERVICES FUNNEL
   ===================== */
.services-section { background: var(--white); padding: var(--fs-section-y) var(--fs-section-x); }
.services-inner { max-width: var(--fs-container); margin: 0 auto; }
.services-header { margin-bottom: 72px; }
.services-headline {
	font-family: var(--font-display);
	font-size: var(--text-section-headline);
	font-weight: 700;
	color: var(--navy);
	letter-spacing: 0.04em;
	line-height: 1.05;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.services-sub { font-size: var(--text-body); color: var(--muted); line-height: 1.75; max-width: 560px; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 40px; }
.service-panel-wrap { display: flex; flex-direction: column; text-decoration: none; cursor: pointer; }
.service-panel {
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 3px solid var(--navy);
	border-radius: 4px 4px 0 0;
	padding: 40px 36px 36px;
	display: flex;
	flex-direction: column;
	flex: 1;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-panel-wrap.will-animate .service-panel { opacity: 0; transform: translateY(24px); }
.service-panel-wrap.will-animate.visible .service-panel { opacity: 1; transform: translateY(0); }
.service-panel-wrap.will-animate.visible .service-panel-cta { opacity: 1; transform: translateY(0); }
.service-panel-wrap.will-animate .service-panel-cta { opacity: 0; transform: translateY(24px); }
.service-panel-wrap:nth-child(1) .service-panel,
.service-panel-wrap:nth-child(1) .service-panel-cta { transition-delay: 0s; }
.service-panel-wrap:nth-child(2) .service-panel,
.service-panel-wrap:nth-child(2) .service-panel-cta { transition-delay: 0.1s; }
.service-panel-wrap:nth-child(3) .service-panel,
.service-panel-wrap:nth-child(3) .service-panel-cta { transition-delay: 0.2s; }
.service-panel-wrap:hover .service-panel { box-shadow: 0 24px 64px rgba(2,52,143,0.25); border-color: rgba(2,52,143,0.25); border-top-color: #011F6B; }
.service-panel-wrap:hover .service-panel-rule { width: 56px; background: var(--arctic); }
.service-panel-wrap:hover .service-panel-cta { background: #011F6B; }
.service-panel-name {
	font-family: var(--font-display);
	font-size: clamp(20px,2vw,26px);
	font-weight: 700;
	color: var(--navy);
	letter-spacing: 0.04em;
	line-height: 1.05;
	text-transform: uppercase;
	min-height: 60px;
	display: flex;
	align-items: flex-start;
}
.service-panel-sub {
	font-size: 14px;
	color: var(--muted);
	font-weight: 500;
	font-style: italic;
	letter-spacing: 0.01em;
	margin-top: 10px;
	margin-bottom: 8px;
}
.service-panel-rule {
	width: 36px;
	height: 3px;
	background: var(--arctic);
	margin: 20px 0;
	transition: width 0.4s cubic-bezier(0.16,1,0.3,1), background 0.2s ease;
	flex-shrink: 0;
}
.service-panel-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 0; flex: 1; }
.service-panel-item { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--charcoal); font-weight: 500; }
.service-item-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--arctic); flex-shrink: 0; margin-top: 8px; }
.service-item-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.service-item-desc { font-size: 13px; color: var(--muted); font-weight: 500; font-style: italic; letter-spacing: 0.01em; }
.service-panel-price {
	font-size: 14px;
	color: var(--muted);
	font-weight: 500;
	padding: 20px 0 0;
	margin-top: 20px;
	border-top: 1px solid var(--line);
	line-height: 1.5;
}
.service-panel-price strong {
	color: var(--navy);
	font-weight: 900;
	font-size: 15px;
	letter-spacing: -0.01em;
}
.service-panel-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--navy);
	color: #fff;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 18px 20px;
	min-height: 72px;
	border-top: 1px solid rgba(255,255,255,0.12);
	border-radius: 0 0 4px 4px;
	transition: background 0.15s;
	text-decoration: none;
	text-align: center;
	line-height: 1.5;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1), background 0.15s;
}
.services-areas {
	font-size: 13px;
	color: var(--muted);
	font-weight: 500;
	text-align: center;
	margin-bottom: 16px;
}
.services-all { text-align: center; padding-top: 32px; }
.services-all-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--navy);
	border-bottom: 1px solid var(--line);
	padding-bottom: 3px;
	transition: color 0.2s, border-color 0.2s, gap 0.2s;
	text-decoration: none;
}
.services-all-link:hover { color: var(--ocean); border-color: var(--navy); gap: 12px; }

/* =====================
   REVIEWS
   ===================== */
.reviews-section { background: var(--charcoal); padding: var(--fs-section-y) var(--fs-section-x); }
.reviews-inner { max-width: 1480px; margin: 0 auto; }
.ra-top { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.ra-rating {
	font-size: clamp(72px,10vw,120px);
	font-weight: 900;
	color: #fff;
	letter-spacing: -0.05em;
	line-height: 1;
}
.ra-stars { color: var(--star); font-size: 20px; letter-spacing: 3px; margin-bottom: 6px; }
.ra-count { font-size: 14px; color: rgba(255,255,255,0.7); font-weight: 600; letter-spacing: 0.04em; }
/* Reviews: infinite-loop marquee slider (CSS-only, no dependencies).
   The track holds two copies of the cards and animates a -50% shift, so the
   loop is seamless regardless of how many reviews the client adds. */
.ra-slider {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ra-track {
	display: flex;
	align-items: stretch;
	gap: 16px;
	width: max-content;
	will-change: transform;
	animation: ra-scroll var(--ra-dur, 60s) linear infinite;
}
.ra-slider:hover .ra-track,
.ra-track:focus-within { animation-play-state: paused; }
@keyframes ra-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
.ra-card {
	flex: 0 0 clamp(300px, 30vw, 380px);
	display: flex;
	flex-direction: column;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 4px;
	padding: 28px;
}
.ra-card-stars { color: var(--star); font-size: 12px; letter-spacing: 2px; margin-bottom: 16px; }
.ra-card-text {
	font-size: 15px;
	color: rgba(255,255,255,0.55);
	line-height: 1.75;
	font-style: italic;
	margin-bottom: 20px;
}
/* Foot group (service chips + author) pinned to the bottom of the card, so
   short cards don't leave a gap between the quote and the author row. */
.ra-card-foot { margin-top: auto; }
.ra-card-services {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}
.ra-chip {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255,255,255,0.82);
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 999px;
	padding: 5px 12px;
	letter-spacing: 0.01em;
}
.ra-card-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid rgba(255,255,255,0.06);
}
.ra-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ra-card-name { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ra-card-loc { font-size: 11px; color: rgba(255,255,255,0.5); }
.ra-card-g { font-size: 12px; font-weight: 900; color: #4285F4; }
.ra-card-date { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
	.ra-track { animation: none; }
	.ra-slider { overflow-x: auto; }
}
.ra-see-all {
	text-align: center;
	margin-top: clamp(32px,2.5vw,48px);
	padding-top: clamp(32px,2.5vw,48px);
	border-top: 1px solid rgba(255,255,255,0.06);
}
.ra-see-all-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.04em;
	text-decoration: none;
	border-bottom: 2px solid rgba(255,255,255,0.25);
	padding-bottom: 4px;
	transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.ra-see-all-link:hover { color: #fff; border-color: rgba(255,255,255,0.7); gap: 16px; }

/* =====================
   MOBILE BREAKPOINT
   ===================== */
@media (max-width: 960px) {
	.hero-content { padding: 0 24px 96px; max-width: 100%; }
	.hero-cta-pair { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
	.btn-hero-secondary { padding: 16px 20px; width: 100%; }
	.hero-eyebrow { margin-bottom: 18px; letter-spacing: 0.22em; }
	.hero-h1 { font-size: clamp(34px,8.4vw,56px); margin-bottom: 24px; line-height: 1.04; }
	.hero-sub { margin-bottom: 32px; line-height: 1.7; }
	.soc-inner { padding: 0 28px; }
	.soc-top-grid { grid-template-columns: 1fr; gap: 40px; }
	.soc-photo { aspect-ratio: 4/3; max-width: 480px; margin: 0 auto; }
	.algae-grid { grid-template-columns: 1fr; }
	.algae-right { margin-top: 8px; }
	.services-section { padding: 80px 28px; }
	.services-grid { grid-template-columns: 1fr; gap: 24px; }
	.service-panel { padding: 36px 28px 28px; }
	/* Stacked on mobile there's no cross-card alignment to preserve, so drop the
	   2-line min-height that leaves a gap under a short heading (font size unchanged). */
	.service-panel-name { min-height: 0; }
	.service-panel-cta { font-size: 13px; min-height: 60px; }
	.reviews-section { padding: 80px 28px; }
}
@media (max-width: 380px) {
	.hero-content { padding: 0 20px 80px; }
	.hero-eyebrow { font-size: 11px; letter-spacing: 0.18em; margin-bottom: 14px; }
	.hero-h1 { font-size: 30px; line-height: 1.05; margin-bottom: 20px; }
	.hero-sub { font-size: 14px; margin-bottom: 28px; }
}

/* =====================
   HERO — SHORT-VIEWPORT FOLD FIX
   Keys off viewport HEIGHT (not width), so it holds the CTAs just above the
   fold on every breakpoint — desktop, laptop, tablet and mobile-landscape —
   by compressing the hero's vertical rhythm and headline to fit inside 100vh.
   Placed last so it wins over the base and width breakpoints above.
   ===================== */
@media (min-height: 861px) {
	/* Tall screens (e.g. 1440x900+): bias the centered content upward so it
	   sits a little above the middle instead of dead-center. Proportional (vh)
	   so it scales with screen height. */
	.hero-content { padding-bottom: 16vh; }
}
@media (max-height: 860px) {
	.hero-eyebrow { margin-bottom: 16px; }
	.hero-h1 { font-size: clamp(32px, 3.7vw, 52px); margin-bottom: 18px; }
	.hero-sub { margin-bottom: 20px; line-height: 1.6; }
}
@media (max-height: 680px) {
	.hero { min-height: 0; } /* padding-top stays at 84px (nav height) so content never tucks under the fixed nav */
	.hero-content { padding-top: 0; padding-bottom: 0; }
	.hero-eyebrow { margin-bottom: 10px; }
	.hero-h1 { font-size: clamp(26px, 3.2vw, 42px); margin-bottom: 12px; }
	.hero-sub { font-size: 16px; margin-bottom: 14px; line-height: 1.5; }
}
/* Mobile + short viewport: top-align the hero so the eyebrow keeps a clear gap
   below the fixed 84px nav instead of centering up underneath it. On tall phones
   the hero stays centered (this query doesn't match), so that layout is unchanged. */
@media (max-width: 960px) and (max-height: 760px) {
	.hero { align-items: flex-start; padding-top: 108px; }
}

/* Closing CTA on the light #EEF1F6 band (feedback 949151): matches the mockup
   rhythm — the CTA ends in colour between the charcoal reviews section and footer. */
.cta-section { background: var(--alt); border-top: none; border-bottom: none; }
