/*
Theme Name: Retesseo
Theme URI: https://retesseo.com
Author: Retesseo Digital Solutions
Description: A clean, warm, conversion-focused block theme for Retesseo — a B2B web services agency offering web design, hosting, and SEO. Built on a restrained palette of parchment, navy-charcoal, and confident teal with Archivo, Inter, and JetBrains Mono typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: retseo
Tags: block-patterns, full-site-editing, wide-blocks, custom-colors, custom-fonts, editor-style
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
*/

/* ---------- Root & body resets ---------- */

:root,
body,
.wp-site-blocks {
	overflow: visible;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Subtle 48px grid background echoing the hero's structural pattern */
body {
	background-image:
		linear-gradient(to right, rgba(26, 26, 46, 0.035) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(26, 26, 46, 0.035) 1px, transparent 1px);
	background-size: 48px 48px;
}

/* ---------- Sticky header ---------- */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Scrolled-state backdrop pseudo — keeps header clean so mobile overlay
   position: fixed inset: 0 continues to target the viewport. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.wp-site-blocks > header.wp-block-template-part::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transition: background 0.4s ease, box-shadow 0.4s ease;
}

body.is-scrolled .wp-site-blocks > header.wp-block-template-part::before {
	background: var(--wp--preset--color--base);
	box-shadow: 0 1px 0 var(--wp--preset--color--hairline);
}

/* ---------- Header inner styling ---------- */

.site-header {
	transition: padding 0.25s ease;
}

.site-header a {
	text-decoration: none;
}

/* ---------- Typography polish ---------- */

/* Archivo italic for emphasis spans — the "compound" accent */
em,
i {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 300;
	font-style: italic;
}

/* Tighten heading tracking slightly more at hero scale */
h1 {
	letter-spacing: -0.04em;
}

/* Paragraph max width for comfortable reading when unconstrained */
.wp-block-post-content > p,
.entry-content > p {
	max-width: 72ch;
}

/* Captions and small mono labels */
figcaption,
.wp-block-post-date,
.wp-block-post-terms {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* ---------- Link styling ---------- */

a {
	transition: color 0.2s ease;
}

/* Navigation links: no underline, teal on hover */
.wp-block-navigation a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.wp-block-navigation a:hover,
.wp-block-navigation a:focus {
	color: var(--wp--preset--color--primary);
}

/* ---------- Button styling ---------- */

/* Confident rectangular buttons with offset-border detail from hero */
.wp-block-button .wp-block-button__link {
	position: relative;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button .wp-block-button__link::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	right: -4px;
	bottom: -4px;
	border: 1px solid var(--wp--preset--color--primary);
	z-index: -1;
	transition: all 0.2s ease;
	pointer-events: none;
}

.wp-block-button .wp-block-button__link:hover {
	transform: translate(-2px, -2px);
	background-color: var(--wp--preset--color--primary-hover);
	color: var(--wp--preset--color--base);
}

.wp-block-button .wp-block-button__link:hover::after {
	top: 8px;
	left: 8px;
	right: -8px;
	bottom: -8px;
}

/* Outline button variant */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--wp--preset--color--hairline);
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-outline .wp-block-button__link::after {
	display: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	transform: none;
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* ---------- Status badge (system-status pattern from hero) ---------- */

.system-status {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	border: 1px solid var(--wp--preset--color--hairline);
	padding: 0.5rem 1rem;
	background: rgba(255, 255, 255, 0.5);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--muted);
}

.status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	background-color: var(--wp--preset--color--secondary);
	border-radius: 50%;
	box-shadow: 0 0 8px var(--wp--preset--color--secondary);
}

/* ---------- Image treatments ---------- */

/* Sharp, structural — no rounding, subtle shadow for card-lifted images */
.wp-block-image img {
	border-radius: 0;
}

.wp-block-image.is-style-default img {
	box-shadow: 0 16px 48px -12px rgba(26, 26, 46, 0.1);
}

/* Browser mockup pattern — re-usable via .browser-mockup className */
.browser-mockup {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--hairline);
	box-shadow: 0 32px 64px -16px rgba(26, 26, 46, 0.12);
	border-radius: 0;
	overflow: hidden;
}

.browser-chrome {
	height: 36px;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	background: rgba(247, 246, 243, 0.5);
	display: flex;
	align-items: center;
	padding: 0 16px;
	gap: 8px;
}

.chrome-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--hairline);
}

/* ---------- Card surfaces ---------- */

/* White surface cards lift off the warm parchment base */
.has-surface-background-color {
	box-shadow: 0 1px 3px rgba(26, 26, 46, 0.06);
}

/* Package/pricing card hover lift */
.package-card,
.retainer-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.package-card:hover,
.retainer-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px -8px rgba(26, 26, 46, 0.12);
}

/* Recommended/highlighted card — teal top border accent */
.is-recommended {
	border-top: 3px solid var(--wp--preset--color--primary);
}

/* ---------- Data overlay (performance badge from hero) ---------- */

.data-overlay {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.data-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
}

.data-value {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 24px;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

/* ---------- Service cards ---------- */

.service-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px -6px rgba(26, 26, 46, 0.1);
}

/* ---------- Separator styling ---------- */

.wp-block-separator {
	border-color: var(--wp--preset--color--hairline);
	opacity: 1;
}

.wp-block-separator:not(.is-style-dots) {
	border-bottom-width: 1px;
}

/* ---------- Blockquote polish ---------- */

.wp-block-quote {
	border-left-color: var(--wp--preset--color--primary);
}

.wp-block-quote cite {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ---------- List check styling for package features ---------- */

.package-features li,
.retainer-features li {
	position: relative;
	padding-left: 1.5em;
	list-style: none;
	line-height: 1.8;
}

.package-features li::before,
.retainer-features li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

/* ---------- Contact form styling ---------- */

.wp-block-form input[type="text"],
.wp-block-form input[type="email"],
.wp-block-form input[type="tel"],
.wp-block-form input[type="url"],
.wp-block-form textarea,
.wp-block-form select {
	width: 100%;
	border: 1px solid var(--wp--preset--color--hairline);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	padding: 0.875rem 1rem;
	border-radius: 0;
	transition: border-color 0.2s ease;
}

.wp-block-form input:focus,
.wp-block-form textarea:focus,
.wp-block-form select:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 2px rgba(0, 196, 140, 0.15);
}

.wp-block-form label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.5rem;
	display: block;
}

/* ---------- Table styling ---------- */

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

.wp-block-table td,
.wp-block-table th {
	border: 1px solid var(--wp--preset--color--hairline);
	padding: 0.75rem 1rem;
}

.wp-block-table th {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 500;
}

/* ---------- Mobile hamburger overlay ---------- */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--40);
	align-items: flex-start;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
}

/* ---------- Site title lowercase treatment ---------- */

.wp-block-site-title a {
	text-decoration: none;
}

/* ---------- Cover block inner content vertical centering ---------- */

.wp-block-cover .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* ---------- Group with grid layout gap fallback ---------- */

.wp-block-group.is-layout-grid {
	gap: var(--wp--preset--spacing--40);
}

/* ---------- Columns responsive stacking ---------- */

@media (max-width: 781px) {
	.wp-block-columns {
		flex-direction: column;
	}

	.wp-block-columns > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ---------- Pricing header accent ---------- */

.price-tag {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--primary);
}

/* ---------- Badge / pill accent using secondary (amber) ---------- */

.badge {
	display: inline-block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--contrast);
	padding: 0.25rem 0.75rem;
	line-height: 1.5;
}

/* ---------- Footer credit styling ---------- */

.footer-credit {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.footer-credit a {
	color: var(--wp--preset--color--muted);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.footer-credit a:hover {
	color: var(--wp--preset--color--primary);
}

/* ---------- Scroll-progress bar color (CSS scroll-driven animation
   uses currentColor as fallback — supply the primary accent) ---------- */

.scroll-progress {
	background: var(--wp--preset--color--primary);
}

/* ---------- Loop layout utilities ---------- */
/* These classes are wired to the wp:query blocks emitted by content/pages and
   templates. Do not rename. Tune colours and spacing to theme.json tokens. */

/* Horizontal scrollable rail */
.wp-block-query.is-style-loop-rail .wp-block-post-template {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: var(--wp--preset--spacing--20);
}
.wp-block-query.is-style-loop-rail .wp-block-post-template > * {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

/* Compact list with hairline row dividers */
.wp-block-query.is-style-loop-list .wp-block-post-template > * {
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	padding-block: var(--wp--preset--spacing--30);
}
.wp-block-query.is-style-loop-list .wp-block-post-template > *:last-child {
	border-bottom: 0;
}

/* Zigzag — flip the columns inside every even entry */
.wp-block-query.is-style-loop-zigzag .wp-block-post-template > *:nth-child(even) .wp-block-columns {
	flex-direction: row-reverse;
}

/* Timeline — vertical line with node markers per entry */
.wp-block-query.is-style-loop-timeline .wp-block-post-template {
	position: relative;
	padding-inline-start: 2.5rem;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template::before {
	content: '';
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--hairline);
	opacity: 1;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > * {
	position: relative;
}
.wp-block-query.is-style-loop-timeline .wp-block-post-template > *::before {
	content: '';
	position: absolute;
	inset-inline-start: -2.25rem;
	inset-block-start: 0.6rem;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 50%;
	background: var(--wp--preset--color--base);
}

/* Magazine — first child spans 2 columns of the grid */
.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
	grid-column: span 2;
}
@media (max-width: 600px) {
	.wp-block-query.is-style-loop-magazine .wp-block-post-template > *:first-child {
		grid-column: auto;
	}
}

/* ---------- Utility: visually hidden ---------- */

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}