/* =========================================================
   Bernard PCC — Main Stylesheet
   Clean, warm, professional. No gradients, flat & soft.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
	--c-primary: #2E7D8B;     /* buttons, links, accents */
	--c-secondary: #4A9E8A;   /* hover */
	--c-mid: #6DB88F;         /* section accents */
	--c-light: #A8D5B5;       /* light green callouts */
	--c-tint: #E8F5EE;        /* light section background */
	--c-dark: #1B5C6B;        /* headings, footer */
	--c-blue: #5c7eae;        /* secondary accent (Psychologist blue) */
	--c-blue-tint: #ecf0f7;   /* light blue background */
	--c-body: #3D3D3D;        /* body text */
	--c-white: #FFFFFF;
	--c-border: #d9e8e0;

	--font-head: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--radius: 8px;
	--radius-sm: 6px;
	--shadow-soft: 0 6px 24px rgba(27, 92, 107, 0.08);
	--maxw: 1140px;
	--maxw-narrow: 820px;
	--header-h: 92px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--c-body);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--c-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}
a:hover,
a:focus { color: var(--c-secondary); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--c-dark);
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }

:focus-visible {
	outline: 3px solid var(--c-secondary);
	outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: 24px;
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: clamp(56px, 8vw, 100px); }
.section--tint { background: var(--c-tint); }
.section--white { background: var(--c-white); }
.section--primary { background: var(--c-primary); color: var(--c-white); }
.section--primary h1,
.section--primary h2,
.section--primary h3 { color: var(--c-white); }

.eyebrow {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-blue);
	margin-bottom: 0.8rem;
}
.section--primary .eyebrow { color: var(--c-light); }

.text-center { text-align: center; }
.lead { font-size: 1.15rem; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	padding: 16px 30px;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
	text-align: center;
}
.btn:hover,
.btn:focus { transform: translateY(-2px); }

.btn--primary {
	background: var(--c-primary);
	color: var(--c-white);
	border-color: var(--c-primary);
}
.btn--primary:hover,
.btn--primary:focus {
	background: var(--c-secondary);
	border-color: var(--c-secondary);
	color: var(--c-white);
}

.btn--light {
	background: var(--c-white);
	color: var(--c-primary);
	border-color: var(--c-white);
}
.btn--light:hover,
.btn--light:focus {
	background: var(--c-tint);
	color: var(--c-dark);
	border-color: var(--c-tint);
}

.btn--outline {
	background: transparent;
	color: var(--c-primary);
	border-color: var(--c-primary);
}
.btn--outline:hover,
.btn--outline:focus {
	background: var(--c-primary);
	color: var(--c-white);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--c-white);
	border-bottom: 1px solid var(--c-border);
	transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
	padding-block: 12px;
}

/* Logo lockup (mark + wordmark) */
.site-logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1.05; text-decoration: none; }
.site-logo__mark { flex: none; display: inline-flex; }
.site-logo__svg { width: 50px; height: 50px; display: block; }
.site-logo__text { display: flex; flex-direction: column; }
.site-logo__name {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.65rem;
	color: var(--c-dark);
	letter-spacing: -0.01em;
}
.site-logo__sub {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 0.6rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-primary);
	margin-top: 4px;
}
.custom-logo-link { display: inline-block; }
.custom-logo-link img { max-height: 64px; width: auto; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 28px; }

.nav-menu {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-menu a {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1rem;
	color: var(--c-dark);
	padding: 6px 2px;
	position: relative;
}
.nav-menu a::after {
	content: '';
	position: absolute;
	left: 0; bottom: -2px;
	width: 0; height: 2px;
	background: var(--c-primary);
	transition: width 0.2s ease;
}
.nav-menu a:hover::after,
.nav-menu a:focus::after,
.nav-menu .current-menu-item > a::after { width: 100%; }
.nav-menu .current-menu-item > a { color: var(--c-primary); }

.header-phone {
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--c-white);
	background: var(--c-primary);
	white-space: nowrap;
	padding: 10px 22px;
	border-radius: 999px;
	transition: background-color 0.2s ease, transform 0.15s ease;
}
.header-phone:hover,
.header-phone:focus { background: var(--c-secondary); color: var(--c-white); transform: translateY(-1px); }

/* Mobile toggle */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 26px;
	height: 3px;
	border-radius: 3px;
	background: var(--c-dark);
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   Page header band
   ========================================================= */
.page-hero {
	position: relative;
	background-color: var(--c-dark);
	background-size: cover;
	background-position: center;
	padding-block: clamp(64px, 9vw, 116px);
	text-align: center;
	overflow: hidden;
}
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(27, 92, 107, 0.6), rgba(27, 92, 107, 0.72));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 0.35em; color: var(--c-white); }
.page-hero p {
	max-width: 660px;
	margin-inline: auto;
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.92);
}
.page-hero--about { background-image: url(../images/photos/family-enjoying-outdoor-picnic.jpg); }
.page-hero--services { background-image: url(../images/photos/child-playing-in-sprinkler.jpg); }
.page-hero--insurance { background-image: url(../images/photos/family-playing-on-the-beach.jpg); }
.page-hero--contact { background-image: url(../images/photos/young-girl-laughing-in-grass.jpg); }

/* =========================================================
   Homepage — Hero
   ========================================================= */
.home-hero {
	position: relative;
	background-color: var(--c-dark);
	background-image: url(../images/photos/family-at-sunset-in-field.jpg);
	background-size: cover;
	background-position: center;
	padding-block: clamp(72px, 11vw, 150px);
	overflow: hidden;
}
.home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(27, 92, 107, 0.86) 0%, rgba(27, 92, 107, 0.6) 52%, rgba(27, 92, 107, 0.34) 100%);
}
.home-hero .container { position: relative; z-index: 1; }
.home-hero__inner { max-width: 760px; }
.home-hero h1 { margin-bottom: 0.4em; color: var(--c-white); }
.home-hero p {
	font-size: 1.25rem;
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 1.8em;
	max-width: 620px;
}

/* Two-column intro */
.split {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(32px, 6vw, 72px);
	align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	width: 100%;
	object-fit: cover;
}
.split__placeholder {
	border-radius: var(--radius);
	background: var(--c-light);
	min-height: 360px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--c-dark);
	font-family: var(--font-head);
	font-weight: 600;
}
.split__body h2 { margin-bottom: 0.6em; }
.split__body .btn { margin-top: 1em; }

/* =========================================================
   Services preview cards
   ========================================================= */
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { font-size: 1.12rem; }

.card-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}
.card-grid .card { flex: 1 1 280px; max-width: 326px; }

.card {
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 32px 26px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-soft);
	border-color: var(--c-mid);
}
.card__icon {
	width: 54px; height: 54px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 14px;
	background: var(--c-blue-tint);
	color: var(--c-blue);
	margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.4em; font-size: 1.18rem; }
.card p { font-size: 0.98rem; }

.center-cta { text-align: center; margin-top: clamp(36px, 5vw, 52px); }

/* =========================================================
   Philosophy quote
   ========================================================= */
.quote-block { max-width: 860px; margin-inline: auto; text-align: center; }
.quote-block h2 {
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	margin-bottom: 0.7em;
}
.quote-block p { font-size: 1.18rem; }
.quote-block .quote-attr {
	margin-top: 1.6em;
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--c-primary);
	font-size: 1.05rem;
}

/* =========================================================
   CTA strip
   ========================================================= */
.cta-strip { text-align: center; }
.cta-strip h2 { margin-bottom: 0.4em; }
.cta-strip p {
	max-width: 620px;
	margin: 0 auto 1.6em;
	font-size: 1.15rem;
	color: rgba(255,255,255,0.92);
}

/* =========================================================
   About page
   ========================================================= */
.bio__media { text-align: center; }
.bio__photo {
	width: 300px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: var(--shadow-soft);
	margin-inline: auto;
}
.bio__name { margin-bottom: 0.1em; }
.bio__creds {
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--c-primary);
	margin-bottom: 1.4em;
	display: block;
}

/* Credentials callout */
.creds-box {
	background: var(--c-tint);
	border-radius: var(--radius);
	padding: clamp(28px, 4vw, 44px);
}
.creds-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 32px;
}
.creds-grid h3 {
	font-size: 1.1rem;
	margin-bottom: 0.6em;
	color: var(--c-dark);
}
.creds-grid ul { list-style: none; padding: 0; margin: 0; }
.creds-grid li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 0.7em;
	line-height: 1.5;
}
.creds-grid li::before {
	content: '';
	position: absolute;
	left: 0; top: 9px;
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--c-mid);
}

/* Contact mini block */
.contact-mini {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	margin-bottom: 1.6em;
}
.contact-mini a {
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--c-dark);
}
.contact-mini a:hover { color: var(--c-primary); }

/* =========================================================
   Services page — alternating rows
   ========================================================= */
.service-row {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 28px;
	align-items: flex-start;
	padding: clamp(26px, 4vw, 38px);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-white);
	margin-bottom: 22px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-row:hover { box-shadow: var(--shadow-soft); border-color: var(--c-mid); }
.service-row__icon {
	width: 72px; height: 72px;
	flex: none;
	display: flex; align-items: center; justify-content: center;
	border-radius: 16px;
	background: var(--c-blue-tint);
	color: var(--c-blue);
}
.service-row__icon svg { width: 34px; height: 34px; }
.service-row h3 { margin-bottom: 0.45em; }
.service-row em { color: var(--c-dark); }

/* Who I work with callout */
.callout {
	background: var(--c-tint);
	border-radius: var(--radius);
	padding: clamp(32px, 5vw, 56px);
	text-align: center;
	max-width: 820px;
	margin-inline: auto;
}
.callout h2 { margin-bottom: 0.4em; }
.callout p { font-size: 1.18rem; margin-bottom: 0; }

/* Conditions two-column */
.conditions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(28px, 5vw, 56px);
	margin-top: clamp(28px, 4vw, 44px);
}
.conditions-grid h3 {
	font-size: 1.2rem;
	padding-bottom: 0.5em;
	border-bottom: 2px solid var(--c-light);
	margin-bottom: 0.9em;
}
.conditions-grid ul { list-style: none; padding: 0; margin: 0; }
.conditions-grid li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 0.6em;
	line-height: 1.5;
}
.conditions-grid li::before {
	content: '';
	position: absolute;
	left: 0; top: 9px;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--c-primary);
}

/* =========================================================
   Insurance page
   ========================================================= */
.insurance-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}
.insurance-card {
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: clamp(26px, 4vw, 38px);
	background: var(--c-white);
}
.insurance-card h3 {
	margin-bottom: 0.7em;
	padding-bottom: 0.5em;
	border-bottom: 2px solid var(--c-light);
}
.insurance-card h4 {
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-primary);
	margin: 1.1em 0 0.4em;
}
.insurance-card ul { list-style: none; padding: 0; margin: 0; }
.insurance-card li {
	padding-left: 24px;
	position: relative;
	margin-bottom: 0.5em;
}
.insurance-card li::before {
	content: '';
	position: absolute;
	left: 0; top: 9px;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--c-mid);
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}
.contact-info h3 { margin-bottom: 0.8em; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.6em; }
.contact-list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 1em;
	line-height: 1.5;
}
.contact-list .ci-icon {
	flex: none;
	color: var(--c-blue);
	margin-top: 2px;
}
.contact-list .ci-icon svg { width: 22px; height: 22px; }
.contact-list a { font-weight: 600; color: var(--c-dark); }
.contact-list a:hover { color: var(--c-primary); }

.contact-note {
	font-size: 0.92rem;
	color: #6b6b6b;
	margin-top: 1em;
}
.schedule-note {
	background: var(--c-tint);
	border-radius: var(--radius-sm);
	padding: 18px 22px;
	font-size: 0.96rem;
}

.map-embed { margin-top: clamp(40px, 6vw, 64px); }
.map-embed iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: var(--radius);
}

/* Contact Form 7 styling (graceful even before plugin setup) */
.wpcf7-form p { margin-bottom: 1.1em; }
.wpcf7-form label {
	display: block;
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--c-dark);
	margin-bottom: 6px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
	width: 100%;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--c-body);
	padding: 13px 16px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(46, 125, 139, 0.15);
}
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form input[type="submit"] {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1rem;
	color: var(--c-white);
	background: var(--c-primary);
	border: 2px solid var(--c-primary);
	border-radius: var(--radius);
	padding: 15px 32px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}
.wpcf7-form input[type="submit"]:hover { background: var(--c-secondary); border-color: var(--c-secondary); transform: translateY(-2px); }

.cf7-placeholder {
	border: 1px dashed var(--c-mid);
	background: var(--c-tint);
	border-radius: var(--radius);
	padding: 28px;
	color: var(--c-dark);
}

/* =========================================================
   Generic page / posts
   ========================================================= */
.entry-content { max-width: var(--maxw-narrow); margin-inline: auto; }
.entry-content img { border-radius: var(--radius); }
.entry-title { margin-bottom: 0.4em; }
.post-meta { color: #6b6b6b; font-size: 0.92rem; margin-bottom: 1.5em; }

.posts-list article {
	padding-bottom: 2em;
	margin-bottom: 2em;
	border-bottom: 1px solid var(--c-border);
}

/* 404 */
.error-404 { text-align: center; }
.error-404 .big { font-size: clamp(4rem, 12vw, 8rem); color: var(--c-light); font-family: var(--font-head); font-weight: 800; line-height: 1; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	background: var(--c-dark);
	color: rgba(255,255,255,0.85);
	padding-block: clamp(48px, 6vw, 72px) 0;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1.4fr;
	gap: clamp(32px, 5vw, 60px);
	padding-bottom: clamp(40px, 5vw, 56px);
}
.site-footer h3 {
	color: var(--c-white);
	font-size: 1.05rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 1.2em;
}
.footer-logo .site-logo__name { color: var(--c-white); font-size: 1.6rem; }
.footer-logo .site-logo__sub { color: var(--c-light); }
.footer-tagline { margin-top: 1.1em; color: rgba(255,255,255,0.78); max-width: 320px; }

.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 0.7em; }
.footer-menu a { color: rgba(255,255,255,0.85); font-weight: 500; }
.footer-menu a:hover { color: var(--c-light); }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: 0.8em; line-height: 1.5; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: var(--c-light); }

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.15);
	padding-block: 22px;
	text-align: center;
	font-size: 0.88rem;
	color: rgba(255,255,255,0.65);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
	.contact-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.nav-toggle { display: flex; }

	.main-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--c-white);
		border-bottom: 1px solid var(--c-border);
		box-shadow: var(--shadow-soft);
		padding: 8px 0 16px;
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}
	.main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

	.nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}
	.nav-menu li { border-bottom: 1px solid var(--c-border); }
	.nav-menu li:last-child { border-bottom: 0; }
	.nav-menu a {
		display: block;
		padding: 14px 24px;
	}
	.nav-menu a::after { display: none; }

	.header-phone { margin: 12px 24px 0; }
}

@media (max-width: 720px) {
	body { font-size: 16px; }

	.split,
	.split--reverse { grid-template-columns: 1fr; }
	.split--reverse .split__media { order: 0; }
	.split__media { max-width: 420px; margin-inline: auto; }

	.service-row { grid-template-columns: 1fr; gap: 18px; }

	.footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
