:root {
  --ink: #07111f;
  --navy: #0b1f3a;
  --blue: #0069c7;
  --red: #df1f2d;
  --gold: #f5b336;
  --green: #15884e;
  --paper: #f5f7fa;
  --white: #ffffff;
  --muted: #657184;
  --line: #dbe2ea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header,
.hero,
.services,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(4, 6px);
  align-items: end;
  gap: 3px;
  width: 36px;
  height: 36px;
  padding: 7px;
  background: var(--navy);
  border-radius: 8px;
}

.brand-mark span {
  display: block;
  width: 6px;
  border-radius: 4px 4px 1px 1px;
}

.brand-mark span:nth-child(1) {
  height: 13px;
  background: var(--red);
}

.brand-mark span:nth-child(2) {
  height: 20px;
  background: var(--blue);
}

.brand-mark span:nth-child(3) {
  height: 17px;
  background: var(--gold);
}

.brand-mark span:nth-child(4) {
  height: 23px;
  background: var(--green);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header nav a {
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 7px;
}

.site-header nav a:last-child {
  color: var(--ink);
  background: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 28px;
  align-items: start;
  padding: 42px 0 34px;
}

.hero-copy,
.enquiry-form,
.tabs {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-copy {
  overflow: hidden;
}

.hero-copy > .eyebrow,
.hero-copy h1,
.hero-copy p {
  margin-left: 28px;
  margin-right: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-copy > .eyebrow {
  margin-top: 28px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: 3.25rem;
  line-height: 1.02;
  font-weight: 950;
}

.hero-copy p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.68;
}

.hero-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enquiry-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.form-title {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.form-title h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
}

.enquiry-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
}

.enquiry-form textarea {
  resize: vertical;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 105, 199, 0.14);
}

.button {
  min-height: 50px;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 950;
  background: var(--gold);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.services {
  padding: 30px 0 44px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.tabs {
  overflow: hidden;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #eef3f8;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  min-height: 58px;
  padding: 14px 10px;
  color: var(--muted);
  font-weight: 900;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.tab-button:last-child {
  border-right: 0;
}

.tab-button[aria-selected="true"] {
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 3px 0 var(--gold);
}

.tab-panel {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: stretch;
  padding: 24px;
}

.tab-panel:not([hidden]) {
  display: grid;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel h3 {
  margin-bottom: 10px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.tab-panel p {
  max-width: 690px;
  color: var(--muted);
  line-height: 1.65;
}

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tab-grid div {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tab-grid ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tab-grid li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tab-panel img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  border-radius: 8px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 20px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 920px) {
  .site-header {
    align-items: start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  .hero,
  .tab-panel:not([hidden]) {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.45rem;
  }

  .tab-panel img {
    max-height: 360px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .services,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding-top: 24px;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-copy > .eyebrow,
  .hero-copy h1,
  .hero-copy p {
    margin-left: 18px;
    margin-right: 18px;
  }

  .hero-copy > .eyebrow {
    margin-top: 18px;
  }

  .enquiry-form {
    padding: 18px;
  }

  .form-row,
  .tab-list,
  .tab-grid {
    grid-template-columns: 1fr;
  }

  .tab-button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
