:root {
  --brand-dark: #00254b;
  --brand-green: #087a68;
  --brand-green-bright: #16a085;
  --brand-gold: #f39c12;
  --cream: #f6f3ed;
  --paper: #ffffff;
  --ink: #263544;
  --muted: #5d6d7e;
  --line: rgba(0, 37, 75, 0.14);
  --shadow: 0 20px 56px rgba(0, 37, 75, 0.1);
  --shadow-strong: 0 26px 70px rgba(0, 37, 75, 0.18);
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .topbar,
  .hero,
  .contact-panel,
  .footer {
    animation: contact-page-fade-in 0.64s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero {
    animation-delay: 0.06s;
  }

  .contact-panel {
    animation-delay: 0.14s;
  }

  .footer {
    animation-delay: 0.2s;
  }
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.68;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 37, 75, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 37, 75, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 32px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

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

a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(243, 156, 18, 0.55);
  outline-offset: 4px;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 64px;
  position: relative;
}

.topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: clamp(128px, 13vw, 180px);
  height: auto;
  display: block;
}

.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.back:hover {
  background: var(--paper);
  border-color: rgba(0, 37, 75, 0.28);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(300px, 370px);
  column-gap: clamp(32px, 6vw, 84px);
  row-gap: clamp(28px, 3vw, 40px);
  align-items: start;
  padding: clamp(52px, 8vw, 104px) 0 clamp(32px, 5vw, 60px);
}

.hero-copy,
.summary,
.contact-details,
.form-shell {
  min-width: 0;
}

.label,
.eyebrow {
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.label::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--brand-green);
}

.eyebrow {
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  color: var(--brand-dark);
  font-family: Poppins, Inter, Arial, sans-serif;
  line-height: 1.1;
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 8vw, 96px);
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(28px, 3.8vw, 48px);
  overflow-wrap: break-word;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
}

.intro {
  max-width: 760px;
  margin: 26px 0 0;
  color: #34495e;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.58;
  overflow-wrap: break-word;
}

.summary {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  margin-top: clamp(82px, 9vw, 132px);
  padding: 28px;
  background: var(--brand-dark);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.summary::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 4px;
  background: var(--brand-gold);
}

.summary h2 {
  color: #fff;
  font-size: 21px;
  margin-bottom: 18px;
}

.summary dl {
  margin: 0;
  display: grid;
  gap: 16px;
}

.summary dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.summary dd {
  margin: 5px 0 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.summary a {
  color: #fff;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-top: clamp(14px, 2.8vw, 36px);
}

.contact-details {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

.contact-details > .eyebrow,
.contact-details > h2,
.contact-details > p:not(.eyebrow) {
  grid-column: 1;
}

.contact-details > p:not(.eyebrow) {
  color: #34495e;
  font-size: 17px;
  line-height: 1.68;
}

.signal-list {
  display: grid;
  gap: 14px;
  grid-column: 2;
  grid-row: 1 / span 4;
}

.signal-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.signal-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(8, 122, 104, 0.1);
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.signal-item p {
  color: #34495e;
  font-size: 15px;
  line-height: 1.6;
}

.signal-item strong {
  display: block;
  color: var(--brand-dark);
  font-family: Poppins, Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.contact-card {
  grid-column: 1;
  padding: 24px;
  border-left: 4px solid var(--brand-green);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 38px rgba(0, 37, 75, 0.07);
}

.contact-card h3 {
  margin-bottom: 12px;
}

.contact-card p {
  color: #34495e;
  font-size: 15px;
  line-height: 1.62;
  margin-bottom: 12px;
}

.form-shell {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0;
  padding: clamp(24px, 3.2vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.form-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-gold));
}

.form-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-heading h2 {
  font-size: clamp(28px, 3.2vw, 42px);
}

.form-heading p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

label,
.consent {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

label span[aria-hidden="true"] {
  color: var(--brand-green);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(0, 37, 75, 0.18);
  border-radius: 0;
  background: #fbfaf7;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

input {
  min-height: 42px;
  padding: 8px 12px;
}

textarea {
  min-height: 108px;
  padding: 11px 12px;
  resize: vertical;
}

input:hover,
textarea:hover {
  border-color: rgba(0, 37, 75, 0.32);
}

input:focus,
textarea:focus {
  border-color: var(--brand-green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 122, 104, 0.1);
}

.consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(0, 37, 75, 0.12);
  background: rgba(8, 122, 104, 0.06);
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

.consent input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 3px;
  accent-color: var(--brand-green);
}

.consent span {
  color: #34495e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.consent a {
  color: var(--brand-dark);
}

.form-actions {
  display: grid;
  gap: 14px;
  align-items: start;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--brand-gold);
  color: var(--brand-dark);
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  background: #d48a0a;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(243, 156, 18, 0.22);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.form-status.is-error {
  color: #7b2f25;
}

.form-status.is-ready {
  color: var(--brand-green);
  font-weight: 700;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-links a {
  font-size: 13px;
}

@keyframes contact-page-fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 940px) {
  .wrap {
    width: min(100% - 28px, 760px);
    padding-top: 20px;
  }

  .topbar,
  .hero,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .topbar {
    min-height: auto;
    padding-bottom: 18px;
    align-items: flex-start;
  }

  .hero {
    padding-top: 44px;
  }

  .summary {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  .form-shell {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-details > .eyebrow,
  .contact-details > h2,
  .contact-details > p:not(.eyebrow),
  .signal-list,
  .contact-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 18px;
    flex-direction: column;
  }

  .back {
    width: 100%;
  }

  h1 {
    font-size: clamp(34px, 9.2vw, 38px);
    overflow-wrap: anywhere;
  }

  h2,
  .form-heading h2 {
    font-size: clamp(26px, 7.2vw, 32px);
    overflow-wrap: anywhere;
  }

  .intro {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .summary dd,
  .contact-details > p:not(.eyebrow),
  .signal-item p,
  .form-heading p:last-child,
  .consent span {
    overflow-wrap: anywhere;
  }

  .summary,
  .form-shell,
  .contact-card {
    padding: 22px;
  }

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

  .signal-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  button {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
  }
}
