﻿/*
Theme Name: RAMS
Description: Presentation-only Hello Elementor child theme for the RAMS multisite.
Author: Orion Creative
Update URI: https://orioncreative.com.au/rams-theme
Template: hello-elementor
Version: 0.2.1
Requires at least: 6.8
Requires PHP: 7.4
Text Domain: rams
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

:root {
	--rams-shell-navy: #08243f;
	--rams-shell-deep-navy: #03101d;
	--rams-shell-blue: #0056a7;
	--rams-shell-orange: #f59e0b;
	--rams-shell-white: #fff;
	--rams-shell-light-grey: #f7f7f7;
	--rams-shell-border: #e5e7eb;
	--rams-shell-text: #474747;
	--rams-shell-content: 72rem;
	--rams-z-skip-link: 100;
	--rams-font-display: "asfalto", "vinyl", sans-serif;
	--rams-font-body: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
	max-inline-size: 100%;
	overflow-x: clip;
	scroll-padding-block-start: 1rem;
}

body.rams-theme {
	max-inline-size: 100%;
	overflow-x: clip;
	font-family: var(--rams-font-body);
}

body.rams-theme :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--rams-shell-orange);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--rams-shell-deep-navy);
}

.rams-skip-link {
	position: fixed;
	inset-block-start: 1rem;
	inset-inline-start: 1rem;
	z-index: var(--rams-z-skip-link);
	padding: 0.75rem 1rem;
	transform: translateY(calc(-100% - 2rem));
	background: var(--rams-shell-white);
	color: var(--rams-shell-deep-navy);
	font-weight: 700;
	text-decoration: none;
}

.rams-skip-link:focus {
	transform: translateY(0);
}

.rams-fallback-header,
.rams-fallback-footer {
	background: var(--rams-shell-deep-navy);
	color: var(--rams-shell-white);
}

.rams-fallback-header__inner,
.rams-fallback-footer__inner,
.rams-site-main > .rams-fallback-content {
	width: min(var(--rams-shell-content), calc(100% - 2rem));
	margin-inline: auto;
}

.rams-fallback-header__inner,
.rams-fallback-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-block: 1rem;
}

.rams-fallback-branding {
	min-inline-size: 0;
}

.rams-fallback-branding__name {
	margin: 0;
	font-family: var(--rams-font-display);
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
}

.rams-fallback-branding__name a,
.rams-fallback-navigation a,
.rams-fallback-footer a {
	color: inherit;
}

.rams-fallback-branding__description,
.rams-fallback-footer p {
	margin: 0.35rem 0 0;
}

.rams-fallback-navigation ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rams-fallback-navigation li {
	min-inline-size: 0;
}

.rams-fallback-navigation a {
	display: block;
	padding-block: 0.65rem;
	font-weight: 700;
	overflow-wrap: anywhere;
	text-decoration-thickness: 0.125em;
	text-underline-offset: 0.2em;
}

.rams-fallback-navigation .sub-menu {
	padding-inline-start: 1rem;
}

.rams-site-main {
	min-inline-size: 0;
}

.rams-site-main > .rams-fallback-content {
	padding-block: clamp(2rem, 6vw, 5rem);
}

.rams-fallback-content :where(h1, h2, h3) {
	text-wrap: balance;
}

.rams-fallback-content__header > h1,
.rams-fallback-entry > .entry-title {
	color: var(--rams-shell-navy);
}

.rams-fallback-content :where(p, li) {
	overflow-wrap: break-word;
	text-wrap: pretty;
}

.rams-fallback-content .entry-content a:not(.wp-element-button) {
	text-decoration: underline;
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.15em;
}

.rams-fallback-content__header,
.rams-fallback-entry,
.rams-fallback-empty,
.rams-pagination {
	max-inline-size: 72ch;
	margin-inline: auto;
}

.rams-fallback-entry + .rams-fallback-entry {
	margin-block-start: 3rem;
	padding-block-start: 3rem;
	border-block-start: 1px solid var(--rams-shell-border);
}

.rams-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
	margin-block-start: 3rem;
}

body.rams-theme :where(img, picture, video, canvas, svg, iframe) {
	max-inline-size: 100%;
	height: auto;
}

body.rams-theme :where(input, select, textarea, button) {
	max-inline-size: 100%;
}

body.rams-theme :where(pre, code) {
	overflow-wrap: anywhere;
}

body.rams-theme table {
	display: block;
	max-inline-size: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.rams-standard-content-page__content {
	min-inline-size: 0;
	margin-inline: auto;
	max-width: 72rem;
}

.rams-standard-content-page__content > :first-child {
	margin-top: 0;
}

.rams-standard-content-page__content > :last-child {
	margin-bottom: 0;
}

/*
 * T11 option-driven components.
 *
 * Elementor owns the surrounding bands and atomic layout. These descendants
 * are emitted by shortcodes only where Elementor cannot iterate an ACF options
 * repeater or remove a disabled option group without leaving an empty region.
 */
.rams-option-hero {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(1rem, 2vw, 1.5rem);
	max-width: 48rem;
}

.rams-option-hero__title,
.rams-announcement__title,
.rams-homepage-cta__title {
	margin: 0;
	font-family: var(--rams-font-display);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	text-wrap: balance;
}

.rams-option-hero__title {
	color: var(--rams-shell-white);
	font-size: clamp(3.25rem, 8vw, 6rem);
	letter-spacing: -0.015em;
}

.rams-option-hero__supporting,
.rams-announcement__supporting {
	max-width: 65ch;
	font-size: clamp(1rem, 1.5vw, 1.125rem);
	line-height: 1.55;
}

.rams-option-hero__supporting :where(p),
.rams-announcement__supporting :where(p) {
	margin: 0;
}

.rams-announcement__supporting {
	color: var(--rams-shell-white);
}

.rams-option-button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.375rem;
	border: 1px solid transparent;
	border-radius: 5px;
	font-family: var(--rams-font-body);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.rams-option-button--primary {
	border-color: var(--rams-shell-blue);
	background: var(--rams-shell-blue);
	color: var(--rams-shell-white) !important;
}

.rams-option-button--announcement {
	background: var(--rams-shell-deep-navy);
	color: var(--rams-shell-white);
}

.rams-option-button--secondary {
	border-color: var(--rams-shell-navy);
	background: var(--rams-shell-white);
	color: var(--rams-shell-navy);
}

.rams-announcement {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 2.5rem;
	width: 100%;
}

.rams-announcement__copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.5rem;
}

.rams-announcement__title {
	color: var(--rams-shell-deep-navy);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.rams-homepage-ctas {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 3rem);
}

.rams-homepage-cta {
	display: grid;
	grid-template-rows: minmax(14rem, 22vw) auto;
	min-width: 0;
	overflow: clip;
	border: 0;
	border-radius: 0;
	background: var(--rams-shell-white);
	color: inherit;
	text-decoration: none;
}

.rams-homepage-cta__media,
.rams-homepage-cta__image {
	width: 100%;
	height: 100%;
}

.rams-homepage-cta__image {
	display: block;
	object-fit: cover;
}

.rams-homepage-cta__body {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 1.5rem;
	padding: clamp(1.5rem, 3vw, 2rem);
}

.rams-homepage-cta__title {
	color: var(--rams-shell-navy);
	font-size: clamp(2rem, 4vw, 3rem);
}

.rams-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
}

.rams-social-links__link {
	color: inherit;
	font-weight: 700;
	text-underline-offset: 0.2em;
}

.rams-copyright {
	margin: 0;
}

@media (max-width: 48rem) {
	.rams-fallback-header__inner,
	.rams-fallback-footer__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.rams-fallback-navigation,
	.rams-fallback-navigation ul {
		width: 100%;
	}

	.rams-fallback-navigation ul {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.rams-fallback-navigation .sub-menu {
		display: block;
		position: static;
		padding-inline-start: 1rem;
	}

	.rams-announcement {
		align-items: flex-start;
		flex-direction: column;
	}

	.rams-homepage-ctas {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/*
 * Local shell refinement.
 *
 * Elementor still owns the header, footer, and page documents. These rules
 * only correct shared presentation seams so the documents remain editable
 * without changing their stored content.
 */
body.rams-theme {
	--rams-shell-content: 77.5rem;
	background: var(--rams-shell-white);
	color: var(--rams-shell-text);
}

body.rams-theme :where(.elementor-location-header, .elementor-location-footer) {
	width: 100%;
	margin: 0;
}

body.rams-theme .elementor-location-footer > div {
	width: 100%;
	min-height: 0;
	margin: 0;
}

.rams-option-button:is(:hover, :focus-visible) {
	border-color: var(--rams-shell-orange);
	background: var(--rams-shell-orange);
	color: var(--rams-shell-white) !important;
}

body.rams-theme main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 !important;
}

body.rams-theme main > section,
body.rams-theme main > .e-con {
	width: 100%;
	max-width: none;
	margin: 0 !important;
	border-radius: 0;
}

body.rams-theme .elementor-location-footer > div {
	padding: 3.5rem 1.5rem 2rem !important;
	background: var(--rams-shell-deep-navy);
	border-top: 0 !important;
}

body.rams-theme .elementor-location-footer {
	font-family: var(--rams-font-body);
	color: var(--rams-shell-white);
	border-top: 0 !important;
}

body.rams-theme .elementor-location-footer > div > div {
	width: min(var(--rams-shell-content), 100%);
	min-height: 0;
	margin-inline: auto;
	padding: 0 !important;
	align-items: center;
	gap: 1.5rem;
}

body.rams-theme .elementor-location-footer .type-h2 {
	margin: 0;
	color: var(--rams-shell-white);
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1;
	text-align: center;
}

body.rams-theme .elementor-location-footer .type-body {
	margin: 0;
	color: var(--rams-shell-white);
	font-family: var(--rams-font-body);
	text-align: center;
}

body.rams-theme .elementor-location-footer .elementor-nav-menu {
	justify-content: center;
	gap: 0;
}

body.rams-theme .elementor-location-footer .elementor-nav-menu a {
	min-height: 2.75rem;
	align-items: center;
	padding: 0.75rem 0.625rem;
	color: var(--rams-shell-white);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-decoration: none;
	text-transform: uppercase;
}

body.rams-theme .elementor-location-footer .elementor-nav-menu .sub-menu {
	display: none !important;
}

body.rams-theme .elementor-location-footer .elementor-nav-menu a[aria-current="page"],
body.rams-theme .elementor-location-footer .rams-social-links__link,
body.rams-theme .elementor-location-footer .rams-copyright {
	color: var(--rams-shell-white);
}

body.rams-theme .elementor-location-footer .elementor-nav-menu a:is(:hover, :focus-visible) {
	color: var(--rams-shell-orange);
}

body.rams-theme .elementor-location-footer .rams-copyright {
	margin: 0;
	color: var(--rams-shell-white);
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: center;
}

body.rams-theme.search main > section:first-child,
body.rams-theme.error404 main > section:first-child {
	padding-block: clamp(3.5rem, 8vw, 6rem) !important;
}

body.rams-theme.search main > section:first-child > .e-con,
body.rams-theme.error404 main > section:first-child > .e-con {
	align-items: flex-start;
}

body.rams-theme.search main .elementor-search-form__container {
	gap: 0.75rem;
	background: transparent;
	overflow: visible;
}

body.rams-theme.search main .elementor-search-form__input {
	min-height: 3.25rem;
	border: 1px solid var(--rams-shell-border);
	border-radius: 5px;
}

body.rams-theme.search main .elementor-search-form__submit {
	min-width: 7rem;
	min-height: 3.25rem;
	border-radius: 5px;
	background: var(--rams-shell-blue);
	color: var(--rams-shell-white);
	font-family: var(--rams-font-body);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

body.rams-theme.search main > section:nth-child(2) {
	padding-block: clamp(3.5rem, 7vw, 5rem) !important;
}

body.rams-theme.search .elementor-posts-container {
	display: flex;
	flex-direction: column;
	gap: 0;
}

body.rams-theme.search .elementor-post {
	display: block;
	width: 100%;
	min-height: 0;
	padding: 1.5rem 0;
	border-top: 1px solid var(--rams-shell-border);
	overflow: visible;
}

body.rams-theme.search .elementor-post:first-child {
	padding-top: 0;
	border-top: 0;
}

body.rams-theme.search .elementor-post__text {
	width: 100%;
}

body.rams-theme.search .elementor-post__title {
	margin: 0 0 0.5rem;
	font-family: var(--rams-font-body);
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.25;
}

body.rams-theme.search .elementor-post__title a {
	color: var(--rams-shell-navy);
	text-decoration: none;
}

body.rams-theme.search .elementor-post__title a:is(:hover, :focus-visible) {
	color: var(--rams-shell-blue);
}

body.rams-theme.search .elementor-post__excerpt {
	max-width: 70ch;
	margin: 0 0 0.625rem;
	color: var(--rams-shell-text);
}

body.rams-theme.search .elementor-post__excerpt :where(p) {
	margin: 0;
}

body.rams-theme.search .elementor-post__read-more {
	display: inline-block;
	color: var(--rams-shell-blue);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.2em;
	text-transform: uppercase;
}

body.rams-theme :where(.rams-option-button, .elementor-button) {
	/* No transition declaration: RAMS retains a no-motion contract. */
}

body.rams-theme .rams-option-button--primary:is(:hover, :focus-visible),
body.rams-theme .elementor-button:is(:hover, :focus-visible),
body.rams-theme .button-primary:is(:hover, :focus-visible) {
	border-color: var(--rams-shell-orange);
	background: var(--rams-shell-orange);
	color: var(--rams-shell-white) !important;
}

body.rams-theme .elementor-button {
	border: 1px solid transparent;
	border-radius: 5px;
}

body.rams-theme .rams-homepage-news .elementor-post__title a,
body.rams-theme .rams-homepage-news .elementor-post__read-more {
	color: var(--rams-shell-blue);
}

body.rams-theme .rams-homepage-news .elementor-post__title a:is(:hover, :focus-visible),
body.rams-theme .rams-homepage-news .elementor-post__read-more:is(:hover, :focus-visible) {
	color: var(--rams-shell-orange);
}

body.rams-theme .rams-homepage-news .elementor-post__read-more {
	display: inline-block;
	font-size: 1rem;
}

body.rams-theme .rams-homepage-news .elementor-widget-button,
body.rams-theme .rams-homepage-news .elementor-widget-button .elementor-button,
body.rams-theme .rams-homepage-news .button-primary {
	display: inline-flex;
	width: auto;
	max-width: max-content;
	font-size: 1rem;
}

body.rams-theme #rams-homepage-social:not(:has(.rams-social-links)) {
	display: none;
}

@media (max-width: 48rem) {
	body.rams-theme main .gc-ae5c8f712d7ab395 {
		padding-inline: 0 !important;
	}
}

#choose-your-sport {
	gap: 0 !important;
}

#choose-your-sport .sg-sport {
	position: relative;
	display: block !important;
	height: 280px;
	min-height: 0;
	padding: 0 !important;
	background: var(--rams-shell-deep-navy);
}

#choose-your-sport .sg-sport > .elementor-element:first-child {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

#choose-your-sport .sg-sport > .elementor-element:first-child::after {
	position: absolute;
	inset: 0;
	background: rgb(3 16 29 / 56%);
	content: "";
}

#choose-your-sport .sg-sport > .elementor-element:first-child img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#choose-your-sport .sg-sport > .elementor-element:last-child {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 1rem !important;
	text-align: center;
}

#choose-your-sport .sg-sport > .elementor-element:last-child h2 {
	margin: 0;
	padding: 0 !important;
}

#choose-your-sport .sg-sport:hover > .elementor-element:first-child::after,
#choose-your-sport .sg-sport:focus-visible > .elementor-element:first-child::after {
	background: transparent;
}

@media (max-width: 60rem) {
	#choose-your-sport .sg-sport {
		height: 220px;
	}
}

@media (max-width: 48rem) {
	#choose-your-sport .sg-sport {
		height: 180px;
	}
}

body.rams-theme.error404 main > section:first-child .type-h1 {
	max-width: 12ch;
}

body.rams-theme.error404 main > section:first-child a {
	min-height: 3rem;
	align-items: center;
}

/* Sponsor logos are native Elementor loops; this CSS only governs their composition. */
body.rams-theme .elementor-element-80c2e83 .elementor-widget-loop-carousel,
body.rams-theme .elementor-element-99593bf .elementor-widget-loop-grid {
	width: 100%;
}

body.rams-theme .elementor-element-80c2e83 .e-loop-container,
body.rams-theme .elementor-element-99593bf .e-loop-container {
	align-items: center;
}

body.rams-theme .elementor-element-80c2e83 .e-loop-item,
body.rams-theme .elementor-element-99593bf .e-loop-item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

body.rams-theme .elementor-element-80c2e83 .e-loop-item img,
body.rams-theme .elementor-element-99593bf .e-loop-item img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 7rem;
	object-fit: contain;
}

@media (max-width: 48rem) {

	body.rams-theme .elementor-location-footer > div {
	padding: 3rem 1rem 1.5rem !important;
	}

	body.rams-theme .elementor-location-footer .elementor-nav-menu a {
	padding-inline: 0.5rem;
	}

	body.rams-theme.search main > section:first-child,
	body.rams-theme.error404 main > section:first-child {
	padding-block: 3.5rem !important;
	}

	body.rams-theme.search main > section:nth-child(2) {
	padding-block: 3.5rem !important;
	}

	body.rams-theme.search .elementor-post {
	padding-block: 1.25rem;
	}

	body.rams-theme.search .elementor-search-form__container {
	flex-wrap: wrap;
	}

	body.rams-theme.search .elementor-search-form__input {
	flex: 1 1 12rem;
	}

	body.rams-theme.search .elementor-search-form__submit {
	flex: 0 0 auto;
	}
}
