/* Socilio website styles
   One column, light paper, EB Garamond headlines set large, Geist for small text,
   navy and red used sparingly, a navy band to close. */

@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/geist-sans-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #F6F6F3;
  --white: #FFFFFF;
  --ink: #0E1B2E;
  --slate: #55606E;
  --hair: #D9DDE2;
  --navy: #0A3161;
  --navy-deep: #0B1F3D;
  --red: #B31942;
  --on-navy: #E9EDF3;
  --on-navy-muted: #A9B6CA;
  --navy-hair: rgba(233, 237, 243, 0.18);

  --serif: "EB Garamond", "Garamond", "Baskerville", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --display: clamp(3.5rem, 9vw, 7.5rem);
  --h2: clamp(2.125rem, 4vw, 3.25rem);
  --gutter: clamp(20px, 4vw, 48px);
  --space: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::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(--serif);
  font-size: 1.1875rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga", "kern";
}
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; color: var(--navy); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--navy); color: var(--white); }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 30; background: var(--white); color: var(--ink); padding: 10px 16px; }
.skip:focus { left: 16px; top: 16px; }
section[id] { scroll-margin-top: 24px; }

/* Thin flag-coloured line across the very top */
.stripe { height: 4px; background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50% 100%); }

/* ---------- Logo ---------- */
.seal { width: 32px; height: 32px; flex: none; color: var(--navy); --seal-letter: var(--paper); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.wordmark-text { font-family: var(--serif); font-weight: 500; font-size: 1.625rem; letter-spacing: 0.06em; line-height: 1; padding-top: 1px; }

/* ---------- Small sans text: nav, labels, footer ---------- */
.nav, .label, .kicker, .site-footer { font-family: var(--sans); }

/* ---------- Header ---------- */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 30px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 32px; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--slate); padding: 8px 0; background-image: linear-gradient(var(--red), var(--red)); background-size: 0 1px; background-position: 0 85%; background-repeat: no-repeat; transition: color 0.2s ease, background-size 0.35s var(--ease); }
.nav a:hover { color: var(--navy); background-size: 100% 1px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(16px, 3vw, 40px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); }
.hero h1 { font-size: var(--display); line-height: 0.96; max-width: 9ch; }
.lede { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.4; color: var(--slate); max-width: 24em; text-wrap: pretty; }
.hero-map { position: relative; width: 100%; aspect-ratio: 5 / 4; }
.hero-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0 0; }
.section .wrap { border-top: 1px solid var(--navy); padding-top: 36px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 64px; align-items: start; }
.section h2 { grid-column: 1; font-size: var(--h2); line-height: 1.1; max-width: 13ch; }
.section .body, .sector-list, .contact p, .contact .email { grid-column: 2; }
.contact p:first-of-type { grid-row: 1; }
.approach .body { display: flex; flex-direction: column; gap: 20px; color: var(--slate); max-width: 34em; }

/* Sectors, numbered in large figures */
.sector-list { list-style: none; padding: 0; margin-top: 12px; counter-reset: sector; border-bottom: 1px solid var(--hair); }
.sector-list li { counter-increment: sector; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px 24px; padding: 30px 0; border-top: 1px solid var(--hair); align-items: baseline; }
.sector-list li::before { content: counter(sector, decimal-leading-zero); grid-row: 1 / span 2; font-family: var(--serif); font-size: clamp(2.25rem, 3.6vw, 3rem); line-height: 0.9; color: var(--red); font-feature-settings: "lnum", "tnum"; }
.sector-list h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.625rem, 2.6vw, 2.125rem); letter-spacing: -0.01em; line-height: 1.15; color: var(--navy); }
.sector-list p { color: var(--slate); max-width: 32em; }

/* Contact closes the page in navy */
.contact { margin-top: var(--space); padding: var(--space) 0 0; background: var(--navy-deep); color: var(--on-navy); box-shadow: 0 1px 0 var(--navy-deep); }
.contact .wrap { border-top: 0; padding-top: 0; }
.contact .label { color: var(--on-navy-muted); }
.contact h2 { color: var(--white); }
.contact p { color: var(--on-navy-muted); max-width: 32em; }
.email { justify-self: start; margin-top: 8px; font-size: clamp(1.5rem, 2.6vw, 2.125rem); color: var(--white); text-decoration: none;
  background-image: linear-gradient(var(--red), var(--red)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 6px; transition: color 0.25s ease; }
.email:hover, .email:focus-visible { color: var(--on-navy-muted); }

/* ---------- Footer, inside the navy band ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: 0.8125rem; padding-top: clamp(64px, 8vw, 110px); }
.site-footer .wrap { border-top: 1px solid var(--navy-hair); padding-top: 36px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 64px; }
.site-footer .wordmark { align-self: start; color: var(--white); }
.site-footer .seal { color: var(--paper); --seal-letter: var(--navy-deep); }
.site-footer .wordmark-text { font-size: 1.375rem; }
.site-footer .seal { width: 26px; height: 26px; }
.legal { display: flex; flex-direction: column; gap: 10px; line-height: 1.6; max-width: 48em; }
.legal a { color: var(--on-navy); }
.legal .disclaimer { font-family: var(--serif); font-style: italic; font-size: 1rem; }

/* ---------- Tablet ---------- */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero h1 { max-width: 12ch; }
  .lede { max-width: none; }
  .hero-map { aspect-ratio: 4 / 3; max-width: 420px; margin: 0 auto; }
  .section .wrap, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section h2, .section .body, .sector-list, .contact p, .contact .email { grid-column: 1; }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  body { font-size: 1.125rem; }
  .site-header .wrap { padding-top: 20px; padding-bottom: 20px; }
  .nav { gap: 2px 20px; font-size: 0.75rem; }
  .seal { width: 28px; height: 28px; }
  .wordmark-text { font-size: 1.4rem; }
  .sector-list li { grid-template-columns: 52px minmax(0, 1fr); padding: 24px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .email, .nav a { transition: none; }
}
