/*
Theme Name: DMS CCTV Control
Author: Yuseph
Description: DMS Security Website 2026
Version: 1.0.202610221847
Requires at least: 6.0
Requires PHP: 7.0
*/
/* DMS CCTV Control Ltd. Brand: navy, white, logo blue and logo grey. */
:root {
  --navy: #141b4d;
  --navy-deep: #0c1134;
  --blue: #2e3192;
  --blue-soft: #eef0fb;
  --tile: #6d6f73;
  --light: #f4f5f9;
  --line: #e3e5ee;
  --ink: #1d2033;
  --body: #3b3f52;
  --muted: #5b6070;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 27, 77, .05), 0 10px 28px -14px rgba(20, 27, 77, .22);
  --lift: 0 6px 16px rgba(20, 27, 77, .08), 0 26px 48px -20px rgba(20, 27, 77, .35);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 80px;
  --slant: 56px;
}

/* Base */
:root { color-scheme: only light; }
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html, .track { scroll-behavior: smooth; } }
body { margin: 0; font: 16px/1.7 'Open Sans', system-ui, sans-serif; color: var(--body); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: Poppins, system-ui, sans-serif; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
a, button, summary { transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
:focus-visible { outline: 3px solid #f5b800; outline-offset: 2px; box-shadow: 0 0 0 7px var(--navy-deep); border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: #fff; color: var(--navy); font-weight: 700; }
.skip:focus { top: 12px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.section { padding: 80px 0; }
.section.alt { background: var(--light) radial-gradient(rgba(20, 27, 77, .07) 1.1px, transparent 1.6px) 0 0 / 22px 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue); margin: 0 0 .7em; text-wrap: balance; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; }
.small { font-size: .88rem; color: var(--muted); }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 2px solid var(--blue); background: var(--blue); color: #fff; font: 700 .95rem/1.2 Poppins, system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--navy); }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-ghost { background: transparent; border-color: rgba(20, 27, 77, .22); color: var(--navy); }
.btn-ghost:hover { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transition: transform .7s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(120%) skewX(-18deg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Top bar: LinkedIn, email and phone, top left as requested */
.topbar { background: var(--navy-deep); font-size: 1rem; }
.topbar .wrap { max-width: 1320px; display: flex; align-items: center; gap: 4px; min-height: 52px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; color: rgba(255, 255, 255, .92); font-weight: 600; text-decoration: none; }
.topbar a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.topbar svg { width: 18px; height: 18px; }
.topbar-note { margin-left: auto; color: rgba(255, 255, 255, .75); }
.topbar .call { display: none; }

/* Header: one clean row, sticky, frosted */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(20, 27, 77, .35); }
.header-inner { max-width: 1320px; height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.logo { flex: none; }
.logo img { height: 46px; width: auto; }
.mainnav { display: flex; align-items: center; margin-left: auto; }
.mainnav > a, .mainnav summary { position: relative; display: flex; align-items: center; gap: 4px; padding: 10px 9px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .875rem; text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none; }
.mainnav summary::-webkit-details-marker { display: none; }
.mainnav > a::after, .mainnav summary::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.mainnav > a:hover, .mainnav summary:hover, .mainnav details[open] summary, .mainnav .active { color: var(--blue); }
.mainnav > a:hover::after, .mainnav summary:hover::after, .mainnav details[open] summary::after, .mainnav .active::after { transform: scaleX(1); }
.chev { width: 14px; height: 14px; transition: rotate .25s var(--ease); }
.mainnav details[open] .chev { rotate: 180deg; }
.mainnav details { position: relative; }
.dd { position: absolute; z-index: 60; top: calc(100% + 12px); left: 0; min-width: 270px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 28px 56px -18px rgba(20, 27, 77, .35); animation: dd-in .2s var(--ease); }
@keyframes dd-in { from { opacity: 0; translate: 0 -6px; } }
.dd a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: .92rem; text-decoration: none; }
.dd a:hover { background: var(--light); color: var(--blue); }
.call-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--blue); color: #fff; font: 700 .9rem Poppins, system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
.call-btn:hover { background: var(--navy); }
.call-btn svg { width: 17px; height: 17px; }
.menu-btn { display: none; flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--light); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 20px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1279px) {
  .call-btn { width: 44px; padding: 0; justify-content: center; }
  .call-btn span { display: none; }
  :root { --header-h: 68px; }
  .logo img { height: 40px; }
  .call-btn { margin-left: auto; }
  .menu-btn { display: flex; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 16px 20px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(20, 27, 77, .35); max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .mainnav.open { display: flex; }
  .mainnav > a, .mainnav summary { justify-content: space-between; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .mainnav > a::after, .mainnav summary::after { display: none; }
  .dd { position: static; min-width: 0; padding: 4px 0 10px 8px; border: 0; border-radius: 0; box-shadow: none; animation: none; }
}
@media (max-width: 599px) {
  .topbar-note, .topbar .num { display: none; }
  .topbar .call { display: inline; }
  .topbar a { min-height: 44px; padding: 6px 10px; }
}

/* Carousel */
.carousel { position: relative; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track > * { flex: 0 0 100%; scroll-snap-align: start; }
.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.prev:hover, .next:hover { background: rgba(255, 255, 255, .3); }
.prev { left: 14px; }
.next { right: 14px; }

/* Slanted bottom edge on banners, echoing the angled stripes on the DMS sign */
.hero, .page-hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
:is(.hero-text, .page-hero) .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-right: 12px; vertical-align: middle; background: currentColor; }

/* Home hero */
.hero { position: relative; min-height: clamp(500px, 76vh, 700px); display: flex; align-items: center; background: var(--navy); }
.hero > .track { position: absolute; inset: 0; }
.hero .track img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12, 17, 52, .94) 0%, rgba(20, 27, 77, .84) 62%, rgba(20, 27, 77, .35) 100%); pointer-events: none; }
.hero-text { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: calc(var(--slant) + 64px); pointer-events: none; }
.hero-text > * { max-width: 660px; pointer-events: auto; }
.hero-text h1 { color: #fff; max-width: 780px; }
.hero-text p { color: rgba(255, 255, 255, .85); font-size: 1.12rem; }
.hero-text .eyebrow { color: #c3c6e6; }
.hero .prev, .hero .next { top: auto; bottom: calc(var(--slant) + 28px); transform: none; }
.hero .prev { left: auto; right: 70px; }
@media (max-width: 599px) { .hero .prev, .hero .next { display: none; } }
.pause { position: absolute; z-index: 3; right: 126px; bottom: calc(var(--slant) + 28px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .14); cursor: pointer; display: grid; place-items: center; }
.pause:hover { background: rgba(255, 255, 255, .3); }
.pause span { width: 12px; height: 14px; border: solid #fff; border-width: 0 4px; }
.pause.is-stopped span { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.testimonials .pause { right: 12px; bottom: 10px; }
@media (max-width: 599px) { .hero-text { padding-bottom: calc(var(--slant) + 84px); } .pause { right: 14px; bottom: calc(var(--slant) + 10px); } .testimonials .pause { right: calc(50% - 22px); bottom: 18px; } }

/* Accreditation strip: scheme logos, each fitted into the same box so wide and tall marks balance */
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; padding-top: 8px; padding-bottom: 28px; }
.trust p { margin: 0; font: 700 .78rem Poppins, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 44px; }
.trust img { height: 46px; width: auto; max-width: 170px; object-fit: contain; }
@media (max-width: 599px) { .trust ul { gap: 18px 28px; } .trust img { height: 36px; max-width: 132px; } }

/* Service squares */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
.tile { min-width: 0; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 14px; border-radius: var(--radius); background: linear-gradient(160deg, #707276, var(--tile) 55%, #5e6064); color: #fff; font: 700 .95rem/1.25 Poppins, system-ui, sans-serif; text-align: center; text-decoration: none; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tile svg { width: 48px; height: 48px; }
.tile:hover { background: linear-gradient(160deg, #3b3fa6, var(--blue) 55%, #252878); transform: translateY(-4px); box-shadow: var(--lift); }

/* Home gallery: photos and click-to-play videos in one strip */
.gallery { margin-top: 32px; }
.gallery .track { gap: 16px; }
.gallery figure { position: relative; flex: 0 0 72%; margin: 0; }
@media (min-width: 640px) { .gallery figure { flex-basis: calc((100% - 32px) / 3); } }
@media (min-width: 1000px) { .gallery figure { flex-basis: calc((100% - 48px) / 4); } }
.gallery img, .gallery video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--navy-deep); box-shadow: var(--shadow); }
.gallery figcaption { margin-top: 12px; font-size: .92rem; font-weight: 600; color: var(--navy); }
.gallery .is-video::before { content: "Video"; position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 11px; border-radius: 999px; background: rgba(12, 17, 52, .82); color: #fff; font: 700 .7rem Poppins, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.gallery .prev, .gallery .next { top: 42%; background: #fff; border-color: var(--line); color: var(--navy); box-shadow: var(--shadow); backdrop-filter: none; -webkit-backdrop-filter: none; }
.gallery .prev:hover, .gallery .next:hover { background: var(--blue-soft); }
.gallery .prev { left: -12px; }
.gallery .next { right: -12px; }

/* Mission */
.mission { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 88px 0; }
.mission .eyebrow { color: #c3c6e6; }
.mission blockquote { position: relative; margin: 0; padding-left: 64px; max-width: 1000px; font: 600 clamp(1.15rem, 2.2vw, 1.5rem)/1.6 'Open Sans', system-ui, sans-serif; }
.mission blockquote::before { content: "\201C"; position: absolute; left: 0; top: -.1em; font: 800 5.5rem/1 Poppins, sans-serif; color: rgba(255, 255, 255, .2); pointer-events: none; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 32px; }
.stat { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat strong { display: block; font: 800 2rem/1.1 Poppins, system-ui, sans-serif; color: var(--blue); }
.stat p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }

/* Closing call to action: a floating card above the footer */
.cta-band { padding: 8px 16px 88px; }
.section.alt + .cta-band { background: var(--light); }
.cta-band .wrap { position: relative; overflow: hidden; max-width: 1288px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(32px, 5vw, 56px); border-radius: 22px; background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: rgba(255, 255, 255, .85); box-shadow: var(--lift); }
.cta-band .wrap::before { content: ""; position: absolute; inset: 0 0 0 55%; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 26px, transparent 26px 60px); pointer-events: none; }
.cta-band .wrap > * { position: relative; }
.cta-band .wrap > div:first-child { max-width: 560px; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; }
.cta-band .eyebrow { color: #c3c6e6; }
.cta-band .actions { margin: 0; }

/* Inner page banner */
.page-hero { position: relative; color: #fff; padding: 88px 0 calc(var(--slant) + 72px); background: linear-gradient(100deg, rgba(12, 17, 52, .95) 0%, rgba(20, 27, 77, .86) 66%, rgba(20, 27, 77, .5) 100%), var(--img) center / cover; }
/* Below desktop width the text spans the whole banner, so the tint is even across it */
@media (max-width: 1279px) {
  .hero::after { background: linear-gradient(rgba(12, 17, 52, .9), rgba(20, 27, 77, .8)); }
  .page-hero { background-image: linear-gradient(rgba(12, 17, 52, .93), rgba(20, 27, 77, .84)), var(--img); }
}
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero p { max-width: 680px; margin: 0; color: rgba(255, 255, 255, .85); font-size: 1.12rem; }
.page-hero .eyebrow { color: #c3c6e6; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; }
.jump a:hover { background: #fff; color: var(--navy); }

/* Service pages: sticky sidebar (on this page + quote card) beside the sections */
.service-layout { display: grid; gap: 48px; padding-top: 24px; padding-bottom: 72px; }
.service-aside { display: none; }
@media (min-width: 1000px) {
  .service-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
  .service-aside { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  body:has(.service-aside) .page-hero .jump { display: none; }
}
.onpage { display: grid; border-left: 2px solid var(--line); }
.onpage p { margin: 0 0 8px 18px; font: 700 .75rem Poppins, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.onpage a { margin-left: -2px; padding: 7px 0 7px 18px; border-left: 2px solid transparent; color: var(--muted); font-size: .93rem; font-weight: 600; text-decoration: none; }
.onpage a:hover { color: var(--navy); }
.onpage a.current { color: var(--blue); border-left-color: var(--blue); }
.quote-card { padding: 24px; border-radius: 18px; background: linear-gradient(150deg, var(--blue), var(--navy)); color: rgba(255, 255, 255, .82); font-size: .92rem; box-shadow: var(--shadow); }
.quote-card-title { margin: 0 0 6px; font: 700 1.1rem/1.3 Poppins, system-ui, sans-serif; color: #fff; }
.quote-card p { margin-top: 0; }
.quote-card .btn { width: 100%; min-height: 44px; margin-top: 10px; padding: 10px 14px; font-size: .88rem; }

.services { min-width: 0; counter-reset: svc; }
.service { counter-increment: svc; display: grid; gap: 20px 40px; padding: 56px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 32px; }
@media (min-width: 1100px) { .service:has(figure) { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.service:not(:has(figure)) > div { max-width: 820px; }
.service h2::before { content: counter(svc, decimal-leading-zero); display: block; margin-bottom: 10px; font-size: .8rem; letter-spacing: .16em; color: var(--blue); }
.service h2 + p { font-size: 1.08rem; color: var(--ink); }
.service p { margin: 0 0 1em; }
.service h3 { font-size: 1rem; margin: 1.6em 0 .8em; }
.service figure { margin: 0; }
/* Every service photo shares one square frame so mixed portrait and landscape sources look uniform */
.service figure img, .service figure video { display: block; width: 100%; height: auto; background: var(--navy-deep); aspect-ratio: 1; object-fit: cover; object-position: center 35%; border-radius: var(--radius); box-shadow: var(--shadow); }
.service figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.service .ticks { padding: 18px 20px 8px; border-radius: 12px; background: var(--light); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
@media (min-width: 700px) { .ticks.cols { columns: 2; column-gap: 32px; } }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 9px; break-inside: avoid; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.note { padding: 16px 20px; border-radius: 12px; background: var(--blue-soft); color: var(--ink); }

/* About */
.split { display: grid; gap: 48px; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.poster { border-radius: var(--radius); box-shadow: var(--lift); }
.testimonials { margin-top: 32px; border-radius: 18px; background: linear-gradient(150deg, var(--navy), #1d2366); box-shadow: var(--shadow); }
.testimonials .track { align-items: center; }
.testimonials blockquote { margin: 0; padding: 44px 68px; color: #fff; font-size: 1.04rem; font-style: italic; }
.testimonials cite { display: block; margin-top: 16px; font-style: normal; font-weight: 700; font-size: .9rem; color: #c3c6e6; }
@media (max-width: 599px) { .testimonials blockquote { padding: 32px 24px 84px; } .testimonials .prev, .testimonials .next { top: auto; bottom: 18px; transform: none; } }
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 32px 0; }
.badge { padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.badge img { width: 100%; height: 56px; object-fit: contain; margin-bottom: 16px; }
.badge strong { display: block; font-family: Poppins, system-ui, sans-serif; color: var(--navy); font-size: 1.05rem; }
.badge span { color: var(--muted); font-size: .88rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; margin-top: 32px; }
.card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card .role { margin: 0 0 4px; color: var(--blue); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.card .ticks { margin: 12px 0 0; font-size: .95rem; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; margin-top: 32px; container-type: inline-size; }
/* A card left alone on the last row sits in the middle (3 columns from 1008px wide, 2 from 664px) */
@container (min-width: 1008px) { .project:last-child:nth-child(3n+1) { grid-column: 2; } }
@container (min-width: 664px) and (max-width: 1007.98px) { .project:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); } }
.project { position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover img { transform: scale(1.04); }
.project div { padding: 20px 22px 24px; }
.project .years { margin: 0 0 6px; color: var(--blue); font-weight: 700; font-size: .85rem; }
.project p { margin: 0; font-size: .95rem; }
.project::before, .project::after { content: ""; position: absolute; z-index: 2; top: 14px; width: 0; height: 0; border: 0 solid #fff; transition: width .45s var(--ease), height .45s var(--ease); pointer-events: none; }
.project::before { left: 14px; border-width: 2px 0 0 2px; }
.project::after { right: 14px; border-width: 2px 2px 0 0; }
.project:hover::before, .project:hover::after { width: 26px; height: 26px; }

/* Contact */
.contact-list { display: grid; gap: 12px; margin-top: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--muted); text-decoration: none; }
.contact-item span, .site-footer li { min-width: 0; overflow-wrap: anywhere; }
.contact-item svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.contact-item strong { display: block; font: 700 1.05rem Poppins, system-ui, sans-serif; color: var(--navy); }
.map { display: block; width: 100%; height: 460px; border: 0; border-radius: 18px; box-shadow: var(--shadow); }

/* Legal pages */
.legal-body .wrap { max-width: 780px; }
.legal-body h2 { font-size: 1.35rem; margin-top: 1.8em; }

/* Footer */
.site-footer { position: relative; background: radial-gradient(ellipse 80% 60% at 85% 0%, rgba(46, 49, 146, .55), transparent 70%), var(--navy-deep); color: rgba(255, 255, 255, .7); font-size: .95rem; padding-top: 72px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h2 { margin-bottom: 1.1em; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.site-footer address { font-style: normal; }
.site-footer .more { color: #c3c6e6; font-weight: 700; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { max-width: 300px; margin: 20px 0; }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.social a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); }
.social svg { width: 18px; height: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.legal { margin-top: 56px; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: rgba(255, 255, 255, .55); }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.legal p { margin: 0; max-width: 820px; }
.legal nav { display: flex; gap: 20px; }
.legal nav a { padding: 4px 0; }

/* Motion: hover lift, scroll reveals (added by site.js), banner entrance */
.card, .project, .badge, .stat, .contact-item { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
:is(.card, .project, .badge, .stat, .contact-item):hover { transform: translateY(-4px); box-shadow: var(--lift); }
.reveal { opacity: 0; translate: 0 18px; filter: blur(6px); transition: opacity .85s var(--ease), translate .95s var(--ease), filter .85s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.reveal.is-in { opacity: 1; translate: none; filter: none; }
.section .eyebrow::after, .mission .eyebrow::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 10px; border-radius: 2px; background: currentColor; transition: width .9s var(--ease) .15s; }
.eyebrow.reveal::after { width: 0; }
.eyebrow.reveal.is-in::after { width: 40px; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
.hero-text > *, .page-hero .wrap > * { animation: rise 1s var(--ease) both; }
:is(.hero-text, .page-hero .wrap) > :nth-child(2) { animation-delay: .12s; }
:is(.hero-text, .page-hero .wrap) > :nth-child(3) { animation-delay: .24s; }
:is(.hero-text, .page-hero .wrap) > :nth-child(n+4) { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  :is(.card, .project, .badge, .stat, .contact-item, .tile):hover { transform: none; }
}

/* Windows high-contrast mode drops background colours, so draw icon parts with the text colour */
@media (forced-colors: active) {
  .menu-btn span { background: ButtonText; }
  .btn, .call-btn, .tile, .prev, .next, .pause { border: 1px solid ButtonText; }
  .hero::after { display: none; }
}

/* Printing or saving as PDF: plain pages, nothing hidden by scroll animations */
@media print {
  .reveal { opacity: 1 !important; translate: none !important; filter: none !important; }
  .skip, .topbar, .mainnav, .menu-btn, .call-btn, .service-aside, .cta-band, section:has(.gallery), .trust, .jump, .actions, .prev, .next, .pause, .map, .social, .legal nav { display: none !important; }
  .site-header { position: static; }
  .hero, .page-hero { clip-path: none; min-height: 0; padding: 24px 0; background: none !important; color: #000; }
  .hero > .track, .hero::after { display: none; }
  .hero-text, .hero-text h1, .hero-text p, .page-hero h1, .page-hero p, .hero-text .eyebrow, .page-hero .eyebrow { color: #000 !important; padding-bottom: 0; }
  .section, .mission { padding: 24px 0; background: none !important; color: #000; }
  .mission blockquote, .mission .eyebrow { color: #000; }
  .service-layout { display: block; }
  .card, .project, .badge, .stat, figure, .ticks, .note { break-inside: avoid; box-shadow: none; }
  .service { display: block; padding: 20px 0; }
  .service figure { max-width: 240px; margin-top: 12px; }
  /* Browsers leave background colours out of printouts by default, so the squares become plain labels */
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { aspect-ratio: auto; background: none !important; color: #000; border: 1px solid #999; box-shadow: none; padding: 10px; }
  .tile svg { display: none; }
  .testimonials { background: none; box-shadow: none; }
  .testimonials .track { display: block; overflow: visible; }
  .testimonials blockquote { color: #000; padding: 8px 0; }
  .testimonials cite { color: #333; }
  .site-footer { background: none; color: #000; padding-top: 16px; }
  .site-footer a, .site-footer h2, .legal { color: #000 !important; }
  .footer-brand img { display: none; }
  h2, h3 { break-after: avoid; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
}

/* WordPress: keep the sticky header below the admin bar when logged in */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
