/*
Theme Name: Clyrup Professional
Theme URI: https://www.clyrup.com/
Author: Clyrup
Description: A professional Full Site Editing theme for Clyrup, built with native WordPress blocks and editable patterns.
Version: 3.2.3
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clyrup-professional
Tags: full-site-editing, block-patterns, custom-logo, editor-style, wide-blocks
*/

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--sky);
	outline-offset: 3px;
}

.clyrup-skip-link.screen-reader-text {
	background: var(--wp--preset--color--navy);
	border-radius: 0 0 8px 0;
	color: var(--wp--preset--color--white);
	font-weight: 700;
	left: 0;
	padding: 12px 20px;
	position: absolute;
	top: -100px;
	transition: top 150ms ease;
	z-index: 100000;
}

.clyrup-skip-link.screen-reader-text:focus {
	top: 0;
}

/*
 * theme.json sets a global blockGap of 1.5rem. WordPress applies that as a
 * margin between top-level landmarks in .wp-site-blocks (header / main /
 * footer), on top of the padding those blocks already define themselves.
 * Every section here already manages its own vertical rhythm via padding,
 * so that extra margin is pure redundant whitespace above/below the header
 * and footer - remove it.
 */
.wp-site-blocks > header,
.wp-site-blocks > footer,
.wp-site-blocks > #content {
	margin-block-start: 0 !important;
}

.clyrup-site-header {
	border-bottom: 1px solid #e2e8f0;
	box-sizing: border-box;
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 100;
}

/*
 * The frosted-glass effect lives on this pseudo-element instead of directly
 * on .clyrup-site-header. backdrop-filter (or transform/filter) on an
 * element turns it into the containing block for any fixed-position
 * descendants - which silently trapped the full-screen mobile nav overlay
 * inside the header's own ~60px box instead of covering the viewport.
 * Keeping the filter on a pseudo-element gives the same visual effect
 * without that side effect.
 */
.clyrup-site-header::before {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

.clyrup-site-header > .wp-block-group {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 1280px;
	width: 100%;
}

.clyrup-site-footer > .wp-block-group {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: 1280px;
	width: 100%;
}

.clyrup-contact-form-editor {
	background: #fff;
	border: 1px dashed #93c5fd;
	border-radius: 16px;
	color: #334155;
	padding: 2rem;
	text-align: center;
}

.clyrup-site-header .wp-block-site-logo {
	flex-shrink: 0;
}

.clyrup-site-header .wp-block-site-logo img {
	max-height: 48px;
	width: auto;
}

/*
 * WordPress's navigation block defaults to switching to the hamburger/
 * overlay menu below 600px. This header treats 781px as its own mobile
 * breakpoint (see the .clyrup-header-cta / .clyrup-mobile-cta swap below),
 * so between 600-781px the full inline menu was being forced to fit
 * next to the logo, squeezing it down. This aligns the nav's own
 * breakpoint to match.
 */
@media (min-width: 600px) and (max-width: 781px) {
	.clyrup-site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.clyrup-site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.clyrup-eyebrow-pill {
	margin-left: auto;
	margin-right: auto;
	width: fit-content;
}

.clyrup-site-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: clamp(1.5rem, 4vw, 3rem);
}

.clyrup-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
}

.clyrup-mobile-cta {
	display: none !important;
}

.admin-bar .clyrup-site-header {
	top: 32px;
}

.clyrup-hero {
	background:
		radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.38), transparent 30rem),
		linear-gradient(135deg, #0f172a 0%, #172554 52%, #1e3a8a 100%);
	overflow: hidden;
	padding-bottom: 6rem !important;
	padding-top: 6rem !important;
}

.clyrup-hero h1 {
	font-size: clamp(3rem, 6vw, 4.5rem) !important;
	font-weight: 900 !important;
	letter-spacing: -0.025em !important;
	line-height: 1.1 !important;
	margin-left: auto;
	margin-right: auto;
	max-width: 1024px;
}

.clyrup-hero h1 + p,
.clyrup-hero h1 + p + p {
	margin-left: auto;
	margin-right: auto;
	max-width: 768px;
}

.clyrup-hero .wp-block-button__link {
	border-radius: 16px;
	padding: 16px 32px;
}

.clyrup-hero-stats {
	gap: 12px !important;
}

.clyrup-intro .wp-block-columns {
	gap: 48px;
}

.clyrup-problems .wp-block-columns {
	gap: 40px;
}

.clyrup-why .wp-block-columns {
	gap: 24px;
}

.clyrup-why .wp-block-column > .wp-block-group {
	border-radius: 24px !important;
	padding: 32px !important;
}

.clyrup-why .wp-block-column h3 {
	font-size: 1.5rem !important;
	font-weight: 800 !important;
	margin-top: 16px !important;
}

.clyrup-why .wp-block-column h3 + p {
	color: #cbd5e1 !important;
	margin-top: 12px !important;
}

.clyrup-faq .wp-block-details {
	margin-block-start: 16px;
	padding: 24px !important;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.clyrup-faq .wp-block-details:first-of-type {
	margin-block-start: 40px;
}

.clyrup-faq .wp-block-details:hover,
.clyrup-faq .wp-block-details[open] {
	border-color: var(--wp--preset--color--blue) !important;
}

.clyrup-faq .wp-block-details[open] {
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.clyrup-faq summary,
#faq .wp-block-details summary,
#faq .wp-block-details summary * {
	color: var(--wp--preset--color--navy) !important;
	opacity: 1 !important;
}

.clyrup-faq summary {
	cursor: pointer;
	font-size: 1.125rem;
	font-weight: 800;
	list-style: none;
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

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

.clyrup-faq summary::after {
	background: var(--wp--preset--color--blue-pale);
	border-radius: 999px;
	color: var(--wp--preset--color--blue);
	content: "+";
	flex-shrink: 0;
	font-size: 1.25rem;
	font-weight: 700;
	height: 28px;
	line-height: 28px;
	text-align: center;
	width: 28px;
}

.clyrup-faq .wp-block-details[open] summary::after {
	content: "\2212";
}

.clyrup-faq .wp-block-details p {
	font-weight: 500;
	margin-top: 12px;
}

.clyrup-section {
	padding-bottom: 5rem !important;
	padding-top: 5rem !important;
}

.clyrup-section-heading {
	font-size: clamp(2.25rem, 5vw, 3rem) !important;
	font-weight: 900 !important;
	letter-spacing: -0.025em !important;
	line-height: 1.1 !important;
	margin-top: 0.75rem !important;
}

.clyrup-eyebrow {
	color: #1d4ed8 !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase;
}

.clyrup-services-grid {
	display: grid !important;
	gap: 1.5rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 3rem !important;
}

.clyrup-problem-grid {
	display: grid !important;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clyrup-problem-item {
	background: #f8fafc;
	border-radius: 1rem;
	font-weight: 600;
	padding: 1.25rem;
}

.clyrup-process-grid {
	display: grid !important;
	gap: 1.25rem;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-top: 3rem !important;
}

.clyrup-process-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 1.5rem;
	padding: 1.5rem;
}

.clyrup-about-pillars {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.5rem !important;
}

.clyrup-pillar {
	background: var(--wp--preset--color--blue-pale);
	border-radius: 999px;
	color: var(--wp--preset--color--blue-dark);
	font-size: 0.85rem;
	font-weight: 700;
	margin: 0 !important;
	padding: 0.5rem 1rem;
}

.clyrup-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 1.5rem;
	height: 100%;
	padding: 2rem;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.clyrup-card:hover {
	border-color: #bfdbfe !important;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
	transform: translateY(-4px);
}

.clyrup-number {
	color: #1d4ed8;
	font-size: 0.875rem;
	font-weight: 900;
}

.clyrup-contact-form {
	background: #fff;
	border: 1px solid #dbeafe;
	border-radius: 24px;
	box-shadow: 0 20px 50px rgba(30, 64, 175, 0.08);
	margin-top: 3rem;
	padding: 1.75rem;
}

.clyrup-form-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.clyrup-field {
	margin-bottom: 1.25rem;
}

.clyrup-field label {
	color: #334155;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	margin-bottom: 0.45rem;
}

.clyrup-field input,
.clyrup-field select,
.clyrup-field textarea {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 16px;
	box-sizing: border-box;
	color: #0f172a;
	font: inherit;
	padding: 1rem;
	width: 100%;
}

.clyrup-footer-copyright {
	color: #94a3b8;
	font-size: 0.875rem;
	margin-top: 16px;
	text-align: center;
}

.clyrup-field input:focus,
.clyrup-field select:focus,
.clyrup-field textarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
	outline: none;
}

.clyrup-field-note,
.clyrup-form-consent {
	color: #64748b;
	font-size: 0.78rem;
}

.clyrup-form-submit {
	background: #2563eb;
	border: 0;
	border-radius: 14px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	padding: 1rem 1.5rem;
	width: 100%;
}

.clyrup-form-submit:hover {
	background: #1d4ed8;
}

.clyrup-form-status {
	border-radius: 14px;
	margin-bottom: 1.25rem;
	padding: 1rem;
}

.clyrup-form-status--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.clyrup-form-status--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.clyrup-honeypot {
	left: -9999px;
	position: absolute;
}

@media (max-width: 781px) {
	.clyrup-header-cta {
		display: none !important;
	}

	.clyrup-site-header .wp-block-navigation {
		margin-left: auto;
	}

	.clyrup-mobile-cta {
		display: block !important;
	}

	.clyrup-mobile-cta .wp-block-navigation-item__content {
		background: #2563eb;
		border-radius: 14px;
		color: #fff !important;
		margin-top: 0.75rem;
		padding: 0.9rem 1.2rem;
	}

	.clyrup-form-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.clyrup-services-grid,
	.clyrup-process-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	.admin-bar .clyrup-site-header {
		top: 46px;
	}
}

@media (min-width: 782px) and (max-width: 1023px) {
	.clyrup-services-grid,
	.clyrup-process-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.clyrup-hero {
		padding-bottom: 9rem !important;
		padding-top: 9rem !important;
	}

	.clyrup-contact-form {
		padding: 2.5rem;
	}
}

@media (max-width: 639px) {
	.clyrup-problem-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.clyrup-card {
		transition: none;
	}
}
