/*
Theme Name: Clintech
Theme URI: https://www.clintechinc.com/
Author: Clintech, Inc.
Description: Custom block theme for Clintech, Inc. Every page is built from editable sections ("patterns"), colors and fonts can be changed in Appearance > Editor > Styles, and business details (phone, address, hours, form email) live in Settings > Business Info.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clintech
Tags: block-theme, full-site-editing, business, custom-colors, editor-style
*/

/* ------------------------------------------------------------------
   Small finishing touches the block settings can't express.
   Most styling lives in theme.json and is editable in
   Appearance > Editor > Styles.
------------------------------------------------------------------- */

:root {
	--clintech-radius-sm: 10px;
	--clintech-radius-md: 16px;
	--clintech-radius-lg: 20px;
}

/* Focus outlines that are easy to see */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--brand-navy);
	outline-offset: 2px;
}

/* ---------- Dark (navy) sections: light text everywhere inside ---------- */
.has-brand-navy-background-color,
.has-deep-navy-background-color {
	color: var(--wp--preset--color--white);
}
.has-brand-navy-background-color :where(h1, h2, h3, h4, h5, h6),
.has-deep-navy-background-color :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--white);
}
.has-brand-navy-background-color a:where(:not(.wp-element-button)),
.has-deep-navy-background-color a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--white);
}
.has-brand-navy-background-color :focus-visible,
.has-deep-navy-background-color :focus-visible {
	outline-color: var(--wp--preset--color--logo-yellow);
}

/* ---------- Eyebrow (small label above a heading) ---------- */
.is-style-eyebrow {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-navy);
}
.has-brand-navy-background-color .is-style-eyebrow,
.has-deep-navy-background-color .is-style-eyebrow {
	color: var(--wp--preset--color--logo-yellow);
}

/* ---------- Cards ---------- */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line-gray);
	border-radius: var(--clintech-radius-md);
	padding: 1.75rem;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.wp-block-group.is-style-card:hover {
	box-shadow: 0 14px 34px rgba(15, 21, 70, 0.12);
	transform: translateY(-2px);
}
.wp-block-group.is-style-card-soft {
	background: var(--wp--preset--color--light-gray);
	border-radius: var(--clintech-radius-md);
	padding: 1.75rem;
}
.has-light-gray-background-color .wp-block-group.is-style-card-soft {
	background: var(--wp--preset--color--white);
}
.wp-block-group.is-style-card > :first-child,
.wp-block-group.is-style-card-soft > :first-child {
	margin-top: 0;
}

/* ---------- Checklist ---------- */
ul.is-style-checklist {
	list-style: none;
	padding-left: 0;
}
ul.is-style-checklist > li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.65rem;
}
ul.is-style-checklist > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.25rem;
	height: 1.25rem;
	background: url("assets/icons/check-navy.svg") no-repeat center / contain;
}
.has-brand-navy-background-color ul.is-style-checklist > li::before,
.has-deep-navy-background-color ul.is-style-checklist > li::before {
	background-image: url("assets/icons/check-yellow.svg");
}

/* ---------- Pills (tags in a row) ---------- */
ul.is-style-pills {
	list-style: none;
	padding-left: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}
ul.is-style-pills > li {
	background: var(--wp--preset--color--blue-tint);
	color: var(--wp--preset--color--brand-navy);
	border-radius: 999px;
	padding: 0.5rem 1rem;
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0;
}

/* ---------- Step number circle ---------- */
p.is-style-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--logo-yellow);
	color: var(--wp--preset--color--brand-navy);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 0.9375rem;
	line-height: 1;
}

/* ---------- Buttons ---------- */
.wp-block-button.is-style-accent .wp-block-button__link {
	background: var(--wp--preset--color--logo-yellow);
	border-color: var(--wp--preset--color--logo-yellow);
	color: var(--wp--preset--color--deep-navy);
}
.wp-block-button.is-style-accent .wp-block-button__link:hover {
	background: #eef03c;
	border-color: #eef03c;
	color: var(--wp--preset--color--deep-navy);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--brand-navy);
	color: var(--wp--preset--color--brand-navy);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--blue-tint);
	color: var(--wp--preset--color--brand-navy);
}
.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.6);
	color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
}
.wp-block-button .wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ---------- FAQ (Details block) ---------- */
.wp-block-details {
	background: var(--wp--preset--color--white);
	border-radius: 14px;
	padding: 0.25rem 1.5rem;
}
.wp-block-details > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	min-height: 64px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--wp--preset--color--deep-navy);
}
.wp-block-details > summary::-webkit-details-marker {
	display: none;
}
.wp-block-details > summary::after {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: url("assets/icons/chevron-down.svg") no-repeat center / contain;
	transition: transform 0.2s ease;
}
.wp-block-details[open] > summary::after {
	transform: rotate(180deg);
}
.wp-block-details > :not(summary) {
	color: var(--wp--preset--color--slate);
	padding-bottom: 1.25rem;
	margin-top: 0;
}

/* ---------- Header ---------- */
.clintech-topbar a {
	font-weight: 600;
	text-decoration: none;
}
.clintech-header .wp-block-navigation a:hover,
.clintech-header .wp-block-navigation .current-menu-item > a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}

/* ---------- Hero ---------- */
.clintech-hero {
	position: relative;
	overflow: hidden;
}
.clintech-hero::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 120px;
	background: url("assets/images/ekg-line.svg") no-repeat center / 100% 100%;
	opacity: 0.35;
	pointer-events: none;
}
.clintech-hero > * {
	position: relative;
}
.clintech-hero-media {
	position: relative;
}
.clintech-float-card {
	position: relative;
	margin-top: -2.5rem !important;
	margin-left: 1rem;
	max-width: 320px;
	color: var(--wp--preset--color--body-text);
}
@media (min-width: 900px) {
	.clintech-float-card {
		position: absolute;
		left: -24px;
		bottom: -28px;
		margin: 0 !important;
	}
}
.clintech-float-card :where(p) {
	color: var(--wp--preset--color--muted);
}
.clintech-float-card strong {
	color: var(--wp--preset--color--brand-navy);
}

/* ---------- Links with an arrow ---------- */
.clintech-arrow-link a {
	font-weight: 600;
	text-decoration: none;
}
.clintech-arrow-link a::after {
	content: " \2192";
}
.clintech-arrow-link a:hover {
	text-decoration: underline;
}

/* Category tiles that are links */
.clintech-tile a {
	color: var(--wp--preset--color--deep-navy);
	text-decoration: none;
	font-weight: 600;
}
.clintech-tile a::after {
	content: " \2192";
}
.clintech-tile:hover {
	box-shadow: 0 10px 24px rgba(15, 21, 70, 0.10);
}

/* ---------- Footer ---------- */
.clintech-footer a {
	color: var(--wp--preset--color--slate);
	text-decoration: none;
}
.clintech-footer a:hover {
	color: var(--wp--preset--color--brand-navy);
	text-decoration: underline;
}
.clintech-footer .clintech-footer-links p {
	margin: 0;
}

/* ---------- Built-in forms ---------- */
.clintech-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.125rem 1.25rem;
	background: var(--wp--preset--color--white);
	border-radius: var(--clintech-radius-lg);
	padding: 2.25rem;
	box-shadow: 0 2px 6px rgba(15, 21, 70, 0.06);
}
.clintech-form .clintech-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--body-text);
}
.clintech-form .clintech-field--full,
.clintech-form .clintech-form__footer,
.clintech-form .clintech-notice {
	grid-column: 1 / -1;
}
.clintech-form input,
.clintech-form select,
.clintech-form textarea {
	font: inherit;
	font-weight: 400;
	font-size: 1rem;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #c5cadb;
	border-radius: var(--clintech-radius-sm);
	background: #fff;
	color: var(--wp--preset--color--body-text);
	box-sizing: border-box;
	width: 100%;
}
.clintech-form textarea {
	min-height: 120px;
	resize: vertical;
}
.clintech-form .clintech-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.clintech-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.clintech-form__footer small {
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
}
.clintech-form button {
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--clintech-radius-sm);
	border: 2px solid var(--wp--preset--color--brand-navy);
	background: var(--wp--preset--color--brand-navy);
	color: #fff;
	cursor: pointer;
}
.clintech-form button:hover {
	background: var(--wp--preset--color--deep-navy);
	border-color: var(--wp--preset--color--deep-navy);
}
.clintech-notice {
	border-radius: 12px;
	padding: 14px 18px;
	font-weight: 600;
}
.clintech-notice--ok {
	background: #e7f6ec;
	color: #14532d;
}
.clintech-notice--error {
	background: #fdecec;
	color: #7f1d1d;
}

/* Admin-only reminder shown where business info is missing */
.clintech-missing {
	background: var(--wp--preset--color--soft-yellow);
	color: var(--wp--preset--color--body-text);
	border: 1px dashed #c9c34a;
	border-radius: 6px;
	padding: 0 6px;
	font-size: 0.875em;
}

/* ---------- Layout spacing: sections sit flush against each other ---------- */
.wp-site-blocks > * {
	margin-block-start: 0;
}
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * {
	margin-block-start: 0;
	margin-block-end: 0;
}
footer.wp-block-template-part > .alignfull {
	margin-block-start: 0;
}

/* Checklist shown in a row (used in page headers) */
ul.is-style-checklist.clintech-inline-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.75rem;
}
ul.is-style-checklist.clintech-inline-list > li {
	margin-bottom: 0;
}

/* Shorter top bar on phones */
@media (max-width: 781px) {
	.clintech-hide-mobile {
		display: none;
	}
}
