/* ==========================================================================
   qteam Professional – supplementary styles
   Colors, fonts and spacing come from theme.json (editable in Appearance → Editor → Styles).
   ========================================================================== */

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

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

/* Anchored sections land below the sticky header */
[id] { scroll-margin-top: 96px; }

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }

.qt-header {
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid rgba(11, 31, 51, 0.08);
}
.qt-header .wp-block-site-logo img { max-height: 52px; width: auto; }
/* When a logo is uploaded, the text title is hidden automatically (logo usually contains the name). */
.qt-brand .wp-block-site-logo:has(img) + .wp-block-site-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.qt-header .wp-block-navigation a { text-decoration: none; }
.qt-header .wp-block-navigation-item__content { position: relative; padding-block: 0.35rem; }
.qt-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--wp--preset--color--gold); transform: scaleX(0); transform-origin: left;
	transition: transform .25s ease;
}
.qt-header .wp-block-navigation .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.qt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }
.qt-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.qt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.25rem; font-size: 1.25rem; }
@media (max-width: 599px) { .qt-header .qt-header-cta { display: none; } }

/* ---------- Eyebrow label (paragraph style) ---------- */
.is-style-qt-eyebrow {
	font-size: 0.78rem !important;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.is-style-qt-eyebrow::before {
	content: ""; width: 28px; height: 2px; background: var(--wp--preset--color--gold); flex: none;
}
.has-text-align-center.is-style-qt-eyebrow { justify-content: center; display: flex; }
.has-ink-background-color .is-style-qt-eyebrow,
.wp-block-cover .is-style-qt-eyebrow,
.has-navy-background-color .is-style-qt-eyebrow { color: var(--wp--preset--color--primary-light); }

/* ---------- Cards (group styles) ---------- */
.is-style-qt-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	height: 100%;
	box-sizing: border-box;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.is-style-qt-card:hover {
	transform: translateY(-3px);
	border-color: transparent;
	box-shadow: 0 18px 40px -18px rgba(11, 31, 51, 0.28), 0 2px 6px rgba(11, 31, 51, 0.05);
}
.is-style-qt-card-dark {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	box-sizing: border-box;
}
.is-style-qt-card > :first-child,
.is-style-qt-card-dark > :first-child { margin-top: 0; }

/* Number label at the top of service cards */
.qt-num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 0.85rem !important;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--gold);
}

/* ---------- Check-mark list ---------- */
.is-style-qt-checks { list-style: none; padding-left: 0 !important; }
.is-style-qt-checks li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
.is-style-qt-checks li::before {
	content: ""; position: absolute; left: 0; top: 0.3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
	background: var(--wp--preset--color--primary)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / 70% no-repeat;
}

/* ---------- Images ---------- */
.is-style-qt-rounded img { border-radius: 16px; }
.qt-media-tall img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---------- Hero ---------- */
.qt-hero .wp-block-cover__background {
	background-image: linear-gradient(100deg, rgba(11, 31, 51, 0.97) 0%, rgba(11, 31, 51, 0.88) 45%, rgba(18, 50, 80, 0.55) 100%);
}
.qt-hero h1 { max-width: 15ch; }
.qt-hero .qt-hero-lead { max-width: 58ch; }
.qt-hero-facts { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.qt-hero-facts p { margin: 0; }

/* Outline buttons on dark backgrounds */
.has-ink-background-color .is-style-outline .wp-block-button__link,
.wp-block-cover .is-style-outline .wp-block-button__link {
	border: 1px solid rgba(255, 255, 255, 0.45) !important;
	color: #fff;
	background: transparent;
}
.has-ink-background-color .is-style-outline .wp-block-button__link:hover,
.wp-block-cover .is-style-outline .wp-block-button__link:hover {
	background: #fff !important;
	color: var(--wp--preset--color--ink) !important;
}
.wp-block-button__link { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.has-gold-background-color.wp-block-button__link:hover { background-color: #fff !important; color: var(--wp--preset--color--ink) !important; }

.qt-stamp { max-width: 320px; margin-left: auto !important; margin-right: auto !important; }
.qt-stamp img { width: 100%; height: auto; transform: rotate(-4deg); filter: drop-shadow(0 16px 30px rgba(11, 31, 51, 0.18)); }

/* Sections sit flush against header and footer */
.wp-site-blocks > main,
.wp-site-blocks > footer { margin-block-start: 0; }

/* ---------- Industry tiles ---------- */
.qt-industry {
	border-top: 2px solid var(--wp--preset--color--ink);
	padding-top: 1rem;
}
.qt-industry h3 { margin: 0; }

/* ---------- Team ---------- */
.qt-monogram {
	width: 64px; height: 64px; border-radius: 50%;
	display: flex !important; align-items: center; justify-content: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600; font-size: 1.2rem !important; letter-spacing: 0.02em;
	margin: 0 0 1rem 0 !important;
}

/* ---------- Footer ---------- */
.qt-footer a { color: var(--wp--preset--color--on-dark); text-decoration: none; }
.qt-footer a:hover { color: #fff; text-decoration: underline; }
.qt-footer .wp-block-list { list-style: none; padding-left: 0; }
.qt-footer .wp-block-list li { margin-bottom: 0.45rem; }
.qt-footer .wp-block-social-links .wp-social-link { background: rgba(255,255,255,0.08) !important; color: #fff !important; }
.qt-footer .wp-block-social-links .wp-social-link:hover { background: var(--wp--preset--color--primary) !important; }

/* ---------- Motto quote ---------- */
.wp-block-quote.qt-motto {
	border-left: 3px solid var(--wp--preset--color--gold);
	padding: 0.25rem 0 0.25rem 1.25rem;
	margin-left: 0;
}
.wp-block-quote.qt-motto p {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	font-weight: 500; font-style: italic; line-height: 1.35; letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
}

/* ---------- FAQ (details block) ---------- */
.qt-faq {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 1.15rem 0;
}
.qt-faq + .qt-faq { margin-top: 0 !important; }
.qt-faq summary {
	list-style: none; cursor: pointer; position: relative; padding-right: 2.5rem;
	font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.125rem;
}
.qt-faq summary::-webkit-details-marker { display: none; }
.qt-faq summary::after {
	content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
	font-size: 1.5rem; font-weight: 400; color: var(--wp--preset--color--primary); transition: transform .2s ease;
}
.qt-faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qt-faq > :not(summary) { margin-top: 0.75rem; color: var(--wp--preset--color--muted); }

/* ---------- Legal pages ---------- */
.qt-legal h2[id] { scroll-margin-top: 110px; }
.qt-legal li { margin-bottom: 0.5rem; }
.qt-legal h3 { font-size: 1.125rem; }
.qt-toc { columns: 2; column-gap: 2rem; list-style: none; padding-left: 0 !important; margin: 0; font-size: 0.95rem; }
.qt-toc li { margin-bottom: 0.35rem; break-inside: avoid; }
.qt-toc a { text-decoration: none; }
.qt-toc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .qt-toc { columns: 1; } }

/* ---------- Blog ---------- */
.qt-post-card .wp-block-post-featured-image img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; }
.qt-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }

/* ---------- Accessibility ---------- */
:where(a, button, .wp-block-button__link):focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
	border-radius: 4px;
}
