/* Smooth in-page scrolling, respecting reduced-motion preference */
html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* Section anchors should not hide under the sticky header */
.gq-section {
	scroll-margin-top: 90px;
}

/* Eyebrow / section labels */
.gq-eyebrow {
	font-size: var(--wp--preset--font-size--label);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

/* Language dropdown (PT/EN) in the header */
.gq-lang-switcher select {
	appearance: none;
	-webkit-appearance: none;
	text-transform: uppercase;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--contrast);
	background-color: transparent;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	padding: 0.4rem 1.8rem 0.4rem 0.9rem;
	min-height: 44px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6862' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.7rem center;
	background-size: 14px;
}
.gq-lang-switcher select:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Sticky header: hairline border appears once the page has scrolled */
.gq-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--wp--preset--color--base);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}
.gq-header.is-scrolled {
	border-bottom-color: var(--wp--preset--color--line);
}

/* Project cards */
.gq-project-card .wp-block-image {
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 0.75rem;
}
.gq-project-card .wp-block-image img {
	transition: transform 0.3s ease;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.gq-project-card:hover .wp-block-image img {
	transform: scale(1.03);
}
.gq-project-card .gq-eyebrow {
	display: block;
	margin-bottom: 0.4rem;
}

/* Service cards */
.gq-service-card {
	background-color: var(--wp--preset--color--surface);
	padding: 32px;
	border-radius: 4px;
}
.gq-service-icon svg {
	width: 28px;
	height: 28px;
	stroke: var(--wp--preset--color--accent);
	stroke-width: 1.5;
	fill: none;
}

/* Skill pills */
.gq-pill {
	display: inline-block;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	font-size: 0.9rem;
	color: var(--wp--preset--color--muted);
}

/* Stats strip */
.gq-stat-number {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 4vw, 2.75rem);
	color: var(--wp--preset--color--contrast);
	display: block;
	line-height: 1.1;
}
.gq-stat-label {
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
}

/* Experience timeline */
.gq-timeline {
	position: relative;
	padding-left: 24px;
	border-left: 1px solid var(--wp--preset--color--line);
}
.gq-timeline-entry {
	position: relative;
	padding-bottom: 8px;
}
.gq-timeline-entry::before {
	content: "";
	position: absolute;
	left: -29px;
	top: 6px;
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background-color: var(--wp--preset--color--accent);
}

/* Contact rows */
.gq-contact-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	padding: 1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.gq-contact-row a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

/* Visible focus state for keyboard navigation */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
