/* ==========================================================================
   Haven — a calm, editorial one-page theme for a solo therapy practice
   ========================================================================== */

:root {
	--paper: #F2F5F3;
	--paper-raised: #F9FBFA;
	--ink: #2B2D2F;
	--ink-soft: #5C6360;
	--ink-faint: #8B9390;
	--accent: #2C5E4E;
	--accent-soft: #DCEAE4;
	--accent-strong: #1E4437;
	--line: #D7E0DC;

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--gap: 4.5rem;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.wrap {
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.wrap-wide {
	max-width: 1220px;
}

/* Running text (about/education/focus/pricing/faq/contact) stays capped at
   a comfortable reading width even inside the wider 1220px outer container —
   only sections that actually need the extra room (services, recommendations,
   the category card grids — all rendered inside .wrap-wide) get full width. */
.wrap:not(.wrap-wide) .prose {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent);
	text-decoration-color: var(--accent-soft);
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--accent-strong);
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
	letter-spacing: -0.01em;
}

/* ==========================================================================
   Mini header (individual page view only)
   ========================================================================== */

.mini-header {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--line);
}

.mini-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.mini-header-name {
	font-family: var(--font-display);
	font-size: 1.15rem;
	color: var(--ink);
	text-decoration: none;
}

.mini-header-back {
	font-size: 0.9rem;
	color: var(--ink-soft);
	text-decoration: none;
}

.mini-header-back:hover {
	color: var(--accent);
}

/* ==========================================================================
   Hero (top banner) + page shell
   ========================================================================== */

.page-shell {
	padding: 0 0 3rem;
}

.page-shell-single {
	padding-top: 3.5rem;
}

.hero {
	padding: 4rem 0 3.5rem;
	text-align: center;
	background-color: var(--paper-raised);
	border-bottom: 1px solid var(--line);
	margin-bottom: 3rem;
}

.hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;
}

.avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	background-color: var(--accent-soft);
}

.avatar-monogram {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 2.75rem;
	color: var(--accent);
	background-color: var(--accent-soft);
}

.practitioner-name {
	font-size: 2.5rem;
	margin: 0.4rem 0 0;
}

.practitioner-specialty {
	margin: 0;
	max-width: 520px;
	color: var(--ink-soft);
	font-size: 1.05rem;
	line-height: 1.55;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.cta-button {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	background-color: var(--accent);
	color: #FFFFFF;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.85rem 1.8rem;
	border-radius: 999px;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.cta-button-whatsapp {
	background-color: #25D366;
}

.cta-button-whatsapp:hover,
.cta-button-whatsapp:focus {
	background-color: #1DA851;
	color: #FFFFFF;
}

.cta-button:hover,
.cta-button:focus {
	background-color: var(--accent-strong);
	color: #FFFFFF;
	transform: translateY(-1px);
}

/* Floating bottom CTA bar — mobile only, so a visitor never has to scroll
   back up to find a way to book. Hidden on desktop, where the hero button
   is already in view most of the time. Splits into two halves when both
   Telegram and WhatsApp are available. */
.mobile-sticky-cta {
	display: none;
}

@media (max-width: 768px) {
	body {
		padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
	}

	.mobile-sticky-cta {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 900;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
	}

	.mobile-sticky-cta-half {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		padding: 0.95rem 0.75rem calc(0.95rem + env(safe-area-inset-bottom, 0px));
		background-color: var(--accent);
		color: #FFFFFF;
		font-weight: 600;
		font-size: 0.95rem;
		text-decoration: none;
		text-align: center;
	}

	.mobile-sticky-cta-half:active {
		background-color: var(--accent-strong);
	}

	.mobile-sticky-cta-whatsapp {
		background-color: #25D366;
	}

	.mobile-sticky-cta-whatsapp:active {
		background-color: #1DA851;
	}
}

.hero-socials {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.hero-socials a {
	display: inline-block;
	font-size: 0.82rem;
	color: var(--ink-soft);
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.3rem 0.8rem;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-socials a:hover,
.hero-socials a:focus {
	border-color: var(--accent);
	color: var(--accent);
}

/* ==========================================================================
   Content sections
   ========================================================================== */

.content-section-title {
	font-size: 1.7rem;
	text-align: center;
	margin: 0 0 2rem;
}

.content-section {
	padding: 0 0 3rem;
}

.content-section-empty {
	color: var(--ink-soft);
	font-style: italic;
	text-align: center;
}

.section-divider {
	width: 100%;
	max-width: 240px;
	margin: 0 auto 3rem;
	color: var(--accent);
	opacity: 0.45;
}

.section-divider svg {
	width: 100%;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}

/* --- Prose: styling for freely-authored page content (Bludit editor output) --- */

/* Pages that already write their own top-level h1/h2 as a section title —
   unify them to look identical to .content-section-title above (centered,
   same face/size/spacing), regardless of which heading level they used,
   and however deeply nested they are inside the page's own markup. */
.prose h1,
.prose h2 {
	font-size: 1.7rem;
	text-align: center;
	margin: 0 0 2rem;
	line-height: 1.25;
}

.prose h3 {
	font-size: 1.35rem;
	margin: 1.6rem 0 0.6rem;
}

.prose p {
	margin: 0 0 1.1rem;
	color: var(--ink);
}

.prose ul,
.prose ol {
	margin: 0 0 1.1rem;
	padding-left: 1.3rem;
}

.prose li {
	margin-bottom: 0.4rem;
}

.prose ul:not(.prose-plain) {
	list-style: none;
	padding-left: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.6rem;
}

.prose ul:not(.prose-plain) li {
	background-color: var(--paper-raised);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 0.7rem 1rem;
	margin: 0;
	font-size: 0.95rem;
}

.prose blockquote {
	margin: 1.4rem 0;
	padding-left: 1.1rem;
	border-left: 3px solid var(--accent-soft);
	color: var(--ink-soft);
	font-style: italic;
}

.prose img {
	border-radius: 10px;
	margin: 1rem 0;
}

.prose figure {
	margin: 1rem 0;
}

/* Pricing: a simple <dl> convention (dt = service name, dd = price) renders
   as clean rows; site owner authors it this way (see README.md). */

.prose dl {
	margin: 0;
	border-top: 1px solid var(--line);
}

.prose dl > div,
.prose dl {
	display: block;
}

.prose dt {
	font-weight: 600;
	padding-top: 0.9rem;
}

.prose dd {
	margin: 0 0 0.9rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--line);
	color: var(--accent);
	font-weight: 600;
}

/* FAQ: native <details>/<summary>, authored via the editor's HTML/source view */

.prose-faq details {
	border-bottom: 1px solid var(--line);
	padding: 1rem 0;
}

.prose-faq details:first-child {
	border-top: 1px solid var(--line);
}

.prose-faq summary {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.prose-faq summary::-webkit-details-marker {
	display: none;
}

.prose-faq summary::after {
	content: '+';
	font-family: var(--font-body);
	font-size: 1.3rem;
	color: var(--accent);
	flex-shrink: 0;
}

.prose-faq details[open] summary::after {
	content: '\2212';
}

.prose-faq details p {
	margin: 0.7rem 0 0;
	color: var(--ink-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--line);
	padding: 2.5rem 0;
	margin-top: 2rem;
}

.footer-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1.5rem;
}

.footer-title {
	font-family: var(--font-display);
	margin: 0 0 0.6rem;
	font-size: 1.05rem;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.footer-links a {
	text-decoration: none;
	font-size: 0.95rem;
}

.footer-meta {
	color: var(--ink-faint);
	font-size: 0.85rem;
	text-align: right;
}

.footer-meta p {
	margin: 0 0 0.3rem;
}

.footer-credit a {
	color: var(--ink-faint);
	text-decoration: underline;
	text-decoration-color: var(--line);
}

.footer-credit a:hover,
.footer-credit a:focus {
	color: var(--accent);
	text-decoration-color: var(--accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
	.hero {
		padding: 3rem 0 2.5rem;
	}

	.footer-row {
		flex-direction: column;
	}

	.footer-meta {
		text-align: left;
	}
}

@media (max-width: 480px) {
	.wrap {
		padding: 0 1.25rem;
	}

	.practitioner-name {
		font-size: 1.85rem;
	}

	.content-section h2 {
		font-size: 1.4rem;
	}
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

a:focus-visible,
.cta-button:focus-visible,
.hero-socials a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Catch-all "more pages" catalog (any published page outside the fixed
   section keys — individual programs/articles added later)
   ========================================================================== */

.article-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
}

.article-card {
	display: flex;
	flex-direction: column;
	background-color: var(--paper-raised);
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: var(--ink);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover,
.article-card:focus {
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	color: var(--ink);
}

.article-card-img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	background-color: var(--accent-soft);
}

.article-card-title {
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 500;
	padding: 1rem 1.1rem 0.3rem;
}

.article-card-excerpt {
	font-size: 0.9rem;
	color: var(--ink-soft);
	padding: 0 1.1rem 1.1rem;
	line-height: 1.5;
}
