/*
Theme Name: COSTOP AI
Theme URI: https://costop.example
Author: COSTOP
Author URI: https://costop.example
Description: Lightweight block theme for COSTOP AI & Automation.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: costop-ai
*/

:root {
	--costop-bg: #081625;
	--costop-surface: #10263d;
	--costop-surface-alt: #132d49;
	--costop-primary: #1683ff;
	--costop-primary-dark: #0f5fcc;
	--costop-text: #0f1720;
	--costop-text-soft: #5f6f82;
	--costop-white: #ffffff;
	--costop-border: #d8e2ee;
	--costop-muted: #eef3f8;
	--costop-shadow: 0 20px 45px rgba(5, 23, 39, 0.12);
	--costop-radius: 22px;
	--costop-radius-sm: 14px;
	--costop-container: min(1240px, calc(100vw - 2.5rem));
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: linear-gradient(180deg, #eef4fb 0%, #ffffff 24%, #f5f8fc 100%);
	color: var(--costop-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

a {
	color: var(--costop-primary);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--costop-primary-dark);
}

img {
	height: auto;
	max-width: 100%;
}

.wp-site-blocks {
	padding: 0;
}

.costop-shell {
	overflow: clip;
}

.costop-container {
	margin: 0 auto;
	width: var(--costop-container);
}

.costop-section {
	padding: 4.5rem 0;
	position: relative;
}

.costop-section--compact {
	padding: 3rem 0;
}

.costop-section--dark {
	background:
		radial-gradient(circle at top right, rgba(22, 131, 255, 0.18), transparent 28%),
		linear-gradient(180deg, #07131f 0%, #0e2034 100%);
	color: var(--costop-white);
}

.costop-eyebrow {
	color: var(--costop-primary);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 0.9rem;
	text-transform: uppercase;
}

.costop-section--dark .costop-eyebrow,
.costop-section--dark .costop-kicker {
	color: rgba(255, 255, 255, 0.92);
}

.costop-section-heading {
	font-size: clamp(2rem, 3vw, 3.3rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin: 0 0 1rem;
}

.costop-lead,
.costop-copy {
	color: var(--costop-text-soft);
	font-size: 1.04rem;
	margin: 0;
}

.costop-section--dark .costop-lead,
.costop-section--dark .costop-copy,
.costop-section--dark .costop-card p,
.costop-section--dark .costop-list li {
	color: rgba(255, 255, 255, 0.8);
}

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

.costop-grid--2 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

.costop-card {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(216, 226, 238, 0.85);
	border-radius: var(--costop-radius);
	box-shadow: var(--costop-shadow);
	padding: 1.5rem;
}

.costop-about-panel {
	padding: 0;
}

.costop-section--dark .costop-card {
	background: rgba(17, 39, 63, 0.72);
	border-color: rgba(255, 255, 255, 0.08);
}

.costop-hero {
	padding: 2rem 0 5rem;
	position: relative;
}

.costop-header {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 1rem 0 0.5rem;
}

.costop-branding {
	align-items: center;
	display: inline-flex;
	gap: 0.9rem;
}

.costop-branding img {
	max-height: 100px;
	width: auto;
}

.costop-brand-text {
	display: flex;
	flex-direction: column;
}

.costop-brand-name {
	color: var(--costop-bg);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.costop-brand-tag {
	color: var(--costop-text-soft);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	margin-top: 0.25rem;
	text-transform: uppercase;
}

.costop-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.3rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.costop-nav a {
	color: var(--costop-bg);
	font-size: 0.95rem;
	font-weight: 600;
}

.costop-menu-toggle {
	display: none;
}

.costop-hero-grid {
	align-items: center;
	display: grid;
	gap: 2rem;
	margin-top: 2rem;
}

.costop-hero-copy {
	max-width: 680px;
}

.costop-hero-title {
	color: var(--costop-bg);
	font-size: clamp(2.5rem, 6vw, 4.9rem);
	letter-spacing: -0.05em;
	line-height: 0.96;
	margin: 0;
}

.costop-hero-subtitle {
	color: var(--costop-text-soft);
	font-size: clamp(1.02rem, 2vw, 1.2rem);
	margin: 1.25rem 0 0;
	max-width: 52rem;
}

.costop-button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: 1.75rem;
}

.costop-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.95rem;
	font-weight: 700;
	justify-content: center;
	min-height: 50px;
	padding: 0.85rem 1.4rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.costop-button:hover,
.costop-button:focus {
	box-shadow: 0 16px 30px rgba(22, 131, 255, 0.22);
	transform: translateY(-1px);
}

.costop-button--primary {
	background: linear-gradient(135deg, var(--costop-primary), #45b2ff);
	color: var(--costop-white);
}

.costop-button--secondary {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(15, 23, 32, 0.08);
	color: var(--costop-bg);
}

.costop-button--light {
	background: var(--costop-white);
	color: var(--costop-bg);
}

.costop-hero-panel {
	background:
		linear-gradient(160deg, rgba(7, 19, 31, 0.92), rgba(19, 45, 73, 0.9)),
		radial-gradient(circle at top right, rgba(22, 131, 255, 0.25), transparent 32%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 28px;
	box-shadow: var(--costop-shadow);
	color: var(--costop-white);
	overflow: hidden;
	padding: 1.1rem;
}

.costop-hero-panel img {
	border-radius: 20px;
	display: block;
	width: 100%;
}

.costop-panel-meta {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 1rem;
}

.costop-stat {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 0.95rem 1rem;
}

.costop-stat strong {
	display: block;
	font-size: 1.4rem;
	line-height: 1;
	margin-bottom: 0.35rem;
}

.costop-trust-strip {
	background: var(--costop-bg);
	color: var(--costop-white);
	padding: 1rem 0;
}

.costop-trust-strip p {
	color: var(--costop-white);
	font-size: 0.98rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin: 0;
	text-align: center;
}

.costop-icon-badge {
	align-items: center;
	background: rgba(22, 131, 255, 0.12);
	border-radius: 16px;
	color: var(--costop-primary);
	display: inline-flex;
	font-size: 1.25rem;
	height: 3rem;
	justify-content: center;
	width: 3rem;
}

.costop-card h3,
.costop-package h3 {
	font-size: 1.25rem;
	letter-spacing: -0.03em;
	margin: 0.9rem 0 0.6rem;
}

.costop-list {
	display: grid;
	gap: 0.75rem;
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
}

.costop-list li {
	align-items: flex-start;
	display: flex;
	gap: 0.7rem;
}

.costop-list li::before {
	color: var(--costop-primary);
	content: "•";
	font-size: 1.2rem;
	line-height: 1;
	margin-top: 0.05rem;
}

.costop-dual-panel {
	display: grid;
	gap: 1.25rem;
	margin-top: 2rem;
}

.costop-package {
	background: var(--costop-white);
	border: 1px solid rgba(16, 38, 61, 0.08);
	border-radius: 26px;
	box-shadow: var(--costop-shadow);
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
}

.costop-package--featured {
	background: linear-gradient(180deg, #0e2034 0%, #112c47 100%);
	color: var(--costop-white);
	transform: translateY(-0.35rem);
}

.costop-package--featured h3,
.costop-package--featured .costop-package-price,
.costop-package--featured .costop-package-meta,
.costop-package--featured p,
.costop-package--featured .costop-list li,
.costop-package--featured .costop-list li::before {
	color: var(--costop-white);
}

.costop-package-price {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	margin: 0.75rem 0;
}

.costop-package-meta {
	color: var(--costop-text-soft);
	font-size: 0.92rem;
	margin-bottom: 1rem;
}

.costop-package--featured li {
	color: var(--costop-white);
}

.costop-stack {
	display: grid;
	gap: 1rem;
}

.costop-kicker {
	align-items: center;
	background: rgba(22, 131, 255, 0.1);
	border-radius: 999px;
	color: var(--costop-primary);
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin-bottom: 1rem;
	padding: 0.55rem 0.85rem;
	text-transform: uppercase;
}

.costop-quote {
	background: rgba(255, 255, 255, 0.9);
	border-left: 4px solid var(--costop-primary);
	border-radius: var(--costop-radius-sm);
	margin: 0;
	padding: 1.4rem;
}

.costop-quote p {
	font-size: 1.02rem;
	margin: 0 0 0.8rem;
}

.costop-quote cite {
	color: var(--costop-text-soft);
	font-style: normal;
	font-weight: 600;
}

.costop-faq details {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(216, 226, 238, 0.85);
	border-radius: var(--costop-radius-sm);
	padding: 1rem 1.15rem;
}

.costop-faq summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
}

.costop-faq summary::-webkit-details-marker {
	display: none;
}

.costop-faq details p {
	color: var(--costop-text-soft);
	margin: 0.85rem 0 0;
}

.costop-cta {
	border-radius: 32px;
	padding: 2rem;
}

.costop-contact-grid {
	display: grid;
	gap: 1rem;
}

.costop-contact-item {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(216, 226, 238, 0.85);
	border-radius: var(--costop-radius-sm);
	padding: 1.1rem 1.2rem;
}

.costop-contact-item strong {
	display: block;
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	margin-bottom: 0.45rem;
	text-transform: uppercase;
}

.costop-inline-icon {
	display: inline-flex;
	font-size: 0.95rem;
	margin-right: 0.45rem;
	vertical-align: middle;
}

.costop-inline-icon svg {
	color: #8ac1ff;
	display: block;
	height: 1em;
	width: 1em;
}

.costop-contact-page {
	margin: 0 auto;
	max-width: 880px;
	text-align: center;
}

.costop-contact-page .costop-contact-grid {
	margin-top: 2rem;
	margin-left: auto;
	margin-right: auto;
	max-width: 760px;
}

.costop-contact-page .costop-contact-item--wide {
	grid-column: 1 / -1;
}

.costop-contact-page p,
.costop-contact-page h2,
.costop-contact-page .costop-eyebrow {
	text-align: center;
}

.costop-legal-page {
	margin: 0 auto;
	max-width: 820px;
	text-align: center;
}

.costop-legal-page p {
	margin-left: auto;
	margin-right: auto;
	max-width: 760px;
}

.costop-contact-form-wrap {
	margin: 0 auto;
	max-width: 880px;
}

.costop-contact-form-card {
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(216, 226, 238, 0.85);
	border-radius: 28px;
	box-shadow: var(--costop-shadow);
	padding: 1.75rem;
}

.costop-contact-form-card h3 {
	font-size: 1.4rem;
	letter-spacing: -0.03em;
	margin: 0 0 0.5rem;
}

.costop-contact-form-card p {
	color: var(--costop-text-soft);
	margin: 0 0 1.25rem;
}

.costop-contact-form {
	display: grid;
	gap: 1rem;
}

.costop-form-grid {
	display: grid;
	gap: 1rem;
}

.costop-field {
	display: grid;
	gap: 0.45rem;
}

.costop-field span {
	font-size: 0.9rem;
	font-weight: 700;
}

.costop-field input,
.costop-field textarea {
	border: 1px solid #cdd9e7;
	border-radius: 16px;
	font: inherit;
	padding: 0.9rem 1rem;
}

.costop-form-alert {
	border-radius: 16px;
	font-weight: 600;
	margin-bottom: 1rem;
	padding: 0.9rem 1rem;
}

.costop-form-alert--success {
	background: #e9f8ef;
	color: #10693d;
}

.costop-form-alert--error {
	background: #fdeeee;
	color: #a12626;
}

.costop-lead-magnet {
	border-radius: 30px;
	box-shadow: var(--costop-shadow);
	overflow: hidden;
}

.costop-lead-magnet img {
	display: block;
	width: 100%;
}

.costop-hero-banner {
	border-radius: 30px;
	box-shadow: var(--costop-shadow);
	overflow: hidden;
}

.costop-hero-banner img {
	display: block;
	width: 100%;
}

.costop-page-hero {
	padding: 2rem 0 2.5rem;
}

.costop-page-hero-inner {
	background: linear-gradient(160deg, rgba(7, 19, 31, 0.96), rgba(19, 45, 73, 0.92));
	border-radius: 30px;
	color: var(--costop-white);
	padding: 2.4rem;
}

.costop-footer {
	background: #06101a;
	color: rgba(255, 255, 255, 0.9);
	padding: 1.35rem 0 1rem;
}

.costop-footer a {
	color: var(--costop-white);
}

.costop-footer p,
.costop-footer h2,
.costop-footer strong,
.costop-footer span {
	color: rgba(255, 255, 255, 0.92);
}

.costop-footer .costop-kicker {
	background: rgba(255, 255, 255, 0.08);
	color: #8ac1ff;
}

.costop-footer .costop-contact-item {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
}

.costop-footer .costop-contact-item strong {
	color: #8ac1ff;
}

.costop-footer-brand {
	display: inline-flex;
	margin-bottom: 0.6rem;
}

.costop-footer-brand .costop-branding {
	background: linear-gradient(135deg, #94b2d5, #ffffff);
	border-radius: 18px;
	padding: 0.45rem 0.7rem;
}

.costop-footer-brand img {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	max-height: 46px;
	padding: 0.2rem;
	width: auto;
}

.costop-footer-row {
	display: grid;
	gap: 0.65rem;
}

.costop-footer-primary p {
	max-width: 42rem;
}

.costop-footer-contact {
	margin-top: 0.75rem;
}

.costop-footer-secondary {
	align-self: end;
	justify-self: end;
	text-align: right;
}

.costop-footer-meta {
	font-size: 0.88rem;
	margin: 1rem 0 0;
}

.costop-footer-links {
	display: grid;
	gap: 0.35rem;
}

.costop-footer-links-title {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 0.15rem;
	text-transform: uppercase;
}

.costop-footer-links a {
	font-size: 0.94rem;
}

.costop-footer small {
	color: rgba(255, 255, 255, 0.52);
	display: block;
	margin-top: 0.55rem;
}

.costop-contact-inline {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9rem;
	line-height: 1.65;
}

.costop-contact-inline strong {
	color: var(--costop-white);
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.costop-contact-divider {
	color: rgba(255, 255, 255, 0.3);
	margin: 0 0.45rem;
}

.wp-block-post-title,
.wp-block-query-title {
	letter-spacing: -0.04em;
}

.wp-block-post-featured-image img {
	border-radius: var(--costop-radius);
}

.wp-block-post-content,
.wp-block-query {
	margin-inline: auto;
	max-width: 100%;
	width: 100%;
}

.wp-block-post-content > * {
	max-width: 100% !important;
}

.wp-block-post-content p,
.wp-block-post-content li {
	color: #2e3d4d;
}

.wp-block-post-content .costop-trust-strip p,
.wp-block-post-content .costop-package--featured p,
.wp-block-post-content .costop-package--featured .costop-package-meta,
.wp-block-post-content .costop-package--featured li,
.wp-block-post-content .costop-package--featured h3,
.wp-block-post-content .costop-package--featured .costop-package-price {
	color: var(--costop-white);
}

main.wp-block-group {
	width: 100%;
}

@media (min-width: 720px) {
	.costop-grid--2,
	.costop-dual-panel,
	.costop-contact-grid,
	.costop-footer-row,
	.costop-form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.costop-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.costop-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.costop-hero {
		padding-bottom: 6rem;
	}

	.costop-hero-grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
	}

	.costop-contact-page .costop-contact-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 719px) {
	.costop-shell {
		overflow: visible;
	}

	.costop-branding img {
		max-height: 100px;
	}

	.costop-menu-toggle {
		align-items: center;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		display: inline-flex;
		flex-direction: column;
		gap: 5px;
		height: 48px;
		justify-content: center;
		padding: 0;
		width: 36px;
	}

	.costop-menu-toggle span {
		background: var(--costop-bg);
		border-radius: 999px;
		display: block;
		height: 2.5px;
		transition: transform 0.2s ease, opacity 0.2s ease;
		width: 26px;
	}

	.costop-menu-toggle[aria-expanded="true"] span:nth-child(1) {
		transform: translateY(7.5px) rotate(45deg);
	}

	.costop-menu-toggle[aria-expanded="true"] span:nth-child(2) {
		opacity: 0;
	}

	.costop-menu-toggle[aria-expanded="true"] span:nth-child(3) {
		transform: translateY(-7.5px) rotate(-45deg);
	}

	.costop-nav {
		background: rgba(255, 255, 255, 0.98);
		border: 1px solid rgba(216, 226, 238, 0.9);
		border-radius: 20px;
		box-shadow: var(--costop-shadow);
		display: none;
		left: 1.25rem;
		padding: 1rem 1.1rem;
		position: absolute;
		right: 1.25rem;
		top: calc(100% + 0.5rem);
		z-index: 999;
	}

	.costop-nav.is-open {
		display: block;
	}

	.costop-nav ul {
		flex-direction: column;
		gap: 0.25rem;
	}

	.costop-nav li {
		width: 100%;
	}

	.costop-nav a {
		display: block;
		padding: 0.8rem 0.2rem;
	}

	.costop-header {
		position: relative;
		z-index: 40;
	}

	.costop-footer-secondary {
		justify-self: start;
		text-align: left;
	}
}

@media (min-width: 980px) {
	.costop-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.costop-dual-panel {
		grid-template-columns: 1.04fr 0.96fr;
	}

	.costop-section {
		padding: 5.5rem 0;
	}

	.costop-contact-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.costop-footer-row {
		grid-template-columns: 1.1fr 0.9fr;
	}
}
