:root {
  --navy: #051c5f;
  --blue: #0092e0;
  --cyan: #0eb8eb;
  --ink: #171d2b;
  --muted: #5b6678;
  --line: #d6edf8;
  --soft: #eef9fe;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.brand img {
  width: 92px;
  height: 64px;
  object-fit: contain;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

nav a:hover {
  color: var(--blue);
}

.header-call,
.header-enquiry,
.primary,
.secondary,
.lead-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  font-family: inherit;
}

.header-call,
.header-enquiry,
.primary,
.lead-form button {
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 12px 24px rgba(0, 86, 157, 0.18);
}

.secondary {
  color: var(--navy);
  border: 1px solid var(--cyan);
  background: white;
}

button.header-enquiry,
button.secondary {
  border: 0;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

button.secondary {
  border: 1px solid var(--cyan);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 6vw, 72px);
  background:
    radial-gradient(circle at 88% 18%, rgba(14, 184, 235, 0.18), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 860px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  display: grid;
  align-items: center;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 70px rgba(5, 28, 95, 0.12);
}

.hero-panel img {
  width: min(100%, 360px);
  justify-self: center;
}

.hero-panel strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
}

.hero-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  text-align: center;
}

.quick-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-contact > * {
  min-width: 0;
  padding: 22px clamp(18px, 4vw, 42px);
  background: white;
}

.quick-contact span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-contact strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.3;
}

.section,
.contact-section {
  padding: clamp(50px, 7vw, 84px) clamp(18px, 6vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 36px rgba(5, 28, 95, 0.08);
}

.service-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 36px;
  align-items: center;
  background: var(--soft);
}

.split p {
  color: var(--muted);
  font-size: 17px;
}

.benefits {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits li {
  padding: 18px 18px 18px 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: white;
  font-weight: 800;
  position: relative;
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(14, 184, 235, 0.15);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: start;
}

.contact-copy p {
  color: var(--muted);
  font-size: 17px;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--navy);
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fcff;
}

.hidden-field {
  display: none;
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bfe6f7;
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form button {
  border: 0;
  cursor: pointer;
  font-size: 16px;
}

.lead-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.form-status.success {
  color: #16724a;
}

.form-status.error {
  color: #b42318;
}

.enquiry-modal {
  width: min(92vw, 760px);
  max-height: min(86vh, 860px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 34px 90px rgba(5, 28, 95, 0.28);
}

.enquiry-modal::backdrop {
  background: rgba(5, 28, 95, 0.48);
  backdrop-filter: blur(5px);
}

.modal-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 237, 248, 0.85);
  border-radius: 8px;
  background: white;
}

.modal-copy {
  padding: clamp(24px, 4vw, 34px);
  color: white;
  background:
    linear-gradient(135deg, rgba(5, 28, 95, 0.94), rgba(0, 146, 224, 0.86)),
    url("assets/novacore-logo.jpeg") center 78% / 76% auto no-repeat;
}

.modal-copy .eyebrow,
.modal-copy h2,
.modal-copy p {
  color: white;
}

.modal-copy p {
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(5, 28, 95, 0.12);
  border-radius: 50%;
  color: var(--navy);
  background: white;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-form {
  overflow: auto;
  max-height: min(86vh, 860px);
  border: 0;
  border-radius: 0;
}

.site-footer {
  padding: 24px clamp(18px, 6vw, 72px);
  color: white;
  background: var(--navy);
}

.site-footer p {
  margin: 4px 0;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-contact {
    grid-template-columns: 1fr;
  }

  .modal-shell {
    grid-template-columns: 1fr;
  }

  .modal-copy {
    background: linear-gradient(135deg, var(--navy), var(--blue));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    display: grid;
    gap: 12px;
  }

  nav {
    justify-content: space-between;
    gap: 10px;
  }

  .header-actions,
  .header-call,
  .header-enquiry {
    width: 100%;
  }

  .header-actions {
    display: grid;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-actions .secondary {
    width: 100%;
  }

  .enquiry-modal {
    width: calc(100vw - 24px);
  }

  .modal-copy,
  .modal-form {
    padding: 22px;
  }
}
