/* Alsper Consultancy — 30 Sep 2026 (v10: photo captions, Home tiles in one block). One stylesheet for all pages.
   Colours and spacing as exported from the approved Claude Design pages
   (24 Sep 2026). System fonts only; nothing is fetched.

   Three text sizes only (Jasper, 27 Sep 2026):
     --size-head   headlines: the opening line and the page headings
     --size-body   all body text, the header, banners and buttons
     --size-small  small print: the footer and the photo captions
   No italic, no forced capitals, no spaced-out labels. */

:root {
  --paper: oklch(0.972 0.012 85);
  --ink: oklch(0.22 0.012 60);
  --ink-2: oklch(0.32 0.013 60);
  --muted: oklch(0.38 0.014 60);
  --rule: oklch(0.85 0.015 80);
  --blue: oklch(0.36 0.05 235);
  --blue-dark: oklch(0.26 0.05 235);
  --on-blue: oklch(0.972 0.012 85);
  --gold: oklch(0.82 0.06 78);
  --tint: oklch(0.945 0.016 85);
  --gutter: clamp(20px, 5vw, 80px);

  --size-head: clamp(30px, 4vw, 44px);
  --size-body: clamp(17px, 1.5vw, 19px);
  --size-small: 14px;

  /* header height: 14px padding top and bottom, 1px rule, logo square */
  --hdr: calc(29px + clamp(46px, 5.6vw, 64px));
}

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

html, body { margin: 0; padding: 0; }

/* keeps a focused link clear of the sticky header */
html { scroll-padding-top: calc(var(--hdr) + 8px); }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Iowan Old Style', 'Hoefler Text', Georgia, serif;
  font-size: var(--size-body);
  font-style: normal;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

p, h1, h2, ol { margin: 0; }

/* In-page headings (Home, Consultancy): body size, bold */
h2 {
  font-size: var(--size-body);
  font-weight: 700;
  line-height: 1.6;
}

h1 {
  font-size: var(--size-head);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

strong { font-weight: 700; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

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

/* "Skip to content": hidden until it has keyboard focus, then top left */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  padding: 8px 14px;
  background: var(--paper);
  color: var(--blue);
  font-size: var(--size-body);
  line-height: 1.2;
}

/* ---------- Header (every page) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 20px);
  padding: 14px clamp(16px, 5vw, 80px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(9px, 1.1vw, 14px);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }

.brand-mark {
  width: clamp(46px, 5.6vw, 64px);
  height: clamp(46px, 5.6vw, 64px);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--on-blue);
  font-size: var(--size-body);
  line-height: 1;
}

.brand-name {
  font-size: var(--size-body);
  white-space: nowrap;
}

.contact {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  height: clamp(44px, 4.6vw, 50px);
  padding: 0 clamp(14px, 1.8vw, 22px);
  border-radius: 3px;
  background: var(--blue);
  color: var(--on-blue);
  font-size: var(--size-body);
  text-decoration: none;
  white-space: nowrap;
}
.contact:hover,
.contact:focus-visible { background: var(--blue-dark); color: var(--on-blue); }

/* ---------- Footer (every page) ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 40px) var(--gutter) clamp(36px, 4vw, 52px);
  font-size: var(--size-small);
  line-height: 1.75;
  color: var(--muted);
}
.site-footer .legal { margin-bottom: 4px; }
.site-footer .office { margin-bottom: 12px; }

/* ---------- Front page (v8, 30 Sep 2026) ----------
   One column, like the section pages (it uses their layout: body class
   "section home"). The three service tiles are one block (v10): side by
   side where the width allows, stacked on a phone. */

.eyebrow { font-size: var(--size-body); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 12px);
}

.banners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .banners { grid-template-columns: repeat(3, 1fr); }
  .banners .banner { flex-direction: column; align-items: flex-start; justify-content: space-between; }
}

.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: clamp(12px, 1.6vw, 20px) clamp(14px, 1.8vw, 22px);
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--on-blue);
  font-size: var(--size-body);
  line-height: 1.4;
  text-decoration: none;
}
.banner:hover,
.banner:focus-visible {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--on-blue);
  box-shadow: inset 0 -3px 0 var(--gold);
}
.banner-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.banner-title { font-weight: 700; }
.banner-arrow { flex: 0 0 auto; }

/* ---------- Section pages (Consultancy, Business development, Coaching) ----------
   One layout for all three: heading first, all the text below it. */

.section main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 40px) clamp(20px, 5vw, 40px) clamp(48px, 7vw, 96px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.2vw, 26px);
}

.section main p,
.section main ol { text-wrap: pretty; }

/* "← Home": a proper button, top and bottom of each section page */
.home-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  min-width: 44px;
  align-self: flex-start;
  padding: 8px 22px 8px 18px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  background: var(--paper);
  color: var(--blue);
  font-size: var(--size-body);
  line-height: 1.2;
  text-decoration: none;
}
.home-button:hover,
.home-button:focus-visible {
  background: var(--blue);
  color: var(--on-blue);
}
.home-button:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
}

.section-head {
  padding-bottom: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--rule);
}

.part {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.2vw, 26px);
  padding-top: clamp(20px, 2.6vw, 30px);
  border-top: 1px solid var(--rule);
}
.section ol { padding-left: 1.4em; }
.section li { margin-bottom: 10px; padding-left: 4px; }
.section li:last-child { margin-bottom: 0; }

/* Redirect page (solutions.html) */
.moved main { flex: 1 0 auto; }

/* ---------- Photographs (v3, 28 Sep; v4, v10, 30 Sep 2026) ----------
   At phone width every photo is the full width of the column.
   Captions (v10): the footer's small size and colour, aligned to the right
   edge of the photo, with a clear gap before the text that follows. */

.photo { margin: 0 0 clamp(10px, 1.4vw, 16px); }
.photo figcaption {
  margin-top: 8px;
  font-size: var(--size-small);
  line-height: 1.5;
  color: var(--muted);
  text-align: right;
  text-wrap: pretty;
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--tint);
}

/* Section pages (30 Sep 2026): every photo is the full width of the text
   column, between paragraphs. Nothing sits beside text or wraps round it. */
.section .photo,
.section .photo picture { display: block; width: 100%; }
