/**
 * Topology Cloud - Custom Styles
 *
 * Custom CSS for styles that can't be achieved through theme.json
 */

/* CSS Variables for consistency */
:root {
	--tc-primary-dark: #1a3a5c;
	--tc-primary-blue: #2563eb;
	--tc-accent-cyan: #22d3ee;
	--tc-accent-teal: #14b8a6;
	--tc-text-dark: #1e293b;
	--tc-text-light: #64748b;
	--tc-bg-light: #f8fafc;
	--tc-white: #ffffff;
	--tc-dark-gradient-end: #0f2744;
	--tc-transition: all 0.3s ease;
	--tc-shadow: 0 4px 14px rgba(34, 211, 238, 0.3);
	--tc-shadow-hover: 0 6px 20px rgba(34, 211, 238, 0.4);
}

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}

/* Reset and base */
* {
	box-sizing: border-box;
}

/* =====================
   HEADER STYLES
   ===================== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 1000;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Navigation */
.wp-block-navigation {
	gap: 2rem;
}

.wp-block-navigation a {
	text-decoration: none;
	color: var(--tc-text-dark);
	font-weight: 500;
	font-size: 0.95rem;
	transition: color 0.2s;
}

.wp-block-navigation a:hover,
.wp-block-navigation .current-menu-item a {
	color: var(--tc-accent-teal);
}

/* =====================
   BUTTON STYLES
   ===================== */
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: var(--tc-transition);
	cursor: pointer;
	border: none;
}

/* Gradient Primary Button */
.is-style-gradient-primary .wp-block-button__link,
.wp-block-button.is-style-gradient-primary .wp-block-button__link {
	background: linear-gradient(135deg, var(--tc-primary-blue), var(--tc-accent-teal));
	color: white;
	box-shadow: var(--tc-shadow);
}

.is-style-gradient-primary .wp-block-button__link:hover,
.wp-block-button.is-style-gradient-primary .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--tc-shadow-hover);
}

/* Gradient Accent Button */
.is-style-gradient-accent .wp-block-button__link,
.wp-block-button.is-style-gradient-accent .wp-block-button__link {
	background: linear-gradient(135deg, var(--tc-accent-cyan), var(--tc-accent-teal));
	color: white;
	box-shadow: var(--tc-shadow);
}

.is-style-gradient-accent .wp-block-button__link:hover,
.wp-block-button.is-style-gradient-accent .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--tc-shadow-hover);
}

/* Outline Button */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--tc-primary-dark);
	border: 2px solid var(--tc-primary-dark);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--tc-primary-dark);
	color: white;
}

/* Outline Light Button */
.is-style-outline-light .wp-block-button__link,
.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent;
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.4);
}

.is-style-outline-light .wp-block-button__link:hover,
.wp-block-button.is-style-outline-light .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.6);
}

/* Disabled Button */
.wp-block-button.is-disabled .wp-block-button__link,
.wp-block-button__link[aria-disabled="true"] {
	background: #6b7280 !important;
	cursor: not-allowed;
	opacity: 0.6;
	pointer-events: none;
	box-shadow: none !important;
}

/* =====================
   HEADING STYLES
   ===================== */
/* Gradient text heading */
.is-style-gradient-text {
	background: linear-gradient(135deg, var(--tc-primary-dark) 0%, var(--tc-primary-blue) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Gradient accent text heading */
.is-style-gradient-accent-text {
	background: linear-gradient(135deg, var(--tc-accent-teal) 0%, var(--tc-accent-cyan) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* =====================
   CARD STYLES
   ===================== */
.is-style-card {
	padding: 2rem;
	border-radius: 16px;
	background: var(--tc-bg-light);
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: var(--tc-transition);
}

.is-style-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Featured Card */
.is-style-card-featured {
	padding: 2.5rem;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--tc-primary-dark) 0%, var(--tc-dark-gradient-end) 100%);
	color: white;
	border: 2px solid var(--tc-accent-cyan);
	transform: scale(1.03);
	transition: var(--tc-transition);
}

.is-style-card-featured:hover {
	transform: scale(1.03) translateY(-5px);
}

.is-style-card-featured h3,
.is-style-card-featured h4 {
	color: white;
}

.is-style-card-featured p {
	color: rgba(255, 255, 255, 0.85);
}

/* Highlight Box */
.is-style-highlight-box {
	padding: 2.5rem;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--tc-primary-dark) 0%, var(--tc-dark-gradient-end) 100%);
	color: white;
	margin: 2.5rem 0;
}

.is-style-highlight-box h3 {
	color: var(--tc-accent-cyan);
	margin-top: 0;
}

.is-style-highlight-box p {
	color: rgba(255, 255, 255, 0.9);
}

/* =====================
   SECTION STYLES
   ===================== */
.section-container {
	max-width: 1200px;
	margin: 0 auto;
}

.section-header {
	text-align: center;
	margin-bottom: 4rem;
}

.section-header p {
	font-size: 1.1rem;
	color: var(--tc-text-light);
	max-width: 700px;
	margin: 0 auto;
}

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10rem 2rem 4rem;
	background: linear-gradient(180deg, var(--tc-bg-light) 0%, var(--tc-white) 100%);
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 80%;
	height: 150%;
	background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
	pointer-events: none;
}

/* Page Hero */
.page-hero {
	padding: 10rem 2rem 4rem;
	background: linear-gradient(180deg, var(--tc-bg-light) 0%, var(--tc-white) 100%);
	text-align: center;
}

/* =====================
   STATS BAR
   ===================== */
.stats-bar {
	padding: 3rem 2rem;
	background: linear-gradient(135deg, var(--tc-primary-dark) 0%, var(--tc-dark-gradient-end) 100%);
	color: white;
}

.stat-item h3 {
	font-size: 2.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, var(--tc-accent-cyan), var(--tc-accent-teal));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.5rem;
}

.stat-item p {
	font-size: 0.95rem;
	opacity: 0.9;
}

/* =====================
   TRADE CARDS
   ===================== */
.trade-card {
	text-align: center;
	padding: 1.5rem 1rem;
	border-radius: 12px;
	background: var(--tc-bg-light);
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: var(--tc-transition);
}

.trade-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	border-color: var(--tc-accent-teal);
}

.trade-icon {
	width: 50px;
	height: 50px;
	margin: 0 auto 1rem;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.trade-icon svg {
	width: 28px;
	height: 28px;
	stroke-width: 1.5;
	fill: none;
}

/* Trade-specific colors */
.trade-electrical .trade-icon { background: rgba(234, 179, 8, 0.15); }
.trade-electrical .trade-icon svg { stroke: #eab308; }
.trade-plumbing .trade-icon { background: rgba(59, 130, 246, 0.15); }
.trade-plumbing .trade-icon svg { stroke: #3b82f6; }
.trade-hvac .trade-icon { background: rgba(34, 197, 94, 0.15); }
.trade-hvac .trade-icon svg { stroke: #22c55e; }
.trade-security .trade-icon { background: rgba(239, 68, 68, 0.15); }
.trade-security .trade-icon svg { stroke: #ef4444; }
.trade-fire .trade-icon { background: rgba(249, 115, 22, 0.15); }
.trade-fire .trade-icon svg { stroke: #f97316; }
.trade-av .trade-icon { background: rgba(139, 92, 246, 0.15); }
.trade-av .trade-icon svg { stroke: #8b5cf6; }
.trade-data .trade-icon { background: rgba(20, 184, 166, 0.15); }
.trade-data .trade-icon svg { stroke: #14b8a6; }
.trade-gas .trade-icon { background: rgba(234, 88, 12, 0.15); }
.trade-gas .trade-icon svg { stroke: #ea580c; }
.trade-solar .trade-icon { background: rgba(202, 138, 4, 0.15); }
.trade-solar .trade-icon svg { stroke: #ca8a04; }
.trade-irrigation .trade-icon { background: rgba(5, 150, 105, 0.15); }
.trade-irrigation .trade-icon svg { stroke: #059669; }

/* =====================
   COMPARISON TABLE
   ===================== */
.comparison-table {
	max-width: 900px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: var(--tc-white);
}

.comparison-table table {
	width: 100%;
	border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
	padding: 1.25rem 1.5rem;
	text-align: left;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th {
	background: var(--tc-primary-dark);
	color: white;
	font-weight: 600;
	font-size: 0.95rem;
}

.comparison-table th:first-child {
	border-radius: 16px 0 0 0;
}

.comparison-table th:last-child {
	border-radius: 0 16px 0 0;
}

.comparison-table td {
	font-size: 0.95rem;
	color: var(--tc-text-dark);
}

.comparison-table tr:last-child td {
	border-bottom: none;
}

.comparison-table tr:hover td {
	background: rgba(34, 211, 238, 0.03);
}

.comparison-table .check {
	color: var(--tc-accent-teal);
	font-weight: 600;
}

.comparison-table .limited {
	color: #eab308;
}

.comparison-table .no,
.comparison-table .dash {
	color: var(--tc-text-light);
}

.feature-category {
	background: var(--tc-bg-light) !important;
	font-weight: 600;
	color: var(--tc-primary-dark) !important;
}

/* =====================
   PRICING CARDS
   ===================== */
.pricing-card {
	padding: 2.5rem;
	border-radius: 16px;
	background: var(--tc-bg-light);
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: var(--tc-transition);
}

.pricing-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
	background: linear-gradient(135deg, var(--tc-primary-dark) 0%, var(--tc-dark-gradient-end) 100%);
	color: white;
	transform: scale(1.03);
	border: 2px solid var(--tc-accent-cyan);
}

.pricing-card.featured:hover {
	transform: scale(1.03) translateY(-5px);
}

.pricing-tier {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--tc-accent-teal);
	margin-bottom: 0.5rem;
}

.pricing-card.featured .pricing-tier {
	color: var(--tc-accent-cyan);
}

.price .amount {
	font-size: 3rem;
	font-weight: 700;
	color: var(--tc-primary-dark);
}

.pricing-card.featured .price .amount {
	color: white;
}

.price .period {
	font-size: 1rem;
	color: var(--tc-text-light);
}

.pricing-card.featured .price .period {
	color: rgba(255, 255, 255, 0.7);
}

/* Pricing features list */
.pricing-features {
	list-style: none;
	padding: 0;
	margin: 0;
}

.pricing-features li {
	font-size: 0.9rem;
	color: var(--tc-text-light);
	margin: 0.75rem 0;
	padding-left: 1.75rem;
	position: relative;
}

.pricing-features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.3rem;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
	background-size: contain;
}

.pricing-card.featured .pricing-features li {
	color: rgba(255, 255, 255, 0.85);
}

/* Pricing toggle */
.pricing-toggle {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin: 2rem 0 3rem;
}

.toggle-switch {
	width: 50px;
	height: 26px;
	background: var(--tc-primary-dark);
	border-radius: 50px;
	position: relative;
	cursor: pointer;
}

.toggle-switch::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	background: white;
	border-radius: 50%;
	top: 3px;
	left: 3px;
	transition: 0.3s;
}

.toggle-switch.annual::after {
	left: 27px;
}

.save-badge {
	background: rgba(20, 184, 166, 0.15);
	color: var(--tc-accent-teal);
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-size: 0.8rem;
	font-weight: 600;
}

/* =====================
   LAUNCH BANNER
   ===================== */
.launch-banner {
	padding: 1rem 2rem;
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
	color: white;
	text-align: center;
	position: fixed;
	top: 82px;
	left: 0;
	right: 0;
	z-index: 999;
	overflow: hidden;
}

.launch-banner::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -20%;
	width: 60%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
	pointer-events: none;
	animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
	0%, 100% { opacity: 0.5; transform: translateX(0); }
	50% { opacity: 1; transform: translateX(10%); }
}

.launch-badge {
	display: inline-block;
	padding: 0.5rem 1.5rem;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.25);
	color: white;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
	animation: pulse 2s ease-in-out infinite;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
	0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
	50% { transform: scale(1.05); box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.2); }
}

/* =====================
   CTA SECTION
   ===================== */
.cta-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 4rem;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--tc-primary-dark) 0%, var(--tc-dark-gradient-end) 100%);
	color: white;
	position: relative;
	overflow: hidden;
	text-align: center;
}

.cta-container::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -30%;
	width: 60%;
	height: 200%;
	background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 60%);
	pointer-events: none;
}

.cta-label {
	display: inline-block;
	padding: 0.5rem 1.25rem;
	border-radius: 50px;
	background: rgba(34, 211, 238, 0.15);
	color: var(--tc-accent-cyan);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
	position: relative;
}

.cta-buttons {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	position: relative;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
	padding: 3rem 2rem;
	background: var(--tc-bg-light);
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-links {
	display: flex;
	gap: 2rem;
}

.footer-links a {
	color: var(--tc-text-light);
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: var(--tc-accent-teal);
}

.footer-copyright {
	color: var(--tc-text-light);
	font-size: 0.9rem;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-20px); }
}

.float-animation {
	animation: float 6s ease-in-out infinite;
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 1100px) {
	.pricing-card.featured {
		transform: none;
	}

	.pricing-card.featured:hover {
		transform: translateY(-5px);
	}
}

@media (max-width: 968px) {
	.hero-section {
		padding: 8rem 2rem 4rem;
	}

	.page-hero h1 {
		font-size: 2.5rem;
	}
}

@media (max-width: 640px) {
	.site-header nav {
		display: none;
	}

	.hero-section {
		min-height: auto;
		padding: 6rem 1rem 3rem;
	}

	.page-hero h1 {
		font-size: 2rem;
	}

	.footer-container {
		flex-direction: column;
		text-align: center;
	}

	.footer-links {
		flex-direction: column;
		gap: 1rem;
	}

	.launch-banner h2 {
		font-size: 1.5rem;
	}

	.cta-container {
		padding: 2rem;
	}
}
