/*
Theme Name: HRMC
Theme URI: https://hrtrhythm.org
Author: Heart Rhythm Medical Centre
Description: One-page theme for Heart Rhythm Medical Centre (HRMC), Nairobi. Includes a booking form that emails the clinic, a Media & Interviews section fed by video posts, and Customizer settings for contact details, opening hours, social links and photos.
Version: 1.0.16
Requires at least: 6.0
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: hrmc
*/

/* ---------- Tokens ---------- */
:root {
	--hr-blue: #2271b3;
	--hr-blue-dark: #1b5c94;
	--hr-blue-mid: #3a7fbb;
	--hr-blue-line: #4a8cc6;
	--hr-navy: #0c2d57;
	--hr-text: #4a4f57;
	--hr-muted: #6b7078;
	--hr-grey: #f7f7f7;
	--hr-field: #f5f5f5;
	--hr-line: #e6e9ec;
	--hr-photo: #e6e9ec;
	--hr-on-blue: #e8f0f8;
	--hr-serif: "Lora", Georgia, serif;
	--hr-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hr-gutter: clamp(16px, 1.7vw, 24px);
	--hr-section: clamp(60px, 6.2vw, 90px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #ffffff;
	color: var(--hr-text);
	font-family: var(--hr-sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hr-blue); }
a:hover { color: var(--hr-blue-dark); }
h1, h2, h3, h4 { font-family: var(--hr-serif); font-weight: 400; color: var(--hr-navy); margin: 0; }
p { margin: 0; }
section[id], [id="top"] { scroll-margin-top: 20px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: #ffffff; color: var(--hr-navy); padding: 10px 16px;
}
:focus-visible { outline: 2px solid var(--hr-blue); outline-offset: 2px; }
.hr-wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--hr-gutter); }
.hr-section { padding: var(--hr-section) var(--hr-gutter); }
.hr-section > .hr-inner { max-width: 1140px; margin: 0 auto; }
.hr-grey { background: var(--hr-grey); }

/* Eyebrow + headings */
.hr-eyebrow { font-weight: 600; font-size: 13px; color: var(--hr-blue); text-transform: uppercase; letter-spacing: .02em; }
.hr-h2 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.2; }
.hr-head-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 40px; }
.hr-head-center p { max-width: 620px; }
.hr-head-split { display: flex; flex-wrap: wrap; gap: 16px 60px; align-items: flex-end; margin-bottom: 36px; }
.hr-head-split > * { flex: 1 1 420px; min-width: 0; }
.hr-head-split .hr-h2 { margin-top: 10px; }

/* Buttons */
.hr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--hr-sans); font-weight: 500; font-size: 15px; text-transform: uppercase; line-height: 1.2;
	padding: 15px 24px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.hr-btn--solid { background: var(--hr-blue); color: #ffffff; }
.hr-btn--solid:hover { background: var(--hr-blue-dark); color: #ffffff; }
.hr-btn--outline { border-color: #ffffff; color: #ffffff; background: transparent; }
.hr-btn--outline:hover { background: #ffffff; color: var(--hr-blue); }
.hr-btn--white { background: #ffffff; color: var(--hr-blue); border-color: #ffffff; }
.hr-btn--white:hover { background: transparent; color: #ffffff; }
.hr-link { font-weight: 500; font-size: 14px; text-transform: uppercase; text-decoration: none; }

/* Photo placeholders (shown until an image is set in the Customizer) */
.hr-photo { position: relative; background: var(--hr-photo); overflow: hidden; }
.hr-photo img { width: 100%; height: 100%; object-fit: cover; }
.hr-photo--empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--hr-muted); font-size: 13px; }

/* ---------- Top bar ---------- */
.hr-topbar { background: var(--hr-grey); font-size: 14px; }
.hr-topbar__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: center; gap: 8px 24px; padding-top: 6px; padding-bottom: 6px; }
.hr-topbar__links { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; margin: 0; padding: 0; }
.hr-topbar__links a { color: var(--hr-text); text-decoration: none; }
.hr-topbar__links a:hover { color: var(--hr-blue); }
.hr-social { display: flex; gap: 6px; align-items: center; justify-content: center; }
.hr-social a, .hr-social button {
	width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
	background: none; border: 0; padding: 0; cursor: pointer; color: var(--hr-muted);
}
.hr-social a:hover, .hr-social button:hover { color: var(--hr-blue); }
.hr-social svg { fill: currentColor; }
.hr-search { padding-bottom: 12px; }
.hr-search[hidden] { display: none; }
.hr-search form { display: flex; gap: 8px; }
.hr-search input[type="search"] {
	flex: 1 1 auto; min-width: 0; font: inherit; font-size: 15px; padding: 10px 14px;
	border: 1px solid #c7ccd2; background: #ffffff; color: var(--hr-navy);
}

/* ---------- Header ---------- */
.hr-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 24px; padding-bottom: 30px; }
.hr-logo, .custom-logo-link { display: block; flex: 0 0 auto; }
.hr-logo img, .custom-logo-link img { height: 66px; width: auto; max-width: 100%; object-fit: contain; }
.hr-contacts { display: flex; flex-wrap: wrap; gap: 20px 48px; }
.hr-contact { display: flex; align-items: center; gap: 18px; line-height: 1.4; }
.hr-contact__icon { flex: 0 0 auto; width: 50px; height: 50px; border: 1px solid var(--hr-blue); display: flex; align-items: center; justify-content: center; color: var(--hr-blue); }
.hr-contact__label { font-size: 13px; color: #555b63; text-transform: uppercase; }
.hr-contact__value { font-weight: 500; color: var(--hr-navy); text-decoration: none; }

/* ---------- Main navigation ---------- */
.hr-navwrap { position: relative; z-index: 20; margin-bottom: -74px; padding: 0 var(--hr-gutter); }
.hr-nav {
	position: relative; max-width: 1140px; margin: 0 auto; background: var(--hr-blue);
	padding: 12px 12px 12px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.hr-nav__menu { display: flex; list-style: none; margin: 0; padding: 0; }
.hr-nav__menu a {
	display: block; color: var(--hr-on-blue); text-decoration: none; font-weight: 500; font-size: 15px;
	text-transform: uppercase; padding: 12px 14px; white-space: nowrap;
}
.hr-nav__menu a:hover, .hr-nav__menu .current-menu-item > a { color: #ffffff; }
.hr-nav__menu .sub-menu { display: none; }
.hr-burger {
	display: none; flex: 0 0 auto; width: 48px; height: 48px; margin-left: 12px; padding: 0;
	background: #ffffff; border: 0; cursor: pointer; align-items: center; justify-content: center; color: var(--hr-navy);
}
.hr-burger .hr-icon-close { display: none; }
.hr-burger[aria-expanded="true"] .hr-icon-open { display: none; }
.hr-burger[aria-expanded="true"] .hr-icon-close { display: block; }
.hr-drawer { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--hr-blue-dark); box-shadow: 0 12px 24px rgba(12, 45, 87, .25); }
.hr-drawer.is-open { display: block; }
.hr-drawer ul { list-style: none; margin: 0; padding: 0; }
.hr-drawer a { display: block; color: #ffffff; text-decoration: none; font-weight: 500; font-size: 15px; text-transform: uppercase; padding: 14px 22px; border-bottom: 1px solid #2c6da6; }
.hr-drawer li:last-child a { border-bottom: 0; }

/* ---------- Hero ---------- */
.hr-hero { position: relative; background: #6f7680; min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hr-hero__bg { position: absolute; inset: 0; }
.hr-hero__bg picture { display: block; width: 100%; height: 100%; }
.hr-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hr-hero--focus-left .hr-hero__bg img { object-position: 15% 30%; }
.hr-hero--focus-right .hr-hero__bg img { object-position: 85% 30%; }
.hr-hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(12, 30, 52, var(--hr-hero-dark, .3)); }
.hr-hero__note { position: absolute; left: 64px; right: 64px; bottom: 50px; font-size: 12px; color: #ffffff; }
.hr-hero__content { position: relative; max-width: 760px; padding: 150px var(--hr-gutter) 110px; display: flex; flex-direction: column; align-items: center; gap: 22px; color: #ffffff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 2px 18px rgba(0, 0, 0, .45); }
.hr-hero__content .hr-btn { text-shadow: none; }

.hr-hero__tag { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.hr-hero h1 { color: #ffffff; font-size: clamp(40px, 5.3vw, 76px); line-height: 1.12; }
.hr-hero__lead { font-size: clamp(17px, 1.5vw, 21px); max-width: 640px; }
.hr-btnrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- Departments ---------- */
.hr-depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.hr-dept { background: #ffffff; padding: 30px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.hr-dept svg { color: var(--hr-blue); }
.hr-dept h3 { font-size: 24px; line-height: 1.2; overflow-wrap: break-word; hyphens: manual; }
.hr-dept p { font-size: 15px; color: var(--hr-muted); }
.hr-dept--stat { background: var(--hr-blue); color: #ffffff; justify-content: center; min-height: 220px; gap: 6px; }
.hr-dept--stat .hr-stat-num { font-family: var(--hr-serif); font-size: clamp(48px, 4.4vw, 64px); line-height: 1; }
.hr-dept--stat .hr-stat-label { font-size: 14px; text-transform: uppercase; }
.hr-dept--stat .hr-btn { margin-top: 16px; font-size: 14px; padding: 12px 22px; }

/* ---------- About ---------- */
.hr-about { padding-bottom: clamp(80px, 8vw, 120px); }
.hr-about__grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.hr-hours { flex: 1 1 340px; min-width: 0; background: var(--hr-blue); padding: 36px 30px; color: #ffffff; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.hr-hours h3 { color: #ffffff; font-size: 32px; text-align: center; }
.hr-hours__rule { width: 150px; height: 1px; background: #9cc3e6; align-self: center; }
.hr-hours__rows { display: flex; flex-direction: column; font-size: 15px; margin: 0; }
.hr-hours__row { display: grid; grid-template-columns: minmax(84px, auto) auto 1fr; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hr-blue-line); }
.hr-hours__row:last-child { border-bottom: 0; }
.hr-hours__row dt { font-weight: 500; }
.hr-hours__row dd { margin: 0; white-space: nowrap; }
.hr-hours__book { text-align: right; }
.hr-hours__book a { color: #ffffff; text-decoration: none; font-weight: 500; font-size: 14px; text-transform: uppercase; }
.hr-hours__book a:hover { text-decoration: underline; }
.hr-hours h4 { color: #ffffff; font-size: 22px; text-align: center; margin-top: 10px; }
.hr-hours p { text-align: center; color: var(--hr-on-blue); }
.hr-hours .hr-btn { width: 100%; }
.hr-hours .hr-btn:first-of-type { margin-top: 14px; }
.hr-about__photo { flex: 1 1 280px; min-width: 0; min-height: 440px; position: relative; display: flex; }
.hr-about__photo .hr-photo { position: relative; flex: 1 1 auto; width: 100%; min-height: 440px; }
.hr-about__photo .hr-photo img { object-position: center top; }
.hr-about__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.hr-mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.hr-mv div { background: var(--hr-grey); padding: 18px 20px; border-top: 3px solid var(--hr-blue); }
.hr-mv h3 { font-size: 20px; }
.hr-mv p { font-size: 15px; margin-top: 6px; }
.hr-person { display: flex; align-items: center; gap: 16px; margin-top: 6px; line-height: 1.4; }
.hr-person img, .hr-person .hr-photo { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 999px; object-fit: cover; object-position: center 15%; border: 3px solid var(--hr-grey); }
.hr-person__name { font-family: var(--hr-serif); font-size: 21px; color: var(--hr-navy); }
.hr-person__role { font-size: 13px; text-transform: uppercase; color: var(--hr-muted); }

/* ---------- Partners ---------- */
.hr-partners { position: relative; padding: 0 var(--hr-gutter); }
.hr-partners::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: var(--hr-blue-mid); }
.hr-partners__card { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; background: #ffffff; box-shadow: 0 10px 30px rgba(12, 45, 87, .15); padding: clamp(24px, 3vw, 44px) clamp(20px, 2.8vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hr-marquee {
	width: 100%; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hr-marquee__track { display: flex; width: max-content; animation: hr-marquee var(--hr-marquee-dur, 30s) linear infinite; }
.hr-marquee:hover .hr-marquee__track, .hr-marquee:focus-within .hr-marquee__track { animation-play-state: paused; }
.hr-marquee__set { display: flex; align-items: center; gap: 56px; margin: 0; padding: 0 28px; list-style: none; flex: 0 0 auto; }
.hr-marquee__set li { flex: 0 0 auto; display: flex; align-items: center; }
.hr-marquee__set img { height: 60px; width: auto; max-width: 200px; object-fit: contain; }
@keyframes hr-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Tests (Our Services) ---------- */
.hr-tests { background: var(--hr-blue-mid); color: #ffffff; padding: 60px var(--hr-gutter) var(--hr-section); }
.hr-tests .hr-head-center h2 { color: #ffffff; }
.hr-tests__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.hr-test { background: #ffffff; color: var(--hr-text); display: flex; flex-direction: column; }
.hr-test .hr-photo { height: 170px; }
.hr-test__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.hr-test h3 { font-size: 22px; line-height: 1.2; }
.hr-test p { font-size: 15px; }
.hr-test--cta { background: var(--hr-blue-dark); color: #ffffff; padding: 26px; justify-content: center; gap: 12px; }
.hr-test--cta h3 { color: #ffffff; }
.hr-test--cta .hr-btn { align-self: flex-start; font-size: 14px; padding: 12px 20px; }

/* ---------- Procedures ---------- */
.hr-procs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.hr-procs li { display: flex; gap: 12px; align-items: center; background: var(--hr-grey); padding: 16px 20px; font-weight: 500; color: var(--hr-navy); line-height: 1.4; }
.hr-procs svg { flex: 0 0 auto; color: var(--hr-blue); }

/* ---------- Stats ---------- */
.hr-stats { padding: 60px var(--hr-gutter); }
.hr-stats__grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 0; }
.hr-stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px; }
.hr-stat svg { color: var(--hr-blue); }
.hr-stat__num { font-family: var(--hr-serif); font-size: clamp(42px, 3.9vw, 56px); line-height: 1.1; color: var(--hr-navy); }
.hr-stat__label { font-size: 15px; text-transform: uppercase; }

/* ---------- Specialist ---------- */
.hr-doc { display: flex; flex-wrap: wrap; align-items: flex-start; }
.hr-doc__photo { flex: 1 1 260px; max-width: 380px; height: 460px; }
.hr-doc__photo img { object-position: center top; }
.hr-doc__card {
	flex: 1 1 320px; min-width: 0; position: relative; background: #ffffff;
	box-shadow: 0 10px 30px rgba(12, 45, 87, .08); padding: clamp(24px, 2.8vw, 40px);
	margin: 40px 0 0 -60px; display: flex; flex-direction: column; gap: 12px;
}
.hr-doc__card h3 { font-size: 30px; }
.hr-doc__role { font-size: 13px; text-transform: uppercase; color: var(--hr-blue); font-weight: 500; }
.hr-doc__sub { font-family: var(--hr-serif); font-size: 19px; color: var(--hr-navy); margin-top: 4px; }
.hr-dash { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 20px; font-size: 15px; }
.hr-dash li { display: flex; gap: 10px; align-items: center; }
.hr-dash li::before { content: ""; flex: 0 0 auto; width: 12px; height: 3px; background: var(--hr-blue); }
.hr-doc__card .hr-btn { align-self: flex-start; margin-top: 8px; font-size: 14px; padding: 12px 20px; }

/* ---------- Media ---------- */
.hr-media { display: flex; flex-wrap: wrap; gap: 30px; }
.hr-media__featured { flex: 3 1 460px; min-width: 0; background: #ffffff; display: flex; flex-direction: column; }
.hr-media__frame { position: relative; aspect-ratio: 16 / 9; background: #dfe3e8; display: flex; align-items: center; justify-content: center; }
.hr-media__frame iframe, .hr-media__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hr-media__frame img { width: 100%; height: 100%; object-fit: cover; }
.hr-media__tag { position: absolute; top: 14px; left: 14px; background: var(--hr-blue); color: #ffffff; font-size: 12px; text-transform: uppercase; padding: 4px 12px; z-index: 1; pointer-events: none; }
.hr-play { width: 72px; height: 72px; border-radius: 999px; background: var(--hr-blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(12, 45, 87, .3); color: #ffffff; position: absolute; }
.hr-play--sm { width: 40px; height: 40px; }
.hr-media__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 8px; }
.hr-media__body h3 { font-size: 26px; line-height: 1.25; }
.hr-media__body h3 a { color: inherit; text-decoration: none; }
.hr-meta { font-size: 13px; text-transform: uppercase; color: var(--hr-muted); }
.hr-media__side { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hr-media__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.hr-media__item { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; }
.hr-media__thumb { flex: 0 0 150px; aspect-ratio: 16 / 9; position: relative; background: #dfe3e8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hr-media__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hr-media__title { font-family: var(--hr-serif); font-size: 19px; line-height: 1.25; color: var(--hr-navy); display: block; }
.hr-media__side .hr-btn { align-self: flex-start; margin-top: auto; font-size: 14px; }
.hr-empty { background: #ffffff; padding: 28px; border: 1px dashed #c7ccd2; color: var(--hr-muted); }

/* ---------- Promise CTA ---------- */
.hr-promise { background: var(--hr-blue-mid); padding: 0 var(--hr-gutter); overflow: hidden; }
.hr-promise__inner { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; }
.hr-promise__text { flex: 1 1 520px; min-width: 0; padding: 80px 0; display: flex; flex-direction: column; gap: 22px; color: #ffffff; }
.hr-promise__text h2 { color: #ffffff; }
.hr-promise__text .hr-eyebrow { color: #ffffff; }
.hr-promise__call { font-family: var(--hr-serif); font-size: 24px; }
.hr-promise__call span { color: #d6e6f8; }
.hr-promise__call a { color: #ffffff; text-decoration: none; }
.hr-promise .hr-btnrow { justify-content: flex-start; gap: 20px 30px; }
.hr-promise__photo { flex: 1 1 300px; min-width: 0; height: 460px; }
.hr-promise__photo.hr-photo--empty { background: #6a9bc7; color: #ffffff; }

/* ---------- Why choose ---------- */
.hr-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 40px; }
.hr-feature { background: var(--hr-grey); padding: 28px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.hr-feature svg { color: var(--hr-blue); }
.hr-feature h3 { font-size: 21px; line-height: 1.25; }
.hr-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 16px; }
.hr-gallery figure { margin: 0; }
.hr-gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.hr-gallery figcaption { text-align: left; position: absolute; left: 0; right: 0; bottom: 0; background: #ffffff; color: var(--hr-navy); font-family: var(--hr-serif); font-size: 18px; padding: 8px 16px; }
.hr-gallery figure:first-child figcaption { right: auto; background: var(--hr-blue); color: #ffffff; font-size: 20px; padding: 10px 20px; }
.hr-gallery .hr-photo--empty { padding-bottom: 50px; }

/* ---------- Booking ---------- */
.hr-book { display: flex; flex-wrap: wrap; gap: 40px 60px; align-items: center; }
.hr-form { flex: 1 1 460px; min-width: 0; background: #ffffff; box-shadow: 0 10px 40px rgba(12, 45, 87, .08); padding: clamp(20px, 2.8vw, 40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.hr-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--hr-navy); font-weight: 500; }
.hr-form input, .hr-form select, .hr-form textarea {
	font: inherit; font-size: 16px; font-weight: 400; padding: 14px 16px; border: 1px solid transparent;
	background: var(--hr-field); color: var(--hr-navy); width: 100%;
}
.hr-form input:focus, .hr-form select:focus, .hr-form textarea:focus { border-color: var(--hr-blue); outline: none; background: #ffffff; }
.hr-form textarea { resize: vertical; min-height: 120px; }
.hr-form .hr-full { grid-column: 1 / -1; }
.hr-form .hr-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--hr-text); font-size: 14px; line-height: 1.5; }
.hr-form .hr-consent input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; padding: 0; accent-color: var(--hr-blue); }
.hr-form .hr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hr-form .hr-btn { justify-self: start; }
.hr-notice { grid-column: 1 / -1; padding: 14px 18px; font-size: 15px; }
.hr-notice--ok { background: #e7f3ec; color: #1d5a35; border-left: 3px solid #2e8a52; }
.hr-notice--err { background: #fbecec; color: #8a1f1f; border-left: 3px solid #c0392b; }
/* Contact Form 7 inside the booking box */
.hr-form--cf7 { display: block; }
.hr-form--cf7 .wpcf7, .hr-form--cf7 form { margin: 0; }
.hr-cf7-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.hr-cf7-grid > label, .hr-cf7-grid > .hr-full { min-width: 0; }
.hr-cf7-grid .hr-full { grid-column: 1 / -1; }
.hr-form--cf7 label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--hr-navy); font-weight: 500; }
.hr-form--cf7 .wpcf7-form-control-wrap { display: block; }
.hr-form--cf7 input[type="text"], .hr-form--cf7 input[type="tel"], .hr-form--cf7 input[type="email"], .hr-form--cf7 input[type="date"], .hr-form--cf7 select, .hr-form--cf7 textarea {
	font: inherit; font-size: 16px; font-weight: 400; padding: 14px 16px; border: 1px solid transparent;
	background: var(--hr-field); color: var(--hr-navy); width: 100%; box-sizing: border-box;
}
.hr-form--cf7 input:focus, .hr-form--cf7 select:focus, .hr-form--cf7 textarea:focus { border-color: var(--hr-blue); outline: none; background: #ffffff; }
.hr-form--cf7 textarea { resize: vertical; min-height: 120px; }
.hr-cf7-consent, .hr-cf7-consent label { font-size: 14px; font-weight: 400; color: var(--hr-text); line-height: 1.5; }
.hr-cf7-consent .wpcf7-list-item { margin: 0; }
.hr-cf7-consent label { flex-direction: row; align-items: flex-start; gap: 10px; }
.hr-cf7-consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--hr-blue); }
.hr-form--cf7 .wpcf7-submit {
	font-family: var(--hr-sans); font-weight: 500; font-size: 15px; text-transform: uppercase; line-height: 1.2;
	padding: 15px 24px; border: 1px solid var(--hr-blue); background: var(--hr-blue); color: #ffffff; cursor: pointer;
}
.hr-form--cf7 .wpcf7-submit { width: auto; }
.hr-form--cf7 .wpcf7-submit:hover { background: var(--hr-blue-dark); border-color: var(--hr-blue-dark); }
.hr-form--cf7 .wpcf7-submit:disabled { opacity: .6; cursor: not-allowed; }
.hr-form--cf7 .wpcf7-spinner { vertical-align: middle; }
.hr-form--cf7 .wpcf7-not-valid-tip { font-size: 13px; color: #b32d2e; margin-top: 4px; font-weight: 400; }
.hr-form--cf7 .wpcf7-response-output { margin: 20px 0 0 !important; padding: 14px 18px !important; font-size: 15px; border-width: 0 0 0 3px !important; }
.hr-form--cf7 form.sent .wpcf7-response-output { background: #e7f3ec; color: #1d5a35; border-color: #2e8a52 !important; }
.hr-form--cf7 form.invalid .wpcf7-response-output, .hr-form--cf7 form.failed .wpcf7-response-output, .hr-form--cf7 form.unaccepted .wpcf7-response-output, .hr-form--cf7 form.spam .wpcf7-response-output { background: #fbecec; color: #8a1f1f; border-color: #c0392b !important; }

.hr-book__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hr-book__text .hr-h2 { font-size: clamp(30px, 3.1vw, 40px); }
.hr-book__contacts { display: flex; flex-direction: column; gap: 14px; }
.hr-book__contacts .hr-contact__icon { width: 44px; height: 44px; }
.hr-book__contacts a { font-weight: 500; color: var(--hr-navy); text-decoration: none; }

/* ---------- Location ---------- */
.hr-location { border: 1px solid var(--hr-line); display: flex; flex-wrap: wrap; }
.hr-location__map { flex: 2 1 420px; min-width: 0; min-height: 320px; background: #dfe7ee; display: flex; align-items: center; justify-content: center; color: var(--hr-text); font-size: 13px; text-align: center; }
.hr-location__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.hr-location__info { flex: 1 1 300px; min-width: 0; padding: clamp(24px, 2.8vw, 40px); display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.hr-location__info h3 { font-size: 28px; }
.hr-location__info a:not(.hr-btn) { font-weight: 500; color: var(--hr-navy); text-decoration: none; }
.hr-location__info .hr-btn { align-self: flex-start; margin-top: 12px; font-size: 14px; padding: 12px 20px; }

/* ---------- Footer ---------- */
.hr-footer { background: var(--hr-blue); color: #ffffff; padding: 60px var(--hr-gutter) 0; }
.hr-footer__inner { max-width: 1140px; margin: 0 auto; }
.hr-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; }
.hr-footer__brand { flex: 1.3 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 18px; color: var(--hr-on-blue); }
.hr-footer__brand img { align-self: flex-start; height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.hr-footer__col { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; }
.hr-footer__col--contact { flex: 1.2 1 240px; gap: 10px; }
.hr-footer h3 { color: #ffffff; font-size: 22px; margin-bottom: 10px; }
.hr-footer a, .hr-footer span { color: var(--hr-on-blue); text-decoration: none; }
.hr-footer a:hover { color: #ffffff; }
.hr-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hr-footer .hr-social { justify-content: flex-start; gap: 10px; }
.hr-footer .hr-social a { width: 40px; height: 40px; border: 1px solid #ffffff; border-radius: 999px; color: #ffffff; }
.hr-footer .hr-social a:hover { background: #ffffff; color: var(--hr-blue); }
.hr-footer__bottom { border-top: 1px solid #5a95c9; margin-top: 50px; padding: 22px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }
.hr-footer__bottom strong { color: #ffffff; }
.hr-footer__bottom .sep { color: #9cc3e6; margin: 0 6px; }

/* ---------- Inner pages (posts, media, search) ---------- */
.hr-page { max-width: 860px; margin: 0 auto; padding: calc(var(--hr-section) + 40px) var(--hr-gutter) var(--hr-section); }
.hr-page h1 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.2; margin-bottom: 18px; }
.hr-page .entry-content > * + * { margin-top: 1em; }
.hr-page .entry-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.hr-page .wp-block-embed__wrapper iframe { width: 100%; }
.hr-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.hr-results h2 { font-size: 24px; }
.hr-results h2 a { color: inherit; text-decoration: none; }
.hr-pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.hr-pagination .page-numbers { padding: 8px 14px; background: var(--hr-grey); text-decoration: none; }
.hr-pagination .current { background: var(--hr-blue); color: #ffffff; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--hr-muted); }

/* ---------- Tablet & mobile: hamburger (Elementor-style breakpoint) ---------- */
@media (max-width: 1024px) {
	.hr-nav__menu { display: none; }
	.hr-burger { display: flex; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
	.hr-doc__card { margin: -40px 16px 0; }
	.hr-doc__photo { max-width: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.hr-topbar__nav, .hr-contacts { display: none; }
	.hr-header__inner { justify-content: center; }
	.hr-hero { min-height: clamp(460px, 78vh, 600px); }
	.hr-hero__content { padding: 120px var(--hr-gutter) 90px; }
	.hr-marquee__set { gap: 36px; padding: 0 18px; }
	.hr-marquee__set img { height: 48px; max-width: 150px; }
	.hr-depts { grid-template-columns: 1fr; }
	.hr-dept h3 { font-size: 22px; }
	.hr-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 12px; }
	.hr-media__thumb { flex-basis: 120px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hr-marquee { -webkit-mask-image: none; mask-image: none; }
	.hr-marquee__track { animation: none; width: auto; }
	.hr-marquee__set { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
	.hr-marquee__set[aria-hidden="true"], .hr-marquee__set li[aria-hidden="true"] { display: none; }
	* { transition: none !important; }
}
