/*
Theme Name: Right Station
Theme URI: https://rightstation.com
Author: Right Station Ltd.
Author URI: https://rightstation.com
Description: Custom dark block theme for Right Station Ltd. — AI training, AI project development (RAG / Graph AI) and forward-deployed AI consultancy for SMEs and schools.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: right-station
Tags: block-theme, full-site-editing, one-column, two-columns, dark, custom-colors, custom-logo, editor-style, block-patterns
*/

/* =========================================================================
   Right Station — theme styles
   Palette: base #011222 · surface #0B1E2D · primary #F97316 · cyan #38BDF8
   ========================================================================= */

:root {
	--rs-base: #011222;
	--rs-surface: #0B1E2D;
	--rs-surface-2: #122B3E;
	--rs-line: #1E3448;
	--rs-contrast: #FAFAFA;
	--rs-muted: #A1A1AA;
	--rs-primary: #F97316;
	--rs-primary-hover: #EA580C;
	--rs-cyan: #38BDF8;
	--rs-radius: 18px;
	--rs-shadow: 0 34px 80px -30px rgba(0, 0, 0, .85);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* every section group */
.rs-section {
	position: relative;
	padding-top: clamp(64px, 8vw, 96px);
	padding-bottom: clamp(64px, 8vw, 96px);
}
.rs-section--tight { padding-top: 0; padding-bottom: 0; }
.rs-section--alt {
	background-color: var(--rs-surface);
	border-top: 1px solid var(--rs-line);
	border-bottom: 1px solid var(--rs-line);
}

/* small orange label above headings */
.rs-eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rs-primary);
	margin-bottom: 14px;
}
.rs-eyebrow.rs-eyebrow--center { text-align: center; }

.rs-center { text-align: center; }
.rs-center .rs-lead { margin-left: auto; margin-right: auto; }

.rs-lead {
	font-size: clamp(16px, 1.15vw + 12px, 18px);
	color: var(--rs-muted);
	max-width: 62ch;
	line-height: 1.6;
}

.rs-mt-1 { margin-top: 18px; }
.rs-mt-2 { margin-top: 32px; }
.rs-mt-3 { margin-top: 52px; }

/* ---------- header ---------- */
.rs-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: rgba(1, 18, 34, .84);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--rs-line);
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
.rs-header .wp-block-group__inner-container,
.rs-header > .wp-block-group__inner-container { min-height: 74px; }
.rs-header > .wp-block-group {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: var(--wp--style--global--content-size, 1200px);
	margin-left: auto;
	margin-right: auto;
}
.rs-header .wp-block-navigation { font-size: 15px; }
.rs-header .wp-block-site-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.rs-header .wp-block-site-title a { color: var(--rs-contrast); }
.rs-header .wp-block-navigation a:hover { color: var(--rs-primary); }

@media (max-width: 900px) {
	.rs-header > .wp-block-group { gap: 1rem; }
	.rs-header .wp-block-navigation { display: none; }
}

/* ---------- hero ---------- */
.rs-hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(72px, 9vw, 112px);
	padding-bottom: clamp(56px, 7vw, 80px);
}
.rs-hero::before {
	content: "";
	position: absolute;
	top: -280px;
	left: 50%;
	transform: translateX(-50%);
	width: 1100px;
	height: 640px;
	pointer-events: none;
	background: radial-gradient(ellipse at center, rgba(249, 115, 22, .17), transparent 66%);
}
.rs-hero > * { position: relative; }
.rs-hero h1 { margin-bottom: 20px; }
.rs-hero h1 .rs-accent { color: var(--rs-primary); }

/* ---------- media blocks ---------- */
.rs-media { margin: 0 !important; }
.rs-media img {
	width: 100%;
	display: block;
	border-radius: var(--rs-radius);
	object-fit: cover;
}
.rs-media--wide img { aspect-ratio: 3 / 2; }
.rs-media--square img { aspect-ratio: 1 / 1; }
.rs-media--frame {
	border: 1px solid var(--rs-line);
	border-radius: var(--rs-radius);
	overflow: hidden;
	box-shadow: var(--rs-shadow);
}
.rs-media--frame img { border-radius: 0; }

/* ---------- trust / stats strip ---------- */
.rs-stats {
	border-top: 1px solid var(--rs-line);
	border-bottom: 1px solid var(--rs-line);
	padding-top: clamp(32px, 4vw, 44px);
	padding-bottom: clamp(32px, 4vw, 44px);
}
.rs-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 18px;
	border-radius: 100px;
	border: 1px solid rgba(249, 115, 22, .42);
	background-color: rgba(249, 115, 22, .09);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--rs-primary);
	margin-bottom: 18px;
}
.rs-stat-number {
	font-size: clamp(26px, 2.4vw + 14px, 34px);
	font-weight: 700;
	color: var(--rs-contrast);
	line-height: 1.15;
	letter-spacing: -.02em;
	margin-bottom: 6px;
}
.rs-stat-label { font-size: 14px; line-height: 1.45; margin: 0; }
.rs-fineprint { font-size: 13.5px; line-height: 1.5; margin: 0; }

/* ---------- cards ---------- */
.rs-card {
	background-color: var(--rs-surface);
	border: 1px solid var(--rs-line);
	border-radius: var(--rs-radius);
	overflow: hidden;
	padding: 0 !important;
	transition: transform .22s ease, border-color .22s ease;
	height: 100%;
}
.rs-card:hover { transform: translateY(-5px); border-color: rgba(249, 115, 22, .5); }
.rs-card .rs-media img { border-radius: 0; }
.rs-card .rs-card-body { padding: 26px; }
.rs-card h3 { margin-bottom: 12px; }
.rs-card p { font-size: 14.5px; }
.rs-card .rs-card-link { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; }

/* equal-height columns */
.rs-cards .wp-block-column { display: flex; }
.rs-cards .wp-block-column > .wp-block-group { width: 100%; }

/* ---------- plain info cards (no image) ---------- */
.rs-panel {
	background-color: var(--rs-surface-2);
	border: 1px solid var(--rs-line);
	border-radius: 16px;
	padding: 30px;
	height: 100%;
}
.rs-panel h3 { margin-bottom: 14px; }
.rs-panel p { font-size: 14.5px; }
.rs-panel .rs-step {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background-color: rgba(249, 115, 22, .13);
	border: 1px solid rgba(249, 115, 22, .45);
	color: var(--rs-primary);
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 20px;
}
.rs-panels .wp-block-column { display: flex; }
.rs-panels .wp-block-column > .wp-block-group { width: 100%; }

/* ---------- split sections ---------- */
.rs-split { align-items: center; }
.rs-split .wp-block-column { min-width: 0; }
.rs-checks {
	list-style: none;
	margin: 26px 0 0;
	padding: 0 !important;
}
.rs-checks li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 11px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--rs-muted);
}
.rs-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background-color: rgba(249, 115, 22, .16);
	border: 1px solid var(--rs-primary);
}
.rs-checks li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 10.5px;
	width: 5px;
	height: 2.5px;
	border-left: 1.5px solid var(--rs-primary);
	border-bottom: 1.5px solid var(--rs-primary);
	transform: rotate(-45deg);
}

/* ---------- posts ---------- */
.rs-post {
	background-color: var(--rs-surface);
	border: 1px solid var(--rs-line);
	border-radius: 14px;
	padding: 24px;
	height: 100%;
	transition: border-color .2s ease, transform .2s ease;
}
.rs-post:hover { border-color: rgba(249, 115, 22, .5); transform: translateY(-4px); }
.rs-post .wp-block-post-title { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 0 0 10px; }
.rs-post .wp-block-post-title a { color: var(--rs-contrast); }
.rs-post .wp-block-post-date { font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }
.rs-posts .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 940px) {
	.rs-posts .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.rs-posts .wp-block-post-template { grid-template-columns: 1fr; }
}
.rs-posts .wp-block-post-template > li { margin: 0; }
.rs-posts .wp-block-column { display: flex; }
.rs-posts .wp-block-column > .wp-block-group { width: 100%; }

/* ---------- CTA ---------- */
.rs-cta {
	position: relative;
	text-align: center;
	overflow: hidden;
	border-top: 1px solid var(--rs-line);
	background-color: var(--rs-base);
	background-image:
		linear-gradient(180deg, rgba(1, 18, 34, .74) 0%, rgba(1, 18, 34, .95) 100%),
		url("assets/images/07-cta-background.webp");
	background-size: cover;
	background-position: center;
	padding-top: clamp(72px, 8vw, 104px);
	padding-bottom: clamp(72px, 8vw, 104px);
}
.rs-cta .wp-block-buttons { justify-content: center; }

/* ---------- footer ---------- */
.rs-footer {
	background-color: var(--rs-surface);
	border-top: 1px solid var(--rs-line);
	padding-top: clamp(48px, 6vw, 64px);
	padding-bottom: 32px;
}
.rs-footer h2,
.rs-footer .wp-block-heading {
	font-size: 13px !important;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--rs-contrast);
	margin-bottom: 16px;
}
.rs-footer p,
.rs-footer li { font-size: 14.5px; line-height: 1.6; }
.rs-footer ul { list-style: none; margin: 0; padding: 0 !important; }
.rs-footer li { margin-bottom: 10px; }
.rs-footer a { color: var(--rs-muted); }
.rs-footer a:hover { color: var(--rs-primary); }
.rs-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--rs-line);
	font-size: 13px;
	color: var(--rs-muted);
}
.rs-footer-bottom p { font-size: 13px; margin: 0; }

/* ---------- generic page / post content ---------- */
.rs-entry {
	padding-top: clamp(56px, 7vw, 88px);
	padding-bottom: clamp(56px, 7vw, 88px);
}
.rs-entry .wp-block-post-title { margin-bottom: 28px; }
.rs-entry .wp-block-post-featured-image img { border-radius: var(--rs-radius); }
.rs-entry-content > * + * { margin-top: 1.25rem; }
.rs-entry-content h2 { margin-top: 2.5rem; }
.rs-entry-content h3 { margin-top: 2rem; }
.rs-entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.rs-entry-content blockquote {
	border-left: 3px solid var(--rs-primary);
	margin: 2rem 0;
	padding: .25rem 0 .25rem 1.5rem;
	color: var(--rs-contrast);
	font-size: 18px;
}
.rs-entry-content code {
	background-color: var(--rs-surface-2);
	border-radius: 6px;
	padding: .15em .45em;
	font-size: .92em;
	color: var(--rs-cyan);
}
.rs-entry-content pre {
	background-color: var(--rs-surface-2);
	border: 1px solid var(--rs-line);
	border-radius: 12px;
	padding: 1.25rem;
	overflow-x: auto;
}
.rs-entry-content img { border-radius: 12px; }
.rs-entry-content table { width: 100%; border-collapse: collapse; }
.rs-entry-content th,
.rs-entry-content td {
	border: 1px solid var(--rs-line);
	padding: .65rem .85rem;
	text-align: left;
	font-size: 15px;
}
.rs-entry-content th { background-color: var(--rs-surface-2); color: var(--rs-contrast); }

/* ---------- archive list ---------- */
.rs-archive-grid .wp-block-post-template { display: grid; gap: 22px; }
.rs-archive-grid .wp-block-post { padding: 0; }

/* ---------- search / 404 ---------- */
.rs-404 { text-align: center; padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.rs-404 .rs-404-code {
	font-size: clamp(64px, 12vw, 120px);
	font-weight: 700;
	line-height: 1;
	color: var(--rs-primary);
	letter-spacing: -.04em;
	margin-bottom: 16px;
}

/* ---------- utility ---------- */
.rs-no-margin { margin: 0 !important; }
.rs-nowrap { white-space: nowrap; }

@media (max-width: 781px) {
	.rs-header .wp-block-group__inner-container { min-height: 64px; }
	.rs-hero { padding-top: 56px; }
}
