/*
Theme Name: ClinicPress
Theme URI: https://hollis-creek.example/clinicpress
Author: Northfield Theme Co. (fictional)
Description: A classic theme for small medical and dental practices: header with appointment button, service and team sections, hours and location. Part of the Hollis Creek repair case study; every name is fictional.
Version: 2.4.1
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: clinicpress
*/

:root {
	--cp-teal: #0e5f5c;
	--cp-teal-deep: #0a4442;
	--cp-sage: #e4ede8;
	--cp-cream: #fbf8f3;
	--cp-ink: #1d2a2e;
	--cp-muted: #4a5a5e;
	--cp-line: #cbd9d3;
	--cp-cta: #b2412a;
	--cp-cta-deep: #8f3220;
	--cp-white: #fff;
	--cp-radius: 6px;
	--cp-wrap: 1120px;
}

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

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

body {
	margin: 0;
	background: var(--cp-cream);
	color: var(--cp-ink);
	font-family: "Open Sans", "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
}

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

a {
	color: var(--cp-teal);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--cp-teal-deep);
}

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

h1,
h2,
h3 {
	line-height: 1.2;
	color: var(--cp-teal-deep);
	margin: 0 0 0.5em;
}

h1 {
	font-size: clamp(1.9rem, 4vw, 2.75rem);
	font-weight: 700;
}

h2 {
	font-size: clamp(1.45rem, 3vw, 1.9rem);
	font-weight: 700;
}

h3 {
	font-size: 1.2rem;
	font-weight: 600;
}

p {
	margin: 0 0 1em;
}

.wrap {
	width: 100%;
	max-width: var(--cp-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	background: var(--cp-white);
	color: var(--cp-teal-deep);
	padding: 10px 16px;
	border-radius: var(--cp-radius);
	font-weight: 600;
}

.skip-link:focus {
	top: 12px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Demo notice, on every page */
.demo-notice {
	margin: 0;
	padding: 8px 20px;
	background: var(--cp-teal-deep);
	color: var(--cp-white);
	font-size: 0.875rem;
	text-align: center;
}

.footer-legal .demo-notice {
	background: none;
	color: inherit;
	padding: 0;
	text-align: left;
	margin-bottom: 0.5em;
}

/* Utility bar */
.utility-bar {
	background: var(--cp-sage);
	font-size: 0.9rem;
}

.utility-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	align-items: center;
	min-height: 40px;
}

.utility-phone {
	font-weight: 700;
	text-decoration: none;
}

.utility-address {
	color: var(--cp-muted);
}

.lang-switch {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 2px 12px;
	border: 1px solid var(--cp-teal);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}

/* Header */
.site-header {
	background: var(--cp-white);
	border-bottom: 1px solid var(--cp-line);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--cp-teal-deep);
	text-decoration: none;
	margin-right: auto;
}

.brand-name {
	font-weight: 700;
	font-size: 1.3rem;
	line-height: 1.1;
}

.brand-sub {
	display: block;
	font-weight: 400;
	font-size: 0.85rem;
	color: var(--cp-muted);
	letter-spacing: 0.02em;
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
}

.main-nav a {
	display: block;
	padding: 8px 10px;
	color: var(--cp-ink);
	text-decoration: none;
	font-weight: 600;
	border-radius: var(--cp-radius);
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
	background: var(--cp-sage);
	color: var(--cp-teal-deep);
}

.menu-toggle {
	font: inherit;
	font-weight: 600;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid var(--cp-teal);
	border-radius: var(--cp-radius);
	background: var(--cp-white);
	color: var(--cp-teal-deep);
	cursor: pointer;
}

/* Buttons */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 2px solid var(--cp-teal);
	border-radius: var(--cp-radius);
	background: var(--cp-white);
	color: var(--cp-teal-deep);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.button-cta {
	background: var(--cp-cta);
	border-color: var(--cp-cta);
	color: var(--cp-white);
}

.button-cta:hover {
	background: var(--cp-cta-deep);
	border-color: var(--cp-cta-deep);
	color: var(--cp-white);
}

/* Content pages */
.site-main:focus {
	outline: none;
}

.content-wrap {
	padding-top: 40px;
	padding-bottom: 64px;
}

.page-header {
	margin-bottom: 24px;
}

.entry-content {
	max-width: 760px;
}

.entry-content > * + h2 {
	margin-top: 1.6em;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
	background: var(--cp-white);
}

.entry-content th,
.entry-content td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--cp-line);
	vertical-align: top;
}

.entry-content th {
	color: var(--cp-teal-deep);
}

.entry-meta {
	color: var(--cp-muted);
	font-size: 0.9rem;
}

.post-summary {
	padding: 20px 0;
	border-bottom: 1px solid var(--cp-line);
}

.post-summary-title {
	font-size: 1.25rem;
	margin-bottom: 0.2em;
}

.post-summary-title a {
	text-decoration: none;
}

.post-summary-title a:hover {
	text-decoration: underline;
}

/* Footer */
.site-footer {
	background: var(--cp-teal-deep);
	color: #e8f0ed;
	padding: 48px 0 24px;
	font-size: 0.95rem;
}

.site-footer a {
	color: var(--cp-white);
}

.footer-inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
}

.footer-name {
	font-weight: 700;
	font-size: 1.1rem;
}

.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav li {
	margin-bottom: 6px;
}

.footer-legal {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 0.85rem;
}

.footer-legal p {
	margin-bottom: 0.4em;
}

/* The toggle exists only when the script can run; the class is set in <head>, before the first paint. */
.no-js .menu-toggle {
	display: none;
}

@media (min-width: 901px) {
	.menu-toggle {
		display: none;
	}
}

/* Small screens: the menu collapses behind its toggle once the script has run. */
@media (max-width: 900px) {
	.js .main-nav {
		display: none;
		flex-basis: 100%;
		order: 4;
	}

	.js .main-nav.is-open {
		display: block;
	}

	.main-nav.is-open ul {
		flex-direction: column;
	}

	.main-nav.is-open a {
		padding: 12px 10px;
		border-bottom: 1px solid var(--cp-line);
		border-radius: 0;
	}

	.header-cta {
		order: 3;
		flex-basis: 100%;
	}
}

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