/*
Theme Name: Hughes Physical Therapy
Theme URI: https://example.com/
Author: Powell Real Estate Group
Description: A clean, accessible block theme for Hughes Physical Therapy — "Your Bridge to Better Health." Built around the Hughes navy and cable-bridge logo, with ready-made patterns for services, therapists, insurance, patient forms, FAQs and clinic hours.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hughes-pt
Tags: full-site-editing, block-patterns, accessibility-ready, custom-colors, editor-style, one-column, wide-blocks
*/

/* ---------- Base & accessibility ---------- */

html { scroll-behavior: smooth; }

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

:where(a, button, input, select, textarea, summary, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--sunrise);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--wp--preset--color--sky); color: var(--wp--preset--color--navy); }

img { height: auto; }

/* ---------- Header ---------- */

.hpt-topbar { font-size: 0.9375rem; }
.hpt-topbar a { color: inherit; text-decoration: none; }
.hpt-topbar a:hover { text-decoration: underline; }

.wp-site-blocks > * + * { margin-block-start: 0; }

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.hpt-header { box-shadow: 0 1px 0 var(--wp--preset--color--border); }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
}
@media (max-width: 600px) {
	.wp-site-blocks > header.wp-block-template-part { position: relative; top: 0 !important; }
	.hpt-header-cta { display: none !important; }
	.hpt-topbar p:last-child { display: none; }
}

.hpt-header-cta .wp-block-button__link { white-space: nowrap; }

.hpt-header .wp-block-site-logo img,
.hpt-header .hpt-logo img { max-height: 64px; width: auto; }

.hpt-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem;
	background: var(--wp--preset--color--white);
}
.hpt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.25rem;
	padding: 0.4rem 0;
}

/* Navigation current page indicator */
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--sunrise);
	text-decoration-thickness: 3px;
	text-underline-offset: 8px;
}

/* ---------- Buttons ---------- */

.wp-element-button, .wp-block-button__link {
	transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.wp-block-button__link:hover { transform: translateY(-1px); }

.wp-block-button.is-style-sunrise .wp-block-button__link {
	background: var(--wp--preset--color--sunrise);
	color: var(--wp--preset--color--navy-deep);
}
.wp-block-button.is-style-sunrise .wp-block-button__link:hover,
.wp-block-button.is-style-sunrise .wp-block-button__link:focus-visible {
	background: #ffc95e;
	color: var(--wp--preset--color--navy-deep);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: var(--wp--preset--color--navy);
	padding: calc(0.8rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--navy);
}

.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent;
	border: 2px solid rgba(255,255,255,.85);
	color: var(--wp--preset--color--white);
	padding: calc(0.8rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

/* ---------- Cards ---------- */

.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--large);
	box-shadow: var(--wp--preset--shadow--soft);
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.is-style-card:hover {
	box-shadow: var(--wp--preset--shadow--lift);
	border-color: #c2cbe0;
}
.is-style-card .wp-block-heading a { text-decoration: none; color: inherit; }
.is-style-card .wp-block-heading a::after { content: ""; position: absolute; inset: 0; }
.is-style-card:has(.wp-block-heading a) { position: relative; }

.hpt-icon img { width: 56px; height: 56px; border-radius: 0 !important; }

/* Eyebrow label above headings */
.hpt-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem !important;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--river);
}
.has-navy-background-color .hpt-eyebrow,
.has-navy-deep-background-color .hpt-eyebrow,
.hpt-on-dark .hpt-eyebrow,
.hpt-hero .hpt-eyebrow,
.hpt-cta .hpt-eyebrow { color: var(--wp--preset--color--sunrise); }

/* ---------- Hero ---------- */

.hpt-hero { overflow: hidden; }
.hpt-hero .wp-block-cover__image-background { object-position: right bottom; }
.hpt-hero h1 { text-wrap: balance; }

.hpt-trust { position: relative; z-index: 2; margin-top: calc(-1 * var(--wp--preset--spacing--50)) !important; }
.hpt-trust .wp-block-column { display: flex; gap: .85rem; align-items: flex-start; }
.hpt-trust .hpt-check {
	flex: 0 0 auto;
	width: 2rem; height: 2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--sky);
	color: var(--wp--preset--color--navy);
	display: grid; place-items: center;
	font-weight: 700;
	margin: 0;
}

/* Bridge-line decorative backgrounds */
.hpt-bridge-bg {
	background-image: url("assets/images/bridge-lines-navy.svg");
	background-repeat: no-repeat;
	background-position: right -80px bottom -20px;
	background-size: min(720px, 90%) auto;
}

/* ---------- Checklist ---------- */

ul.hpt-checklist, ul.is-style-checklist { list-style: none; padding-left: 0; }
ul.hpt-checklist li, ul.is-style-checklist li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: .6rem;
}
ul.hpt-checklist li::before, ul.is-style-checklist li::before {
	content: "";
	position: absolute;
	left: 0; top: .3em;
	width: 1.25rem; height: 1.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.has-navy-background-color ul.hpt-checklist li::before,
.has-navy-deep-background-color ul.hpt-checklist li::before {
	background-color: var(--wp--preset--color--sunrise);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2300003d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Steps ---------- */

.hpt-step-num {
	width: 3rem; height: 3rem;
	border-radius: 50%;
	display: grid !important; place-items: center;
	background: var(--wp--preset--color--sunrise);
	color: var(--wp--preset--color--navy-deep);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.25rem !important;
	line-height: 1 !important;
}

/* ---------- Team ---------- */

.hpt-team .wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hpt-creds { color: var(--wp--preset--color--river); font-weight: 600; }

/* ---------- Testimonials ---------- */

.hpt-quote { position: relative; }
.hpt-quote::before {
	content: "\201C";
	position: absolute;
	top: -.35em; left: 1.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 5rem;
	line-height: 1;
	color: var(--wp--preset--color--sunrise);
}

/* ---------- Details / FAQ ---------- */

.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.1875rem;
	color: var(--wp--preset--color--navy);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	flex: 0 0 auto;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp--preset--color--river);
	transition: transform .2s ease;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin-top: .75rem; }

/* ---------- Hours table ---------- */

.hpt-hours table { border-collapse: collapse; width: 100%; }
.hpt-hours td { border: 0; border-bottom: 1px solid var(--wp--preset--color--border); padding: .6rem 0; }
.hpt-hours td:last-child { text-align: right; font-weight: 600; }
.hpt-hours tr:last-child td { border-bottom: 0; }

/* ---------- Map embed ---------- */

.hpt-map iframe, .hpt-map img {
	width: 100%;
	min-height: 320px;
	border: 0;
	border-radius: var(--wp--custom--radius--large);
	display: block;
}

/* ---------- Page title band ---------- */

.hpt-title-band { border-bottom: 1px solid var(--wp--preset--color--border); }

/* ---------- Blog ---------- */

.hpt-post-card .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; }
.hpt-post-card .wp-block-post-featured-image { margin-bottom: 0; }

.wp-block-query-pagination a,
.wp-block-query-pagination .current {
	padding: .35rem .75rem;
	border-radius: 999px;
}
.wp-block-query-pagination .current {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

/* ---------- Footer ---------- */

.hpt-footer a { color: var(--wp--preset--color--white); text-decoration: none; }
.hpt-footer a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--sunrise); }
.hpt-footer .hpt-muted { color: #c8cde6; }
.hpt-footer ul { list-style: none; padding-left: 0; margin: 0; }
.hpt-footer li + li { margin-top: .4rem; }
.hpt-footer .hpt-logo img { max-width: 240px; }

/* ---------- Forms (Gravity Forms / WPForms / CF7 basics) ---------- */

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="search"], input[type="url"], select, textarea {
	font: inherit;
	border: 1px solid #aab3c9;
	border-radius: var(--wp--custom--radius--small);
	padding: .7rem .85rem;
	background: #fff;
	color: var(--wp--preset--color--ink);
	max-width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--wp--preset--color--navy); }

.hpt-notice {
	border-left: 4px solid var(--wp--preset--color--sunrise);
}

/* ---------- Utilities ---------- */

.hpt-on-dark a:not(.wp-block-button__link) { color: #fff; }
.hpt-rounded img, .hpt-rounded { border-radius: var(--wp--custom--radius--large); }
.hpt-stretch { height: 100%; }

.hpt-footer .hpt-footer-rule {
	border: 0;
	border-top: 1px solid rgba(255,255,255,.18);
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--30);
}

/* Insurance pills */
.hpt-pill {
	margin: 0 !important;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	padding: .6rem 1rem;
	font-weight: 600;
	font-size: 1rem;
	color: var(--wp--preset--color--navy);
}

/* Map placeholder */
.hpt-map-placeholder {
	min-height: 360px;
	height: 100%;
	display: grid;
	place-items: center;
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--sky) url("assets/images/bridge-lines-navy.svg") center bottom / 110% auto no-repeat;
	color: var(--wp--preset--color--slate);
	font-weight: 600;
}
.hpt-cta {
	background-image: url("assets/images/bridge-lines.svg");
	background-repeat: no-repeat;
	background-position: center bottom -40px;
	background-size: min(1100px, 140%) auto;
}
.hpt-hero.hpt-hero {
	background:
		url("assets/images/bridge-lines.svg") left -120px bottom -60px / min(900px, 140%) auto no-repeat,
		var(--wp--preset--gradient--navy-fade) !important;
}
.hpt-hero-photo img { box-shadow: 0 24px 60px rgba(0,0,30,.45); }

/* Keep footer at the bottom on short pages */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group:has(> main) { flex: 1 0 auto; }
.wp-site-blocks > main.wp-block-group { flex: 1 0 auto; }

.hpt-footer h2 { margin-bottom: .9rem; }
.wp-block-post-terms.hpt-eyebrow a { text-decoration: none; }
.wp-block-post-content > .alignfull:first-child { margin-top: calc(-1 * var(--wp--preset--spacing--50)); }
