/*
 * RSG one-page template: brand styling.
 * Layout (grid, columns, flex, spacing, alignment, display, image fit) uses
 * Bootstrap 5 classes in the templates. This file holds only what Bootstrap
 * does not provide: fonts, brand colours, fluid type sizes, rules between
 * columns, the hero photo position and the Gravity Forms styling.
 * Everything is scoped to body.rsg, which header-rsg.php adds.
 */

/* Fonts: self-hosted, no third-party requests */
@font-face {
	font-family: "Clarity City";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/clarity-city-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Clarity City";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/clarity-city-latin-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Clarity City";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/clarity-city-latin-700-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2");
}

/* Tokens */
.rsg {
	--rsg-cream: #faf6ef;
	--rsg-stone: #e6e1d9;
	--rsg-linen: #eeeae2;
	--rsg-ink: #1f1f1f;
	--rsg-gold: #876739;
	--rsg-gold-light: #b8935a;
	--rsg-rule: #ccbda7;
	--rsg-field: #e4d8cf;
	--rsg-circle: #ddd2c5;
	--rsg-on-dark: #f7f1e7;
	--rsg-marble: #151510;
	--rsg-error: #f2b8a8;
	--rsg-white: #fff;

	--rsg-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--rsg-font-body: "Clarity City", "Helvetica Neue", Arial, sans-serif;

	--rsg-fs-hero: clamp(2.4rem, 4.6vw, 4.9rem);
	--rsg-fs-h2: clamp(1.8rem, 2.7vw, 3.25rem);
	--rsg-fs-lead: clamp(1.05rem, 1.55vw, 1.85rem);
	--rsg-fs-eyebrow: clamp(0.8rem, 1.05vw, 1.25rem);
	--rsg-fs-item: clamp(1rem, 1.25vw, 1.5rem);
	--rsg-fs-small: clamp(0.875rem, 1vw, 1.2rem);

	--rsg-gutter: clamp(16px, 5.9vw, 113px);
	--rsg-rule-w: max(3px, 0.2vw);

	background: var(--rsg-cream);
	color: var(--rsg-ink);
	font-family: var(--rsg-font-body);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Base */
.rsg h1,
.rsg h2,
.rsg h3 {
	font-family: var(--rsg-font-display);
	font-weight: 400;
	letter-spacing: 0.05em;
	color: var(--rsg-ink);
	text-wrap: balance;
}
.rsg img {
	max-width: 100%;
	height: auto;
}
.rsg a:focus-visible {
	outline: 2px solid var(--rsg-gold);
	outline-offset: 4px;
}
.rsg-skip:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	background: var(--rsg-ink);
	color: var(--rsg-on-dark);
	padding: 0.75rem 1rem;
}

/* Page width and side margins: Bootstrap .container-fluid (template) and
   .rsg-wrap (header, footer, inner pages) */
.rsg .container-fluid,
.rsg-wrap {
	max-width: 1700px;
	margin-inline: auto;
	padding-left: max(var(--rsg-gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--rsg-gutter), env(safe-area-inset-right, 0px));
}
.rsg-band {
	padding-block: clamp(3rem, 6.5vw, 8rem);
}

/* Brand colours */
.rsg-bg-cream {
	background: var(--rsg-cream);
}
.rsg-bg-stone {
	background: var(--rsg-stone);
}
.rsg-bg-linen {
	background: var(--rsg-linen);
}
.rsg-gold {
	color: var(--rsg-gold);
}
.rsg-ink {
	color: var(--rsg-ink);
}

/* Type */
.rsg-eyebrow {
	font-size: var(--rsg-fs-eyebrow);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rsg-gold);
	margin: 0 0 0.6em;
}
.rsg-h2 {
	font-size: var(--rsg-fs-h2);
	line-height: 1.2;
}
.rsg-lead {
	font-size: var(--rsg-fs-lead);
	font-weight: 600;
	line-height: 1.45;
	text-wrap: pretty;
}
.rsg-sep {
	padding-inline: 0.45em;
}
.rsg-icon {
	display: block;
	width: clamp(2.25rem, 2.6vw, 3.25rem);
	color: var(--rsg-gold);
}
.rsg-icon svg {
	display: block;
	width: 100%;
	height: auto;
}

/* Logo block (hero and inner-page top bar) */
.rsg-brand {
	gap: 0.55rem;
	padding-top: clamp(1.25rem, 2.4vw, 2.9rem);
	display: inline-flex;
	flex-direction: column;
	text-decoration: none;
}
.rsg-brand img {
	width: clamp(120px, 12.7vw, 243px);
	height: auto;
}
.rsg-brand span {
	font-size: clamp(0.62rem, 0.95vw, 1.05rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--rsg-gold);
}

/* Hero: photo fills the right 58% on desktop, sits below the text on smaller screens */
.rsg-hero {
	background: var(--rsg-cream);
}
.rsg-hero__media {
	aspect-ratio: 4 / 3;
}
.rsg-hero__media img {
	object-position: right center;
}
@media (min-width: 992px) {
	.rsg-hero__media {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 58%;
		aspect-ratio: auto;
	}
}
.rsg-hero__copy {
	gap: clamp(1rem, 1.7vw, 2rem);
	padding-block: 2.5rem 3rem;
}
@media (min-width: 992px) {
	.rsg-hero__copy {
		padding-block: clamp(3rem, 10vw, 12rem) clamp(3rem, 7vw, 8.5rem);
	}
}
.rsg .rsg-hero__title {
	font-size: var(--rsg-fs-hero);
	line-height: 1.18;
	color: var(--rsg-gold);
}
.rsg-hero__lead {
	max-width: 30ch;
}
.rsg-pillars {
	font-size: clamp(0.95rem, 1.5vw, 1.8rem);
	letter-spacing: 0.075em;
	color: var(--rsg-gold);
}
.rsg-pillars .rsg-sep {
	opacity: 0.8;
}

/* Icon columns (services, solutions, values): vertical rules between items in a row */
.rsg-intro {
	max-width: 52ch;
	margin-top: clamp(1rem, 1.6vw, 2rem);
}
.rsg-cols {
	margin-top: clamp(2rem, 3.5vw, 4rem);
}
.rsg-col {
	min-width: 0;
	padding: 0.75rem clamp(0.5rem, 1.2vw, 1.5rem);
}
@media (min-width: 768px) and (max-width: 991.98px) {
	.rsg-cols > .col:not(:nth-child(3n + 1)) {
		border-left: var(--rsg-rule-w) solid var(--rsg-rule);
	}
}
@media (min-width: 992px) {
	.rsg-cols > .col + .col {
		border-left: var(--rsg-rule-w) solid var(--rsg-rule);
	}
}
@media (min-width: 768px) {
	.rsg-cols--values > .col + .col {
		border-left: var(--rsg-rule-w) solid var(--rsg-rule);
	}
}
.rsg .rsg-col__title {
	font-family: var(--rsg-font-body);
	font-weight: 600;
	font-size: var(--rsg-fs-item);
	letter-spacing: 0;
}
.rsg-col__text {
	font-size: var(--rsg-fs-small);
	line-height: 1.35;
	text-wrap: balance;
}
.rsg-cols--compact .rsg-col__text {
	font-size: clamp(0.82rem, 0.95vw, 1.15rem);
}

/* About */
.rsg-split__media img {
	aspect-ratio: 3 / 2;
}
@media (min-width: 992px) {
	.rsg-split__media img {
		height: 100%;
		aspect-ratio: auto;
	}
}
.rsg-split__copy {
	max-width: 960px;
	padding-block: clamp(2.5rem, 4.4vw, 5.5rem);
	padding-left: max(var(--rsg-gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--rsg-gutter), env(safe-area-inset-right, 0px));
}
@media (min-width: 992px) {
	.rsg-split__copy {
		padding-left: clamp(1.5rem, 5vw, 6rem);
	}
}
.rsg-split__text {
	max-width: 52ch;
	font-size: clamp(0.95rem, 1.15vw, 1.4rem);
	font-weight: 600;
	line-height: 1.75;
}
.rsg-rule-short {
	width: 3.2rem;
	height: 3px;
	border: 0;
	background: var(--rsg-rule);
	opacity: 1;
}
.rsg-traits li {
	padding: 0.6rem 0;
	font-family: var(--rsg-font-display);
	font-size: clamp(1rem, 1.6vw, 1.95rem);
	letter-spacing: 0.05em;
	line-height: 1.2;
}
.rsg-traits li + li {
	border-top: 3px solid var(--rsg-rule);
}
@media (min-width: 576px) {
	.rsg-traits li {
		padding: 0.4rem clamp(1rem, 2.4vw, 2.8rem);
	}
	.rsg-traits li:first-child {
		padding-left: 0;
	}
	.rsg-traits li + li {
		border-top: 0;
		border-left: 3px solid var(--rsg-rule);
	}
}

/* Who we are */
.rsg-who__text {
	max-width: 58ch;
}
.rsg-who__text p {
	margin: 0 0 1em;
}
.rsg-who__text p:last-child {
	margin-bottom: 0;
}
.rsg-cols--values {
	max-width: 1150px;
}
.rsg-circle {
	place-items: center;
	width: clamp(4.5rem, 6.4vw, 7.75rem);
	max-width: 100%;
	aspect-ratio: 1;
	background: var(--rsg-circle);
}
.rsg-circle .rsg-icon {
	width: 46%;
}
.rsg .rsg-col__label {
	font-family: var(--rsg-font-body);
	font-size: var(--rsg-fs-eyebrow);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--rsg-gold);
}
.rsg-col__serif {
	font-family: var(--rsg-font-display);
	font-size: clamp(1rem, 1.3vw, 1.6rem);
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-wrap: balance;
}

/* Statement and closing */
.rsg-feature__copy {
	padding-block: clamp(2.5rem, 5vw, 6rem);
	padding-left: max(var(--rsg-gutter), env(safe-area-inset-left, 0px));
	padding-right: 2rem;
}
.rsg-feature__title {
	line-height: 1.15;
}
.rsg-feature__media img {
	height: 100%;
	aspect-ratio: 3 / 2;
}

/* Why partner */
.rsg-why {
	background-color: var(--rsg-linen);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}
.rsg .rsg-why__title {
	font-size: clamp(2rem, 4.3vw, 5.2rem);
}
.rsg-why__grid {
	max-width: 780px;
	margin-top: clamp(1.5rem, 3vw, 3rem);
}
.rsg-why__grid ul {
	gap: clamp(1.5rem, 2.6vw, 3rem);
	padding: 0 clamp(0.75rem, 2vw, 2.5rem);
}
.rsg-why__grid .col + .col {
	margin-top: 1.5rem;
}
@media (min-width: 576px) {
	.rsg-why__grid .col + .col {
		margin-top: 0;
		border-left: 3px solid var(--rsg-gold-light);
	}
}
.rsg-why__grid li {
	padding-bottom: clamp(1rem, 1.6vw, 1.9rem);
	font-size: clamp(0.95rem, 1.3vw, 1.55rem);
	letter-spacing: 0.05em;
	line-height: 1.55;
	text-wrap: balance;
}
.rsg-why__grid li::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 6.5rem;
	height: 3px;
	transform: translateX(-50%);
	background: var(--rsg-gold-light);
}
.rsg-why__tagline {
	margin-top: clamp(1.5rem, 2.6vw, 3rem);
	padding-top: clamp(1.5rem, 2.6vw, 3rem);
	border-top: 3px solid var(--rsg-gold-light);
	font-family: var(--rsg-font-display);
	font-size: clamp(1.4rem, 2.9vw, 3.5rem);
	font-style: italic;
	letter-spacing: -0.01em;
	color: #000;
}

/* Contact */
.rsg-contact {
	background: var(--rsg-ink);
	color: var(--rsg-on-dark);
}
.rsg-notice {
	color: var(--rsg-on-dark);
}
.rsg-banner {
	background: var(--rsg-marble) center / auto 100% no-repeat;
	color: var(--rsg-on-dark);
}
.rsg-banner .container-fluid {
	padding-block: clamp(2rem, 3.4vw, 4rem);
}
.rsg-banner p {
	max-width: 20ch;
	font-family: var(--rsg-font-display);
	font-size: clamp(1.5rem, 2.6vw, 3.2rem);
	line-height: 1.15;
	color: var(--rsg-on-dark);
}

/*
 * Gravity Forms (form theme "gravity-theme", fields with CSS classes
 * rsg-name, rsg-email and rsg-message). Name and email stack on the left,
 * message fills the right.
 */
.rsg .rsg-form .gform_wrapper {
	margin: 0;
}
.rsg .rsg-form .gform_wrapper .gform_heading,
.rsg .rsg-form .gform_wrapper .gfield_required {
	display: none;
}
.rsg .rsg-form .gform_wrapper .gform_fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas: "name message" "email message" "other other";
	grid-template-rows: auto 1fr auto;
	align-items: start;
	gap: clamp(1rem, 1.75vw, 2.1rem) clamp(1.5rem, 3.9vw, 4.7rem);
}
.rsg .rsg-form .gform_wrapper .gfield {
	grid-column: auto;
	margin: 0;
	padding: 0;
}
.rsg .rsg-form .gform_wrapper .gfield.rsg-name {
	grid-area: name;
}
.rsg .rsg-form .gform_wrapper .gfield.rsg-email {
	grid-area: email;
}
.rsg .rsg-form .gform_wrapper .gfield.rsg-message {
	grid-area: message;
	align-self: stretch;
	display: flex;
	flex-direction: column;
}
.rsg .rsg-form .gform_wrapper .gfield.rsg-message .ginput_container {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.rsg .rsg-form .gform_wrapper .gfield.rsg-message textarea {
	flex: 1 1 auto;
	height: auto;
	min-height: clamp(12rem, 15.3vw, 18.5rem);
}
.rsg
	.rsg-form
	.gform_wrapper
	.gfield:not(.rsg-name):not(.rsg-email):not(.rsg-message) {
	grid-area: auto;
	grid-column: 1 / -1;
}
.rsg .rsg-form .gform_wrapper .gfield_label,
.rsg .rsg-form .gform_wrapper .gfield legend {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.rsg .rsg-form .gform_wrapper input[type="text"],
.rsg .rsg-form .gform_wrapper input[type="email"],
.rsg .rsg-form .gform_wrapper input[type="tel"],
.rsg .rsg-form .gform_wrapper textarea {
	width: 100%;
	margin: 0;
	padding: clamp(0.85rem, 1.55vw, 1.85rem) clamp(1rem, 1.9vw, 2.3rem);
	border: 2px solid transparent;
	border-radius: 0;
	background: var(--rsg-field);
	color: var(--rsg-ink);
	font-family: var(--rsg-font-body);
	font-size: var(--rsg-fs-small);
	line-height: 1.4;
	box-shadow: none;
}
.rsg .rsg-form .gform_wrapper textarea {
	min-height: 12rem;
	height: auto;
	resize: vertical;
}
.rsg .rsg-form .gform_wrapper input::placeholder,
.rsg .rsg-form .gform_wrapper textarea::placeholder {
	color: var(--rsg-gold);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 1;
}
.rsg .rsg-form .gform_wrapper input:focus,
.rsg .rsg-form .gform_wrapper textarea:focus {
	outline: none;
	border-color: var(--rsg-gold-light);
	box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.35);
}

.rsg .rsg-form .gform_wrapper .gform_footer {
	display: flex;
	justify-content: flex-end;
	margin: clamp(1rem, 1.75vw, 2.1rem) 0 0;
	padding: 0;
}
.rsg .rsg-form .gform_wrapper .gform_footer .gform_button,
.rsg .rsg-form .gform_wrapper .gform_footer input[type="submit"] {
	margin: 0;
	padding: clamp(0.85rem, 1.4vw, 1.6rem)
		calc(clamp(1.5rem, 2.4vw, 2.6rem) + 1.6rem)
		clamp(0.85rem, 1.4vw, 1.6rem) clamp(1.5rem, 2.4vw, 2.6rem);
	border: 0;
	border-radius: 0;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f7f1e7'%3E%3Cpath fill-rule='evenodd' d='M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8'/%3E%3C/svg%3E")
			right clamp(1.5rem, 2.4vw, 2.6rem) center / 1.1rem no-repeat,
		linear-gradient(135deg, #9a7a48 0%, #c8a46a 50%, #8a6a3a 100%);
	color: var(--rsg-on-dark);
	font-family: var(--rsg-font-body);
	font-size: var(--rsg-fs-small);
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter 0.2s ease;
}
.rsg .rsg-form .gform_wrapper .gform_footer .gform_button:hover {
	filter: brightness(1.08);
}
.rsg .rsg-form .gform_wrapper .gform_footer .gform_button:focus-visible {
	outline: 3px solid var(--rsg-on-dark);
	outline-offset: 3px;
}

.rsg .rsg-form .gform_wrapper .gform_validation_errors {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 2px solid var(--rsg-error);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.rsg .rsg-form .gform_wrapper .gform_validation_errors > h2 {
	margin: 0;
	font-family: var(--rsg-font-body);
	font-size: var(--rsg-fs-small);
	font-weight: 600;
	letter-spacing: 0;
	color: var(--rsg-error);
}
.rsg .rsg-form .gform_wrapper .gform_validation_errors > h2 .gform-icon {
	display: none;
}
.rsg .rsg-form .gform_wrapper .gfield_validation_message,
.rsg .rsg-form .gform_wrapper .validation_message {
	margin: 0.5rem 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--rsg-error);
	font-size: var(--rsg-fs-small);
}
.rsg .rsg-form .gform_wrapper .gfield_error input,
.rsg .rsg-form .gform_wrapper .gfield_error textarea {
	border-color: var(--rsg-error);
}
.rsg .rsg-form .gform_confirmation_message {
	color: var(--rsg-on-dark);
	font-size: var(--rsg-fs-lead);
	font-family: var(--rsg-font-display);
	text-align: center;
}

/* Footer */
.rsg-footer {
	background: var(--rsg-white);
}
.rsg-footer .rsg-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-block: clamp(1.25rem, 1.9vw, 2.2rem);
}
.rsg-footer__brand {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 2.5vw, 3rem);
}
.rsg-footer__brand img {
	width: clamp(70px, 6vw, 115px);
	height: auto;
}
.rsg-footer__brand span {
	font-size: clamp(0.7rem, 0.75vw, 0.95rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--rsg-gold);
}
.rsg-footer__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem clamp(1rem, 2.4vw, 3rem);
}
.rsg-footer__nav > a {
	font-size: clamp(0.85rem, 0.85vw, 1.05rem);
	font-weight: 600;
	letter-spacing: 0.05em;
	color: var(--rsg-ink);
	text-decoration: none;
}
.rsg-footer__nav > a:hover {
	color: var(--rsg-gold);
}
.rsg-social {
	display: flex;
	gap: 0.9rem;
}
.rsg-social a {
	display: block;
	width: clamp(1.5rem, 2.2vw, 2.7rem);
	color: var(--rsg-ink);
}
.rsg-social a:hover {
	color: var(--rsg-gold);
}
.rsg-social svg {
	display: block;
	width: 100%;
	height: auto;
}

/* Inner pages (page.php): top bar and readable text column */
.rsg.page-template-default {
	background: var(--rsg-white);
}
.rsg-topbar {
	background: var(--rsg-cream);
	border-bottom: 1px solid var(--rsg-rule);
}
.rsg-topbar .rsg-brand {
	padding-block: clamp(1rem, 1.6vw, 1.75rem);
}
.rsg-page {
	background: var(--rsg-white);
	padding-block: clamp(3rem, 6vw, 6rem);
}
.rsg .rsg-page__title {
	font-size: var(--rsg-fs-h2);
	line-height: 1.2;
	margin: 0 0 1.5rem;
}
.rsg-page__content {
	font-size: 1.05rem;
	line-height: 1.75;
}
.rsg .rsg-page__content h2 {
	font-size: clamp(1.4rem, 1.8vw, 1.8rem);
	margin: 2.5rem 0 0.75rem;
}
.rsg .rsg-page__content h3 {
	font-family: var(--rsg-font-body);
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0;
	margin: 2rem 0 0.5rem;
}
.rsg-page__content p,
.rsg-page__content ul,
.rsg-page__content ol {
	margin: 0 0 1.25rem;
}
.rsg-page__content ul,
.rsg-page__content ol {
	padding-left: 1.25rem;
}
.rsg-page__content li + li {
	margin-top: 0.35rem;
}
.rsg-page__content a {
	color: var(--rsg-gold);
	text-underline-offset: 3px;
}

/* Phone: contact form stacks */
@media (max-width: 640px) {
	.rsg .rsg-form .gform_wrapper .gform_fields {
		grid-template-columns: 1fr;
		grid-template-areas: "name" "email" "message" "other";
		grid-template-rows: auto;
	}
	.rsg .rsg-form .gform_wrapper .gform_footer .gform_button {
		width: 100%;
	}
	.rsg-banner {
		background-position: 85% center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rsg *,
	.rsg *::before,
	.rsg *::after {
		transition: none !important;
	}
}
