/* ==========================================================================
   Italia Star Digital — main stylesheet
   ========================================================================== */

:root {
	--accent: #ed6210;          /* brand orange: large text, decoration */
	--accent-ink: #c8500a;      /* AA on white for buttons and small text */
	--accent-ink-hover: #a94307;
	--navy: #23284e;
	--ink: #0d0925;
	--text: #555;
	--muted: #666;
	--line: #e6e6ea;
	--bg: #fff;
	--bg-soft: #f2f2f2;
	--bg-tint: #fbf6f2;

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 12px;
	--radius-sm: 4px;
	--shadow: 0 10px 40px rgba(13, 9, 37, .08);
	--shadow-lg: 0 24px 60px rgba(13, 9, 37, .14);
	--container: 1200px;
	--gutter: 20px;
	--header-h: 96px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 18px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--ink);
	font-weight: 700;
	line-height: 1.25;
}

p { margin: 0 0 1.2em; }

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

.site-main:focus { outline: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	clip: auto;
	width: auto; height: auto;
	margin: 0;
	top: 12px; left: 12px;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--navy);
	color: #fff;
	border-radius: var(--radius-sm);
	text-decoration: none;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.container.narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding: 110px 0; }
.section-tight { padding: 20px 0 60px; }

.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 26px;
	border: 2px solid var(--accent-ink);
	border-radius: var(--radius-sm);
	background: var(--accent-ink);
	color: #fff;
	font: 700 16px/1.3 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}

.btn:hover {
	background: var(--accent-ink-hover);
	border-color: var(--accent-ink-hover);
	color: #fff;
}

.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn-sm { padding: 10px 18px; font-size: 15px; }

.btn-outline {
	background: transparent;
	color: var(--accent-ink);
}
.btn-outline:hover { background: var(--accent-ink); color: #fff; }

.btn-ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .7);
	color: #fff;
}
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn-light {
	background: #fff;
	border-color: #fff;
	color: var(--ink);
}
.btn-light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	transition: box-shadow .25s;
}

.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(13, 9, 37, .08); }

.header-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: var(--header-h);
}

.header-brand { flex: none; }

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--navy);
}
.brand-mark { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.brand-name span { color: var(--accent-ink); }
.brand-tag {
	margin-top: 3px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

.custom-logo-link img { max-height: 64px; width: auto; }

.primary-nav { flex: 1; display: flex; justify-content: center; }

.nav-menu {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-menu a {
	position: relative;
	display: block;
	padding: 10px 16px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: color .2s;
}

.nav-menu a::after {
	content: "";
	position: absolute;
	left: 16px; right: 16px; bottom: 4px;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--ease);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current_page_parent > a { color: var(--accent-ink); }

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after,
.nav-menu .current_page_parent > a::after { transform: scaleX(1); }

.header-cta { flex: none; }
.header-cta-mobile { display: none; }

.menu-toggle {
	display: none;
	margin-left: auto;
	width: 48px; height: 48px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	cursor: pointer;
}
.menu-toggle-bars { display: grid; gap: 6px; width: 26px; margin: auto; }
.menu-toggle-bars span {
	display: block;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform .25s var(--ease), opacity .2s;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero,
.page-hero {
	position: relative;
	isolation: isolate;
	color: #fff;
	background-color: var(--ink);
	background-image:
		radial-gradient(circle at 85% 20%, rgba(237, 98, 16, .35), transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(35, 40, 78, .9), transparent 60%),
		linear-gradient(135deg, #0d0925 0%, #23284e 100%);
	background-size: cover;
	background-position: center;
}

.hero.has-photo::before,
.page-hero.has-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(13, 9, 37, .88) 0%, rgba(13, 9, 37, .6) 55%, rgba(13, 9, 37, .35) 100%);
}

/* Subtle star pattern when there is no photo. */
.hero:not(.has-photo)::after,
.page-hero:not(.has-photo)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: .07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpolygon fill='%23fff' points='40,30 42.4,36.8 49.5,37 43.9,41.3 45.9,48.2 40,44.1 34.1,48.2 36.1,41.3 30.5,37 37.6,36.8'/%3E%3C/svg%3E");
}

.hero { min-height: 860px; display: flex; align-items: center; padding: 120px 0 200px; }

.hero-inner { position: relative; }

.hero-title {
	max-width: 820px;
	margin-bottom: 24px;
	color: #fff;
	font-size: 72px;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.hero-text {
	max-width: 620px;
	margin-bottom: 40px;
	color: rgba(255, 255, 255, .88);
	font-size: 20px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Rotating badge */
.spin-badge {
	position: absolute;
	right: max(var(--gutter), calc((100vw - var(--container)) / 2));
	bottom: 150px;
	width: 160px; height: 160px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	box-shadow: var(--shadow-lg);
	transition: transform .3s var(--ease), background-color .2s;
}
.spin-badge:hover { transform: scale(1.05); background: var(--accent-ink); color: #fff; }
.spin-badge-ring {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	fill: #fff;
	font: 700 15px var(--font);
	letter-spacing: .18em;
}
.spin-badge-arrow {
	width: 56px; height: 56px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	color: var(--accent-ink);
	transform: rotate(-45deg);
}
.spin-badge-arrow .icon { width: 26px; height: 26px; }

@media (prefers-reduced-motion: no-preference) {
	.spin-badge-ring { animation: spin 14s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Intro card overlapping the hero */
.intro-wrap { position: relative; z-index: 2; margin-top: -130px; }
.intro-card {
	width: 62%;
	padding: 48px 56px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	border-left: 5px solid var(--accent);
}
.intro-card p { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.7; }

/* Inner page hero */
.page-hero { padding: 120px 0 110px; min-height: 400px; display: flex; align-items: center; }
.page-hero-inner { position: relative; }
.page-hero-title { margin: 0; color: #fff; font-size: 56px; letter-spacing: -.02em; max-width: 900px; }
.page-hero-sub { max-width: 640px; margin: 18px 0 0; color: rgba(255, 255, 255, .88); font-size: 20px; }
.hero-eyebrow {
	margin: 0 0 12px;
	color: #ffb27f;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* ---------- Section heads ---------- */

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
	margin: 0 0 12px;
	color: var(--accent);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.3;
}

.section-title { font-size: 48px; letter-spacing: -.02em; line-height: 1.2; }
.section-lead { margin: 16px 0 0; font-size: 19px; }

/* ---------- Client logos ---------- */

.clients { padding: 90px 0 0; }
.clients-title { margin-bottom: 40px; text-align: center; font-size: 22px; font-weight: 600; color: var(--ink); }
.client-logos {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 40px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.client-logos img {
	max-height: 56px;
	width: auto;
	margin: auto;
	filter: grayscale(1);
	opacity: .6;
	transition: filter .2s, opacity .2s;
}
.client-logos img:hover { filter: none; opacity: 1; }

/* ---------- About split ---------- */

.about-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 80px;
	align-items: center;
	padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2));
}

.about-split.is-reverse { background: var(--bg-tint); }

.about-split-media img,
.about-art {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: 0 var(--radius) var(--radius) 0;
}

.about-art {
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 70% 30%, rgba(237, 98, 16, .5), transparent 50%),
		linear-gradient(135deg, #23284e, #0d0925);
}
.about-art-mark { width: 38%; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }

.about-lead { color: var(--ink); font-size: 20px; }

.stat { display: flex; align-items: baseline; gap: 16px; margin: 8px 0 28px; }
.stat-number { color: var(--ink); font-size: 48px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 16px; }

/* ---------- Services grid ---------- */

.services-section { background: var(--bg); }

.service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 56px 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-card { text-align: center; padding: 8px 12px; }
.service-num {
	display: block;
	margin-bottom: 14px;
	color: var(--accent);
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
}
.service-title { margin-bottom: 12px; font-size: 18px; font-weight: 600; }
.service-title a { color: var(--ink); text-decoration: none; }
.service-title a:hover { color: var(--accent-ink); }
.service-card p { margin: 0; font-size: 16px; line-height: 1.75; }

/* ---------- Process ---------- */

.process-section { background: var(--bg-soft); }

.process-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.process-step {
	position: relative;
	padding: 36px 28px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.process-num {
	display: inline-grid;
	place-items: center;
	width: 52px; height: 52px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	font-weight: 700;
	font-size: 17px;
}
.process-step h3 { font-size: 20px; }
.process-step p { margin: 0; font-size: 16px; }

/* ---------- Why choose us ---------- */

.why-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 80px;
	align-items: start;
}
.why-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.why-intro .btn { margin-top: 12px; }

.reasons {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 36px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.why-section .container:not(.why-grid) > .reasons { grid-template-columns: repeat(3, 1fr); }

.reason { display: flex; gap: 16px; }
.reason-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: rgba(237, 98, 16, .12);
	color: var(--accent-ink);
}
.reason-icon .icon { width: 20px; height: 20px; }
.reason h3 { margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.reason p { margin: 0; font-size: 16px; }

/* ---------- Testimonials ---------- */

.testimonials { background: var(--bg-tint); }
.carousel { max-width: 820px; margin: 0 auto; text-align: center; }
.carousel-slide { margin: 0; }
.carousel-slide figcaption { display: flex; flex-direction: column; margin-bottom: 20px; }
.review-name { color: var(--ink); font-size: 20px; }
.review-role { color: var(--muted); font-size: 15px; }
.carousel-slide blockquote { margin: 0; }
.carousel-slide blockquote p { margin: 0; color: var(--ink); font-size: 22px; line-height: 1.7; }
.carousel-slide blockquote p::before { content: "“"; }
.carousel-slide blockquote p::after { content: "”"; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.carousel-btn {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border: 2px solid var(--line);
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	cursor: pointer;
	transition: border-color .2s, color .2s;
}
.carousel-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.carousel-btn .icon { width: 20px; height: 20px; }
.carousel-dots { display: flex; gap: 4px; }
.carousel-dot {
	width: 24px; height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
}
.carousel-dot::before {
	content: "";
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	background: #c9c9d1;
	transition: background-color .2s, transform .2s;
}
.carousel-dot[aria-current="true"]::before { background: var(--accent); transform: scale(1.3); }

@media (prefers-reduced-motion: no-preference) {
	.carousel-slide.is-entering { animation: fade-in .5s var(--ease); }
}
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- CTA band ---------- */

.cta-band {
	background:
		radial-gradient(circle at 90% 0%, rgba(237, 98, 16, .45), transparent 50%),
		linear-gradient(135deg, var(--navy), var(--ink));
	color: #fff;
	padding: 80px 0;
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-band-title { color: #fff; font-size: 40px; letter-spacing: -.02em; }
.cta-band-text { max-width: 620px; margin: 0; color: rgba(255, 255, 255, .85); }
.cta-band-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; flex: none; }
.cta-band-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.cta-band-phone:hover { color: #ffb27f; }
.cta-band-phone .icon { width: 18px; height: 18px; }

/* ---------- About page ---------- */

.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.vm-card {
	padding: 48px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	border-top: 4px solid var(--accent);
}
.vm-label {
	margin-bottom: 10px;
	color: var(--accent-ink);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.vm-card h3 { font-size: 24px; }
.vm-card p:last-child { margin: 0; }

/* ---------- Services page ---------- */

.service-block {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: 60px;
	padding: 56px 0;
	border-top: 1px solid var(--line);
}
.service-block:last-child { border-bottom: 1px solid var(--line); }
.service-block-head { display: flex; align-items: flex-start; gap: 18px; }
.service-block-head .service-num { margin: 4px 0 0; font-size: 22px; }
.service-block-head h2 { margin: 0; font-size: 32px; letter-spacing: -.01em; }
.service-block-body > p { font-size: 18px; }

.check-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px 28px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 16px; line-height: 1.6; }
.check-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-ink); }

/* ---------- Contact ---------- */

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: 64px;
	align-items: start;
}
.contact-form-wrap .section-title { font-size: 36px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin: 0 0 20px; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 15px; font-weight: 600; }
.field input,
.field select,
.field textarea,
.search-field {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #c9c9d1;
	border-radius: 6px;
	background: #fff;
	color: var(--ink);
	font: 400 16px/1.5 var(--font);
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(237, 98, 16, .2);
}
.field .is-invalid,
.field [aria-invalid="true"] { border-color: #b3261e; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-privacy { color: var(--muted); font-size: 14px; }
.prefer-email { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; }
.prefer-email a { font-weight: 600; }

.form-notice {
	margin-bottom: 24px;
	padding: 16px 20px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 500;
}
.form-notice.is-success { background: #e8f5ec; color: #1d5b31; border: 1px solid #b7dcc2; }
.form-notice.is-error { background: #fdecea; color: #8a1c14; border: 1px solid #f3c1bc; }

.contact-details {
	position: sticky;
	top: calc(var(--header-h) + 32px);
	padding: 40px 36px;
	border-radius: var(--radius);
	background: var(--navy);
	color: rgba(255, 255, 255, .85);
}
.contact-details-title { color: #fff; font-size: 24px; margin-bottom: 24px; }
.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list strong { display: block; color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.contact-list a { color: rgba(255, 255, 255, .9); font-size: 17px; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: #ffb27f; text-decoration: underline; }
.contact-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--accent-ink);
	color: #fff;
}
.contact-icon .icon { width: 20px; height: 20px; }

/* ---------- Blog ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	transition: transform .25s var(--ease), box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	background:
		radial-gradient(circle at 75% 25%, rgba(237, 98, 16, .45), transparent 50%),
		linear-gradient(135deg, #23284e, #0d0925);
}
.post-card-placeholder .brand-mark { width: 64px; height: 64px; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.post-card-title { font-size: 21px; line-height: 1.35; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--accent-ink); }
.post-card-excerpt { flex: 1; font-size: 16px; line-height: 1.7; }
.post-meta { margin: 0 0 10px; color: var(--muted); font-size: 14px; }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px; height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

/* Entry content (posts, legal pages) */
.entry > .post-meta { margin-bottom: 24px; }
.entry-thumb { margin: 0 0 40px; }
.entry-thumb img { border-radius: var(--radius); width: 100%; }
.entry-content { color: #444; }
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { margin-top: 1.8em; font-size: 32px; }
.entry-content h3 { margin-top: 1.6em; font-size: 24px; }
.entry-content h4 { margin-top: 1.4em; font-size: 20px; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--accent-ink); }
.entry-content blockquote {
	margin: 2em 0;
	padding: 8px 0 8px 28px;
	border-left: 4px solid var(--accent);
	color: var(--ink);
	font-size: 21px;
}
.entry-content img { border-radius: var(--radius); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 16px; }
.entry-content th,
.entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content .template-note,
.entry-content .notice {
	padding: 16px 20px;
	border-radius: 6px;
	background: #fff7e6;
	border: 1px solid #f3d9a4;
	color: #6b4a00;
	font-size: 16px;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.tag-list a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--bg-soft);
	color: var(--ink);
	font-size: 14px;
	text-decoration: none;
}

.post-navigation { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation a { display: block; text-decoration: none; }
.nav-label { display: block; color: var(--muted); font-size: 14px; }
.nav-title { display: block; color: var(--ink); font-weight: 600; line-height: 1.4; }
.post-navigation a:hover .nav-title { color: var(--accent-ink); }

.search-form { position: relative; display: flex; max-width: 520px; }
.search-field { padding-right: 56px; }
.search-submit {
	position: absolute;
	right: 4px; top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.search-submit .icon { width: 22px; height: 22px; }
.search-again { padding-top: 60px; }

.empty-state { text-align: center; }
.empty-state .search-form { margin: 24px auto; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-soft); color: var(--muted); font-size: 16px; }

.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1.2fr 1.3fr;
	gap: 48px;
	padding-top: 90px;
	padding-bottom: 70px;
}

.footer-about .brand,
.footer-about .custom-logo-link { margin-bottom: 20px; }
.footer-blurb { margin: 0 0 20px; line-height: 1.7; }

.footer-title {
	margin-bottom: 20px;
	color: var(--ink);
	font-size: 18px;
	font-weight: 700;
}

.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-links a,
.footer-contact a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover,
.footer-contact a:hover { color: var(--accent-ink); text-decoration: underline; }

.footer-contact { margin: 0; }
.footer-contact dt { color: var(--ink); font-size: 14px; font-weight: 700; }
.footer-contact dd { margin: 0 0 16px; line-height: 1.6; }

.social-links { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social-links a {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--navy);
	transition: background-color .2s, color .2s;
}
.social-links a:hover { background: var(--accent-ink); color: #fff; }
.social-links .icon { width: 18px; height: 18px; }

.footer-bottom { border-top: 1px solid #dcdce2; }
.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-top: 24px;
	padding-bottom: 24px;
}
.copyright { margin: 0; font-size: 15px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 200;
	max-width: 440px;
	padding: 24px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--line);
	font-size: 15px;
	line-height: 1.6;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 16px; color: var(--text); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cookie-settings {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 150;
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	box-shadow: var(--shadow);
	cursor: pointer;
	transition: background-color .2s;
}
.cookie-settings[hidden] { display: none; }
.cookie-settings:hover { background: var(--accent-ink); }
.cookie-settings .icon { width: 22px; height: 22px; }

/* ---------- Scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
	.js .reveal {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity .7s var(--ease), transform .7s var(--ease);
	}
	.js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- WordPress core classes ---------- */

.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text,
figcaption.wp-element-caption { color: var(--muted); font-size: 14px; text-align: center; }
.sticky, .gallery-caption, .bypostauthor { /* required by theme check */ }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.header-inner { gap: 20px; }
	.nav-menu a { padding: 10px 11px; }
	.hero-title { font-size: 60px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.process-steps { grid-template-columns: repeat(2, 1fr); }
	.why-section .container:not(.why-grid) > .reasons { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
	:root { --header-h: 76px; }

	.section { padding: 80px 0; }

	.menu-toggle { display: block; }
	.header-inner > .header-cta { display: none; }
	.brand-mark { width: 42px; height: 42px; }
	.brand-name { font-size: 19px; }

	.primary-nav {
		position: fixed;
		top: var(--header-h);
		left: 0; right: 0; bottom: 0;
		display: block;
		padding: 24px var(--gutter) 40px;
		background: #fff;
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
	.primary-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity .2s, transform .2s var(--ease);
	}
	.nav-menu { flex-direction: column; gap: 0; }
	.nav-menu a { padding: 16px 4px; font-size: 20px; border-bottom: 1px solid var(--line); }
	.nav-menu a::after { display: none; }
	.header-cta-mobile { display: flex; width: 100%; margin-top: 28px; }
	body.menu-open { overflow: hidden; }

	.hero { min-height: 0; padding: 100px 0 190px; }
	.hero-title { font-size: 48px; }
	.spin-badge { width: 120px; height: 120px; bottom: 150px; }
	.spin-badge-ring { font-size: 13px; }
	.spin-badge-arrow { width: 44px; height: 44px; }

	.intro-card { width: 100%; padding: 36px 32px; }

	.about-split { grid-template-columns: 1fr; gap: 48px; padding-right: 0; }
	.about-split-body { padding: 0 var(--gutter); }
	.about-split-media { padding-right: var(--gutter); }

	.service-grid { grid-template-columns: repeat(2, 1fr); }
	.why-grid { grid-template-columns: 1fr; gap: 48px; }
	.why-intro { position: static; }
	.vm-grid { grid-template-columns: 1fr; }
	.service-block { grid-template-columns: 1fr; gap: 20px; }
	.contact-grid { grid-template-columns: 1fr; }
	.contact-details { position: static; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.client-logos { grid-template-columns: repeat(3, 1fr); }

	.cta-band-inner { flex-direction: column; align-items: flex-start; }
	.cta-band-actions { align-items: flex-start; }

	.section-title { font-size: 38px; }
	.page-hero { min-height: 320px; padding: 90px 0 80px; }
	.page-hero-title { font-size: 44px; }
}

@media (max-width: 640px) {
	body { font-size: 17px; }
	.section { padding: 64px 0; }

	.brand-tag { display: none; }

	.hero { padding: 64px 0 260px; }
	.hero-title { font-size: 40px; }
	.hero-text { font-size: 18px; }
	.hero-actions .btn { width: 100%; }
	.spin-badge { width: 104px; height: 104px; bottom: 132px; right: var(--gutter); }
	.spin-badge-ring { font-size: 12px; }

	.intro-wrap { margin-top: -110px; }
	.intro-card { padding: 28px 24px; }
	.intro-card p { font-size: 18px; }

	.eyebrow { font-size: 22px; }
	.section-title { font-size: 32px; }
	.section-head { margin-bottom: 40px; }
	.page-hero-title { font-size: 36px; }
	.page-hero-sub { font-size: 18px; }

	.service-grid,
	.process-steps,
	.reasons,
	.why-section .container:not(.why-grid) > .reasons,
	.post-grid,
	.check-list,
	.field-row { grid-template-columns: 1fr; }
	.field-row { gap: 0; }

	.service-block-head h2 { font-size: 26px; }
	.vm-card { padding: 32px 24px; }
	.cta-band-title { font-size: 30px; }
	.contact-details { padding: 32px 24px; }
	.client-logos { grid-template-columns: repeat(2, 1fr); gap: 28px; }

	.footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 48px; }
	.footer-bottom-inner { flex-direction: column; align-items: flex-start; }

	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; text-align: left; }

	.cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- Service images ---------- */

.service-card { position: relative; padding: 0; }
.service-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy);
	box-shadow: var(--shadow);
}
.service-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .service-img { transform: scale(1.04); }
.service-card .service-num {
	position: relative;
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	margin: -28px auto 14px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 20px rgba(13, 9, 37, .15);
	color: var(--accent-ink);
	font-size: 22px;
}
.service-card .service-title { padding: 0 8px; }
.service-card p { padding: 0 8px; }

.service-block-aside { display: grid; gap: 28px; align-content: start; }
.service-block-media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--navy);
	box-shadow: var(--shadow);
}
.service-block-media .service-img { height: 100%; }

.post-card-media .service-img { height: 100%; }

@media (max-width: 960px) {
	.service-block-media { max-width: 560px; }
}
