/*
Theme Name: Unity NDT
Theme URI: https://unityndt.com.au/
Author: Unity NDT
Description: Custom theme for Unity NDT, a non-destructive testing social enterprise. On activation it imports the site photos, creates the Home, Services, Our Purpose, About, Careers, Contact and News pages, and builds the menus. Contact details and home page text are edited in Appearance → Customise.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unity-ndt
Tags: custom-logo, custom-menu, featured-images, block-styles, wide-blocks, business
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #0e1b26;
	--ink-2: #172735;
	--ink-3: #243847;
	--paper: #f5f3ee;
	--white: #ffffff;
	--accent: #b9492a;
	--accent-hover: #9e3c21;
	--accent-soft: #f3e3dc;
	--text: #1c2730;
	--muted: #56626c;
	--line: #dedad2;
	--on-dark: #e9edf0;
	--on-dark-muted: #a9b5be;
	--radius: 10px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgba(14, 27, 38, .06), 0 8px 24px rgba(14, 27, 38, .08);
	--font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(64px, 9vw, 112px);
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 6px; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: 0 0 auto; }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .55em;
	font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .01em;
	padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer; line-height: 1.1;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-accent, .wp-block-button__link { background: var(--accent); color: #fff; }
.btn-accent:hover, .wp-block-button__link:hover { background: var(--accent-hover); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost-dark { border-color: rgba(14,27,38,.35); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: .65em 1.15em; font-size: .92rem; }

/* ---------- Eyebrow ---------- */
.eyebrow {
	font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
	color: var(--accent); margin: 0 0 1rem; display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: 0 0 auto; }
.eyebrow-light { color: #f0b39c; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line);
	transition: box-shadow .25s, background-color .25s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(14,27,38,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand:hover { color: var(--ink); }
.brand .unity-mark { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.42rem; letter-spacing: .02em; }
.brand-sub { font-family: var(--font-head); font-weight: 600; font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.custom-logo { max-height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav .menu a {
	display: block; padding: 10px 12px; font-family: var(--font-head); font-weight: 600; font-size: .98rem;
	color: var(--ink); text-decoration: none; border-radius: 6px; position: relative;
}
.site-nav .menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.site-nav .menu a:hover::after, .site-nav .current-menu-item > a::after, .site-nav .current_page_item > a::after { transform: scaleX(1); }
.site-nav .sub-menu { display: none; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-phone .icon { color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 1060px) {
	.nav-phone span { display: none; }
}
@media (max-width: 920px) {
	:root { --header-h: 66px; }
	.brand .unity-mark { width: 40px; height: 40px; }
	.brand-name { font-size: 1.25rem; }
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
		background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--ink);
	}
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; position: relative; }
	.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle-bars::before { top: -6px; }
	.nav-toggle-bars::after { top: 6px; }
	.nav-open .nav-toggle-bars { background: transparent; }
	.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(14,27,38,.12);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav .menu a::after { display: none; }
	.nav-cta { flex-direction: column; align-items: stretch; margin-top: 18px; }
	.nav-phone span { display: inline; }
	.nav-cta .btn { justify-content: center; padding: 1em; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(95deg, rgba(10,20,29,.94) 0%, rgba(10,20,29,.82) 38%, rgba(10,20,29,.35) 72%, rgba(10,20,29,.15) 100%);
}
.hero-inner { padding-block: clamp(84px, 13vw, 168px) clamp(72px, 10vw, 128px); max-width: calc(var(--container) + var(--gutter)*2); }
.hero-title { color: #fff; max-width: 15ch; margin-bottom: 24px; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-dark); max-width: 56ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-rings { position: absolute; right: -8vw; top: 50%; width: min(56vw, 720px); aspect-ratio: 1; transform: translateY(-50%); z-index: -1; pointer-events: none; }
.hero-rings span { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 2px solid rgba(255,255,255,.16); animation: ping 6s ease-out infinite; }
.hero-rings span:nth-child(1) { width: 25%; height: 25%; }
.hero-rings span:nth-child(2) { width: 50%; height: 50%; animation-delay: .4s; }
.hero-rings span:nth-child(3) { width: 75%; height: 75%; animation-delay: .8s; }
.hero-rings span:nth-child(4) { width: 100%; height: 100%; animation-delay: 1.2s; }
@keyframes ping { 0%, 100% { border-color: rgba(255,255,255,.08); } 12% { border-color: rgba(240,179,156,.55); } 40% { border-color: rgba(255,255,255,.12); } }
@media (max-width: 720px) {
	.hero::before { background: linear-gradient(180deg, rgba(10,20,29,.78) 0%, rgba(10,20,29,.9) 100%); }
	.hero-rings { width: 110vw; right: -45vw; top: 22%; }
	.hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Proof strip ---------- */
.proof { background: var(--ink); color: var(--on-dark); border-top: 1px solid rgba(255,255,255,.08); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 26px 22px; border-left: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 4px; }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item strong { font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.proof-item span { font-size: .92rem; color: var(--on-dark-muted); }
@media (max-width: 900px) {
	.proof-grid { grid-template-columns: 1fr 1fr; }
	.proof-item { padding: 20px 16px; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
	.proof-item:nth-child(odd) { padding-left: 0; }
	.proof-item:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 420px) { .proof-grid { grid-template-columns: 1fr; } .proof-item { padding-left: 0; } .proof-item:nth-child(2) { border-top: 1px solid rgba(255,255,255,.1); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-intro { font-size: 1.12rem; color: var(--muted); }
.section-more { margin: 44px 0 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }
.card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	overflow: hidden; text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.22rem; margin-bottom: .4em; }
.card-body p { color: var(--muted); font-size: .98rem; margin-bottom: 1em; }
.card-date { font-size: .82rem !important; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5em !important; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: .95rem; }
.card-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-link .icon { transform: translateX(3px); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-text p { color: inherit; }
.section-dark .split-text > p { color: var(--on-dark); font-size: 1.08rem; }
.split-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.scan-img { border: 1px solid var(--line); }

/* Purpose band */
.purpose-band { background: radial-gradient(120% 90% at 100% 0%, var(--ink-3) 0%, var(--ink) 55%); }
.purpose-rings { position: absolute; left: -180px; bottom: -220px; width: 560px; color: rgba(255,255,255,.05); pointer-events: none; }
.purpose-rings .unity-mark { width: 100%; height: auto; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.pillars li { display: flex; gap: 20px; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); background: rgba(255,255,255,.03); }
.pillars h3 { margin-bottom: .3em; font-size: 1.3rem; }
.pillars p { margin: 0; color: var(--on-dark-muted); }
.pillar-num { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: #f0b39c; padding-top: 4px; letter-spacing: .05em; }

/* Industries */
.industry-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.industry { padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background-color .2s; }
.industry::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--accent); transition: height .25s; }
.industry:hover { background: var(--paper); }
.industry:hover::before { height: 100%; }
.industry h3 { font-size: 1.18rem; margin-bottom: .35em; }
.industry p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .industry-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .industry-grid { grid-template-columns: 1fr; } .industry { padding: 22px 20px; } }

/* Ticks */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks .icon { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; margin-top: 2px; }
.ticks strong { color: var(--ink); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.gallery figure { margin: 0; aspect-ratio: 1; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; filter: saturate(.9); }
.gallery figure:hover img { transform: scale(1.05); filter: saturate(1.05); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery figure:nth-child(n+4) { display: none; } }

/* CTA band */
.cta-band { background: var(--accent-soft); border-top: 1px solid #ecd2c6; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(48px, 7vw, 80px); }
.cta-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .3em; }
.cta-inner p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }
@media (max-width: 820px) { .cta-inner { flex-direction: column; align-items: flex-start; } .cta-actions { width: 100%; } .cta-actions .btn { flex: 1 1 auto; justify-content: center; } }

/* ---------- Page banner ---------- */
.page-banner { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.page-banner-media { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,29,.93) 0%, rgba(10,20,29,.75) 55%, rgba(10,20,29,.45) 100%); z-index: -1; }
.page-banner-inner { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.page-title { color: #fff; margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-sub { color: var(--on-dark); font-size: 1.15rem; margin: 14px 0 0; max-width: 60ch; }

/* ---------- Page content (block editor output) ---------- */
.page-body { padding-block: clamp(48px, 7vw, 88px); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content.narrow { max-width: 780px; }
.entry-content h2 { margin-top: 0; }
.entry-content .wp-block-group { margin-block: 0; }
.entry-content .intro { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.entry-content .lead, .lead, .is-style-lead { font-size: clamp(1.1rem, 1.7vw, 1.28rem); color: var(--muted); line-height: 1.6; }
.entry-content .band { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.entry-content ul:not(.ticks):not(.wp-block-list.is-style-ticks) { padding-left: 1.2em; }
.entry-content .wp-block-columns { gap: clamp(24px, 4vw, 56px); margin-bottom: 0; }
.entry-content .wp-block-image { margin: 0; }
.entry-content .wp-block-image img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.entry-content .wp-block-buttons { margin-top: 1.5em; }
.wp-block-list.is-style-ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.wp-block-list.is-style-ticks li { position: relative; padding-left: 32px; }
.wp-block-list.is-style-ticks li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Service rows */
.service-row { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.service-row .wp-block-columns { align-items: center !important; }
.service-row .wp-block-image img { aspect-ratio: 4 / 3; }
.service-row h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
@media (max-width: 781px) {
	.service-row.is-alt .wp-block-columns { flex-direction: column-reverse; }
}

/* Two-up + pillar cols + media cols */
.two-up > .wp-block-column { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); }
.two-up h3 { font-size: 1.4rem; }
.pillar-cols { margin-top: 28px; }
.pillar-cols > .wp-block-column { border-top: 3px solid var(--accent); padding-top: 22px; }
.pillar-cols h3 { font-size: 1.2rem; }
.pillar-cols p { color: var(--muted); font-size: .98rem; }
.media-cols { align-items: center !important; }
.media-cols .wp-block-image img { aspect-ratio: 4 / 3; }

/* Note box */
.note-box { background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px) !important; margin-top: clamp(40px, 6vw, 72px) !important; position: relative; overflow: hidden; }
.note-box h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.note-box p { max-width: 62ch; }
.note-box::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; border: 2px solid rgba(255,255,255,.07); box-shadow: 0 0 0 40px rgba(255,255,255,.025), 0 0 0 80px rgba(255,255,255,.02); pointer-events: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-label { display: block; font-size: .78rem !important; text-transform: uppercase; letter-spacing: .14em; color: var(--muted) !important; font-weight: 600 !important; margin-bottom: 2px; }
.contact-form-wrap { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); }
.form-title { font-size: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
	font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1px solid #cbc6bc; border-radius: 8px;
	padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185,73,42,.18); }
.form-actions { margin: 8px 0 0; }
.form-actions .btn { width: 100%; justify-content: center; padding: 1.05em; }
.form-notice { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.form-notice.is-success { background: #e3f1e6; color: #1d5b2c; }
.form-notice.is-error { background: #fbe5e0; color: #8a2d17; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: .95rem; padding-top: clamp(56px, 7vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-sub { color: var(--on-dark-muted); }
.footer-tag { margin-top: 18px; max-width: 38ch; }
.footer-heading { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-menu, .footer-contact, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: #f0b39c; width: 18px; height: 18px; margin-top: 3px; }
.footer-ack { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; }
.footer-ack p { margin: 0; font-size: .9rem; max-width: 80ch; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px; font-size: .85rem; }
.footer-legal p { margin: 0; }

/* ---------- Misc ---------- */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { font-size: 1.1rem; color: var(--muted); }
.alignwide { max-width: var(--container); }
.wp-caption, .wp-block-image figcaption { font-size: .88rem; color: var(--muted); }

/* Columns: always stack cleanly on small screens */
.entry-content .wp-block-columns { display: flex; flex-wrap: wrap; }
.entry-content .wp-block-column { min-width: 0; overflow-wrap: break-word; }
@media (min-width: 782px) {
	.entry-content .wp-block-columns { flex-wrap: nowrap; }
	.entry-content .wp-block-column { flex: 1 1 0; }
}
@media (max-width: 781px) {
	.entry-content .wp-block-column { flex: 1 1 100% !important; }
	.entry-content .pillar-cols { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.entry-content .pillar-cols { grid-template-columns: 1fr; }
}

/* Keep text inside boxed/intro groups left-aligned (override constrained-layout centring) */
.entry-content .wp-block-group.is-layout-constrained > * { margin-left: 0 !important; margin-right: 0 !important; }
.entry-content .wp-block-group.is-layout-constrained > .wp-block-columns { max-width: none; }
