/* =============================================================
   Peak Body Coach · main.css
   Base resets + nav + footer + universal chrome.
   Ported from pbc-nav-footer-v1.html.
   Component patterns and per-page styles ship from blocks/ as
   the theme grows.
   ============================================================= */

/* ---------- Local aliases ---------- */
:root {
	--nav-h: 56px;
}


/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	background: var(--color-page);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-weight: var(--weight-regular);
	font-size: 18px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }


/* ---------- Skip link (a11y) ---------- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--color-ink);
	color: var(--color-cream);
	padding: var(--space-3) var(--space-5);
	font-family: var(--font-mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }


/* ---------- Inline link ---------- */
.tl {
	font-weight: var(--weight-medium);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.tl:hover { text-decoration-thickness: 2px; }


/* ---------- Section padding ---------- */
.sec { padding: var(--space-section-mobile) 0; }
@media (min-width: 640px)  { .sec { padding: var(--space-section-tablet) 0; } }
@media (min-width: 1024px) { .sec { padding: var(--space-section-desktop) 0; } }


/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: var(--weight-medium);
	font-size: 16px;
	line-height: 1;
	padding: var(--pad-btn);
	border: none;
	border-radius: 0;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn--primary { background: var(--color-red); color: var(--color-cream); }
.btn--ghost {
	background: transparent;
	color: var(--color-cream);
	border: 1px solid rgba(236, 230, 215, 0.4);
}
.btn--ghost:hover { border-color: rgba(236, 230, 215, 0.7); }
.btn--ghost-cream {
	background: transparent;
	color: var(--color-cream);
	border: 1px solid var(--color-cream);
}
.btn--ghost-cream:hover {
	background: var(--color-cream);
	color: var(--color-ink);
	opacity: 1;
}


/* =============================================================
   HERO — base structure (all photo-hero pages)
   ============================================================= */
.hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}
.hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero-overlay { position: absolute; inset: 0; }
.hero-content {
	position: relative;
	z-index: 2;
	padding-top: var(--space-13);
	padding-bottom: var(--space-12);
}
.hero-content .type-h1 {
	color: var(--color-cream);
	max-width: 75%;
	margin-top: var(--rhythm-eyebrow-h1);
}
.hero-content .type-subhead {
	color: rgba(236, 230, 215, 0.85);
	margin-top: var(--rhythm-h1-subhead);
	max-width: 560px;
}
.hero-content .btn { margin-top: var(--rhythm-subhead-body); }

/* Interior page hero */
.hero--int { min-height: 72vh; }
.hero--int .hero-overlay {
	background:
		radial-gradient(ellipse 70% 80% at 0% 0%, rgba(23,23,23,0.72) 0%, rgba(23,23,23,0) 100%),
		linear-gradient(180deg, rgba(23,23,23,0.0) 0%, rgba(23,23,23,0.5) 50%, rgba(23,23,23,0.92) 100%);
}
@media (max-width: 768px) {
	.hero--int { min-height: 60vh; }
	.hero-content { padding-bottom: var(--space-11); }
	.hero-content .type-h1 { max-width: 95%; font-size: clamp(48px, 9vw, 80px); }
	.hero-content .type-subhead { font-size: 18px; }
}


/* =============================================================
   SECTION HEADER — pill + h2 + optional body
   ============================================================= */
.sec-hd { margin-bottom: var(--space-10); }
.sec-hd .pill { display: inline-block; margin-bottom: var(--rhythm-eyebrow-h1); }
.sec-hd .type-h2 { margin-top: var(--rhythm-eyebrow-h1); }
.sec-hd .type-body { margin-top: var(--space-6); max-width: 680px; opacity: 0.8; }


/* =============================================================
   TESTIMONIALS — shared across homepage, coaching, local, etc.
   ============================================================= */
.test-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-8);
}
@media (min-width: 768px) {
	.test-grid { grid-template-columns: repeat(3, 1fr); }
}
.test {
	border-left: var(--mark-rule-side) solid var(--color-red);
	padding-left: var(--space-7);
}
.test-q {
	font-family: var(--font-body);
	font-weight: var(--weight-regular);
	font-size: clamp(17px, 1.3vw, 20px);
	line-height: 1.6;
}
.test-a {
	margin-top: var(--space-4);
	font-family: var(--font-mono);
	font-weight: var(--weight-medium);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: rgba(23, 23, 23, 0.55);
}
/* Dark surface overrides */
.surface-ink .test-a,
.surface-slate .test-a { color: rgba(236, 230, 215, 0.5); }


/* =============================================================
   FAQ — shared across coaching, local, GLP-1
   ============================================================= */
.faq-list { margin-top: var(--space-9); }
.faq-item {
	border-top: 1px solid rgba(23, 23, 23, 0.12);
	max-width: 860px;
}
.faq-item:last-child { border-bottom: 1px solid rgba(23, 23, 23, 0.12); }
.faq-item summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-8);
	padding: var(--space-7) 0;
	cursor: pointer;
	font-family: var(--font-body);
	font-weight: var(--weight-bold);
	font-size: clamp(18px, 1.4vw, 22px);
	line-height: 1.35;
	user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item summary::after {
	content: "+";
	font-family: var(--font-mono);
	font-size: 18px;
	font-weight: var(--weight-medium);
	color: var(--color-red);
	flex-shrink: 0;
	line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-a {
	font-family: var(--font-body);
	font-weight: var(--weight-regular);
	font-size: clamp(17px, 1.3vw, 20px);
	line-height: 1.65;
	opacity: 0.72;
	padding-bottom: var(--space-7);
	animation: faq-in 0.18s ease;
}
@keyframes faq-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 0.72; transform: translateY(0); }
}


/* =============================================================
   CTA — photo overlay section, used on most pages
   ============================================================= */
.cta {
	position: relative;
	overflow: hidden;
	padding: var(--space-13) 0;
}
.cta-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: saturate(0.15) contrast(1.1) brightness(0.7);
}
.cta-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(23, 23, 23, 0.92)  0%,
		rgba(23, 23, 23, 0.78) 40%,
		rgba(23, 23, 23, 0.45) 100%
	);
}
.cta .container-content { position: relative; z-index: 2; }
.cta .type-mono-label   { color: rgba(236, 230, 215, 0.70); }
.cta .type-h1 {
	color: var(--color-cream);
	margin-top: var(--rhythm-eyebrow-h1);
}
.cta .type-body {
	color: rgba(236, 230, 215, 0.78);
	margin-top: var(--rhythm-h1-subhead);
	max-width: 580px;
}
.cta .btn    { margin-top: var(--rhythm-subhead-body); }
.cta-sec {
	margin-top: var(--space-4);
	font-size: 14px;
	color: rgba(236, 230, 215, 0.45);
}
.cta-sec a {
	color: rgba(236, 230, 215, 0.65);
	text-decoration: underline;
	text-underline-offset: 2px;
}
@media (max-width: 640px) { .cta { padding: var(--space-11) 0; } }


/* =============================================================
   NAV — sticky, ink, with Coaching dropdown
   ============================================================= */
.nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-ink);
	border-bottom: 1px solid rgba(236, 230, 215, 0.08);
}
.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--nav-h);
}
.nav-logo-link { display: flex; align-items: center; }
.nav-logo { height: 20px; width: auto; }

.nav-r {
	display: flex;
	align-items: center;
	gap: var(--space-7);
	list-style: none;
}
.nav-r > li { display: flex; align-items: center; }
.nav-r a,
.nav-r summary {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: var(--weight-regular);
	color: rgba(236, 230, 215, 0.65);
	text-decoration: none;
	transition: color 0.15s;
	line-height: 1;
}
.nav-r a:hover,
.nav-r summary:hover { color: var(--color-cream); }
.nav-r .nav-link--active { color: var(--color-cream); }
.nav-r .btn { font-size: 13px; padding: 10px 20px; color: var(--color-cream); }
.nav-r .btn:hover { color: var(--color-cream); }

/* Coaching dropdown */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown summary {
	list-style: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 18px 0;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary::marker { display: none; }
.nav-dropdown summary::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.18s;
	opacity: 0.7;
}
.nav-dropdown[open] summary::after {
	transform: translateY(1px) rotate(-135deg);
	opacity: 1;
}

.nav-dd-panel {
	position: absolute;
	top: calc(100% + 1px);
	left: -20px;
	min-width: 340px;
	background: var(--color-ink);
	border-bottom: 1px solid rgba(236, 230, 215, 0.08);
	padding: var(--space-3) 0;
}
.nav-dd-panel a {
	display: block;
	padding: var(--space-5) var(--space-7);
	color: rgba(236, 230, 215, 0.85);
	transition: background 0.15s, color 0.15s;
}
.nav-dd-panel a:hover {
	background: rgba(236, 230, 215, 0.04);
	color: var(--color-cream);
}
.nav-dd-title {
	display: block;
	font-family: var(--font-body);
	font-weight: var(--weight-bold);
	font-size: 15px;
	line-height: 1.2;
}
.nav-dd-desc {
	display: block;
	font-family: var(--font-body);
	font-weight: var(--weight-regular);
	font-size: 13px;
	line-height: 1.45;
	color: rgba(236, 230, 215, 0.55);
	margin-top: 4px;
}
.nav-dd-panel a:hover .nav-dd-desc { color: rgba(236, 230, 215, 0.7); }

.nav-dropdown:not([open]) .nav-dd-panel { display: none; }
@media (min-width: 768px) {
	.nav-dropdown:hover .nav-dd-panel,
	.nav-dropdown:focus-within .nav-dd-panel { display: block; }
}

/* Mobile menu */
.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
	list-style: none;
	cursor: pointer;
	width: 28px;
	height: 20px;
	position: relative;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::marker { display: none; }
.nav-mobile summary span {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--color-cream);
	transition: transform 0.2s, opacity 0.2s, top 0.2s;
}
.nav-mobile summary span:nth-child(1) { top: 2px; }
.nav-mobile summary span:nth-child(2) { top: 9px; }
.nav-mobile summary span:nth-child(3) { top: 16px; }
.nav-mobile[open] summary span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-mobile[open] summary span:nth-child(2) { opacity: 0; }
.nav-mobile[open] summary span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.nav-mobile-panel {
	position: fixed;
	top: var(--nav-h);
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--color-ink);
	overflow-y: auto;
	padding: var(--space-7) 0 var(--space-10);
}
.nav-mobile-list {
	list-style: none;
	display: flex;
	flex-direction: column;
}
.nav-mobile-list > li { border-bottom: 1px solid rgba(236, 230, 215, 0.08); }
.nav-mobile-list > li > a,
.nav-mobile-list > li > details > summary {
	padding: var(--space-6) var(--gutter-edge-mobile);
	font-family: var(--font-body);
	font-weight: var(--weight-bold);
	font-size: 18px;
	line-height: 1.3;
	color: var(--color-cream);
	text-decoration: none;
	cursor: pointer;
}
.nav-mobile-list > li > a { display: block; }
.nav-mobile-list > li > details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	list-style: none;
}
.nav-mobile-list .nav-link--active { color: var(--color-cream); }
.nav-mobile-list details summary::-webkit-details-marker { display: none; }
.nav-mobile-list details summary::marker { display: none; }
.nav-mobile-list details summary::after {
	content: "+";
	font-family: var(--font-mono);
	font-size: 22px;
	font-weight: var(--weight-medium);
	line-height: 1.3;
	color: var(--color-red);
}
.nav-mobile-list details[open] summary::after { content: "\2212"; }

.nav-mobile-sublist {
	list-style: none;
	background: rgba(236, 230, 215, 0.03);
}
.nav-mobile-sublist a {
	display: block;
	padding: var(--space-5) var(--gutter-edge-mobile) var(--space-5) var(--space-9);
	color: rgba(236, 230, 215, 0.75);
	text-decoration: none;
	font-size: 16px;
}
.nav-mobile-cta { padding: var(--space-7) var(--gutter-edge-mobile) 0; }
.nav-mobile-cta .btn {
	display: block;
	text-align: center;
	width: 100%;
	padding: 18px 24px;
	font-size: 15px;
}

@media (max-width: 768px) {
	.nav-r { display: none; }
	.nav-mobile { display: flex; align-items: center; }
}


/* =============================================================
   FOOTER — full site footer
   ============================================================= */
.foot {
	background: var(--color-ink);
	color: var(--color-cream);
}
.foot a {
	color: rgba(236, 230, 215, 0.78);
	text-decoration: none;
	transition: color 0.15s;
}
.foot a:hover { color: var(--color-cream); }

.foot-top { padding: var(--space-12) 0 var(--space-11); }
.foot-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-10);
}
@media (min-width: 640px) {
	.foot-grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-10) var(--space-9);
	}
}
@media (min-width: 1024px) {
	.foot-grid {
		grid-template-columns: 1.4fr 1fr 1fr;
		gap: var(--space-10);
	}
}

.foot-col-h {
	display: block;
	color: rgba(236, 230, 215, 0.45);
	margin-bottom: var(--space-6);
}

.foot-brand .foot-logo {
	height: 72px;
	width: auto;
	margin-bottom: var(--space-6);
}
.foot-tag {
	font-family: var(--font-body);
	font-weight: var(--weight-regular);
	font-size: 14px;
	line-height: 1.55;
	color: rgba(236, 230, 215, 0.65);
	max-width: 280px;
}

.foot-contact-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-7);
}
.foot-contact-list address {
	font-style: normal;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	color: rgba(236, 230, 215, 0.78);
}
.foot-contact-list .foot-line {
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.55;
	color: rgba(236, 230, 215, 0.78);
}
.foot-contact-list .foot-line a { color: rgba(236, 230, 215, 0.78); }
.foot-contact-list .foot-line strong {
	display: block;
	font-weight: var(--weight-medium);
	color: rgba(236, 230, 215, 0.5);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: var(--space-3);
}

/* Newsletter band */
.foot-newsletter-band {
	border-top: 1px solid rgba(236, 230, 215, 0.08);
	padding: var(--space-11) 0;
}
.foot-newsletter-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-8);
	align-items: end;
}
@media (min-width: 768px) {
	.foot-newsletter-row {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-10);
		align-items: end;
	}
}
.foot-newsletter-msg .foot-col-h { margin-bottom: var(--space-5); }
.foot-newsletter-h {
	font-family: var(--font-body);
	font-weight: var(--weight-extrabold);
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.2;
	letter-spacing: -0.005em;
	color: var(--color-cream);
}
.foot-newsletter-p {
	margin-top: var(--space-4);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.55;
	color: rgba(236, 230, 215, 0.65);
	max-width: 380px;
}
.foot-newsletter-form {
	display: flex;
	align-items: flex-end;
	gap: var(--space-5);
	flex-wrap: wrap;
}
.foot-newsletter-form .field {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	flex: 1 1 240px;
	min-width: 0;
}
.foot-newsletter-form label {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: var(--weight-medium);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(236, 230, 215, 0.5);
}
.foot-newsletter-form input {
	font-family: var(--font-body);
	font-weight: var(--weight-regular);
	font-size: 18px;
	line-height: 1.4;
	padding: var(--space-3) 0;
	border: none;
	border-bottom: 1px solid rgba(236, 230, 215, 0.3);
	background: transparent;
	color: var(--color-cream);
	border-radius: 0;
	outline: none;
	-webkit-appearance: none;
	transition: border-color 0.15s, border-width 0.15s;
	width: 100%;
}
.foot-newsletter-form input:focus {
	border-bottom: 2px solid var(--color-red);
	padding-bottom: calc(var(--space-3) - 1px);
}
.foot-newsletter-form input::placeholder { color: rgba(236, 230, 215, 0.35); }
.foot-newsletter-form .btn { flex-shrink: 0; }
.foot-newsletter-confirm { display: flex; flex-direction: column; justify-content: flex-end; }
.foot-newsletter-error {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: var(--weight-medium);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-red);
	margin-bottom: var(--space-4);
	width: 100%;
}

/* Social band */
.foot-social-band {
	border-top: 1px solid rgba(236, 230, 215, 0.08);
	padding: var(--space-8) 0;
}
.foot-social-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-7);
	flex-wrap: wrap;
}
.foot-social {
	display: flex;
	align-items: center;
	gap: var(--space-7);
	list-style: none;
}
.foot-social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(236, 230, 215, 0.65);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
}
.foot-social a:hover { color: var(--color-cream); }
.foot-social svg { width: 16px; height: 16px; display: block; }
.foot-social-r {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(236, 230, 215, 0.45);
}

/* Legal band */
.foot-legal-band {
	border-top: 1px solid rgba(236, 230, 215, 0.08);
	padding: var(--space-7) 0 var(--space-9);
}
.foot-legal-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-7);
	flex-wrap: wrap;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: rgba(236, 230, 215, 0.45);
}
.foot-legal-row a { color: rgba(236, 230, 215, 0.65); }
.foot-legal-links { display: flex; gap: var(--space-7); }

@media (max-width: 640px) {
	.foot-legal-row { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
	.foot-social-row { flex-direction: column; align-items: flex-start; gap: var(--space-5); }
}
