/*
Theme Name: ITRS Consulting
Theme URI: https://www.itrsconsulting.com
Author: ITRS Consulting
Description: House of Hermes — a classical black-and-gold identity inspired by the winged messenger god.
Version: 3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: itrs
*/

:root {
	--bg: #000000;
	--surface: #f3efe4;
	--ink: #f2efe6;
	--ink-on-light: #181613;
	--accent: #c9a227;
	--accent-dim: #8f711b;
	--line: #2b2924;
	--line-on-light: #dcd5c0;
	--container: 1120px;
	--sp-sm: 12px;
	--sp-md: 28px;
	--sp-lg: 72px;
	--sp-xl: 128px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

:where(h1, h2, h3, h4) {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 600;
	line-height: 1.08;
	margin: 0;
	letter-spacing: 0.003em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.wrap {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
}

.section { padding: var(--sp-xl) 0; }
.section-light { background: var(--surface); color: var(--ink-on-light); }
.section-dark { background: var(--bg); color: var(--ink); }

.rule-top { border-top: 1px solid var(--line); }
.section-light.rule-top { border-top-color: var(--line-on-light); }

/* Reveal-on-scroll: degrades to visible with no JS */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.9s ease, transform 0.9s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Small classical divider mark */
.mark-divider { display: flex; justify-content: center; margin: 0 auto var(--sp-md); }
.mark-divider svg { display: block; }

/* ===== Header ===== */

.site-header { position: relative; z-index: 20; padding: 10px 0; }

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 108px; width: auto; }

.primary-nav ul {
	list-style: none;
	display: flex;
	gap: 34px;
	margin: 0;
	padding: 0;
}

.primary-nav a {
	font-size: 13.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
	opacity: 0.7;
	transition: opacity 0.15s ease;
}
.primary-nav a:hover { opacity: 1; }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	color: var(--ink);
	font-family: 'Public Sans', sans-serif;
	font-size: 13px;
	padding: 8px 14px;
	cursor: pointer;
}

/* ===== Hero ===== */

.hero {
	position: relative;
	padding: var(--sp-xl) 0 var(--sp-xl);
	text-align: center;
	overflow: hidden;
}

.hero-emblem { margin: 0 auto 30px; width: 68px; height: 68px; opacity: 0.95; }

.hero .eyebrow {
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 22px;
}

.hero h1 {
	font-size: clamp(38px, 6vw, 72px);
	max-width: 16ch;
	margin: 0 auto;
}

.hero h1 em { font-style: italic; color: var(--accent); }

.hero .lede {
	margin: 28px auto 0;
	max-width: 54ch;
	font-size: 18.5px;
	opacity: 0.78;
}

.cta-row {
	margin-top: 38px;
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	display: inline-block;
	padding: 14px 30px;
	font-size: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-family: 'Public Sans', sans-serif;
	border: 1px solid var(--accent);
}

.btn-solid { background: var(--accent); color: #000000; }
.btn-solid:hover { background: var(--accent-dim); border-color: var(--accent-dim); }

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

.section-light .btn-outline { color: var(--ink-on-light); border-color: var(--line-on-light); }
.section-light .btn-outline:hover { border-color: var(--accent); color: var(--accent-dim); }

.hero-canvas-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero-copy { position: relative; z-index: 2; }

/* Flanking temple columns */
.hero-column {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 120px;
	opacity: 0.4;
	z-index: 1;
	pointer-events: none;
}
.hero-column.left { left: 2%; }
.hero-column.right { right: 2%; transform: scaleX(-1); }
.hero-column svg { height: 100%; width: 100%; }

.circuit-tick {
	animation: tick-pulse 3.6s ease-in-out infinite;
	filter: drop-shadow(0 0 3px var(--accent));
}
.circuit-tick:nth-child(2) { animation-delay: 1.1s; }
.circuit-tick:nth-child(3) { animation-delay: 2.2s; }
@keyframes tick-pulse {
	0%, 100% { opacity: 0.35; }
	50% { opacity: 1; }
}

@media (max-width: 1100px) {
	.hero-column { display: none; }
}

/* Animated caduceus emblem */
.hero-caduceus {
	width: 74px;
	height: 74px;
	margin: 0 auto 22px;
	filter: drop-shadow(0 0 8px rgba(201,162,39,0.55));
	animation: caduceus-float 5s ease-in-out infinite;
}
@keyframes caduceus-float {
	0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 6px rgba(201,162,39,0.4)); }
	50% { transform: translateY(-7px); filter: drop-shadow(0 0 14px rgba(201,162,39,0.75)); }
}

/* Greek key / meander light-strip (used once, directly under hero) */
.key-strip {
	position: relative;
	height: 34px;
	overflow: hidden;
	background-color: var(--bg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='34' viewBox='0 0 48 34'%3E%3Cpath d='M0 27h9v-9h9v-9h9v9h9v9h9' fill='none' stroke='%232B2924' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-position: left center;
}
.key-strip .pulse {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 90px;
	background: linear-gradient(90deg, transparent, rgba(201,162,39,0.9), transparent);
	filter: blur(2px);
	animation: key-travel 6s linear infinite;
}
@keyframes key-travel {
	0% { left: -90px; }
	100% { left: 100%; }
}

/* Hover glow */
.service-row { transition: background 0.25s ease; }
.service-row:hover .service-emblem svg { filter: drop-shadow(0 0 6px var(--accent)); }
.btn-solid:hover, .btn-outline:hover { filter: drop-shadow(0 0 6px rgba(201,162,39,0.5)); }

@media (prefers-reduced-motion: reduce) {
	.circuit-tick, .hero-caduceus, .key-strip .pulse { animation: none !important; }
	.circuit-tick { opacity: 0.7; }
	.hero-caduceus { filter: drop-shadow(0 0 6px rgba(201,162,39,0.5)); }
	.key-strip .pulse { display: none; }
}

/* ===== Services ===== */

.services-intro { text-align: center; max-width: 60ch; margin: 0 auto var(--sp-lg); }
.services-intro h2 { font-size: clamp(28px, 3.6vw, 42px); }

.service-list { max-width: 760px; margin: 0 auto; }

.service-row {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 26px;
	align-items: start;
	padding: 32px 0;
	border-top: 1px solid var(--line-on-light);
}
.section-dark .service-row { border-top-color: var(--line); }

.service-emblem { padding-top: 4px; }
.service-emblem svg { display: block; }

.service-name {
	font-family: 'Cormorant Garamond', serif;
	font-size: 26px;
	font-weight: 600;
	margin-bottom: 8px;
}

.service-desc { font-size: 15.5px; opacity: 0.75; max-width: 50ch; }

/* ===== Services: temple pillars ===== */

.temple { padding-top: 20px; }

.temple-roof { max-width: 820px; margin: 0 auto; height: 54px; }
.temple-roof svg { width: 100%; height: 100%; display: block; }

.pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 44px;
	max-width: 820px;
	margin: 0 auto;
	align-items: start;
}

.pillar { text-align: center; }

.pillar-column {
	position: relative;
	height: 200px;
	margin: 0 auto 22px;
	width: 64px;
	overflow: hidden;
}
.pillar-column svg { width: 100%; height: 100%; display: block; }

.energy-rise {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 3px;
	height: 46%;
	bottom: -46%;
	background: linear-gradient(to top, transparent, var(--accent) 50%, transparent);
	filter: blur(1px);
	animation: energy-rise 3.2s linear infinite;
}
.pillar:nth-child(2) .energy-rise { animation-delay: 1s; }
.pillar:nth-child(3) .energy-rise { animation-delay: 2s; }
@keyframes energy-rise {
	0% { bottom: -46%; opacity: 0; }
	15% { opacity: 1; }
	85% { opacity: 1; }
	100% { bottom: 100%; opacity: 0; }
}

.pillar-index {
	font-family: 'Cormorant Garamond', serif;
	color: var(--accent);
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.pillar-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 28px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pillar-sub {
	font-size: 13px;
	opacity: 0.6;
	margin: 4px 0 20px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pillar-list {
	list-style: none;
	margin: 0;
	padding: 16px 0 0;
	text-align: left;
	border-top: 1px solid var(--line);
}
.pillar-list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; opacity: 0.78; }
.pillar-list li:first-child { border-top: none; padding-top: 0; }
.pillar-list strong {
	display: block;
	font-family: 'Cormorant Garamond', serif;
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 3px;
	color: var(--ink);
	opacity: 1;
}

@media (max-width: 760px) {
	.pillars { grid-template-columns: 1fr; gap: 48px; }
	.temple-roof { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.energy-rise { animation: none; opacity: 0.5; bottom: 20%; }
}

/* ===== Why ITRS ===== */

.why-lead { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.why-lead h2 { font-size: clamp(26px, 3.4vw, 38px); }
.why-lead p { margin-top: 16px; opacity: 0.78; font-size: 16px; }

.why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 44px;
	max-width: 900px;
	margin: 0 auto;
}

.why-item { border-top: 1px solid var(--line-on-light); padding-top: 22px; }
.section-dark .why-item { border-top-color: var(--line); }

.why-item .idx {
	font-family: 'Cormorant Garamond', serif;
	color: var(--accent);
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.why-item h3 {
	font-family: 'Cormorant Garamond', serif;
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 8px;
}

.why-item p { font-size: 14.5px; opacity: 0.75; }

/* Hero velocity kicker */
.velocity-kicker {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: 19px;
	color: var(--accent);
	opacity: 0.9;
	margin: 12px 0 0;
}

@media (max-width: 760px) {
	.why-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Stats ===== */

.stats-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-lg);
	text-align: center;
}

.stat .num {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(42px, 5.4vw, 64px);
	font-weight: 600;
	color: var(--accent);
	line-height: 1;
}

.stat .label {
	margin-top: 12px;
	font-size: 13.5px;
	letter-spacing: 0.03em;
	opacity: 0.65;
}

/* ===== Quote ===== */

.quote-section { text-align: center; }

.quote-section blockquote {
	margin: 0 auto;
	max-width: 680px;
}

.quote-section blockquote p {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: clamp(24px, 3.2vw, 34px);
	line-height: 1.3;
}

.quote-section cite {
	display: block;
	margin-top: 22px;
	font-style: normal;
	font-size: 13.5px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.6;
}

/* ===== Reviews ===== */

.reviews-intro { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.reviews-intro h2 { font-size: clamp(28px, 3.6vw, 42px); }
.trustpilot-badge {
	margin-top: 16px;
	font-size: 14.5px;
	opacity: 0.75;
}
.trustpilot-badge .stars { color: var(--accent); letter-spacing: 2px; margin-right: 6px; }
.trustpilot-badge a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }
.trustpilot-badge a:hover { color: var(--accent-dim); }

.review-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px 56px;
	max-width: 900px;
	margin: 0 auto;
}

.review-item { border-top: 1px solid var(--line-on-light); padding-top: 22px; }
.section-dark .review-item { border-top-color: var(--line); }

.review-item .stars { color: var(--accent); letter-spacing: 2px; font-size: 13px; margin-bottom: 10px; display: block; }
.review-item .review-text { font-size: 15px; opacity: 0.85; margin: 0 0 12px; }
.review-item .review-author {
	font-family: 'Cormorant Garamond', serif;
	font-size: 15px;
	font-weight: 600;
	opacity: 0.85;
}

@media (max-width: 720px) {
	.review-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ===== About / split ===== */

.split {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 60px;
	align-items: start;
}

.split h2 { font-size: clamp(26px, 3.2vw, 38px); }
.split .body { opacity: 0.78; max-width: 52ch; }
.split .body p { margin: 0 0 16px; }
.split .body p:last-child { margin-bottom: 0; }

/* ===== About: temple illustration ===== */

.about-split {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: 64px;
	align-items: center;
}

.about-kicker {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: 17px;
	color: var(--accent);
	opacity: 0.9;
	margin-bottom: 14px;
}

.about-copy h2 { font-size: clamp(28px, 3.4vw, 40px); }
.about-copy .body { margin-top: 20px; opacity: 0.8; max-width: 52ch; }
.about-copy .body p { margin: 0 0 16px; }
.about-copy .body p:last-child { margin-bottom: 0; }
.about-copy .cta-row { margin-top: 30px; justify-content: flex-start; }

.about-visual { position: relative; }
.about-visual svg { width: 100%; height: auto; display: block; }

.temple-glow {
	animation: temple-glow-pulse 4.5s ease-in-out infinite;
	transform-origin: center;
}
@keyframes temple-glow-pulse {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 1; }
}

.orbit-ring { transform-origin: 250px 300px; }
.orbit-ring.r1 { animation: orbit-spin 22s linear infinite; }
.orbit-ring.r2 { animation: orbit-spin 34s linear infinite reverse; }
@keyframes orbit-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.about-illustration .circuit-tick { animation-duration: 3s; }

@media (max-width: 900px) {
	.about-split { grid-template-columns: 1fr; gap: 40px; }
	.about-visual { order: -1; max-width: 340px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.temple-glow { animation: none; opacity: 0.8; }
	.orbit-ring { animation: none; }
}

/* ===== Contact CTA ===== */

.contact-cta { text-align: center; }
.contact-cta h2 { font-size: clamp(30px, 4.4vw, 50px); max-width: 18ch; margin: 0 auto; }
.contact-cta .lede { margin: 18px auto 0; max-width: 48ch; opacity: 0.78; }
.contact-cta .contact-details {
	margin-top: 34px;
	display: flex;
	gap: 32px;
	justify-content: center;
	flex-wrap: wrap;
	font-size: 14.5px;
	opacity: 0.75;
}
.contact-cta .contact-details a:hover { color: var(--accent); }

/* ===== Footer ===== */

.site-footer {
	border-top: 1px solid var(--line);
	padding: 52px 0 40px;
	background: var(--bg);
	color: var(--ink);
	text-align: center;
}

.footer-logo { width: 40px; height: 40px; margin: 0 auto 20px; opacity: 0.9; }

.site-footer address { font-style: normal; font-size: 14px; opacity: 0.7; margin-bottom: 16px; }

.footer-nav ul {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	gap: 24px;
	justify-content: center;
	flex-wrap: wrap;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.7;
}

.footer-credit { font-size: 12.5px; opacity: 0.5; }

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

@media (max-width: 900px) {
	.stats-strip { grid-template-columns: 1fr; gap: var(--sp-md); }
	.split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 0; padding: 8px 32px 20px; }
	.primary-nav li { padding: 12px 0; border-top: 1px solid var(--line); }
	.primary-nav li:first-child { border-top: none; }
	.nav-toggle { display: block; min-height: 40px; }
	.contact-cta .contact-details { flex-direction: column; gap: 10px; }
	.wrap { padding: 0 22px; }
	.section { padding: 72px 0; }
	.hero { padding: 56px 0; }
	.hero-caduceus { width: 58px; height: 58px; }
	.btn { display: block; width: 100%; text-align: center; padding: 15px 22px; }
	.cta-row { flex-direction: column; align-items: stretch; }
	.cta-row .btn { width: 100%; }
	.service-row { padding: 26px 0; }
	.stats-strip { gap: 40px; }
}

@media (max-width: 380px) {
	.hero h1 { font-size: 32px; }
	.brand img { height: 72px; }
}

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