/* Reeds Business Solutions - site styles
   Colours are taken from the REEDS logo: navy #241E60, mid navy #36306C,
   silver-lavender grey #9090AE. Headings use a serif (matching the logo
   wordmark); body text uses a clean sans-serif (matching the tagline).
   Four themes are defined below. Classic Navy is the default. */

/* ---------- Theme 1: Classic Navy (default, light) ---------- */
:root[data-theme="classic"] {
  --panel-bg: #241E60;
  --primary: #241E60;
  --primary-2: #36306C;
  --accent: #9090AE;
  --accent-soft: #E9E9F3;
  --ink: #1B1A3F;
  --text: #33334D;
  --muted: #5C5C75;
  --bg: #FFFFFF;
  --bg-alt: #F5F5FA;
  --surface: #FFFFFF;
  --line: #E2E2EC;
  --header-bg: rgba(255, 255, 255, 0.96);
  --hero-from: #241E60;
  --hero-to: #36306C;
  --hero-text: #FFFFFF;
  --hero-muted: #D5D5E8;
  --link: #241E60;
  --shadow: 0 10px 30px rgba(36, 30, 96, 0.10);
  --logo-src: url("../assets/img/rbs-logo.png");
  color-scheme: light;
}

/* ---------- Theme 2: Midnight (dark) ---------- */
:root[data-theme="midnight"] {
  --primary: #8F88F0;
  --primary-2: #241E60;
  --accent: #9090AE;
  --accent-soft: #1E1C3D;
  --ink: #F3F3FA;
  --text: #D2D2E4;
  --muted: #A3A3BE;
  --bg: #0C0B1F;
  --bg-alt: #13122B;
  --surface: #171636;
  --line: #2A2952;
  --header-bg: rgba(12, 11, 31, 0.92);
  --hero-from: #0C0B1F;
  --hero-to: #241E60;
  --hero-text: #FFFFFF;
  --hero-muted: #C9C9E3;
  --link: #B5B0FF;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --logo-src: url("../assets/img/rbs-logo-white.png");
  color-scheme: dark;
}

/* ---------- Theme 3: Silver Mist (light grey, navy accents) ---------- */
:root[data-theme="silver"] {
  --primary: #36306C;
  --primary-2: #241E60;
  --accent: #9090AE;
  --accent-soft: #E4E5EF;
  --ink: #241E60;
  --text: #3A3A55;
  --muted: #66668A;
  --bg: #F2F3F7;
  --bg-alt: #E8E9F1;
  --surface: #FFFFFF;
  --line: #D6D8E4;
  --header-bg: rgba(242, 243, 247, 0.96);
  --hero-from: #36306C;
  --hero-to: #9090AE;
  --hero-text: #FFFFFF;
  --hero-muted: #ECECF6;
  --link: #36306C;
  --shadow: 0 10px 30px rgba(36, 30, 96, 0.12);
  --logo-src: url("../assets/img/rbs-logo.png");
  color-scheme: light;
}

/* ---------- Theme 4: Indigo (bright, modern) ---------- */
:root,
:root[data-theme="indigo"] {
  --panel-bg: #3B2FB0;
  --primary: #3B2FB0;
  --primary-2: #241E60;
  --accent: #7C74D6;
  --accent-soft: #EEEDFB;
  --ink: #1B1450;
  --text: #2E2E4A;
  --muted: #5E5E7A;
  --bg: #FFFFFF;
  --bg-alt: #F7F6FD;
  --surface: #FFFFFF;
  --line: #E5E3F2;
  --header-bg: rgba(255, 255, 255, 0.96);
  --hero-from: #3B2FB0;
  --hero-to: #241E60;
  --hero-text: #FFFFFF;
  --hero-muted: #E4E2FA;
  --link: #3B2FB0;
  --shadow: 0 10px 30px rgba(59, 47, 176, 0.12);
  --logo-src: url("../assets/img/rbs-logo.png");
  color-scheme: light;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.6rem;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 700px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.5rem; border-radius: 8px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 0.98rem;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary); color: #FFFFFF; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 16px; }
.brand img { height: 84px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="midnight"] .brand .logo-light { display: none; }
:root[data-theme="midnight"] .brand .logo-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 0.55rem 0.85rem; border-radius: 8px; color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ---------- Hero and page headers ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--hero-text);
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
}
.hero .eyebrow { color: #FFFFFF; opacity: .85; }
.hero h1, .hero h2 { color: var(--hero-text); }
.hero p { color: var(--hero-muted); }
.page-hero {
  position: relative; overflow: hidden; color: var(--hero-text);
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  padding: clamp(56px, 8vw, 92px) 0;
}
.page-hero .eyebrow { color: #FFFFFF; opacity: .85; }
.page-hero h1 { color: var(--hero-text); }
.page-hero p { color: var(--hero-muted); max-width: 720px; }
.breadcrumb { font-size: 0.88rem; color: var(--hero-muted); margin-bottom: 14px; }
.breadcrumb a { color: #FFFFFF; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .btn-primary { background: #FFFFFF; color: var(--primary); }
.hero .btn-primary:hover { background: var(--accent-soft); }
.hero .btn-ghost { border-color: #FFFFFF; color: #FFFFFF; }
.hero .btn-ghost:hover { background: #FFFFFF; color: var(--primary); }
.logo-panel {
  background: #FFFFFF; border-radius: 22px; padding: 40px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; min-height: 300px;
}
.logo-panel img { width: 100%; max-width: 340px; }
.orbit {
  position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}
.orbit.o1 { width: 620px; height: 620px; right: -220px; top: -180px; }
.orbit.o2 { width: 420px; height: 420px; right: -100px; top: -60px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px; box-shadow: var(--shadow);
}
.stat strong { display: block; font-family: Georgia, serif; font-size: 2.1rem; color: var(--ink); line-height: 1; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--accent-soft); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 16px; font-family: Georgia, serif; font-weight: 700;
}
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Split blocks and lists ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface);
}
.panel { background: var(--primary); color: #FFFFFF; border-radius: 18px; padding: 40px; box-shadow: var(--shadow); }
.panel h2, .panel h3 { color: #FFFFFF; }
.panel p { color: #E4E4F2; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 0.9rem; color: var(--ink);
}

/* ---------- Services accordion (native details) ---------- */
.accordion details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.accordion summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; color: var(--ink);
  font-family: Georgia, serif; font-size: 1.1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--primary); line-height: 1;
  transition: transform .25s ease;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 24px 24px; }
.accordion .acc-body ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.accordion .acc-body li { margin-bottom: 6px; }
.accordion .acc-body p { color: var(--muted); }

/* ---------- Team ---------- */
.team-card { display: flex; flex-direction: column; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #FFFFFF;
  display: grid; place-items: center; font-family: Georgia, serif; font-weight: 700; font-size: 1.2rem;
  margin-bottom: 16px;
}
.role { color: var(--primary); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.team-card details { margin-top: 10px; }
.team-card summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.team-card details p { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }

/* ---------- Client portfolio ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; align-items: center; }
.toolbar input, .toolbar select, .field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.toolbar input { flex: 1 1 260px; }
.toolbar input:focus, .toolbar select:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--accent); outline-offset: 1px;
}
.count { color: var(--muted); font-size: 0.92rem; margin-left: auto; }
.client-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.client-table th, .client-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.client-table th { background: var(--primary); color: #FFFFFF; font-size: 0.9rem; }
.client-table td { font-size: 0.95rem; color: var(--text); }
.client-table tr:hover td { background: var(--accent-soft); }
.tag { display: inline-block; font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 32px; }

/* ---------- BOKS affiliation ---------- */
.affiliation-band {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
}
.affiliation-band img.boks { width: 100%; max-width: 360px; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.stat-row .stat strong { color: var(--primary); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--ink);
  font-family: Georgia, serif; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.info-card { background: var(--primary); color: #E4E4F2; border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.info-card h3 { color: #FFFFFF; }
.info-card a { color: #FFFFFF; }
.info-card .row { margin-bottom: 18px; }
.info-card .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .12em; color: #C9C9E3; }
form.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 0.92rem; }
.field input, .field select, .field textarea { width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--primary); color: #FFFFFF; border-radius: 22px; padding: clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #FFFFFF; margin: 0; }
.cta-band p { margin: 6px 0 0; color: #E4E4F2; }
.cta-band .btn-ghost { border-color: #FFFFFF; color: #FFFFFF; }
.cta-band .btn-ghost:hover { background: #FFFFFF; color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { background: #0E0D26; color: #C4C4D9; padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #FFFFFF; font-family: Arial, sans-serif; font-size: 0.92rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer a { color: #E4E4F2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { width: 200px; background: transparent; padding: 0; margin-bottom: 14px; }
.footer-bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid #2A2952; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: 0.86rem; color: #8F8FAE;
}

/* ---------- Theme switcher ---------- */
.theme-switcher { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.theme-switcher button {
  font: inherit; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.theme-switcher button[aria-pressed="true"] { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }
.theme-switcher button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.theme-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid, .affiliation-band { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .accordion .acc-body ul { columns: 1; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 84px; left: 0; right: 0; background: var(--surface); flex-direction: column;
    align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden; opacity: 0;
  }
  .nav-links.open { transform: none; visibility: visible; opacity: 1; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-panel { min-height: 220px; padding: 26px; }
  .panel, form.contact-form, .info-card { padding: 24px; }
  .count { margin-left: 0; width: 100%; }
  .client-table th:nth-child(3), .client-table td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}


/* =====================================================================
   Refresh: Indigo default, glass surfaces, particles, photography,
   fluid motion, and the BOKS-only purple zone
   ===================================================================== */

/* Fluid, Apple-style easing used across the site */
:root { --ease-fluid: cubic-bezier(.2, .8, .2, 1); --glass: rgba(255, 255, 255, 0.07); --glass-line: rgba(255, 255, 255, 0.16); }
:root[data-theme="classic"], :root[data-theme="silver"], :root[data-theme="indigo"] { --glass: rgba(255, 255, 255, 0.62); --glass-line: rgba(36, 30, 96, 0.10); }
:root[data-theme="midnight"] { --glass: rgba(255, 255, 255, 0.05); --glass-line: rgba(255, 255, 255, 0.12); }
body { font-feature-settings: "kern" 1, "liga" 1; -webkit-font-smoothing: antialiased; }
.btn, .card, .nav-links a, .theme-switcher button { transition: transform .45s var(--ease-fluid), background-color .35s ease, color .35s ease, box-shadow .45s var(--ease-fluid), border-color .35s ease; }
.btn:active { transform: scale(.97); }

/* Glass header that tightens on scroll */
.site-header { background: var(--header-bg); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); transition: box-shadow .4s ease, background-color .4s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(10, 8, 40, 0.18); }
.site-header .nav { transition: min-height .4s var(--ease-fluid); }
.site-header.scrolled .nav { min-height: 84px; }

/* Glass cards */
.card, .stat, .panel, .info-card, form.contact-form, .accordion details, .faq details, .affiliation-band, .logo-panel {
  background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--glass-line);
}
.card { border-radius: 20px; }
.card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 22px 50px rgba(20, 16, 70, 0.22); }

/* Hero: particle field and background photograph */
.hero { isolation: isolate; }
.hero .particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .bg-photo {
  position: absolute; inset: -6%; z-index: -1; background-size: cover; background-position: center;
  opacity: 0.16; filter: saturate(0.6); will-change: transform; transition: transform .2s linear;
}
.hero .bg-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--hero-from) 0%, rgba(59, 47, 176, 0.85) 55%, var(--hero-to) 100%);
}
.hero .container, .page-hero .container { position: relative; z-index: 1; }
.logo-panel { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; min-height: 320px; }
.logo-panel img { max-width: 360px; }
.hero .logo-panel img.logo-light { display: none; }

/* Photography */
.photo-card { position: relative; border-radius: 22px; overflow: hidden; min-height: 300px; box-shadow: var(--shadow); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1.1s var(--ease-fluid); }
.photo-card:hover img { transform: scale(1.06); }
.photo-card .caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 14px 16px; border-radius: 14px;
  background: rgba(20, 16, 70, 0.55); color: #FFFFFF; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.photo-card .caption h3 { color: #FFFFFF; margin: 0; font-size: 1.05rem; }
.photo-band { position: relative; border-radius: 26px; overflow: hidden; min-height: 320px; box-shadow: var(--shadow); }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 16, 70, 0.88), rgba(20, 16, 70, 0.35)); }
.photo-band .inner { position: relative; z-index: 1; padding: clamp(28px, 5vw, 56px); max-width: 620px; color: #FFFFFF; }
.photo-band h2 { color: #FFFFFF; }
.photo-band p { color: #E6E6F5; }
.team-photo { width: 100%; height: 280px; object-fit: cover; border-radius: 18px; margin-bottom: 18px; }
.cta-band.with-photo { background: var(--primary); }
.cta-band.with-photo::before {
  content: ""; position: absolute; inset: 0; background: url("../assets/img/photos/service.jpg") center/cover; opacity: 0.18;
}

/* Fluid reveal */
.reveal { opacity: 0; transform: translateY(26px) scale(.985); filter: blur(4px); transition: opacity .9s var(--ease-fluid), transform .9s var(--ease-fluid), filter .9s var(--ease-fluid); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* The footer BOKS block: the only BOKS-coloured area outside the affiliation page */
.boks-footer {
  margin-top: 40px; border-radius: 22px; padding: 28px 30px; background: #592194; color: #F3F3F3;
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: center;
}
.boks-footer img { width: 100%; max-width: 230px; height: auto; }
.boks-footer h4 { color: #FFFFFF; font-family: Georgia, serif; font-size: 1.15rem; letter-spacing: 0; text-transform: none; margin: 0 0 8px; }
.boks-footer p { color: #F3F3F3; margin: 0 0 12px; font-size: 0.95rem; }
.boks-footer .boks-link { display: inline-block; background: #FF9100; color: #3D1A5C; padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.boks-footer .boks-link:hover { background: #FFB347; }
.boks-footer .boks-link:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }

/* BOKS affiliation page: the whole main uses the BOKS palette */
.boks-zone {
  --primary: #592194; --primary-2: #3D1A5C; --accent: #7D29B5; --accent-soft: #F3F3F3;
  --ink: #3D1A5C; --text: #3D1A5C; --muted: #73638C; --bg: #FFFFFF; --bg-alt: #F3F3F3;
  --surface: #FFFFFF; --line: #E4DCEF; --link: #592194; --shadow: 0 14px 40px rgba(61, 26, 92, 0.14);
  --hero-from: #592194; --hero-to: #3D1A5C; --hero-text: #FFFFFF; --hero-muted: #F3F3F3;
  --glass: rgba(255, 255, 255, 0.92); --glass-line: rgba(89, 33, 148, 0.12);
}
.boks-zone .btn-primary { background: #592194; color: #FFFFFF; }
.boks-zone .btn-primary:hover { background: #7D29B5; }
.boks-zone .btn-ghost { border-color: #592194; color: #592194; }
.boks-zone .btn-ghost:hover { background: #592194; color: #FFFFFF; }
.boks-zone .eyebrow { color: #592194; }
.boks-zone .checklist li::before { background: #FF9100; }
.boks-zone .card .icon { background: #F3F3F3; color: #592194; }
.boks-zone .panel { background: #592194; }
.boks-zone .page-hero .eyebrow { color: #FFFFFF; }
.boks-zone .cta-band { background: #592194; }
.boks-zone .cta-band .btn-ghost { border-color: #FF9100; color: #FFFFFF; }
.boks-zone .cta-band .btn-ghost:hover { background: #FF9100; color: #3D1A5C; }
.boks-zone .stat strong { color: #592194; }
.boks-zone .affiliation-band { background: #FFFFFF; border-color: #E4DCEF; }

@media (max-width: 820px) {
  .boks-footer { grid-template-columns: 1fr; }
  .photo-band { min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .bg-photo { transform: none !important; }
  .reveal { filter: none; }
}


/* ---------- Light and dark modes (follow the system setting) ---------- */
/* Light = the default Indigo palette. Dark = the Midnight palette, applied
   automatically when the device is set to dark. No manual switcher. */
.theme-switcher { display: none !important; }

/* ---------- BOKS section on the home page (BOKS colours only) ---------- */
.boks-section {
  background: #592194; color: #F3F3F3; border-radius: 26px; padding: clamp(28px, 4.5vw, 52px);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center;
  box-shadow: 0 22px 50px rgba(61, 26, 92, 0.25);
}
.boks-section img { width: 100%; max-width: 340px; height: auto; }
.boks-section h2 { color: #FFFFFF; }
.boks-section p { color: #F3F3F3; }
.boks-section .eyebrow { color: #FFFFFF; opacity: 0.85; }
.boks-section .boks-link { display: inline-block; background: #FF9100; color: #3D1A5C; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.boks-section .boks-link:hover { background: #FFB347; }
@media (max-width: 820px) { .boks-section { grid-template-columns: 1fr; } }


/* ---------- Background pattern and particles on every page ---------- */
body {
  background-image: radial-gradient(circle at 1px 1px, var(--line) 1.1px, transparent 0);
  background-size: 34px 34px;
  background-attachment: fixed;
}
.section { position: relative; }
.section.alt {
  background-color: var(--bg-alt);
  background-image:
    radial-gradient(circle at 1px 1px, var(--line) 1.1px, transparent 0),
    linear-gradient(135deg, rgba(59, 47, 176, 0.04), rgba(59, 47, 176, 0));
  background-size: 34px 34px, 100% 100%;
}
.page-hero .particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page-hero { isolation: isolate; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 0);
  background-size: 30px 30px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.10) 1px, transparent 0);
  background-size: 30px 30px;
}


/* ---------- Solid panels stay solid in every mode ---------- */
:root { --panel-bg: #3B2FB0; }
:root[data-theme="midnight"] { --panel-bg: #241E60; }
:root[data-theme="silver"] { --panel-bg: #36306C; }
.boks-zone { --panel-bg: #592194; }
.panel, .info-card {
  background: var(--panel-bg);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-color: transparent;
}

/* BOKS home section: the purple-toned stock photograph behind the purple block */
.boks-section {
  background-color: #592194;
  background-image: linear-gradient(90deg, rgba(89, 33, 148, 0.92) 0%, rgba(89, 33, 148, 0.78) 55%, rgba(89, 33, 148, 0.55) 100%), url("../assets/img/photos/boks-office-background.jpg");
  background-size: cover; background-position: center;
}


/* ---------- Alignment fixes ---------- */
.photo-band.centred { display: flex; align-items: center; justify-content: center; text-align: center; }
.photo-band.centred .inner { margin: 0 auto; max-width: 720px; text-align: center; }
.services-strip { align-items: stretch; }
.services-strip .photo-card { height: 300px; min-height: 0; }
.services-strip .photo-card img { object-position: center center; }
.photo-card .caption { text-align: center; }

/* ---------- Light-mode menu: dark text, solid selected state ---------- */
:root:not([data-theme="midnight"]) .nav-links a:not(.nav-cta) { color: #1B1450; font-weight: 700; }
:root:not([data-theme="midnight"]) .nav-links a:not(.nav-cta):hover,
:root:not([data-theme="midnight"]) .nav-links a:not(.nav-cta)[aria-current="page"] { background: #3B2FB0; color: #FFFFFF; }

/* Contact button keeps white text on its solid fill in every mode */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover { color: #FFFFFF; }

/* Photo bands never shrink while they fade in, so they always sit on the content edges */
.photo-band.reveal { transform: translateY(26px); }
.photo-band.reveal.in { transform: none; }

/* Photo banners sit flush with the content edges: no drop shadow that reads as a wider frame */
.photo-band { box-shadow: none; }

/* Footer logo: the white version, brightened so it reads clearly on the dark footer */
.footer-logo { filter: brightness(1.08); }
