/* master.css — MCPForm.io master stylesheet, shared site-wide.
   Same token contract as the Talitu site (--bg, --ink, --accent, --radius-*,
   --body), so the shared cookie-consent.js and any page copied across work
   unchanged. Page-specific rules go in each page's <style>, not here.

   Brand colours (from brand-kit/mcpform and the Talitu #proof section):
   navy ink #172554, indigo accent #4f46e5, tint #f3f4fd, line #dfe1f8. */

:root {
  --display: "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;

  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --bg: #ffffff;
  --bg-warm: #f3f4fd;
  --ink: #172554;
  --ink-rgb: 23, 37, 84;
  --ink-soft: #2f3a66;
  --ink-faint: #5c6689;
  --line: #dfe1f8;
  --line-soft: #ecedfb;
  --accent: #4f46e5;
  --accent-rgb: 79, 70, 229;
  --accent-dark: #3f37c9;
  --accent-soft: #e9e8fc;
  --tint: #f3f4fd;

  --shadow-soft: 0 18px 40px rgba(var(--ink-rgb), 0.07);
  --shadow-card: 0 8px 24px rgba(var(--ink-rgb), 0.06);
  --shadow-btn-hover: 0 14px 32px rgba(var(--accent-rgb), 0.28);

  /* dark surfaces and the action colour on them */
  --deep: #172554;
  --deep-2: #1e2f6b;
  --on-deep: #d9dcf5;
  --cta: #ffffff;
  --cta-hover: #eeeffd;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}
p {
  margin: 0;
  font-weight: 500;
}
:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.45);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow {
  max-width: 760px;
}
main {
  flex: 1;
}

/* ---------- NAV ---------- */
nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  width: 150px;
  height: auto;
}
.logo:hover {
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a {
  color: var(--ink-soft);
}

/* ---------- BUTTONS ---------- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 30px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.18s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  text-decoration: none;
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  text-decoration: none;
}
.btn-primary svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
@media (max-width: 600px) {
  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}

/* ---------- SECTION FURNITURE ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 6px 14px;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  background: var(--tint);
  padding: 36px 0 32px;
  font-size: 14px;
  color: var(--ink-faint);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand img {
  width: 120px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.footer-social a:hover {
  border-color: var(--ink);
}
.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-legal {
  display: block;
  max-width: 70ch;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .wrap {
    padding: 0 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn-primary,
  .btn-ghost {
    transition: none;
  }
}

/* ---------- NAV CTA + FOOTER COLUMNS (added 13 October 2026) ---------- */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav-cta:hover {
  background: var(--accent-dark);
  text-decoration: none;
}
.nav-signin {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-grid .footer-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand p {
  color: var(--ink-faint);
  max-width: 34ch;
  font-size: 14px;
}
.footer-contact a {
  color: var(--ink);
  font-weight: 600;
}
.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-col a {
  display: block;
  color: var(--ink-soft);
  padding: 4px 0;
  font-size: 14px;
}
.footer-col a:hover {
  color: var(--accent-dark);
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-signin {
    display: none;
  }
}

/* Narrow screens keep the logo, Sign in and the CTA; the text links go. */
@media (max-width: 860px) {
  .nav-links a:not(.nav-cta):not(.nav-signin) {
    display: none;
  }
}
