/**
 * Opentec design layer
 *
 * Loaded after style.css. Everything here is scoped to theme classes so it
 * layers on top of the block markup without fighting core block styles.
 *
 * The idea: the site should read like a well-made control surface, not a
 * brochure. Plugin cards borrow the vocabulary of the Kanban plugin itself —
 * a board column, a card with a top rail, a version pill.
 */

:root {
	--ot-ink: #101728;
	--ot-slate: #3a4356;
	--ot-muted: #5a6478;
	--ot-delft: #1f3c88;
	--ot-delft-soft: #e6ebf7;
	--ot-ochre: #c77a16;
	--ot-mist: #f4f6fa;
	--ot-paper: #ffffff;
	--ot-hairline: #dde3ef;
	--ot-radius: 10px;
	--ot-radius-sm: 6px;
	--ot-rail: 3px;
	--ot-shadow: 0 1px 2px rgba(16, 23, 40, .04), 0 8px 24px -12px rgba(16, 23, 40, .18);
}

body {
	-webkit-font-smoothing: antialiased;
	letter-spacing: -0.005em;
}

/* Numerals in prices, versions and counts should line up in columns. */
.banner-review-count,
.service-price,
.service-price-text,
.woocommerce-Price-amount,
.ot-version {
	font-family: var(--wp--preset--font-family--inter), sans-serif;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* ---------------------------------------------------------------------------
   Eyebrow labels
   The template used pill-shaped outlined labels everywhere. Replaced with a
   quieter typographic marker: small caps, a short rule, no border.
   --------------------------------------------------------------------------- */

.banner-sub-title,
.services-sub-title,
.about-sub-title,
.testimonial-sub-title,
.news-sub-title,
.faq-sub-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 0 14px !important;
	font-family: var(--wp--preset--font-family--inter), sans-serif;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--ot-delft) !important;
}

.banner-sub-title::before,
.services-sub-title::before,
.about-sub-title::before,
.testimonial-sub-title::before,
.news-sub-title::before,
.faq-sub-title::before {
	content: "";
	width: 26px;
	height: 1px;
	background: var(--ot-delft);
	flex: none;
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */

.banner-section {
	background: linear-gradient(180deg, var(--ot-mist) 0%, var(--ot-paper) 100%);
}

.banner-title {
	font-family: var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: clamp(38px, 5.2vw, 62px) !important;
	font-weight: 600 !important;
	line-height: 1.06 !important;
	letter-spacing: -0.03em !important;
	text-transform: none !important;
	max-width: 15ch;
}

.banner-para {
	font-size: clamp(17px, 1.5vw, 19px);
	line-height: 1.6;
	max-width: 52ch;
	color: var(--ot-muted) !important;
}

.banner-btm-boxes {
	gap: 0 !important;
	margin-top: 44px !important;
	padding-top: 24px;
	border-top: 1px solid var(--ot-hairline);
}

.banner-rating-box,
.banner-review-box {
	padding-right: 36px;
}

.banner-review-count {
	font-size: 30px !important;
	font-weight: 600;
	color: var(--ot-ink) !important;
	line-height: 1.1;
}

.banner-review-text,
.banner-rating-text {
	font-family: var(--wp--preset--font-family--inter), sans-serif;
	font-size: 13px !important;
	letter-spacing: 0.04em;
	text-transform: none !important;
	color: var(--ot-muted) !important;
}

/* ---------------------------------------------------------------------------
   Plugin cards — the signature element
   Each card is a board card: paper, hairline, a coloured top rail, and a
   version/price tag pinned to the header row.
   --------------------------------------------------------------------------- */

.service-main-box .service-box {
	background: transparent !important;
}

.service-box .service-bg {
	position: relative;
	overflow: hidden;
	background: var(--ot-paper) !important;
	border: 1px solid var(--ot-hairline);
	border-radius: var(--ot-radius) !important;
	box-shadow: var(--ot-shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* The cover block paints a dim overlay span; neutralise it so cards read light. */
.service-box .service-bg > .wp-block-cover__background {
	background: var(--ot-paper) !important;
	opacity: 1 !important;
}

.service-box .service-bg::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: var(--ot-rail);
	background: var(--ot-delft);
}

.service-box:nth-child(2) .service-bg::before { background: var(--ot-ochre); }
.service-box:nth-child(3) .service-bg::before { background: var(--ot-slate); }

.service-box .service-bg:hover,
.service-box .service-bg:focus-within {
	transform: translateY(-3px);
	border-color: #c3cde5;
	box-shadow: 0 2px 4px rgba(16, 23, 40, .05), 0 18px 40px -18px rgba(16, 23, 40, .3);
}

.service-up-box {
	align-items: center;
	border-bottom: 1px solid var(--ot-hairline) !important;
	border-bottom-color: var(--ot-hairline) !important;
	padding-bottom: 20px !important;
}

.service-price-in-box {
	color: var(--ot-ink) !important;
	text-align: right;
}

.service-price-text {
	font-size: 12px !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ot-muted) !important;
	margin: 0 0 6px !important;
}

.service-price-text .dashicons { display: none; }

.service-price {
	display: inline-block;
	background: var(--ot-delft-soft) !important;
	color: var(--ot-delft) !important;
	border-radius: var(--ot-radius-sm) !important;
	font-size: 14px !important;
	font-weight: 600;
	padding: 6px 10px !important;
	margin: 0 !important;
}

.service-btm-box { padding-top: 20px; }

.service-box-title,
.service-box-title a {
	font-family: var(--wp--preset--font-family--space-grotesk), sans-serif;
	color: var(--ot-ink) !important;
	font-size: 22px !important;
	font-weight: 600 !important;
	letter-spacing: -0.02em;
	text-transform: none !important;
	text-decoration: none;
}

.service-box-title a:hover { color: var(--ot-delft) !important; }

.service-box .service-para,
.service-box p:not(.service-price):not(.service-price-text) {
	color: var(--ot-muted) !important;
	font-size: 15px;
	line-height: 1.6;
}

/* Version pill, for use in product templates via opentec_plugin_version(). */
.ot-version {
	display: inline-block;
	padding: 3px 8px;
	border: 1px solid var(--ot-hairline);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ot-muted);
	background: var(--ot-mist);
}

/* ---------------------------------------------------------------------------
   Sections, cards, forms
   --------------------------------------------------------------------------- */

.services-section,
.about-section,
.testimonial-section,
.news-section,
.faq-section {
	padding-top: clamp(64px, 8vw, 112px);
	padding-bottom: clamp(64px, 8vw, 112px);
}

.services-title,
.about-title,
.testimonial-title,
.news-title,
.faq-title {
	font-size: clamp(28px, 3.6vw, 42px) !important;
	font-weight: 600 !important;
	letter-spacing: -0.025em !important;
	line-height: 1.12 !important;
	text-transform: none !important;
	color: var(--ot-ink) !important;
}

.testimonial-box,
.news-box,
.faq-box {
	background: var(--ot-paper);
	border: 1px solid var(--ot-hairline);
	border-radius: var(--ot-radius);
}

/* FAQ: an accordion of questions reads better with rules than boxes. */
.faq-section .wp-block-details {
	border: 0;
	border-bottom: 1px solid var(--ot-hairline);
	border-radius: 0;
	padding: 20px 0;
	background: transparent;
}

.faq-section .wp-block-details summary {
	font-family: var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: var(--ot-ink);
	cursor: pointer;
	letter-spacing: -0.015em;
}

.wp-block-search__input,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
textarea {
	border: 1px solid var(--ot-hairline);
	border-radius: var(--ot-radius-sm);
	padding: 11px 14px;
	font-family: var(--wp--preset--font-family--manrope), sans-serif;
	font-size: 15px;
	color: var(--ot-ink);
	background: var(--ot-paper);
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--ot-delft);
	outline-offset: 1px;
	border-color: var(--ot-delft);
}

/* ---------------------------------------------------------------------------
   Header & footer
   --------------------------------------------------------------------------- */

.main-header-section {
	padding-top: 18px !important;
	padding-bottom: 18px !important;
	border-bottom: 1px solid var(--ot-hairline);
	background: rgba(255, 255, 255, .88);
	backdrop-filter: saturate(1.4) blur(8px);
}

.header-title a {
	font-family: var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-weight: 700 !important;
	letter-spacing: -0.03em;
	text-transform: none !important;
	color: var(--ot-ink) !important;
}

.top-menus a {
	color: var(--ot-slate) !important;
	text-transform: none !important;
	padding-bottom: 2px;
	border-bottom: 1px solid transparent;
}

.top-menus a:hover,
.top-menus .current-menu-item a {
	color: var(--ot-ink) !important;
	border-bottom-color: var(--ot-delft);
}

.footer-section {
	background: var(--ot-ink) !important;
	color: #aeb7cb;
}

.footer-section h2,
.footer-section h3,
.footer-section h4 {
	color: var(--ot-paper) !important;
	font-size: 15px !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	font-family: var(--wp--preset--font-family--inter), sans-serif;
	font-weight: 600 !important;
}

.footer-section a { color: #c9d2e6 !important; }
.footer-section a:hover { color: var(--ot-paper) !important; }

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */

.wp-block-button__link {
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.banner-btn2 .wp-block-button__link {
	text-decoration: none !important;
	border-bottom: 1px solid var(--ot-hairline) !important;
	border-radius: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	color: var(--ot-ink) !important;
}

.banner-btn2 .wp-block-button__link:hover {
	border-bottom-color: var(--ot-delft) !important;
	color: var(--ot-delft) !important;
	background: transparent !important;
}

/* ---------------------------------------------------------------------------
   WooCommerce — the plugin catalogue
   --------------------------------------------------------------------------- */

.woocommerce ul.products li.product {
	background: var(--ot-paper);
	border: 1px solid var(--ot-hairline);
	border-radius: var(--ot-radius);
	padding: 18px;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.woocommerce ul.products li.product:hover {
	border-color: #c3cde5;
	box-shadow: var(--ot-shadow);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--ot-ink);
}

.woocommerce span.onsale {
	background: var(--ot-ochre);
	border-radius: var(--ot-radius-sm);
	font-family: var(--wp--preset--font-family--inter), sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button {
	background: var(--ot-delft);
	color: var(--ot-paper);
	border-radius: var(--ot-radius-sm);
	font-family: var(--wp--preset--font-family--space-grotesk), sans-serif;
	font-weight: 600;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background: var(--ot-ink);
	color: var(--ot-paper);
}

/* ---------------------------------------------------------------------------
   Accessibility floor
   --------------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--ot-delft);
	outline-offset: 2px;
	border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	.service-box .service-bg:hover { transform: none; }
}

@media (max-width: 781px) {
	.banner-title { max-width: none; }

	.banner-btm-boxes {
		flex-wrap: wrap !important;
		gap: 24px !important;
	}

	.services-section,
	.about-section,
	.testimonial-section,
	.news-section,
	.faq-section {
		padding-top: 56px;
		padding-bottom: 56px;
	}
}
