/* ==========================================================================
   Makeko — site styles
   Brand orange #ff9933 sampled from the original logo artwork.
   ========================================================================== */

:root {
	--ink:        #16181d;
	--ink-soft:   #4d545e;
	--ink-faint:  #7b838e;
	--rule:       #e4e8ed;
	--bg:         #ffffff;
	--bg-soft:    #f7f9fb;
	--orange:     #ff9933;
	--orange-ink: #b35f00;   /* accessible orange for text on white */
	--maxw:       1120px;
	--measure:    68ch;

	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
	        "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
	        "Liberation Mono", monospace;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }

/* ---------- layout ------------------------------------------------------ */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule); }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--rule); }
section.soft + section { border-top: 1px solid var(--rule); }

.eyebrow {
	font-family: var(--mono);
	font-size: .75rem;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 0 0 1.1em;
}
.eyebrow::before {
	content: "";
	display: inline-block;
	width: 18px; height: 2px;
	background: var(--orange);
	vertical-align: .28em;
	margin-right: .7em;
}

.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

/* ---------- header / nav ------------------------------------------------ */

.site-header {
	border-bottom: 1px solid var(--rule);
	position: sticky; top: 0; z-index: 20;
	background: rgba(255,255,255,.94);
	backdrop-filter: saturate(180%) blur(10px);
}
.site-header .wrap {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; min-height: 72px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 118px; height: auto; }

.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a {
	color: var(--ink-soft);
	text-decoration: none;
	font-size: .95rem;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }

.nav-toggle { display: none; }

/* ---------- hero -------------------------------------------------------- */

.hero { padding: 96px 0 80px; }
.hero h1 { max-width: 20ch; }
.hero .lede { margin-top: 1.2em; }

/* ---------- buttons ----------------------------------------------------- */

.btn {
	display: inline-block;
	background: var(--ink);
	color: #fff;
	text-decoration: none;
	font-size: .95rem;
	font-weight: 550;
	padding: 13px 24px;
	border-radius: 3px;
	border: 1px solid var(--ink);
	transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }

/* ---------- service grid ------------------------------------------------ */

.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid .cell { background: var(--bg); padding: 32px 28px; }
section.soft .grid .cell { background: var(--bg-soft); }
.grid .cell h3 { margin-bottom: .45em; }
.grid .cell p { font-size: .96rem; color: var(--ink-soft); margin-bottom: 0; }
.grid .cell .num {
	font-family: var(--mono);
	font-size: .72rem;
	color: var(--orange-ink);
	letter-spacing: .1em;
	display: block;
	margin-bottom: 1.4em;
}
.grid .cell a.more {
	display: inline-block; margin-top: 1.1em;
	font-size: .9rem; text-decoration: none;
	border-bottom: 1px solid var(--orange);
	padding-bottom: 1px;
}

/* ---------- home quote (per brand guidance: #f7f9fb) -------------------- */

#home-quote {
	background: #f7f9fb;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	padding: 80px 0;
}
#home-quote blockquote {
	margin: 0;
	max-width: 30ch;
	font-size: clamp(1.4rem, 3.2vw, 2rem);
	line-height: 1.35;
	letter-spacing: -0.02em;
	font-weight: 550;
}
#home-quote blockquote p { max-width: none; margin-bottom: .5em; }
#home-quote .attrib {
	font-family: var(--mono);
	font-size: .76rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin: 0;
}

/* ---------- long-form service detail ------------------------------------ */

.service { padding: 64px 0; }
.service:first-of-type { padding-top: 24px; }
.service + .service { border-top: 1px solid var(--rule); }
.service .split { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.service .split h2 { margin: 0; }
.service .split .tag {
	font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
	text-transform: uppercase; color: var(--orange-ink); display: block; margin-bottom: .9em;
}

ul.ticks { list-style: none; margin: 1.4em 0 0; padding: 0; max-width: var(--measure); }
ul.ticks li { position: relative; padding-left: 22px; margin-bottom: .55em; color: var(--ink-soft); }
ul.ticks li::before {
	content: ""; position: absolute; left: 0; top: .62em;
	width: 7px; height: 7px; background: var(--orange); border-radius: 1px;
}

.note {
	border-left: 3px solid var(--orange);
	padding: 4px 0 4px 18px;
	margin: 1.8em 0 0;
	color: var(--ink-soft);
	font-size: .96rem;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- Q&A blocks (answer-engine friendly) ------------------------- */

.qa { max-width: var(--measure); }
.qa h3 { margin-top: 2em; }
.qa h3:first-child { margin-top: 0; }
.qa p { color: var(--ink-soft); }

/* ---------- contact form ------------------------------------------------ */

.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start; }

form.contact { max-width: 560px; }
.field { margin-bottom: 20px; }
.field label {
	display: block; font-size: .87rem; font-weight: 550;
	margin-bottom: 6px; color: var(--ink);
}
.field .hint { font-weight: 400; color: var(--ink-faint); }
.field input[type=text],
.field input[type=email],
.field select,
.field textarea {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: #fff;
	border: 1px solid #cfd6de;
	border-radius: 3px;
	padding: 11px 13px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
	outline: 2px solid var(--orange);
	outline-offset: 0;
	border-color: var(--orange);
}
.field.err input, .field.err textarea, .field.err select { border-color: #c0392b; }
.field .err-msg { color: #c0392b; font-size: .87rem; margin: 6px 0 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .87rem; color: var(--ink-faint); max-width: 52ch; }

.alert {
	border: 1px solid var(--rule);
	border-left: 3px solid var(--orange);
	background: var(--bg-soft);
	padding: 20px 22px;
	margin-bottom: 32px;
	max-width: 560px;
}
.alert.bad { border-left-color: #c0392b; }
.alert h2 { font-size: 1.15rem; margin-bottom: .3em; }
.alert p:last-child { margin-bottom: 0; }

.aside-card { border: 1px solid var(--rule); padding: 26px 24px; }
.aside-card h3 { font-size: .95rem; margin-bottom: .8em; }
.aside-card p, .aside-card address {
	font-size: .95rem; color: var(--ink-soft); font-style: normal; margin: 0 0 1.2em;
}
.aside-card p:last-child, .aside-card address:last-child { margin-bottom: 0; }

/* ---------- footer ------------------------------------------------------ */

.site-footer {
	border-top: 1px solid var(--rule);
	padding: 56px 0 48px;
	font-size: .92rem;
	color: var(--ink-soft);
}
.site-footer .cols {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.site-footer h4 {
	font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
	text-transform: uppercase; color: var(--ink-faint); font-weight: 400; margin-bottom: 1.1em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer address { font-style: normal; }
.site-footer .brand img { width: 100px; margin-bottom: 1.2em; }
.site-footer .fine {
	margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule);
	font-size: .84rem; color: var(--ink-faint);
}
.site-footer .fine p { margin: 0; max-width: none; }

/* ---------- responsive -------------------------------------------------- */

@media (max-width: 900px) {
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.service .split { grid-template-columns: 1fr; gap: 20px; }
	.contact-layout { grid-template-columns: 1fr; gap: 44px; }
	.site-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
	body { font-size: 16px; }
	section { padding: 56px 0; }
	.hero { padding: 64px 0 56px; }
	.grid-3 { grid-template-columns: 1fr; }
	.site-footer .cols { grid-template-columns: 1fr; gap: 32px; }

	.site-header .wrap { flex-wrap: wrap; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
	.nav { width: 100%; }
	.nav ul { gap: 18px; flex-wrap: wrap; }
	.nav a { font-size: .9rem; }
}

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

/* ---------- contact form: ajax states ----------------------------------- */

/* Inline field errors are hidden until validation adds .show */
.err-msg { display: none; color: #c0392b; font-size: .87rem; margin: 6px 0 0; }
.err-msg.show { display: block; }

/* Server-side message area, revealed by the script */
.mail-message-area { display: none; }
.mail-message-area.show { display: block; }

.form-thankyou[hidden] { display: none; }
/* Focus is moved here programmatically so screen readers announce the result;
   that should not paint a ring, but a keyboard user tabbing back still gets one. */
.form-thankyou:focus { outline: none; }
.form-thankyou:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

button.btn { font: inherit; font-size: .95rem; font-weight: 550; cursor: pointer; }
button.btn[disabled] { opacity: .55; cursor: default; }

/* reCAPTCHA v3 puts a floating badge bottom-right; keep it clear of content */
.grecaptcha-badge { z-index: 5; }
