/*
Theme Name: Serene Imaging
Theme URI: https://example.com/serene-imaging
Author: Your Name
Author URI: https://example.com
Description: A calm, editable one-page theme for a medical imaging or breast health center. Every homepage section (hero, mission, how it works, who it helps, care team, patient experience, comparison table, contact form) is edited in Appearance → Customize. All content and images are placeholders for you to replace.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serene-imaging
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready, health
*/

/* ---------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------- */
:root {
	--primary: #1f4e5f;
	--accent: #c8826b;

	--primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
	--primary-tint: color-mix(in srgb, var(--primary) 8%, #fff);
	--accent-tint: color-mix(in srgb, var(--accent) 14%, #fff);

	--bg: #faf7f3;
	--surface: #ffffff;
	--soft: #f2ece4;
	--ink: #1d2a30;
	--muted: #5b6a70;
	--line: #e6dfd6;

	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 20px;
	--radius-sm: 12px;
	--shadow: 0 10px 30px rgba(29, 42, 48, 0.08);
	--container: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: var(--ink);
}
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--accent); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000; padding: 10px 16px;
	background: #fff; color: var(--primary); border-radius: 8px; box-shadow: var(--shadow);
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; }

.eyebrow {
	font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--accent); margin: 0 0 0.9rem;
}

/* ---------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------- */
.btn {
	display: inline-block; padding: 0.85em 1.6em; border-radius: 999px;
	font: 600 0.95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
	border: 2px solid transparent; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 85%, #000); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--small { padding: 0.7em 1.3em; font-size: 0.88rem; }

/* ---------------------------------------------------------------
 * Header
 * ------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(250, 247, 243, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(29, 42, 48, 0.05); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.site-brand img, .custom-logo { max-height: 52px; width: auto; }
.site-brand__text {
	font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
	color: var(--ink); text-decoration: none;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav-list a { color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.nav-list a:hover,
.nav-list .current-menu-item > a { color: var(--accent); }
.nav-list li { position: relative; }
.nav-list .sub-menu {
	list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: -10px;
	min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
	box-shadow: var(--shadow); display: none;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu { display: block; }
.nav-list .sub-menu a { display: block; padding: 8px 12px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
		gap: 16px; padding: 20px 24px 28px; background: var(--bg); border-bottom: 1px solid var(--line);
		display: none;
	}
	.site-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; gap: 14px; }
	.nav-list .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 4px 0 0 14px; background: transparent; }
	.site-nav .btn { text-align: center; }
}

/* ---------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------- */
.hero { padding: 72px 0 0; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 0.35em; }
.hero__text { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero__note { color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__media { margin: 0; }
.hero__media figcaption, figure figcaption {
	font-size: 0.85rem; color: var(--muted); margin-top: 10px;
}

.stats {
	list-style: none; margin: 64px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr);
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.stats__item { padding: 28px 24px; border-left: 1px solid var(--line); }
.stats__item:first-child { border-left: 0; }
.stats__value { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--primary); line-height: 1.1; margin-bottom: 6px; }
.stats__label { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

@media (max-width: 900px) {
	.hero { padding-top: 40px; }
	.hero__grid { grid-template-columns: 1fr; gap: 36px; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stats__item:nth-child(3) { border-left: 0; }
	.stats__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------------------------------------------------------------
 * Media helpers
 * ------------------------------------------------------------- */
.media {
	position: relative; overflow: hidden; border-radius: var(--radius); background: var(--soft);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }

.img-placeholder {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background:
		radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
		radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 55%),
		var(--soft);
	text-align: center; padding: 16px; color: var(--muted); font-size: 0.82rem;
}

/* ---------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------- */
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.section-lede { font-size: 1.12rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__copy { order: 2; }
.split--reverse .split__media { order: 1; }
.split__media { margin: 0; }
.prose p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.section { padding: 64px 0; }
	.split { grid-template-columns: 1fr; gap: 36px; }
	.split--reverse .split__copy, .split--reverse .split__media { order: initial; }
}
@media (max-width: 640px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.feature-pair { margin-top: 72px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature .media { border-radius: 0; }
.feature__body { padding: 28px; }
.feature__body p:last-child { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------
 * Cards
 * ------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card--numbered { position: relative; padding-top: 56px; }
.card__num { position: absolute; top: 24px; left: 32px; font-family: var(--font-display); font-size: 1rem; color: var(--accent); }
.card--media { padding: 0; overflow: hidden; }
.card--media .media { border-radius: 0; }
.card__body { padding: 24px 24px 28px; }
.card__body h3 { font-size: 1.2rem; }
.card__body p { font-size: 0.95rem; }

.card--tinted-1 { background: var(--surface); }
.card--tinted-2 { background: var(--primary); border-color: var(--primary); }
.card--tinted-2, .card--tinted-2 h3, .card--tinted-2 li { color: #fff; }
.card--tinted-2 .eyebrow { color: color-mix(in srgb, var(--accent) 55%, #fff); }

.callout {
	background: var(--primary); color: #fff; border-radius: var(--radius);
	padding: 40px 44px; margin-bottom: 24px;
}
.callout h3 { color: #fff; }
.callout p { margin: 0; font-size: 1.1rem; color: rgba(255, 255, 255, 0.88); }
.callout em { color: color-mix(in srgb, var(--accent) 55%, #fff); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0; }
.facts__item { border-top: 2px solid var(--accent); padding-top: 14px; }
.facts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--muted); }
.ticks li::before {
	content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px;
	border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
	transform: rotate(-45deg) translateY(-50%);
}
.card--tinted-2 .ticks li::before { border-color: color-mix(in srgb, var(--accent) 55%, #fff); }

/* ---------------------------------------------------------------
 * Steps and quotes
 * ------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; }
.steps li {
	counter-increment: step; position: relative; padding: 14px 0 14px 56px;
	border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
	content: counter(step); position: absolute; left: 0; top: 12px; width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center; border-radius: 50%;
	background: var(--accent-tint); color: var(--accent); font-weight: 600; font-size: 0.9rem;
}

.quotes { margin-top: 72px; }
.quote {
	margin: 0; padding: 32px; background: var(--primary-tint); border-radius: var(--radius);
}
.quote p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; }
.quote cite { font-style: normal; font-size: 0.88rem; color: var(--muted); }

/* ---------------------------------------------------------------
 * Comparison table
 * ------------------------------------------------------------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; text-align: center; }
.compare th, .compare td { padding: 18px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.compare thead th, .compare thead td { border-top: 0; vertical-align: bottom; font-family: var(--font-display); font-weight: 500; }
.compare tbody th { text-align: left; font-weight: 600; font-family: var(--font-body); font-size: 0.95rem; }
.compare .is-featured { background: var(--accent-tint); }
.compare__thumb { width: 84px; margin: 0 auto 10px; border-radius: var(--radius-sm); }

.dots { display: inline-flex; gap: 5px; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.dot.is-on { background: var(--primary); }
.dots__label { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.dots--sm .dot { width: 8px; height: 8px; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin: 24px 0 0; padding: 0; font-size: 0.85rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------
 * Contact / dark section
 * ------------------------------------------------------------- */
.section--dark { background: var(--primary-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-lede { color: rgba(255, 255, 255, 0.78); }
.section--dark em { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.section--dark a { color: #fff; }

.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; gap: 40px; } }
.cta__details { list-style: none; margin: 28px 0 0; padding: 0; color: rgba(255, 255, 255, 0.85); }
.cta__details li { margin-bottom: 4px; }
.cta__hours:first-of-type { margin-top: 18px; }
.text-link { font-weight: 600; }

.cta__form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form__row { margin-bottom: 18px; }
.form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
	width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
	font: inherit; background: var(--bg); color: var(--ink);
}
.form input:focus, .form textarea:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.form__trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form__small { font-size: 0.8rem; color: var(--muted); margin: 14px 0 0; }

.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.95rem; }
.notice--ok { background: #e7f4ec; color: #1f5a37; }
.notice--error { background: #fbe9e7; color: #8a2d1f; }

/* ---------------------------------------------------------------
 * Inner pages and posts
 * ------------------------------------------------------------- */
.page-hero { padding: 72px 0 40px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero__title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; }
.entry__thumb { margin-bottom: 32px; }

.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 1.9rem; margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote { margin: 1.6em 0; padding: 0 0 0 1.4em; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.2rem; }
.entry-content .alignwide { max-width: min(1100px, 100vw - 48px); margin-left: auto; margin-right: auto; }
.entry-content .alignfull { max-width: none; }
.wp-block-image img { border-radius: var(--radius-sm); }
.wp-block-button__link { border-radius: 999px; }

.post-card { padding: 36px 0; border-bottom: 1px solid var(--line); }
.post-card__thumb { display: block; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; }
.post-card__title { font-size: 1.7rem; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--accent); }

.pagination .nav-links, .post-navigation .nav-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }

.search-form { display: flex; gap: 10px; margin: 20px 0; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.search-submit { padding: 12px 22px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; }

/* ---------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
.site-footer { background: #14262d; color: rgba(255, 255, 255, 0.78); padding: 72px 0 0; font-size: 0.93rem; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__brand { font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.footer-heading { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 6px; }
.widget-title { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.site-footer__bottom { margin-top: 48px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.site-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
 * Scroll reveal (enabled only when JS is running)
 * ------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.btn { transition: none; }
}
