/* Base reset and box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Typography and base colours */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #0d1420;
  background-color: #f6f7fb;
}

/* Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* Headings, paragraphs, and lists */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0d1420;
  margin-bottom: 0.6rem;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin-bottom: 0.95rem;
  color: #4a5a72;
}

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.25rem;
}

/* Form element defaults */
input,
button,
textarea,
select {
  font: inherit;
}

/* Link states and focus */
a {
  text-decoration: none;
}

a:not(.btn):not(.button-primary):not(.button-secondary):link {
  color: #0b8a8b;
}

a:not(.btn):not(.button-primary):not(.button-secondary):visited {
  color: #0b8a8b;
}

a:not(.btn):not(.button-primary):not(.button-secondary):hover {
  color: #0ea5a6;
  text-decoration: underline;
}

a:not(.btn):not(.button-primary):not(.button-secondary):active {
  color: #0b8a8b;
}

a:focus {
  outline: 2px solid rgba(14, 165, 166, 0.7);
  outline-offset: 2px;
}

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background-color: #ffffff;
  color: #0d1420;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(13, 20, 32, 0.18);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(11, 19, 32, 0.12);
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Layout container and spacing */
.container {
  width: min(100% - 2rem, 1120px);
  margin-left: auto;
  margin-right: auto;
}

main {
  padding: 1.5rem 0 2.5rem;
}

.section {
  padding: clamp(2rem, 4vw, 3.25rem) 0;
}

.lead {
  font-size: 1.05rem;
  color: #4a5a72;
  max-width: 70ch;
}

.divider {
  height: 1px;
  background-color: rgba(13, 20, 32, 0.10);
  margin: 2rem 0;
}

/* Site header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(246, 247, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 20, 32, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #0d1420;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(11, 19, 32, 0.12);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-title span {
  font-size: 0.85rem;
  color: #4a5a72;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: #0d1420;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.nav-link:hover {
  background-color: rgba(14, 165, 166, 0.10);
  text-decoration: none;
}

.site-nav a:active,
.nav-link:active {
  transform: translateY(1px);
}

.site-nav a[aria-current="page"],
.nav-link-active {
  background-color: rgba(14, 165, 166, 0.14);
  color: #0b8a8b;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 166, 0.20);
}

@media (max-width: 840px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav ul {
    justify-content: flex-start;
  }
}

/* Hero section */
.hero {
  position: relative;
  background-color: #0b1320;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 20% 10%, rgba(14, 165, 166, 0.35), transparent 60%),
    radial-gradient(700px 350px at 70% 30%, rgba(255, 107, 74, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(11, 19, 32, 0.25), rgba(11, 19, 32, 0.75));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4.75rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
}

.hero-panel {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.25);
}

.hero-panel h2 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.hero-panel ul {
  margin-top: 0.75rem;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    max-width: 520px;
  }
}

/* Buttons */
.btn,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:focus,
.button-primary:focus,
.button-secondary:focus {
  outline: 2px solid rgba(14, 165, 166, 0.7);
  outline-offset: 2px;
}

.btn-primary,
.button-primary {
  background: linear-gradient(135deg, #0ea5a6, #0b8a8b);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(14, 165, 166, 0.25);
}

.btn-primary:hover,
.button-primary:hover {
  background: linear-gradient(135deg, #0b8a8b, #0ea5a6);
  text-decoration: none;
}

.btn-secondary,
.button-secondary {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.btn-secondary:hover,
.button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.20);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(13, 20, 32, 0.22);
  color: #0d1420;
}

.btn-outline:hover {
  background-color: rgba(14, 165, 166, 0.08);
  border-color: rgba(14, 165, 166, 0.22);
  text-decoration: none;
}

/* Ensure button links keep their intended text colours */
a.btn:link,
a.btn:visited,
a.button-primary:link,
a.button-primary:visited,
a.button-secondary:link,
a.button-secondary:visited {
  text-decoration: none;
}

a.btn-primary:link,
a.btn-primary:visited,
a.button-primary:link,
a.button-primary:visited {
  color: #ffffff;
}

a.btn-secondary:link,
a.btn-secondary:visited,
a.button-secondary:link,
a.button-secondary:visited {
  color: #ffffff;
}

a.btn-outline:link,
a.btn-outline:visited {
  color: #0d1420;
}

/* Improve contrast for outline buttons inside the hero */
.hero a.btn-outline:link,
.hero a.btn-outline:visited {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
}

.hero .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.46);
}

/* Card grid layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.card {
  grid-column: span 4;
  background-color: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(13, 20, 32, 0.12);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(11, 19, 32, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(11, 19, 32, 0.18);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.05rem;
}

.card h3 {
  margin-bottom: 0.35rem;
}

.card p {
  color: #4a5a72;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: #4a5a72;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  background-color: rgba(14, 165, 166, 0.12);
  color: #0b8a8b;
  border: 1px solid rgba(14, 165, 166, 0.18);
}

@media (max-width: 1024px) {
  .card {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .card {
    grid-column: span 12;
  }
}

/* Feature strip */
.feature-strip {
  background: linear-gradient(180deg, #f6f7fb, #eef2f7);
  border-top: 1px solid rgba(13, 20, 32, 0.06);
  border-bottom: 1px solid rgba(13, 20, 32, 0.06);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
}

.feature {
  grid-column: span 4;
  background-color: #ffffff;
  border: 1px solid rgba(13, 20, 32, 0.12);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(11, 19, 32, 0.12);
}

.feature h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.feature p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .feature {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .feature {
    grid-column: span 12;
  }
}

/* Page headers and content panels */
.page-header {
  padding: 1.75rem 0 1.25rem;
}

.page-header p {
  margin-bottom: 0;
  max-width: 70ch;
}

.content,
.form-card,
.ref-item {
  background-color: #ffffff;
  border: 1px solid rgba(13, 20, 32, 0.12);
  border-radius: 14px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  box-shadow: 0 6px 18px rgba(11, 19, 32, 0.12);
}

.content h2 {
  margin-top: 0;
}

/* Two column helper */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(13, 20, 32, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid rgba(13, 20, 32, 0.12);
  text-align: left;
  vertical-align: top;
}

th {
  background-color: rgba(14, 165, 166, 0.10);
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

/* Embedded map */
.map {
  border: 1px solid rgba(13, 20, 32, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(11, 19, 32, 0.12);
}

.map iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
}

.form-group {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full {
  grid-column: span 12;
}

label {
  font-weight: 900;
  font-size: 0.95rem;
  color: #0d1420;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(13, 20, 32, 0.18);
  background-color: #eef2f7;
  color: #0d1420;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(14, 165, 166, 0.55);
  outline: 2px solid rgba(14, 165, 166, 0.35);
  outline-offset: 2px;
  background-color: #ffffff;
}

.help-text {
  color: #4a5a72;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.checkbox-row {
  grid-column: span 12;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding-top: 0.35rem;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.form-actions {
  grid-column: span 12;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.form-actions .btn {
  border-radius: 14px;
}

@media (max-width: 700px) {
  .form-group {
    grid-column: span 12;
  }
}

/* Callout panels */
.callout {
  border-radius: 14px;
  border: 1px solid rgba(14, 165, 166, 0.22);
  background-color: rgba(14, 165, 166, 0.08);
  padding: 1rem 1.1rem;
  color: #0d1420;
}

.callout strong {
  color: #0b8a8b;
}

/* References list */
.refs {
  display: grid;
  gap: 0.75rem;
}

.ref-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  background-color: rgba(13, 20, 32, 0.06);
  padding: 0.12rem 0.35rem;
  border-radius: 8px;
}

/* Footer */
.site-footer {
  background-color: #0b1320;
  color: rgba(255, 255, 255, 0.88);
  padding: 2.25rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.25rem;
}

.site-footer a:link,
.site-footer a:visited {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer a:hover,
.site-footer a:active {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
}

.footer-title {
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.78);
  max-width: 55ch;
  margin-bottom: 0;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Small spacing utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }