/* =====================================================================
   Affisys Services – design layer v3 (loaded after main.css)
   Dark brand heroes, glass panels, refined cards and typography.
   ===================================================================== */

:root {
  --hero-bg:
    radial-gradient(1100px 560px at 85% -10%, rgba(12,192,223,.30), transparent 60%),
    radial-gradient(800px 520px at -10% 115%, rgba(7,122,143,.40), transparent 60%),
    linear-gradient(160deg, #0B1E26 0%, #0D2731 50%, #091920 100%);
  --hero-text: #FFFFFF;
  --hero-muted: #B6C9CF;
  --cyan-soft: #7FE3F2;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow-lg: 0 24px 48px -24px rgba(11,30,38,.35);
  --glow: 0 14px 34px -12px rgba(12,192,223,.65);
}
html[data-theme="dark"] {
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 48px -24px rgba(0,0,0,.7);
}

/* ---------- Typography ---------- */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3 { letter-spacing: -.02em; }
h1 { font-weight: 800; }
@media (min-width: 1024px) {
  h1 { font-size: 52px; line-height: 1.08; }
  h2 { font-size: 38px; line-height: 1.15; }
}
.section-head { margin-bottom: 48px; }
.section-head p { font-size: 1.08em; line-height: 1.65; }
.answer { line-height: 1.7; }
::selection { background: rgba(12,192,223,.28); }

/* Eyebrow as a pill with a glowing dot */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(7,122,143,.08); border: 1px solid rgba(7,122,143,.18); color: var(--accent-text);
  font-size: 12px; letter-spacing: .1em; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(12,192,223,.18); flex-shrink: 0; }
html[data-theme="dark"] .eyebrow { background: rgba(12,192,223,.10); border-color: rgba(12,192,223,.28); }
.strapline { display: inline-block; font-size: 15px; margin-bottom: 10px; }

/* ---------- Utilities kept from earlier layers ---------- */
.narrow { max-width: 860px; }
.narrow-wide .section-head { max-width: 880px; margin-bottom: 0; }
.gap-lg { gap: 20px; }
.h2-ish { font-size: 24px; margin-top: 6px; }
@media (min-width: 1024px) { .h2-ish { font-size: 28px; } }
.h3-size { font-size: 20px; margin-bottom: 20px; }
.h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-dark); font-family: var(--font-body); margin-top: 22px; }
.hero-grid > *, .split > * { min-width: 0; }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; min-height: 50px; padding: 13px 24px; letter-spacing: -.005em; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { box-shadow: 0 8px 20px -10px rgba(7,122,143,.8); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(7,122,143,.9); }
.btn--secondary { border-width: 1.5px; }
.btn--sm { min-height: 42px; padding: 9px 18px; border-radius: 10px; }
/* Bright button for dark surfaces (dark text on cyan: high contrast) */
.btn--glow { background: linear-gradient(135deg, #2ED6F1 0%, #0CC0DF 55%, #0AAAC7 100%); color: #052129; box-shadow: var(--glow); }
.btn--glow:hover { color: #052129; transform: translateY(-1px); box-shadow: 0 18px 40px -12px rgba(12,192,223,.8); }
.btn--ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.05); }
.btn--ghost:hover { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.text-link { color: var(--accent-text); }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s, background-color .25s;
}
html[data-theme="dark"] .site-header { background: rgba(18,23,26,.82); }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(11,30,38,.35); }
.header-inner { height: 76px; }
.logo-img img { height: 46px; width: auto; display: block; }
@media (max-width: 640px) { .logo-img img { height: 38px; } }
.site-footer .logo-img img { height: 52px; }
.primary-nav a, .nav-toggle-sub { border-radius: 10px; padding: 9px 14px; font-weight: 600; }
.primary-nav a:hover, .nav-toggle-sub:hover { background: rgba(7,122,143,.07); color: var(--accent-text); }
html[data-theme="dark"] .primary-nav a:hover, html[data-theme="dark"] .nav-toggle-sub:hover { background: rgba(12,192,223,.1); }
.primary-nav a[aria-current="page"] { text-decoration: none; color: var(--accent-text); background: rgba(7,122,143,.08); }
html[data-theme="dark"] .primary-nav a[aria-current="page"] { background: rgba(12,192,223,.12); }
.nav-toggle-sub[data-current] { color: var(--accent-text); }
.subnav { border-radius: 16px; padding: 10px; min-width: 320px; box-shadow: var(--shadow-lg); border-color: var(--line); top: calc(100% + 10px); }
.subnav a { border-radius: 10px; padding: 11px 14px; }
.theme-toggle { border-radius: 12px; }
.mobile-nav { background: var(--surface); }

/* ---------- Hero (all pages): dark brand surface ---------- */
.hero {
  background: var(--hero-bg); color: var(--hero-muted); position: relative; isolation: isolate; overflow: hidden;
  padding: 64px 0 88px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(12,192,223,.5), transparent);
}
.hero h1, .hero h2 { color: var(--hero-text); }
.hero .lead, .hero p { color: var(--hero-muted); }
.hero .muted { color: #93A9B0; }
.hero a:not(.btn) { color: var(--cyan-soft); }
.hero .eyebrow { background: rgba(12,192,223,.12); border-color: rgba(12,192,223,.32); color: var(--cyan-soft); }
.hero h1 .hl { background: linear-gradient(90deg, #7FE3F2, #0CC0DF 60%, #2ED6F1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .btn--primary { background: linear-gradient(135deg, #2ED6F1 0%, #0CC0DF 55%, #0AAAC7 100%); color: #052129; box-shadow: var(--glow); }
.hero .btn--primary:hover { color: #052129; box-shadow: 0 18px 40px -12px rgba(12,192,223,.8); }
.hero .btn--secondary { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.05); }
.hero .btn--secondary:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color: #fff; }
.hero .job-meta { color: var(--hero-muted); }
.hero .job-meta svg { color: var(--cyan-soft); }
.hero--home { padding: 72px 0 150px; }
.hero--home h1 { font-size: 38px; line-height: 1.08; }
@media (min-width: 1024px) {
  .hero { padding: 72px 0 104px; }
  .hero--home { padding: 96px 0 176px; }
  .hero--home h1 { font-size: 62px; letter-spacing: -.03em; }
  .hero--inner h1 { font-size: 50px; }
}
.hero .lead { font-size: 1.12em; line-height: 1.7; max-width: 60ch; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; font-size: 14.5px; color: var(--hero-muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hero-proof svg { width: 18px; height: 18px; color: var(--cyan); }

/* Breadcrumbs inside the hero */
.hero .breadcrumbs { background: none; border: 0; padding: 0 0 28px; margin-top: -24px; }
.hero .breadcrumbs li { color: #93A9B0; }
.hero .breadcrumbs li + li::before { color: rgba(255,255,255,.3); }
.hero .breadcrumbs a { color: var(--cyan-soft); }
.breadcrumbs { background: var(--mist); }

/* Home hero stage: the real AS mark on glass */
.hero-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin: 0 auto; }
.hero-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(12,192,223,.55) 0%, rgba(12,192,223,.12) 45%, transparent 70%); filter: blur(24px); }
.hero-ring { position: absolute; border-radius: 50%; }
.hero-ring--1 { inset: 3%; border: 1px dashed rgba(12,192,223,.35); animation: spin 80s linear infinite; }
.hero-ring--2 { inset: 13%; border: 1px solid rgba(255,255,255,.09); animation: spin 22s linear infinite; }
.orbit-dot { position: absolute; top: 50%; right: -6px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 6px rgba(12,192,223,.2), 0 0 24px rgba(12,192,223,.9); }
.hero-glass {
  position: absolute; inset: 21%; border-radius: 36px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 40px 80px -24px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: rotate(-6deg);
}
.hero-logo { display: block; width: 80%; transform: rotate(6deg); }
.hero-logo img { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 28px rgba(0,0,0,.5)); }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute; display: flex; gap: 12px; align-items: center; padding: 12px 18px 12px 12px; z-index: 2;
  background: rgba(10,28,35,.78); color: var(--hero-muted); border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 16px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.6);
  font-size: 13px; line-height: 1.35; white-space: nowrap; animation: bob 7s ease-in-out infinite;
}
.float-card svg { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: linear-gradient(135deg, #2ED6F1, #077A8F); color: #fff; flex-shrink: 0; }
.float-card strong { display: block; color: #fff; font-family: var(--font-head); font-size: 14px; font-weight: 700; }
.fc-1 { left: -2%; top: 12%; }
.fc-2 { right: -4%; top: 47%; animation-delay: -2.4s; }
.fc-3 { left: 4%; bottom: 7%; animation-delay: -4.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1023px) { .hero-stage { max-width: 380px; margin-top: 8px; } }
@media (max-width: 480px) {
  .float-card { font-size: 11.5px; padding: 8px 12px 8px 8px; gap: 8px; }
  .float-card svg { width: 28px; height: 28px; padding: 6px; }
  .float-card strong { font-size: 12.5px; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
}

/* Section artwork panel (inner heroes and services hub) */
.art {
  position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; background: var(--hero-bg);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.06);
}
.art-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); }
.art-mark { position: absolute; right: -6%; bottom: -10%; width: 58%; opacity: .14; transform: rotate(-8deg); z-index: -1; }
.art-mark img { width: 100%; height: auto; display: block; }
.art-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.art-ring--1 { width: 220px; height: 220px; border: 1px dashed rgba(12,192,223,.4); }
.art-ring--2 { width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.07); }
.art-icon {
  width: 116px; height: 116px; border-radius: 30px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #2ED6F1 0%, #0CC0DF 40%, #077A8F 100%);
  box-shadow: 0 24px 60px -12px rgba(12,192,223,.7), inset 0 1px 0 rgba(255,255,255,.35);
}
.art-icon svg { width: 54px; height: 54px; }
.hero .art { background: transparent; box-shadow: none; border: 0; aspect-ratio: 1; max-width: 420px; margin: 0 auto; }
.hero .art-mark { right: auto; left: 50%; top: 50%; bottom: auto; width: 86%; opacity: .12; transform: translate(-50%, -50%) rotate(-8deg); }
.hero .art-ring--1 { width: 64%; height: 64%; animation: spin-c 60s linear infinite; }
.hero .art-ring--2 { width: 88%; height: 88%; }
@keyframes spin-c { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (max-width: 1023px) { .hero--inner .art { display: none; } }

/* ---------- Trust strip: floating card overlapping the home hero ---------- */
.trust-strip { position: relative; z-index: 3; margin-top: -84px; background: transparent; border: 0; }
.trust-list {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 24px; gap: 18px;
}
@media (min-width: 1024px) { .trust-list { padding: 30px 32px; gap: 24px; } .trust-list li + li { border-left: 1px solid var(--line); padding-left: 24px; } }

/* ---------- Sections ---------- */
.section--dark { background: var(--hero-bg); color: var(--hero-muted); position: relative; isolation: isolate; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { background: rgba(12,192,223,.12); border-color: rgba(12,192,223,.32); color: var(--cyan-soft); }
.section--dark .section-head p { color: var(--hero-muted); }
.section--dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.section--dark .card p { color: #BBCBD0; }
.section--dark .icon { background: rgba(12,192,223,.14); color: var(--cyan-soft); border-color: rgba(12,192,223,.3); }
.section--dark .grid > .card:hover { border-color: rgba(12,192,223,.5); background: rgba(255,255,255,.07); }
.section--dark .card:hover .icon { background: linear-gradient(135deg, #2ED6F1, #077A8F); color: #fff; }

/* ---------- Icons ---------- */
.icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, rgba(12,192,223,.16), rgba(7,122,143,.08)); color: var(--accent-text); border: 1px solid rgba(12,192,223,.22); }
.icon--lg { width: 60px; height: 60px; border-radius: 16px; }

/* ---------- Cards ---------- */
.card { border-radius: 20px; padding: 30px; border-color: var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s, background-color .25s; }
@media (min-width: 1024px) { .card { padding: 34px; } }
.card h3 { font-size: 19px; line-height: 1.3; }
@media (min-width: 1024px) { .card h3 { font-size: 20px; } }
.card p { color: var(--grey-dark); line-height: 1.65; }
.section--mist .card { border-color: var(--line); box-shadow: var(--shadow-sm); }
.grid > .card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px rgba(7,122,143,.45); border-color: rgba(12,192,223,.45); }
.card:hover .icon { background: linear-gradient(135deg, #2ED6F1, #077A8F); color: #fff; border-color: transparent; }
.card .icon { transition: background .25s, color .25s, border-color .25s; }

/* Service cards: filled gradient icon, arrow link, top accent */
.service-card { overflow: hidden; }
.service-card .icon { background: linear-gradient(135deg, #2ED6F1 0%, #0CC0DF 40%, #077A8F 100%); color: #fff; border-color: transparent; box-shadow: 0 12px 24px -12px rgba(12,192,223,.7); }
.service-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--cyan), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); }
.service-card .text-link { margin-top: 8px; }
.grid-5 { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-5 > * { flex: 1 1 300px; max-width: 384px; }
.grid-5 > .card { height: auto; }
@media (min-width: 640px) and (max-width: 1023px) { .grid-5 > * { flex-basis: calc(50% - 12px); max-width: none; } }

.card--cta { background: var(--hero-bg) !important; border-color: transparent !important; color: #fff; justify-content: center; position: relative; overflow: hidden; }
.card--cta::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; border: 24px solid rgba(12,192,223,.18); }
.card--cta h3 { color: #fff; margin-top: 0; }
.card--cta p { color: var(--hero-muted); }
.card--cta .btn { background: linear-gradient(135deg, #2ED6F1, #0CC0DF 55%, #0AAAC7); color: #052129; align-self: flex-start; margin-top: 8px; position: relative; z-index: 1; box-shadow: var(--glow); }
.card--cta .btn:hover { color: #052129; }
.card.mini { padding: 22px; }
.card.mini h3 { font-size: 17px; margin: 14px 0 4px; }
.card.mini p { font-size: 15px; }

/* Feature rows rendered as soft cards */
.feature { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, box-shadow .25s, transform .25s; }
.feature:hover { border-color: rgba(12,192,223,.45); box-shadow: 0 20px 40px -26px rgba(7,122,143,.5); transform: translateY(-2px); }
.feature:hover .icon { background: linear-gradient(135deg, #2ED6F1, #077A8F); color: #fff; border-color: transparent; }
.feature .icon { flex-shrink: 0; transition: background .25s, color .25s; }
.feature h3 { font-size: 18.5px; }

.mv-grid { gap: 20px; }
.mv-card { border-left: 4px solid var(--cyan); }

/* ---------- Stats ---------- */
.stat-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { border-radius: 20px; padding: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat:nth-child(1), .stat:nth-child(4) { background: var(--hero-bg); border-color: transparent; }
.stat:nth-child(1) .stat-num, .stat:nth-child(4) .stat-num { background: linear-gradient(90deg, #7FE3F2, #0CC0DF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat:nth-child(1) .stat-label, .stat:nth-child(4) .stat-label { color: var(--hero-muted); }
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 46px; line-height: 1; color: var(--accent-text); letter-spacing: -.03em; }
.stat-label { display: block; margin-top: 12px; font-size: 14.5px; line-height: 1.45; color: var(--grey-dark); }
@media (min-width: 1024px) { .stat { padding: 32px; } .stat-num { font-size: 58px; } }

/* ---------- Stepper ---------- */
.stepper li::before { background: linear-gradient(135deg, #2ED6F1, #077A8F); box-shadow: 0 10px 24px -8px rgba(12,192,223,.7); width: 48px; height: 48px; font-size: 18px; }
.stepper li::after { background: linear-gradient(90deg, rgba(12,192,223,.6), var(--line)); }
@media (max-width: 899px) { .stepper li::after { background: linear-gradient(180deg, rgba(12,192,223,.6), var(--line)); left: 23px; } }
.stepper .when { color: var(--accent-text); }
.stepper h3 { font-size: 19px; }

/* ---------- Accordions ---------- */
.accordion summary { font-size: 17.5px; }
.accordion--cards { border-top: 0; display: grid; gap: 12px; }
.accordion--cards details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 26px; transition: box-shadow .25s, border-color .25s; position: relative; }
.accordion--cards details:hover { border-color: rgba(12,192,223,.4); }
.accordion--cards details[open] { box-shadow: var(--shadow-lg); border-color: rgba(12,192,223,.55); }
.accordion--cards details[open]::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--teal)); }
.accordion--cards .num { display: inline-block; min-width: 36px; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.accordion--cards .summary-sub { padding-left: 44px; }
.accordion .panel > p:first-child { color: var(--grey-dark); }
@media (min-width: 1024px) { .accordion--cards .check-list { columns: 2; column-gap: 40px; } .accordion--cards .check-list li { break-inside: avoid; } }
.accordion .panel { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.accordion:not(.accordion--cards) { border-top: 0; display: grid; gap: 10px; }
.accordion:not(.accordion--cards) details { border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; background: var(--surface); }
.accordion:not(.accordion--cards) details[open] { border-color: rgba(12,192,223,.5); box-shadow: var(--shadow-lg); }
html[data-theme="dark"] .accordion summary::after { background-color: rgba(12,192,223,.22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235AD2E6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }

/* ---------- Boundaries, tags, compliance ---------- */
.boundary { border-radius: 20px; padding: 32px; box-shadow: var(--shadow-sm); }
.boundary--us { border-top: 4px solid var(--cyan); }
.tags li { padding: 7px 15px; border-radius: 10px; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.tags li:hover { border-color: rgba(12,192,223,.5); color: var(--accent-text); }
.compliance { border-radius: 16px; border: 1px solid var(--line); border-left: 4px solid var(--teal); background: var(--surface); }

/* Built-for-UK panel (LPO) */
.flag-panel { background: var(--hero-bg); color: #fff; border-radius: var(--radius-lg); padding: 34px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.flag-panel::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 30px solid rgba(12,192,223,.2); }
.flag-title { font-family: var(--font-head); font-weight: 700; font-size: 21px; margin-bottom: 20px; }
.flag-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.flag-list li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.flag-list span { display: inline-flex; width: 40px; height: 28px; align-items: center; justify-content: center; border-radius: 7px; background: var(--cyan); color: #052129; font-weight: 800; font-size: 12.5px; letter-spacing: .04em; flex-shrink: 0; }
.flag-list a { color: var(--cyan-soft); }
.flag-foot { margin: 18px 0 0; font-size: 15px; color: var(--hero-muted); position: relative; z-index: 1; }
.pill { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: rgba(12,192,223,.15); color: var(--accent-text); font: 700 12px/1.6 var(--font-body); letter-spacing: .02em; }

/* ---------- Services hub blocks ---------- */
.service-block + .service-block { margin-top: 96px; }
.service-block .tagline { font-size: 1.1em; }
.link-row { gap: 20px 28px; margin-top: 12px; }
.why-list li svg { color: var(--accent-text); }

/* ---------- People, values, careers ---------- */
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 20px 24px; box-shadow: var(--shadow-sm); }
.person-photo { background: var(--hero-bg); color: #fff; border-radius: 14px; font-size: 44px; letter-spacing: -.02em; }
.section--mist .person-photo { background: var(--hero-bg); }
.person h3 { margin-top: 2px; }
.value { border-top: 2px solid var(--line); padding-top: 22px; transition: border-color .25s; }
.value:hover { border-top-color: var(--cyan); }
.value-num { font-family: var(--font-head); font-weight: 800; font-size: 38px; background: linear-gradient(135deg, #2ED6F1, #077A8F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value h3 { margin-top: 6px; }
.value p { color: var(--grey-dark); }
.filter-bar button { border-radius: 10px; min-height: 42px; transition: border-color .2s, background-color .2s, color .2s; }
.filter-bar button:hover { border-color: var(--accent-text); }
.empty-state { flex-direction: row; gap: 20px; align-items: center; border-style: dashed; }
.empty-state h3 { margin: 0 0 4px; }
.empty-state p { margin: 0; }
.job { border-radius: 18px; }

/* ---------- Forms ---------- */
.form-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border-color: var(--line); position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--teal)); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea, .field input[type="file"] {
  border-radius: 12px; border: 1.5px solid #C9D3D8; transition: border-color .2s, box-shadow .2s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9FB0B7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px rgba(12,192,223,.18); }
.choice { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, background-color .2s; }
.choice:hover { border-color: rgba(12,192,223,.5); }
.choice:has(input:checked) { border-color: var(--teal); background: rgba(12,192,223,.07); }
.booking-embed { border-radius: 20px; border: 1.5px dashed #B9C6CC; }
.option-label { display: inline-block; padding: 4px 10px; border-radius: 8px; background: rgba(12,192,223,.12); }

/* ---------- Contact ---------- */
.icon--wa { background: rgba(29,125,63,.12) !important; color: #1D7D3F !important; border-color: rgba(29,125,63,.25) !important; }
.call-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-weight: 600; }
.call-facts svg { width: 20px; height: 20px; color: var(--accent-text); display: inline-block; vertical-align: -4px; }
.contact-list .icon { width: 44px; height: 44px; border-radius: 12px; }
.contact-list a { word-break: break-word; }
.quick-card .icon, .contact-list .icon { flex-shrink: 0; }
.map-placeholder { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--surface); }

/* Thank-you */
.success-badge { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px; background: linear-gradient(135deg, #2ED6F1, #077A8F); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 12px rgba(12,192,223,.16), var(--glow); }
.success-badge svg { width: 36px; height: 36px; }

/* ---------- Closing CTA card ---------- */
.cta-wrap { padding: var(--section) 0; }
.section--mist + .cta-wrap { background: linear-gradient(180deg, var(--mist) 0%, var(--mist) 50%, var(--surface) 50%); }
.cta-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: 40px 28px;
  background: var(--hero-bg); color: var(--hero-muted); box-shadow: 0 40px 80px -40px rgba(11,30,38,.7);
  display: grid; gap: 28px; align-items: center;
}
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 80% 50%, #000 10%, transparent 70%); }
.cta-mark { position: absolute; right: -40px; bottom: -60px; width: 300px; opacity: .1; transform: rotate(-10deg); z-index: -1; }
.cta-mark img { width: 100%; height: auto; display: block; }
.cta-card h2 { color: #fff; margin-bottom: 12px; }
.cta-card p { color: var(--hero-muted); margin: 0; font-size: 1.05em; line-height: 1.65; }
.cta-card .eyebrow { background: rgba(12,192,223,.12); border-color: rgba(12,192,223,.32); color: var(--cyan-soft); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-note { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 14px; color: #93A9B0 !important; margin-top: 4px !important; }
.cta-note svg { width: 16px; height: 16px; color: var(--cyan); }
@media (min-width: 900px) {
  .cta-card { grid-template-columns: 1.5fr 1fr; padding: 64px; gap: 48px; }
  .cta-card h2 { font-size: 38px; }
  .cta-mark { width: 380px; right: -30px; }
}

/* ---------- Footer ---------- */
.site-footer { background: #071318; padding-top: 72px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(12,192,223,.5), transparent); }
html[data-theme="dark"] .site-footer { background: #060F13; }
.site-footer h2 { color: #fff; font-size: 13px; letter-spacing: .1em; }
.site-footer a { color: #C5D3D8; }
.site-footer a:hover { color: var(--cyan-soft); text-decoration: none; }
.footer-brand p { color: #93A9B0; }
.footer-legal { color: #8099A1; }

/* ---------- Floating & fixed UI ---------- */
.wa-float { box-shadow: 0 12px 30px -8px rgba(29,125,63,.7); }
.cookie-banner { border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(11,30,38,.45); }
.cookie-actions .btn { border-radius: 10px; }

/* ---------- Dark theme refinements ---------- */
html[data-theme="dark"] .field input[type="text"], html[data-theme="dark"] .field input[type="email"],
html[data-theme="dark"] .field input[type="tel"], html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea, html[data-theme="dark"] .field input[type="file"] { border-color: #3E4A51; }
html[data-theme="dark"] .grid > .card:hover { box-shadow: 0 24px 44px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(12,192,223,.35); }
html[data-theme="dark"] .feature:hover { box-shadow: 0 20px 40px -26px rgba(0,0,0,.8); }
html[data-theme="dark"] .cta-card { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 80px -40px rgba(0,0,0,.9); }
html[data-theme="dark"] .art { border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .booking-embed { border-color: #3E4A51; }

.theme-transition, .theme-transition * { transition: background-color .3s, color .3s, border-color .3s !important; }

@media (prefers-reduced-motion: reduce) {
  .float-card, .hero-ring--1, .hero-ring--2, .hero .art-ring--1 { animation: none !important; }
  .btn:hover, .grid > .card:hover, .feature:hover { transform: none; }
}
html[data-theme="dark"] .hero .breadcrumbs { background: none; }
/* Tweaks after visual review */
.fc-2 { top: 62%; right: -6%; }
@media (min-width: 641px) { .logo-img img { height: 52px; } }
