/*
Theme Name: Quinte Computer Services
Theme URI: https://quintecomputerservices.com/
Author: Quinte Computer Services Ltd.
Description: Custom block theme for quintecomputerservices.com. Blue, white and grey, with Inter and Space Grotesk loaded locally. Includes the six site pages as patterns and a one-time page setup tool under Appearance › QCS Site Setup.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: quinte
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
body .wp-site-blocks > main,
body .qcs-main { margin: 0; }
:where(.qcs-page) h1, :where(.qcs-page) h2, :where(.qcs-page) h3 { margin: 0; }
.qcs-page p { margin: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid #14163A; outline-offset: 2px; }
.screen-reader-text:focus { clip: auto; }

/* Spacing reset inside our components: they set their own gaps */
body .qcs-page :where(.wp-block-group) > * { margin-block-start: 0; margin-block-end: 0; }

/* ---------- Header ---------- */
.qcs-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px; padding: 18px clamp(20px, 4vw, 48px); border-bottom: 1px solid #E6E8EE; background: #fff;
}
body .qcs-header > * { margin: 0; }
.qcs-header .qcs-logo img { display: block; height: 46px; width: auto; }
.qcs-header .qcs-logo { margin: 0; }
.qcs-header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
body .qcs-header-right > * { margin: 0; }
.qcs-nav { font-size: 15px; font-weight: 500; }
.qcs-nav .wp-block-navigation-item__content { color: #14163A; text-decoration: none; }
.qcs-nav .wp-block-navigation-item__content:hover,
.qcs-nav .current-menu-item > .wp-block-navigation-item__content { color: #0100C6; }
.qcs-nav .wp-block-navigation__container { gap: 28px; }
.qcs-header .wp-block-button__link { padding: 11px 22px; font-size: 15px; }
.qcs-nav .wp-block-navigation__responsive-container-open svg { color: #14163A; }
.qcs-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.qcs-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 20px; font-size: 20px; }

/* ---------- Footer ---------- */
.qcs-golf {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
	padding: 18px clamp(20px, 4vw, 48px); border-top: 1px solid #E6E8EE; color: #474B63; font-size: 16px; background: #fff;
}
body .qcs-golf > * { margin: 0; }
.qcs-golf img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block; }
.qcs-golf a { font-weight: 600; text-decoration: none; }
.qcs-footer {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding: 28px clamp(20px, 4vw, 48px); background: #0B0D3B; color: #C9CBE6; font-size: 14px;
}
body .qcs-footer > * { margin: 0; }
.qcs-footer a { color: #C9CBE6; }
.qcs-footer a:hover { color: #fff; }

/* ---------- Sections ---------- */
.qcs-section { padding: 88px clamp(20px, 4vw, 48px); background: #fff; }
.qcs-section.is-grey { background: #F3F4F8; }
.qcs-section.is-blue { background: #0100C6; color: #fff; }
.qcs-section.is-hero { background: linear-gradient(180deg, #F3F4F8, #fff); padding-top: 80px; padding-bottom: 80px; }
.qcs-section.is-hero-short { padding-bottom: 48px; }
.qcs-section.is-center { text-align: center; }
.qcs-section.is-image { padding-top: 72px; padding-bottom: 8px; }
.qcs-section.is-tight-top { padding-top: 40px; padding-bottom: 96px; }
.qcs-section.is-policy { padding-top: 16px; padding-bottom: 96px; }
.qcs-inner { max-width: 1200px; margin-inline: auto; }
.qcs-inner.is-narrow { max-width: 720px; }
.qcs-inner.is-mid { max-width: 880px; }

/* ---------- Type ---------- */
.qcs-eyebrow { color: #4F5370; font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
body .qcs-page .qcs-eyebrow { margin-bottom: 16px; }
.qcs-page h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.08; color: #0100C6; }
.qcs-page h1.is-small { font-size: clamp(38px, 5vw, 54px); }
.qcs-page h2 { font-size: clamp(30px, 3.4vw, 38px); color: #0100C6; }
.qcs-page h3 { color: #14163A; font-size: 22px; }
.qcs-lead { font-size: 19px; line-height: 1.6; color: #474B63; max-width: 560px; }
body .qcs-page .qcs-lead { margin-top: 22px; }
.qcs-intro { font-size: 18px; line-height: 1.6; color: #474B63; max-width: 700px; }
body .qcs-page .qcs-intro { margin-top: 16px; margin-bottom: 40px; }
.qcs-body { color: #474B63; line-height: 1.6; }
body .qcs-page .qcs-body { margin-top: 10px; }
.qcs-section.is-blue h2, .qcs-section.is-blue h3 { color: #fff; }
.qcs-section.is-blue .qcs-body, .qcs-section.is-blue .qcs-intro { color: #DCDDFA; }
.qcs-section.is-blue h2 { font-size: 34px; }
.qcs-section.is-center .qcs-intro { margin-inline: auto; }
.qcs-statement { font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; font-size: clamp(26px, 3vw, 34px) !important; line-height: 1.3; }
.qcs-arrow-link a { font-weight: 600; text-decoration: none; }

/* ---------- Buttons ---------- */
body .qcs-page .wp-block-buttons { margin-top: 32px; gap: 12px; }
.qcs-section.is-center .wp-block-buttons { justify-content: center; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: #0100C6; border: 1px solid #0100C6; padding: 13px 25px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #0100C6; color: #fff; }
.wp-block-button.is-style-white > .wp-block-button__link { background: #fff; color: #0100C6; }
.wp-block-button.is-style-white > .wp-block-button__link:hover { background: #DCDDFA; color: #00008F; }

/* ---------- Layout grids ---------- */
.qcs-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px; align-items: center; }
.qcs-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; }
.qcs-two.is-wide-gap { gap: 56px; align-items: start; }
.qcs-two.is-center { align-items: center; }
.qcs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 24px; }
.qcs-cards.is-260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.qcs-cards.is-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.qcs-cards.is-340 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.qcs-stack { display: flex; flex-direction: column; gap: 28px; }
.qcs-stack.is-36 { gap: 36px; }
.qcs-stack.is-20 { gap: 20px; }

/* ---------- Cards ---------- */
.qcs-card { background: #fff; border: 1px solid #DDE0E8; border-radius: 10px; padding: 28px; }
.qcs-card.is-roomy { padding: 36px; }
.qcs-card.is-blue { background: #0100C6; border-color: #0100C6; color: #fff; }
.qcs-card.is-blue h3 { color: #fff; }
.qcs-card.is-blue .qcs-body { color: #DCDDFA; }
.qcs-card.is-blue a { color: #fff; font-weight: 600; }
.qcs-card.is-grey { background: #F3F4F8; }
.qcs-card.is-topline { border-top: 4px solid #0100C6; }
.qcs-card h3 + .qcs-body, .qcs-card h3 + p { margin-top: 10px; }
.qcs-card.is-small h3 { font-size: 19px; }
body .qcs-page .qcs-card.is-small .qcs-body { margin-top: 8px; }

/* Card icons (drawn by the theme, so editors only see text) */
.qcs-card[class*="qcs-icon-"]::before {
	content: ""; display: block; width: 32px; height: 32px; margin-bottom: 14px;
	background: no-repeat center / contain;
}
.qcs-icon-erp::before { background-image: url("assets/icons/erp.svg") !important; }
.qcs-icon-link::before { background-image: url("assets/icons/link.svg") !important; }
.qcs-icon-layers::before { background-image: url("assets/icons/layers.svg") !important; }
.qcs-icon-shield::before { background-image: url("assets/icons/shield.svg") !important; }

/* ---------- Evolution row (home hero) ---------- */
.qcs-punchcard img { display: block; width: 100%; height: auto; transform: rotate(-3deg); }
body .qcs-page .qcs-punchcard { margin: 0; }
ol.qcs-evolution {
	list-style: none; margin: 0; padding: 0; position: relative;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none;
}
ol.qcs-evolution::before {
	content: ""; position: absolute; left: 16.67%; right: 16.67%; top: 27px; height: 2px; background: #C9CCDA;
}
ol.qcs-evolution li {
	position: relative; margin: 0; text-align: center; font-size: 13px; line-height: 1.35; color: #474B63;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
}
ol.qcs-evolution li::before {
	content: ""; width: 56px; height: 56px; box-sizing: border-box; border-radius: 999px;
	border: 2px solid #0100C6; background: #fff no-repeat center / 28px 28px;
}
ol.qcs-evolution li:nth-child(1)::before { background-image: url("assets/icons/mainframe.svg"); }
ol.qcs-evolution li:nth-child(2)::before { background-image: url("assets/icons/network.svg"); }
ol.qcs-evolution li:nth-child(3)::before { background-color: #0100C6; background-image: url("assets/icons/cloud-white.svg"); }
ol.qcs-evolution li strong { display: block; font-family: 'Space Grotesk', Inter, sans-serif; font-size: 15px; font-weight: 700; color: #0100C6; }

/* Evolution cards (About page) */
.qcs-era-card::before {
	content: ""; display: block; width: 52px; height: 52px; box-sizing: border-box; border-radius: 999px;
	border: 2px solid #0100C6; background: #fff no-repeat center / 26px 26px; margin-bottom: 16px;
}
.qcs-era-mainframe::before { background-image: url("assets/icons/mainframe.svg"); }
.qcs-era-network::before { background-image: url("assets/icons/network.svg"); }
.qcs-era-cloud::before { background-color: #0100C6; background-image: url("assets/icons/cloud-white.svg"); }
.qcs-era { font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; font-size: 15px; color: #0100C6; letter-spacing: 0.02em; }
body .qcs-page .qcs-era-card h3 { font-size: 20px; margin-top: 6px; }
body .qcs-page .qcs-era-card .qcs-body { line-height: 1.55; }

/* ---------- Checklists ---------- */
ul.qcs-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
ul.qcs-checklist li { position: relative; padding-left: 34px; line-height: 1.55; color: #14163A; margin: 0; }
ul.qcs-checklist li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
	background: url("assets/icons/check.svg") no-repeat center / contain;
}
ul.qcs-checklist.is-ruled { gap: 0; }
ul.qcs-checklist.is-ruled li { padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid #EEF0F4; font-size: 17px; }
ul.qcs-checklist.is-ruled li:last-child { border-bottom: 0; }
ul.qcs-checklist.is-ruled li::before { top: 18px; }
body .qcs-page .qcs-card .qcs-lead-in { margin: 14px 0 18px; line-height: 1.6; color: #474B63; }
.qcs-card.is-roomy h2 { font-size: 28px; }

/* ---------- Module tiles (Solentris) ---------- */
.qcs-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qcs-tiles > p {
	min-height: 110px; padding: 14px; display: flex; align-items: center; justify-content: center; text-align: center;
	border: 1px solid #DDE0E8; box-sizing: border-box; background: #fff;
	font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 500; font-size: clamp(14px, 1.8vw, 19px); line-height: 1.25; color: #14163A;
}
.qcs-tiles > p:nth-child(even) { background: #ECEDF3; }
.qcs-tiles > p:nth-child(1) { border-radius: 14px 14px 4px 14px; }
.qcs-tiles > p:nth-child(2), .qcs-tiles > p:nth-child(3), .qcs-tiles > p:nth-child(9) { border-radius: 14px 14px 14px 4px; }
.qcs-tiles > p:nth-child(4), .qcs-tiles > p:nth-child(7) { border-radius: 14px 4px 14px 14px; }
.qcs-tiles > p:nth-child(6), .qcs-tiles > p:nth-child(8) { border-radius: 4px 14px 14px 14px; }
.qcs-tiles > p:nth-child(5) {
	background: #0100C6; border-color: #0100C6; color: #fff; font-weight: 700; border-radius: 14px;
	box-shadow: 0 10px 24px rgba(1, 0, 198, 0.25);
}

/* Home "Our solutions" preview cards */
.qcs-feature { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.qcs-feature-visual { background: #F3F4F8; padding: 28px; }
.qcs-minitiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qcs-minitiles > p, .qcs-ministeps > p {
	background: #fff; border: 1px solid #DDE0E8; border-radius: 10px; font-size: 14px; font-weight: 600; color: #14163A;
}
.qcs-minitiles > p { padding: 14px 8px; text-align: center; }
.qcs-minitiles > p:nth-child(5) { background: #0100C6; border-color: #0100C6; color: #fff; font-weight: 700; }
.qcs-ministeps { display: flex; flex-direction: column; gap: 8px; }
.qcs-ministeps > p { padding: 11px 14px; }
.qcs-ministeps > p strong { color: #0100C6; margin-right: 12px; }
.qcs-ministeps > p:last-child { background: #0100C6; border-color: #0100C6; color: #fff; }
.qcs-ministeps > p:last-child strong { color: #fff; }
.qcs-feature-text { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.qcs-feature-text h3 { font-size: 24px; }
.qcs-feature-text .qcs-body { flex: 1; }
body .qcs-page .qcs-feature-text .qcs-body { margin-top: 0; }

/* ---------- Chips ---------- */
ul.qcs-chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.qcs-chips.is-standalone { margin: 0 0 28px; gap: 10px; }
ul.qcs-chips li {
	margin: 0; padding: 8px 16px; border: 1px solid #C9CCDA; border-radius: 999px; background: #fff;
	font-size: 15px; font-weight: 500; color: #14163A; line-height: 1.3;
}
.qcs-card h3 { font-size: 20px; }
.qcs-cards.is-features .qcs-card h3 { font-size: 22px; }

/* ---------- Numbered steps (Custom Software) ---------- */
.qcs-steps { counter-reset: qcs-step; }
.qcs-steps > .qcs-card::before {
	counter-increment: qcs-step; content: counter(qcs-step);
	display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px;
	background: #0100C6; color: #fff; font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.qcs-steps .qcs-card h3 { font-size: 21px; }

/* Images */
.qcs-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; box-shadow: 0 18px 40px rgba(1, 0, 198, 0.12); }
body .qcs-page .qcs-photo, body .qcs-page .qcs-wide-image { margin: 0; }
.qcs-wide-image img { display: block; width: 100%; height: auto; }
.qcs-mark { display: flex; justify-content: center; }
.qcs-mark img { width: min(300px, 70%); height: auto; }
body .qcs-page .qcs-mark { margin: 0; }

/* ---------- About ---------- */
.qcs-about-two h2 { font-size: 28px !important; }
body .qcs-page .qcs-about-two .qcs-intro { margin: 14px 0 0; }

/* ---------- Contact ---------- */
.qcs-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; align-items: start; }
.qcs-form-card { padding: 36px; box-shadow: 0 18px 40px rgba(1, 0, 198, 0.08); }
.qcs-form-card h2 { font-size: 26px !important; color: #14163A !important; }
body .qcs-page .qcs-form-card .wp-block-shortcode,
body .qcs-page .qcs-form-card .fluentform { margin-top: 20px; }
.qcs-form-note { font-size: 14px; line-height: 1.55; color: #4F5370; }
body .qcs-page .qcs-form-note { margin-top: 4px; }
.qcs-phone { display: grid; grid-template-columns: 28px 1fr; column-gap: 18px; }
.qcs-phone::before { content: ""; grid-row: 1 / span 3; width: 28px; height: 28px; background: url("assets/icons/phone.svg") no-repeat center / contain; }
.qcs-phone h3 { font-size: 19px; }
.qcs-phone .qcs-phone-number { font-size: 18px; font-weight: 600; }
.qcs-phone .qcs-phone-number a { text-decoration: none; }
.qcs-phone .qcs-hours { font-size: 15px; line-height: 1.5; color: #474B63; }
body .qcs-page .qcs-phone > * + * { margin-top: 6px; }
.qcs-card.is-blue h3 { font-size: 19px; }
body .qcs-page .qcs-card.is-blue .qcs-body { margin: 8px 0 14px; line-height: 1.55; }

/* Fluent Forms, styled to match */
.qcs-page .fluentform .ff-el-input--label label { font-weight: 600; font-size: 14px; color: #14163A; }
.qcs-page .fluentform .ff-el-form-control {
	font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #B9BDCC; border-radius: 6px; color: #14163A; min-height: 46px;
}
.qcs-page .fluentform .ff-el-form-control:focus { border-color: #0100C6; outline: 2px solid rgba(1, 0, 198, 0.15); }
.qcs-page .fluentform .ff-btn-submit {
	background: #0100C6 !important; color: #fff !important; border: 0; border-radius: 6px; padding: 14px 26px; font-weight: 600; font-size: 16px; cursor: pointer;
}
.qcs-page .fluentform .ff-btn-submit:hover { background: #00008F !important; }

/* ---------- Privacy Policy ---------- */
.qcs-policy { display: grid; grid-template-columns: minmax(0, 760px) minmax(260px, 1fr); gap: 56px; align-items: start; }
.qcs-policy-section { padding: 32px 0; border-top: 1px solid #E6E8EE; }
.qcs-policy-section h2 { font-size: 24px !important; margin-bottom: 14px !important; }
.qcs-policy-section p { font-size: 17px; line-height: 1.7; color: #474B63; }
body .qcs-page .qcs-policy-section p + p { margin-top: 14px; }
.qcs-policy-aside { margin-top: 32px; position: sticky; top: 24px; }
.qcs-policy-aside h2 { font-size: 20px !important; color: #14163A !important; }
body .qcs-page .qcs-policy-aside p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: #474B63; }
body .qcs-page .qcs-policy-aside p.qcs-form-note { margin-top: 16px; font-size: 14px; color: #4F5370; }
@media (max-width: 860px) {
	.qcs-policy { grid-template-columns: 1fr; gap: 0; }
	.qcs-policy-aside { position: static; }
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.qcs-section { padding-top: 64px; padding-bottom: 64px; }
	.qcs-section.is-hero { padding-top: 56px; padding-bottom: 56px; }
	.qcs-header { flex-wrap: nowrap; gap: 12px; }
	.qcs-header .qcs-logo img { height: 34px; }
	.qcs-header-right { gap: 14px; flex-wrap: nowrap; }
	.qcs-header-right .qcs-nav { order: 2; }
	.qcs-header .wp-block-button__link { padding: 9px 14px; font-size: 14px; white-space: nowrap; }
	ol.qcs-evolution { gap: 8px; }
	.qcs-tiles > p { min-height: 84px; padding: 8px; }
	.qcs-footer { flex-direction: column; }
}

/* ---------- Section-specific spacing ---------- */
body .qcs-page .qcs-two .qcs-intro { margin: 16px 0 0; }
body .qcs-page .qcs-cs-intro { margin-top: 40px; gap: 40px; }
body .qcs-page .qcs-cs-intro .qcs-intro { margin-top: 12px; }
body .qcs-page .qcs-cs-integrations { margin: 28px 0 40px; gap: 40px; }
body .qcs-page .qcs-cs-integrations .qcs-intro { margin: 0; }
.qcs-section.is-hero-short .qcs-lead { max-width: 760px; }
body .qcs-page .qcs-section.is-hero-short .qcs-lead + .qcs-lead { margin-top: 14px; }
.qcs-two.is-center h2 { font-size: clamp(30px, 3.4vw, 40px); }
body .qcs-page .qcs-two.is-center .qcs-intro { margin: 0; }
body .qcs-page > * { margin-block: 0; }
body .qcs-page .qcs-inner > h2 + .qcs-cards { margin-top: 36px; }
.qcs-page .fluentform .ff-el-form-control { width: 100%; box-sizing: border-box; }
.qcs-page .fluentform .ff-el-group { margin-bottom: 20px; }
