/*
Theme Name: Gwaltney Review Center Theme
Theme URI: https://gwaltneygroup.reviews/
Author: Brian Ness / ChatGPT
Description: A tiny one-page landing theme built for the Gwaltney Group Review Center plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: gwaltney-review-center-theme
*/

:root {
	--grct-navy: #102f55;
	--grct-blue: #1f5d99;
	--grct-red: #b21f35;
	--grct-bg-top: #ffffff;
	--grct-bg-bottom: #eef5fb;
	--grct-muted: #52677d;
	--grct-logo-width: 540px;
	--grct-footer-height: 0px;
	--grct-footer-opacity: .22;
}

html {
	min-height: 100%;
}

body {
	background:
		radial-gradient(circle at 50% 0%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 34%, rgba(242,247,252,.98) 100%),
		linear-gradient(180deg, var(--grct-bg-top), var(--grct-bg-bottom));
	color: var(--grct-navy);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
	min-height: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body::before {
	background: linear-gradient(90deg, var(--grct-red), var(--grct-navy), var(--grct-red));
	content: "";
	height: 4px;
	left: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 20;
}

body.admin-bar::before {
	top: 32px;
}

.grct-page {
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

.grct-page::before,
.grct-page::after {
	border-radius: 999px;
	content: "";
	filter: blur(1px);
	opacity: .6;
	pointer-events: none;
	position: fixed;
	z-index: 0;
}

.grct-page::before {
	background: rgba(178, 31, 53, .055);
	height: 360px;
	right: -180px;
	top: 11vh;
	width: 360px;
}

.grct-page::after {
	background: rgba(16, 47, 85, .06);
	bottom: -160px;
	height: 420px;
	left: -220px;
	width: 420px;
}

.grct-landing {
	align-items: flex-start;
	display: flex;
	justify-content: center;
	min-height: 100vh;
	padding: clamp(34px, 7vh, 76px) 18px calc(72px + var(--grct-footer-height));
	position: relative;
	z-index: 2;
}

body.admin-bar .grct-landing {
	min-height: calc(100vh - 32px);
}

.grct-shell {
	margin: 0 auto;
	max-width: 780px;
	text-align: center;
	width: 100%;
}

.grct-brand {
	margin: 0 auto clamp(18px, 3vh, 30px);
}

.grct-logo {
	display: block;
	height: auto;
	margin: 0 auto;
	max-width: min(100%, var(--grct-logo-width));
	width: var(--grct-logo-width);
}

.grct-fallback-title {
	font-size: clamp(42px, 7vw, 72px);
	font-weight: 300;
	letter-spacing: .05em;
	line-height: 1;
	margin: 0;
	text-transform: uppercase;
}

.grct-tagline {
	color: var(--grct-muted);
	font-size: clamp(16px, 2vw, 18px);
	line-height: 1.55;
	margin: -8px auto 24px;
	max-width: 600px;
}

.grct-shortcode-area {
	margin: 0 auto;
	max-width: 700px;
	position: relative;
}

.grct-shortcode-area::before {
	background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0));
	border-radius: 28px;
	content: "";
	filter: blur(14px);
	height: 90%;
	left: 6%;
	position: absolute;
	top: 12px;
	width: 88%;
	z-index: -1;
}

.grct-missing-plugin {
	background: rgba(255,255,255,.95);
	border: 1px solid rgba(16, 47, 85, .14);
	border-radius: 18px;
	box-shadow: 0 16px 38px rgba(16, 47, 85, .12);
	color: var(--grct-navy);
	margin: 0 auto;
	max-width: 560px;
	padding: 26px;
}

.grct-missing-plugin h1 {
	font-size: 26px;
	margin: 0 0 8px;
}

.grct-footer-graphic {
	background-position: center bottom;
	background-repeat: repeat-x;
	background-size: auto 100%;
	bottom: 0;
	height: var(--grct-footer-height);
	left: 0;
	opacity: var(--grct-footer-opacity);
	pointer-events: none;
	position: fixed;
	width: 100%;
	z-index: 1;
}

.grct-bottom-accent {
	background: linear-gradient(180deg, rgba(238,245,251,0), rgba(16,47,85,.07));
	bottom: 0;
	height: 150px;
	left: 0;
	pointer-events: none;
	position: fixed;
	width: 100%;
	z-index: 0;
}

.grct-bottom-accent::after {
	background: linear-gradient(90deg, rgba(178,31,53,.0), rgba(178,31,53,.18), rgba(16,47,85,.18), rgba(178,31,53,.0));
	bottom: 0;
	content: "";
	height: 1px;
	left: 8%;
	position: absolute;
	width: 84%;
}

/* Review Center plugin polish inside this dedicated theme. */
.grct-shortcode-area .ggrc-review-center {
	max-width: 690px !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.grct-shortcode-area .ggrc-landing-card {
	background: rgba(255,255,255,.94) !important;
	border: 1px solid rgba(16, 47, 85, .12) !important;
	border-radius: 22px !important;
	box-shadow: 0 20px 48px rgba(16, 47, 85, .14) !important;
	padding: 24px !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.grct-shortcode-area .ggrc-card-heading {
	font-size: clamp(28px, 4vw, 38px) !important;
	font-weight: 400 !important;
}

.grct-shortcode-area .ggrc-select-wrap,
.grct-shortcode-area .ggrc-agent-panel {
	border-color: rgba(16,47,85,.11) !important;
}

.grct-shortcode-area .ggrc-review-button {
	border-radius: 15px !important;
	min-height: 66px !important;
}

@media (max-width: 782px) {
	body.admin-bar::before {
		top: 46px;
	}
	body.admin-bar .grct-landing {
		min-height: calc(100vh - 46px);
	}
}

@media (max-width: 640px) {
	:root {
		--grct-logo-width: min(92vw, 460px);
	}
	.grct-landing {
		padding: 28px 14px calc(48px + var(--grct-footer-height));
	}
	.grct-brand {
		margin-bottom: 18px;
	}
	.grct-tagline {
		font-size: 15px;
		margin-bottom: 18px;
	}
	.grct-shortcode-area .ggrc-landing-card {
		padding: 18px 15px 20px !important;
	}
}
