/* ---------- Colours & fonts: change these to rebrand ---------- */
:root {
  --navy: #0f2a44;
  --teal: #0e7c7b;
  --teal-dark: #0a5f5e;
  --teal-light: #6fd3cc;
  --bg: #e8ecf0;
  --surface: #f2f4f7;
  --text: #1f2933;
  --muted: #56626e;
  --border: #d3dae2;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1040px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Keep section headings clear of the sticky header when jumping to them */
section[id] {
  scroll-margin-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal);
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--navy);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--navy);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- Sections ---------- */
.hero {
  padding: 88px 0 80px;
  background:
    radial-gradient(circle at 85% 15%, rgba(14, 124, 123, 0.45), transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(14, 124, 123, 0.18), transparent 45%),
    var(--navy);
}

.hero h1 {
  color: #fff;
  max-width: 760px;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin-bottom: 32px;
}

.hero .eyebrow {
  color: var(--teal-light);
}

.hero .button:hover {
  background: #11a09e;
}

.eyebrow {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 13px 26px;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.button:hover {
  background: var(--teal-dark);
  color: #fff;
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(14, 124, 123, 0.35);
  outline-offset: 2px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: 10px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 42, 68, 0.1);
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card p {
  font-size: 1rem;
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

/* When cards sit side by side, reserve two lines for titles so the text below lines up */
@media (min-width: 900px) {
  .card h3 {
    min-height: 2.4em;
  }
}

/* ---------- Contact ---------- */

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 12px 32px rgba(15, 42, 68, 0.06);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 6px;
}

/* Red asterisk on required fields */
.field label::after {
  content: " *";
  color: #c62828;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 13px;
  transition: border-color 0.15s, background 0.15s;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  background: var(--surface);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.hidden {
  display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  padding: 32px 0;
}

.site-footer a {
  color: var(--teal-light);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 560px) {
  .hero {
    padding: 56px 0 52px;
  }

  .section {
    padding: 52px 0;
  }

  .card,
  .form {
    padding: 22px;
  }
}
