/* ==========================================================================
   Sectional — base theme styles
   Colours, fonts, radius and widths come from Theme Options → Brand
   as CSS variables (--brand-*), so this file never needs editing per client.
   ========================================================================== */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--brand-font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--brand-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body.has-sticky-header { scroll-padding-top: 96px; }

img, video, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand-accent-1); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--brand-font-heading);
	font-weight: 700;
	line-height: 1.2;
	color: var(--brand-ink);
	margin: 0 0 .5em;
	letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	background: #fff; padding: 10px 16px; border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

/* ---------- Layout helpers (usable inside your sections too) ---------- */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}
.container-narrow { max-width: 820px; }
.site-main { display: block; min-height: 40vh; }
.page-sections > .page-section { display: block; }

/* Full-bleed helper: breaks any element out to the full window width. */
.full-bleed {
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--brand-font-heading);
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	padding: 14px 24px;
	border-radius: var(--brand-radius);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--brand-primary); color: #fff !important; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--brand-primary); }
.btn-outline { border-color: var(--brand-line); color: var(--brand-ink) !important; background: transparent; }
.btn-outline:hover { border-color: var(--brand-primary); }

/* ---------- Header ---------- */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--brand-line);
	position: relative;
	z-index: 100;
}
.has-sticky-header .site-header { position: sticky; top: 0; }
.admin-bar.has-sticky-header .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0,0,0,.18); }

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}
.site-logo { display: inline-flex; align-items: center; text-decoration: none !important; flex-shrink: 0; }
.site-logo-img { height: var(--logo-height); width: auto; }
.site-logo-text { font-family: var(--brand-font-heading); font-weight: 800; font-size: 22px; color: var(--brand-ink); }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav .menu li { position: relative; }
.primary-nav .menu a {
	display: block;
	padding: 10px 14px;
	font-family: var(--brand-font-heading);
	font-weight: 600;
	font-size: 15px;
	color: var(--brand-ink);
	border-radius: 8px;
	text-decoration: none;
}
.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current-menu-ancestor > a,
.primary-nav .menu .current_page_parent > a { color: var(--brand-primary); background: var(--brand-surface); }

/* Dropdowns */
.primary-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-left: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	opacity: .6;
}
.primary-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: #fff;
	border: 1px solid var(--brand-line);
	border-radius: var(--brand-radius);
	box-shadow: 0 18px 40px -18px rgba(0,0,0,.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.primary-nav .sub-menu .sub-menu { top: -8px; left: 100%; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { font-weight: 500; font-size: 14.5px; }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.nav-toggle-bars span { display: block; height: 2px; background: var(--brand-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.submenu-toggle { display: none; }

@media (max-width: 960px) {
	.admin-bar.has-sticky-header .site-header { top: 46px; }
	.nav-toggle { display: block; }
	.primary-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		background: #fff;
		border-bottom: 1px solid var(--brand-line);
		box-shadow: 0 18px 30px -20px rgba(0,0,0,.25);
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px 24px 24px;
		max-height: calc(100vh - 76px);
		overflow-y: auto;
	}
	.nav-open .primary-nav { display: flex; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; }
	.primary-nav .menu li { display: flex; flex-wrap: wrap; align-items: center; }
	.primary-nav .menu li > a { flex: 1; }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.primary-nav .sub-menu,
	.primary-nav .sub-menu .sub-menu {
		position: static;
		flex-basis: 100%;
		display: none;
		opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0;
		padding: 0 0 0 14px;
		min-width: 0;
	}
	.primary-nav li.submenu-open > .sub-menu { display: block; }
	.submenu-toggle {
		display: inline-flex;
		align-items: center; justify-content: center;
		width: 40px; height: 40px;
		background: none; border: 0; cursor: pointer;
		color: var(--brand-ink);
	}
	.submenu-toggle::before {
		content: "";
		width: 8px; height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform .2s ease;
	}
	.submenu-open > .submenu-toggle::before { transform: rotate(-135deg); }
	.header-cta { align-self: flex-start; }
}

/* ---------- Title bar ---------- */
.title-bar {
	background: var(--brand-surface);
	border-bottom: 1px solid var(--brand-line);
	padding: 56px 0 48px;
}
.title-bar-kicker {
	display: block;
	font-family: var(--brand-font-heading);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brand-primary);
	margin-bottom: 10px;
}
.title-bar-heading {
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 800;
	margin: 0;
	position: relative;
	padding-bottom: 16px;
}
.title-bar-heading::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 64px; height: 4px;
	border-radius: 2px;
	background: var(--brand-accent-1);
}
.title-bar-sub {
	margin: 16px 0 0;
	max-width: 640px;
	color: var(--brand-ink-soft);
	font-size: 17px;
}
.title-bar-sub p { margin: 0; }

/* ---------- Entry content (news articles, fallback page content) ---------- */
.entry-content { padding-top: 40px; padding-bottom: 64px; font-size: 17px; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--brand-accent-1);
	font-size: 19px;
	color: var(--brand-ink);
}
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-element-caption { font-size: 13.5px; color: var(--brand-ink-soft); margin-top: 8px; }
.entry-content img { border-radius: var(--brand-radius); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--brand-line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--brand-surface); }
.entry-content .alignwide { margin-left: -80px; margin-right: -80px; max-width: none; }
.entry-content .alignfull { width: 100vw; position: relative; left: 50%; margin-left: -50vw; max-width: none; }
.entry-content .alignfull img, .entry-content .alignwide img { border-radius: 0; width: 100%; }
.editor-hint { padding: 16px; border: 1px dashed var(--brand-line); border-radius: var(--brand-radius); color: var(--brand-ink-soft); }
@media (max-width: 960px) { .entry-content .alignwide { margin-left: 0; margin-right: 0; } }

/* ---------- News listing ---------- */
.news-listing { padding-top: 40px; padding-bottom: 72px; }
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.news-filter a {
	font-family: var(--brand-font-heading);
	font-weight: 600;
	font-size: 14px;
	padding: 8px 16px;
	border-radius: 100px;
	border: 1px solid var(--brand-line);
	color: var(--brand-ink);
	text-decoration: none;
}
.news-filter a:hover, .news-filter a.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--brand-line);
	border-radius: calc(var(--brand-radius) + 4px);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(0,0,0,.3); }
.news-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-surface); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-image img { transform: scale(1.04); }
.news-card-placeholder {
	display: block; width: 100%; height: 100%;
	background:
		radial-gradient(circle at 1px 1px, rgba(0,0,0,.07) 1px, transparent 0) 0 0 / 16px 16px,
		var(--brand-surface);
}
.news-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--brand-ink-soft); margin-bottom: 10px; }
.news-meta-sep { opacity: .5; }
.news-cat { font-weight: 600; color: var(--brand-primary); }
.news-card-title { font-size: 19px; line-height: 1.3; margin: 0 0 10px; }
.news-card-title a { color: var(--brand-ink); text-decoration: none; }
.news-card-title a:hover { color: var(--brand-primary); }
.news-card-excerpt { font-size: 14.5px; color: var(--brand-ink-soft); margin-bottom: 18px; }
.news-card-link { margin-top: auto; font-family: var(--brand-font-heading); font-weight: 700; font-size: 14px; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 14px;
	border: 1px solid var(--brand-line);
	border-radius: 10px;
	font-weight: 600; font-size: 14px;
	color: var(--brand-ink);
	text-decoration: none;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.no-results { color: var(--brand-ink-soft); }

@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Single article ---------- */
.title-bar-article .title-bar-heading { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; }
.title-bar-article .news-meta { margin: 0; }
.back-link { display: inline-block; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.article-hero { margin: 40px 0 0; }
.article-hero img { width: 100%; border-radius: calc(var(--brand-radius) + 4px); }
.article-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.article-sidebar { padding-top: 40px; }
.article-sidebar .footer-widget { margin-bottom: 32px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.article-tags a { font-size: 13px; padding: 5px 12px; border-radius: 100px; background: var(--brand-surface); color: var(--brand-ink-soft); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--brand-line); padding: 28px 0 64px; }
.article-nav a { display: block; font-family: var(--brand-font-heading); font-weight: 700; color: var(--brand-ink); text-decoration: none; }
.article-nav a span { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink-soft); margin-bottom: 4px; font-weight: 600; }
.article-nav a:hover { color: var(--brand-primary); }
.article-nav-next { text-align: right; }
.related-news { background: var(--brand-surface); padding: 64px 0 72px; }
.related-title { font-size: 26px; margin-bottom: 28px; }
@media (max-width: 960px) { .article-layout.has-sidebar { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Comments ---------- */
.comments { padding-bottom: 64px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--brand-line); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; }

/* ---------- Forms (contact form, search, comments) ---------- */
.contact-form-wrap { max-width: 720px; }
.contact-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.contact-form .form-field { margin: 0 0 18px; }
.contact-form label,
.comment-form label { display: block; font-family: var(--brand-font-heading); font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--brand-ink); }
.contact-form .req { color: var(--brand-accent-1); }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form textarea,
.search-field,
.comment-form input:not([type=submit]):not([type=checkbox]),
.comment-form textarea {
	width: 100%;
	font: inherit;
	font-size: 15px;
	color: var(--brand-ink);
	background: #fff;
	border: 1.5px solid var(--brand-line);
	border-radius: var(--brand-radius);
	padding: 12px 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.search-field:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .form-consent label { display: flex; gap: 10px; align-items: flex-start; font-family: var(--brand-font-body); font-weight: 400; font-size: 14px; color: var(--brand-ink-soft); }
.contact-form .form-consent input { margin-top: 4px; flex-shrink: 0; }
.form-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.form-notice { padding: 16px 18px; border-radius: var(--brand-radius); margin-bottom: 20px; font-size: 15px; }
.form-notice ul { margin: 0; padding-left: 1.2em; }
.form-notice-success { background: color-mix(in srgb, var(--brand-accent-2) 14%, #fff); border: 1px solid color-mix(in srgb, var(--brand-accent-2) 45%, #fff); }
.form-notice-error { background: #FDF0EF; border: 1px solid #F2C4C0; color: #8A2A22; }
.comment-form .submit { background: var(--brand-primary); color: #fff; border: 0; border-radius: var(--brand-radius); padding: 14px 24px; font-family: var(--brand-font-heading); font-weight: 700; cursor: pointer; }
@media (max-width: 640px) { .contact-form .form-row-2 { grid-template-columns: 1fr; } }

.search-form { display: flex; gap: 10px; margin: 0 0 32px; }
.search-form .search-field { flex: 1; }

/* ---------- Search results ---------- */
.search-results { padding-top: 40px; padding-bottom: 72px; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-item { padding: 22px 0; border-bottom: 1px solid var(--brand-line); }
.search-item h2 { font-size: 20px; margin: 4px 0 6px; }
.search-item p { margin: 0; color: var(--brand-ink-soft); font-size: 15px; }
.search-type { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-primary); }

/* ---------- 404 ---------- */
.not-found { padding: 96px 0; text-align: center; }
.not-found-code { font-family: var(--brand-font-heading); font-weight: 800; font-size: 96px; line-height: 1; color: var(--brand-surface); -webkit-text-stroke: 2px var(--brand-line); margin-bottom: 12px; }
.not-found h1 { font-size: 34px; }
.not-found p { color: var(--brand-ink-soft); }
.not-found .search-form { max-width: 460px; margin: 28px auto; }

/* ---------- Logo strip ---------- */
.logo-strip { padding: 44px 0; border-top: 1px solid var(--brand-line); }
.logo-strip-heading { text-align: center; font-family: var(--brand-font-heading); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink-soft); margin-bottom: 24px; }
.logo-strip-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 56px; }
.logo-strip-item img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .2s ease, opacity .2s ease; }
.logo-strip-item img:hover { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: 15px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.site-footer .site-logo-text { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer-tagline { margin: 18px 0; max-width: 340px; }
.footer-contact, .social-links { list-style: none; margin: 0 0 18px; padding: 0; }
.footer-contact li { margin-bottom: 6px; }
.footer-address { line-height: 1.55; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 100px; font-size: 13px; text-decoration: none; }
.social-links a:hover { border-color: #fff; }
.footer-widget { margin-bottom: 28px; }
.footer-widget-title,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .02em; margin-bottom: 14px; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget li { margin-bottom: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: 13.5px; }
.footer-bottom .copyright { margin: 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Block editor basics (news articles) ---------- */
.wp-block-button__link { background: var(--brand-primary); border-radius: var(--brand-radius); font-family: var(--brand-font-heading); font-weight: 700; }
.wp-block-separator { border: 0; border-top: 1px solid var(--brand-line); margin: 2em 0; }
.wp-block-quote cite { font-size: 14px; color: var(--brand-ink-soft); font-style: normal; }
.wp-block-embed { margin: 1.6em 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Search block (widgets) */
.wp-block-search__label { font-family: var(--brand-font-heading); font-weight: 700; font-size: 15px; margin-bottom: 8px; display: block; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__input { flex: 1; font: inherit; font-size: 15px; border: 1.5px solid var(--brand-line); border-radius: var(--brand-radius); padding: 10px 12px; }
.wp-block-search__button { background: var(--brand-primary); color: #fff; border: 0; border-radius: var(--brand-radius); padding: 10px 16px; font-family: var(--brand-font-heading); font-weight: 700; cursor: pointer; }

/* ==========================================================================
   COMPANY SITE COMPONENTS
   Ready-made section styles used by the starter pages. Use these class
   names in any page section; colours follow Theme Options → Brand.
   ========================================================================== */

/* ---------- Extra buttons ---------- */
.btn-light { background: #fff; color: var(--brand-dark) !important; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff !important; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { font-size: 16px; padding: 17px 30px; }

/* ---------- Section shells ---------- */
.s-section { padding: 88px 0; }
.s-section-tight { padding: 56px 0; }
.s-alt { background: var(--brand-surface); }
.s-dark { background: var(--brand-dark); color: rgba(255,255,255,.78); }
.s-dark h1, .s-dark h2, .s-dark h3, .s-dark h4 { color: #fff; }

.s-eyebrow {
	display: inline-block;
	font-family: var(--brand-font-heading);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--brand-primary);
	margin-bottom: 14px;
}
.s-dark .s-eyebrow { color: var(--brand-accent-2); }
.s-head { max-width: 680px; margin: 0 0 48px; }
.s-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.s-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.s-head p { font-size: 17px; color: var(--brand-ink-soft); margin: 0; }
.s-dark .s-head p { color: rgba(255,255,255,.72); }
.s-accent { color: var(--brand-accent-1); }

/* ---------- Hero ---------- */
.s-hero { position: relative; padding: 96px 0 104px; overflow: hidden; background: linear-gradient(180deg, var(--brand-surface), #fff); }
.s-hero::before {
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(color-mix(in srgb, var(--brand-primary) 14%, transparent) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, #000, transparent 85%);
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
	pointer-events: none;
}
.s-hero-grid { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.s-hero-text { flex: 1 1 480px; }
.s-hero-visual { flex: 1 1 380px; }
.s-hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; line-height: 1.06; letter-spacing: -0.025em; margin-bottom: 22px; }
.s-lede { font-size: 19px; line-height: 1.6; color: var(--brand-ink-soft); max-width: 560px; margin-bottom: 32px; }
.s-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.s-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 14px; color: var(--brand-ink-soft); }
.s-trust span::before { content: "✓"; color: var(--brand-accent-2); font-weight: 700; margin-right: 7px; }

/* Placeholder image block: swap for <img src="…"> when you have photography. */
.s-image {
	position: relative;
	border-radius: calc(var(--brand-radius) + 8px);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background:
		radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 0) 0 0 / 18px 18px,
		linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
	box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
	display: flex; align-items: flex-end;
}
.s-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-image-label { position: relative; margin: 18px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.75); background: rgba(0,0,0,.18); padding: 6px 12px; border-radius: 100px; }
.s-image-badge {
	position: absolute; top: 22px; right: 22px;
	background: #fff; border-radius: var(--brand-radius);
	padding: 14px 18px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.4);
	font-size: 13px; color: var(--brand-ink-soft); line-height: 1.35;
}
.s-image-badge strong { display: block; font-family: var(--brand-font-heading); font-size: 24px; color: var(--brand-ink); }

/* ---------- Service cards (Services overview + [services_grid]) ---------- */
.services-overview { padding: 56px 0 88px; }
.service-grid { display: grid; gap: 24px; }
.service-grid-2 { grid-template-columns: repeat(2, 1fr); }
.service-grid-3 { grid-template-columns: repeat(3, 1fr); }
.service-grid-4 { grid-template-columns: repeat(4, 1fr); }
.service-card {
	position: relative;
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--brand-line);
	border-radius: calc(var(--brand-radius) + 6px);
	padding: 30px 28px 28px;
	color: var(--brand-ink);
	text-decoration: none !important;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--brand-primary); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(0,0,0,.35); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: var(--brand-radius);
	background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
	color: var(--brand-primary);
	font-family: var(--brand-font-heading); font-weight: 800; font-size: 17px;
	margin-bottom: 22px;
}
.service-card-image { display: block; margin: -30px -28px 22px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-surface); }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; }
.service-card-title { display: block; font-family: var(--brand-font-heading); font-weight: 700; font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
.service-card-text { display: block; font-size: 15px; color: var(--brand-ink-soft); line-height: 1.6; margin-bottom: 22px; }
.service-card-link { margin-top: auto; font-family: var(--brand-font-heading); font-weight: 700; font-size: 14.5px; color: var(--brand-primary); }
.service-card-link span { display: inline-block; transition: transform .2s ease; }
.service-card:hover .service-card-link span { transform: translateX(4px); }
.related-services { padding: 72px 0 88px; background: #fff; border-top: 1px solid var(--brand-line); }
@media (max-width: 960px) { .service-grid-3, .service-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr !important; } }

/* ---------- Feature / benefit cards ---------- */
.s-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.s-grid > * { flex: 1 1 260px; }
.s-grid-2 > * { flex-basis: 420px; }
.s-feature { background: #fff; border: 1px solid var(--brand-line); border-radius: calc(var(--brand-radius) + 4px); padding: 28px 26px; }
.s-alt .s-feature { border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.s-feature h3 { font-size: 19px; margin: 0 0 10px; }
.s-feature p { font-size: 15px; color: var(--brand-ink-soft); margin: 0; }
.s-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: var(--brand-radius);
	background: color-mix(in srgb, var(--brand-accent-2) 16%, #fff);
	color: color-mix(in srgb, var(--brand-accent-2) 70%, #000);
	font-family: var(--brand-font-heading); font-weight: 800; font-size: 18px;
	margin-bottom: 18px;
}
.s-icon-accent { background: color-mix(in srgb, var(--brand-accent-1) 16%, #fff); color: color-mix(in srgb, var(--brand-accent-1) 75%, #000); }
.s-icon-primary { background: color-mix(in srgb, var(--brand-primary) 12%, #fff); color: var(--brand-primary); }

/* ---------- Split: text beside an image ---------- */
.s-split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.s-split > * { flex: 1 1 400px; }
.s-split-reverse { flex-direction: row-reverse; }
.s-split h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; margin-bottom: 18px; }
.s-split p { font-size: 16.5px; color: var(--brand-ink-soft); }
.s-checklist { list-style: none; margin: 24px 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.s-checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--brand-ink); }
.s-checklist li::before {
	content: "✓"; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
	background: var(--brand-primary); color: #fff; font-size: 12px; font-weight: 700;
}

/* ---------- Process steps ---------- */
.s-steps { display: flex; flex-wrap: wrap; gap: 24px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.s-step { flex: 1 1 220px; position: relative; padding-top: 22px; border-top: 2px solid var(--brand-line); counter-increment: step; }
.s-step::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	font-family: var(--brand-font-heading); font-weight: 800; font-size: 34px; line-height: 1;
	color: var(--brand-accent-1); margin-bottom: 14px;
}
.s-step::after { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--brand-accent-1); }
.s-step h3 { font-size: 18px; margin: 0 0 8px; }
.s-step p { font-size: 15px; color: var(--brand-ink-soft); margin: 0; }
.s-dark .s-step { border-top-color: rgba(255,255,255,.15); }
.s-dark .s-step p { color: rgba(255,255,255,.7); }

/* ---------- Stats ---------- */
.s-stats { display: flex; flex-wrap: wrap; gap: 24px; }
.s-stat { flex: 1 1 180px; padding: 6px 0 6px 22px; border-left: 3px solid var(--brand-accent-1); }
.s-stat strong { display: block; font-family: var(--brand-font-heading); font-size: clamp(34px, 4vw, 46px); font-weight: 800; line-height: 1.05; color: var(--brand-ink); letter-spacing: -0.02em; }
.s-stat span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--brand-ink-soft); }
.s-dark .s-stat strong { color: #fff; }
.s-dark .s-stat span { color: rgba(255,255,255,.7); }

/* ---------- Testimonials ---------- */
.s-quote { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--brand-line); border-radius: calc(var(--brand-radius) + 4px); padding: 30px 28px; margin: 0; }
.s-quote::before { content: "“"; font-family: Georgia, serif; font-size: 64px; line-height: .6; color: var(--brand-accent-1); margin-bottom: 14px; }
.s-quote blockquote { margin: 0 0 24px; font-size: 16.5px; line-height: 1.65; color: var(--brand-ink); }
.s-quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--brand-ink-soft); }
.s-quote figcaption strong { display: block; color: var(--brand-ink); font-size: 15px; }
.s-avatar { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-surface); color: var(--brand-primary); display: inline-flex; align-items: center; justify-content: center; font-family: var(--brand-font-heading); font-weight: 700; }

/* ---------- FAQ ---------- */
.s-faq { max-width: 820px; margin: 0 auto; }
.s-faq details { border-bottom: 1px solid var(--brand-line); }
.s-faq summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
	padding: 22px 0;
	font-family: var(--brand-font-heading); font-weight: 700; font-size: 17.5px; color: var(--brand-ink);
}
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-surface); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 400; color: var(--brand-primary); transition: transform .2s ease; }
.s-faq details[open] summary::after { transform: rotate(45deg); }
.s-faq details p { margin: 0 0 22px; padding-right: 50px; color: var(--brand-ink-soft); font-size: 16px; }

/* ---------- Contact page layout ---------- */
.s-contact { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.s-contact-info { flex: 1 1 300px; }
.s-contact-form { flex: 2 1 460px; background: #fff; border: 1px solid var(--brand-line); border-radius: calc(var(--brand-radius) + 6px); padding: 36px; box-shadow: 0 24px 50px -36px rgba(0,0,0,.35); }
.s-contact-form .contact-form-wrap { max-width: none; }
.s-contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.s-contact-list li { display: flex; gap: 14px; }
.s-contact-list .s-icon { margin: 0; width: 42px; height: 42px; font-size: 15px; flex-shrink: 0; }
.s-contact-list strong { display: block; font-family: var(--brand-font-heading); color: var(--brand-ink); }
.s-contact-list span { color: var(--brand-ink-soft); font-size: 15px; }
@media (max-width: 640px) { .s-contact-form { padding: 24px 20px; } }

/* ---------- Legal / long text ---------- */
.s-prose { max-width: 760px; }
.s-prose h2 { font-size: 24px; margin-top: 40px; }
.s-prose p, .s-prose li { color: var(--brand-ink-soft); font-size: 16.5px; }

/* ---------- Call-to-action band (above the footer) ---------- */
.cta-band { padding: 0 0 88px; }
.s-section + .cta-band, .page-sections + .cta-band { padding-top: 0; }
/* When the last section has a tinted or dark background, give the band breathing room. */
.page-sections:has(> .page-section:last-child :is(.s-alt, .s-dark)) + .cta-band,
.page-sections:has(> .page-section:last-child > :is(.s-alt, .s-dark)) + .cta-band { padding-top: 88px; }
.cta-band-panel {
	position: relative;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
	padding: 56px 56px;
	border-radius: calc(var(--brand-radius) + 12px);
	background:
		radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0) 0 0 / 20px 20px,
		radial-gradient(600px circle at 100% 0%, color-mix(in srgb, var(--brand-accent-2) 35%, transparent), transparent 60%),
		var(--brand-primary);
	overflow: hidden;
}
.cta-band-text { flex: 1 1 420px; }
.cta-band-heading { color: #fff !important; font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin: 0 0 10px; }
.cta-band-sub { color: rgba(255,255,255,.8) !important; font-size: 17px; margin: 0; max-width: 560px; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .cta-band-panel { padding: 40px 28px; } }

/* ---------- Footer link columns ---------- */
.footer-col-title { color: #fff; font-size: 15px; letter-spacing: .02em; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-hint a { font-size: 13px; color: rgba(255,255,255,.5); text-decoration: underline; }

/* Tighter spacing on phones */
@media (max-width: 640px) {
	.s-section { padding: 60px 0; }
	.s-hero { padding: 56px 0 64px; }
	.s-hero-grid, .s-split, .s-contact { gap: 36px; }
	.s-head { margin-bottom: 32px; }
	.cta-band { padding-bottom: 60px; }
	.page-sections:has(> .page-section:last-child :is(.s-alt, .s-dark)) + .cta-band { padding-top: 60px; }
}
