/*
Theme Name:   Mac Thing 2026
Theme URI:    https://macthing.co.uk
Description:  Mac Thing custom child theme for Genesis Framework. Retrofuturist × German modernist poster aesthetic.
Author:       Colin Kavanagh
Author URI:   https://macthing.co.uk
Template:     genesis
Version:      1.0.0
License:      GPL-2.0-or-later
Text Domain:  mac-thing-2026
*/

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DESIGN TOKENS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
:root {
	/* Brand colours */
	--mt-bg:       #F5F0E6;
	--mt-text:     #141414;
	--mt-muted:    #6B6560;
	--mt-sq-1:     #BC2982;
	--mt-sq-2:     #EF302C;
	--mt-sq-3:     #F6790D;
	--mt-sq-4:     #F7EA15;
	--mt-accent:   #EF302C;
	--mt-dark:     #141414;
	--mt-rule:     rgba(20, 20, 20, 0.12);

	/* Typography */
	--mt-font-head: 'Jost', sans-serif;
	--mt-font-body: 'Lato', sans-serif;

	/* Layout */
	--mt-max-w:   1200px;
	--mt-gutter:  clamp(1.5rem, 5vw, 4rem);

	/* Motion */
	--mt-ease: 200ms ease;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESET & BASE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	background-color: var(--mt-bg);
	color: var(--mt-text);
	font-family: var(--mt-font-body);
	font-size: 1rem;
	line-height: 1.65;
	margin: 0;
}

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


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TYPOGRAPHY
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--mt-font-head);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	color: var(--mt-text);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.0625rem; font-weight: 500; }

p {
	margin: 0 0 1.5rem;
}
p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--mt-accent);
	text-decoration: none;
	transition: opacity var(--mt-ease);
}
a:hover {
	opacity: 0.75;
}

strong { font-weight: 700; }

/* Focus — visible outline for keyboard navigation */
:focus-visible {
	outline: 2px solid var(--mt-accent);
	outline-offset: 3px;
}

/* On dark backgrounds, use the warm white outline instead */
.mt-hero :focus-visible,
.mt-page-hero :focus-visible,
.mt-cta-bar :focus-visible {
	outline-color: var(--mt-bg);
}

blockquote {
	font-family: var(--mt-font-head);
	font-weight: 300;
	font-style: normal;
	margin: 0;
	padding: 0;
	border: none;
}

/* Uppercase label style — used throughout */
.mt-label {
	font-family: var(--mt-font-head);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--mt-muted);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LAYOUT UTILITIES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mt-wrap {
	max-width: var(--mt-max-w);
	margin: 0 auto;
	padding: 0 var(--mt-gutter);
}

.mt-section {
	padding: clamp(4rem, 8vw, 8rem) 0;
}

/* Thin horizontal rule — the structural spine of German poster design */
.mt-section__rule {
	width: 100%;
	height: 1px;
	background: var(--mt-rule);
	margin-bottom: clamp(2rem, 4vw, 4rem);
}

/* Ghost section number — large, low-opacity, Jost Light */
.mt-section__num {
	display: block;
	font-family: var(--mt-font-head);
	font-size: clamp(5rem, 12vw, 9rem);
	font-weight: 300;
	line-height: 0.85;
	color: rgba(20, 20, 20, 0.05);
	letter-spacing: -0.04em;
	user-select: none;
	pointer-events: none;
}

.mt-section__heading {
	font-size: clamp(1.5rem, 3.5vw, 2.5rem);
	margin-bottom: clamp(2rem, 4vw, 3rem);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   THREE-SQUARE LOGO MARK
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mt-logo-mark {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-right: 10px;
	vertical-align: middle;
	position: relative;
	top: -1px;
	flex-shrink: 0;
}

.mt-logo-mark span {
	display: block;
	width: 9px;
	height: 9px;
	border-radius: 2px;
}

.mt-logo-mark span:nth-child(1) { background: var(--mt-sq-1); }
.mt-logo-mark span:nth-child(2) { background: var(--mt-sq-2); }
.mt-logo-mark span:nth-child(3) { background: var(--mt-sq-3); }
.mt-logo-mark span:nth-child(4) { background: var(--mt-sq-4); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SITE HEADER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--mt-bg);
	border-bottom: 1px solid var(--mt-rule);
	padding: 1.125rem 0;
}

.site-header .wrap {
	max-width: var(--mt-max-w);
	margin: 0 auto;
	padding: 0 var(--mt-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.title-area {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-title {
	font-family: var(--mt-font-head);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0;
	line-height: 1;
}

.site-title a {
	color: var(--mt-text);
	display: flex;
	align-items: center;
	text-decoration: none;
}

.site-title a:hover {
	opacity: 0.7;
}

.site-description {
	display: none;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVIGATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nav-primary {
	font-family: var(--mt-font-head);
}

.nav-primary .genesis-nav-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-primary .genesis-nav-menu > li {
	position: relative;
}

.nav-primary .genesis-nav-menu > li:last-child {
	margin-left: auto;
}

.nav-primary .genesis-nav-menu a {
	display: block;
	padding: 0.5rem 0.625rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mt-text);
	text-decoration: none;
	transition: color var(--mt-ease);
}

.nav-primary .genesis-nav-menu a:hover,
.nav-primary .genesis-nav-menu a:focus-visible,
.nav-primary .genesis-nav-menu .current-menu-item > a,
.nav-primary .genesis-nav-menu .current-page-ancestor > a {
	color: var(--mt-accent);
}

/* Drop-down */
.nav-primary .genesis-nav-menu .sub-menu {
	position: absolute;
	top: calc(100% + 1px);
	left: 0;
	background: var(--mt-bg);
	border: 1px solid var(--mt-rule);
	min-width: 200px;
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	display: none;
	z-index: 200;
	box-shadow: 0 4px 20px rgba(20, 20, 20, 0.06);
}

.nav-primary .genesis-nav-menu > li:hover > .sub-menu {
	display: block;
}

.nav-primary .genesis-nav-menu .sub-menu a {
	font-size: 0.8125rem;
	padding: 0.5rem 1.25rem;
	text-transform: none;
	letter-spacing: 0.02em;
}

/* ── Mobile nav toggle ── */
.mt-nav-toggle {
	display: none;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS & LINKS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mt-btn {
	display: inline-block;
	font-family: var(--mt-font-head);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.875rem 1.875rem;
	border: 1.5px solid currentColor;
	transition: background var(--mt-ease), color var(--mt-ease), border-color var(--mt-ease);
	cursor: pointer;
	line-height: 1;
}

.mt-btn--primary {
	background: var(--mt-accent);
	color: #fff;
	border-color: var(--mt-accent);
}
.mt-btn--primary:hover,
.mt-btn--primary:focus-visible {
	background: var(--mt-dark);
	border-color: var(--mt-dark);
	color: #fff;
	opacity: 1;
}

/* Ghost — for use on dark backgrounds */
.mt-btn--ghost {
	background: transparent;
	color: var(--mt-bg);
	border-color: rgba(245, 240, 230, 0.35);
}
.mt-btn--ghost:hover,
.mt-btn--ghost:focus-visible {
	background: var(--mt-bg);
	color: var(--mt-dark);
	border-color: var(--mt-bg);
	opacity: 1;
}

/* Light — for use inside dark CTA bar */
.mt-btn--light {
	background: var(--mt-bg);
	color: var(--mt-dark);
	border-color: var(--mt-bg);
}
.mt-btn--light:hover,
.mt-btn--light:focus-visible {
	background: transparent;
	color: var(--mt-bg);
	border-color: rgba(245, 240, 230, 0.5);
	opacity: 1;
}

/* Inline text arrow link */
.mt-link-arrow {
	font-family: var(--mt-font-head);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mt-text);
	text-decoration: none;
	transition: color var(--mt-ease);
}
.mt-link-arrow:hover,
.mt-link-arrow:focus-visible {
	color: var(--mt-accent);
	opacity: 1;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOMEPAGE — FULL-WIDTH CONTAINER RESET
   Strip Genesis max-width constraints on the front page.
   Each section uses .mt-wrap internally for content centering.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Outermost Genesis wrapper — must not constrain hero width */
.home .site-container {
	max-width: none;
	width: 100%;
}

.home .site-inner {
	max-width: none;
	padding-top: 0;
	padding-bottom: 0;
}

.home .content-sidebar-wrap,
.home .content {
	max-width: none;
	width: 100%;
	padding: 0;
}

/* Hero canvas fills its parent section edge-to-edge */
#mt-hero-canvas {
	display: block;
	width: 100% !important;   /* override Three.js inline px value */
	height: 100% !important;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOMEPAGE — HERO
   Full-viewport, Three.js-ready overlay composition.

   Layer order (bottom → top):
     1. .mt-hero__canvas   — Three.js canvas / placeholder (position: absolute)
     2. .mt-hero__scrim    — gradient for text legibility (position: absolute)
     3. .mt-hero__overlay  — text content (position: absolute)
     4. .mt-hero__scroll   — scroll indicator (position: absolute)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mt-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 600px;
	overflow: hidden;
	background: var(--mt-dark);
}

/* ── Canvas layer — Three.js attaches here ── */
.mt-hero__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	z-index: 0;
}

/* ── Gradient scrim — legibility layer ── */
.mt-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	/* Dark gradient rising from bottom — keeps text readable over any 3D visual.
	   Adjust stops once Three.js concept is confirmed. */
	background: linear-gradient(
		to top,
		rgba(20, 20, 20, 0.88) 0%,
		rgba(20, 20, 20, 0.45) 35%,
		rgba(20, 20, 20, 0.10) 65%,
		transparent 100%
	);
	pointer-events: none;
}

/* ── Text overlay ── */
.mt-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	/* Side padding via mt-wrap; top padding clears the sticky header visually */
	padding-top: clamp(3rem, 6vh, 5rem);
	padding-bottom: clamp(5rem, 10vh, 8rem);
}

.mt-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(1rem, 2.5vh, 1.75rem);
}

.mt-hero__title {
	font-family: var(--mt-font-head);
	font-size: clamp(2.5rem, 6vw, 6.5rem);
	font-weight: 700;
	line-height: 1.0;
	letter-spacing: -0.03em;
	color: var(--mt-bg);
	margin: 0;
	text-shadow: 0 2px 40px rgba(20, 20, 20, 0.6);
}

.mt-hero__sub {
	font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
	line-height: 1.65;
	color: rgba(245, 240, 230, 0.8);
	max-width: 42ch;
	margin: 0;
	text-shadow: 0 1px 16px rgba(20, 20, 20, 0.7);
}

/* ── Scroll indicator ── */
.mt-hero__scroll {
	position: absolute;
	bottom: 2rem;
	right: var(--mt-gutter);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	opacity: 0.4;
	transition: opacity var(--mt-ease);
}

.mt-hero__scroll:hover {
	opacity: 0.8;
}

.mt-hero__scroll-line {
	display: block;
	width: 1px;
	height: 3.5rem;
	background: var(--mt-bg);
	animation: mt-scroll-pulse 2s ease-in-out infinite;
}

@keyframes mt-scroll-pulse {
	0%, 100% { transform: scaleY(1); opacity: 0.4; }
	50%       { transform: scaleY(0.6); opacity: 1; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOMEPAGE — INTRO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mt-section--intro {
	padding-top: clamp(5rem, 10vw, 10rem);
}

.mt-intro {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.mt-intro__heading {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 300;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin-bottom: 1.5rem;
}

.mt-intro__body {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--mt-muted);
	max-width: 58ch;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOMEPAGE — SERVICES GRID
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mt-section--services .mt-section__num {
	margin-bottom: 0.25rem;
}

/* 2×2 grid of service cards, separated by 1px rules */
.mt-services-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1px;
	background: var(--mt-rule);
	border: 1px solid var(--mt-rule);
	margin-top: clamp(2rem, 4vw, 3rem);
}

.mt-service-card {
	display: flex;
	flex-direction: column;
	padding: clamp(1.75rem, 3vw, 2.75rem);
	background: var(--mt-bg);
	text-decoration: none;
	color: var(--mt-text);
	transition: background var(--mt-ease), color var(--mt-ease);
	gap: 1rem;
}

.mt-service-card:hover,
.mt-service-card:focus-visible {
	background: var(--mt-dark);
	color: var(--mt-bg);
	opacity: 1;
}

.mt-service-card:hover .mt-service-card__title,
.mt-service-card:focus-visible .mt-service-card__title {
	color: var(--mt-bg);
}

.mt-service-card:hover .mt-service-card__desc,
.mt-service-card:focus-visible .mt-service-card__desc {
	color: rgba(245, 240, 230, 0.55);
}

.mt-service-card:hover .mt-service-card__arrow,
.mt-service-card:focus-visible .mt-service-card__arrow {
	color: var(--mt-bg);
}

/* Single coloured square per card */
.mt-service-card__mark span {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
}

.mt-service-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

.mt-service-card__desc {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--mt-muted);
	margin: 0;
	flex: 1;
	transition: color var(--mt-ease);
}

.mt-service-card__arrow {
	font-family: var(--mt-font-head);
	font-size: 1.125rem;
	font-weight: 300;
	color: var(--mt-accent);
	margin-top: 0.5rem;
	transition: color var(--mt-ease);
	line-height: 1;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOMEPAGE — HOW I WORK
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mt-section--how .mt-how {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.mt-pullquote {
	font-family: var(--mt-font-head);
	font-size: clamp(1.375rem, 2.75vw, 2rem);
	font-weight: 300;
	line-height: 1.35;
	letter-spacing: -0.01em;
	margin: 0 0 1.5rem;
	max-width: 32ch;
}

.mt-how__body {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--mt-muted);
	margin-bottom: 2rem;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOMEPAGE — CTA BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mt-cta-bar {
	background: var(--mt-dark);
	padding: clamp(5rem, 10vw, 8rem) 0;
	text-align: center;
}

.mt-cta-bar .mt-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
}

.mt-cta-bar__heading {
	color: var(--mt-bg);
	font-size: clamp(1.5rem, 3.5vw, 2.5rem);
	font-weight: 300;
	letter-spacing: -0.01em;
	margin: 0;
	max-width: 24ch;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SITE FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-footer {
	background: var(--mt-bg);
	border-top: 1px solid var(--mt-rule);
	padding: 2rem 0;
}

.site-footer .wrap {
	max-width: var(--mt-max-w);
	margin: 0 auto;
	padding: 0 var(--mt-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-footer p,
.site-footer .footer-credits {
	font-family: var(--mt-font-head);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mt-muted);
	margin: 0;
}

.site-footer a {
	color: var(--mt-muted);
}
.site-footer a:hover {
	color: var(--mt-text);
	opacity: 1;
}

/* Footer logo mark (smaller) */
.site-footer .mt-logo-mark span {
	width: 7px;
	height: 7px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SERVICE PAGE TEMPLATE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Dark hero — mirrors homepage hero aesthetic */
.mt-page-hero {
	background: var(--mt-dark);
	padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.mt-page-hero__inner {
	max-width: 800px;
}

.mt-page-hero__title {
	color: var(--mt-bg);
	font-size: clamp(2.5rem, 6vw, 5rem);
	margin-bottom: 1.5rem;
}

.mt-page-hero__intro {
	color: rgba(245, 240, 230, 0.6);
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	line-height: 1.65;
	max-width: 55ch;
	margin: 0;
}

/* Main service content */
.mt-page-content {
	padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 4rem);
}

.mt-page-content__body {
	max-width: 680px;
	font-size: 1.0625rem;
	line-height: 1.75;
}

.mt-page-content__body h2 {
	margin-top: 3rem;
	font-size: clamp(1.375rem, 3vw, 2rem);
}

.mt-page-content__body h3 {
	margin-top: 2rem;
	font-size: 1.125rem;
}

.mt-page-content__body p {
	color: var(--mt-muted);
}

.mt-page-content__body a {
	color: var(--mt-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Consultation callout — left-bordered panel before CTA */
.mt-consultation-callout {
	padding: clamp(3rem, 6vw, 5rem) 0;
	background: rgba(20, 20, 20, 0.03);
	border-top: 1px solid var(--mt-rule);
	border-bottom: 1px solid var(--mt-rule);
}

.mt-callout__inner {
	max-width: 680px;
	padding-left: 2rem;
	border-left: 3px solid var(--mt-accent);
}

.mt-callout__heading {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.mt-callout__body {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--mt-muted);
	margin-bottom: 1.5rem;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTACT PAGE TEMPLATE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.mt-contact-section {
	padding: clamp(4rem, 8vw, 7rem) 0;
}

/* Two-column: details left, form right */
.mt-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: clamp(3rem, 6vw, 6rem);
	align-items: start;
}

/* Individual contact detail rows */
.mt-contact-item {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--mt-rule);
}

.mt-contact-item:first-child {
	border-top: 1px solid var(--mt-rule);
}

.mt-contact-item__value {
	font-family: var(--mt-font-body);
	font-size: 1rem;
	font-weight: 400;
	color: var(--mt-text);
	text-decoration: none;
	transition: color var(--mt-ease);
}

a.mt-contact-item__value:hover,
a.mt-contact-item__value:focus-visible {
	color: var(--mt-accent);
	opacity: 1;
}

.mt-contact-item--note {
	border-bottom: none;
	padding-top: 2rem;
}

.mt-contact-item--note p {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--mt-muted);
	margin: 0;
}

/* Form area */
.mt-contact-form {
	padding-top: 0.25rem;
}

.mt-contact-form__title {
	font-family: var(--mt-font-head);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--mt-muted);
	line-height: 1;
	margin: 0 0 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--mt-rule);
}

/* ── WPForms overrides ── */

.mt-contact-form .wpforms-container {
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.mt-contact-form .wpforms-field-label {
	font-family: var(--mt-font-head) !important;
	font-size: 0.6875rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.15em !important;
	text-transform: uppercase !important;
	color: var(--mt-muted) !important;
	line-height: 1 !important;
}

.mt-contact-form .wpforms-field-sublabel {
	font-family: var(--mt-font-body);
	font-size: 0.75rem;
	color: var(--mt-muted);
}

.mt-contact-form .wpforms-field input[type="text"],
.mt-contact-form .wpforms-field input[type="email"],
.mt-contact-form .wpforms-field textarea {
	font-family: var(--mt-font-body);
	font-size: 0.9375rem;
	color: var(--mt-text);
	background: var(--mt-bg);
	border: 1px solid var(--mt-rule);
	border-radius: 0;
	padding: 0.75rem;
	transition: border-color var(--mt-ease);
}

.mt-contact-form .wpforms-field input:focus,
.mt-contact-form .wpforms-field textarea:focus {
	border-color: var(--mt-accent);
	outline: none;
	box-shadow: none;
}

.mt-contact-form .wpforms-field textarea {
	min-height: 160px;
	resize: vertical;
}

.mt-contact-form .wpforms-submit-container {
	padding-top: 0.5rem;
}

.mt-contact-form .wpforms-submit {
	display: inline-block;
	font-family: var(--mt-font-head);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1;
	padding: 0.875rem 1.875rem;
	background: var(--mt-accent);
	color: #fff;
	border: 1.5px solid var(--mt-accent);
	border-radius: 0;
	cursor: pointer;
	transition: background var(--mt-ease), color var(--mt-ease), border-color var(--mt-ease);
}

.mt-contact-form .wpforms-submit:hover,
.mt-contact-form .wpforms-submit:focus-visible {
	background: var(--mt-dark);
	border-color: var(--mt-dark);
	color: #fff;
}

/* Responsive — stack on mobile */
@media (max-width: 768px) {
	.mt-contact-grid {
		grid-template-columns: 1fr;
	}

	.mt-contact-item:first-child {
		border-top: none;
	}
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOW I WORK PAGE TEMPLATE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Principles list — the core of the page */
.mt-principles-list {
	display: flex;
	flex-direction: column;
	margin-top: clamp(1rem, 3vw, 2rem);
}

.mt-principle {
	display: grid;
	grid-template-columns: 2rem 1fr;
	gap: 0 clamp(2rem, 4vw, 4rem);
	padding: clamp(2rem, 4vw, 3rem) 0;
	border-bottom: 1px solid var(--mt-rule);
	align-items: start;
}

.mt-principle:first-child {
	border-top: 1px solid var(--mt-rule);
}

.mt-principle__num {
	font-family: var(--mt-font-head);
	font-size: 1.25rem;
	font-weight: 300;
	color: var(--mt-accent);
	line-height: 1.4;
	padding-top: 0.125rem;
}

.mt-principle__heading {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.mt-principle__body {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--mt-muted);
	max-width: 58ch;
	margin: 0;
}

/* Photo break */
.mt-hiw-photo {
	padding-top: 0;
	padding-bottom: 0;
}

.mt-hiw-photo__figure {
	margin: 0;
	overflow: hidden;
}

.mt-hiw-photo__figure img {
	display: block;
	width: 100%;
	height: auto;
}

/* What to expect — two-column editorial layout */
.mt-expect-grid {
	display: grid;
	grid-template-columns: 1fr 1.75fr;
	gap: clamp(3rem, 6vw, 6rem);
	align-items: start;
}

.mt-expect__heading {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	margin-top: 0.5rem;
}

.mt-expect-right {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mt-expect-item {
	padding: clamp(1.5rem, 3vw, 2.25rem) 0;
	border-bottom: 1px solid var(--mt-rule);
}

.mt-expect-item:first-child {
	border-top: 1px solid var(--mt-rule);
}

.mt-expect-item__title {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 0.625rem;
}

.mt-expect-item__body {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--mt-muted);
	margin: 0;
	max-width: 58ch;
}

/* Rates section */
.mt-rates-grid {
	display: grid;
	grid-template-columns: 1fr 1.75fr;
	gap: clamp(3rem, 6vw, 6rem);
	align-items: start;
}

.mt-rates__heading {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

.mt-rates__note {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--mt-muted);
	margin: 0;
}

.mt-rates-right {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mt-rate-item {
	display: grid;
	grid-template-columns: 3px 1fr;
	gap: 0 1.75rem;
	padding: clamp(1.5rem, 3vw, 2rem) 0;
	border-bottom: 1px solid var(--mt-rule);
	align-items: start;
}

.mt-rate-item:first-child {
	border-top: 1px solid var(--mt-rule);
}

.mt-rate-item__mark {
	width: 3px;
	height: 100%;
	min-height: 3rem;
	border-radius: 2px;
}

.mt-rate-item__label {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.mt-rate-item__price {
	font-family: var(--mt-font-head);
	font-size: 1.0625rem;
	font-weight: 300;
	line-height: 1.6;
	color: var(--mt-text);
	margin: 0;
}

.mt-rate-item__price a {
	color: var(--mt-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Responsive — How I Work */
@media (max-width: 768px) {
	.mt-principle {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.mt-expect-grid,
	.mt-rates-grid {
		grid-template-columns: 1fr;
	}

	.mt-rate-item {
		grid-template-columns: 3px 1fr;
	}
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   INNER PAGES (non-homepage)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-inner {
	padding: clamp(3rem, 6vw, 6rem) 0;
}

.content-sidebar-wrap,
.content {
	max-width: var(--mt-max-w);
	margin: 0 auto;
	padding: 0 var(--mt-gutter);
}

/* Inner page entry */
.entry-header {
	border-bottom: 1px solid var(--mt-rule);
	padding-bottom: clamp(2rem, 4vw, 3rem);
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.entry-title {
	font-size: clamp(2rem, 5vw, 3.75rem);
}

.entry-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	max-width: 66ch;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2.5rem;
}

.entry-content a {
	color: var(--mt-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
	.mt-services-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {

	/* ── Header layout ── */
	.site-header .wrap {
		flex-wrap: nowrap;
		gap: 1rem;
	}

	/* ── Hamburger button ── */
	.mt-nav-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 2.5rem;
		height: 2.5rem;
		padding: 0;
		border: none;
		background: none;
		cursor: pointer;
		position: relative;
		z-index: 10;
		-webkit-tap-highlight-color: transparent;
	}

	.mt-nav-toggle__lines,
	.mt-nav-toggle__lines::before,
	.mt-nav-toggle__lines::after {
		display: block;
		width: 1.25rem;
		height: 1.5px;
		background: var(--mt-text);
		transition: transform 200ms ease, opacity 200ms ease;
	}

	.mt-nav-toggle__lines {
		position: relative;
	}

	.mt-nav-toggle__lines::before,
	.mt-nav-toggle__lines::after {
		content: '';
		position: absolute;
		left: 0;
	}

	.mt-nav-toggle__lines::before { top: -6px; }
	.mt-nav-toggle__lines::after  { top:  6px; }

	/* Open state — lines rotate to X */
	.nav-open .mt-nav-toggle__lines {
		background: transparent;
	}
	.nav-open .mt-nav-toggle__lines::before {
		top: 0;
		transform: rotate(45deg);
	}
	.nav-open .mt-nav-toggle__lines::after {
		top: 0;
		transform: rotate(-45deg);
	}

	/* ── Mobile nav panel ── */
	.nav-primary {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--mt-bg);
		border-bottom: 1px solid var(--mt-rule);
		padding: 0.5rem 0;
		box-shadow: 0 4px 20px rgba(20, 20, 20, 0.06);
		z-index: 200;
	}

	.nav-open .nav-primary {
		display: block;
	}

	.nav-primary .genesis-nav-menu {
		flex-direction: column;
		align-items: stretch;
		padding: 0 var(--mt-gutter);
	}

	.nav-primary .genesis-nav-menu a {
		padding: 0.875rem 0;
		border-bottom: 1px solid var(--mt-rule);
		font-size: 0.8125rem;
	}

	.nav-primary .genesis-nav-menu > li:last-child > a {
		border-bottom: none;
	}

	/* Hide desktop sub-menu hover on mobile */
	.nav-primary .genesis-nav-menu .sub-menu {
		position: static;
		border: none;
		box-shadow: none;
		padding: 0 0 0 1.25rem;
		min-width: 0;
	}

	.nav-primary .genesis-nav-menu > li:hover > .sub-menu {
		display: block;
	}

	/* ── Content stacking ── */
	.mt-intro,
	.mt-section--how .mt-how {
		grid-template-columns: 1fr;
	}

	.mt-section__num {
		display: none;
	}

	.site-footer .wrap {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.mt-hero__title {
		font-size: clamp(2.5rem, 10vw, 3.5rem);
	}

	.mt-btn {
		width: 100%;
		text-align: center;
	}
}
