/*
Theme Name: Casino SEO Services
Theme URI: https://casinoseoservices.uk/
Author: Casino SEO Services
Description: Full Site Editing theme for casinoseoservices.uk. Concept: "Live Dashboard" - a dark analytics-terminal look built around the brand's own neon-green iconography and partner-logo set. Void black + neon green + teal, Space Grotesk + Inter, bordered glow panels instead of flat sections.
Version: 2.7.0
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casino-seo-services
*/

/* Most styling lives in theme.json (colors, type, spacing presets).
   This file holds: self-hosted @font-face, panel/card system, the
   nav gap fix, marquee, pricing board, checklist, form panel, and
   layout safety-net rules WP would otherwise inject at render time. */

@font-face {
	font-family: 'Space Grotesk Variable';
	src: url('assets/fonts/space-grotesk-variable.woff2') format('woff2-variations');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter Variable';
	src: url('assets/fonts/inter-variable.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--csso-void: #0A0D0B;
	--csso-panel: #121716;
	--csso-panel-raised: #171C19;
	--csso-neon: #59F440;
	--csso-neon-dim: rgba(89, 244, 64, 0.28);
	--csso-teal: #00A39A;
	--csso-paper: #F2F5F1;
	--csso-muted: #8FA096;
}

html {
	overflow-x: hidden;
}

body {
	background: var(--csso-void);
}

/* alignfull / alignwide / constrained-content centering is handled
   natively by WordPress at render time (from theme.json's
   settings.layout.contentSize/wideSize + each block's own
   align/layout attributes). Deliberately not overriding it here -
   a duplicate rule doing the same job caused content to be shifted
   off-screen by a doubled offset. */

/* Faint dot-grid, dashboard-style backdrop on every dark section
   (including the footer - just the dots, not the heavier glow/corner
   treatment below, which stays off the thin footer bar). */
.wp-block-group.has-void-background-color,
.wp-block-group.has-panel-background-color {
	background-image: radial-gradient(rgba(89, 244, 64, 0.09) 1px, transparent 1px);
	background-size: 22px 22px;
}

/* Soft ambient glow bleeding in from opposite corners, plus corner
   frame accents, on every full section (footer excluded - too thin a
   bar for either). Both are background-image/pseudo-element layers
   that paint behind or outside the text flow, never on top of it. */
.wp-block-group.has-void-background-color,
.wp-block-group.has-panel-background-color:not(footer) {
	background-image:
		radial-gradient(rgba(89, 244, 64, 0.09) 1px, transparent 1px),
		radial-gradient(ellipse 620px 460px at 100% -12%, rgba(89, 244, 64, 0.11), transparent 62%),
		radial-gradient(ellipse 620px 460px at 0% 112%, rgba(0, 163, 154, 0.09), transparent 62%);
	background-size: 22px 22px, auto, auto;
	background-repeat: repeat, no-repeat, no-repeat;
	background-position: 0 0, 0 0, 0 0;
}

/* Corner frame accents - small "terminal viewfinder" brackets echoing
   the dashboard concept, inset within each section's own padding so
   they never sit under the text column. */
.wp-block-group.has-void-background-color,
.wp-block-group.has-panel-background-color:not(footer) {
	position: relative;
}

.wp-block-group.has-void-background-color::before,
.wp-block-group.has-void-background-color::after,
.wp-block-group.has-panel-background-color:not(footer)::before,
.wp-block-group.has-panel-background-color:not(footer)::after {
	content: '';
	position: absolute;
	width: 22px;
	height: 22px;
	border: 1.5px solid rgba(89, 244, 64, 0.3);
	pointer-events: none;
}

.wp-block-group.has-void-background-color::before,
.wp-block-group.has-panel-background-color:not(footer)::before {
	top: 18px;
	left: 18px;
	border-right: none;
	border-bottom: none;
}

.wp-block-group.has-void-background-color::after,
.wp-block-group.has-panel-background-color:not(footer)::after {
	bottom: 18px;
	right: 18px;
	border-left: none;
	border-top: none;
}

@media (max-width: 680px) {
	.wp-block-group.has-void-background-color::before,
	.wp-block-group.has-void-background-color::after,
	.wp-block-group.has-panel-background-color:not(footer)::before,
	.wp-block-group.has-panel-background-color:not(footer)::after {
		display: none;
	}
}

/* Green keyword highlight used inside h1-h3 headings across the site */
.csso-hl {
	color: var(--csso-neon);
}

/* ---------- Header ---------- */

.csso-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 13, 11, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(89, 244, 64, 0.16);
}

.csso-header::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 2px;
	width: var(--csso-scroll, 0%);
	background: var(--csso-neon);
	box-shadow: 0 0 8px var(--csso-neon);
	transition: width 0.1s linear;
}

/* Nav gap fix: every top-level item (plain links AND submenu triggers)
   needs the same horizontal gap - previously plain links had no gap
   from their neighbours and ran together ("Casino PPCASOAbout us"). */
.csso-header .wp-block-navigation {
	gap: 0;
}

.csso-header .wp-block-navigation__container {
	gap: 1.75rem;
}

.csso-header .wp-block-navigation-item,
.csso-header .wp-block-navigation-submenu {
	margin: 0;
}

.csso-header .wp-block-navigation-item__content {
	padding: 0.4rem 0;
}

.csso-header .wp-block-navigation a {
	color: var(--csso-paper) !important;
	font-size: 0.95rem;
}

.csso-header .wp-block-navigation a:hover {
	color: var(--csso-neon) !important;
}

.csso-header .wp-block-navigation__submenu-container {
	background: var(--csso-panel-raised) !important;
	border: 1px solid rgba(89, 244, 64, 0.2);
	border-radius: 4px;
	padding: 0.4rem;
}

.csso-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 0.75rem;
}

/* ---------- Partner logo marquee (real logos) ---------- */

.csso-marquee {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.csso-marquee__track {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	width: max-content;
	animation: csso-scroll 28s linear infinite;
}

.csso-marquee__chip {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.15rem 1.75rem;
	background: var(--csso-panel);
	border: 1px solid rgba(89, 244, 64, 0.16);
	border-radius: 6px;
}

.csso-marquee__chip img {
	height: 32px;
	width: auto;
	display: block;
}

@keyframes csso-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ---------- Hero dashboard illustration ---------- */

.csso-hero-visual {
	position: relative;
}

.csso-hero-visual::before {
	content: '';
	position: absolute;
	inset: -15%;
	background: radial-gradient(circle, var(--csso-neon) 0%, var(--csso-teal) 45%, transparent 72%);
	opacity: 0.14;
	filter: blur(20px);
	z-index: -1;
}

.csso-hero-visual img {
	width: 100%;
	height: auto;
	display: block;
}

.csso-hero-chip {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.9rem;
	background: rgba(10, 13, 11, 0.92);
	border: 1px solid rgba(89, 244, 64, 0.4);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(89, 244, 64, 0.12);
	font-family: 'Space Grotesk Variable', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	color: #F2F5F1;
	white-space: nowrap;
	pointer-events: none;
}

.csso-hero-chip svg {
	width: 16px;
	height: 16px;
	flex: none;
}

.csso-hero-chip--tr {
	top: 4%;
	right: 2%;
}

.csso-hero-chip--bl {
	bottom: 6%;
	left: 2%;
}

@media (max-width: 900px) {
	.csso-hero-chip {
		display: none;
	}
}

/* ---------- Panel card system (process, why-us, trust) ---------- */

.csso-panel {
	background: var(--csso-panel);
	border: 1px solid rgba(89, 244, 64, 0.16);
	border-radius: 8px;
	padding: 2.25rem;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.csso-panel.is-active,
.csso-panel:hover {
	border-color: rgba(89, 244, 64, 0.5);
	box-shadow: 0 0 0 1px rgba(89, 244, 64, 0.15), 0 0 32px rgba(89, 244, 64, 0.08);
}

.csso-panel-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(89, 244, 64, 0.08);
	border: 1px solid rgba(89, 244, 64, 0.25);
	border-radius: 8px;
	margin-bottom: 1.1rem;
}

.csso-panel-icon img {
	width: 30px;
	height: 30px;
	display: block;
}

.csso-panel-num {
	font-family: 'Space Grotesk Variable', sans-serif;
	font-variant-numeric: tabular-nums;
	color: var(--csso-neon);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	display: block;
	margin-bottom: 0.6rem;
}

.csso-panel-stat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.csso-panel-figure {
	font-family: 'Space Grotesk Variable', sans-serif;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: var(--csso-neon);
	font-size: 2rem;
	line-height: 1;
	display: block;
}

.csso-sparkline {
	flex: none;
	width: 64px;
	height: 24px;
	opacity: 0.75;
}

.csso-grid {
	display: grid;
	gap: 1.25rem;
}

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

@media (max-width: 900px) {
	.csso-grid--2,
	.csso-grid--3 {
		grid-template-columns: 1fr;
	}
}

/* ---------- Process timeline (numbered steps with icons) ---------- */

.csso-timeline {
	position: relative;
	display: grid;
	gap: 1.5rem;
}

.csso-timeline::before {
	content: '';
	position: absolute;
	left: 29px;
	top: 30px;
	bottom: 30px;
	width: 2px;
	background: linear-gradient(to bottom, rgba(89, 244, 64, 0.5), rgba(89, 244, 64, 0.04));
}

.csso-timeline-item {
	position: relative;
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
}

.csso-timeline-badge {
	position: relative;
	z-index: 1;
	flex: none;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--csso-panel-raised);
	border: 2px solid rgba(89, 244, 64, 0.3);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.csso-timeline-item.is-active .csso-timeline-badge,
.csso-timeline-item:hover .csso-timeline-badge {
	border-color: var(--csso-neon);
	box-shadow: 0 0 0 5px rgba(89, 244, 64, 0.1), 0 0 24px rgba(89, 244, 64, 0.25);
}

.csso-timeline-badge svg {
	width: 24px;
	height: 24px;
	stroke: var(--csso-neon);
	fill: none;
}

.csso-timeline-content {
	flex: 1;
	background: var(--csso-panel);
	border: 1px solid rgba(89, 244, 64, 0.16);
	border-radius: 8px;
	padding: 1.5rem 1.75rem;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.csso-timeline-item.is-active .csso-timeline-content,
.csso-timeline-item:hover .csso-timeline-content {
	border-color: rgba(89, 244, 64, 0.45);
	box-shadow: 0 0 32px rgba(89, 244, 64, 0.08);
	transform: translateX(4px);
}

.csso-timeline-eyebrow {
	display: block;
	font-family: 'Space Grotesk Variable', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--csso-neon);
	margin-bottom: 0.4rem;
	text-transform: uppercase;
}

@media (max-width: 640px) {
	.csso-timeline::before { left: 24px; }
	.csso-timeline-badge { width: 48px; height: 48px; }
	.csso-timeline-badge svg { width: 20px; height: 20px; }
	.csso-timeline-item { gap: 1rem; }
}

/* ---------- Pricing cards ---------- */

.csso-pricing-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.75rem;
}

@media (max-width: 720px) {
	.csso-pricing-grid { grid-template-columns: 1fr; }
}

.csso-pricing-card {
	background: var(--csso-panel);
	border: 1px solid rgba(89, 244, 64, 0.18);
	border-radius: 12px;
	padding: 2.75rem;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.csso-pricing-card:hover {
	border-color: rgba(89, 244, 64, 0.4);
	transform: translateY(-3px);
}

.csso-pricing-card.is-recommended {
	border-color: var(--csso-neon);
	background: linear-gradient(160deg, rgba(89, 244, 64, 0.08), var(--csso-panel) 65%);
	box-shadow: 0 0 40px rgba(89, 244, 64, 0.1);
}

.csso-pricing-card__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-bottom: 1.25rem;
}

.csso-pricing-card__icon {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(89, 244, 64, 0.08);
	border: 1px solid rgba(89, 244, 64, 0.25);
}

.csso-pricing-card__icon svg {
	width: 20px;
	height: 20px;
}

.csso-pricing-card__head h3 {
	margin: 0;
	font-family: 'Space Grotesk Variable', sans-serif;
	font-weight: 600;
	font-size: 1.4rem;
	color: var(--csso-paper);
}

.csso-pricing-card__budget {
	font-family: 'Space Grotesk Variable', sans-serif;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: 2.4rem;
	color: var(--csso-neon);
	margin-bottom: 1.75rem;
	line-height: 1.15;
}

.csso-pricing-card__meta {
	margin: 0;
	display: grid;
	gap: 1.3rem;
}

.csso-pricing-card__meta > div {
	border-top: 1px solid rgba(89, 244, 64, 0.12);
	padding-top: 1.3rem;
}

.csso-pricing-card__meta > div:first-child {
	border-top: none;
	padding-top: 0;
}

.csso-pricing-card__meta dt {
	font-family: 'Space Grotesk Variable', sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--csso-muted);
	margin: 0 0 0.4rem;
}

.csso-pricing-card__meta dd {
	margin: 0;
	color: var(--csso-paper);
	font-size: 1.05rem;
	line-height: 1.55;
}

.csso-board__badge {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--csso-void);
	background: var(--csso-neon);
	border-radius: 3px;
	vertical-align: middle;
}

/* ---------- Checklist (final CTA) ---------- */

.csso-checklist.wp-block-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.75rem;
}

.csso-checklist.wp-block-list li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.1rem;
	padding: 1.15rem 1.4rem;
	background: var(--csso-panel);
	border: 1px solid rgba(89, 244, 64, 0.2);
	border-radius: 8px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.csso-checklist.wp-block-list li:hover {
	border-color: rgba(89, 244, 64, 0.5);
	box-shadow: 0 0 24px rgba(89, 244, 64, 0.1);
	transform: translateX(4px);
}

.csso-checklist__icon {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(89, 244, 64, 0.08);
	border: 1px solid rgba(89, 244, 64, 0.25);
}

.csso-checklist img {
	width: 22px;
	height: 22px;
	flex: none;
}

/* ---------- Buttons ---------- */

.wp-block-button__link {
	position: relative;
	transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.wp-block-button__link:hover {
	box-shadow: 0 0 24px rgba(89, 244, 64, 0.45);
	transform: translateY(-1px);
}

.is-style-outline .wp-block-button__link {
	border-color: var(--csso-neon) !important;
	color: var(--csso-neon) !important;
}

.is-style-outline .wp-block-button__link:hover {
	background: var(--csso-neon) !important;
	color: var(--csso-void) !important;
}

/* ---------- Pullquote ----------
   Explicit, high-specificity resets: WordPress core applies its own
   default border and citation styling to this block (visible as
   heavy top/bottom rules and an all-caps citation on the live site)
   that isn't in the block-library stylesheet itself, so it has to be
   overridden here rather than assumed absent. */

.wp-block-pullquote,
.wp-block-pullquote.wp-block-pullquote {
	border: none !important;
	text-align: left;
	margin: 0 0 1em 0;
	padding: 0;
}

.wp-block-pullquote blockquote {
	border: none;
	border-left: 3px solid var(--csso-neon) !important;
	padding-left: 1.25rem;
	margin: 0;
	text-align: left;
}

.wp-block-pullquote cite,
.wp-block-pullquote cite.wp-block-pullquote__citation {
	text-transform: none !important;
	font-style: normal;
	font-size: 0.9rem;
	color: var(--csso-muted);
	display: block;
	margin-top: 0.75rem;
}

/* ---------- Problem-section illustration ---------- */

.csso-problem-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.csso-problem-visual::before {
	content: '';
	position: absolute;
	inset: 10%;
	background: radial-gradient(circle, var(--csso-neon) 0%, var(--csso-teal) 55%, transparent 75%);
	opacity: 0.1;
	filter: blur(20px);
	z-index: -1;
}

.csso-problem-visual svg {
	width: 100%;
	height: auto;
	max-width: 340px;
}

@media (max-width: 782px) {
	.csso-problem-visual { margin-top: 2rem; }
}

/* ---------- Final CTA rank badge illustration ---------- */

.csso-rank-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.csso-rank-badge::before {
	content: '';
	position: absolute;
	inset: 8%;
	background: radial-gradient(circle, var(--csso-neon) 0%, var(--csso-teal) 55%, transparent 75%);
	opacity: 0.14;
	filter: blur(18px);
	z-index: -1;
}

.csso-rank-badge svg {
	width: 100%;
	height: auto;
	max-width: 220px;
}

@media (max-width: 782px) {
	.csso-rank-badge { margin-top: 2rem; }
}

/* ---------- Trust strip badge illustration ---------- */

.csso-trust-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.csso-trust-badge::before {
	content: '';
	position: absolute;
	inset: 8%;
	background: radial-gradient(circle, var(--csso-neon) 0%, var(--csso-teal) 55%, transparent 75%);
	opacity: 0.16;
	filter: blur(18px);
	z-index: -1;
}

.csso-trust-badge svg {
	width: 100%;
	height: auto;
	max-width: 200px;
}

@media (max-width: 782px) {
	.csso-trust-badge { margin-top: 2rem; }
}

/* ---------- Contact form panel ---------- */

.csso-form-panel {
	background: var(--csso-panel);
	border: 1px solid rgba(89, 244, 64, 0.2);
	border-radius: 8px;
	padding: 2.5rem;
}

.csso-form-placeholder {
	min-height: 360px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.9rem;
	text-align: center;
	background: var(--csso-panel);
	border: 1px dashed rgba(89, 244, 64, 0.35);
	border-radius: 8px;
	padding: 2.5rem;
}

.csso-form-placeholder svg {
	width: 34px;
	height: 34px;
}

.csso-form-placeholder p {
	margin: 0;
	color: var(--csso-muted);
	font-family: 'Space Grotesk Variable', sans-serif;
	font-size: 1.05rem;
}

.csso-form-panel input,
.csso-form-panel textarea {
	width: 100%;
	background: rgba(242, 245, 241, 0.05);
	border: 1px solid rgba(242, 245, 241, 0.18);
	color: var(--csso-paper);
	border-radius: 4px;
	padding: 0.85rem 1rem;
	font-family: 'Inter Variable', sans-serif;
	font-size: 1rem;
	margin-bottom: 1rem;
}

.csso-form-panel input:focus,
.csso-form-panel textarea:focus {
	outline: none;
	border-color: var(--csso-neon);
	box-shadow: 0 0 0 3px rgba(89, 244, 64, 0.15);
}

.csso-form-panel label {
	color: var(--csso-muted);
	font-size: 0.85rem;
	display: block;
	margin-bottom: 0.35rem;
}

.csso-form-panel input::placeholder,
.csso-form-panel textarea::placeholder {
	color: rgba(242, 245, 241, 0.35);
}

.csso-form-panel button[type="submit"] {
	background: var(--csso-neon);
	color: var(--csso-void);
	border: none;
	padding: 0.9rem 1.75rem;
	font-weight: 700;
	border-radius: 4px;
	cursor: pointer;
	font-family: 'Inter Variable', sans-serif;
	transition: box-shadow 0.25s ease;
}

.csso-form-panel button[type="submit"]:hover {
	box-shadow: 0 0 24px rgba(89, 244, 64, 0.45);
}

.csso-form-status {
	margin-top: 0.85rem;
	font-size: 0.9rem;
}

.csso-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Motion respect ---------- */

@media (prefers-reduced-motion: reduce) {
	.csso-marquee__track,
	.csso-header::after,
	.wp-block-button__link {
		animation: none !important;
		transition: none !important;
	}
}
