/* =========================================================
   Hills Hearing – site styles
   Works with the Hills Hearing theme, or pasted into
   Appearance > Additional CSS / Site Editor > Styles > Additional CSS
   on another block theme. All custom classes start with "hh-".
   ========================================================= */

:root {
	--hh-green: #1fae74;
	--hh-green-dark: #14855a;
	--hh-green-light: #e8f7f0;
	--hh-ink: #111614;
	--hh-text: #2f3a35;
	--hh-muted: #5d6b65;
	--hh-red: #e2453c;
	--hh-blue: #2b5ba8;
	--hh-line: #dfe7e3;
	--hh-soft: #f6f9f8;
	--hh-radius: 12px;
	--hh-shadow: 0 2px 10px rgba(17, 22, 20, 0.06);
	--hh-sticky-top: var(--wp-admin--admin-bar--height, 0px);
}

/* ---------- Base ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block: 0; }
:focus-visible { outline: 3px solid var(--hh-blue); outline-offset: 2px; }

/* Buttons used inside Hills Hearing sections (keeps the look on any theme) */
:is(.hh-site-header, .hh-hero, .hh-section, .hh-page, .hh-form) .wp-block-button__link,
.hh-form button[type="submit"] {
	background: var(--hh-green);
	color: #fff;
	border: 2px solid transparent;
	border-radius: 999px;
	padding: 13px 24px;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
:is(.hh-site-header, .hh-hero, .hh-section, .hh-page, .hh-form) .wp-block-button__link:hover,
.hh-form button[type="submit"]:hover { background: var(--hh-green-dark); color: #fff; }
:is(.hh-site-header, .hh-hero, .hh-section, .hh-page) .is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--hh-ink);
	color: var(--hh-ink);
}
:is(.hh-site-header, .hh-hero, .hh-section, .hh-page) .is-style-outline .wp-block-button__link:hover {
	background: var(--hh-ink);
	color: #fff;
}
.hh-btn-sm .wp-block-button__link { padding: 9px 18px; font-size: 0.95rem; }

/* Shared text styles */
.hh-eyebrow {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hh-green-dark);
	margin-bottom: 0;
}
.hh-eyebrow + * { margin-block-start: 0.6rem; }
.hh-lead { font-size: 1.15rem; color: var(--hh-muted); max-width: 560px; }

/* =========================================================
   HEADER
   ========================================================= */
header.wp-block-template-part:has(> .hh-site-header),
.hh-site-header {
	position: sticky;
	top: var(--hh-sticky-top);
	z-index: 50;
}
.hh-site-header > * { margin-block: 0; }

.hh-topbar {
	background: var(--hh-ink);
	color: #e9efec;
	font-size: 0.9rem;
	padding-block: 8px;
}
.hh-topbar p { margin: 0; }
.hh-topbar a { color: #fff; text-decoration: none; }
.hh-topbar a:hover { text-decoration: underline; color: #fff; }

.hh-header {
	background: #fff;
	border-bottom: 1px solid var(--hh-line);
}
.hh-header__inner { min-height: 76px; gap: 20px; }

.hh-brand { gap: 10px; flex-shrink: 0; }
.hh-brand__logo,
.hh-brand__logo .components-resizable-box__container { margin: 0; width: 62px !important; max-width: 62px; flex: none; }
.hh-brand__logo img { width: 100% !important; height: auto !important; display: block; }
.hh-brand__name {
	margin: 0;
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: 0.12em;
	white-space: nowrap;
}
.hh-brand__name a { color: var(--hh-ink); text-decoration: none; }

.hh-nav { flex: 1 1 auto; justify-content: flex-end; }
.hh-nav .wp-block-navigation__container { gap: 2px; }
.hh-nav .wp-block-navigation-item__content {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--hh-ink);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.hh-nav .wp-block-navigation-item__content:hover { background: var(--hh-green-light); color: var(--hh-ink); }
.hh-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--hh-green-dark); }

.hh-header__cta { gap: 8px; flex-shrink: 0; flex-wrap: nowrap; }

/* Mobile menu overlay */
.hh-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px 20px;
	background: #fff;
	color: var(--hh-ink);
}
.hh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.1rem;
	padding: 10px 4px;
}
.hh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.hh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
}
.hh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 4px; }
.hh-nav .wp-block-navigation__responsive-container-open {
	border: 2px solid var(--hh-ink);
	border-radius: 8px;
	padding: 6px;
	color: var(--hh-ink);
}

/* =========================================================
   HOMEPAGE SECTIONS
   ========================================================= */
.hh-section { padding-block: clamp(56px, 7vw, 72px); }
.hh-section--soft { background: var(--hh-soft); }
.hh-section-head { max-width: 720px; margin-bottom: 40px; }
.hh-section-head > * { margin-block: 0 0.6rem; }

/* Hero */
.hh-hero {
	background: linear-gradient(180deg, var(--hh-green-light), #fff);
	padding-block: 56px 64px;
}
.hh-hero__cols { gap: 48px; }
.hh-hero__actions { margin-block: 28px 18px; }
.hh-hero__img { margin: 0; }
.hh-hero__img img {
	width: 100%;
	aspect-ratio: 4 / 3.4;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: var(--hh-shadow);
}
.hh-badge {
	position: relative;
	width: fit-content;
	margin: -36px 0 0 20px !important;
	background: #fff;
	border-left: 4px solid var(--hh-red);
	border-radius: var(--hh-radius);
	box-shadow: var(--hh-shadow);
	padding: 12px 16px;
	font-size: 0.9rem;
	line-height: 1.45;
}
.hh-badge strong { color: var(--hh-ink); }

/* Tick lists */
.hh-ticks {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: 0.95rem;
	color: var(--hh-ink);
}
.hh-ticks li::before { content: "✓"; color: var(--hh-green-dark); font-weight: 700; margin-right: 6px; }

/* Trust strip */
.hh-trust {
	background: #fff;
	border-block: 1px solid var(--hh-line);
	padding-block: 22px;
}
.hh-trust__cols { gap: 16px; margin: 0; }
.hh-trust__item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.hh-trust__item > * { margin: 0 !important; }
.hh-trust__item strong { color: var(--hh-ink); }
.hh-trust__icon {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--hh-green-light);
	color: var(--hh-green-dark);
	font-weight: 800;
	font-size: 0.8rem;
	display: grid;
	place-items: center;
}

/* Service cards */
.hh-cards { gap: 24px; }
.hh-cards + .hh-cards { margin-top: 24px; }
.hh-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--hh-line);
	border-radius: var(--hh-radius);
	box-shadow: var(--hh-shadow);
	overflow: hidden;
	padding-bottom: 22px;
}
.hh-card > * { margin-inline: 22px; }
.hh-card > .wp-block-image { margin: 0 0 6px; }
.hh-card .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hh-card p { color: var(--hh-muted); font-size: 0.97rem; }
.hh-card h3 { margin-top: 16px; }
.hh-card__link { margin-top: auto !important; padding-top: 4px; }
.hh-card__link a { font-weight: 700; text-decoration: none; color: var(--hh-green-dark); }
.hh-card__link a::after { content: " →"; }

/* Split (image + text) */
.hh-split { gap: 48px; }
.hh-split__img { margin: 0; }
.hh-split__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.hh-checklist {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 20px;
}
.hh-checklist li { position: relative; padding-left: 28px; }
.hh-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--hh-green);
}
.hh-note {
	background: var(--hh-green-light);
	border-radius: var(--hh-radius);
	padding: 16px 18px;
	font-size: 0.95rem;
	color: var(--hh-ink);
}

/* Why choose us */
.hh-why { gap: 24px; }
.hh-why + .hh-why { margin-top: 24px; }
.hh-why__item {
	background: #fff;
	border: 1px solid var(--hh-line);
	border-radius: var(--hh-radius);
	padding: 24px;
}
.hh-why__item > * { margin-block: 0 0.5rem; }
.hh-why__num { color: var(--hh-red); font-weight: 800; font-size: 1.4rem; }

/* Booking band */
.hh-booking { background: var(--hh-ink); color: #e9efec; }
.hh-booking h2 { color: #fff; }
.hh-booking .hh-eyebrow { color: var(--hh-green); }
.hh-booking p a { color: #fff; }
.hh-booking__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hh-booking__list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	background: #1c2421;
	border: 1px solid #2c3632;
	border-radius: var(--hh-radius);
	padding: 16px 20px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.hh-booking__list a:hover { border-color: var(--hh-green); background: #202b27; color: #fff; }
.hh-booking__list span { color: var(--hh-green); font-weight: 700; white-space: nowrap; }

/* Locations */
.hh-clinic {
	background: #fff;
	border: 1px solid var(--hh-line);
	border-radius: var(--hh-radius);
	box-shadow: var(--hh-shadow);
	padding: 26px;
}
.hh-hours { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.hh-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--hh-line); }
.hh-map { display: block; width: 100%; height: 260px; border: 0; border-radius: var(--hh-radius); }
.hh-partners { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hh-partners li {
	border: 1px solid var(--hh-line);
	border-radius: 10px;
	background: #fff;
	padding: 12px 16px;
	font-size: 0.9rem;
	color: var(--hh-muted);
	line-height: 1.45;
}
.hh-partners li:hover { border-color: var(--hh-green); }
.hh-partners a { color: var(--hh-ink); font-weight: 600; font-size: 1rem; text-decoration: none; }
.hh-partners a:hover { color: var(--hh-green-dark); }

/* Brands */
.hh-brands { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.hh-brands a {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--hh-line);
	border-radius: 999px;
	background: #fff;
	color: var(--hh-ink);
	font-weight: 600;
	text-decoration: none;
}
.hh-brands a:hover { border-color: var(--hh-green); }

/* FAQs */
.hh-faq { max-width: 860px; }
.hh-faq .wp-block-details {
	border: 1px solid var(--hh-line);
	border-radius: var(--hh-radius);
	background: #fff;
	margin: 0 0 12px;
	padding: 0;
}
.hh-faq summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 18px 52px 18px 22px;
	font-weight: 700;
	color: var(--hh-ink);
}
.hh-faq summary::-webkit-details-marker { display: none; }
.hh-faq summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 12px;
	font-size: 1.5rem;
	color: var(--hh-green-dark);
}
.hh-faq details[open] > summary::after { content: "–"; }
.hh-faq .wp-block-details > :not(summary) { margin: 0; padding: 0 22px 18px; color: var(--hh-muted); }

/* Enquiry form */
.hh-form {
	background: #fff;
	border: 1px solid var(--hh-line);
	border-radius: var(--hh-radius);
	box-shadow: var(--hh-shadow);
	padding: 28px;
}
.hh-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hh-field { margin: 0 0 16px; }
.hh-field label { display: block; font-weight: 600; color: var(--hh-ink); margin-bottom: 6px; font-size: 0.95rem; }
.hh-field input,
.hh-field select,
.hh-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #c7d3cd;
	border-radius: 10px;
	font: inherit;
	color: var(--hh-ink);
	background: #fff;
}
.hh-field textarea { min-height: 130px; resize: vertical; }
.hh-field :is(input, select, textarea):focus { border-color: var(--hh-green); outline: 2px solid var(--hh-green-light); }
.hh-error { display: none; color: #b3261e; font-size: 0.85rem; margin-top: 4px; }
.hh-field.is-invalid :is(input, textarea) { border-color: #b3261e; }
.hh-field.is-invalid .hh-error { display: block; }
.hh-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--hh-muted); margin-bottom: 18px; }
.hh-consent input { margin-top: 5px; }
.hh-form__status { display: none; margin: 16px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--hh-green-light); color: var(--hh-ink); font-weight: 600; }
.hh-form__status.is-visible { display: block; }
.hh-form__status.is-error { background: #fdecea; color: #8a1c14; }
.hh-form button[disabled] { opacity: 0.6; cursor: wait; }
.hh-consent a { color: inherit; text-decoration: underline; }

/* Inner pages */
.hh-page { padding-block: 48px 72px; }
/* A designed page (starts with a full-width section) on the default Page template: tighten the gap under the title */
.hh-page .wp-block-post-content > .alignfull:first-child { margin-top: 24px; }
.hh-page:has(.wp-block-post-content > .alignfull:last-child) { padding-bottom: 0; }
.hh-meta { color: var(--hh-muted); font-size: 0.9rem; }

/* =========================================================
   INNER PAGES (Services, Microsuction, ...)
   ========================================================= */
.hh-hero--page { padding-block: 48px 56px; }
.hh-hero--page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.hh-card--text { padding: 24px; }
.hh-card--text > * { margin-inline: 0; }
.hh-card--text h3 { margin-top: 0; }
.hh-checklist--single { grid-template-columns: 1fr; }
.hh-note-wrap { margin-top: 32px; }
.hh-steps { list-style: none; counter-reset: hh-step; padding: 0; margin: 0; display: grid; gap: 14px; }
.hh-steps li { counter-increment: hh-step; position: relative; padding-left: 48px; min-height: 34px; }
.hh-steps li::before {
	content: counter(hh-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--hh-green);
	color: #fff;
	font-weight: 700;
	display: grid;
	place-items: center;
}
.hh-steps strong { color: var(--hh-ink); }
.hh-why__item .hh-card__link { margin-top: 0.75rem !important; }

/* =========================================================
   FOOTER
   ========================================================= */
.hh-footer {
	background: var(--hh-ink);
	color: #b9c4bf;
	font-size: 0.95rem;
	padding-block: 56px 0;
}
.hh-footer p { color: #b9c4bf; }
.hh-footer a { color: #e9efec; text-decoration: none; }
.hh-footer a:hover { color: var(--hh-green); }
.hh-footer__cols { gap: 32px; margin-bottom: 32px; }
.hh-footer__title { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.hh-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hh-footer__bottom {
	border-top: 1px solid #2c3632;
	padding-block: 18px;
	font-size: 0.85rem;
}
.hh-footer__bottom p { margin: 0; }

/* Mobile call / book bar (phones only) */
.hh-mobile-bar { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Switch to the menu button below 1180px (core switches at 600px) */
@media (max-width: 1180px) {
	.hh-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.hh-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.hh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex; }
	.hh-header__cta > .hh-header__call { display: none; }
}

@media (max-width: 900px) {
	.hh-topbar__tagline { display: none; }
	.hh-topbar__inner { justify-content: center !important; }
}

@media (max-width: 781px) {
	.hh-trust__cols { flex-wrap: wrap !important; }
	.hh-trust__cols > .wp-block-column { flex-basis: calc(50% - 8px) !important; }
	.hh-hero__cols, .hh-split { gap: 32px; }
	.hh-footer__cols { flex-wrap: wrap !important; }
	.hh-footer__cols > .wp-block-column { flex-basis: calc(50% - 16px) !important; }
}

@media (max-width: 600px) {
	:root { --hh-sticky-top: 0px; }
	.hh-topbar { display: none; }
	.hh-header__cta > .hh-header__book { display: none; }
	.hh-brand__logo,
	.hh-brand__logo .components-resizable-box__container { width: 54px !important; max-width: 54px; }
	.hh-trust__cols > .wp-block-column,
	.hh-footer__cols > .wp-block-column { flex-basis: 100% !important; }
	.hh-checklist, .hh-form__row { grid-template-columns: 1fr; }
	.hh-form { padding: 20px; }
	.hh-mobile-bar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		margin: 0 !important;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	}
	.hh-mobile-bar p { margin: 0; }
	.hh-mobile-bar a { display: block; padding: 14px; text-align: center; font-weight: 700; text-decoration: none; }
	.hh-mobile-bar__call a { background: #fff; color: var(--hh-ink); }
	.hh-mobile-bar__book a { background: var(--hh-green); color: #fff; }
	.hh-footer { padding-bottom: 52px; }
}

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