/*
Theme Name:   Astra Child — Rental Tech Consultants
Theme URI:    https://rentaltechconsultants.com/
Description:  Child theme for the 2026 rebuild of rentaltechconsultants.com on Astra. Colours and fonts live in Astra's Global Colours / Typography; this file adds the few layout details the blocks need.
Author:       Rental Tech Consultants
Template:     astra
Version:      1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* -------------------------------------------------------------------------
 * Tokens (mirror the Astra global palette; see build/import/astra-settings.php)
 * ---------------------------------------------------------------------- */
:root {
	--rtc-blue: var(--ast-global-color-0, #2B7A9E);   /* links, buttons (AA on white) */
	--rtc-navy: var(--ast-global-color-1, #002C57);
	--rtc-heading: var(--ast-global-color-2, #222222);
	--rtc-text: var(--ast-global-color-3, #5A5A5A);
	--rtc-alt-bg: var(--ast-global-color-5, #F3F7FA);
	--rtc-deep: var(--ast-global-color-6, #071333);
	--rtc-border: var(--ast-global-color-7, #DCE6EC);
	--rtc-brand: var(--ast-global-color-8, #499BBC);  /* the logo blue: accents, on dark */
	--rtc-radius: 12px;
	--rtc-shadow: 0 1px 2px rgba(7, 19, 51, .06), 0 8px 24px rgba(7, 19, 51, .06);
	--rtc-shadow-hover: 0 2px 4px rgba(7, 19, 51, .08), 0 16px 40px rgba(7, 19, 51, .12);
}

html,
body {
	overflow-x: clip;   /* belt and braces for 375px: nothing may scroll sideways */
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	text-underline-offset: .18em;
}

.entry-content a:not(.wp-block-button__link):not(.wp-element-button) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.entry-content a:not(.wp-block-button__link):hover {
	text-decoration-thickness: 2px;
}

.entry-content p,
.entry-content li,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
	overflow-wrap: break-word;
}

:focus-visible {
	outline: 2px solid var(--rtc-brand);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */
.rtc-topbar-link {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	margin-right: 1.6em;
	color: inherit;
	text-decoration: none;
}

.rtc-topbar-link:hover {
	color: #fff;
}

.rtc-topbar-link svg {
	color: var(--rtc-brand);
	flex: none;
}

.ast-header-html-1 .ast-builder-html-element p {
	margin: 0;
}

.ast-builder-menu-1 .menu-item > .menu-link {
	letter-spacing: .04em;
}

.ast-header-button-1 .ast-custom-button {
	box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
}

/* Mobile dropdown: comfortable tap targets and a tidy contact block. */
.ast-mobile-header-content .ast-builder-layout-element,
#ast-mobile-popup .ast-builder-layout-element {
	padding-left: 20px;
	padding-right: 20px;
}

.ast-mobile-header-content .ast-header-html-1 .ast-builder-html-element {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 0;
}

.ast-mobile-header-content .rtc-topbar-link {
	margin: 0;
	color: var(--rtc-heading);
}

.ast-mobile-header-content .ast-header-button-1 .ast-custom-button {
	display: block;
	text-align: center;
}

.ast-mobile-header-content .ast-builder-social-element {
	padding: 6px 0 16px;
}

/* -------------------------------------------------------------------------
 * Title band (Astra "Layout 2" banner)
 * ---------------------------------------------------------------------- */
.ast-single-entry-banner {
	background-image:
		radial-gradient(circle at 85% 20%, rgba(73, 155, 188, .28) 0, rgba(73, 155, 188, 0) 45%),
		linear-gradient(135deg, #002C57 0%, #071333 100%) !important;
}

.ast-single-entry-banner .ast-container > * {
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.ast-single-entry-banner .ast-breadcrumbs-wrapper,
.ast-single-entry-banner .ast-breadcrumbs {
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
}

.ast-single-entry-banner .entry-meta,
.ast-single-entry-banner .entry-meta * {
	font-size: 14px;
}

/* -------------------------------------------------------------------------
 * Content rhythm
 * ---------------------------------------------------------------------- */
.ast-plain-container.ast-no-sidebar #primary {
	margin-top: 64px;
	margin-bottom: 80px;
}

.home.ast-plain-container.ast-no-sidebar #primary,
.home #primary {
	margin-top: 0;
	margin-bottom: 0;
}

@media (max-width: 921px) {
	.ast-plain-container.ast-no-sidebar #primary {
		margin-top: 44px;
		margin-bottom: 56px;
	}
}

.rtc-eyebrow {
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--rtc-blue);
	margin-bottom: .6em !important;
}

.rtc-lead {
	font-size: 1.15em;
	line-height: 1.7;
	color: var(--rtc-heading);
}

.rtc-intro {
	max-width: 820px;
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: center;
}

.rtc-narrow {
	max-width: 860px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.rtc-rounded img {
	border-radius: var(--rtc-radius);
	box-shadow: var(--rtc-shadow);
}

.entry-content > * + .rtc-steps,
.entry-content > * + .rtc-feature-intro,
.entry-content > * + .rtc-accordions,
.entry-content > * + .rtc-prose {
	margin-top: 64px;
}

/* -------------------------------------------------------------------------
 * Home hero (Spectra container)
 * ---------------------------------------------------------------------- */
.rtc-hero {
	background-image:
		radial-gradient(circle at 12% 110%, rgba(73, 155, 188, .35) 0, rgba(73, 155, 188, 0) 40%),
		linear-gradient(135deg, #002C57 0%, #071333 70%) !important;
	color: #DCE6EC;
	min-height: min(78vh, 720px);
}

.rtc-hero .rtc-eyebrow {
	color: var(--rtc-brand);
	letter-spacing: .32em;
}

.rtc-hero .rtc-hero-title {
	color: #fff;
	font-size: clamp(32px, 4.2vw, 54px);
	line-height: 1.15;
	text-wrap: balance;
	font-weight: 600;
	margin: 0;
}

.rtc-hero .rtc-hero-title em {
	font-style: italic;
	color: var(--rtc-brand);
}

.rtc-hero .wp-block-button__link {
	background: var(--rtc-brand);
	color: #071333;
	border: 2px solid var(--rtc-brand);
}

.rtc-hero .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
	color: #071333;
}

.rtc-hero .is-style-outline .wp-block-button__link,
.rtc-hero .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	background: transparent !important;
	color: #fff !important;
	border: 2px solid rgba(255, 255, 255, .7) !important;
}

.rtc-hero .is-style-outline .wp-block-button__link:hover {
	background: #fff;
	color: #071333;
}

.rtc-hero .rtc-hero-image {
	margin: 0;
	width: 100%;
}

.rtc-hero .rtc-hero-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 16px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

@media (max-width: 767px) {
	.rtc-hero {
		min-height: 0;
	}
	.rtc-hero .wp-block-buttons {
		gap: 12px;
	}
	.rtc-hero .rtc-hero-image img {
		aspect-ratio: 16 / 10;
	}
}

/* -------------------------------------------------------------------------
 * Cards (services, reviews, steps)
 * ---------------------------------------------------------------------- */
.rtc-cards,
.rtc-steps,
.rtc-contact-boxes {
	gap: 28px !important;
}

.rtc-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--rtc-border);
	border-radius: var(--rtc-radius);
	box-shadow: var(--rtc-shadow);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.rtc-card:hover {
	box-shadow: var(--rtc-shadow-hover);
	transform: translateY(-2px);
}

.rtc-card > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.rtc-card .rtc-card-image {
	margin: 0;
}

.rtc-card .rtc-card-image img {
	display: block;
	width: 100%;
	aspect-ratio: 37 / 24;
	object-fit: cover;
	object-position: top center;
}

.rtc-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 26px 28px;
}

.rtc-card-body > * {
	margin-top: 0 !important;
	margin-bottom: 14px !important;
}

.rtc-card-body h3 {
	font-size: 20px;
	line-height: 1.35;
}

.rtc-card-body h3 a {
	color: var(--rtc-heading);
	text-decoration: none !important;
}

.rtc-card-body h3 a:hover {
	color: var(--rtc-blue);
}

.rtc-card-body .rtc-card-buttons {
	margin-top: auto !important;
	margin-bottom: 0 !important;
	padding-top: 6px;
}

.rtc-card-meta {
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.rtc-card-meta a {
	text-decoration: none !important;
}

.rtc-step {
	padding: 30px 28px 26px;
}

.rtc-step > * + * {
	margin-top: 12px !important;
}

.rtc-step-num {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--rtc-brand);
	color: #071333;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
}

.rtc-step h3 {
	font-size: 20px;
}

/* -------------------------------------------------------------------------
 * Accordions (core/details) on "Choosing Rental Software"
 * ---------------------------------------------------------------------- */
.rtc-accordions {
	max-width: 900px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.rtc-accordions > .wp-block-details {
	border: 1px solid var(--rtc-border);
	border-radius: 10px;
	background: #fff;
	margin: 0 0 12px !important;
	padding: 0;
	transition: box-shadow .2s ease;
}

.rtc-accordions > .wp-block-details[open] {
	box-shadow: var(--rtc-shadow);
}

.rtc-accordions summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 18px 56px 18px 22px;
	font-weight: 600;
	color: var(--rtc-heading);
	font-size: 17px;
}

.rtc-accordions summary::-webkit-details-marker {
	display: none;
}

.rtc-accordions summary::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -7px;
	border-right: 2px solid var(--rtc-blue);
	border-bottom: 2px solid var(--rtc-blue);
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.rtc-accordions details[open] > summary::after {
	transform: rotate(-135deg);
	margin-top: -2px;
}

.rtc-accordions details > :not(summary) {
	padding: 0 22px;
}

.rtc-accordions details > :last-child {
	padding-bottom: 6px;
}

.rtc-prose {
	max-width: 900px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.rtc-prose h2 {
	margin-top: 1.8em;
}

.rtc-prose h3 {
	margin-top: 1.4em;
}

/* -------------------------------------------------------------------------
 * About
 * ---------------------------------------------------------------------- */
.rtc-about .rtc-eyebrow + p,
.rtc-about .screen-reader-text + p {
	margin-top: 0;
}

/* -------------------------------------------------------------------------
 * FAQ (Spectra)
 * ---------------------------------------------------------------------- */
.rtc-faq .uagb-faq-child__outer-wrap {
	border: 1px solid var(--rtc-border);
	border-radius: 10px;
	margin-bottom: 12px;
	background: #fff;
	overflow: hidden;
}

.rtc-faq .uagb-faq-questions-button {
	padding: 18px 22px !important;
}

.rtc-faq .uagb-question {
	font-size: 17px;
	font-weight: 600;
	color: var(--rtc-heading);
	margin: 0;
}

.rtc-faq .uagb-faq-content {
	padding: 0 22px 18px !important;
}

.rtc-faq .uagb-icon svg,
.rtc-faq .uagb-icon-active svg {
	fill: var(--rtc-blue);
}

/* -------------------------------------------------------------------------
 * Contact / Hire Us
 * ---------------------------------------------------------------------- */
.rtc-contact-boxes {
	max-width: 760px;
	margin-left: auto !important;
	margin-right: auto !important;
}

.rtc-contact-boxes > .wp-block-uagb-info-box {
	background: #fff;
	border: 1px solid var(--rtc-border);
	border-radius: var(--rtc-radius);
	box-shadow: var(--rtc-shadow);
	padding: 36px 24px 30px;
}

.rtc-info-box .uagb-ifb-title {
	font-family: "Montserrat", sans-serif;
	font-size: 16px !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.rtc-info-box .uagb-ifb-desc a {
	font-weight: 600;
	font-size: 17px;
	text-decoration: none !important;
	overflow-wrap: anywhere;
}

.rtc-form-card {
	max-width: 900px;
	margin-left: auto !important;
	margin-right: auto !important;
	background: #fff;
	border: 1px solid var(--rtc-border);
	border-radius: var(--rtc-radius);
	box-shadow: var(--rtc-shadow);
	padding: 40px 44px 36px;
}

@media (max-width: 600px) {
	.rtc-form-card {
		padding: 26px 18px 22px;
	}
}

/* Ninja Forms */
.nf-form-cont .nf-form-fields-required {
	font-size: 13px;
	margin-bottom: 14px;
}

.nf-form-cont .nf-field-label label {
	font-weight: 600;
	color: var(--rtc-heading);
	font-size: 15px;
}

.nf-form-cont .ninja-forms-req-symbol {
	color: #C0392B;
}

.nf-form-cont input[type="text"],
.nf-form-cont input[type="email"],
.nf-form-cont input[type="tel"],
.nf-form-cont input[type="url"],
.nf-form-cont textarea,
.nf-form-cont select {
	width: 100%;
	border: 1px solid #C9D6DF !important;
	border-radius: 8px !important;
	background: #fff !important;
	padding: 12px 14px !important;
	font-size: 16px !important;
	color: var(--rtc-heading) !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.nf-form-cont textarea {
	min-height: 180px;
}

.nf-form-cont input:focus,
.nf-form-cont textarea:focus {
	border-color: var(--rtc-blue) !important;
	box-shadow: 0 0 0 3px rgba(73, 155, 188, .25);
	outline: none;
}

.nf-form-cont .listcheckbox-wrap ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 6px 24px;
	margin: 4px 0 0 !important;
}

.nf-form-cont .listcheckbox-wrap li {
	margin: 0 !important;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.nf-form-cont .listcheckbox-wrap li label {
	font-weight: 400 !important;
	margin: 0 !important;
}

.nf-form-cont input[type="submit"],
.nf-form-cont input[type="button"] {
	background: var(--rtc-blue) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 6px !important;
	padding: 14px 34px !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	cursor: pointer;
}

.nf-form-cont input[type="submit"]:hover {
	background: var(--rtc-navy) !important;
}

/* Two fields per row on wide screens (Ninja Forms "one-half" classes), one per row on phones. */
@media (max-width: 640px) {
	.nf-form-cont .one-half,
	.nf-form-cont .one-half.first {
		float: none !important;
		width: 100% !important;
		margin-left: 0 !important;
		clear: both;
	}
}

/* -------------------------------------------------------------------------
 * Reviews (single posts)
 * ---------------------------------------------------------------------- */
.single-post .entry-content .wp-block-image img {
	border: 1px solid var(--rtc-border);
	border-radius: 8px;
	box-shadow: var(--rtc-shadow);
}

.single-post .entry-content .wp-block-image figcaption {
	text-align: center;
	font-size: 14px;
	color: var(--rtc-text);
}

.single-post .entry-content h2 {
	margin-top: 1.6em;
}

.single-post .entry-content .wp-block-columns {
	gap: 32px;
}

.single-post .entry-content .wp-block-columns .wp-block-column {
	background: var(--rtc-alt-bg);
	border-radius: var(--rtc-radius);
	padding: 8px 26px 12px;
}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */
.site-footer .rtc-footer-logo {
	width: 200px;
	height: auto;
}

.site-footer .rtc-footer-about {
	max-width: 340px;
	font-size: 14px;
	line-height: 1.7;
}

.site-footer .rtc-footer-title {
	color: #fff;
	font-size: 15px;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 18px;
}

.site-footer .rtc-footer-contact {
	margin-bottom: 10px;
}

.site-footer .rtc-footer-contact a {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	color: #C9D6DF;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.site-footer .rtc-footer-contact a:hover {
	color: #fff;
}

.site-footer .rtc-footer-contact svg {
	color: var(--rtc-brand);
	flex: none;
}

.site-footer .footer-widget-area[data-section="section-footer-menu"]::before {
	content: "Quick Links";
	display: block;
	color: #fff;
	font-size: 15px;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

@media (max-width: 921px) {
	.site-footer .footer-widget-area[data-section="section-footer-menu"]::before {
		text-align: center;
	}
}

.site-footer .ast-footer-copyright {
	font-size: 14px;
}

/* -------------------------------------------------------------------------
 * Small screens
 * ---------------------------------------------------------------------- */
@media (max-width: 544px) {
	.entry-content .wp-block-buttons > .wp-block-button {
		width: 100%;
	}
	.entry-content .wp-block-buttons > .wp-block-button .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
	.rtc-cards,
	.rtc-steps,
	.rtc-contact-boxes {
		gap: 20px !important;
	}
}
