/* =========================================================
   Elixir Insights: shared stylesheet
   Edit colours and fonts in the :root block below.
   ========================================================= */

:root {
  --ink:     #0F2438;   /* darkest navy, dark sections, headings */
  --navy:    #17436E;   /* primary buttons and links */
  --navy-dk: #103254;
  --brass:   #A87A3C;   /* accent: rules, numerals, small marks */
  --mist:    #EEF1F5;   /* alternate section background */
  --line:    #D7DEE5;   /* hairline borders */
  --body:    #4A5B6D;   /* body copy */
  --paper:   #FFFFFF;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.28rem; line-height: 1.25; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.lede { font-size: 1.14rem; max-width: 64ch; }
.measure { max-width: 68ch; }
.muted { color: #6C7C8D; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1;
}
.brand-name span { color: var(--brass); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--ink);
  font-size: .97rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { text-decoration: none; border-bottom-color: var(--brass); }
.nav a.current { border-bottom-color: var(--brass); }

/* "Talk to us" button in the header: white text, proper button padding */
.nav a.btn {
  color: #fff;
  padding: 10px 22px;
  border: 1px solid var(--navy);
}
.nav a.btn:hover,
.nav a.btn:focus-visible {
  color: #fff;
  background: var(--navy-dk);
  border-color: var(--navy-dk);
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 3px; padding: 9px 11px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .97rem;
  font-weight: 500;
  padding: 13px 26px;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--navy-dk); border-color: var(--navy-dk); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--mist); color: var(--ink); border-color: #B9C5D0; }

.btn-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.45);
}
.btn-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Sections ---------- */

.section { padding: 86px 0; }
.section-mist { background: var(--mist); }
.section-tight { padding: 58px 0; }

.section-head { max-width: 70ch; margin-bottom: 44px; }
.section-head p { font-size: 1.08rem; }

.rule-top { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: #C8D5E1;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 104px 0 96px;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { font-size: 1.18rem; max-width: 52ch; color: #BCCBD9; }
.hero-motif { justify-self: end; opacity: .9; }

.hero-strip { border-top: 1px solid rgba(255,255,255,.16); }
.hero-strip .wrap {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.hero-strip div {
  padding: 26px 30px 26px 0;
  border-left: 1px solid rgba(255,255,255,.16);
  padding-left: 30px;
}
.hero-strip div:first-child { border-left: 0; padding-left: 0; }
.hero-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}
.hero-strip span { font-size: .93rem; color: #9DB0C2; }

.page-head {
  background: var(--ink);
  color: #BCCBD9;
  padding: 78px 0 70px;
}
.page-head h1 { color: #fff; margin-bottom: .35em; }
.page-head p { font-size: 1.12rem; max-width: 60ch; }
.page-head .kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 1.02rem;
  margin-bottom: 14px;
}

/* ---------- Grids and tiles ---------- */

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.tile {
  background: var(--paper);
  padding: 34px 32px;
}
.tile h3 { margin-bottom: .45em; }
.tile p { font-size: .99rem; }
.tile-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 500;
  font-size: .95rem;
  border-bottom: 1px solid var(--brass);
}
.tile-link:hover { text-decoration: none; color: var(--ink); }

.section-mist .tile { background: var(--paper); }

/* ---------- Steps (genuine sequence) ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { border-top: 2px solid var(--brass); padding-top: 20px; }
.step .num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--brass);
  display: block;
  margin-bottom: 8px;
}
.step h3 { font-size: 1.16rem; }
.step p { font-size: .99rem; }

/* ---------- Service detail blocks ---------- */

.service {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; }
.service h2 { font-size: 1.85rem; }
.service ul { margin: 0; padding-left: 20px; }
.service li { margin-bottom: 9px; }

/* ---------- Case notes ---------- */

.case {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 32px;
}
.case .sector {
  font-size: .88rem;
  color: var(--brass);
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: 10px;
}
.case h3 { font-size: 1.18rem; }
.case .result {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Insight cards ---------- */

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.post { border-top: 1px solid var(--ink); padding-top: 18px; }
.post .meta { font-size: .87rem; color: #6C7C8D; margin-bottom: 10px; }
.post h3 { font-size: 1.2rem; margin-bottom: .4em; }
.post h3 a { color: var(--ink); }
.post h3 a:hover { color: var(--navy); text-decoration: none; }
.post p { font-size: .97rem; }

/* ---------- People ---------- */

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.person { border-top: 1px solid var(--line); padding-top: 18px; }
.person .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--mist);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink);
  margin-bottom: 14px;
}
.person h3 { font-size: 1.1rem; margin-bottom: .2em; }
.person .role { font-size: .92rem; color: var(--brass); margin-bottom: 10px; }
.person p { font-size: .95rem; }

/* ---------- Article body ---------- */

.article { padding: 64px 0 80px; }
.article-body { max-width: 68ch; }
.article-body h2 { font-size: 1.55rem; margin-top: 1.7em; }
.article-body p { font-size: 1.06rem; }
.article-body blockquote {
  margin: 34px 0;
  padding-left: 24px;
  border-left: 3px solid var(--brass);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  font-style: italic;
}
.article-body ul { padding-left: 20px; }
.article-body li { margin-bottom: 10px; font-size: 1.04rem; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  outline: 2px solid rgba(23,67,110,.15);
  outline-offset: 0;
}

.detail-block { border-top: 1px solid var(--line); padding: 22px 0; }
.detail-block h3 { font-size: 1.02rem; margin-bottom: .3em; }
.detail-block p { font-size: .98rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: #D3E0EC;
  padding: 62px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 56ch; font-size: 1.08rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #93A7B9;
  padding: 62px 0 28px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 38px;
  padding-bottom: 38px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer a { color: #93A7B9; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: .88rem;
}
.footer-base a { display: inline; margin: 0 0 0 20px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 74px 0 64px; }
  .hero-motif { display: none; }
  .grid-3, .posts, .people, .steps { grid-template-columns: repeat(2, 1fr); }
  .service, .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a.current { border-bottom-color: var(--line); color: var(--navy); }
  .nav .btn { margin-top: 14px; width: 100%; text-align: center; border-bottom: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 58px 0; }
  .grid-2, .grid-3, .posts, .people, .steps { grid-template-columns: 1fr; }
  .hero-strip .wrap { grid-template-columns: 1fr; }
  .hero-strip div {
    border-left: 0; padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,.16);
  }
  .hero-strip div:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-base { flex-direction: column; }
  .footer-base a { margin: 0 18px 0 0; }
}

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