:root {
  --ink: #11100e;
  --paper-soft: #faf7f0;
  --blue: #0a3f7d;
  --blue-deep: #082d5a;
  --brass: #c79b52;
  --line: rgba(30, 28, 25, 0.16);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-soft);
  font-family: var(--sans);
  line-height: 1.5;
}

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

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 30;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(250px, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  min-height: 96px;
  padding: 10px clamp(20px, 3.4vw, 52px);
  background: rgba(250, 247, 240, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(17, 16, 14, 0.07);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  justify-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(42px, 4vw, 58px);
  line-height: 0.84;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1;
}

.brand-mark i {
  width: 23px;
  height: 2px;
  background: var(--brass);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 38px);
  color: #17202e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a { padding: 12px 0; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 28px);
}

.header-cta {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.header-cta > span {
  color: #5d554a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(5, 35, 75, 0.24);
}

.button-primary:hover, .button-primary:focus-visible {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.header-contact {
  display: grid;
  gap: 7px;
  min-width: 210px;
  color: #5f5b55;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.header-contact .text-photos {
  color: #283445;
  font-weight: 800;
  text-transform: uppercase;
}

.header-contact a {
  font-size: 10.5px;
  font-weight: 600;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(730px, calc(100vh - 96px));
  align-items: center;
  padding: clamp(62px, 7vw, 104px) clamp(28px, 7vw, 112px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 12, 9, 0.72) 0%, rgba(17, 14, 11, 0.61) 29%, rgba(20, 17, 13, 0.34) 50%, rgba(24, 20, 16, 0.08) 72%, rgba(24, 20, 16, 0.02) 100%),
    url("../images/v21/erin-v2-1-amendment-1-hero-corrected.png") center center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(0deg, rgba(16, 13, 10, 0.2), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(610px, 49vw);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.52);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 4.6vw, 70px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1::after {
  content: "";
  display: block;
  width: 78px;
  height: 3px;
  margin: 26px 0 24px;
  background: var(--brass);
}

.hero-copy {
  max-width: 470px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.34;
}

.hero-actions { margin-top: 32px; }

.hero-button {
  min-height: 56px;
  padding-inline: 28px;
  font-size: 16px;
  text-shadow: none;
}

.meta-teaser {
  max-width: 500px;
  margin-top: 36px;
  padding: 3px 0 3px 18px;
  border-left: 3px solid var(--brass);
}

.meta-teaser strong {
  display: block;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.25;
}

.meta-teaser p {
  max-width: 460px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(12.5px, 0.95vw, 14px);
  line-height: 1.5;
}

.hero-since {
  margin: 48px 0 0;
  color: #e0b56d;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 800;
  line-height: 1.15;
}

.scope-boundary {
  min-height: 520px;
  padding: 54px 24px;
  color: #6a6257;
  background: #f3efe7;
  text-align: center;
}

.scope-boundary p { margin: 0 auto; max-width: 640px; }

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 18px;
  }

  .site-nav { display: none; }
  .header-actions { justify-self: end; }
  .hero-content { width: min(570px, 54vw); }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 82px;
    padding: 9px 16px;
  }

  .brand-name { font-size: 40px; }
  .brand-mark { font-size: 13px; }
  .brand-mark i { width: 18px; }
  .header-actions { gap: 12px; }
  .header-contact { display: none; }
  .header-cta .button { min-height: 44px; padding-inline: 14px; font-size: 12px; }
  .header-cta > span { font-size: 9px; }

  .hero {
    min-height: calc(100svh - 82px);
    align-items: end;
    padding: 88px 22px 48px;
    background:
      linear-gradient(0deg, rgba(13, 11, 9, 0.86) 0%, rgba(13, 11, 9, 0.52) 53%, rgba(13, 11, 9, 0.08) 78%),
      url("../images/v21/erin-v2-1-amendment-1-hero-corrected.png") 64% center / cover no-repeat;
  }

  .hero-content { width: 100%; max-width: 560px; }
  .hero h1 { font-size: clamp(40px, 11.7vw, 54px); }
  .hero h1::after { margin: 20px 0 18px; }
  .hero-copy { font-size: 17px; }
  .hero-actions { margin-top: 24px; }
  .meta-teaser { margin-top: 30px; }
  .meta-teaser p { font-size: 13px; }
  .hero-since { margin-top: 38px; font-size: 16px; }
}

@media (max-width: 430px) {
  .hero { padding-bottom: 34px; }
  .hero h1 { font-size: 39px; }
  .hero-button { width: 100%; }
  .meta-teaser p { line-height: 1.38; }
}


/* --- Enquiry form validation messages (added for inline client-side validation) --- */
.final-enquiry-form .form-error {
  margin: 0 0 16px;
  padding: 12px 16px;
  color: #7a1d13;
  background: rgba(192, 57, 43, 0.10);
  border-left: 4px solid #c0392b;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
}

.final-enquiry-form .field-error {
  display: block;
  margin-top: 6px;
  color: #c0392b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.final-enquiry-form [aria-invalid="true"] {
  border-color: #c0392b !important;
  outline: 2px solid rgba(192, 57, 43, 0.28);
  outline-offset: 1px;
}

.mack-test-access {
  margin-top: 20px;
}

.mack-test-access small {
  display: block;
  margin-top: 8px;
  color: #665f55;
  font-size: 13px;
}
