/*
Theme Name: CalmPace Wellness
Description: Custom theme for CalmPace Wellness psychology practice.
Version: 1.0.0
Text Domain: calmpace
*/

:root {
	--cream: #f8f5ef;
	--cream-2: #f1ece1;
	--ink: #0f2a30;
	--text: #1d2c2f;
	--sage: #6b7c6b;
	--sage-tint: #e4e8df;
	--olive: #7d8467;
	--copper: #b8763e;
	--orange: #e8470f;
	--orange-soft: #fde7d9;
	--line: #e7e1d4;
	--accent: var(--orange);
	--btn: var(--orange);
	--serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pad-x: max(24px, calc((100vw - 1200px) / 2));
}
body.cpw-about { --accent: var(--copper); --btn: var(--sage); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; background: #fff; padding: 8px 14px; z-index: 100; left: 8px; top: 8px; }
.container { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1400px; padding: 0 16px; }

/* Shared bits */
.eyebrow { font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin: 0 0 18px; font-weight: 500; }
.eyebrow--line { display: flex; align-items: center; gap: 14px; }
.eyebrow--line::after { content: ''; width: 36px; height: 2px; background: var(--accent); }
.lead { font-size: 19px; line-height: 1.6; }
.small { font-size: 14.5px; }
.rule { display: block; width: 56px; height: 2px; background: var(--accent); margin: 22px 0; }
.rule--center { margin-left: auto; margin-right: auto; }
.rule--sm { width: 28px; margin-top: 16px; margin-bottom: 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; background: var(--btn); color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; transition: filter .2s, transform .2s; }
.btn:hover { filter: brightness(1.08); }
.text-link { text-decoration: none; font-weight: 500; color: var(--ink); }
.text-link:hover { color: var(--accent); }

/* Header */
.site-header { background: var(--cream); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.brand img, .custom-logo { height: 52px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; }
.primary-nav .menu > li { position: relative; }
.primary-nav a { text-decoration: none; font-size: 15.5px; color: var(--ink); display: inline-block; padding: 26px 0; position: relative; }
.primary-nav .menu > li > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.primary-nav .menu > li:hover > a::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after,
.primary-nav .current_page_item > a::after { transform: scaleX(1); }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -16px; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(15,42,48,.08); display: none; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: 10px 18px; display: block; }
.header-cta { padding: 12px 24px; font-size: 15px; white-space: nowrap; color: #fff !important; }
.primary-nav .header-cta { padding: 12px 24px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; margin: auto; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }

/* Split hero */
.split-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; background: linear-gradient(100deg, var(--cream-2), var(--cream)); }
.split-hero__text { padding: 64px 56px 64px var(--pad-x); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.split-hero h1 { font-size: clamp(42px, 5.2vw, 68px); margin-bottom: 22px; }
.split-hero .lead { max-width: 30em; }
.split-hero__media { position: relative; min-height: 320px; }
.split-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-hero--home { grid-template-columns: 0.93fr 1.07fr; }
.split-hero--home .split-hero__media img { object-position: 50% 20%; }
.split-hero--page { grid-template-columns: 0.95fr 1.05fr; }
.split-hero--home .btn { margin-top: 12px; }

/* About (home) */
.about { padding: 80px 0 56px; scroll-margin-top: 20px; }
.about__grid { display: grid; grid-template-columns: 1fr 1.9fr; gap: 72px; }
.about__name { font-size: clamp(42px, 5vw, 62px); margin-bottom: 14px; }
.about__role { font-size: 17px; color: var(--ink); margin: 0; }
.about__leaf { width: 230px; margin-top: 56px; mix-blend-mode: multiply; }
.about__body h3 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 28px; max-width: 18em; }
.about__body p { max-width: 38em; }
.quote-box { display: flex; align-items: center; gap: 22px; background: var(--cream-2); border-radius: 8px; padding: 22px 28px; margin: 28px 0; max-width: 38em; }
.quote-box__icon { color: var(--sage); flex: none; }
.quote-box__icon svg { width: 38px; height: 38px; }
.quote-box p { margin: 0; border-left: 2px solid var(--copper); padding-left: 22px; }

/* Home service cards */
.home-cards { padding: 8px 0 8px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.svc-card { background: var(--sage-tint); text-align: center; padding: 40px 36px 36px; }
.svc-card:nth-child(2) { background: var(--cream-2); }
.svc-card h3 { font-size: 27px; }
.svc-card .rule { width: 32px; margin: 14px auto 18px; }
.svc-card p { font-size: 15.5px; }
.svc-card__icon { width: 68px; height: 68px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; margin: 0 auto 18px; background: rgba(255,255,255,.4); }
.svc-card__icon svg { width: 36px; height: 36px; }
.svc-card__icon--sage { color: var(--sage); }
.svc-card__icon--copper { color: var(--copper); }

/* Home resources teaser */
.resources-teaser { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream-2); margin-top: 8px; }
.resources-teaser__media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.resources-teaser__text { position: relative; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; overflow: hidden; }
.resources-teaser h2 { font-size: clamp(34px, 3.6vw, 46px); margin-bottom: 18px; }
.teaser-leaf { position: absolute; right: -10px; bottom: -10px; width: 150px; mix-blend-mode: multiply; opacity: .7; transform: scaleX(-1); pointer-events: none; }

/* Services */
.areas-section { padding: 72px 0 40px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .rule { margin-top: 0; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(38px, 4.4vw, 54px); margin-bottom: 16px; }
.areas { display: grid; }
.areas--3 { grid-template-columns: repeat(3, 1fr); padding-bottom: 36px; }
.areas--4 { grid-template-columns: repeat(4, 1fr); padding-top: 36px; border-top: 1px solid var(--line); }
.area { text-align: center; padding: 0 26px; }
.area + .area { border-left: 1px solid var(--line); }
.area h3 { font-size: 24px; margin-bottom: 8px; }
.area p { font-size: 15.5px; line-height: 1.55; margin: 0; }
.area__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; margin: 0 auto 16px; }
.area__icon svg { width: 44px; height: 44px; }
.area__icon--sage { background: var(--sage-tint); color: var(--ink); }
.areas__more { text-align: center; margin: 44px 0 0; }

/* CTA band (services) */
.cta-band { position: relative; min-height: 300px; background: linear-gradient(100deg, #f6ead9, #f2e1cc); overflow: hidden; display: flex; align-items: center; }
.cta-band__media { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%); }
.cta-band__inner { position: relative; padding-top: 56px; padding-bottom: 56px; }
.cta-band__text { max-width: 480px; }
.cta-band h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 16px; }

/* ADHD page */
.adhd-about { padding: 72px 0 24px; }
.adhd-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.adhd-about h2 { font-size: clamp(38px, 4.4vw, 54px); margin-bottom: 22px; }
.adhd-about__art img { width: 100%; max-width: 520px; margin-left: auto; mix-blend-mode: multiply; }
.included { padding: 24px 0 72px; }
.included .rule { margin-top: 0; }
.included__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.included__item { text-align: center; padding: 0 22px; }
.included__item + .included__item { border-left: 1px solid var(--line); }
.included__item h3 { font-size: 20px; margin-bottom: 8px; }
.included__item p { font-size: 15px; line-height: 1.55; margin: 0; }
.adhd-bottom { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--cream-2); min-height: 340px; }
.adhd-bottom__media { position: relative; background: var(--cream-2); }
.adhd-bottom__media img { width: 100%; height: 100%; object-fit: cover; clip-path: ellipse(92% 100% at 0% 50%); }
.adhd-bottom__text { padding: 56px var(--pad-x) 56px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.adhd-bottom h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 16px; }

/* Contact page */
.contact-info { padding: 28px 0 56px; }
.info-cards { display: grid; grid-template-columns: 0.8fr 1.1fr 1.3fr; gap: 14px; margin-bottom: 28px; }
.info-card { background: var(--cream-2); border-radius: 8px; padding: 24px 26px; display: flex; align-items: center; gap: 18px; }
.info-card__icon { width: 54px; height: 54px; border-radius: 50%; background: #f26a0f; color: #fff; display: grid; place-items: center; flex: none; }
.info-card__icon svg { width: 26px; height: 26px; }
.info-card__label { display: block; font-size: 15.5px; }
.info-card__value { font-size: 21px; font-weight: 700; color: var(--ink); text-decoration: none; display: block; line-height: 1.3; }
.info-card__value--sm { font-size: 16.5px; overflow-wrap: anywhere; }
.info-card__addr { font-size: 14.5px; line-height: 1.45; display: block; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book-card, .visit-card { background: #fbf9f4; border: 1px solid #efe9dd; border-radius: 8px; position: relative; overflow: hidden; }
.book-card { padding: 64px 44px; display: flex; flex-direction: column; justify-content: center; }
.book-card__leaf { position: absolute; top: 0; left: 0; width: 200px; mix-blend-mode: multiply; pointer-events: none; }
.book-card__text { font-family: var(--serif); font-size: clamp(26px, 3.1vw, 40px); line-height: 1.2; color: var(--ink); margin: 120px 0 0; overflow-wrap: anywhere; position: relative; }
.book-card__text a { text-decoration: none; }
.book-card__text a:hover { color: var(--accent); }
.visit-card { padding: 36px 40px; }
.visit-card h2 { font-size: 42px; margin-bottom: 14px; }
.map { margin: 22px 0 26px; border-radius: 6px; overflow: hidden; background: var(--cream-2); }
.map iframe { width: 100%; height: 270px; border: 0; display: block; }
.hours { display: flex; align-items: center; gap: 18px; }

/* Resources / blog / generic pages */
.page-hero { padding: 72px 0 40px; background: linear-gradient(100deg, var(--cream-2), var(--cream)); }
.page-hero h1 { font-size: clamp(40px, 5vw, 62px); margin-bottom: 18px; }
.page-hero .lead { max-width: 34em; }
.posts { padding: 56px 0 80px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fbf9f4; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.post-card__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card__body { padding: 24px; }
.post-card h2 { font-size: 24px; margin: 6px 0 12px; }
.post-card h2 a { text-decoration: none; }
.empty { text-align: center; font-size: 19px; }
.pagination { margin-top: 40px; text-align: center; }
.prose { max-width: 760px; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose img { border-radius: 8px; margin: 0 0 28px; }

/* Footer */
.site-footer { background: var(--ink); color: #dfe6e2; padding: 28px 0; font-size: 14.5px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* Tablet & mobile */
@media (max-width: 1000px) {
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; border-top: 1px solid var(--line); box-shadow: 0 14px 24px rgba(15,42,48,.08); }
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav a { padding: 14px 0; display: block; }
	.primary-nav .menu > li > a::after { display: none; }
	.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--accent); }
	.primary-nav .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent; }
	.header-cta { align-self: flex-start; margin-top: 12px; }
}
@media (max-width: 860px) {
	body { font-size: 16.5px; }
	.split-hero, .split-hero--home, .split-hero--page { grid-template-columns: 1fr; min-height: 0; }
	.split-hero__text { padding: 48px 24px; }
	.split-hero__media { min-height: 0; aspect-ratio: 4/3; }
	.about { padding: 56px 0 40px; }
	.about__grid, .adhd-about__grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
	.about__leaf { display: none; }
	.cards-3, .post-grid, .info-cards { grid-template-columns: 1fr; }
	.resources-teaser, .adhd-bottom { grid-template-columns: 1fr; }
	.resources-teaser__media img { min-height: 240px; max-height: 320px; }
	.resources-teaser__text, .adhd-bottom__text { padding: 40px 24px; }
	.adhd-bottom__media { aspect-ratio: 4/3; }
	.adhd-bottom__media img { clip-path: none; }
	.areas--3, .areas--4 { grid-template-columns: 1fr; }
	.area { padding: 24px 0; }
	.area + .area { border-left: 0; border-top: 1px solid var(--line); }
	.areas--3 { padding-bottom: 0; }
	.areas--4 { padding-top: 0; border-top: 1px solid var(--line); }
	.included__grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
	.included__item:nth-child(3) { border-left: 0; }
	.adhd-about__art img { margin: 0 auto; }
	.cta-band { flex-direction: column; align-items: stretch; }
	.cta-band__media { position: relative; width: 100%; aspect-ratio: 16/9; order: 2; }
	.cta-band__media img { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%); mask-image: linear-gradient(to bottom, transparent, #000 35%); }
	.cta-band__inner { padding-top: 48px; padding-bottom: 8px; }
	.book-card { padding: 40px 28px; }
	.book-card__text { margin-top: 80px; }
	.visit-card { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* Foliage accents from the designs */
.foliage { position: absolute; pointer-events: none; mix-blend-mode: multiply; z-index: 0; max-width: none; }
.fol--strip { left: 0; top: 0; height: 100%; width: auto; }
.fol--tl { left: 0; top: 0; width: 60px; }
.fol--bl { left: 0; bottom: 0; width: 130px; }
.fol--wide { left: 0; bottom: 0; width: min(520px, 100%); height: auto; }
.split-hero__text { position: relative; overflow: hidden; }
.split-hero__text > :not(.foliage) { position: relative; z-index: 1; }
.cta-band { position: relative; }
.cta-band__inner { z-index: 1; }

/* Welcome (brand cover) page */
body.welcome-page { margin: 0; background: #f4ece0; }
.welcome { display: block; width: 100%; height: 100vh; }
.welcome img { width: 100%; height: 100%; object-fit: cover; }

/* Home = brand cover image */
.home-cover { width: 100%; height: calc(100vh - 80px); min-height: 360px; background: #f4ece0; }
.home-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Logo lockup */
.brand-wrap { flex: none; }
.brand { display: inline-block; text-decoration: none; }
.primary-nav a.brand { padding: 0; }
.lockup { display: inline-flex; align-items: center; gap: .42em; font-size: 23px; color: #0a0a0a; line-height: 1; }
.lockup__mark { height: 2.45em; width: auto; flex: none; }
.lockup__text { display: flex; flex-direction: column; }
.lockup__name { font-family: var(--sans); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.lockup__tag { display: flex; align-items: center; white-space: nowrap; font-family: var(--sans); font-size: .34em; letter-spacing: .22em; text-transform: uppercase; color: #3a3a3a; margin-top: 1.1em; font-weight: 500; }
.lockup__tag i { width: 4px; height: 4px; border-radius: 50%; background: #e0301e; margin: 0 1.1em; display: inline-block; flex: none; }

/* Contact page bottom band (matches design) */
.contact-band { position: relative; overflow: hidden; height: clamp(250px, 25.6vw, 340px); background: linear-gradient(100deg, #fdf0e0 0%, #f4e7d8 55%, #eee3d8 100%); }
.band-foliage { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: none; -webkit-mask-image: linear-gradient(to right, #000 70%, transparent); mask-image: linear-gradient(to right, #000 70%, transparent); }
.contact-band__tag { position: absolute; left: 28%; top: 22%; z-index: 2; }
.contact-band__tag p { font-family: var(--serif); font-size: clamp(26px, 3.1vw, 40px); line-height: 1.2; color: var(--ink); margin: 0; }
.contact-band__tag .rule { width: clamp(48px, 6.4vw, 80px); margin: clamp(16px, 2.6vw, 34px) 0 0; background: #f04e17; }
.contact-band__logo { position: absolute; left: 59.5%; top: 11%; z-index: 2; }
.contact-band__logo .lockup { font-size: clamp(18px, 2.75vw, 36px); }
.band-shapes { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
@media (max-width: 860px) {
	.contact-band { height: auto; padding: 40px 24px 150px; }
	.band-foliage { opacity: .5; }
	.contact-band__tag, .contact-band__logo { position: relative; left: auto; top: auto; }
	.contact-band__logo { margin-top: 32px; }
	.contact-band__logo .lockup { font-size: 22px; }
}

html, body { direction: ltr; }
body { text-align: left; }
.lockup { direction: ltr; unicode-bidi: isolate; }
.lockup__name { unicode-bidi: isolate; }

/* Tagline under the logo: same width as the "CalmPace Wellness" text above it */
.lockup__text { align-items: stretch; }
.lockup__tag { width: 0; min-width: 100%; justify-content: space-between; font-size: .3em; letter-spacing: .14em; margin-top: .65em; }
.lockup__tag i { margin: 0; }

/* Home page: header shows only the C mark */
body.cpw-home .site-header .lockup__name { display: none; }
