/* =====================================================================
   Neighboring Towns – page + single town
   /wp-content/themes/hello-elementor-child/assets/css/neighboring-towns.css

   Colors and fonts come from the site's Elementor Global settings
   (Site Settings > Global Colors / Global Fonts), so these pages always
   match the rest of rockhouseschool.com. The hex values after each
   variable are only fallbacks.
   ===================================================================== */

:root {
	--rh-primary: var(--e-global-color-primary, #151515);   /* site primary (dark) */
	--rh-accent: var(--e-global-color-626bc95, #e31e24);    /* site accent (buttons, hovers, dividers) */
	--rh-text: var(--e-global-color-text, #555555);
	--rh-dark: #151515;                                    /* same as the footer background */
	--rh-soft: #f7f7f7;
	--rh-line: #e6e6e6;
	--rh-font-heading: "Archivo", sans-serif;
	--rh-font-body: "DM Sans", sans-serif;
	--rh-container: 1200px;
}

.rh-nt,
.rh-town {
	font-family: var(--rh-font-body);
	color: var(--rh-text);
}

.rh-container {
	width: 100%;
	max-width: var(--rh-container);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

/* ---------- Theme overrides ----------
   Hello Elementor limits .site-main to 1140px and the Elementor kit
   colors every h1/h2. These rules win over both so the banner is full
   width and the headings keep the colors below. */

body .site-main.rh-nt,
body .site-main.rh-town {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Site header over the banner image (same as the site's other inner pages).
   Only applies on pages that contain the Neighboring Towns banner. */
body:has(.rh-banner) #page {
	position: relative;
}

body:has(.rh-banner) #masthead {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: transparent;
}

body:has(.rh-banner) #masthead .elementor-section,
body:has(.rh-banner) #masthead .elementor-background-overlay {
	background-color: transparent !important;
	background-image: none !important;
}

/* ---------- Shared pieces ---------- */

.rh-nt .rh-heading,
.rh-town .rh-heading,
.rh-nt .rh-banner-title,
.rh-town .rh-banner-title {
	margin: 0;
	font-family: var(--rh-font-heading);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.1;
}

.rh-nt .rh-heading,
.rh-town .rh-heading {
	color: var(--rh-primary);
	font-size: clamp(24px, 3vw, 34px);
}

.rh-divider {
	display: block;
	width: 70px;
	height: 3px;
	margin-top: 16px;
	background: var(--rh-accent);
}

.rh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 16px 36px;
	border: 2px solid var(--rh-accent);
	border-radius: 5px;
	background: var(--rh-accent);
	color: #fff;
	font-family: var(--rh-font-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.rh-btn:hover,
.rh-btn:focus {
	background: #fff;
	color: var(--rh-accent);
}

.rh-btn--outline {
	background: transparent;
	border-color: #fff;
	color: #fff;
}

.rh-btn--outline:hover,
.rh-btn--outline:focus {
	background: #fff;
	color: var(--rh-dark);
}

.rh-btn--block {
	width: 100%;
	box-sizing: border-box;
}

.rh-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--rh-accent);
	font-weight: 500;
	text-decoration: none;
}

.rh-link:hover {
	text-decoration: underline;
}

.rh-nt a:focus-visible,
.rh-town a:focus-visible {
	outline: 3px solid var(--rh-accent);
	outline-offset: 3px;
}

/* ---------- Banner ---------- */

/* Banner: background photo with a dark overlay, like the site's other inner pages.
   Extra top padding leaves room for the site header, which sits over the banner. */
.rh-banner {
	position: relative;
	padding: 200px 0 100px;
	background-color: var(--rh-dark);
	background-image:
		linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
		url("https://rockhouseschool.com/wp-content/uploads/2025/03/a-group-of-small-school-kids-and-teacher-with-guitar-sitting-on-the-floor-in-class.jpg");
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	color: #fff;
}

.rh-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.rh-breadcrumb li + li::before {
	content: "/";
	margin-right: 8px;
	color: rgba(255, 255, 255, 0.4);
}

.rh-breadcrumb a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

.rh-breadcrumb a:hover {
	color: var(--rh-accent);
}

.rh-nt .rh-banner .rh-banner-title,
.rh-town .rh-banner .rh-banner-title {
	color: #fff;
	text-transform: none;
	font-size: clamp(34px, 5vw, 56px);
}

.rh-banner-text {
	max-width: 680px;
	margin: 20px 0 0;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

.rh-banner-text p {
	margin: 0 0 12px;
}

.rh-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 30px;
}

/* ---------- Sections ---------- */

.rh-section {
	padding: 80px 0;
}

.rh-section--soft {
	background: var(--rh-soft);
}

.rh-section-head {
	margin-bottom: 40px;
	text-align: center;
}

.rh-section-head .rh-divider {
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Neighboring Towns list ---------- */

.rh-group + .rh-group {
	margin-top: 70px;
}

.rh-group-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 30px;
	margin-bottom: 30px;
}

.rh-town-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-town-grid li {
	margin: 0;
}

.rh-town-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 22px;
	height: 100%;
	min-height: 140px;
	padding: 28px 26px;
	box-sizing: border-box;
	background: var(--rh-soft);
	border-bottom: 3px solid transparent;
	border-radius: 5px;
	text-decoration: none;
	transition: background-color 0.25s, border-color 0.25s;
}

.rh-town-name {
	font-family: var(--rh-font-heading);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--rh-primary);
	transition: color 0.25s;
}

.rh-town-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 500;
	color: var(--rh-accent);
	transition: color 0.25s;
}

.rh-town-card:hover,
.rh-town-card:focus-visible {
	background: var(--rh-dark);
	border-bottom-color: var(--rh-accent);
}

.rh-town-card:hover .rh-town-name,
.rh-town-card:focus-visible .rh-town-name {
	color: #fff;
}

.rh-empty {
	font-size: 17px;
}

/* ---------- Single town ---------- */



.rh-town-content > *:first-child {
	margin-top: 0;
}



.rh-town .rh-town-content h2,
.rh-town .rh-town-content h3 {
	margin: 1.6em 0 0.6em;
	font-family: var(--rh-font-heading);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--rh-primary);
}

.rh-town-content a {
	color: var(--rh-accent);
}



.rh-town .rh-school-title {
	margin: 0;
	font-family: var(--rh-font-body);
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.rh-school-name {
	margin: 6px 0 20px;
	font-family: var(--rh-font-heading);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	text-transform: uppercase;
	color: #fff;
}





.rh-school-details i {
	margin-top: 4px;
	color: var(--rh-accent);
}

.rh-school-details a {
	color: #fff;
	text-decoration: none;
}



/* Testimonials – same feel as the homepage "What Our Students Say" */
.rh-review-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 24px;
}

.rh-review {
	position: relative;
	margin: 0;
	padding: 34px 30px 28px;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.rh-review-icon {
	display: block;
	margin-bottom: 14px;
	font-size: 34px;
	color: var(--rh-accent);
}

.rh-review blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 16px;
	font-style: normal;
	line-height: 1.7;
	color: var(--rh-text);
}

.rh-review blockquote p {
	margin: 0 0 10px;
}

.rh-review figcaption {
	margin-top: 14px;
	font-family: var(--rh-font-heading);
	font-size: 17px;
	font-weight: 700;
	color: var(--rh-primary);
}

/* Single town: featured image + content at the full container width (1200px) */
.rh-town .rh-town-image {
	margin: 0 0 40px;
}

.rh-town .rh-town-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
	border-radius: 5px;
}

.rh-town .rh-town-content {
	width: 100%;
	max-width: none;
	font-size: 17px;
	line-height: 1.75;
}

/* Nearest school: full-width bar under the content */
.rh-town .rh-school-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	margin-top: 50px;
	padding: 34px 40px;
	background: var(--rh-dark);
	border-left: 4px solid var(--rh-accent);
	border-radius: 5px;
	color: #fff;
}

.rh-town .rh-school-details {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 1.5;
}

.rh-town .rh-school-details li {
	display: flex;
	gap: 10px;
}

.rh-town .rh-school-name {
	margin-bottom: 12px;
}

.rh-school-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* Testimonial slider: 3 per view on desktop, 2 on tablet, 1 on mobile */
.rh-slider {
	--rh-per-view: 2;
	--rh-gap: 24px;
	position: relative;
	padding: 0 64px; /* room for the side arrows */
}

.rh-slider .rh-review {
	text-align: center;
	padding: 44px 50px 36px;
}

.rh-slider-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--rh-per-view) - 1) * var(--rh-gap)) / var(--rh-per-view));
	gap: var(--rh-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 6px 2px 18px; /* room for the card shadow */
	outline: none;
}

.rh-slider-track::-webkit-scrollbar {
	display: none;
}

.rh-slider-track:focus-visible {
	outline: 3px solid var(--rh-accent);
	outline-offset: 4px;
}

.rh-slide {
	scroll-snap-align: start;
}

/* Arrows sit on the left and right of the slides */
.rh-slider-nav .rh-slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	background: #fff;
}

.rh-slider-nav [data-dir="prev"] {
	left: 0;
}

.rh-slider-nav [data-dir="next"] {
	right: 0;
}

.rh-slider-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 2px solid var(--rh-accent);
	border-radius: 50%;
	background: transparent;
	color: var(--rh-accent);
	font-size: 15px;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.rh-slider-nav .rh-slider-btn:hover,
.rh-slider-nav .rh-slider-btn:focus-visible {
	background: var(--rh-accent);
	color: #fff;
}

.rh-slider-btn:focus-visible {
	outline: 3px solid var(--rh-primary);
	outline-offset: 3px;
}

.rh-slider--static {
	padding: 0 !important;
}

.rh-slider--static .rh-slider-nav {
	display: none;
}

/* ---------- Responsive (Elementor breakpoints) ---------- */

@media (max-width: 767px) {
	.rh-banner {
		padding: 140px 0 70px;
	}

	.rh-section {
		padding: 56px 0;
	}

	.rh-banner-actions .rh-btn {
		width: 100%;
	}

	.rh-slider {
		--rh-per-view: 1;
		--rh-gap: 16px;
		padding: 0 0 66px; /* arrows move below the slide */
	}

	.rh-slider-nav .rh-slider-btn {
		top: auto;
		bottom: 0;
		transform: none;
	}

	.rh-slider-nav [data-dir="prev"] {
		left: calc(50% - 56px);
	}

	.rh-slider-nav [data-dir="next"] {
		right: calc(50% - 56px);
	}

	.rh-slider .rh-review {
		padding: 34px 24px 28px;
	}

	.rh-town .rh-school-box {
		padding: 28px 24px;
	}

	.rh-school-actions,
	.rh-school-actions .rh-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rh-btn,
	.rh-town-card,
	.rh-town-name,
	.rh-town-more,
	.rh-slider-btn {
		transition: none;
	}
}

/* =====================================================================
   Overrides for the theme / Elementor kit
   The Elementor kit and Hello theme style every <a> and <button>
   (link color, button background, padding, borders). These rules are
   stronger so the Sign Up Now text and the slider arrows stay visible.
   ===================================================================== */

/* Buttons (Sign Up Now, View School, View Location) */
.rh-nt a.rh-btn,
.rh-town a.rh-btn,
.rh-nt a.rh-btn:visited,
.rh-town a.rh-btn:visited {
	background-color: var(--rh-accent) !important;
	border: 2px solid var(--rh-accent) !important;
	color: #fff !important;
	text-decoration: none !important;
}

.rh-nt a.rh-btn:hover,
.rh-town a.rh-btn:hover,
.rh-nt a.rh-btn:focus,
.rh-town a.rh-btn:focus {
	background-color: #fff !important;
	color: var(--rh-accent) !important;
}

.rh-nt a.rh-btn.rh-btn--outline,
.rh-town a.rh-btn.rh-btn--outline {
	background-color: transparent !important;
	border-color: #fff !important;
	color: #fff !important;
}

.rh-nt a.rh-btn.rh-btn--outline:hover,
.rh-town a.rh-btn.rh-btn--outline:hover,
.rh-nt a.rh-btn.rh-btn--outline:focus,
.rh-town a.rh-btn.rh-btn--outline:focus {
	background-color: #fff !important;
	color: var(--rh-dark) !important;
}

/* Slider arrows */
.rh-town .rh-slider .rh-slider-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 46px !important;
	height: 46px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid var(--rh-accent) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--rh-accent) !important;
	box-shadow: none !important;
	line-height: 1 !important;
	font-size: 0 !important;
}

.rh-town .rh-slider .rh-slider-btn:hover,
.rh-town .rh-slider .rh-slider-btn:focus-visible {
	background: var(--rh-accent) !important;
	color: #fff !important;
}

.rh-town .rh-slider .rh-slider-btn svg {
	display: block;
	width: 16px;
	height: 16px;
	stroke: currentColor;
}

/* Text links (Visit our school, View location) */
.rh-nt a.rh-link,
.rh-town a.rh-link {
	color: var(--rh-accent) !important;
}