/* BA Confidence Studio
   Colours: change these to restyle the whole site. */
:root {
  --navy: #0C1E37;       /* header, hero, dark sections */
  --navy-2: #15294A;     /* panels on navy */
  --teal: #55E7ED;       /* bright accent on navy: buttons, sticky note */
  --teal-deep: #0E7C86;  /* links and focus on white */
  --purple: #A78BFA;     /* second accent on navy */
  --purple-deep: #6D4FD8;/* second accent on white */
  --white: #FFFFFF;
  --mist: #F4F7FB;       /* soft background for contact and panels */
  --ink: #0C1E37;        /* main text on white */
  --slate: #56657B;      /* secondary text on white */
  --cloud: #C3CEDD;      /* secondary text on navy */
  --line: #DFE5EE;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--teal-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--purple-deep); outline-offset: 3px;
}
.site-header a:focus-visible, .site-header button:focus-visible, .hero a:focus-visible, .hero button:focus-visible,
.section-ink a:focus-visible, .site-footer a:focus-visible { outline-color: var(--teal); }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--teal); color: var(--navy); padding: 10px 14px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 30, 55, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.site-nav a:hover { color: var(--teal); }
.site-nav .nav-button { background: var(--teal); color: var(--navy); padding: 10px 18px; border-radius: var(--radius); font-weight: 600; }
.site-nav .nav-button:hover { background: #8AF0F3; color: var(--navy); }
.menu-toggle {
  display: none; font: inherit; font-weight: 600; color: var(--white);
  background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius); padding: 7px 14px; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: var(--radius); border: 2px solid transparent; text-align: center;
}
.btn-primary { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn-primary:hover { background: #8AF0F3; border-color: #8AF0F3; }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-ink { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-ink:hover { background: var(--navy-2); }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 120px 0 136px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center; }
.hero h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 5.6vw, 4.75rem); font-weight: 500; line-height: 1.13; letter-spacing: -0.035em;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--teal); }
.lead { font-size: 1.2rem; font-weight: 400; color: var(--cloud); margin: 32px 0 40px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* The sticky note: the one bold element on the page */
.story { margin: 0; }
.story-switch { display: inline-flex; gap: 4px; padding: 4px; background: rgba(255,255,255,0.08); border-radius: 999px; margin-bottom: 24px; }
.story-tab {
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--cloud);
  background: none; border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer;
}
.story-tab:hover { color: var(--white); }
.story-tab[aria-pressed="true"] { background: var(--purple); color: var(--navy); }
.note {
  position: relative; background: var(--teal); color: var(--navy);
  padding: 38px 38px 46px; transform: rotate(-1.5deg);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%);
  min-height: 300px;
}
.note::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 44px; height: 44px;
  background: linear-gradient(135deg, #2FB9C0 50%, transparent 50%);
}
.note-story { margin: 0; display: grid; gap: 18px; }
.note-story div { display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; align-items: baseline; }
.note-story dt { font-size: 0.95rem; font-weight: 600; color: #4B33A8; }
.note-story dd { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.note-story.is-entering dd { animation: write 0.45s ease-out both; }
.note-story.is-entering div:nth-child(2) dd { animation-delay: 0.08s; }
.note-story.is-entering div:nth-child(3) dd { animation-delay: 0.16s; }
@keyframes write { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.story figcaption { margin-top: 26px; color: var(--cloud); font-size: 0.95rem; max-width: 40ch; }

/* Sections */
.section { padding: 128px 0; }
.section-head h2, .about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; max-width: 20ch; }
.section-head p { color: var(--slate); margin-top: 20px; max-width: 56ch; font-size: 1.1rem; }

.service-list { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.service { display: flex; flex-direction: column; }
.service-art { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }
.service-art img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.service h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.service p { color: var(--ink); }
.service .service-meta { color: var(--slate); font-size: 0.93rem; margin-top: auto; }
.service-link { font-weight: 600; text-underline-offset: 3px; }

.steps-block { margin-top: 96px; padding: 40px 44px; background: var(--mist); border-radius: var(--radius); }
.steps-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; color: var(--slate); }
.steps li strong { display: block; color: var(--ink); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--purple-deep); color: var(--white); font-weight: 700; display: grid; place-items: center;
}

.section-ink { background: var(--navy); color: var(--white); }
.section-ink .section-head p { color: var(--cloud); }
.section-ink .section-head .btn { margin-top: 16px; }
.section-ink .service-link { color: var(--teal); }
.section-ink .section-head h2 { color: var(--white); }
.org-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.org-list { list-style: none; padding: 0; margin: 0; }
.org-list li { padding: 30px 0 30px 22px; border-left: 3px solid var(--purple); margin-bottom: 18px; background: var(--navy-2); border-radius: 0 var(--radius) var(--radius) 0; padding-right: 24px; }

.org-list h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.org-list p { color: var(--cloud); margin-bottom: 10px; }

.about-grid { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 88px; align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: var(--radius);
  background: var(--navy); display: grid; place-items: center;
}
.about-photo svg { width: 40%; }
.about-copy p { max-width: 58ch; margin-top: 18px; }
.principles { padding: 0; margin: 28px 0 0; list-style: none; display: grid; gap: 10px; }
.principles li { padding-left: 28px; position: relative; font-weight: 600; }
.principles li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; border-radius: 50%; background: var(--purple-deep);
}

/* Articles */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.article-list { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article { background: var(--navy-2); border-top: 3px solid var(--purple); border-radius: 0 0 var(--radius) var(--radius); padding: 28px 28px 30px; display: flex; flex-direction: column; }
.article h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.article-meta { color: var(--cloud); font-size: 0.95rem; margin-bottom: 20px; }
.article .service-link { margin-top: auto; }
@media (max-width: 960px) { .article-list { grid-template-columns: 1fr; } }

/* Contact */
.section-tint { background: var(--mist); }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.contact-email { font-size: 1rem !important; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: 0 1px 3px rgba(20, 39, 63, 0.08); }
.form-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--mist); border-radius: var(--radius); margin-bottom: 32px; }
.form-tab {
  font: inherit; font-weight: 600; color: var(--slate); background: none; border: 0; border-radius: 4px; padding: 10px; cursor: pointer;
}
.form-tab[aria-selected="true"] { background: var(--navy); color: var(--white); box-shadow: 0 1px 2px rgba(20, 39, 63, 0.15); }
.no-js-heading { display: none; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 11px 12px; border: 1px solid #B9C2CD; border-radius: 4px; background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.hint { font-size: 0.88rem; color: var(--slate); margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--slate); margin: 4px 0 24px; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--purple-deep); }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Without JavaScript both forms show, each with a heading */
.no-js .form-switch { display: none; }
.no-js .no-js-heading { display: block; font-size: 1.2rem; margin-bottom: 16px; }
.no-js #panel-org { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--navy); color: var(--cloud); padding: 48px 0; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer-inner p { margin: 0; }
.footer-brand { color: var(--white); font-weight: 700; }
.footer-brand span { display: block; color: var(--cloud); font-weight: 400; font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--white); text-decoration: none; }
.footer-nav a:hover { color: var(--teal); }

/* Simple pages: privacy, thank you, 404 */
.page { padding: 112px 0 128px; }
.page .wrap { max-width: 720px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 20px; }
.page h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.page .btn { margin-top: 16px; }
.page .note-small {
  display: inline-block; background: var(--purple-deep); color: var(--white); border-radius: 4px; padding: 4px 10px; font-weight: 600; font-size: 0.9rem; margin-bottom: 18px;
}

/* Tablet and mobile */
@media (max-width: 960px) {
  .hero-grid, .org-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 72px 0 88px; }
  .service-list { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .about-photo { max-width: 320px; }
  .story { max-width: 520px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 8px 24px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .site-nav .nav-button { margin-top: 12px; text-align: center; border: 0; }
  .no-js .site-nav { display: flex; position: static; padding: 0 0 12px; }
  .no-js .menu-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; }
  .section { padding: 88px 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px; }
  .note { padding: 28px 24px 40px; }
  .note-story div { grid-template-columns: 1fr; gap: 2px; }
  .steps-block { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .note-story.is-entering dd { animation: none; }
}

/* Credentials: uses existing type scale, palette and section spacing */
.credential-list { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }
.credential { border-top: 3px solid var(--teal-deep); padding-top: 22px; }
.credential-kicker { display: block; color: var(--teal-deep); font-weight: 700; font-size: .78rem; letter-spacing: .09em; margin-bottom: 14px; }
.credential h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.credential p { color: var(--slate); font-size: .95rem; }
@media (max-width: 960px) { .credential-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .credential-list { grid-template-columns: 1fr; gap: 26px; margin-top: 40px; } }

/* Webinar presentation download — matches the existing navy/teal type and spacing */
.webinar-section { background: var(--white); }
.webinar-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 54px; }
.webinar-cover { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); box-shadow: 0 14px 42px rgba(12,30,55,.15); color: var(--navy); text-decoration: none; }
.webinar-cover img { width: 100%; height: auto; aspect-ratio: 722 / 406; object-fit: cover; transition: transform .22s ease; }
.webinar-cover:hover img { transform: scale(1.025); }
.cover-action { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; color: var(--navy); background: var(--teal); font-size: .95rem; font-weight: 700; }
.cover-action span { font-size: 1.3rem; }
.webinar-kicker { color: var(--teal-deep); font-size: .82rem; font-weight: 800; letter-spacing: .1em; }
.webinar-copy h2 { font-size: clamp(1.9rem,3vw,2.7rem); margin: 15px 0 20px; }
.webinar-copy p { color: var(--slate); }
.webinar-download { margin: 10px 0 5px; gap: 24px; }
.webinar-note { font-size: .87rem; margin: 9px 0 0; }
@media(max-width: 960px) { .webinar-grid { grid-template-columns: 1fr; gap: 32px; } }
