/* Vanereach: shared site styles
   Layout: full-width navy / white / mist bands, a 1240px content column,
   flex rows that wrap to a single column on phones. Single deliberate look (no theme switching). */
:root {
  --ink: #0B1526;
  --ink-raised: #111E33;
  --ink-deep: #08101D;
  --paper: #FFFFFF;
  --mist: #F3F5F8;
  --line: #DDE1E7;
  --text-muted: #4B5565;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C3CCDA;
  --accent: #F5B83D;
  --font-display: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

a { color: var(--ink); }
a:hover { color: #33425C; }
.on-dark a { color: var(--on-dark); }
.on-dark a:hover { color: #D6DDE8; }

/* Focus: a dark ring plus a gold halo, visible on both white and navy */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--on-dark); }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }

/* Buttons: hover feedback */
a[style*="background: var(--accent)"], button[style*="background: var(--accent)"],
a[style*="background: #0B1526; color: #FFFFFF"] { transition: filter .15s ease, background-color .15s ease; }
a[style*="background: var(--accent)"]:hover, button[style*="background: var(--accent)"]:hover { filter: brightness(0.93); }
a[style*="background: #0B1526; color: #FFFFFF"]:hover { background-color: #1C2A44 !important; color: #FFFFFF; }
a[style*="border: 1px solid rgba(255,255,255,0.28)"]:hover { border-color: rgba(255,255,255,0.6) !important; }

/* Footer links: comfortable tap targets */
footer li a { display: inline-block; padding-block: 4px; }

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 8px;
  background: var(--accent); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }
#main-start { display: block; height: 0; outline: none; }

/* Header: desktop links, phone menu */
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.22); background: transparent; color: var(--on-dark);
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle.is-open .icon-open { display: none; }
.menu-toggle.is-open .icon-close { display: block; }

.mobile-menu { padding-block: 8px 24px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu li a {
  display: flex; align-items: center; min-height: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--on-dark); font-family: var(--font-display); font-weight: 600; font-size: 20px; text-decoration: none;
}
.mobile-menu li a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.mobile-menu .mobile-menu-cta {
  margin-top: 20px; display: flex; align-items: center; justify-content: center; min-height: 52px;
  border-radius: 8px; background: var(--accent); color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none;
}
.on-dark .mobile-menu .mobile-menu-cta, .on-dark .mobile-menu .mobile-menu-cta:hover { color: var(--ink); }

@media (max-width: 1000px) {
  .nav-links { display: none !important; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1001px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 520px) {
  .nav-cta { display: none !important; }
}

/* FAQ accordions */
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
.faq-plus { transition: transform .2s ease; }
details[open] .faq-plus { transform: rotate(45deg); }

/* Cards */
.svc-card { transition: border-color .15s ease, transform .15s ease; }
.svc-card:hover { border-color: var(--ink) !important; transform: translateY(-2px); }
.rel-card { transition: border-color .15s ease; }
.rel-card:hover { border-color: var(--ink) !important; }
.cs-card .cs-img { transition: transform .2s ease; }
.cs-card:hover .cs-img { transform: scale(0.985); }
.cs-card:hover .cs-title { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1100px) { .cs-card { max-width: calc((100% - 48px) / 3); } }
@media (min-width: 740px) and (max-width: 1099px) { .cs-card { max-width: calc((100% - 24px) / 2); } }

/* Case study filter */
.cs-chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid #C9D0DA;
}
.cs-chip:hover { border-color: var(--ink); }
.cs-chip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* Tables */
.rpt th, .rpt td { padding: 16px 18px; text-align: left; border-bottom: 1px solid #E3E7ED; vertical-align: middle; }
.rpt th { font-size: 13px; font-weight: 600; color: #5B6472; letter-spacing: .04em; text-transform: uppercase; background: #F8F9FB; }
.rpt tr:last-child td { border-bottom: 0; }
.cmp th, .cmp td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid #E3E7ED; font-size: 15px; line-height: 1.5; }
.cmp thead th { font-size: 13px; font-weight: 600; color: #5B6472; letter-spacing: .04em; text-transform: uppercase; background: #F8F9FB; }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }

/* Forms */
input, textarea, button { font: inherit; }
input::placeholder, textarea::placeholder { color: #7D8AA0; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button[type="submit"]:disabled { opacity: .7; cursor: progress; }
.form-status {
  padding: 14px 16px; border-radius: 8px; font-size: 15px; line-height: 1.5;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: var(--on-dark);
}
.form-status[data-kind="success"] { border-color: var(--accent); }
.form-status[data-kind="error"] { border-color: #F07D4A; }

/* Long-form text (privacy page) */
.prose h2 { margin-top: 48px; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.prose p, .prose li { margin-top: 14px; font-size: 17px; line-height: 1.7; color: #33425C; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose ul li { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
