:root {
  --navy: #06284a;
  --cyan: #0099bd;
  --ink: #0d2237;
  --muted: #5f6974;
  --line: #d9dfe3;
  --paper: #ffffff;
  --wash: #f4f7f8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }

button { cursor: pointer; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; }
.brand img { width: 220px; height: auto; display: block; }

.text-link,
.contact-action {
  appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--navy);
  padding: 4px 0;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link:hover,
.contact-action:hover { color: var(--cyan); }

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 153, 189, .25);
  outline-offset: 3px;
}

.intro { padding: 56px 0 32px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "DM Sans", sans-serif;
  letter-spacing: -.035em;
}

h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: .98;
}

.intro-copy { margin: 0; color: var(--muted); font-size: 1.12rem; }
.intro-copy span { color: var(--cyan); }

.offers {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.offer {
  grid-column: span 4;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 34px 32px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background-color 160ms ease;
}

.offer:hover { background: var(--wash); }
.offer:nth-child(5) { grid-column: span 5; }
.offer:nth-child(6) { grid-column: span 3; }

.benefit,
.dialog-benefit {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: "DM Sans", sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -.03em;
}

.offer h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.015em;
}

.offer > p:not(.benefit) { margin: 0 0 28px; color: var(--muted); }

.button {
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid var(--navy);
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  padding: 10px 22px;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover { border-color: var(--cyan); background: var(--cyan); }

.disclaimer {
  margin: 24px 0 48px;
  color: var(--muted);
  font-size: .82rem;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-strip h2 { margin: 0 0 3px; font-size: 1.25rem; color: var(--navy); }
.contact-strip p { margin: 0; color: var(--muted); }

footer { padding: 24px 0 40px; color: var(--muted); font-size: .82rem; }

.enquiry-dialog {
  width: min(650px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 8px;
  padding: 38px;
  color: var(--ink);
}

.enquiry-dialog::backdrop { background: rgba(6, 40, 74, .58); backdrop-filter: blur(2px); }
.enquiry-dialog[open] { animation: dialog-in 160ms ease-out; }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 20px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1;
}

.dialog-copy { padding-right: 36px; }
.dialog-benefit { margin-bottom: 4px; }
.dialog-copy h2 { margin: 0 0 10px; font-size: 1.55rem; color: var(--navy); }
.dialog-copy > p:last-child { margin: 0 0 24px; color: var(--muted); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd3d9;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  font-weight: 400;
}

textarea { resize: vertical; }
.honeypot { position: absolute; left: -9999px; }
.submit-button { width: 100%; margin-top: 2px; }

.form-note,
.form-status,
.dialog-terms {
  font-size: .78rem;
  color: var(--muted);
}

.form-note { margin: 10px 0 0; }
.form-status { min-height: 1.2em; margin: 6px 0 0; font-weight: 600; }
.form-status.is-success { color: #23724d; }
.form-status.is-error { color: #a73535; }
.dialog-terms { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.message-field { display: none; }
.enquiry-dialog.is-general .message-field { display: grid; }
.enquiry-dialog.is-submitted form > :not(.form-status) { display: none; }
.enquiry-dialog.is-submitted .dialog-terms { display: none; }
.enquiry-dialog.is-submitted .form-status { margin: 20px 0 10px; font-size: 1rem; }

@media (max-width: 900px) {
  .offer { grid-column: span 6; }
  .offer:nth-child(5),
  .offer:nth-child(6) { grid-column: span 6; }
  .offer:last-child { grid-column: 1 / -1; min-height: 250px; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 32px, 1180px); }
  .site-header { min-height: 82px; }
  .brand img { width: 170px; }
  .text-link { font-size: .9rem; }
  .intro { padding: 42px 0 26px; }
  .offers { display: block; border-left: 0; }
  .offer,
  .offer:nth-child(5),
  .offer:nth-child(6),
  .offer:last-child {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    background: transparent;
  }
  .benefit { margin-bottom: 8px; }
  .offer > p:not(.benefit) { margin-bottom: 22px; }
  .button { margin-top: 0; }
  .contact-strip { align-items: flex-start; flex-direction: column; }
  .enquiry-dialog { padding: 30px 22px 24px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
