/* Brand tokens (colors, type, buttons) live in theme.json. This file carries
   only what blocks can't express: the page glow, screenshot frames, cards,
   the services chips, the call-to-action panel, the dark-mode form fields,
   prose and blog details, focus styles and small-screen fixes. */

/* ---- Page ------------------------------------------------------------- */
body {
	background:
		radial-gradient(900px 520px at 50% -120px, rgba(70, 60, 140, 0.55), transparent 70%),
		linear-gradient(180deg, #161E42 0, #10163A 720px, #090C1E 1500px) no-repeat,
		var(--wp--preset--color--deep);
	color: var(--wp--preset--color--text);
	-webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 184, 64, 0.35); color: #fff; }
a { text-underline-offset: 0.18em; }
.rq-eyebrow { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--amber); }
.rq-meta { font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.rq-lead { font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--soft); }
h1 mark, h2 mark { padding: 0; }

/* ---- Accessibility ------------------------------------------------------ */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--wp--preset--color--amber); outline-offset: 2px; border-radius: 3px; }
.wp-block-button__link:focus-visible { outline-offset: 3px; }
.skip-link.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: 0.75rem 1rem; background: var(--wp--preset--color--amber); color: var(--wp--preset--color--deep); z-index: 100000; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---- Buttons ------------------------------------------------------------ */
.wp-block-button__link { transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--wp--preset--color--amber-light); color: var(--wp--preset--color--deep); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--amber); color: var(--wp--preset--color--amber); }

/* ---- Logo / header / footer ------------------------------------------ */
.rq-logo { display: inline-flex; align-items: center; line-height: 0; }
.rq-logo img { display: block; max-width: none; height: auto; } /* size comes from the width/height attributes logo() sets */
.rq-header { position: relative; z-index: 20; }
.rq-nav .wp-block-navigation-item__content { padding: 0.5rem 0.75rem; border-radius: 999px; color: var(--wp--preset--color--soft); text-decoration: none; }
.rq-nav .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.rq-nav .current-menu-item > .wp-block-navigation-item__content, .rq-nav [aria-current="page"] { color: #fff; }
.rq-header__actions { margin-left: 0.25rem; }
.rq-header__actions .wp-block-button__link { white-space: nowrap; }
@media (min-width: 782px) { .wp-block-navigation .rq-nav__signin { display: none; } } /* the button covers it on wide screens */
.rq-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--night) !important; color: #fff !important; }
.rq-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; padding: 0.75rem 0; }
.rq-nav .wp-block-navigation__responsive-container-open, .rq-nav .wp-block-navigation__responsive-container-close { color: #fff; }

.rq-footer { color: var(--wp--preset--color--muted); }
.rq-footer__brand { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.rq-footer__copyright { color: var(--wp--preset--color--muted); }
.rq-footer__nav .wp-block-navigation-item__content { color: var(--wp--preset--color--soft); text-decoration: none; }
.rq-footer__nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--amber); }
.rq-footer__note { margin-top: 1.5rem; color: var(--wp--preset--color--muted); }

/* ---- Hero -------------------------------------------------------------- */
.rq-hero { position: relative; }
.rq-hero h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.03em; }
.rq-hero__shot { margin-top: var(--wp--preset--spacing--x-large) !important; }

/* ---- Screenshot frames --------------------------------------------------- */
.rq-shot { position: relative; margin: 0; }
.rq-shot img { display: block; width: 100%; height: auto; border: 1px solid rgba(255, 255, 255, 0.1); background: var(--wp--preset--color--deep); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4); }
.rq-shot::before { content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 60, 140, 0.6), transparent); filter: blur(30px); pointer-events: none; }
.rq-shot--tv img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.rq-shot--web img { border-radius: 12px; }
.rq-shot--ipad img { border-radius: 22px; }
.rq-shot--iphone { max-width: 320px; margin-inline: auto; }
.rq-shot--iphone img { border-radius: 36px; border-width: 6px; border-color: #1f2436; }

/* ---- Sections, cards, rows -------------------------------------------- */
.rq-band { background: linear-gradient(180deg, rgba(16, 22, 58, 0.9), rgba(22, 30, 66, 0.6)); border-block: 1px solid var(--wp--preset--color--line); }
.rq-section h2.has-text-align-center { max-width: 30ch; margin-inline: auto; text-wrap: balance; }
.rq-card { position: relative; height: 100%; padding: 1.75rem; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; background: rgba(16, 22, 58, 0.75); transition: border-color 0.15s, transform 0.15s; }
.rq-card:hover { border-color: rgba(255, 184, 64, 0.45); }
.rq-card > * { margin-block: 0; }
.rq-card > * + * { margin-top: 0.75rem; }
.rq-card h3 { font-size: 1.2rem; line-height: 1.3; color: #fff; }
.rq-card p { line-height: 1.6; }
.rq-card__number { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: rgba(255, 184, 64, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 184, 64, 0.4); color: var(--wp--preset--color--amber); font-weight: 700; }
.rq-grid > .rq-card { margin: 0; }
.rq-row h2 { font-size: var(--wp--preset--font-size--x-large); line-height: 1.12; letter-spacing: -0.02em; }
.rq-row .rq-eyebrow + h2 { margin-top: 0.75rem; }
.rq-showcase > .rq-row + .rq-row { margin-top: var(--wp--preset--spacing--x-large); }

/* ---- Services chips ------------------------------------------------------ */
.rq-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; max-width: 60rem; margin: 2rem auto 0; padding: 0; list-style: none; }
.rq-services__item { padding: 0.5rem 1rem; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; background: rgba(16, 22, 58, 0.8); color: var(--wp--preset--color--text); font-size: 0.9375rem; font-weight: 500; }
.rq-services__note { max-width: 40rem; margin: 1.25rem auto 0; text-align: center; font-size: 0.8125rem; color: var(--wp--preset--color--muted); }

/* ---- Final call to action -------------------------------------------- */
.rq-cta { position: relative; overflow: hidden; border: 1px solid rgba(255, 184, 64, 0.25); border-radius: 28px; background: radial-gradient(80% 120% at 50% 0%, rgba(70, 60, 140, 0.75), transparent 70%), var(--wp--preset--color--panel); text-align: center; }
.rq-cta h2 { color: #fff; }

/* ---- Prose (content pages) ------------------------------------------- */
.rq-prose { font-size: 1.0625rem; padding-bottom: var(--wp--preset--spacing--x-large); line-height: 1.75; color: var(--wp--preset--color--soft); }
.rq-prose > * + * { margin-top: 1.1em; }
.rq-prose h2 { margin-top: 2.25em; font-size: 1.6rem; line-height: 1.25; color: #fff; }
.rq-prose h3 { margin-top: 1.75em; font-size: 1.2rem; color: #fff; }
.rq-prose strong { color: var(--wp--preset--color--text); }
.rq-prose a { color: var(--wp--preset--color--amber); }
.rq-prose a:hover { color: var(--wp--preset--color--amber-light); }
.rq-prose ul, .rq-prose ol { padding-left: 1.25em; }
.rq-prose li + li { margin-top: 0.5em; }
.rq-prose li::marker { color: var(--wp--preset--color--amber); }
.rq-prose .wp-block-image img { border: 1px solid var(--wp--preset--color--line); border-radius: 14px; }
.rq-prose blockquote { margin-left: 0; padding-left: 1.25rem; border-left: 3px solid var(--wp--preset--color--amber); }
.rq-prose code { padding: 0.1em 0.35em; border-radius: 0.3rem; background: var(--wp--preset--color--panel-raised); color: var(--wp--preset--color--text); font-size: 0.875em; }
.rq-prose pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; border-radius: 10px; background: var(--wp--preset--color--panel); }
.rq-prose pre code { padding: 0; background: none; }

/* ---- Gravity Forms on dark ------------------------------------------- */
.gform_wrapper { --gf-color-primary: #FFB840; --gf-color-primary-contrast: #090C1E; --gf-color-in-ctrl: #10163A; --gf-color-in-ctrl-contrast: #E8EBF2; --gf-color-in-ctrl-darker: #1B2350; --gf-ctrl-border-color: #3A4378; --gf-ctrl-label-color-primary: #E8EBF2; --gf-ctrl-label-color-secondary: #9AA3B5; --gf-ctrl-desc-color: #9AA3B5; --gf-color-danger: #FF8A80; }
.gform_wrapper :is(input[type="text"], input[type="email"], select, textarea) { border: 1px solid #3A4378 !important; border-radius: 10px !important; background: #10163A !important; color: #E8EBF2 !important; }
.gform_wrapper :is(input, select, textarea):focus { border-color: var(--wp--preset--color--amber) !important; outline: 2px solid rgba(255, 184, 64, 0.35); outline-offset: 0; }
.gform_wrapper .gfield_label, .gform_wrapper legend { color: var(--wp--preset--color--text) !important; font-weight: 600; }
.gform_wrapper .gform_footer :is(input, button)[type="submit"] { padding: 0.75rem 1.5rem !important; border: 0 !important; border-radius: 999px !important; background: var(--wp--preset--color--amber) !important; color: var(--wp--preset--color--deep) !important; font-weight: 600 !important; cursor: pointer; }
.gform_wrapper .gform_footer :is(input, button)[type="submit"]:hover { background: var(--wp--preset--color--amber-light) !important; }
.gform_confirmation_message { padding: 1rem 1.25rem; border: 1px solid rgba(255, 184, 64, 0.35); border-radius: 12px; background: rgba(255, 184, 64, 0.08); color: var(--wp--preset--color--text); }

/* ---- Blog ---------------------------------------------------------------- */
.rq-post-grid { gap: 1.5rem; }
.rq-post-card { position: relative; height: 100%; padding: 1.5rem; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; background: rgba(16, 22, 58, 0.75); transition: border-color 0.15s; }
.rq-post-card:hover, .rq-post-card:focus-within { border-color: rgba(255, 184, 64, 0.5); }
.rq-post-card__image { margin: -1.5rem -1.5rem 0.5rem; overflow: hidden; border-radius: 18px 18px 0 0; }
.rq-post-card__title a { color: #fff; text-decoration: none; }
.rq-post-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is the title's hit area */
.rq-post-card__date { margin-top: auto !important; color: var(--wp--preset--color--muted); }
.rq-article__image img { border-radius: 18px; }
.rq-article__meta { color: var(--wp--preset--color--muted); }
.rq-article__tags a, .rq-article__nav a { color: var(--wp--preset--color--amber); }
.rq-pagination { margin-top: 3rem; }
.rq-pagination a { color: var(--wp--preset--color--amber); }
.rq-search .wp-block-search__input { border: 1px solid #3A4378; border-radius: 10px; padding: 0.625rem 0.75rem; background: var(--wp--preset--color--panel); color: var(--wp--preset--color--text); }

/* ---- Small screens ------------------------------------------------------- */
@media (max-width: 781px) {
	.rq-row--reverse { flex-direction: column-reverse; } /* image first on every row */
	.rq-row h2 { font-size: var(--wp--preset--font-size--large); }
	.rq-shot--tv img { border-radius: 10px; }
	.rq-shot--iphone { max-width: 250px; }
	.rq-cta { border-radius: 20px; }
	.rq-card { padding: 1.4rem; }
}
