/*
Theme Name: GPN Digital
Theme URI: https://gpndigital.com/
Author: GPN Digital Solutions
Author URI: https://gpndigital.com/
Description: Custom theme for GPN Digital Solutions: web development, WordPress, Shopify and digital marketing. Includes a home page, service page template, contact form with human check, blog templates, WooCommerce basics and a Customizer panel.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
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: gpn-digital
Tags: business, custom-logo, custom-menu, featured-images, translation-ready, e-commerce, threaded-comments
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #0f1d33;
	--primary: #1f4fd8;
	--accent: #ffb020;
	--paper: #f5f7fb;
	--white: #ffffff;
	--slate: #52627a;
	--line: #dde3ee;
	--radius: 10px;
	--wrap: 1180px;
	--narrow: 760px;
	--font-head: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--white);
	color: #1c2a40;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	color: var(--ink);
	line-height: 1.15;
	margin: 0 0 .6em;
	font-weight: 700;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.2em; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal;
}
.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 200;
	background: var(--accent); color: var(--ink); padding: .6rem 1rem; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--narrow)); margin-inline: auto; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #dfe6f3; }
.section--ink h2, .section--ink h3 { color: var(--white); }

.section__head { max-width: 46rem; margin-bottom: 2.5rem; }
.section__head p { color: var(--slate); font-size: 1.15rem; margin: 0; }

/* Images from the registry */
.gpn-img { width: 100%; height: 100%; }
.gpn-img.is-cover { object-fit: cover; }
.gpn-img.is-contain { object-fit: contain; }

.plate {
	background: var(--paper);
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	display: grid;
	place-items: center;
}
.plate .is-contain { padding: 8%; }
.section--paper .plate { background: var(--white); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-block;
	padding: .8rem 1.5rem;
	border-radius: 999px;
	font: 600 1rem/1.2 var(--font-body);
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--white); color: var(--ink); }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15,29,51,.08); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1.5rem; min-height: 76px;
}
.site-branding a { display: block; }
.site-branding img, .site-branding .site-logo { width: auto; height: 52px; max-width: 240px; object-fit: contain; }
.site-title { font: 700 1.3rem var(--font-head); color: var(--ink); text-decoration: none; }

.header-tools { display: flex; align-items: center; gap: 1rem; }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.primary-nav a {
	display: block; padding: .65rem .9rem; color: var(--ink);
	text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 6px;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--primary); }

.primary-nav .menu-item-has-children { position: relative; display: flex; align-items: center; }
.submenu-toggle {
	background: none; border: 0; padding: .4rem; margin-left: -.5rem; cursor: pointer; color: var(--ink);
	display: grid; place-items: center;
}
.submenu-toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.menu-item-has-children.is-open > .submenu-toggle svg { transform: rotate(180deg); }

.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: .5rem;
	position: absolute; top: 100%; left: 0; min-width: 280px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: 0 18px 40px rgba(15,29,51,.14);
	display: none;
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: .6rem .8rem; font-weight: 500; }
.primary-nav .sub-menu a:hover { background: var(--paper); }

.cart-link {
	display: inline-flex; align-items: center; gap: .4rem; color: var(--ink);
	text-decoration: none; font-weight: 600; font-size: .95rem;
}
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
	background: var(--accent); color: var(--ink); border-radius: 999px;
	min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem; display: grid; place-items: center; font-size: .8rem;
}

.nav-toggle {
	display: none; background: none; border: 2px solid var(--ink); border-radius: 8px;
	padding: .45rem .6rem; cursor: pointer; color: var(--ink); font: 600 .9rem var(--font-body);
}

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--white); border-bottom: 1px solid var(--line);
		padding: .75rem 1.25rem 1.25rem; display: none;
		max-height: calc(100vh - 80px); overflow-y: auto;
	}
	.site-header.is-nav-open .primary-nav { display: block; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu-item-has-children { flex-wrap: wrap; }
	.primary-nav .menu-item-has-children > a { flex: 1; }
	.submenu-toggle { margin: 0; padding: .7rem; }
	.primary-nav .sub-menu {
		position: static; width: 100%; min-width: 0; box-shadow: none; border: 0;
		padding: 0 0 .5rem 1rem; border-left: 3px solid var(--line); border-radius: 0; margin-left: .9rem;
	}
}

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--ink); color: var(--white);
}
.hero__bg {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; z-index: -2; opacity: .6;
}
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(15,29,51,.96) 0%, rgba(15,29,51,.78) 55%, rgba(15,29,51,.4) 100%);
}
.hero__inner { padding: clamp(4rem, 11vw, 8rem) 0; max-width: 56rem; }
.hero h1 { color: var(--white); margin: 0 0 2rem; }
.hero__lead {
	display: block; font: 600 1.1rem var(--font-body); letter-spacing: .01em;
	color: var(--accent); margin-bottom: 1rem;
}
.hero__line { display: block; }
.hero__line + .hero__line { margin-top: .15em; color: rgba(255,255,255,.88); }
.hero .btn-row { margin-top: 2.25rem; }

/* ==========================================================================
   Home sections
   ========================================================================== */
.about-grid {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.about-grid p { font-size: 1.1rem; color: #33445f; }

.service-row {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.service-row + .service-row { border-top: 1px solid var(--line); }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.service-row h3 a { color: var(--ink); text-decoration: none; }
.service-row h3 a:hover { color: var(--primary); }
.service-row p { color: #33445f; }
.text-link { font-weight: 600; }

.since-grid {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.since-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.since-media .plate { aspect-ratio: 3 / 4; }
.since-media .plate:last-child { margin-top: 2.5rem; }
.since-grid p { color: #33445f; }

.stack-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.stack-list li {
	background: var(--white); border: 1px solid var(--line); border-radius: 999px;
	padding: .3rem .9rem; font-size: .95rem; font-weight: 600; color: var(--ink);
}
.section--paper .stack-list li { background: var(--white); }

.expert-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { padding: .55rem 0 .55rem 1.9rem; position: relative; border-bottom: 1px solid var(--line); }
.check-list li::before {
	content: ""; position: absolute; left: 0; top: 1.05rem; width: .9rem; height: .5rem;
	border-left: 3px solid var(--primary); border-bottom: 3px solid var(--primary); transform: rotate(-45deg) scale(.85);
}

/* CTA band */
.cta-band { background: var(--primary); color: var(--white); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { color: var(--white); margin: 0; max-width: 34rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; background: var(--ink); color: var(--white); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,29,51,.95), rgba(15,29,51,.7)); }
.page-hero__inner { padding: clamp(2.75rem, 7vw, 5rem) 0; max-width: 52rem; }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero__lead { margin: 1rem 0 0; font-size: 1.2rem; color: #d3dcee; }
.page-hero__meta { margin: 1rem 0 0; color: #b7c4dd; font-size: .95rem; }

.hero-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center; }
.hero-split .plate { background: var(--white); aspect-ratio: 4 / 3; box-shadow: 0 24px 60px rgba(0,0,0,.3); }

/* ==========================================================================
   Content typography
   ========================================================================== */
.entry > *:first-child { margin-top: 0; }
.entry h2 { margin-top: 2.2em; }
.entry h3 { margin-top: 1.8em; }
.entry ul, .entry ol { padding-left: 1.3rem; margin: 0 0 1.4em; }
.entry li { margin-bottom: .4em; }
.entry li::marker { color: var(--primary); }
.entry img { border-radius: var(--radius); }
.entry blockquote {
	margin: 1.6em 0; padding: .2em 0 .2em 1.3rem; border-left: 4px solid var(--accent);
	font-family: var(--font-head); font-size: 1.25rem; color: var(--ink);
}
.entry table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.entry th, .entry td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.entry pre { background: var(--ink); color: #e6ecf7; padding: 1rem 1.2rem; border-radius: var(--radius); overflow-x: auto; }
.entry code { font-size: .92em; }
.alignwide { width: min(100vw - 2.5rem, var(--wrap)); margin-inline: auto; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aside { position: sticky; top: 100px; display: grid; gap: 1.25rem; }
.aside-box { background: var(--paper); border-radius: var(--radius); padding: 1.4rem; }
.aside-box h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.aside-box ul { list-style: none; margin: 0; padding: 0; }
.aside-box li + li { border-top: 1px solid var(--line); }
.aside-box a { display: block; padding: .55rem 0; text-decoration: none; font-weight: 600; }
.aside-box .current > a { color: var(--ink); }
.aside-box--ink { background: var(--ink); color: #d3dcee; }
.aside-box--ink h2 { color: var(--white); }
.aside-box--ink p { font-size: .98rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 3rem; }

/* ==========================================================================
   Blog
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.card { display: flex; flex-direction: column; }
.card__media { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--paper); margin-bottom: 1rem; display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card h2, .card h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--primary); }
.card__meta { color: var(--slate); font-size: .9rem; margin-bottom: .6rem; }
.card p { color: #33445f; margin: 0; }

.pagination, .posts-navigation { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.page-numbers {
	display: inline-block; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 8px;
	text-decoration: none; font-weight: 600; color: var(--ink);
}
.page-numbers.current, .page-numbers:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.post-feature { margin: 0 0 2.5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; }
.post-feature img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.comments-area { margin-top: 4rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1rem 0; border-top: 1px solid var(--line); }
.comment-meta { font-size: .9rem; color: var(--slate); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.field .req { color: #b42318; }
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="number"], input[type="password"], textarea, select {
	width: 100%; padding: .75rem .9rem; font: inherit; color: var(--ink);
	background: var(--white); border: 1.5px solid #b9c4d8; border-radius: 8px;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); outline: 3px solid rgba(31,79,216,.2); outline-offset: 0; }
textarea { min-height: 180px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.5rem; font-weight: 600; }
.notice--ok { background: #e7f6ec; color: #14532d; border: 1px solid #a6dcb9; }
.notice--err { background: #fdecea; color: #7a1f16; border: 1px solid #f2b8b1; }

.search-form { display: flex; gap: .5rem; max-width: 30rem; }
.search-form input { flex: 1; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact-details { background: var(--paper); border-radius: var(--radius); padding: 1.6rem; }
.contact-details h2 { font-size: 1.3rem; }
.contact-details dl { margin: 0; }
.contact-details dt { font-weight: 700; color: var(--ink); margin-top: 1rem; }
.contact-details dd { margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #b9c6df; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h2 { color: var(--white); font: 700 1.1rem var(--font-body); letter-spacing: 0; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #d3dcee; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-logo { display: inline-block; background: var(--white); border-radius: 8px; padding: .5rem .8rem; margin-bottom: 1.1rem; }
.footer-logo img { height: 40px; width: auto; object-fit: contain; }
.footer-about p { margin: 0; max-width: 24rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem 0; font-size: .92rem; }

.to-top {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
	border: 0; background: var(--accent); color: var(--ink); cursor: pointer; display: grid; place-items: center;
	opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; box-shadow: 0 8px 20px rgba(15,29,51,.3);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   WooCommerce basics
   ========================================================================== */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button {
	background: var(--primary); color: var(--white); border-radius: 999px; font-weight: 600; padding: .8rem 1.4rem;
}
.woocommerce .button:hover { background: var(--ink); color: var(--white); }
.woocommerce ul.products li.product .price { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
	.about-grid, .since-grid, .expert-grid, .contact-grid, .layout-aside, .hero-split { grid-template-columns: 1fr; }
	.aside { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.service-row { grid-template-columns: 1fr; gap: 1.5rem; }
	.service-row:nth-child(even) .service-row__media { order: 0; }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
	.since-media .plate:last-child { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Digital marketing page
   ========================================================================== */
.mk-banner { aspect-ratio: 16 / 6; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.mk-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.mk-why__item { border-top: 3px solid var(--accent); padding-top: 1rem; }
.mk-why__item h3 { font-size: 1.2rem; }
.mk-why__item p { color: #33445f; margin: 0; }

.mk-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 6vw, 5rem); }
.mk-service h3 { font-size: 1.3rem; margin-bottom: .5rem; }

.mk-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.mk-steps li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.mk-steps li::before {
	content: counter(step); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
	background: var(--primary); color: var(--white); display: grid; place-items: center; font: 700 1rem var(--font-body);
}
.mk-steps li:not(:last-child)::after {
	content: ""; position: absolute; top: 1.2rem; left: 3rem; right: -1rem; height: 2px; background: var(--line);
}
.mk-steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.mk-steps p { margin: 0; color: #33445f; font-size: .98rem; }

@media (max-width: 960px) {
	.mk-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mk-services { grid-template-columns: 1fr; }
	.mk-steps { grid-template-columns: 1fr; gap: 1.25rem; }
	.mk-steps li { padding: 0 0 0 3.4rem; }
	.mk-steps li:not(:last-child)::after { display: none; }
	.mk-banner { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) { .mk-why { grid-template-columns: 1fr; } }

/* Shopify page */
.sp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.sp-split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sp-split h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; }
.sp-expertise { margin-top: 1.25rem; }
.sp-ghost-dark { border-color: var(--ink); color: var(--ink); }
.sp-ghost-dark:hover { background: var(--ink); color: var(--white); }
@media (max-width: 960px) { .sp-split, .sp-split--flip { grid-template-columns: 1fr; } }

/* WordPress page */
.wd-statement { font-size: 1.15rem; color: #33445f; margin: 0; }
.wd-why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mk-service { min-width: 0; }
.mk-service p { color: #33445f; }
.mk-service__label { font-weight: 700; color: var(--ink) !important; margin-bottom: .3rem; }
.mk-service__after { margin-top: 1rem; margin-bottom: 0; }
.wd-maint .mk-service h3 { font-size: 1.15rem; }
@media (max-width: 960px) { .wd-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wd-why { grid-template-columns: 1fr; } }

/* Blog grid */
.card-grid--blog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .card-grid--blog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid--blog { grid-template-columns: 1fr; } }
.card { min-width: 0; }
.card__meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }
.card__cat { background: var(--paper); color: var(--primary); font-weight: 600; text-decoration: none; padding: .1rem .6rem; border-radius: 999px; font-size: .85rem; }
.card__cat:hover { background: var(--ink); color: var(--white); }
.card__more { margin-top: auto; padding-top: .9rem; }
.card:hover .card__media img { transform: scale(1.03); }
.card__media img { transition: transform .3s; }
.blog-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.blog-filter__item { padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); }
.blog-filter__item:hover, .blog-filter__item.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.blog-empty { text-align: center; max-width: 36rem; margin: 2rem auto; }

/* Single post + side ads */
.single-layout { width: min(100% - 2.5rem, 760px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.single-main { min-width: 0; }
.ad { display: none; position: sticky; top: 100px; align-self: start; text-align: center; }
.ad__label { display: block; font-size: .75rem; color: var(--slate); margin-bottom: .35rem; }
.ad__ph {
	display: grid; place-items: center; min-height: 600px; max-width: 100%; padding: 1rem; margin-inline: auto;
	border: 2px dashed var(--line); border-radius: var(--radius); background: var(--paper);
	color: var(--slate); font-size: .85rem; line-height: 1.4;
}
@media (min-width: 1220px) {
	.single-layout.has-ads { width: min(100% - 2.5rem, 1400px); grid-template-columns: minmax(0, 760px) 300px; justify-content: center; }
	.single-layout .ad--right { display: block; }
}
@media (min-width: 1420px) {
	.single-layout.has-ads { grid-template-columns: 160px minmax(0, 760px) 300px; }
	.single-layout .ad--left { display: block; }
}
