/**
 * S38 Media – main stylesheet
 * Version 1.0 · Author: Rocky Singh
 *
 * 1. Tokens & base
 * 2. Layout helpers
 * 3. Header
 * 4. Buttons & block styles
 * 5. Sections (hero, about, stats, acquisitions, contact)
 * 6. Contact Form 7
 * 7. Footer
 * 8. Inner pages & posts
 * 9. Icons
 * 10. Responsive
 */

/* 1. Tokens & base ---------------------------------------------------- */
:root {
	--s38-ink: #0c1016;
	--s38-ink-2: #0e131a;
	--s38-ink-3: #0b0f15;
	--s38-ink-4: #080b10;
	--s38-paper: #f7f3ec;
	--s38-gold: #c4a15a;
	--s38-gold-deep: #a78642;
	--s38-text: #f6f1e8;
	--s38-muted: #c9c2b6;
	--s38-line: rgba(196, 161, 90, 0.35);
	--s38-line-soft: rgba(196, 161, 90, 0.22);
	--s38-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--s38-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--s38-wrap: 1180px;
	--s38-gutter: 24px;
}

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

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

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

body {
	margin: 0;
	background: var(--s38-ink);
	color: var(--s38-text);
	font-family: var(--s38-sans);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
p { margin: 0; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 500;
	color: inherit;
}

:focus-visible { outline: 2px solid var(--s38-gold); outline-offset: 3px; }

.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 12px;
	top: 12px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--s38-gold);
	color: #1a140c;
}

/* 2. Layout helpers --------------------------------------------------- */
.s38-container {
	width: min(var(--s38-wrap), calc(100% - 2 * var(--s38-gutter)));
	margin-inline: auto;
}

body .s38-section {
	position: relative;
	padding-inline: var(--s38-gutter);
	margin: 0;
}

body .s38-wrap {
	width: 100%;
	max-width: var(--s38-wrap);
	margin-inline: auto;
}

/* Section headings */
body .s38-section h2 {
	font-family: var(--s38-serif);
	font-weight: 500;
	font-size: clamp(36px, 4.2vw, 56px);
	line-height: 1;
	letter-spacing: 0;
}

body .s38-section p { font-size: 15px; }

/* Core columns used inside S38 sections */
body .s38-section .wp-block-columns {
	gap: 40px;
	margin: 0;
	flex-wrap: nowrap;
}

/* 3. Header ----------------------------------------------------------- */
.s38-header {
	position: relative;
	z-index: 50;
	padding: 22px 0;
	background: var(--s38-ink-4);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.s38-header-overlay .s38-header {
	position: absolute;
	inset: 0 0 auto 0;
	padding-bottom: 0;
	background: transparent;
	border-bottom: 0;
}

.s38-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.s38-header__panel {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.s38-header__nav { flex: 1; display: flex; justify-content: center; }
.s38-header__cta { display: flex; justify-content: flex-end; }

.s38-header .widget,
.s38-footer .widget { margin: 0; }

/* Wordmark */
.s38-brand {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	line-height: 0.85;
	color: var(--s38-text);
}

.s38-brand__mark {
	font-family: var(--s38-serif);
	font-size: 42px;
	letter-spacing: 0.08em;
	font-weight: 500;
}

.s38-brand__sub {
	margin-top: 6px;
	font-size: 9px;
	letter-spacing: 0.42em;
	padding-left: 0.42em;
	color: #efe8dc;
	font-weight: 400;
}

.s38-header .custom-logo,
.s38-header .wp-block-site-logo img { max-height: 56px; width: auto; }

/* Menus (Navigation Menu widget, or a Navigation block) */
.s38-header__nav ul,
.s38-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #d8d1c6;
	font-weight: 400;
}

.s38-header__nav ul ul,
.s38-footer__nav ul ul { display: none; }

.s38-header__nav a,
.s38-footer__nav a {
	display: inline-block;
	padding-bottom: 4px;
	transition: color 0.2s ease;
}

.s38-header__nav a:hover,
.s38-footer__nav a:hover,
.s38-header__nav a.is-active,
.s38-header__nav .current-menu-item > a:not([href*="#"]) { color: var(--s38-gold); }

.s38-header__nav a.is-active,
.s38-header__nav .current-menu-item > a:not([href*="#"]) { box-shadow: inset 0 -1px 0 var(--s38-gold); }

.s38-header .wp-block-navigation,
.s38-footer .wp-block-navigation {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	gap: 28px;
}

/* Mobile toggle */
.s38-nav-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--s38-line);
	color: var(--s38-gold);
	cursor: pointer;
}

.s38-nav-toggle__bars,
.s38-nav-toggle__bars::before,
.s38-nav-toggle__bars::after {
	position: absolute;
	left: 50%;
	width: 18px;
	height: 1px;
	margin-left: -9px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.s38-nav-toggle__bars { top: 50%; }
.s38-nav-toggle__bars::before,
.s38-nav-toggle__bars::after { content: ""; left: 0; margin-left: 0; }
.s38-nav-toggle__bars::before { top: -6px; }
.s38-nav-toggle__bars::after { top: 6px; }

.s38-header.is-open .s38-nav-toggle__bars { background: transparent; }
.s38-header.is-open .s38-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.s38-header.is-open .s38-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 4. Buttons & block styles ------------------------------------------- */
body .wp-block-buttons { gap: 12px; margin: 0; }

body .wp-block-button__link,
body .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 12px 18px;
	font-family: var(--s38-sans);
	font-size: 11px;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 500;
	border: 1px solid transparent;
	border-radius: 0;
	background: linear-gradient(180deg, #d7b56a, #b89245);
	color: #1a140c;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.2s ease;
}

body .wp-block-button__link:hover,
body .wpcf7-submit:hover { filter: brightness(1.07); color: #1a140c; }

body .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--s38-gold);
	color: var(--s38-gold);
	padding: 12px 18px;
}

body .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(196, 161, 90, 0.1);
	color: var(--s38-gold);
}

body .is-style-s38-kicker {
	color: var(--s38-gold);
	font-size: 11px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-weight: 400;
	margin-bottom: 18px;
}

body .s38-section p.is-style-s38-kicker { font-size: 11px; }

body .is-style-s38-lead {
	max-width: 42ch;
	color: #ddd6cb;
	margin-bottom: 28px;
}

body .is-style-s38-cats {
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin-bottom: 14px;
	font-weight: 400;
}

body .s38-section p.is-style-s38-cats { font-size: 12px; }

body hr.wp-block-separator.is-style-s38-rule {
	width: 54px;
	height: 2px;
	max-width: 54px;
	margin: 0 0 18px;
	border: 0;
	background: var(--s38-gold);
	opacity: 1;
}

body .is-style-s38-pull {
	font-family: var(--s38-serif);
	font-style: italic;
	line-height: 1.15;
	border-left: 1px solid var(--s38-gold);
	padding-left: 22px;
	color: #2a261f;
}

body .s38-section p.is-style-s38-pull { font-size: clamp(24px, 2.4vw, 30px); }

body .is-style-s38-tagline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	color: var(--s38-gold);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 400;
}

body .is-style-s38-tagline::before {
	content: "";
	flex: 0 0 36px;
	height: 1px;
	background: var(--s38-gold);
}

body .s38-section p.is-style-s38-tagline { font-size: 11px; }

body .is-style-s38-fine {
	margin-top: 10px;
	letter-spacing: 0.2em;
	color: #b7b0a4;
	text-transform: uppercase;
}

body .s38-section p.is-style-s38-fine { font-size: 10px; }

body .is-style-s38-motto {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
	color: var(--s38-gold);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 400;
}

body .is-style-s38-motto::before,
body .is-style-s38-motto::after {
	content: "";
	flex: 0 0 28px;
	height: 1px;
	background: var(--s38-gold);
}

body .is-style-s38-rail {
	position: absolute;
	right: 7%;
	bottom: 70px;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #efe8dc;
	border-left: 1px solid var(--s38-gold);
	padding-left: 14px;
	margin: 0;
	font-weight: 400;
}

body .s38-section p.is-style-s38-rail { font-size: 11px; }

/* 5. Sections --------------------------------------------------------- */

/* Hero */
body .s38-hero {
	min-height: 760px;
	padding-top: 150px;
	padding-bottom: 80px;
	display: flex;
	align-items: center;
	background-color: var(--s38-ink);
	background-image: var(--s38-hero-bg, none);
	background-size: cover;
	background-position: right center;
	background-repeat: no-repeat;
	isolation: isolate;
}

body .s38-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(8, 10, 14, 0.88) 0%, rgba(8, 10, 14, 0.55) 42%, rgba(8, 10, 14, 0.15) 100%);
	pointer-events: none;
}

body .s38-hero h1 {
	font-family: var(--s38-serif);
	font-weight: 500;
	font-size: clamp(42px, 5.4vw, 72px);
	line-height: 0.98;
	max-width: 11ch;
	margin-bottom: 22px;
}

/* About */
body .s38-about {
	background: var(--s38-paper);
	color: #1c1914;
	padding-block: 78px;
}

body .s38-about p { color: #3c372f; }
body .s38-about .is-style-s38-kicker { color: var(--s38-gold-deep); }
body .s38-about h2 { margin-top: 10px; }
body .s38-cols--about { align-items: flex-start; }

/* Stats strip */
body .s38-stats {
	padding-inline: 0;
	background: var(--s38-ink-2);
	border-top: 1px solid rgba(196, 161, 90, 0.25);
	border-bottom: 1px solid rgba(196, 161, 90, 0.25);
}

body .s38-stats__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

body .is-style-s38-stat {
	text-align: center;
	padding: 34px 12px;
	border-right: 1px solid rgba(196, 161, 90, 0.2);
	margin: 0;
}

body .is-style-s38-stat:last-child { border-right: 0; }

body .is-style-s38-stat::before {
	content: "";
	display: block;
	width: 28px;
	height: 28px;
	margin: 0 auto 10px;
	background: var(--s38-gold);
	-webkit-mask: var(--s38-icon) center / contain no-repeat;
	mask: var(--s38-icon) center / contain no-repeat;
}

body .is-style-s38-stat:not([class*="s38-icon-"])::before { display: none; }

body .s38-section p.s38-stat__value {
	font-size: 13px;
	letter-spacing: 0.12em;
	font-weight: 500;
	text-transform: uppercase;
	line-height: 1.4;
}

body .s38-section p.s38-stat__label {
	margin-top: 4px;
	font-size: 10px;
	letter-spacing: 0.16em;
	color: #b7b0a4;
	text-transform: uppercase;
	line-height: 1.5;
}

/* Acquisitions */
body .s38-acquire {
	padding-top: 88px;
	background-color: var(--s38-ink);
	background-image:
		linear-gradient(180deg, #0c1016 0%, rgba(12, 16, 22, 0.72) 42%, rgba(12, 16, 22, 0.35) 100%),
		var(--s38-acquire-bg, none);
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
}

body .s38-section .s38-cols--head {
	align-items: flex-end;
	margin-bottom: 36px;
}

body .s38-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	scroll-margin-top: 40px;
}

body .is-style-s38-card {
	display: flex;
	flex-direction: column;
	margin: 0;
	background: rgba(14, 18, 26, 0.78);
	border: 1px solid rgba(196, 161, 90, 0.28);
	padding: 26px 22px 22px;
	min-height: 210px;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

body .is-style-s38-card h3 {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	font-family: var(--s38-sans);
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: 0.16em;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--s38-text);
}

body .is-style-s38-card[class*="s38-icon-"] h3::before {
	content: "";
	flex: 0 0 28px;
	height: 28px;
	background: var(--s38-gold);
	-webkit-mask: var(--s38-icon) center / contain no-repeat;
	mask: var(--s38-icon) center / contain no-repeat;
}

body .is-style-s38-card p { color: #d5cec3; }
body .s38-section .is-style-s38-card p { font-size: 14px; }

body .s38-arrow {
	margin-top: auto;
	padding-top: 22px;
	color: var(--s38-gold);
}

body .s38-cols--partner {
	align-items: flex-end;
	padding: 72px 0 80px;
}

body .s38-cols--partner p:not([class*="is-style"]) {
	max-width: 52ch;
	color: #e6dfd4;
}

/* Contact */
body .s38-talk {
	background: var(--s38-ink-3);
	padding-block: 64px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body .s38-cols--talk { align-items: center; }

body .s38-talk h2 {
	font-size: clamp(32px, 3.6vw, 46px);
	line-height: 1.05;
	margin: 8px 0 12px;
}

body .s38-talk .is-style-s38-kicker { margin-bottom: 0; }

body .s38-talk__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}

body .s38-talk__aside .wp-block-buttons { justify-content: flex-end; }

.s38-notice {
	margin-top: 22px;
	padding: 12px 14px;
	border: 1px dashed var(--s38-gold);
	color: var(--s38-gold);
	font-size: 13px;
}

/* 6. Contact Form 7 --------------------------------------------------- */
.wpcf7 { max-width: 640px; }

.wpcf7 form {
	display: grid;
	gap: 12px;
	margin-top: 22px;
	scroll-margin-top: 80px;
}

.wpcf7 .hidden-fields-container { display: none; }

.s38-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.wpcf7-form-control-wrap { display: block; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	background: transparent;
	border: 1px solid var(--s38-line);
	border-radius: 0;
	color: var(--s38-text);
	padding: 12px;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
	transition: border-color 0.2s ease;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--s38-gold);
}

.wpcf7 select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23c4a15a' stroke-width='1.3'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
}

.wpcf7 select option { background: var(--s38-ink); color: var(--s38-text); }

.wpcf7 textarea { min-height: 110px; height: 110px; resize: vertical; }

.wpcf7 ::placeholder { color: #8d877c; opacity: 1; }

.s38-form-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.wpcf7 .wpcf7-spinner { margin: 0; background-color: var(--s38-gold); }

.wpcf7 .wpcf7-not-valid { border-color: #d9927a; }

.wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 12px;
	color: #e3a58f;
}

.wpcf7 form .wpcf7-response-output {
	margin: 4px 0 0;
	padding: 12px 14px;
	border: 1px solid var(--s38-line);
	font-size: 13px;
	color: var(--s38-text);
}

.wpcf7 form.sent .wpcf7-response-output { border-color: var(--s38-gold); color: var(--s38-gold); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: #d9927a; color: #e3a58f; }

/* 7. Footer ----------------------------------------------------------- */
.s38-footer {
	background: var(--s38-ink-4);
	padding: 28px 0 34px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.s38-footer__grid {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 24px;
	align-items: center;
}

.s38-footer__nav ul { justify-content: center; }
.s38-footer__extra { color: var(--s38-muted); font-size: 13px; }
.s38-footer__extra .widget-title {
	font-family: var(--s38-sans);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--s38-gold);
	margin-bottom: 8px;
}

.s38-footer__bottom { grid-column: 1 / -1; }

.s38-copy,
.s38-footer .s38-copy {
	font-size: 11px;
	color: #8f887d;
	margin-top: 8px;
}

/* 8. Inner pages & posts ---------------------------------------------- */
.s38-main { display: block; }

.s38-page__header { padding: 72px 0 28px; }

.s38-page__title {
	font-family: var(--s38-serif);
	font-size: clamp(38px, 4.6vw, 60px);
	line-height: 1;
	font-weight: 500;
}

/* Regular blocks on inner pages sit in the content width; S38 sections and full-width blocks span the screen. */
.s38-entry:not(.s38-entry--full) > *:not(.s38-section):not(.alignfull) {
	width: min(var(--s38-wrap), calc(100% - 2 * var(--s38-gutter)));
	margin-inline: auto;
}

.s38-entry:not(.s38-entry--full) > *:not(.s38-section) + * { margin-top: 1.2em; }
.s38-entry:not(.s38-entry--full) > .s38-section + * ,
.s38-entry:not(.s38-entry--full) > * + .s38-section { margin-top: 48px; }
.s38-entry:not(.s38-entry--full) > *:last-child:not(.s38-section) { margin-bottom: 80px; }

.s38-entry--flush > * { width: 100% !important; }

.s38-entry h2 { font-family: var(--s38-serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.s38-entry h3 { font-family: var(--s38-serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.s38-entry a:not(.wp-block-button__link):not(.s38-brand) { color: var(--s38-gold); text-decoration: underline; text-underline-offset: 3px; }
.s38-entry ul,
.s38-entry ol { padding-left: 1.3em; }

.s38-entry--full > * { margin-top: 0; margin-bottom: 0; }

.s38-archive { padding-bottom: 80px; }
.s38-post { padding: 28px 0; border-bottom: 1px solid rgba(196, 161, 90, 0.18); }
.s38-post__title { font-family: var(--s38-serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.s38-post__title a:hover { color: var(--s38-gold); }
.s38-post__meta { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #8f887d; margin: 8px 0 12px; }
.s38-post__excerpt { color: #ddd6cb; max-width: 70ch; }
.s38-404 { padding-top: 72px; }
.s38-404 .s38-page__title { max-width: 18ch; margin-bottom: 28px; }

.nav-links { display: flex; gap: 14px; padding-top: 28px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links .current { color: var(--s38-gold); }

/* 9. Icons (add one of these classes to a Stat or Asset card group) ---- */
.s38-icon-people { --s38-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='9' r='2.2'/%3E%3Cpath d='M4.5 18c.6-2.2 2.3-3.4 4.5-3.4s3.9 1.2 4.5 3.4M12.5 18c.4-1.8 1.8-2.8 3.5-2.8 1.6 0 2.9.9 3.4 2.6'/%3E%3Ccircle cx='16' cy='9' r='2.2'/%3E%3C/svg%3E"); }
.s38-icon-globe { --s38-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M4 12h16M12 4c2.2 2.4 3.2 5.1 3.2 8s-1 5.6-3.2 8c-2.2-2.4-3.2-5.1-3.2-8s1-5.6 3.2-8z'/%3E%3C/svg%3E"); }
.s38-icon-chart { --s38-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 16h14M7 16V10M12 16V7M17 16v-5'/%3E%3C/svg%3E"); }
.s38-icon-bars { --s38-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 18V10M10 18V6M15 18v-7M20 18V8'/%3E%3C/svg%3E"); }
.s38-icon-check { --s38-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 13l2 2 4-5'/%3E%3Cpath d='M4 12a8 8 0 1 0 16 0 8 8 0 0 0-16 0z'/%3E%3C/svg%3E"); }
.s38-icon-monitor { --s38-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='11' rx='1'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
.s38-icon-shield { --s38-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.2-2.8 7.2-7 9-4.2-1.8-7-4.8-7-9V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.s38-icon-mail { --s38-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='6' width='16' height='12' rx='1'/%3E%3Cpath d='M4.5 7l7.5 6 7.5-6'/%3E%3C/svg%3E"); }

/* 10. Responsive ------------------------------------------------------ */
@media (max-width: 1100px) {
	.s38-header__nav ul { gap: 10px 20px; }
}

@media (max-width: 980px) {

	/* Header: collapse menu + button into a drop-down panel */
	.s38-header { padding: 16px 0; }
	.s38-header-overlay .s38-header { padding-bottom: 16px; }
	.s38-brand__mark { font-size: 36px; }
	.s38-nav-toggle { display: inline-block; }

	.s38-header__panel {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 24px var(--s38-gutter) 28px;
		background: var(--s38-ink-4);
		border-top: 1px solid var(--s38-line-soft);
		border-bottom: 1px solid var(--s38-line-soft);
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}

	.s38-header.is-open .s38-header__panel { display: flex; }
	.s38-header.is-open { background: var(--s38-ink-4); }

	.s38-header__nav { justify-content: flex-start; flex: 0 0 auto; width: 100%; }
	.s38-header__nav > .widget { width: 100%; }

	.s38-header__nav ul {
		flex-direction: column;
		gap: 0;
		font-size: 13px;
		width: 100%;
	}

	.s38-header__nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
	.s38-header__nav a { display: block; padding: 14px 0; }
	.s38-header__nav a.is-active { box-shadow: none; }
	.s38-header__cta { justify-content: flex-start; }

	/* Sections */
	body .s38-section .wp-block-columns { flex-wrap: wrap !important; gap: 24px; }
	body .s38-section .wp-block-column { flex-basis: 100% !important; }

	body .s38-hero {
		min-height: 640px;
		padding-top: 130px;
		padding-bottom: 64px;
		background-position: 70% center;
	}

	body .s38-hero::before {
		background: linear-gradient(90deg, rgba(8, 10, 14, 0.9) 0%, rgba(8, 10, 14, 0.7) 60%, rgba(8, 10, 14, 0.45) 100%);
	}

	body .is-style-s38-rail { display: none; }

	body .s38-about { padding-block: 60px; }

	body .is-style-s38-pull {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid var(--s38-gold);
		padding-top: 16px;
	}

	body .s38-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	body .is-style-s38-stat {
		border-right: 0;
		border-bottom: 1px solid rgba(196, 161, 90, 0.2);
		padding: 28px 12px;
	}

	body .is-style-s38-stat:nth-child(odd) { border-right: 1px solid rgba(196, 161, 90, 0.2); }
	body .is-style-s38-stat:last-child { border-bottom: 0; }
	body .is-style-s38-stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }

	body .s38-acquire { padding-top: 64px; }
	body .s38-cols--partner { padding: 56px 0 64px; }

	body .s38-talk__aside { align-items: flex-start; text-align: left; }
	body .s38-talk__aside .wp-block-buttons { justify-content: flex-start; }
	/* The form sits right above on small screens, so the jump button is redundant there. */
	body .s38-talk__aside .wp-block-buttons:has(a[href="#s38-deal"]) { display: none; }

	.s38-footer__grid {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.s38-footer__extra:empty { display: none; }
}

@media (max-width: 820px) {
	body .s38-cards { grid-template-columns: 1fr; }
	body .is-style-s38-card { min-height: 0; }
}

@media (max-width: 560px) {
	body .s38-hero { min-height: 600px; padding-top: 120px; }
	body .s38-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	body .s38-hero .wp-block-button,
	body .s38-hero .wp-block-button__link { width: 100%; }

	body .s38-stats__grid { grid-template-columns: 1fr; }
	body .is-style-s38-stat,
	body .is-style-s38-stat:nth-child(odd) { border-right: 0; }

	.s38-form-row { grid-template-columns: 1fr; }
	.s38-form-actions .wpcf7-submit { width: 100%; }

	.s38-footer__nav ul { gap: 10px 18px; justify-content: center; }
	body .is-style-s38-motto::before,
	body .is-style-s38-motto::after { flex-basis: 16px; }
}
