/*
Theme Name: AOG Springs
Theme URI: https://aogsprings.com
Author: Opus Agentic
Author URI: https://opusagentic.com
Description: Fresh Purity — a daylight block theme for AOG Springs LLC. Clean paper-white, morning mist and sunlit transparent water; Kinetic Aqua and Electric Mint as living accents. Water flows from the hero spring, over every section edge, and rests in sunlit shallows above the footer.
Version: 0.9.4
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aogsprings
*/

/* ==========================================================================
   Base
   ========================================================================== */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 112px;
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

::selection {
	background: var(--wp--preset--color--kinetic-aqua);
	color: var(--wp--preset--color--ink);
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--aqua-deep);
	outline-offset: 3px;
	border-radius: 2px;
}

a { transition: color 0.2s ease; }

strong { color: var(--wp--preset--color--ink); }

/* Gradient text — readable fresh-water stops on light backgrounds */
.aog-gradient-text {
	background: linear-gradient(120deg, #0794B4 0%, #0A9396 55%, #23A86F 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ==========================================================================
   Water canvases
   ========================================================================== */

#aog-cascade-canvas {
	position: fixed;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.aog-header,
.aog-section,
.aog-hero-inner,
.aog-footer { position: relative; z-index: 1; }

/* ==========================================================================
   Header
   ========================================================================== */

.aog-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 8px 48px;
	background: rgba(251, 253, 254, 0.75);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease, background 0.3s ease;
}

.aog-header.is-scrolled {
	border-bottom-color: var(--wp--preset--color--line);
	background: rgba(251, 253, 254, 0.92);
}

.aog-header-minimal { justify-content: center; }

/* Logo lockup — the AOG mark with SPRINGS seated tight beneath it */
.aog-logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	text-decoration: none;
	line-height: 1;
}

.aog-logo-mark {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--ink);
}

.aog-logo-img {
	height: 72px;
	width: auto;
	display: block;
}

.aog-footer .aog-logo-img { height: 72px; }

.aog-logo-sub {
	margin-top: -5px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.34em;
	padding-left: 0.34em; /* balance the trailing tracking so it centers optically */
	text-transform: uppercase;
	color: var(--wp--preset--color--cyber-teal);
}

.aog-nav a { transition: color 0.2s ease; }
.aog-nav a:hover { color: var(--wp--preset--color--aqua-deep) !important; }

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--paper) !important;
	padding: 96px 32px;
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--ink) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.wp-block-button__link {
	transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease;
}

.aog-btn-gradient .wp-block-button__link {
	background: linear-gradient(120deg, #00E5FF 0%, #00F5D4 60%, #3ECF8E 130%);
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	box-shadow: 0 2px 10px rgba(7, 148, 180, 0.18);
}

.aog-btn-gradient .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(7, 148, 180, 0.3);
	color: var(--wp--preset--color--ink);
}

.aog-btn-outline .wp-block-button__link,
.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
}

.aog-btn-outline .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--aqua-deep);
	background: rgba(7, 148, 180, 0.06);
	color: var(--wp--preset--color--aqua-deep);
}

/* ==========================================================================
   Hero — morning at the spring
   ========================================================================== */

.aog-hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: linear-gradient(180deg, #E7F4F8 0%, #F2FAFC 55%, #DFF0F3 100%);
}

.aog-hero-water {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.aog-hero-water canvas,
.aog-hero-water video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aog-hero-vignette {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(251, 253, 254, 0.5) 0%, rgba(251, 253, 254, 0) 26%),
		linear-gradient(180deg, transparent 70%, rgba(222, 239, 242, 0.55) 100%);
	pointer-events: none;
}

.aog-hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 140px 0 160px;
}

/* Dark hero — the Electric Purity splash (home).
   This gradient is also the STATIC FALLBACK: on machines without real
   GPU acceleration (or with reduced-motion), the water canvas stays
   hidden and this branded aqua glow carries the hero on its own. */
.aog-hero-dark {
	background:
		radial-gradient(115% 78% at 88% 112%, rgba(0, 229, 255, 0.22) 0%, rgba(0, 229, 255, 0.06) 34%, transparent 62%),
		radial-gradient(85% 55% at 6% 108%, rgba(0, 245, 212, 0.13) 0%, transparent 55%),
		linear-gradient(180deg, #0B101B 0%, #121824 58%, #0A0F18 100%);
}

/* Water canvases fade in only once the shaders are confirmed running on
   real GPU acceleration; otherwise the static hero fallback shows. */
.aog-hero-water canvas,
.aog-pool canvas {
	opacity: 0;
	transition: opacity 0.8s ease;
}

body.aog-water-live .aog-hero-water canvas,
body.aog-water-live .aog-pool canvas {
	opacity: 1;
}

/* WebGL diagnostic readout — only appears on ?debug */
.aog-gl-debug {
	position: fixed;
	left: 10px;
	bottom: 10px;
	z-index: 99999;
	font-family: var(--wp--preset--font-family--mono, monospace);
	font-size: 12px;
	line-height: 1.5;
	color: #00E5FF;
	background: rgba(6, 10, 18, 0.92);
	border: 1px solid rgba(0, 229, 255, 0.4);
	padding: 8px 12px;
	border-radius: 6px;
	max-width: 92vw;
	word-break: break-all;
}

.aog-hero-dark .aog-hero-vignette {
	background:
		linear-gradient(180deg, rgba(10, 15, 24, 0.45) 0%, transparent 30%),
		linear-gradient(180deg, transparent 72%, rgba(10, 15, 24, 0.7) 100%);
}

.aog-hero-dark h1 { color: #FFFFFF; text-shadow: none; }
.aog-hero-dark h5 { color: var(--wp--preset--color--kinetic-aqua); }
.aog-hero-dark .aog-hero-sub { color: #B9C4CE; }
.aog-hero-dark .aog-hero-trust { color: #64788A; }

.aog-hero-dark .aog-gradient-text {
	background: linear-gradient(120deg, #00E5FF 0%, #00F5D4 55%, #3ECF8E 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Compact hero — the daylight spring welcoming the contact page */
.aog-hero-compact { min-height: 58vh; }
.aog-hero-compact .aog-hero-inner { padding: 120px 0 90px; }

.aog-hero-dark .aog-landing-bullets li { color: #B9C4CE; }

.aog-hero-h1 {
	margin: 20px 0 28px;
	text-wrap: balance;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.aog-hero-sub {
	max-width: 560px;
	font-size: var(--wp--preset--font-size--lg);
	color: var(--wp--preset--color--slate);
	line-height: 1.65;
}

.aog-hero-ctas { margin-top: 36px; gap: 14px; }

.aog-hero-trust {
	margin-top: 42px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--steel);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.aog-section {
	padding-top: clamp(80px, 10vw, 140px);
	padding-bottom: clamp(80px, 10vw, 140px);
}

.aog-section h2 { margin: 18px 0 22px; text-wrap: balance; }

.aog-section-elev {
	background:
		radial-gradient(ellipse at 80% 0%, rgba(0, 229, 255, 0.06) 0%, transparent 50%),
		linear-gradient(180deg, #EAEDF0 0%, #E3E7EB 100%);
	border-top: 1px solid #D9DEE3;
	border-bottom: 1px solid #D9DEE3;
}

.aog-section-sub {
	max-width: 620px;
	font-size: var(--wp--preset--font-size--lg);
	color: var(--wp--preset--color--slate);
	margin-bottom: 12px;
}

.aog-section-note {
	margin-top: 48px;
	padding: 22px 28px;
	max-width: 720px;
	border-left: 2px solid var(--wp--preset--color--living-green);
	background: rgba(35, 168, 111, 0.07);
	border-radius: 0 10px 10px 0;
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--base);
}

.aog-section-cta { margin-top: 40px; }
.aog-section-cta a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--sm);
	letter-spacing: 0.04em;
	border-bottom: 1px solid rgba(7, 148, 180, 0.4);
	padding-bottom: 3px;
}
.aog-section-cta a:hover { border-bottom-color: var(--wp--preset--color--cyber-teal); }

.aog-page-head { padding-bottom: 24px; }
.aog-page-h1 {
	font-size: var(--wp--preset--font-size--display) !important;
	margin: 16px 0 22px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.aog-card-grid {
	display: grid;
	gap: 20px;
	margin-top: 56px;
}

.aog-grid-4 { grid-template-columns: repeat(4, 1fr); }
.aog-grid-3 { grid-template-columns: repeat(3, 1fr); }

.aog-card {
	position: relative;
	padding: 30px 28px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	box-shadow: 0 2px 14px rgba(14, 28, 40, 0.05);
	transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.aog-card:hover {
	border-color: rgba(7, 148, 180, 0.45);
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(14, 28, 40, 0.1), 0 0 20px rgba(0, 229, 255, 0.08);
}

.aog-card h3, .aog-card h4 { margin: 18px 0 10px; }

.aog-card p {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--slate);
	line-height: 1.65;
}

.aog-card-icon {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: rgba(0, 229, 255, 0.12);
	border: 1px solid rgba(7, 148, 180, 0.3);
	color: var(--wp--preset--color--aqua-deep);
}

.aog-card-icon svg { width: 24px; height: 24px; }

.aog-card-feature { padding: 38px 32px; }

.aog-card-tag {
	margin-top: 16px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs) !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--cyber-teal) !important;
}

/* ==========================================================================
   Process steps
   ========================================================================== */

.aog-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 56px;
}

.aog-step {
	padding: 28px 26px;
	border-top: 1px solid var(--wp--preset--color--line);
	transition: border-color 0.3s ease;
}

.aog-step:hover { border-top-color: var(--wp--preset--color--aqua-deep); }

.aog-step-num {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--aqua-deep);
	letter-spacing: 0.1em;
}

.aog-step h4 { margin: 14px 0 10px; }

.aog-step p {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--slate);
}

/* ==========================================================================
   Story
   ========================================================================== */

/* The story: the page's obsidian statement band */
.aog-story {
	text-align: center;
	background: linear-gradient(180deg, #121824 0%, #0E141F 100%);
	border-top: 1px solid #232C42;
	border-bottom: 1px solid #232C42;
}

.aog-story h5 { justify-self: center; color: var(--wp--preset--color--kinetic-aqua); }
.aog-story h2 { color: #FFFFFF; }
.aog-story strong { color: #FFFFFF; }

.aog-story .aog-gradient-text {
	background: linear-gradient(120deg, #00E5FF 0%, #00F5D4 55%, #3ECF8E 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.aog-story-text {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.7;
	color: #A9B4BF;
	max-width: 720px;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.aog-faq-list { margin-top: 48px; }

.aog-faq-group { margin-bottom: 8px; }
.aog-faq-group .aog-faq-list { margin-top: 20px; }

.aog-faq-topic {
	margin-top: 56px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--living-green);
}

.aog-faq-item {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.aog-faq-item summary {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 4px;
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	transition: color 0.2s ease;
}

.aog-faq-item summary::-webkit-details-marker { display: none; }
.aog-faq-item summary:hover { color: var(--wp--preset--color--aqua-deep); }

.aog-faq-toggle {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--line);
	position: relative;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.aog-faq-toggle::before,
.aog-faq-toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 1.5px;
	background: var(--wp--preset--color--aqua-deep);
	transform: translate(-50%, -50%);
	transition: transform 0.3s ease;
}

.aog-faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

.aog-faq-item[open] .aog-faq-toggle { transform: rotate(45deg); border-color: var(--wp--preset--color--aqua-deep); }

.aog-faq-answer {
	padding: 0 44px 26px 4px;
	color: var(--wp--preset--color--slate);
	max-width: 720px;
}

.aog-faq-answer p { margin: 0 0 12px; }

/* ==========================================================================
   Forms
   ========================================================================== */

.aog-form label,
.gform_wrapper .gfield_label {
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--steel);
	margin-bottom: 18px;
}

.aog-form input,
.aog-form textarea,
.gform_wrapper input:not([type="submit"]),
.gform_wrapper textarea,
.gform_wrapper select {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 13px 16px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--base);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aog-form input:focus,
.aog-form textarea:focus,
.gform_wrapper input:focus,
.gform_wrapper textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--aqua-deep);
	box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
}

.aog-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.aog-form-submit,
.gform_wrapper input[type="submit"] {
	display: inline-block;
	margin-top: 6px;
	padding: 16px 28px;
	background: linear-gradient(120deg, #00E5FF 0%, #00F5D4 60%, #3ECF8E 130%);
	border: 0;
	border-radius: 8px;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.aog-form-submit:hover,
.gform_wrapper input[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(7, 148, 180, 0.3);
}

.aog-form-submit:disabled { opacity: 0.6; transform: none; box-shadow: none; cursor: wait; }

.aog-form-status { min-height: 20px; margin-top: 12px; font-size: var(--wp--preset--font-size--sm); color: #C43D3D; }

.aog-form-done { text-align: center; padding: 24px 8px; }
.aog-form-done-icon {
	width: 54px;
	height: 54px;
	margin: 0 auto 18px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-size: 24px;
	color: var(--wp--preset--color--ink);
	background: linear-gradient(120deg, #00E5FF, #00F5D4);
}
.aog-form-done h4 { margin-bottom: 8px; }
.aog-form-done p { color: var(--wp--preset--color--slate); font-size: var(--wp--preset--font-size--sm); }

.gform_wrapper ul { list-style: none; padding: 0; margin: 0; }
.gform_wrapper .gfield { margin-bottom: 18px; }
.gform_wrapper .gform_footer { margin-top: 8px; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.aog-contact-grid { padding-top: 20px; }

.aog-contact-cols {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 24px;
	align-items: start;
}

.aog-contact-form-card { padding: 38px 36px; }
.aog-contact-form-card h4 { margin-bottom: 24px; }

.aog-contact-side { display: grid; gap: 24px; }

.aog-cal-embed {
	margin-top: 16px;
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: 10px;
	padding: 22px;
	text-align: center;
}

.aog-cal-cta {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--sm);
}

/* Booking calendar revealed after the lead form is submitted */
.aog-cal-reveal {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--line);
	animation: aog-cal-in 0.5s ease both;
}

.aog-cal-reveal-title {
	margin-bottom: 16px;
}

#aog-cal-embed {
	min-height: 480px;
	width: 100%;
}

@keyframes aog-cal-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Landing page
   ========================================================================== */

.aog-landing-hero { min-height: 100vh; align-items: center; }

.aog-landing-inner { padding: 120px 0; }

.aog-landing-cols {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

.aog-landing-h1 {
	font-size: var(--wp--preset--font-size--display) !important;
	margin: 18px 0 24px;
}

.aog-landing-bullets {
	margin: 28px 0 36px;
	padding: 0;
	list-style: none;
}

.aog-landing-bullets li {
	position: relative;
	padding: 8px 0 8px 34px;
	color: var(--wp--preset--color--slate);
}

.aog-landing-bullets li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 7px;
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 700;
	border-radius: 50%;
	color: var(--wp--preset--color--ink);
	background: linear-gradient(120deg, #00E5FF, #3ECF8E);
}

.aog-landing-form-card {
	padding: 38px 36px;
	border-color: rgba(7, 148, 180, 0.4);
	box-shadow: 0 18px 44px rgba(14, 28, 40, 0.12), 0 0 30px rgba(0, 229, 255, 0.08);
}

.aog-landing-form-card h4 { margin-bottom: 6px; }
.aog-landing-form-card .aog-card-tag { margin: 0 0 22px; }

/* ==========================================================================
   Pool — sunlit shallows above the footer
   ========================================================================== */

.aog-pool {
	position: relative;
	height: 190px;
	margin-top: -40px;
	z-index: 1;
	pointer-events: none;
}

.aog-pool-compact { height: 140px; margin-top: 0; }

.aog-pool canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.aog-footer {
	background: var(--wp--preset--color--obsidian);
	border-top: 1px solid #232C42;
	padding-top: 72px;
	padding-bottom: 36px;
}

.aog-footer .aog-logo-mark { color: #FFFFFF; }
.aog-footer h5 { color: #64788A; }

.aog-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
	max-width: 1240px;
	margin: 0 auto;
}

.aog-footer-brand .aog-logo { margin-bottom: 18px; }

.aog-footer-blurb {
	max-width: 320px;
	font-size: var(--wp--preset--font-size--sm);
	color: #8494A3;
}

.aog-footer-col h5 { margin-bottom: 18px; }

.aog-footer-social {
	display: flex;
	gap: 12px;
	margin-top: 20px;
}

.aog-footer-social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--wp--preset--color--obsidian-line, #232C42);
	color: #B9C4CE;
	transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.aog-footer-social a:hover {
	color: var(--wp--preset--color--kinetic-aqua);
	border-color: var(--wp--preset--color--kinetic-aqua);
	transform: translateY(-2px);
}

.aog-footer-social svg { width: 20px; height: 20px; }

.aog-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.aog-footer-links li {
	margin-bottom: 10px;
	font-size: var(--wp--preset--font-size--sm);
	color: #9AA6B2;
}

.aog-footer-links a { color: #B9C4CE; }
.aog-footer-links a:hover { color: var(--wp--preset--color--kinetic-aqua); }

.aog-footer-legal {
	max-width: 1240px;
	margin: 56px auto 0;
	padding-top: 24px;
	border-top: 1px solid #232C42;
}

.aog-footer-legal p {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	color: #64788A;
	letter-spacing: 0.04em;
}

.aog-footer-legal a { color: #B9C4CE; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.aog-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.aog-reveal.is-in {
	opacity: 1;
	transform: none;
}

.aog-card-grid .aog-reveal:nth-child(2), .aog-steps .aog-reveal:nth-child(2) { transition-delay: 0.08s; }
.aog-card-grid .aog-reveal:nth-child(3), .aog-steps .aog-reveal:nth-child(3) { transition-delay: 0.16s; }
.aog-card-grid .aog-reveal:nth-child(4), .aog-steps .aog-reveal:nth-child(4) { transition-delay: 0.24s; }

/* ==========================================================================
   Single / generic content
   ========================================================================== */

.aog-single { min-height: 55vh; }
.aog-single .aog-page-h1 { margin-bottom: 32px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.aog-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.aog-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.aog-steps { grid-template-columns: repeat(2, 1fr); }
	.aog-landing-cols { grid-template-columns: 1fr; gap: 40px; }
	.aog-contact-cols { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
	.aog-header { padding: 6px 20px; }
	.aog-logo-img { height: 54px; }
	.aog-hero { min-height: 86vh; }
	.aog-hero-inner { padding: 110px 0 120px; }
	.aog-footer-grid { grid-template-columns: 1fr; gap: 36px; }
	.aog-pool { height: 130px; }
}

@media (max-width: 600px) {
	.aog-grid-4, .aog-grid-3, .aog-steps { grid-template-columns: 1fr; }
	.aog-form-row { grid-template-columns: 1fr; gap: 0; }
	.aog-hero-ctas .wp-block-button { width: 100%; }
	.aog-hero-ctas .wp-block-button__link { width: 100%; text-align: center; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.aog-reveal { opacity: 1; transform: none; transition: none; }
	.wp-block-button__link, .aog-card, .aog-step { transition: none; }
}

/* ==========================================================================
   Rio — AI site agent (launcher, greeting bubble, chat panel)
   Markup: parts/footer.html · Behaviour: assets/js/rio.js
   The launcher sits on the highest practical stacking layer so cookie
   banners, consent bars and sticky CTAs can never bury it.
   ========================================================================== */

.aog-rio {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 2147483640;
	font-family: var(--wp--preset--font-family--body);
	pointer-events: none;
}

.aog-rio > * { pointer-events: auto; }

/* --- Launcher ------------------------------------------------------------ */

.aog-rio-launcher {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	padding: 0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(135deg, var(--wp--preset--color--aqua-deep) 0%, var(--wp--preset--color--cyber-teal) 55%, var(--wp--preset--color--kinetic-aqua) 100%);
	box-shadow: 0 10px 30px rgba(7, 148, 180, 0.42), 0 2px 8px rgba(14, 28, 40, 0.18);
	transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.25s ease;
}

.aog-rio-launcher:hover { transform: scale(1.07); box-shadow: 0 14px 38px rgba(7, 148, 180, 0.5); }
.aog-rio-launcher:active { transform: scale(0.96); }

.aog-rio-mark,
.aog-rio-x {
	position: absolute;
	width: 28px;
	height: 28px;
	transition: opacity 0.2s ease, transform 0.28s ease;
}

.aog-rio-mark { animation: aog-rio-flow 4.5s ease-in-out infinite; }
.aog-rio-x { opacity: 0; transform: rotate(-90deg) scale(0.7); }

.aog-rio.is-open .aog-rio-mark { opacity: 0; transform: rotate(90deg) scale(0.7); }
.aog-rio.is-open .aog-rio-x { opacity: 1; transform: none; }

@keyframes aog-rio-flow {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-2px); }
}

/* Attention ring — three pulses on first load, then it settles down */
.aog-rio-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--kinetic-aqua);
	opacity: 0;
	pointer-events: none;
}

.aog-rio-launcher.is-pulsing .aog-rio-ring {
	animation: aog-rio-pulse 1.9s ease-out 3;
}

.aog-rio.is-open .aog-rio-ring { animation: none; opacity: 0; }

@keyframes aog-rio-pulse {
	0%   { opacity: 0.85; transform: scale(1); }
	100% { opacity: 0;    transform: scale(1.85); }
}

/* --- Greeting bubble ----------------------------------------------------- */

.aog-rio-bubble {
	position: absolute;
	right: 0;
	bottom: 78px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 268px;
	padding: 13px 14px 13px 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px 16px 4px 16px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-size: 14.5px;
	line-height: 1.45;
	box-shadow: 0 12px 34px rgba(14, 28, 40, 0.16);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px) scale(0.94);
	transform-origin: bottom right;
	transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.34, 1.3, 0.64, 1), visibility 0.32s;
}

.aog-rio-bubble.is-shown { opacity: 1; visibility: visible; transform: none; }
.aog-rio.is-open .aog-rio-bubble { opacity: 0; visibility: hidden; }

.aog-rio-bubble-text { flex: 1; }

.aog-rio-bubble-close {
	flex: none;
	width: 20px;
	height: 20px;
	padding: 0;
	margin-top: 1px;
	border: none;
	background: none;
	color: var(--wp--preset--color--steel);
	cursor: pointer;
	opacity: 0.65;
	transition: opacity 0.2s ease;
}

.aog-rio-bubble-close:hover { opacity: 1; }
.aog-rio-bubble-close svg { width: 100%; height: 100%; }

/* --- Panel --------------------------------------------------------------- */

.aog-rio-panel {
	position: absolute;
	right: 0;
	bottom: 78px;
	display: flex;
	flex-direction: column;
	width: min(376px, calc(100vw - 32px));
	height: min(544px, calc(100vh - 140px));
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 20px;
	background: var(--wp--preset--color--paper);
	box-shadow: 0 26px 64px rgba(14, 28, 40, 0.22), 0 4px 14px rgba(14, 28, 40, 0.08);
	opacity: 0;
	transform: translateY(14px) scale(0.94);
	transform-origin: bottom right;
	transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.34, 1.28, 0.64, 1);
}

.aog-rio.is-open .aog-rio-panel { opacity: 1; transform: none; }

.aog-rio-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 14px 14px 16px;
	color: #fff;
	background: linear-gradient(120deg, var(--wp--preset--color--aqua-deep) 0%, var(--wp--preset--color--cyber-teal) 100%);
}

.aog-rio-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
}

.aog-rio-avatar svg { width: 22px; height: 22px; }

.aog-rio-head-meta { flex: 1; min-width: 0; }

.aog-rio-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.2px;
	line-height: 1.2;
	color: #fff;
}

.aog-rio-status {
	margin: 2px 0 0;
	font-size: 11.5px;
	letter-spacing: 0.2px;
	color: rgba(255, 255, 255, 0.85);
}

.aog-rio-status-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--electric-mint);
	box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.7);
	animation: aog-rio-live 2.4s ease-out infinite;
}

@keyframes aog-rio-live {
	0%   { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.7); }
	70%  { box-shadow: 0 0 0 7px rgba(0, 245, 212, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 245, 212, 0); }
}

.aog-rio-close {
	flex: none;
	width: 28px;
	height: 28px;
	padding: 5px;
	border: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.aog-rio-close:hover { background: rgba(255, 255, 255, 0.28); }
.aog-rio-close svg { width: 100%; height: 100%; }

/* --- Voice --------------------------------------------------------------- */

/* Injected by rio-voice.js, so it only exists when a Retell key is set. */
.aog-rio-mic {
	flex: none;
	width: 28px;
	height: 28px;
	padding: 5px;
	border: none;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.aog-rio-mic:hover { background: rgba(255, 255, 255, 0.28); }
.aog-rio-mic svg { width: 100%; height: 100%; }

.aog-rio-mic.is-busy { opacity: 0.6; cursor: progress; }

/* On air: red, and breathing so it reads as live rather than merely armed. */
.aog-rio-mic.is-live {
	background: #e5484d;
	animation: aog-rio-mic-pulse 1.9s ease-in-out infinite;
}

.aog-rio-mic.is-live:hover { background: #f0595e; }

@keyframes aog-rio-mic-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.55); }
	50%      { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0); }
}

/* Rio's own turn: the avatar ripples while the agent is speaking. */
.aog-rio.is-rio-talking .aog-rio-avatar {
	animation: aog-rio-avatar-ripple 1.4s ease-in-out infinite;
}

@keyframes aog-rio-avatar-ripple {
	0%, 100% { background: rgba(255, 255, 255, 0.18); transform: scale(1); }
	50%      { background: rgba(255, 255, 255, 0.34); transform: scale(1.06); }
}

/* Call start/end markers in the transcript. */
.aog-rio-voice-note {
	margin: 6px 0 12px;
	font-size: 11.5px;
	letter-spacing: 0.3px;
	text-align: center;
	color: var(--wp--preset--color--slate, #6b7a86);
	opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
	.aog-rio-mic.is-live,
	.aog-rio.is-rio-talking .aog-rio-avatar { animation: none; }
}

/* --- Messages ------------------------------------------------------------ */

.aog-rio-messages {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 16px 16px 4px;
	background:
		radial-gradient(120% 60% at 50% 0%, var(--wp--preset--color--mist) 0%, transparent 70%),
		var(--wp--preset--color--paper);
	scrollbar-width: thin;
}

.aog-rio-msg { display: flex; margin-bottom: 10px; }
.aog-rio-msg.is-user { justify-content: flex-end; }

.aog-rio-bubble-msg {
	max-width: 84%;
	padding: 10px 14px;
	font-size: 14.5px;
	line-height: 1.55;
	border-radius: 16px;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.aog-rio-msg.is-rio .aog-rio-bubble-msg {
	border: 1px solid var(--wp--preset--color--line);
	border-bottom-left-radius: 5px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.aog-rio-msg.is-user .aog-rio-bubble-msg {
	border-bottom-right-radius: 5px;
	background: linear-gradient(120deg, var(--wp--preset--color--aqua-deep), var(--wp--preset--color--cyber-teal));
	color: #fff;
}

.aog-rio-bubble-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.aog-rio-msg.is-rio .aog-rio-bubble-msg a { color: var(--wp--preset--color--aqua-deep); }

.aog-rio-typing .aog-rio-bubble-msg { display: flex; gap: 4px; padding: 13px 15px; }

.aog-rio-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--steel);
	animation: aog-rio-bounce 1.3s ease-in-out infinite;
}

.aog-rio-dot:nth-child(2) { animation-delay: 0.18s; }
.aog-rio-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes aog-rio-bounce {
	0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
	30%           { opacity: 1;    transform: translateY(-4px); }
}

/* --- Suggested questions ------------------------------------------------- */

.aog-rio-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	padding: 6px 16px 12px;
}

/* Author styles beat the UA's [hidden] { display: none }, so `display: flex`
   above would keep the chips on screen even once JS sets chips.hidden. They
   are starter prompts: the moment a conversation exists they are just
   furniture, and on a panel this size they push Rio's reply out of view. */
.aog-rio-chips[hidden] { display: none; }

.aog-rio-chip {
	padding: 7px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--aqua-deep);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.aog-rio-chip:hover {
	border-color: var(--wp--preset--color--aqua-deep);
	background: var(--wp--preset--color--shallow);
}

/* --- Composer ------------------------------------------------------------ */

.aog-rio-compose {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--white);
}

.aog-rio-input {
	flex: 1;
	max-height: 110px;
	min-height: 40px;
	padding: 10px 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	font-family: inherit;
	font-size: 14.5px;
	line-height: 1.4;
	resize: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aog-rio-input:focus {
	outline: none;
	border-color: var(--wp--preset--color--aqua-deep);
	box-shadow: 0 0 0 3px rgba(7, 148, 180, 0.14);
}

.aog-rio-send {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--wp--preset--color--aqua-deep), var(--wp--preset--color--cyber-teal));
	color: #fff;
	cursor: pointer;
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.aog-rio-send:hover { transform: translateY(-1px); }
.aog-rio-send:disabled { opacity: 0.45; cursor: default; transform: none; }
.aog-rio-send svg { width: 18px; height: 18px; }

.aog-rio-foot {
	margin: 0;
	padding: 0 16px 10px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--steel);
	font-size: 11px;
	text-align: center;
}

.aog-rio-foot a { color: var(--wp--preset--color--aqua-deep); }

/* --- Small screens ------------------------------------------------------- */

@media (max-width: 520px) {
	.aog-rio { right: 16px; bottom: 16px; }

	.aog-rio-launcher { width: 56px; height: 56px; }

	.aog-rio-panel {
		right: -4px;
		bottom: 70px;
		width: calc(100vw - 24px);
		height: min(72vh, calc(100vh - 120px));
	}

	.aog-rio-bubble { bottom: 70px; max-width: calc(100vw - 48px); }
}

@media (prefers-reduced-motion: reduce) {
	.aog-rio-mark,
	.aog-rio-launcher.is-pulsing .aog-rio-ring,
	.aog-rio-status-dot,
	.aog-rio-dot { animation: none; }

	.aog-rio-panel,
	.aog-rio-bubble { transition: opacity 0.15s ease; transform: none; }
}
