/* ==========================================================================
   Learn2Lead Consult: site styles
   Design tokens first, then base, layout, components and page sections.
   ========================================================================== */

/* Fonts (self-hosted, SIL Open Font License; see assets/fonts) ------------- */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }

/* Tokens ------------------------------------------------------------------- */
:root {
  /* Colour (from the Learn2Lead logo) */
  --paper: #ffffff;
  --ink: #0e0b33;
  --indigo: #1b118b;
  --cyan: #01a0e2;
  --mist: #eef0f6;
  --slate: #545869;
  --body-muted: #3a3d52;
  --rule: #c9cdd8;
  --rule-light: #dadde8;
  --field-border: #9ea2b6;
  --on-dark: #ffffff;
  --on-dark-muted: #c3c5dd;
  --indigo-rule: #4a41b0;

  /* Type */
  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Layout */
  --max-width: 1240px;
  --gutter: 24px;
  --section-space: clamp(80px, 10vw, 136px);
  --radius-sm: 4px;
  --radius-md: 6px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p, ul, ol, dl, figure, blockquote { margin: 0; }

a { color: var(--indigo); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 16px;
  background: var(--indigo); color: var(--on-dark);
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; color: var(--on-dark); }

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

/* Layout ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); }
.section--mist { background: var(--mist); }
.section--indigo { background: var(--indigo); color: var(--on-dark); }
.section--ruled { border-top: 1px solid var(--rule-light); }

/* Heading in a narrow left column, content in a wide right column */
.split { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.split__head { flex: 1 1 260px; }
.split__body { flex: 999 1 560px; min-width: 0; }
.split__body--narrow { max-width: 760px; }

.h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); font-weight: 700; }
.lead { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.45; }
.muted { color: var(--body-muted); }
.small { font-family: var(--font-sans); font-size: 0.9375rem; color: var(--slate); }
.stack > * + * { margin-top: 20px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 16px 26px;
  border: 1.5px solid var(--indigo);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--indigo); color: var(--on-dark); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn--secondary { background: transparent; color: var(--indigo); }
.btn--secondary:hover { background: var(--mist); color: var(--indigo); }
.btn--compact { padding: 11px 18px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: relative; z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-light);
  font-family: var(--font-sans);
}
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px;
  padding-block: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--font-sans); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 52px; height: 52px; object-fit: contain; }
.brand__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.brand__name span { display: block; font-weight: 500; color: var(--slate); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 1rem; font-weight: 500; }
.site-nav__link { padding-block: 12px; color: var(--ink); text-decoration: none; }
.site-nav__link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.site-nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

@media (max-width: 960px) {
  /* Smaller screens keep only the call-to-action button; every link is repeated in the footer */
  .site-nav__link { display: none; }
}
@media (max-width: 480px) {
  /* Phones: "Book a DISC discovery call" shortens to "Book a call" so it fits beside the logo */
  .cta-long { display: none; }
}

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__ring {
  position: absolute;
  top: 32px;
  right: clamp(-250px, -13vw, -110px);
  width: clamp(260px, 38vw, 560px);
  height: auto;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding-top: clamp(96px, calc(330px - 16vw), 270px);
  padding-bottom: 72px;
}
.hero__content { max-width: 900px; display: flex; flex-direction: column; gap: 32px; }
.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--indigo);
}
.hero__lede { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.55; max-width: 640px; }
.hero__media { position: relative; }

/* Photos and placeholders -------------------------------------------------- */
.photo {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--mist);
  object-fit: cover;
}
.photo--hero { height: clamp(220px, 40vw, 540px); }
.photo--portrait { aspect-ratio: 4 / 5; max-width: 440px; }
.photo--stage { aspect-ratio: 3 / 2; }

/* Shown until a real photo replaces it */
.photo-placeholder {
  display: flex; align-items: flex-end;
  padding: 20px 24px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--slate);
}
.section--mist .photo-placeholder { background: var(--rule-light); color: #454859; }

/* Services ----------------------------------------------------------------- */
.service-list { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.service {
  display: flex; flex-wrap: wrap; gap: 8px 40px;
  padding-block: 32px;
  border-top: 1px solid var(--rule);
}
.service__title {
  flex: 1 1 300px;
  font-size: 1.625rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--indigo);
}
.service__text { flex: 1 1 340px; color: var(--body-muted); }
.services__intro { max-width: 300px; margin-top: 16px; font-size: 1.0625rem; }

/* Approach ----------------------------------------------------------------- */
.approach { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.approach__statement { max-width: 820px; font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.4; }
.outcome { padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--indigo-rule); }
.outcome p {
  max-width: 1000px;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.02em;
}

/* Who we serve ------------------------------------------------------------- */
.audience-list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
}
.audience-list li {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-sans); font-size: 1.375rem; font-weight: 600; line-height: 1.3;
}

/* Founder ------------------------------------------------------------------ */
.founder { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; }
.founder__photo { flex: 1 1 300px; max-width: 440px; }
.founder__body { flex: 999 1 480px; min-width: 0; max-width: 680px; }
.founder__role { margin-top: 8px; font-family: var(--font-sans); font-size: 1.125rem; color: var(--slate); }
.founder__bio { margin-top: 20px; }
.credentials { margin-top: 36px; }
.credentials h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; }
.credentials ul { list-style: none; padding: 0; margin-top: 16px; border-top: 1px solid var(--rule); }
.credentials li { padding-block: 16px; border-bottom: 1px solid var(--rule); }

/* Speaking ----------------------------------------------------------------- */
.speaking { display: flex; flex-direction: column; gap: 48px; }
.speaking__grid { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.speaking__media { flex: 1 1 360px; min-width: 0; }
.speaking__details { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.talk-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.talk { padding-block: 22px; border-bottom: 1px solid var(--rule); }
.talk h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--indigo); }
.talk p { margin-top: 4px; font-size: 1.0625rem; color: var(--body-muted); }
.quote blockquote { font-size: clamp(1.375rem, 2vw, 1.75rem); font-style: italic; line-height: 1.4; }
.quote figcaption { margin-top: 16px; font-family: var(--font-sans); font-size: 1rem; color: var(--slate); }
.quote figcaption strong { color: var(--ink); font-weight: 600; }

/* Contact and forms -------------------------------------------------------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.contact__intro { flex: 1 1 300px; min-width: 0; }
.contact__intro p { margin-top: 20px; max-width: 380px; }
.contact-details {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 24px;
  margin-top: 28px;
  font-family: var(--font-sans); font-size: 1rem;
}
.contact-details dt { color: var(--slate); }
.contact-details dd { margin: 0; }

.form { flex: 999 1 520px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 20px; font-family: var(--font-sans); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 1rem; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--slate); }

input, select, textarea {
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
input::placeholder, textarea::placeholder { color: #6e7186; }
input:focus, select:focus, textarea:focus { border-color: var(--indigo); }
textarea { resize: vertical; min-height: 140px; }

.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { font-size: 1rem; }
[data-form-status][data-state="success"] { color: #136c3b; }
[data-form-status][data-state="error"] { color: #a3261f; }
input[aria-invalid="true"] { border-color: #a3261f; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark); font-family: var(--font-sans); font-size: 1rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-block: 64px 48px; }
.site-footer__brand { flex: 2 1 280px; }
/* Same two-row structure as the Company and Follow columns: heading, then content */
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.site-footer__brand p { color: var(--on-dark-muted); }
@media (max-width: 480px) { .site-footer__brand p { font-size: 0.875rem; } } /* keeps the services line on one line on phones */
.footer-col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
/* Company links: one row, centred under their heading */
.footer-col--company { flex: 2 1 360px; align-items: center; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
/* The Follow column keeps its four icons on one row */
.footer-col--follow { flex: 0 0 auto; }
/* Desktop: three columns with the Company group exactly on the page's centre line */
@media (min-width: 1201px) {
  .site-footer__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; column-gap: 48px; }
  .site-footer__brand { justify-self: start; }
  .footer-col--company { justify-self: center; }
  .footer-col--follow { justify-self: end; }
  /* Right column flush right: heading ends where the last icon ends */
  .footer-col--follow { align-items: flex-end; text-align: right; }
  .footer-col--follow .social-icons { margin-right: -11px; }
  .site-footer__brand p { white-space: nowrap; }
  /* Second row: services line, links and icons share one centre line (icon row height) */
  .footer-links, .site-footer__brand p { min-height: 44px; display: flex; align-items: center; }
}
/* Laptops, tablets and phones: one centred column, logo, Company links, then social icons */
@media (max-width: 1200px) {
  .site-footer__top { flex-direction: column; align-items: center; text-align: center; gap: 36px; }
  .site-footer__brand, .footer-col { flex: none; align-items: center; }
  .site-footer__brand { display: flex; flex-direction: column; align-items: center; }
  .footer-col .social-icons { justify-content: center; }
  .site-footer .site-footer__bottom { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
}
/* Social icons: plain glyphs, no boxes; each keeps a 44px tap area */
.social-icons { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  color: var(--indigo);
}
.social-icon:hover { color: var(--ink); }
.social-icon svg { width: 22px; height: 22px; }
/* On the dark footer */
.site-footer .social-icon { color: var(--on-dark-muted); }
.site-footer .social-icon:hover { color: var(--on-dark); text-decoration: none; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-block: 24px 32px;
  border-top: 1px solid #2c2860;
  font-size: 0.875rem; color: #a9abc8;
}
.site-footer__bottom a { color: #a9abc8; }
.legal-links { display: flex; flex-wrap: wrap; gap: 24px; }

/* Simple content pages (privacy, 404) -------------------------------------- */
.page-header { padding-block: clamp(64px, 8vw, 104px) 32px; }
.page-header h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); color: var(--indigo); letter-spacing: -0.03em; }
.page-header p { margin-top: 16px; }
.prose { max-width: 720px; padding-bottom: var(--section-space); }
.prose h2 { margin-top: 48px; font-size: 1.625rem; font-weight: 700; }
.prose h2 + p, .prose h2 + ul { margin-top: 12px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 16px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }

/* Coming-soon page --------------------------------------------------------- */
.page-coming-soon {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
/* The ring from the logo, cropped off the top-right corner (clipped so it never widens the page) */
.cs-backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cs-ring {
  position: absolute;
  top: clamp(-150px, -9vw, -50px);
  right: clamp(-260px, -14vw, -110px);
  width: clamp(230px, 40vw, 560px);
  height: auto;
  pointer-events: none;
}
.cs-main {
  position: relative;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(96px, 12vw, 128px) var(--gutter) clamp(64px, 8vw, 96px);
}
.cs-inner {
  width: 100%; max-width: 600px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.cs-logo { width: 84px; height: 84px; object-fit: contain; }
.cs-name {
  margin-top: 28px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.03em;
  color: var(--indigo);
}
.cs-tagline {
  margin-top: 16px;
  font-size: clamp(1.1875rem, 2vw, 1.4375rem); line-height: 1.45;
  color: var(--body-muted);
}
.cs-note {
  width: 100%;
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: clamp(32px, 5vw, 44px);
  border-top: 1px solid var(--rule-light);
}
.cs-status { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 600; }
.cs-text { margin-top: 12px; color: var(--body-muted); }
.cs-form { width: 100%; margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-sans); }
.cs-form label { font-size: 1rem; font-weight: 600; }
/* Even out short centred lines so no word is left on its own */
.cs-tagline, .cs-form label, .cs-status { text-wrap: balance; }
/* Tagline may run a little wider than the text column so it stays on one line where it fits */
.cs-tagline { width: max-content; max-width: calc(100vw - 2 * var(--gutter)); }
.cs-text { text-wrap: pretty; }
.cs-field { width: 100%; max-width: 480px; display: flex; gap: 10px; }
.cs-field input { flex: 1; min-width: 0; width: auto; }
@media (max-width: 480px) {
  .cs-field { flex-direction: column; }
  .cs-field .btn { width: 100%; }
}
.cs-social { margin-top: 40px; }
.cs-social .social-icons { justify-content: center; }
.cs-footer {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  padding: 24px var(--gutter) 32px;
  font-family: var(--font-sans); font-size: 0.875rem; color: var(--slate);
}
.cs-footer a { color: var(--slate); }
.cs-footer a:hover { color: var(--indigo); }
