/*
Theme Name: QLS Quality Solutions
Theme URI: https://www.qls.se
Author: QLS Quality Solutions AB
Author URI: https://www.qls.se
Description: Custom block theme for QLS Quality Solutions AB.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qls-theme
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, wide-blocks, block-styles
*/

/* ========================================
   Custom Properties
   ======================================== */
:root {
	--qls-navy: #001b33;
	--qls-blue: #204d84;
	--qls-peach: #f7b393;
	--qls-snow: #f8fafc;
	--qls-border: rgba(0, 27, 51, 0.06);
	--qls-border-hover: rgba(0, 27, 51, 0.12);
	--qls-radius: 16px;
	--qls-radius-sm: 10px;
	--qls-radius-btn: 8px;
	--qls-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--qls-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--qls-shadow-sm: 0 1px 3px rgba(0, 27, 51, 0.04), 0 1px 2px rgba(0, 27, 51, 0.02);
	--qls-shadow-md: 0 4px 16px rgba(0, 27, 51, 0.06), 0 1px 3px rgba(0, 27, 51, 0.04);
	--qls-shadow-lg: 0 12px 40px rgba(0, 27, 51, 0.08), 0 4px 12px rgba(0, 27, 51, 0.04);
	--qls-shadow-glow: 0 0 0 1px rgba(32, 77, 132, 0.08), 0 12px 40px rgba(32, 77, 132, 0.06);
}

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

body {
	text-rendering: optimizeLegibility;
}


::selection {
	background: rgba(32, 77, 132, 0.12);
	color: inherit;
}

a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: 0.2em;
}

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

/* Hide spacer on front page (hero goes full-bleed) */
body.home .qls-header-spacer {
	display: none;
}

/* ========================================
   Legacy Header (kept for backwards compat)
   ======================================== */
.qls-solid-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent !important;
	border-bottom: 1px solid transparent;
	transition: background 0.5s var(--qls-ease), box-shadow 0.5s var(--qls-ease), border-color 0.5s var(--qls-ease);
}

.qls-solid-header.is-scrolled {
	background: rgba(0, 27, 51, 0.92) !important;
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
	border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Nav link hover */
.qls-solid-header .wp-block-navigation-item__content {
	position: relative;
}

.qls-solid-header .wp-block-navigation-item__content::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 50%;
	width: 0;
	height: 1.5px;
	background: rgba(255, 255, 255, 0.5);
	transition: width 0.3s var(--qls-ease), left 0.3s var(--qls-ease);
}

.qls-solid-header .wp-block-navigation-item__content:hover::after {
	width: 100%;
	left: 0;
}

.qls-header-logo {
	margin: 0 !important;
}

.qls-header-logo img,
.qls-header-logo svg {
	width: 140px !important;
	height: auto !important;
	max-height: none !important;
	transition: opacity 0.3s var(--qls-ease);
}

.qls-header-logo:hover img,
.qls-header-logo:hover svg {
	opacity: 0.8;
}

/* ========================================
   Mega Menu
   ======================================== */
.qls-mega-panel {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	background: rgba(10, 15, 26, 0.96);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	transition: max-height 0.3s var(--qls-ease), opacity 0.25s var(--qls-ease);
}

.qls-solid-header:has(.qls-mega-trigger:hover) .qls-mega-panel,
.qls-solid-header:has(.qls-mega-trigger:focus-within) .qls-mega-panel,
.qls-mega-panel:hover {
	max-height: 300px;
	opacity: 1;
}

/* Mega menu headings */
.qls-mega-heading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	margin-bottom: 14px;
}

.qls-mega-heading:hover {
	color: #fff;
	opacity: 0.85;
}

/* Mega menu link list */
.qls-mega-links {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.qls-mega-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
	padding: 5px 0;
	transition: color 0.2s var(--qls-ease);
}

.qls-mega-links a:hover {
	color: #fff;
}

.qls-mega-links a svg {
	flex-shrink: 0;
	opacity: 0.5;
	transition: opacity 0.2s var(--qls-ease);
}

.qls-mega-links a:hover svg {
	opacity: 0.9;
}

/* Nav dropdown keep-open zone */
.qls-nav-dropdown:hover .qls-dropdown-panel {
	visibility: visible;
	opacity: 1;
}

/* ========================================
   Cards
   ======================================== */
.qls-card-modern {
	position: relative;
	border: 1px solid var(--qls-border);
	border-radius: var(--qls-radius);
	box-shadow: var(--qls-shadow-sm);
	transition: all 0.45s var(--qls-ease);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* Equal height — card groups that are the ONLY child in a column */
.wp-block-columns > .wp-block-column > .wp-block-group:only-child {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.qls-card-modern:hover {
	border-color: var(--qls-border-hover);
	box-shadow: var(--qls-shadow-lg);
	transform: translateY(-4px);
}

/* Glass card for dark backgrounds */
.qls-card-glass {
	position: relative;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: var(--qls-radius);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: all 0.45s var(--qls-ease);
}

.qls-card-glass:hover {
	background: rgba(255, 255, 255, 0.06) !important;
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

/* ========================================
   Buttons
   ======================================== */
.wp-block-button__link {
	transition: all 0.3s var(--qls-ease);
	position: relative;
	font-weight: 500 !important;
	letter-spacing: 0.01em;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Primary button (white on dark bg) */
.wp-block-button:not(.is-style-outline) .wp-block-button__link[style*="background-color:#ffffff"],
.wp-block-button:not(.is-style-outline) .wp-block-button__link[style*="background-color: #ffffff"] {
	box-shadow: var(--qls-shadow-sm);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link[style*="background-color:#ffffff"]:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link[style*="background-color: #ffffff"]:hover {
	box-shadow: var(--qls-shadow-md);
}

/* Outline buttons */
.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.06) !important;
	box-shadow: none;
}

/* ========================================
   Hero
   ======================================== */
.qls-hero-grid {
	position: relative;
	overflow: hidden;
}

/* Subtle grid overlay */
.qls-hero-grid::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask: radial-gradient(ellipse at 15% 50%, black 0%, transparent 55%);
	mask: radial-gradient(ellipse at 15% 50%, black 0%, transparent 55%);
	pointer-events: none;
}

/* ========================================
   QLS Signature Gradient Elements
   ======================================== */

/* Vertically center columns */
.wp-block-columns.are-vertically-aligned-center {
	align-items: center !important;
}

.wp-block-columns.are-vertically-aligned-center > .wp-block-column {
	align-self: center !important;
}

/* Align right-column KPIs with heading (compensate for label above heading) */
.wp-block-columns > .wp-block-column[style*="padding-top:var(--wp--preset--spacing--40)"] {
	padding-top: 42px !important;
}

/* Posts grid shortcode — responsive */
@media (max-width: 1024px) {
	.qls-posts-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.qls-posts-grid {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}
}

/* QARP section — remove padding-top on mobile */
@media (max-width: 781px) {
	.wp-block-column.qls-fade-in-delay-2[style*="padding-top"] {
		padding-top: 0 !important;
	}
}

/* Gradient hero — match menu alignment */
.qls-page-hero,
.qls-service-hero,
.qls-feature-hero {
	position: relative;
	overflow: hidden;
}

.qls-page-hero > *,
.qls-service-hero > *,
.qls-feature-hero > * {
	max-width: 1184px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.qls-service-hero::before,
.qls-feature-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask: radial-gradient(ellipse at 20% 60%, black 0%, transparent 60%);
	mask: radial-gradient(ellipse at 20% 60%, black 0%, transparent 60%);
	pointer-events: none;
}

/* Gradient accent on h2 inside service/feature content */
.qls-service-content h2,
.qls-feature-content h2 {
	position: relative;
	padding-left: 16px;
}

.qls-service-content h2::before,
.qls-feature-content h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.15em;
	bottom: 0.15em;
	width: 3px;
	border-radius: 2px;
	background: linear-gradient(to bottom, #001b33, #204d84, #f7b393);
}

/* Feature image column — gradient shadow frame */
.qls-feature-image-col .wp-block-post-featured-image img {
	box-shadow:
		0 12px 40px rgba(0, 27, 51, 0.08),
		0 0 0 1px rgba(32, 77, 132, 0.06);
}

/* Gradient underline utility — for inline use */
.qls-gradient-underline {
	background-image: linear-gradient(to right, #001b33, #204d84, #f7b393);
	background-size: 100% 2px;
	background-repeat: no-repeat;
	background-position: bottom;
	padding-bottom: 4px;
}

/* ========================================
   Section Transitions
   ======================================== */
.qls-section-divider {
	height: 1px;
	background: linear-gradient(90deg,
		transparent 0%,
		rgba(0, 27, 51, 0.06) 20%,
		rgba(0, 27, 51, 0.06) 80%,
		transparent 100%
	);
}

/* Subtle noise texture for depth */
.qls-texture {
	position: relative;
}

.qls-texture::after {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0.3;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
	pointer-events: none;
}

/* ========================================
   Stats
   ======================================== */
.qls-counter {
	font-variant-numeric: tabular-nums;
	font-feature-settings: 'tnum';
}

/* ========================================
   Icon Containers
   ======================================== */
.qls-icon-wrap {
	width: 48px;
	height: 48px;
	border-radius: var(--qls-radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.35s var(--qls-ease);
}

.qls-card-modern:hover .qls-icon-wrap {
	transform: translateY(-2px);
	box-shadow: var(--qls-shadow-sm);
}

/* ========================================
   Partner Logos
   ======================================== */
.qls-partner-logos {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 56px;
	flex-wrap: wrap;
}

.qls-partner-logos img {
	height: 26px;
	width: auto;
	opacity: 0.4;
	filter: grayscale(100%) brightness(0);
	transition: all 0.4s var(--qls-ease);
}

.qls-partner-logos img:hover {
	opacity: 0.7;
	filter: grayscale(0%) brightness(0);
}

.qls-logo-fade {
	position: relative;
}

.qls-logo-fade::before,
.qls-logo-fade::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100px;
	z-index: 1;
	pointer-events: none;
}

.qls-logo-fade::before {
	left: 0;
	background: linear-gradient(90deg, var(--qls-snow), transparent);
}

.qls-logo-fade::after {
	right: 0;
	background: linear-gradient(-90deg, var(--qls-snow), transparent);
}

/* ========================================
   Testimonial Glow & Quote Marks
   ======================================== */
.qls-glow-top {
	position: relative;
}

.qls-glow-top::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 25%;
	max-width: 350px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.qls-quote-mark {
	font-family: Georgia, serif;
	font-size: 3.5rem;
	line-height: 1;
	color: rgba(255, 255, 255, 0.1);
	margin-bottom: -8px;
	user-select: none;
}

/* ========================================
   Scroll Animations
   ======================================== */
.qls-fade-in {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--qls-ease), transform 0.7s var(--qls-ease);
}

.qls-fade-in.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.qls-fade-in-delay-1 { transition-delay: 0.08s; }
.qls-fade-in-delay-2 { transition-delay: 0.16s; }
.qls-fade-in-delay-3 { transition-delay: 0.24s; }

/* ========================================
   Image Treatment
   ======================================== */
.wp-block-image img {
	transition: transform 0.6s var(--qls-ease);
}

.qls-card-modern:hover .wp-block-image img {
	transform: scale(1.02);
}

/* ========================================
   Links — Arrow animation
   ======================================== */
a[href*="→"],
a[href*="Läs mer"] {
	transition: gap 0.3s var(--qls-ease);
}

/* ========================================
   CTA Box
   ======================================== */
.qls-cta-box {
	position: relative;
	overflow: hidden;
}

.qls-cta-box::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(32, 77, 132, 0.15) 0%, transparent 70%);
	pointer-events: none;
}

/* ========================================
   Client Names
   ======================================== */
.qls-client-names p {
	transition: color 0.3s var(--qls-ease);
}

.qls-client-names p:hover {
	color: rgba(30, 41, 59, 0.45) !important;
}

/* ========================================
   Typography polish
   ======================================== */
.wp-block-heading {
	text-wrap: balance;
}

/* Muted text on light backgrounds */
.has-muted-color {
	color: #64748b !important;
}

/* ========================================
   Mobile
   ======================================== */
@media (max-width: 781px) {
	.qls-solid-header .wp-block-navigation__responsive-container.is-menu-open {
		background: var(--qls-navy);
	}

	.qls-hero-grid::before {
		display: none;
	}

	/* Hero text overflow fix on mobile */
	.wp-block-cover .wp-block-cover__inner-container {
		padding-left: 20px !important;
		padding-right: 20px !important;
		box-sizing: border-box !important;
		max-width: 100% !important;
	}

	.qls-page-hero,
	.qls-service-hero,
	.qls-feature-hero {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	.qls-partner-logos {
		gap: 28px;
	}

	.qls-partner-logos img {
		height: 20px;
	}

	.qls-logo-fade::before,
	.qls-logo-fade::after {
		display: none;
	}

	.qls-card-modern:hover,
	.qls-card-glass:hover {
		transform: none;
	}

	.qls-team-card {
		min-width: 0;
	}

	.qls-cta-box::before {
		display: none;
	}

	.qls-quote-mark {
		font-size: 2.5rem;
	}
}

/* ========================================
   Blog Cards (archive/index)
   ======================================== */
.wp-block-post-template .wp-block-post {
	border: none !important;
	border-radius: 0 !important;
	overflow: visible !important;
	background: transparent !important;
	box-shadow: none !important;
	height: 100%;
}

.wp-block-post-template .wp-block-post > .qls-card-modern {
	height: 100%;
}

.wp-block-post-template .wp-block-post > .qls-card-modern > .wp-block-group:last-child {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Read more button — in post cards and pattern cards */
.wp-block-post-template .qls-card-readmore {
	margin-top: auto !important;
}

.wp-block-post-template .qls-card-readmore,
.qls-card-modern p.has-small-font-size > a[href],
.qls-card-glass p.has-small-font-size > a[href] {
	display: inline-block;
	padding: 6px 14px;
	background: transparent;
	color: #001b33 !important;
	text-decoration: none !important;
	font-size: 0.75rem !important;
	font-weight: 500 !important;
	border: 1px solid rgba(0, 27, 51, 0.15);
	border-radius: 6px;
	transition: border-color 0.2s ease, color 0.2s ease;
}

/* Spacing above button */
.qls-card-modern p.has-small-font-size:has(> a[href]),
.qls-card-glass p.has-small-font-size:has(> a[href]) {
	margin-top: auto !important;
	padding-top: 8px;
}

.wp-block-post-template .qls-card-readmore:hover,
.qls-card-modern p.has-small-font-size > a[href]:hover,
.qls-card-glass p.has-small-font-size > a[href]:hover {
	border-color: #204d84;
	color: #204d84 !important;
}

/* Glass card variant — white outline */
.qls-card-glass p.has-small-font-size > a[href] {
	color: rgba(255, 255, 255, 0.6) !important;
	border-color: rgba(255, 255, 255, 0.15);
}

.qls-card-glass p.has-small-font-size > a[href]:hover {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.35);
}

.wp-block-post-template .wp-block-post:hover {
	box-shadow: none !important;
}

.wp-block-post-template .wp-block-post .wp-block-post-featured-image {
	margin: 0 !important;
}

.wp-block-post-template .wp-block-post .wp-block-post-featured-image img {
	aspect-ratio: 16/9;
	object-fit: cover;
	width: 100%;
	display: block;
}

.wp-block-post-template .wp-block-post .wp-block-post-title {
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #001b33 !important;
}

.wp-block-post-template .wp-block-post .wp-block-post-title a {
	color: #001b33 !important;
	text-decoration: none !important;
}

.wp-block-post-template .wp-block-post .wp-block-post-title a:hover {
	color: #204d84 !important;
}

.wp-block-post-template .wp-block-post .wp-block-post-excerpt {
	font-size: 0.8125rem !important;
	color: #9ca3af !important;
	line-height: 1.5 !important;
}

.wp-block-post-template .wp-block-post .wp-block-post-date {
	font-size: 0.625rem !important;
	color: #9ca3af !important;
}

.wp-block-post-template .wp-block-post .wp-block-post-terms a {
	color: #0078ff !important;
	text-decoration: none !important;
	font-size: 0.625rem !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
}

/* ========================================
   Alternating section backgrounds
   ======================================== */
.wp-block-separator.is-style-wide {
	display: none !important;
}

/* Increase spacing between top-level blocks in post content */
/* Hero — excerpt styling */
.qls-page-hero .wp-block-post-excerpt,
.qls-page-hero .wp-block-post-excerpt p {
	color: rgba(255, 255, 255, 0.5) !important;
}

body.single .qls-page-hero .wp-block-post-terms a {
	color: rgba(255, 255, 255, 0.5) !important;
	pointer-events: none;
	cursor: default;
	text-decoration: none !important;
}

/* Article content — smaller headings (single posts only) */
body.single .wp-block-post-content h2 {
	font-size: clamp(1.375rem, 3vw, 1.75rem) !important;
	letter-spacing: -0.02em;
	margin-top: clamp(40px, 5vh, 56px);
}

body.single .wp-block-post-content h3 {
	font-size: clamp(1.125rem, 2.5vw, 1.375rem) !important;
	letter-spacing: -0.015em;
	margin-top: clamp(32px, 4vh, 44px);
}

body.single .wp-block-post-content h4 {
	font-size: 1.0625rem !important;
}

.wp-block-post-content > .wp-block-spacer {
	height: 80px !important;
}

/* ========================================
   Page Templates — Column.com-inspired
   ======================================== */

/* Hero — clean, airy, light background */
.qls-page-hero,
.qls-service-hero,
.qls-feature-hero {
	border-bottom: 1px solid rgba(0, 27, 51, 0.06);
}

/* Content section — generous spacing, constrained width */
.qls-page-content,
.qls-service-content,
.qls-feature-content {
	border-bottom: 1px solid rgba(0, 27, 51, 0.04);
}

/* Content typography — tighter paragraphs, better readability */
.qls-page-content p,
.qls-service-content p,
.qls-feature-content p {
	line-height: 1.75;
	color: #334155;
}

.qls-page-content h2,
.qls-service-content h2,
.qls-feature-content h2 {
	margin-top: clamp(56px, 8vh, 96px);
	margin-bottom: 20px;
	letter-spacing: -0.03em;
}

.qls-page-content h3,
.qls-service-content h3,
.qls-feature-content h3 {
	margin-top: clamp(40px, 5vh, 64px);
	margin-bottom: 16px;
	letter-spacing: -0.02em;
}

/* Full-width sections inside content (alternating backgrounds) */
.qls-service-content .wp-block-group.alignfull,
.qls-feature-content .wp-block-group.alignfull {
	padding-top: clamp(64px, 10vh, 120px);
	padding-bottom: clamp(64px, 10vh, 120px);
}

.qls-service-content .wp-block-group.alignfull + .wp-block-group.alignfull {
	border-top: 1px solid rgba(0, 27, 51, 0.04);
}

/* Lists inside content — clean spacing */
.qls-page-content ul,
.qls-service-content ul,
.qls-feature-content ul {
	padding-left: 1.25em;
}

.qls-page-content li,
.qls-service-content li,
.qls-feature-content li {
	margin-top: 0.625rem;
	line-height: 1.65;
	color: #334155;
}

/* Feature hero — asymmetric image treatment */
.qls-feature-hero .wp-block-post-featured-image img {
	border-radius: 12px;
	box-shadow: var(--qls-shadow-lg);
}

/* Separator refinement in content pages */
.qls-page-content .wp-block-separator,
.qls-service-content .wp-block-separator,
.qls-feature-content .wp-block-separator {
	border-color: rgba(0, 27, 51, 0.06) !important;
	margin-top: clamp(48px, 6vh, 80px) !important;
	margin-bottom: clamp(48px, 6vh, 80px) !important;
}

/* Columns inside service content — better gap */
.qls-service-content .wp-block-columns,
.qls-feature-content .wp-block-columns {
	gap: clamp(32px, 4vw, 64px);
}

/* Cards inside content — Column.com clean style */
.qls-service-content .wp-block-group[class*="border"],
.qls-feature-content .wp-block-group[class*="border"] {
	border-radius: var(--qls-radius);
	transition: box-shadow 0.35s var(--qls-ease), transform 0.35s var(--qls-ease);
}

/* Image blocks inside content — subtle radius */
.qls-page-content .wp-block-image img,
.qls-service-content .wp-block-image img,
.qls-feature-content .wp-block-image img {
	border-radius: 10px;
}

/* ========================================
   Team Cards
   ======================================== */
.qls-team-card {
	min-width: 200px;
}

/* ========================================
   Step Numbers
   ======================================== */
.qls-step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	text-align: center;
}

/* ========================================
   Browser Frame (QARP mockup)
   ======================================== */
.qls-browser-frame img {
	width: 100%;
	display: block;
}

/* ========================================
   Icon Image (replacing inline SVG icons)
   ======================================== */
.qls-icon-wrap-img {
	margin: 0 !important;
}

.qls-icon-wrap-img img {
	padding: 12px;
	background: rgba(0, 27, 51, 0.05);
	border-radius: var(--qls-radius-sm);
}

.has-midnight-background-color .qls-icon-wrap-img img,
.qls-card-glass .qls-icon-wrap-img img {
	background: rgba(255, 255, 255, 0.08);
}

/* ========================================
   Testimonial logos
   ======================================== */
.qls-testimonial-logo {
	margin-top: auto !important;
}

.qls-testimonial-logo img {
	filter: brightness(0) invert(1);
	opacity: 0.35;
}

/* ========================================
   AAA Badge in footer
   ======================================== */
.qls-cisco-badge img {
	height: 68px;
	width: auto;
	opacity: 0.35;
	transition: opacity 0.3s ease;
}

.qls-cisco-badge img:hover {
	opacity: 0.6;
}

/* Footer QLS logo */
.has-midnight-background-color .wp-block-image:first-child img[src*="qls-logo"] {
	width: 120px;
	height: auto;
	opacity: 0.9;
}

.qls-aaa-badge img {
	height: 56px;
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 0.35;
	transition: opacity 0.3s ease;
}

.qls-aaa-badge img:hover {
	opacity: 0.6;
}

/* ========================================
   Contact Form (CF7) on dark background
   ======================================== */
.qls-contact-form .wpcf7-form label {
	display: block;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.8125rem;
	font-weight: 500;
	margin-bottom: 16px;
}

.qls-contact-form .wpcf7-form input[type="text"],
.qls-contact-form .wpcf7-form input[type="email"],
.qls-contact-form .wpcf7-form input[type="tel"],
.qls-contact-form .wpcf7-form select,
.qls-contact-form .wpcf7-form textarea {
	width: 100%;
	padding: 10px 14px;
	margin-top: 6px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: #fff;
	font-size: 0.9375rem;
	font-family: inherit;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.qls-contact-form .wpcf7-form input:focus,
.qls-contact-form .wpcf7-form select:focus,
.qls-contact-form .wpcf7-form textarea:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.12);
}

.qls-contact-form .wpcf7-form input::placeholder,
.qls-contact-form .wpcf7-form textarea::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.qls-contact-form .wpcf7-form select {
	appearance: auto;
}

.qls-contact-form .wpcf7-form select option {
	background: #001b33;
	color: #fff;
}

.qls-contact-form .wpcf7-form textarea {
	min-height: 100px;
	resize: vertical;
}

.qls-contact-form .wpcf7-form input[type="submit"] {
	width: 100%;
	padding: 12px 24px;
	margin-top: 8px;
	background: #fff;
	color: #001b33;
	border: none;
	border-radius: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.qls-contact-form .wpcf7-form input[type="submit"]:hover {
	background: #f0f0f0;
	transform: translateY(-1px);
}

.qls-contact-form .wpcf7-form .wpcf7-response-output {
	color: rgba(255, 255, 255, 0.7);
	border-color: rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	font-size: 0.875rem;
}

.qls-contact-form .wpcf7-form .wpcf7-not-valid-tip {
	color: #ff7d6e;
	font-size: 0.8125rem;
}

/* ========================================
   Print
   ======================================== */
@media print {
	.qls-solid-header {
		position: static;
	}
	.qls-fade-in {
		opacity: 1;
		transform: none;
	}
}
