/* =====================================================================
   TOKENS
   Copied verbatim from epitheal-phase1/assets/css/style.css :root.
   Source of truth is that file — if it changes, resync here by hand,
   there's no shared include between the two repos.
   ===================================================================== */
:root {
	--blue: #0733c1;
	--pink: #ff3ea7;
	--pink-text-aa: #e0008e;
	--pink-cta-fill-aa: #e0008e;
	--charcoal-willow: #334155;
	--zinc-white: #ffffff;
	--intelligence-green: #09d1cf;
	--seaweed-violet: #a23ae4;
	--salicylic-coral: #ff615c;
	--connemara-mist: #b1c3ff;
	--blush-pink: #ffacd9;
	--light-bg: #f4f6ff;
	--footer-bg: #021a7a;
	--mineral-mist: #c7f0ea;
	--font: "Montserrat", sans-serif;
}

/* =====================================================================
   BASE
   phase1 has no shared h1–h3/p rules (everything there is class-scoped
   one-offs). A blog is mostly long-form reading, so it needs a real base
   type system — built fresh here from the Brand Quick Reference scale,
   not copied from phase1 because there was nothing to copy.
   ===================================================================== */
html {
	scroll-behavior: smooth;
}

html, body {
	height: 100%;
}

body {
	font-family: var(--font);
	color: var(--charcoal-willow);
	background: var(--zinc-white);
	line-height: 1.6;
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

h1, h2, h3 {
	color: var(--blue);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }

p {
	font-size: 1rem;
	line-height: 1.6;
	margin: 0 0 1.2em;
}

a { color: var(--pink); }

main {
	display: block;
	padding-top: 84px; /* clears the fixed nav */
	flex: 1 0 auto;
}

/* =====================================================================
   NAV — matched to phase1
   ===================================================================== */
nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 3rem;
	background: rgba(7, 51, 193, 0.97);
	backdrop-filter: blur(8px);
}

.nav-logo {
	display: flex;
	align-items: center;
}

.nav-logo-img {
	height: 52px;
	width: auto;
	display: block;
}

nav ul {
	list-style: none;
	display: flex;
	gap: 2.5rem;
	margin-left: auto;
	padding: 0;
}

nav ul a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: color 0.2s;
}

nav ul a:hover {
	color: var(--zinc-white);
}

.nav-contact {
	background: var(--pink);
	color: var(--zinc-white) !important;
	padding: 8px 18px;
	border-radius: 6px;
	font-weight: 600 !important;
	text-decoration: none;
	margin-left: 2rem;
}

/* Mobile hamburger toggle — new for the blog, phase1 has no equivalent.
   Hidden by default, shown only under the 768px breakpoint below. */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	margin-left: 1rem;
}

.nav-toggle-bar {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--zinc-white);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .nav-toggle-bar:nth-child(2) {
	opacity: 0;
}
.nav-toggle.open .nav-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-panel {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99;
	background: var(--blue);
	display: flex;
	flex-direction: column;
	padding: 96px 1.5rem 2rem;
	transform: translateY(-100%);
	transition: transform 0.25s ease;
}

.mobile-nav-panel.open {
	transform: translateY(0);
}

.mobile-nav-panel a {
	color: var(--zinc-white);
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav-cta {
	color: var(--pink) !important;
	font-weight: 700 !important;
}

@media (max-width: 768px) {
	nav { padding: 1rem 1.5rem; }
	nav ul { display: none; }
	.nav-contact { display: none; }
	.nav-toggle { display: flex; }
}

/* =====================================================================
   FOOTER — matched to phase1
   ===================================================================== */
footer {
	background: var(--footer-bg);
	padding: 2.5rem 3rem 1.5rem;
}

.footer-body {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
	gap: 2.5rem;
	align-items: start;
	margin-bottom: 2rem;
}

.footer-col--brand img {
	display: block;
	margin-bottom: 0.6rem;
}

.footer-tagline {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.45);
	font-style: italic;
}

.footer-col--addresses {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.footer-phone {
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--zinc-white);
	line-height: 1.5;
}

.footer-nav {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.footer-nav a {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-nav a:hover {
	color: var(--pink);
}

.footer-address-label {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pink);
	margin-bottom: 0.5rem;
}

.footer-detail {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.9;
}

.footer-copyright {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.3);
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 1.25rem;
}

@media (max-width: 768px) {
	.footer-body { grid-template-columns: 1fr; gap: 2rem; }
	.footer-copyright { text-align: center; }
}

/* =====================================================================
   BLOG — new, no phase1 equivalent to match against.
   Signature device: the small pink dot in post meta borrows the Care
   Point mark from the brand system (the pink circle = human care /
   the moment intervention begins) as a quiet separator between author
   and date, rather than a plain bullet or pipe. Restrained, single use.
   ===================================================================== */

.blog-header {
	max-width: 760px;
	margin: 0 auto;
	padding: 4rem 1.5rem 2rem;
	text-align: center;
}

.blog-header .section-tag {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pink);
	margin-bottom: 1rem;
}

.blog-header p {
	color: var(--charcoal-willow);
	font-size: 1.05rem;
}

.post-list {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1rem 1.5rem 5rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

.post-card {
	background: var(--zinc-white);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(7, 51, 193, 0.08);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	display: flex;
	flex-direction: column;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(7, 51, 193, 0.1);
}

.post-card-image {
	background: var(--light-bg);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.post-card-image img {
	width: 100%;
	height: auto;
	display: block;
}

.post-card-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card-body h2 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.post-card-body h2 a {
	color: var(--blue);
	text-decoration: none;
}

.post-card-body h2 a:hover {
	color: var(--pink);
}

.post-card-excerpt {
	color: var(--charcoal-willow);
	font-size: 0.92rem;
	flex: 1;
	margin-bottom: 1rem;
}

.post-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: rgba(51, 65, 85, 0.65);
	letter-spacing: 0.02em;
}

.post-meta-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--pink);
	flex-shrink: 0;
}

/* Single post */
.post-single {
	max-width: 720px;
	margin: 0 auto;
	padding: 3rem 1.5rem 5rem;
}

.post-back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--pink);
	text-decoration: none;
	margin-bottom: 2rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.post-single h1 {
	margin-bottom: 0.75rem;
}

.post-single .post-meta {
	margin-bottom: 2rem;
	font-size: 0.85rem;
}

.post-feature-image {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 2.5rem;
}

.post-feature-image img {
	width: 100%;
	height: auto;
	display: block;
}

.post-intro {
	font-size: 1.15rem;
	color: var(--charcoal-willow);
	line-height: 1.6;
	margin-bottom: 2rem;
	font-weight: 500;
}

.post-body {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--charcoal-willow);
}

.post-body h2 {
	margin-top: 2em;
}

.post-body h3 {
	margin-top: 1.6em;
}

.post-body a {
	color: var(--pink);
	text-decoration: underline;
}

.post-body blockquote {
	margin: 2em 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 3px solid var(--pink);
	color: var(--blue);
	font-style: italic;
	font-size: 1.1rem;
}

.post-body img {
	max-width: 100%;
	border-radius: 10px;
	margin: 1.5em 0;
}

.post-empty {
	text-align: center;
	padding: 4rem 1.5rem;
	color: var(--charcoal-willow);
}

@media (max-width: 768px) {
	.post-list { grid-template-columns: 1fr; padding: 1rem 1.25rem 3rem; }
	.blog-header { padding: 3rem 1.25rem 1.5rem; }
	.post-single { padding: 2rem 1.25rem 3rem; }
}
