/* The Kingdom Exchange — Connected Community. v1.2.0
   Existing imagery, distinct blue/green palette, no JS needed for navigation. */
:root {
  color-scheme: light;
  --navy: #133d59;
  --blue: #156a96;
  --blue-mid: #267ca6;
  --blue-light: #e9f4fa;
  --green: #177551;
  --green-hover: #105a3e;
  --green-pale: #e7f5ec;
  --ink: #233b4c;
  --muted: #587080;
  --border: #dce8ef;
  --surface: #ffffff;
  --body-bg: #f4f8fa;
  --radius: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--body-bg); color: var(--ink); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #55b49c;
  outline-offset: 3px;
}
button, input, textarea { font: inherit; }
.skip-link {
  position: absolute; z-index: 20; top: -65px; left: 16px;
  background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.site-shell {
  max-width: 1200px;
  margin: 24px auto;
  width: calc(100% - 40px);
  overflow: hidden;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 12px 48px rgba(18, 58, 82, .085);
}
.site-header {
  background: var(--navy);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding: 16px clamp(20px, 4vw, 56px);
}
.brand {
  color: #fff;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { font-size: .72em; font-weight: 500; }
.brand:hover, .brand:focus { color: #fff; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 25px; }
.site-nav a {
  color: #e5f2fa;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; text-decoration: underline; }
.site-nav .nav-action {
  background: #dff6e8;
  color: #14533f;
  padding: 10px 17px;
  border-radius: 999px;
  font-weight: 750;
}
.site-nav .nav-action:hover { background: #fff; color: #124c37; text-decoration: none; }
.hero-image { position: relative; height: clamp(190px, 25vw, 280px); background: #26556b; overflow: hidden; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,34,47,.67), rgba(13,37,43,.04) 83%);
}
.hero-image-caption {
  position: absolute; z-index: 1; bottom: clamp(23px, 4vw, 45px); left: clamp(22px, 5vw, 60px);
  color: #fff;
  text-shadow: 0 2px 7px rgba(0,0,0,.45);
  font-weight: 780;
  letter-spacing: -.045em;
  font-size: clamp(26px, 4vw, 52px);
}
.hero-content {
  padding: clamp(30px, 5.4vw, 72px) clamp(25px, 6vw, 78px);
  background: linear-gradient(125deg, #fff 40%, #ecf7fb);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .12em;
  line-height: 1.4;
  margin: 0 0 18px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.17; letter-spacing: -.035em; }
h1, h2 { color: var(--navy); }
.hero h1 {
  max-width: 880px;
  margin: 0 0 24px;
  font-size: clamp(32px, 4.9vw, 63px);
  font-weight: 760;
}
.hero h1 span { color: var(--blue); }
.hero-lead { max-width: 735px; font-size: clamp(16px, 1.55vw, 19px); color: #455f70; margin: 0 0 27px; }
.hero-actions { display: flex; align-items: center; gap: 18px 30px; flex-wrap: wrap; }
.button {
  min-height: 46px;
  padding: 12px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.button span[aria-hidden] { font-size: 18px; font-weight: 500; line-height: 1; }
.button-primary { color: white; background: var(--green); box-shadow: 0 4px 11px rgba(22,112,78,.13); }
.button-primary:hover { color: white; background: var(--green-hover); transform: translateY(-1px); }
.button-primary:disabled { background: #719a88; cursor: not-allowed; box-shadow: none; transform: none; }
.text-action, .inline-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.text-action:hover, .inline-link:hover { text-decoration: underline; }
.section-wrap { padding: clamp(34px, 6vw, 76px) clamp(24px, 6vw, 75px); }
.purpose { display: grid; grid-template-columns: minmax(0,1fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 67px); align-items: center; }
.purpose h2, .section-heading h2, .vision-strip h2, .invitation h2, .information-copy h2 {
  margin: 0 0 21px; font-size: clamp(26px, 3vw, 39px);
}
.purpose-copy > p:not(.eyebrow), .information-copy > p { color: var(--muted); margin: 0 0 18px; }
.purpose-image { margin: 0; }
.purpose-image img { display: block; width: 100%; border-radius: 14px; max-height: 390px; object-fit: cover; box-shadow: 0 12px 27px rgba(20,60,80,.11); }
.purpose-image figcaption { padding: 10px 2px 0; font-size: 12px; color: var(--muted); }
.principles { background: var(--blue-light); }
.section-heading { max-width: 790px; margin-bottom: 27px; }
.section-heading > p:last-child { margin: 0; color: var(--muted); }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.principle {
  background: white;
  padding: 29px 25px;
  border: 1px solid #d9e8ee;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(31,80,115,.055);
  cursor: default;
}
.principle-number { display: block; color: var(--blue); font-size: 30px; font-weight: 800; line-height: 1.1; }
.principle-support .principle-number { color: var(--green); }
.principle-accent { width: 34px; height: 3px; background: var(--blue-mid); border-radius: 3px; margin: 17px 0 20px; }
.principle-support .principle-accent { background: var(--green); }
.principle h3 { color: var(--navy); font-size: 24px; margin: 0 0 12px; }
.principle p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.vision-strip { display: flex; align-items: center; gap: clamp(25px, 6vw, 65px); }
.vision-strip img { display: block; width: 185px; height: auto; flex: none; }
.vision-strip div { max-width: 700px; }
.vision-strip h2 { margin-bottom: 12px; }
.vision-strip p:last-child { color: var(--muted); margin: 0; }
.invitation {
  background: linear-gradient(115deg, #e4f4f7, #e4f4e9);
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
}
.invitation h2 { margin-bottom: 10px; }
.invitation p:last-child { color: #456578; max-width: 670px; margin: 0; }
.invitation .button { white-space: nowrap; }
.site-footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(24px, 6vw, 75px);
  background: #f7fafc;
  border-top: 1px solid var(--border);
}
.footer-description strong { color: var(--navy); font-size: 15px; }
.footer-description p { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.footer-branding { width: 170px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; }
.footer-branding img { display: block; width: 170px; height: auto; object-fit: contain; }
.site-version { display: block; margin-top: 4px; text-align: right; font-size: 11px; color: #7c8d98; font-variant-numeric: tabular-nums; }

/* Vision and contact page */
.page-banner-link { display: block; line-height: 0; }
.page-banner-link img { width: 100%; height: clamp(140px, 21vw, 220px); object-fit: cover; object-position: 50% 55%; }
.page-banner-link:focus-visible { outline-offset: -4px; }
.page-heading { padding: 27px clamp(24px, 6vw, 75px) 42px; background: #edf7fb; }
.back-link { display: inline-block; color: var(--blue); text-decoration: none; font-size: 13px; font-weight: 700; margin-bottom: 24px; }
.back-link:hover { text-decoration: underline; }
.page-heading .eyebrow { margin-bottom: 12px; }
.page-heading h1 { font-size: clamp(30px, 4vw, 48px); max-width: 800px; margin: 0 0 17px; }
.page-heading > p:last-child { color: var(--muted); max-width: 760px; font-size: 17px; margin: 0; }
.enquiry-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(25px, 4vw, 56px); align-items: start; }
.information-copy h3 { font-size: 21px; color: var(--navy); margin: 27px 0 10px; }
.information-illustration {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #eff8fc;
  border-radius: 12px;
  padding: 18px;
  margin: 22px 0 30px;
}
.information-illustration img { width: 155px; flex: 0 0 auto; }
.information-illustration p { font-size: 14px; color: var(--navy); font-weight: 650; margin: 0; }
.information-copy .information-support { margin-top: 26px; font-size: 13px; border-left: 3px solid var(--green); padding-left: 14px; }
.enquiry-panel {
  scroll-margin-top: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 9px 27px rgba(22,70,92,.075);
  overflow: hidden;
}
.panel-heading { padding: 29px 30px 0; }
.panel-heading .eyebrow { margin: 0 0 10px; }
.panel-heading h2 { color: var(--navy); font-size: clamp(25px, 3vw, 33px); margin: 0 0 6px; }
.panel-heading p:last-child { color: var(--muted); margin: 0; font-size: 14px; }
.contact-frame { display: block; width: 100%; height: 675px; border: 0; background: #fff; }

/* Contact form, also functional as a standalone page */
.contact-embed { background: white; margin: 0; min-width: 0; }
.contact-page { padding: 20px 30px 24px; }
.form-group { margin-bottom: 17px; }
.form-group label { display: block; font-size: 13px; font-weight: 750; color: var(--navy); margin-bottom: 7px; }
.form-control {
  display: block; width: 100%; max-width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid #c8d9e2;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color .2s ease;
}
.form-control::placeholder { color: #718895; opacity: 1; }
.form-control:focus { border-color: var(--green); }
textarea.form-control { resize: vertical; min-height: 116px; }
#verification-widget { max-width: 100%; margin-top: 7px; }
#verification-widget altcha-widget { display: block; max-width: 100%; font-family: inherit; }
.contact-honeypot { position: absolute !important; width: 1px; height: 1px; left: -9999px !important; overflow: hidden; }
.form-submit { margin-top: 4px; width: auto; }
#messageSent:empty { display: none; }
#messageSent:not(:empty) { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 13px; }
#messageSent.success { color: #11553b; background: #e4f5eb; border: 1px solid #bfe7ce; }
#messageSent.error { color: #8e3434; background: #fff0ef; border: 1px solid #f3c7c2; }
.form-note { color: var(--muted); font-size: 12px; margin: 18px 0 12px; }
.form-home { font-size: 12px; margin: 0; }
.form-home a { color: var(--blue); font-weight: 650; text-decoration: none; }
.form-home a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .site-shell { width: calc(100% - 24px); margin: 12px auto; }
  .purpose { grid-template-columns: 1fr; }
  .purpose-image img { max-height: 410px; }
  .enquiry-layout { grid-template-columns: 1fr; }
  .enquiry-panel { max-width: 720px; width: 100%; }
}
@media (max-width: 700px) {
  .site-header { align-items: flex-start; gap: 13px; padding: 17px 21px; }
  .site-nav { width: 100%; gap: 9px 17px; }
  .site-nav a { font-size: 12px; }
  .site-nav .nav-action { padding: 7px 12px; }
  .hero-image { height: 175px; }
  .hero-image-caption { font-size: 29px; left: 22px; bottom: 23px; }
  .hero-content { padding: 33px 23px 44px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle { padding: 23px; }
  .section-wrap { padding: 38px 23px; }
  .vision-strip { flex-direction: column; align-items: flex-start; gap: 19px; }
  .invitation { flex-direction: column; align-items: flex-start; }
  .site-footer { padding: 24px 23px; }
  .footer-branding { width: 125px; }
  .footer-branding img { width: 125px; }
  .information-illustration { flex-direction: column; align-items: flex-start; }
  .panel-heading { padding: 24px 18px 0; }
  .contact-frame { height: 690px; }
  .contact-page { padding: 20px 18px 24px; }
}
@media (max-width: 430px) {
  .site-nav { gap: 9px 13px; }
  .site-nav a { font-size: 11px; }
  .site-header .brand { font-size: 20px; }
  .hero h1 { font-size: 32px; }
  .button { max-width: 100%; }
  .footer-description strong { font-size: 13px; }
  .footer-description p { font-size: 11px; }
  .footer-branding { width: 112px; }
  .footer-branding img { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
