/* =============================================
   TWIXTECH Theme — Custom Styles
   ============================================= */

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

/* Sticky footer — push footer to bottom on short pages */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > *:nth-child(2) {
	flex-grow: 1;
}

/* Header sticky */
.tt-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, 0.92) !important;
}

/* Hero section */
.tt-hero {
	position: relative;
	overflow: hidden;
}

.tt-hero::before {
	content: "";
	position: absolute;
	top: -50%;
	right: -20%;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

.tt-hero::after {
	content: "";
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
	pointer-events: none;
}

/* Animated gradient line under hero heading */
.tt-hero-heading {
	position: relative;
	display: inline-block;
}

/* Accent bar */
.tt-accent-bar {
	width: 60px;
	height: 4px;
	background: linear-gradient(90deg, #00B4D8, #0096B7);
	border-radius: 2px;
	border: none;
}

/* Service cards */
.tt-service-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid #e2e8f0 !important;
}

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

/* Service icon wrapper */
.tt-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: linear-gradient(135deg, #E0F7FA, #B2EBF2);
}

.tt-icon-wrap svg {
	width: 28px;
	height: 28px;
	color: #00B4D8;
}

/* Stats counter */
.tt-stat-number {
	background: linear-gradient(135deg, #00B4D8, #0096B7);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Hero illustration placeholder */
.tt-illustration {
	position: relative;
}

.tt-illustration svg {
	width: 100%;
	height: auto;
	max-width: 500px;
}

/* CTA button glow */
.tt-cta .wp-block-button__link {
	box-shadow: 0 4px 20px rgba(0, 180, 216, 0.35);
	transition: all 0.3s ease;
}

.tt-cta .wp-block-button__link:hover {
	box-shadow: 0 6px 30px rgba(0, 180, 216, 0.5);
	transform: translateY(-2px);
}

/* Section label / pill */
.tt-label {
	display: block;
	width: fit-content;
	padding: 0.35rem 1rem;
	background: #E0F7FA;
	color: #00B4D8;
	border-radius: 50px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

p.has-text-align-center.tt-label {
	margin-left: auto;
	margin-right: auto;
}

/* Dark section stats */
.tt-dark-section {
	position: relative;
	overflow: hidden;
}

.tt-dark-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 800px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 60%);
	pointer-events: none;
}

/* Smooth separator wave */
.tt-wave-top {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: -2px;
}

/* Footer links */
.wp-block-group.has-dark-background-color a:not(.wp-block-button__link) {
	text-decoration: none;
}

.wp-block-group.has-dark-background-color a:not(.wp-block-button__link):hover {
	color: #00B4D8 !important;
}

/* Post content — airy spacing */
.entry-content > *,
.wp-block-post-content > *,
.is-layout-constrained > * + * {
	margin-top: 1.25rem;
}

.wp-block-post-content .wp-block-group,
.wp-block-post-content .wp-block-columns {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

/* Images in posts — breathing room */
.wp-block-post-content .wp-block-image {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

/* Lists in posts — tighter */
.wp-block-post-content ul,
.wp-block-post-content ol {
	padding-left: 1.25rem;
}

.wp-block-post-content li + li {
	margin-top: 0.35rem;
}

/* Separator in posts */
.wp-block-post-content .wp-block-separator {
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
}

/* Homepage sections — remove blockGap between full-width patterns */
body.home .wp-site-blocks > * + * {
	margin-top: 0;
}

/* =============================================
   Contact Form 7 — Modern styling
   ============================================= */

/* =============================================
   Contact Form 7 — Modern styling
   =============================================
   CF7 wraps fields in <p> with <br> between
   label and input. We neutralize that here.
   ============================================= */

/* Reset CF7 chrome */
.wpcf7,
.wpcf7-form {
	margin: 0 !important;
	padding: 0 !important;
}

/* Kill the <p> and <br> CF7 injects */
.tt-form-field p {
	margin: 0;
	padding: 0;
}

.tt-form-field br {
	display: none;
}

/* Form control wrap */
.tt-form .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.35rem;
}

/* Layout */
.tt-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.tt-form-row--half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem;
}

/* Labels */
.tt-form-field label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: #0F172A;
	letter-spacing: 0.02em;
}

/* Inputs & textarea */
.tt-form .wpcf7-form-control:not(.wpcf7-submit) {
	width: 100% !important;
	padding: 0.7rem 0.9rem !important;
	font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif !important;
	font-size: 0.88rem !important;
	color: #0F172A !important;
	background: #ffffff !important;
	border: 1.5px solid #d1d5db !important;
	border-radius: 8px !important;
	outline: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	box-sizing: border-box !important;
}

.tt-form .wpcf7-form-control:not(.wpcf7-submit):focus {
	border-color: #00B4D8 !important;
	box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1) !important;
}

.tt-form .wpcf7-form-control::placeholder {
	color: #94a3b8 !important;
	font-weight: 400 !important;
}

.tt-form .wpcf7-textarea {
	min-height: 130px !important;
	resize: vertical;
}

/* Submit button */
.tt-form-submit {
	padding-top: 0.25rem;
}

.tt-form .wpcf7-submit {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 0.8rem 2rem !important;
	font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	background: linear-gradient(135deg, #00B4D8, #0096B7) !important;
	border: none !important;
	border-radius: 50px !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3) !important;
}

.tt-form .wpcf7-submit:hover {
	box-shadow: 0 6px 25px rgba(0, 180, 216, 0.45) !important;
	transform: translateY(-1px);
}

/* Validation */
.tt-form .wpcf7-not-valid {
	border-color: #ef4444 !important;
}

.wpcf7-not-valid-tip {
	font-size: 0.72rem;
	color: #ef4444;
	margin-top: 0.25rem;
	display: block;
}

/* Response message */
.wpcf7-response-output {
	font-size: 0.82rem;
	padding: 0.6rem 0.85rem !important;
	border-radius: 8px !important;
	margin: 0.75rem 0 0 !important;
	border-width: 1.5px !important;
}

.wpcf7 form.init .wpcf7-response-output {
	display: none;
}

.wpcf7-spinner {
	margin-left: 0.5rem;
}

@media (max-width: 600px) {
	.tt-form-row--half {
		grid-template-columns: 1fr;
	}
}

/* Mobile navigation overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100dvh !important;
	min-height: 100vh !important;
	z-index: 99999 !important;
	padding: 0 !important;
	margin: 0 !important;
	background: rgba(15, 23, 42, 0.88) !important;
	-webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
	backdrop-filter: blur(20px) saturate(1.2) !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: hidden !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 2.5rem !important;
	text-align: center !important;
	width: 100% !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100% !important;
	text-align: center !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.6rem !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	letter-spacing: -0.01em !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
	position: fixed !important;
	top: 1.25rem !important;
	right: 1.25rem !important;
	z-index: 100000 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close svg {
	width: 28px !important;
	height: 28px !important;
	fill: #ffffff !important;
	stroke: #ffffff !important;
}

/* Hamburger button styling */
.wp-block-navigation__responsive-container-open {
	padding: 0.25rem !important;
}

.wp-block-navigation__responsive-container-open svg {
	width: 24px;
	height: 24px;
}

/* Responsive adjustments */
@media (max-width: 781px) {
	.tt-header {
		position: sticky;
		top: 0;
		z-index: 200;
	}

	/* Reduce logo on mobile */
	.tt-header .wp-block-site-logo img {
		max-width: 120px !important;
		height: auto !important;
	}

	.tt-hero::before,
	.tt-hero::after {
		display: none;
	}

	.tt-hide-mobile {
		display: none !important;
	}

	.tt-service-card:hover {
		transform: none;
	}
}
