/*
Theme Name: Certified Care
Theme URI: https://certifiedcares.com
Author: Certified Care
Description: A fast, modern, accessible and SEO-friendly theme for Certified Care home care services, with client portal styling.
Version: 1.2.3
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: certified-care
*/

/* ---------- Tokens ---------- */
:root {
	--brand: #0e7c86;
	--brand-600: #0b6870;
	--brand-400: #14a3a8;
	--brand-50: #e9f7f7;
	--brand-100: #d2efef;
	--navy: #0b2540;
	--navy-800: #10304f;
	--ink: #142235;
	--muted: #5b6b7f;
	--line: #e3e9ef;
	--soft: #f4f8fa;
	--white: #fff;
	--warm: #e8893a;
	--warm-50: #fff4e8;
	--success: #15803d;
	--danger: #c2410c;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow-sm: 0 1px 2px rgba(11, 37, 64, .06), 0 2px 8px rgba(11, 37, 64, .04);
	--shadow: 0 10px 30px -10px rgba(11, 37, 64, .18);
	--shadow-lg: 0 30px 60px -20px rgba(11, 37, 64, .28);
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1200px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4, .h3, .h4 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3, .h3 { font-size: 1.45rem; }
h4, .h4 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 2.5rem; }
.center .btn-row { justify-content: center; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 10px; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* ---------- Icons & badges ---------- */
.icon { width: 1.1em; height: 1.1em; flex: none; }
.icon-badge {
	display: inline-grid; place-items: center;
	width: 48px; height: 48px; border-radius: 14px;
	background: var(--brand-50); color: var(--brand);
	flex: none;
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--warm { background: var(--warm-50); color: var(--warm); }
.icon-badge--lg { width: 60px; height: 60px; border-radius: 18px; }
.icon-badge--lg .icon { width: 28px; height: 28px; }

.eyebrow {
	display: inline-flex; align-items: center; gap: .45rem;
	font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
	color: var(--brand); margin-bottom: 1rem;
}
.eyebrow--pill { background: var(--white); border: 1px solid var(--brand-100); padding: .45rem .9rem; border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: .9rem; box-shadow: var(--shadow-sm); }
.eyebrow--pill .icon { color: #e05a6b; fill: #e05a6b; }
.eyebrow--light { color: #7fd6d8; }
.text-grad { background: linear-gradient(100deg, var(--brand-400), var(--brand-600) 60%, var(--navy)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
	--b: var(--brand);
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
	padding: 1rem 1.45rem; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--brand-400), var(--brand-600)) border-box; border-color: transparent; color: #fff; box-shadow: 0 10px 24px -8px rgba(14, 124, 134, .6); }
.btn--primary:hover { color: #fff; box-shadow: 0 14px 28px -8px rgba(14, 124, 134, .7); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { color: var(--brand); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { padding: .7rem 1.05rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--navy); color: #c9d7e4; font-size: .86rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar__right { display: flex; gap: 1.4rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .4rem; color: #c9d7e4; }
a.topbar__item:hover { color: #fff; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .85);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(11, 37, 64, .2); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); font-size: 1.32rem; letter-spacing: -.02em; font-weight: 600; }
.brand:hover { color: var(--navy); }
.brand strong { font-weight: 800; color: var(--brand); }
.brand__mark svg { width: 42px; height: 42px; }
.brand__img { max-height: 56px; width: auto; }
.brand--light { color: #fff; }
.brand--light:hover { color: #fff; }
.brand--light strong { color: #7fd6d8; }

.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav .menu { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.main-nav .menu a { display: block; padding: .55rem .85rem; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .98rem; }
.main-nav .menu a:hover, .main-nav .menu .current-menu-item > a, .main-nav .menu .current_page_item > a { color: var(--brand); background: var(--brand-50); }
.main-nav .menu li { position: relative; }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; margin: 0; padding: .5rem; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 70; }
.main-nav .menu li:hover > .sub-menu, .main-nav .menu li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { border-radius: 10px; white-space: nowrap; }
.main-nav__actions { display: flex; gap: .6rem; }
.nav-toggle { display: none; background: var(--brand-50); color: var(--navy); border: 0; width: 46px; height: 46px; border-radius: 14px; cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__bg {
	position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(900px 500px at 85% 10%, rgba(20, 163, 168, .16), transparent 60%),
		radial-gradient(700px 400px at 0% 100%, rgba(232, 137, 58, .10), transparent 60%),
		linear-gradient(180deg, #f6fbfb, #fff);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero__trust { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust .icon { color: var(--brand); }
.hero__art svg { width: 100%; animation: float 7s ease-in-out infinite; }
.hero__photo img { border-radius: 32px; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; object-fit: cover; width: 100%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Pillars ---------- */
.pillars { margin-top: -1rem; position: relative; z-index: 2; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pillar { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.pillar h2 { margin-bottom: .3rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: radial-gradient(800px 400px at 100% 0%, rgba(20, 163, 168, .25), transparent 60%), var(--navy); color: #c9d7e4; }
.section--dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head--left { text-align: left; margin-left: 0; }
.group-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 2.5rem 0 1.2rem; font-weight: 700; }
.group-title:first-of-type { margin-top: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split--center { align-items: center; }
.split__copy p { color: var(--muted); }
.section--dark .split__copy p { color: #b5c6d6; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { background: var(--brand-50); border-radius: var(--radius); padding: 1.8rem 1.5rem; display: flex; flex-direction: column; gap: .3rem; }
.stat strong { font-size: 2.4rem; line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-weight: 600; font-size: .95rem; }
.stat--accent { background: var(--warm-50); }
.stat--dark { background: var(--navy); }
.stat--dark strong { color: #fff; }
.stat--dark span { color: #a9c1d6; }
.stats .stat:nth-child(2) { transform: translateY(1.5rem); }
.stats .stat:nth-child(4) { transform: translateY(1.5rem); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.75rem; box-shadow: var(--shadow-sm);
	display: flex; flex-direction: column; gap: .2rem;
}
.card .icon-badge { margin-bottom: 1rem; }
.card h3, .card h4 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: .8rem; }
.card--link { color: inherit; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card--link:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--brand); font-size: .93rem; }
.card--feature { background: linear-gradient(160deg, var(--brand-50), #fff); border-color: var(--brand-100); padding: 2.2rem; }
.card--feature h3 { margin-top: .4rem; }
.card--dark { background: var(--navy); border-color: var(--navy); color: #c9d7e4; margin-top: 1.5rem; }
.card--dark h3 { color: #fff; }
.card--dark p { color: #b5c6d6; }
.course .link-arrow { margin-top: auto; }
.course__meta { font-size: .82rem; font-weight: 700; color: var(--brand); background: var(--brand-50); align-self: flex-start; padding: .25rem .6rem; border-radius: 999px; margin-bottom: 1rem; }

/* ---------- Service list ---------- */
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.service-item { display: flex; gap: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; scroll-margin-top: 110px; box-shadow: var(--shadow-sm); }
.service-item h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.service-item p { color: var(--muted); }
.service-item:target { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; position: relative; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; box-shadow: var(--shadow-sm); }
.step__num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 1.1rem; box-shadow: 0 8px 18px -6px rgba(14, 124, 134, .6); }
.step p { color: var(--muted); margin: 0; }

/* ---------- Chips ---------- */
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #e6eef5; font-weight: 600; font-size: .95rem; }
.chip .icon { color: #7fd6d8; }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.check-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--brand-50); color: var(--brand); stroke-width: 3; margin-top: 2px; }

/* ---------- Portal mock ---------- */
.portal-mock { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.portal-mock__bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.portal-mock__bar span { width: 11px; height: 11px; border-radius: 50%; background: #d6dee6; }
.portal-mock__bar span:first-child { background: #f87171; }
.portal-mock__bar span:nth-child(2) { background: #fbbf24; }
.portal-mock__bar span:nth-child(3) { background: #34d399; }
.portal-mock__body { display: grid; grid-template-columns: 70px 1fr; min-height: 300px; }
.portal-mock__side { background: var(--navy); padding: 18px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.portal-mock__side i { width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.portal-mock__side i.on { background: var(--brand-400); }
.portal-mock__main { padding: 22px; }
.pm-title { font-weight: 800; color: var(--navy); margin: 6px 0 12px; font-size: .95rem; }
.pm-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; font-size: .92rem; }
.pm-row b { color: var(--ink); font-weight: 600; }
.pm-row em { font-style: normal; font-size: .78rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; }
.pm-row .ok { background: #dcfce7; color: var(--success); }
.pm-row .wait { background: var(--warm-50); color: #9a4a0b; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.4rem; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.2rem 2rem 1.2rem 0; font-weight: 700; color: var(--navy); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: translateY(-75%) rotate(45deg); transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq__item p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: linear-gradient(180deg, #f2fafa, #fff); text-align: center; }
.page-hero .lead { margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.page-hero__glow { position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(closest-side, rgba(20, 163, 168, .14), transparent); z-index: -1; }
.page-hero { isolation: isolate; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(4rem, 7vw, 6rem); }
.section--soft + .cta-band, .section + .cta-band { padding-top: clamp(3rem, 5vw, 4rem); }
.section--soft + .cta-band { background: linear-gradient(180deg, var(--soft) 50%, #fff 50%); }
.cta-band__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
	background: radial-gradient(600px 300px at 100% 0%, rgba(127, 214, 216, .35), transparent 60%), linear-gradient(135deg, var(--brand-600), var(--navy));
	border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); color: #d7e6ef; box-shadow: var(--shadow-lg);
}
.cta-band__inner h2 { color: #fff; margin-bottom: .3em; }
.cta-band__inner p { margin: 0; max-width: 34em; }
.cta-band__inner .btn-row { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list strong { display: block; color: var(--navy); font-size: .9rem; }
.contact-list a, .contact-list span { color: var(--muted); }
.contact-form-card { padding: clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- Entry content ---------- */
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-thumb img { border-radius: var(--radius); }
.post-card__img img { border-radius: var(--radius-sm); margin-bottom: 1rem; aspect-ratio: 16/9; object-fit: cover; }
.post-card h2 a { color: var(--navy); }
.pagination { margin-top: 2rem; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--line); margin: 0 .15rem; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- App shell (login/register/portal pages) ---------- */
.app-shell { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 7vw, 6rem); background: linear-gradient(180deg, #f2fafa, var(--soft)); min-height: 70vh; isolation: isolate; }
.app-shell__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 90% 0%, rgba(20, 163, 168, .14), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(232, 137, 58, .08), transparent 60%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9c1d6; padding: 4.5rem 0 0; font-size: .96rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer__brand p { margin-top: 1.2rem; max-width: 26em; }
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: 0; }
.site-footer__links, .site-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.site-footer a { color: #a9c1d6; }
.site-footer a:hover { color: #fff; }
.site-footer__contact li { display: flex; gap: .65rem; align-items: flex-start; }
.site-footer__contact .icon { color: #7fd6d8; margin-top: .3rem; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.footer-menu { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.hero__art svg { animation: none; }
	.btn, .card--link { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.card-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.main-nav .menu a { padding: .5rem .6rem; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.nav-toggle { display: grid; }
	.main-nav {
		position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
		flex-direction: column; align-items: stretch; gap: 1rem;
		background: #fff; padding: 1.2rem 24px 1.6rem; border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-lg);
		transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
		transition: opacity .2s, transform .2s, visibility .2s;
		max-height: calc(100vh - 80px); overflow-y: auto;
	}
	.main-nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .menu a { padding: .85rem 1rem; font-size: 1.05rem; }
	.main-nav .sub-menu { display: block; position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
	.main-nav .menu-item-has-children > a::after { display: none; }
	.main-nav__actions { flex-direction: column; }
	.main-nav__actions .btn { width: 100%; padding: .95rem; }
	.hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
	.hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
	.pillars__grid, .card-grid, .steps, .service-list { grid-template-columns: 1fr 1fr; }
	.portal-mock { order: 2; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { padding: 0 18px; }
	.topbar__inner > .topbar__item:first-child { display: none; }
	.topbar__inner { justify-content: center; }
	.pillars__grid, .card-grid, .card-grid--4, .steps, .service-list, .site-footer__grid { grid-template-columns: 1fr; }
	.stats .stat:nth-child(2), .stats .stat:nth-child(4) { transform: none; }
	.stat strong { font-size: 2rem; }
	.btn-row .btn { flex: 1 1 100%; }
	.service-item { flex-direction: column; }
	.cta-band__inner .btn-row { width: 100%; }
	.admin-bar .site-header { top: 0; }
}
