/* Page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: ease-in-out;
}

/* Fade-in fallback for browsers without View Transitions */
body { animation: pageIn 0.5s ease-in; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

:root {
  --navy: #003B66;
  --navy-dark: #002B4A;
  --blue: #0077C8;
  --blue-dark: #005FA3;
  --green: #72BF2B;
  --green-dark: #4E8F1F;
  --text: #4A4A4A;
  --text-strong: #102A3D;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --bg-soft: #F7FAFC;
  --bg-blue: #EAF5FC;
  --bg-green: #F1F8EA;
  --border: #D9E2EA;
  --shadow: 0 18px 45px rgba(16, 42, 61, .10);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { left: 20px; top: 20px; width:auto; height:auto; padding: 10px 14px; background: white; color: var(--navy); z-index: 1000; border: 2px solid var(--blue); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.logo { display:flex; align-items:center; gap:12px; color:var(--navy); font-weight:800; }
.logo img { width: 160px; max-height: 76px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 14px; }
.nav-links a { color: var(--text-strong); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links a.btn-primary { color: white; }
.nav-links a.btn-primary:hover { color: white; }
.nav-links a.btn-primary[aria-current="page"] { display: none; }
.mobile-toggle { display:none; border:1px solid var(--border); background:white; color:var(--navy); border-radius:12px; padding:10px 12px; font-weight:800; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius: 999px; padding: 13px 20px; font-weight: 800; border: 2px solid transparent; line-height:1.15; cursor:pointer; transition: .18s ease; }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 10px 24px rgba(0,119,200,.22); }
.btn-primary:hover { background: var(--blue-dark); color:white; transform: translateY(-1px); }
.btn-secondary { background: white; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color:white; }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { color: var(--navy-dark); transform: translateY(-1px); }
.hero { background: radial-gradient(circle at 82% 20%, rgba(114,191,43,.18), transparent 28%), linear-gradient(135deg, #fff 0%, var(--bg-soft) 52%, var(--bg-blue) 100%); padding: 86px 0 70px; overflow:hidden; }
.hero-grid { display:grid; grid-template-columns: 1.05fr .95fr; align-items:center; gap: 58px; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; color: var(--green-dark); font-weight:900; text-transform:uppercase; letter-spacing:.11em; font-size: 13px; }
.eyebrow::before { content:""; width:32px; height:3px; background: var(--green); border-radius:3px; }
h1, h2, h3 { color: var(--text-strong); line-height:1.12; margin:0 0 18px; }
h1 { font-size: clamp(42px, 6vw, 68px); letter-spacing: -0.045em; }
h2 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.035em; }
h3 { font-size: 22px; }
p { margin: 0 0 18px; }
.lead { font-size: 20px; color:#526171; max-width: 660px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin: 30px 0; }
.trust-list { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 28px; }
.trust-item { background: rgba(255,255,255,.78); border:1px solid var(--border); border-radius: 16px; padding:14px; font-weight:800; color: var(--navy); }
.hero-card { background: white; border-radius: 32px; padding: 26px; box-shadow: var(--shadow); border:1px solid rgba(217,226,234,.9); position:relative; }
.section { padding: 82px 0; }
.section-soft { background: var(--bg-soft); }
.section-blue { background: var(--bg-blue); }
.section-compact { padding: 24px 0; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.center { text-align:center; margin-left:auto; margin-right:auto; }
.grid-3 { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card { background:white; border:1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: 0 12px 32px rgba(16,42,61,.06); }
.card-accent { border-top: 5px solid var(--blue); }
.icon { width: 48px; height:48px; border-radius: 14px; background: var(--bg-blue); display:grid; place-items:center; color: var(--blue); font-weight:900; margin-bottom:20px; }
.green-icon { background: var(--bg-green); color: var(--green-dark); }
.dark-band { background: var(--navy); color:white; padding: 48px 0; }
.dark-band h2, .dark-band h3 { color:white; }
.site-footer h3 { color: white; }
.video-panel h2, .video-panel h3 { color: white; }
.video-panel .eyebrow { color: rgba(255,255,255,.78); }
.video-panel .eyebrow::before { background: rgba(255,255,255,.5); }
.dark-band p { color: rgba(255,255,255,.78); }
.band-grid { display:grid; grid-template-columns: .95fr 1.05fr; align-items:center; gap: 34px; }
.checks { list-style:none; padding:0; margin:0; display:grid; gap: 12px; }
.checks li { position:relative; padding-left: 34px; }
.checks li::before { content:"✓"; position:absolute; left:0; top:0; width:23px; height:23px; border-radius:50%; background: var(--green); color: var(--navy-dark); display:grid; place-items:center; font-weight:900; font-size:13px; }
.process { counter-reset: step; display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.step { background:white; border:1px solid var(--border); border-radius:20px; padding:24px; position:relative; }
.step::before { counter-increment: step; content: counter(step); width: 36px; height:36px; border-radius: 50%; background: var(--navy); color:white; display:grid; place-items:center; font-weight:900; margin-bottom:18px; }
.cta-panel { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color:white; border-radius: 32px; padding: 46px; display:grid; grid-template-columns: 1fr auto; gap: 30px; align-items:center; box-shadow: var(--shadow); }
.cta-panel h2 { color:white; }
.cta-panel p { color:rgba(255,255,255,.82); }
.page-hero { padding: 74px 0 70px; background: linear-gradient(135deg, var(--bg-soft), var(--bg-blue)); border-bottom: 1px solid var(--border); }
.page-hero .lead { max-width: 820px; }
.breadcrumb { font-weight:800; color:var(--muted); font-size:14px; margin-bottom:18px; }
.content-split { display:grid; grid-template-columns: 1fr 340px; gap: 44px; align-items:start; }
.sidebar { position:sticky; top:110px; background: var(--bg-soft); border:1px solid var(--border); border-radius:20px; padding:24px; }
.service-list { display:grid; gap:16px; }
.service-row { display:grid; grid-template-columns: 1fr auto; gap:16px; align-items:center; padding:20px; border:1px solid var(--border); border-radius:18px; background:white; }
.form-card { background:white; border:1px solid var(--border); border-radius:28px; padding:30px; box-shadow: var(--shadow); }
.form-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; }
.form-field { display:grid; gap:6px; }
.form-field.full { grid-column: 1 / -1; }
label { color: var(--text-strong); font-weight:800; }
input, select, textarea { width:100%; padding: 13px 14px; border:1px solid var(--border); border-radius:12px; font: inherit; color: var(--text-strong); background:white; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(0,119,200,.18); border-color: var(--blue); }
.note { font-size: 14px; color: var(--muted); }
.site-footer { background: var(--navy-dark); color:white; padding: 58px 0 28px; }
.footer-grid { display:grid; grid-template-columns: 1.2fr repeat(3, .8fr); gap: 34px; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color:white; }
.footer-logo { width: 150px; background:white; border-radius:10px; padding:6px; margin-bottom:18px; }
.footer-credit-link { color:inherit; text-decoration:none; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.18); margin-top:36px; padding-top:20px; display:flex; justify-content:space-between; gap:20px; color:rgba(255,255,255,.68); font-size:14px; }
.badge { display:inline-flex; padding: 6px 10px; border-radius:999px; background: var(--bg-green); color: var(--green-dark); font-weight:900; font-size: 13px; }
@media (max-width: 920px) {
  .mobile-toggle { display:inline-flex; }
  .nav-links { position:absolute; inset:88px 20px auto 20px; background:white; border:1px solid var(--border); border-radius:18px; padding:18px; display:none; flex-direction:column; align-items:flex-start; box-shadow:var(--shadow); }
  .nav-links.open { display:flex; }
  .hero-grid, .band-grid, .content-split, .cta-panel { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .process { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1120px); }
  .logo img { width: 126px; }
  .hero { padding: 52px 0; }
  .section { padding: 58px 0; }
  .grid-3, .grid-4, .grid-2, .process, .trust-list, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions, .footer-credit-link { color:inherit; text-decoration:none; }
.footer-bottom { flex-direction:column; align-items:flex-start; }
  .cta-panel { padding: 30px; }
}

a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(114, 191, 43, .65);
  outline-offset: 3px;
}
.logo img { mix-blend-mode: multiply; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-green); color: var(--navy); font-weight: 800; display: none; }
.form-status.show { display: block; }


/* Partner page components */
.partner-header { display:flex; align-items:center; gap:20px; margin-bottom:32px; flex-wrap:wrap; }
.partner-logo { width:80px; height:80px; border-radius:50%; object-fit:cover; }
.partner-header h2 { margin:0; }
.partner-header .partner-social { margin:4px 0 0; color:#6B7280; }
.partner-profile { position:relative; }
.partner-portrait-wrap { position:relative; min-height:300px; }
.partner-portrait { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; object-position:center top; border-radius:12px; }
.partner-cta-inline { margin-top:16px; }
.partner-cta-inline .btn { margin-left:12px; }

/* Utility classes */
.text-center { text-align:center; }
.mt-28 { margin-top:28px; }
.mt-32 { margin-top:32px; }
.section-cta { text-align:center; max-width:680px; }
.full-width-rounded { width:100%; border-radius:12px; }

/* SafePlay strategy update components */
.notice { border-left: 5px solid var(--green); background: var(--bg-green); border-radius: 18px; padding: 20px 22px; color: var(--text-strong); }
.notice-blue { border-left-color: var(--blue); background: var(--bg-blue); }
.kicker { color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; margin-bottom: 10px; display: inline-block; }
.hero h1 .accent { color: var(--blue); }
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 8px 12px; background: white; color: var(--navy); border: 1px solid var(--border); font-weight: 800; font-size: 14px; }
.journey { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; counter-reset: journey; }
.journey-step { background: white; border: 1px solid var(--border); border-radius: 20px; padding: 20px; position: relative; box-shadow: 0 12px 28px rgba(16,42,61,.05); }
.journey-step::before { counter-increment: journey; content: counter(journey); width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: white; display: grid; place-items: center; font-weight: 900; margin-bottom: 14px; }
.split-card { display:grid; grid-template-columns: .95fr 1.05fr; gap: 30px; align-items:center; }
.service-tag { display: inline-flex; margin: 4px 6px 4px 0; padding: 7px 10px; border-radius: 999px; background: var(--bg-blue); color: var(--navy); font-weight: 800; font-size: 13px; }
.warning-note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 18px; padding-top: 14px; }
@media (max-width: 920px) { .journey { grid-template-columns: repeat(2, minmax(0,1fr)); } .split-card { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .journey { grid-template-columns: 1fr; } }

/* Internal linking and content-depth improvements */
.related-links { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.link-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.link-card { display: block; background: white; border: 1px solid var(--border); border-radius: 18px; padding: 20px; color: var(--text); box-shadow: 0 10px 24px rgba(16,42,61,.05); }
.link-card strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.link-card:hover { transform: translateY(-1px); color: var(--text); border-color: rgba(0,119,200,.35); }
.content-band { background: white; border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: 0 12px 32px rgba(16,42,61,.05); }
@media (max-width: 920px) { .link-card-grid { grid-template-columns: 1fr; } }


/* Project media integration */
.media-frame { overflow: hidden; border-radius: 24px; border: 1px solid var(--border); background: white; box-shadow: 0 20px 45px rgba(16,42,61,.12); }
.media-frame img, .media-frame video, .card img, .project-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card .media-frame { height: 430px; }
.service-image { min-height: 340px; }
.service-image img { aspect-ratio: 4 / 3; }
.project-card { overflow: hidden; padding: 0; }
.project-card img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.project-card-content { padding: 22px; }
.media-caption { color: var(--muted); font-size: 14px; margin-top: 10px; }
.media-strip { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: stretch; }
.media-strip .media-frame:first-child { min-height: 360px; }
.video-panel { background: var(--navy-dark); color: white; border-radius: 28px; padding: 28px; overflow: hidden; }
.video-panel video { width: 100%; border-radius: 18px; border: 1px solid rgba(255,255,255,.18); background: #000; margin-top: 18px; }
.video-panel p, .video-panel .media-caption { color: rgba(255,255,255,.78); }
.inline-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 920px) {
  .hero-card .media-frame { height: 300px; }
  .media-strip, .inline-media-grid { grid-template-columns: 1fr; }
}


.media-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-item { background: white; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 24px rgba(16,42,61,.05); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery-item figcaption { padding: 12px 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 1100px) { .media-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .media-gallery { grid-template-columns: 1fr; } }


/* Client presentation polish */
/* page-hero padding and lead consolidated into main .page-hero rule */
.hero .media-caption { display: none; }
.trust-panel-wrap { margin-top: 30px; }
.trust-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trust-item { background: rgba(255,255,255,.88); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: 0 10px 24px rgba(16,42,61,.05); }
.trust-item strong { display:block; color: var(--navy); margin-bottom: 5px; }
.trust-item span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.subpage-hero-actions { margin-top: 22px; display:flex; flex-wrap:wrap; gap:12px; }
.proof-meta { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.proof-meta span { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 9px 12px; font-size: 13px; font-weight: 700; color: var(--navy); }
.form-helper { font-size: 14px; color: var(--muted); margin-top: -6px; margin-bottom: 14px; }
.required-mark { color: var(--blue); font-weight: 800; }
.footer-service-line { color: rgba(255,255,255,.78); max-width: 280px; }
@media (max-width: 920px) {
  .page-hero { padding-top: 52px; padding-bottom: 48px; }
  .trust-panel { width: min(100% - 28px, 680px); }
  .trust-panel, .proof-meta { grid-template-columns: 1fr; }
  .trust-panel-wrap { margin-top: 22px; }
  .pill-grid .pill:nth-child(n+4) { display: none; }
}

/* Lightbox gallery modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 20, 40, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 70vw;
  max-height: 80vh;
}
.lightbox-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
  max-width: 100%;
  max-height: 70vh;
}
.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: calc(70vh - 80px);
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-caption {
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 0 16px;
  pointer-events: none;
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
}
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 20, 40, 0.6);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .18s ease;
}
.lightbox-close:hover { background: rgba(0, 20, 40, 0.9); }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(0, 20, 40, 0.5);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .18s ease;
}
.lightbox-arrow:hover { background: rgba(0, 20, 40, 0.85); }
.lightbox-arrow--prev { left: -64px; }
.lightbox-arrow--next { right: -64px; }
.gallery-item img { cursor: pointer; transition: opacity .18s ease; }
.gallery-item img:hover { opacity: .85; }
@media (max-width: 920px) {
  .lightbox-wrap { max-width: 90vw; }
  .lightbox-content { max-height: 80vh; }
  .lightbox-content img { max-height: calc(80vh - 80px); }
  .lightbox-arrow--prev { left: -52px; }
  .lightbox-arrow--next { right: -52px; }
}
@media (max-width: 640px) {
  .lightbox-wrap { max-width: 94vw; }
  .lightbox-content { max-height: 85vh; padding: 10px; }
  .lightbox-content img { max-height: calc(85vh - 70px); }
  .lightbox-arrow { width: 40px; height: 40px; font-size: 22px; }
  .lightbox-arrow--prev { left: -46px; }
  .lightbox-arrow--next { right: -46px; }
}
