:root {
  --navy: #08224f;
  --navy-deep: #061936;
  --blue: #5f7fa3;
  --blue-light: #eaf0f6;
  --ink: #142033;
  --muted: #5d6878;
  --line: #dbe3eb;
  --surface: #f6f8fa;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(8, 34, 79, 0.09);
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.3rem);
}

h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.1rem, 4.2vw, 3.65rem);
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 860px);
}

.section {
  padding: clamp(76px, 9vw, 128px) 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(8, 34, 79, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: block;
  width: min(380px, 46vw);
}

.brand img,
.footer-logo img {
  width: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.nav-enquire):hover,
.site-nav a:not(.nav-enquire):focus-visible {
  color: var(--blue);
}

.nav-enquire {
  padding: 10px 18px;
  color: var(--white);
  border-radius: 999px;
  background: var(--navy);
}

.nav-enquire:hover,
.nav-enquire:focus-visible {
  background: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -220px;
  bottom: -280px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(95, 127, 163, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(95, 127, 163, 0.035),
    0 0 0 144px rgba(95, 127, 163, 0.025);
  content: "";
}

.hero-inner {
  max-width: 960px;
  padding-top: clamp(92px, 12vw, 168px);
  padding-bottom: clamp(94px, 12vw, 168px);
}

.section-label {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin-bottom: 28px;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(8, 34, 79, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue);
}

.text-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--blue);
}

.about {
  background: var(--surface);
}

.about-copy {
  display: grid;
  gap: 10px;
  color: #354154;
  font-size: 1.08rem;
}

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

.section-heading {
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 127, 163, 0.45);
  box-shadow: var(--shadow);
}

.service-number {
  display: block;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.accountant-support {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  margin-top: 22px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.8);
  background: var(--navy);
}

.accountant-support h3 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

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

.section-label-light {
  color: #a8bed4;
}

.enquiry {
  color: var(--white);
  background: var(--navy-deep);
}

.enquiry-shell {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: clamp(50px, 9vw, 110px);
}

.enquiry h2 {
  color: var(--white);
}

.enquiry-intro > p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.enquiry-action {
  text-align: left;
}

.button-light {
  min-width: 180px;
  color: var(--navy);
  background: var(--white);
}

.button-light:hover,
.button-light:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.enquiry-panel {
  margin-top: 24px;
  animation: reveal 240ms ease both;
}

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

.enquiry-panel label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row input {
  min-width: 0;
  flex: 1;
  min-height: 54px;
  padding: 12px 16px;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 10px;
  outline: none;
}

.form-row input:focus {
  border-color: #9eb3c9;
  box-shadow: 0 0 0 4px rgba(158, 179, 201, 0.22);
}

.form-row input[aria-invalid="true"] {
  border-color: #c96e6e;
}

.button-submit {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: var(--blue);
}

.button-submit:hover,
.button-submit:focus-visible {
  background: #718fab;
}

.form-help,
.form-error,
.privacy-note {
  margin-bottom: 0;
  font-size: 0.78rem;
}

.form-help {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
}

.form-error {
  min-height: 1.4em;
  margin-top: 5px;
  color: #ffd4d4;
  font-weight: 700;
}

.privacy-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.privacy-note a {
  color: var(--white);
}

.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-footer {
  padding-top: 48px;
  color: var(--muted);
  background: var(--white);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-logo {
  width: min(350px, 48vw);
}

.footer-details {
  text-align: right;
}

.footer-details p {
  margin-bottom: 2px;
}

.footer-details a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.footer-details a:hover,
.footer-details a:focus-visible {
  color: var(--blue);
}

.footer-fineprint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}

.footer-fineprint a {
  text-decoration: none;
}

.footer-fineprint a:hover,
.footer-fineprint a:focus-visible {
  color: var(--navy);
}

.legal-hero {
  padding: clamp(70px, 9vw, 118px) 0 54px;
  background: var(--surface);
}

.legal-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 6vw, 4.9rem);
}

.legal-hero p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.prose {
  max-width: 790px;
}

.prose h2 {
  margin-top: 44px;
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.prose p {
  color: #3f4a5b;
}

.prose a {
  color: var(--navy);
  font-weight: 600;
}

.back-link {
  margin-top: 50px;
}

.status-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
  background: var(--surface);
}

.status-card {
  width: min(100%, 680px);
  padding: clamp(34px, 7vw, 70px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.status-card img {
  width: min(420px, 100%);
  margin: 0 auto 46px;
}

.status-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.status-card p:not(.section-label) {
  margin-bottom: 30px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .accountant-support,
  .enquiry-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-heading {
    align-items: start;
  }

  .accountant-support {
    gap: 20px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  html {
    scroll-padding-top: 150px;
  }

  .header-inner {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 15px;
  }

  .brand {
    width: min(100%, 330px);
    margin-inline: auto;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 22px;
  }

  .nav-enquire {
    padding: 7px 14px;
  }

  .hero-inner {
    padding-top: 78px;
    padding-bottom: 86px;
  }

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

  .service-card {
    min-height: 0;
  }

  .service-number {
    margin-bottom: 28px;
  }

  .form-row {
    flex-direction: column;
  }

  .button-submit {
    width: 100%;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-logo {
    width: min(100%, 340px);
  }

  .footer-details {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .container,
  .narrow {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-nav {
    font-size: 0.84rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .button-primary {
    width: 100%;
  }

  .footer-fineprint {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
