/*
Theme Name: Indoz Modern
Template: immiex
Description: Modern redesign for Indoz Overseas. Child theme of Immiex, keeps all content, menus and forms.
Version: 1.0.0
Text Domain: indoz-modern
*/

/* ===== Tokens ===== */
:root {
	--navy: #14213D;
	--navy-2: #1C2E54;
	--navy-3: #27406F;
	--gold: #E3A008;
	--gold-dk: #B87F00;
	--paper: #F6F8FB;
	--white: #FFFFFF;
	--ink: #1E2738;
	--slate: #4A5568;
	--muted: #6B7689;
	--line: #DCE2EC;
	--wa: #1FA855;
	--focus: #2F7BEA;
	--radius-s: 6px;
	--radius-m: 12px;
	--display: "Sora", "Segoe UI", system-ui, sans-serif;
	--body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--wrap: 1180px;
	--step--1: .875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.5rem;
	--step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
	--step-4: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
}

/* ===== Base ===== */
body.im {
	font-family: var(--body);
	font-size: var(--step-0);
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	padding-bottom: 0;
}
body.im h1, body.im h2, body.im h3, body.im h4, body.im h5, body.im h6 {
	font-family: var(--display);
	color: var(--navy);
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-transform: none;
}
body.im a { color: var(--navy-3); text-underline-offset: 3px; }
body.im a:hover { color: var(--navy); }
body.im :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
body.im img { max-width: 100%; height: auto; }
.im-ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.im-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.im-skip { position: absolute; left: -9999px; top: 8px; z-index: 100000; background: var(--gold); color: var(--navy) !important; padding: 10px 16px; border-radius: var(--radius-s); font-weight: 700; }
.im-skip:focus { left: 8px; }
.im-main:focus { outline: none; }

/* Hide parent-theme chrome we replace */
body.im #loader-wrapper, body.im #scrollUp, body.im .wsmobileheader, body.im #mwacht, body.im .footer-form, body.im .footer-contact-info, body.im .footer-heading-main { display: none !important; }

/* ===== Buttons ===== */
.im-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--display); font-weight: 600; font-size: .95rem;
	padding: .75em 1.25em; border-radius: var(--radius-s);
	border: 2px solid transparent; text-decoration: none !important; line-height: 1.2;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.im-btn-lg { font-size: 1.02rem; padding: .9em 1.5em; }
.im-btn-gold { background: var(--gold); color: var(--navy) !important; }
.im-btn-gold:hover { background: #F2B526; color: var(--navy) !important; }
.im-btn-ghost { border-color: rgba(255,255,255,.45); color: #fff !important; }
.im-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.im-btn-wa { background: var(--wa); color: #fff !important; }
.im-btn-wa:hover { background: #17924A; }
.im-link { display: inline-flex; align-items: center; gap: .4em; font-family: var(--display); font-weight: 600; text-decoration: none !important; color: var(--navy) !important; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.im-link .im-ico { transition: transform .15s ease; }
.im-link:hover .im-ico { transform: translateX(3px); }

/* ===== Utility bar ===== */
.im-util { background: var(--navy); color: #C9D3E6; font-size: var(--step--1); }
.im-util-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.im-util-note { margin: 0; }
.im-util-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.im-util-links a { color: #E6ECF6 !important; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.im-util-links a:hover { color: #fff !important; text-decoration: underline; }

/* ===== Header ===== */
.im-header { position: sticky; top: 0; z-index: 9990; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.admin-bar .im-header { top: 32px; }
.im-header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.im-logo { flex: none; display: block; line-height: 0; }
.im-logo img { width: 132px; height: auto; }
.im-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.im-menu, .im-menu ul { list-style: none; margin: 0; padding: 0; }
.im-menu { display: flex; align-items: center; gap: 4px; }
.im-menu > li { position: relative; }
.im-menu a { text-decoration: none; }
.im-menu > li > a {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--display); font-weight: 600; font-size: .92rem;
	color: var(--navy) !important; padding: 10px 12px; border-radius: var(--radius-s);
}
.im-menu > li > a:hover, .im-menu > li:focus-within > a { background: var(--paper); }
.im-menu > li.menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); opacity: .6;
}
.im-menu .sub-menu {
	position: absolute; left: 0; top: calc(100% + 6px); min-width: 260px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
	box-shadow: 0 18px 40px -18px rgba(20,33,61,.35); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
	z-index: 50;
}
.im-menu > li:hover > .sub-menu, .im-menu > li:focus-within > .sub-menu, .im-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.im-menu .sub-menu li { position: relative; }
.im-menu .sub-menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--ink) !important; font-size: .97rem; line-height: 1.3; }
.im-menu .sub-menu a:hover, .im-menu .sub-menu li:focus-within > a { background: var(--paper); color: var(--navy) !important; }
.im-menu .sub-menu .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); opacity: .5; }
.im-menu .sub-menu .sub-menu { left: calc(100% + 6px); top: -9px; max-height: 70vh; overflow: auto; }
.im-menu .sub-menu li:hover > .sub-menu, .im-menu .sub-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.im-nav-extra { display: flex; align-items: center; gap: 14px; }
.im-nav-plain { font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--navy) !important; text-decoration: none; }
.im-nav-plain:hover { text-decoration: underline; }
.im-burger { display: none; }

/* ===== Title band (inner pages) ===== */
.im-band { background: var(--navy); color: #fff; padding: 44px 0 40px; position: relative; overflow: hidden; }
.im-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border: 40px solid rgba(227,160,8,.12); border-radius: 50%; }
.im-band-title { color: #fff !important; font-size: var(--step-4); margin: 6px 0 0; max-width: 22ch; position: relative; z-index: 1; }
.im-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: var(--step--1); color: #C9D3E6; position: relative; z-index: 1; }
.im-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.im-crumbs a { color: #E6ECF6 !important; }
.im-crumbs span[property="name"] { color: #C9D3E6; }
body.single-post .im-band { padding: 22px 0; }

/* ===== Hero ===== */
.im-hero { background: var(--navy); color: #E9EEF7; padding: 72px 0 84px; position: relative; overflow: hidden; }
.im-hero::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(circle at 85% 20%, rgba(227,160,8,.10), transparent 40%),
		repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 72px);
	pointer-events: none;
}
.im-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.im-hero-kicker { color: var(--gold); font-weight: 600; margin: 0 0 14px; }
.im-hero-title { color: #fff !important; font-size: var(--step-4); font-weight: 700; margin: 0 0 18px; max-width: 16ch; line-height: 1.12; }
.im-hero-lead { font-size: 1.15rem; max-width: 54ch; margin: 0 0 28px; color: #D4DCEA; }
.im-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.im-hero-licence { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); color: #C9D3E6; max-width: 52ch; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.im-hero-licence .im-ico { color: var(--gold); margin-top: 2px; }
.im-hero-licence a { color: #fff !important; }

/* Departures board */
.im-board { background: #0D1730; border-radius: var(--radius-m); padding: 10px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06); }
.im-board-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px 12px; font-family: var(--display); font-weight: 600; color: #fff; font-size: 1rem; }
.im-board-status { font-family: var(--body); font-weight: 400; font-size: var(--step--1); color: #8E9BB5; }
.im-board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.im-board-list a {
	display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
	padding: 12px; border-radius: 8px; text-decoration: none !important; color: #E9EEF7 !important;
	background: rgba(255,255,255,.025); transition: background-color .15s ease;
}
.im-board-list a:hover, .im-board-list a:focus-visible { background: rgba(227,160,8,.12); }
.im-board-list a .im-ico { color: var(--gold); opacity: .0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.im-board-list a:hover .im-ico, .im-board-list a:focus-visible .im-ico { opacity: 1; transform: none; }
.im-board-code { display: inline-flex; gap: 3px; }
.im-board-code span {
	display: inline-grid; place-items: center; width: 26px; height: 34px;
	background: linear-gradient(#1B2747 0 49%, #0A1226 49% 51%, #17223F 51%);
	border-radius: 4px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--gold);
	font-variant-numeric: tabular-nums;
}
.im-board-txt { display: grid; gap: 1px; min-width: 0; }
.im-board-txt strong { font-family: var(--display); font-weight: 600; color: #fff; font-size: 1rem; }
.im-board-txt span { font-size: .9rem; color: #9FABC3; line-height: 1.35; }

@media (prefers-reduced-motion: no-preference) {
	.im-board-code span { animation: im-flip .5s cubic-bezier(.3,.7,.3,1) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); transform-origin: 50% 50%; }
	.im-board-code span:nth-child(2) { animation-delay: calc(var(--i, 0) * 90ms + 210ms); }
	.im-board-code span:nth-child(3) { animation-delay: calc(var(--i, 0) * 90ms + 270ms); }
}
@keyframes im-flip { 0% { transform: rotateX(90deg); } 60% { transform: rotateX(-12deg); } 100% { transform: none; } }

/* ===== Sections ===== */
.im-section { padding: 88px 0; }
.im-h2 { font-size: var(--step-3); margin: 0 0 16px; }
.im-section-head { max-width: 640px; margin-bottom: 40px; }
.im-section-head p { color: var(--slate); margin: 0; font-size: 1.1rem; }
.im-section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; }

/* Assessment */
.im-assess { background: var(--paper); }
.im-assess-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.im-steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; gap: 26px; }
.im-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
.im-steps li::before {
	content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; background: var(--navy); color: var(--gold);
	font-family: var(--display); font-weight: 700;
}
.im-steps h3 { font-size: var(--step-1); margin: 8px 0 4px; }
.im-steps p { margin: 0; color: var(--slate); max-width: 52ch; }
.im-formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 30px; box-shadow: 0 24px 50px -32px rgba(20,33,61,.4); }
.im-formcard-title { font-size: var(--step-1); margin: 0 0 6px; }
.im-formcard #request-form, .im-formcard .request-form { margin: 0 !important; padding: 0 !important; background: none !important; }
.im-formcard .request-form h2 { display: none; }
.im-formcard .request-form > div { padding: 0 !important; max-width: 100%; flex: 0 0 100%; }

/* Contact Form 7 (site-wide) */
body.im .wpcf7 input[type="text"], body.im .wpcf7 input[type="email"], body.im .wpcf7 input[type="tel"], body.im .wpcf7 select, body.im .wpcf7 textarea, body.im .wpcf7 .form-control {
	width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
	background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-s);
	padding: 12px 14px; height: auto; margin: 6px 0 10px; box-shadow: none;
}
body.im .wpcf7 textarea { min-height: 110px; resize: vertical; }
body.im .wpcf7 input:focus, body.im .wpcf7 textarea:focus, body.im .wpcf7 select:focus { border-color: var(--navy-3); outline: 3px solid rgba(47,123,234,.25); outline-offset: 0; }
body.im .wpcf7 input[type="submit"], body.im .wpcf7 .btn {
	width: 100%; background: var(--gold) !important; color: var(--navy) !important; border: 0 !important;
	font-family: var(--display); font-weight: 600; font-size: 1rem; padding: 14px 20px; border-radius: var(--radius-s);
	cursor: pointer; text-transform: none; letter-spacing: 0; margin-top: 6px;
}
body.im .wpcf7 input[type="submit"]:hover { background: #F2B526 !important; }
body.im .wpcf7-not-valid-tip { font-size: .9rem; color: #B42318; }
body.im .wpcf7 form .wpcf7-response-output { margin: 12px 0 0; border-radius: var(--radius-s); font-size: .95rem; }

/* Services */
.im-service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.im-service-list li { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); }
.im-service-list li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.im-service-list h3 { font-size: var(--step-1); margin: 0 0 8px; }
.im-service-list h3 a { color: var(--navy) !important; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .2s ease; }
.im-service-list h3 a:hover { background-size: 100% 2px; }
.im-service-list p { margin: 0; color: var(--slate); }
.im-services-more { margin: 28px 0 0; color: var(--slate); }

/* Offices */
.im-offices { background: var(--navy); color: #D4DCEA; }
.im-offices .im-h2 { color: #fff; }
.im-offices-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.im-offices-intro p { max-width: 46ch; margin: 0 0 24px; }
.im-offices .im-link { color: #fff !important; }
.im-office-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.im-office-list li { padding: 22px 22px 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.im-office-list li:nth-child(even) { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.14); }
.im-office-list h3 { color: var(--gold) !important; font-size: 1.02rem; margin: 0 0 6px; }
.im-office-list p { margin: 0 0 6px; font-size: .97rem; }
.im-office-list a { color: #fff !important; font-weight: 600; text-decoration: none; }
.im-office-list a:hover { text-decoration: underline; }

/* Testimonials */
.im-quote-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 64px; }
.im-quote-list figure { margin: 0; }
.im-quote-list blockquote { margin: 0 0 14px; padding: 0 0 0 20px; border-left: 3px solid var(--gold); }
.im-quote-list blockquote p { font-size: 1.15rem; line-height: 1.55; color: var(--ink); margin: 0; }
.im-quote-list figcaption { color: var(--slate); padding-left: 23px; }
.im-quote-list figcaption strong { color: var(--navy); }
.im-quote-list figcaption span { display: block; font-size: var(--step--1); color: var(--muted); }

/* FAQ */
.im-faq { background: var(--paper); }
.im-faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: start; }
.im-faq-grid > div:first-child p { color: var(--slate); }
.im-faq-body .sp-easy-accordion .sp-ea-single { border: 0 !important; border-bottom: 1px solid var(--line) !important; background: transparent !important; margin: 0 !important; border-radius: 0 !important; }
.im-faq-body .sp-easy-accordion .ea-header a { font-family: var(--display) !important; font-weight: 600 !important; font-size: 1.05rem !important; color: var(--navy) !important; padding: 18px 0 !important; background: transparent !important; }
.im-faq-body .sp-easy-accordion .ea-body { padding: 0 0 18px !important; color: var(--slate) !important; background: transparent !important; font-size: 1rem !important; }
.im-faq-body .ea-expand-icon { color: var(--gold) !important; }

/* Blog list */
.im-post-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.im-post-list li { border-top: 3px solid var(--navy); padding-top: 18px; }
.im-post-list time { font-size: var(--step--1); color: var(--muted); }
.im-post-list h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.im-post-list h3 a { color: var(--navy) !important; text-decoration: none; }
.im-post-list h3 a:hover { text-decoration: underline; }
.im-post-list p { margin: 0; color: var(--slate); font-size: 1rem; }

/* CTA band */
.im-cta { background: var(--gold); color: var(--navy); padding: 52px 0; }
.im-cta-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.im-cta-title { font-size: var(--step-3); margin: 0 0 6px; color: var(--navy) !important; }
.im-cta p { margin: 0; max-width: 60ch; font-size: 1.08rem; }
.im-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
.im-cta .im-btn-gold { background: var(--navy); color: #fff !important; }
.im-cta .im-btn-gold:hover { background: var(--navy-2); color: #fff !important; }

/* Footer */
.im-footer { background: #0E1830; color: #AEB9CE; padding: 64px 0 0; font-size: .98rem; }
.im-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; }
.im-footer-brand img { width: 128px; background: #fff; padding: 8px 10px; border-radius: var(--radius-s); margin-bottom: 16px; }
.im-footer-brand p { margin: 0 0 14px; max-width: 40ch; }
.im-licence { font-size: .92rem; }
.im-footer a { color: #E6ECF6 !important; text-decoration: none; }
.im-footer a:hover { color: #fff !important; text-decoration: underline; }
.im-footer h2 { color: #fff !important; font-size: 1rem; margin: 0 0 14px; }
.im-footer ul { list-style: none; margin: 0; padding: 0; }
.im-footer-col li { margin-bottom: 8px; }
.im-social { display: flex; gap: 16px; }
.im-footer-addr, .im-footer-hours { margin: 12px 0 0; font-size: .92rem; }
.im-footer-small { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px !important; }
.im-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 18px; padding-bottom: 22px; font-size: var(--step--1); }
.im-footer-bottom p { margin: 0; }

/* Quick actions */
.im-quick { position: fixed; right: 20px; bottom: 20px; z-index: 9980; display: flex; gap: 10px; align-items: center; }
.im-quick-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: .92rem; padding: 12px 16px; border-radius: 999px; text-decoration: none !important; box-shadow: 0 10px 24px -10px rgba(14,24,48,.55); }
.im-quick-call { display: none; }
.im-quick-wa { background: var(--wa); color: #fff !important; }
.im-quick-ask { background: var(--navy); color: #fff; }
.im-quick-ask:hover { background: var(--navy-2); }

/* Dialog */
.im-dialog { border: 0; border-radius: var(--radius-m); padding: 26px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(14,24,48,.6); }
.im-dialog::backdrop { background: rgba(14,24,48,.55); }
.im-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.im-dialog-head h2 { font-size: var(--step-2); margin: 0; }
.im-dialog-close { border: 0; background: var(--paper); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.im-dialog-note { color: var(--slate); margin: 6px 0 12px; }
.im-dialog .heading-look { display: none; }

/* ===== Inner page content ===== */
body.im:not(.home) .im-main .page-content, body.im .im-main .single-post-txt, body.im .im-main .blog-post-txt { font-size: 1.08rem; color: var(--ink); }
body.im:not(.home) .im-main #blog-page, body.im:not(.home) .im-main .blog-page-section, body.im:not(.home) .im-main .page-content-section { padding-top: 56px; padding-bottom: 64px; }
body.im:not(.home) .im-main .page-content h2 { font-size: var(--step-2); margin: 1.8em 0 .5em; }
body.im:not(.home) .im-main .page-content h3 { font-size: var(--step-1); margin: 1.5em 0 .4em; }
body.im:not(.home) .im-main .page-content p, body.im:not(.home) .im-main .page-content li { color: var(--slate); line-height: 1.7; }
body.im:not(.home) .im-main .page-content > .page-content > p,
body.im:not(.home) .im-main .page-content > .page-content > h2,
body.im:not(.home) .im-main .page-content > .page-content > h3,
body.im:not(.home) .im-main .page-content > .page-content > ul { max-width: 74ch; }
body.im .im-main .page-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .98rem; }
body.im .im-main .page-content th, body.im .im-main .page-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
body.im .im-main .page-content th { background: var(--paper); color: var(--navy); }
body.im .im-main .ez-toc-container, body.im .im-main #ez-toc-container { background: var(--paper) !important; border: 1px solid var(--line) !important; border-radius: var(--radius-m) !important; padding: 16px 20px !important; box-shadow: none !important; }
body.im .im-main .sidebar-div .widget, body.im .im-main #sidebar .widget { border-radius: var(--radius-m); }
body.im .btn-primary, body.im .btn.btn-primary { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--navy) !important; font-family: var(--display); text-transform: none; }
body.im .bg-lightgrey { background-color: var(--paper) !important; }
/* Parent sections reused in some pages */
body.im .wide-60, body.im .wide-100 { padding-top: 56px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
	.im-menu > li > a { padding: 10px 8px; font-size: .88rem; }
	.im-nav-plain { display: none; }
}
@media (max-width: 991px) {
	.im-util-note { display: none; }
	.im-util-row { justify-content: center; }
	.im-header-row { min-height: 64px; justify-content: space-between; }
	.im-logo img { width: 112px; }
	.im-burger { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-s); padding: 9px 12px; font-family: var(--display); font-weight: 600; color: var(--navy); cursor: pointer; }
	.im-burger-lines, .im-burger-lines::before, .im-burger-lines::after { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; transition: transform .2s; }
	.im-burger-lines::before, .im-burger-lines::after { content: ""; position: absolute; left: 0; }
	.im-burger-lines::before { top: -6px; } .im-burger-lines::after { top: 6px; }
	.im-burger[aria-expanded="true"] .im-burger-lines { background: transparent; }
	.im-burger[aria-expanded="true"] .im-burger-lines::before { transform: translateY(6px) rotate(45deg); }
	.im-burger[aria-expanded="true"] .im-burger-lines::after { transform: translateY(-6px) rotate(-45deg); }
	.im-nav { display: none; position: fixed; left: 0; right: 0; top: var(--im-header-h, 102px); bottom: 0; background: #fff; overflow-y: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 12px 20px 120px; border-top: 1px solid var(--line); }
	.im-nav.is-open { display: flex; }
	.im-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.im-menu > li { border-bottom: 1px solid var(--line); }
	.im-menu > li > a { width: 100%; justify-content: space-between; padding: 15px 4px; font-size: 1.02rem; border-radius: 0; }
	.im-menu > li > a:hover { background: none; }
	.im-menu .sub-menu, .im-menu .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 12px; min-width: 0; display: none; max-height: none; }
	.im-menu li.is-open > .sub-menu { display: block; }
	.im-menu > li:hover > .sub-menu, .im-menu > li:focus-within > .sub-menu { display: none; }
	.im-menu > li.is-open > .sub-menu, .im-menu .sub-menu li.is-open > .sub-menu { display: block; }
	.im-menu li.menu-item-has-children > a::after { transition: transform .2s; }
	.im-menu li.is-open > a::after { transform: rotate(-135deg); }
	.im-nav-extra { flex-direction: column; align-items: stretch; margin-top: 18px; }
	.im-nav-extra .im-nav-plain { display: block; padding: 10px 4px; }
	.im-nav-extra .im-btn { width: 100%; }
	body.im-nav-open { overflow: hidden; }

	.im-hero { padding: 48px 0 56px; }
	.im-hero-grid, .im-assess-grid, .im-offices-grid, .im-faq-grid { grid-template-columns: 1fr; gap: 40px; }
	.im-service-list { grid-template-columns: 1fr 1fr; }
	.im-service-list li, .im-service-list li:not(:nth-child(3n+1)) { padding: 24px 20px 24px 0; border-left: 0; }
	.im-service-list li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
	.im-post-list { grid-template-columns: 1fr; gap: 28px; }
	.im-footer-grid { grid-template-columns: 1fr 1fr; }
	.im-cta-row { flex-direction: column; align-items: flex-start; }
	.im-section { padding: 64px 0; }
}
@media (max-width: 640px) {
	.im-wrap { padding: 0 18px; }
	.im-util { display: none; }
	.im-hero-title { font-size: 2rem; }
	.im-hero-actions .im-btn { width: 100%; }
	.im-board-list a { grid-template-columns: auto 1fr; gap: 12px; padding: 10px; }
	.im-board-list a .im-ico { display: none; }
	.im-board-code span { width: 22px; height: 30px; font-size: .95rem; }
	.im-service-list { grid-template-columns: 1fr; }
	.im-service-list li, .im-service-list li:nth-child(even) { padding: 22px 0; border-left: 0; }
	.im-office-list { grid-template-columns: 1fr; }
	.im-office-list li, .im-office-list li:nth-child(even) { padding: 18px 0; border-left: 0; }
	.im-quote-list { grid-template-columns: 1fr; gap: 32px; }
	.im-formcard { padding: 22px; }
	.im-footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.im-band { padding: 30px 0 28px; }
	/* bottom bar replaces floating buttons */
	.im-quick { left: 0; right: 0; bottom: 0; gap: 0; background: var(--navy); box-shadow: 0 -8px 20px -12px rgba(0,0,0,.5); padding-bottom: env(safe-area-inset-bottom); }
	.im-quick-btn { flex: 1; justify-content: center; border-radius: 0; box-shadow: none; padding: 14px 6px; font-size: .9rem; background: transparent; color: #fff !important; }
	.im-quick-call { display: inline-flex; }
	.im-quick-wa { background: var(--wa); }
	body.im { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* Readable measure for text pages and articles */
body.im .im-main .immiex-page-content .page-content > :is(p, h2, h3, h4, ul, ol, blockquote, .wp-block-image, figure),
body.im .im-main .immiex-page-content .page-content > .page-content > :is(p, h2, h3, h4, ul, ol, blockquote, figure) { max-width: 760px; }
/* End-of-page prompt */
.im-endcta { max-width: 760px; margin: 48px 0 8px; padding: 26px 28px; background: var(--navy); color: #D4DCEA; border-radius: var(--radius-m); display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: center; }
.im-endcta h2 { color: #fff !important; font-size: var(--step-1) !important; margin: 0 0 4px !important; }
.im-endcta p { color: #C9D3E6 !important; margin: 0 !important; font-size: 1rem; }
.im-endcta .im-btn { white-space: nowrap; }
@media (max-width: 640px) { .im-endcta { grid-template-columns: 1fr; } .im-endcta .im-btn { width: 100%; } }
/* Empty legacy icon placeholders */
body.im .contact-box-icon:empty, body.im .abox-3-icon:empty, body.im .box-list-icon:empty { display: none; }
body.im .contact-box h5 { margin-top: 0; }
/* Empty legacy icon placeholders */
body.im .contact-box-icon:empty, body.im .abox-3-icon:empty, body.im .box-list-icon:empty { display: none; }
body.im .contact-box h5 { margin-top: 0; }

/* Restore normal window scrolling (parent theme scrolls inside body), so the sticky header works */
html:has(body.im), body.im { overflow-x: clip !important; overflow-y: visible !important; height: auto !important; }
body.im.im-nav-open { overflow: hidden !important; }
@media (max-width: 640px) { .im-quick-btn { white-space: nowrap; font-size: .85rem; padding: 14px 4px; gap: 6px; } }

/* Parent menu script wraps the page in .wsmenucontainer (overflow hidden) - neutralise so sticky + fixed work */
html body.im, html body.im .wsmenucontainer { overflow-x: clip !important; overflow-y: visible !important; }
html body.im .wsmenucontainer { transform: none !important; }
.im-header { backdrop-filter: none !important; background: #fff !important; }
html body.im.im-nav-open { overflow-x: clip !important; overflow-y: visible !important; }
.im-nav { overscroll-behavior: contain; }

/* ===== Polish pass ===== */
.im-hero-points { list-style: none; margin: -8px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .97rem; color: #DCE4F2; }
.im-hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.im-hero-points .im-ico { color: var(--gold); }
.im-service-list li { position: relative; }
.im-svc-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #FFF4D6; margin-bottom: 14px; }
.im-svc-ico svg { width: 22px; height: 22px; fill: var(--navy); }
.im-quotes { background: var(--paper); }
.im-quotes + .im-faq { background: #fff; }
.im-quote-list figure { background: #fff; border-radius: var(--radius-m); padding: 28px 28px 24px; height: 100%; box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(20,33,61,.35); position: relative; }
.im-quote-list figure::before { content: "\201C"; position: absolute; top: 4px; right: 22px; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: rgba(227,160,8,.28); }
.im-quote-list blockquote { border-left: 0; padding: 0; }
.im-quote-list figcaption { padding-left: 0; }
.im-post-img { display: block; margin: -18px 0 16px; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper); }
.im-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.im-post-list li:hover .im-post-img img { transform: scale(1.03); }
.im-post-list li { border-top: 0; padding-top: 18px; }
@media (max-width: 640px) { .im-hero-points { flex-direction: column; gap: 6px; } }