:root {
  --navy: #0b3d68;
  --navy-deep: #082f51;
  --taupe: #9b918b;
  --ink: #1f2b36;
  --muted: #66717b;
  --line: #dfe4e8;
  --soft: #f7f6f4;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 45, 70, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.98);
}
.header-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 250px; height: auto; }
.contact-link {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--navy-deep);
  padding: 8px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}
.contact-link:hover,
.contact-link:focus-visible { border-bottom-color: var(--navy); outline: none; }
.chevron { display: inline-block; margin-left: 6px; transform: translateY(-1px); }

.contact-panel {
  position: absolute;
  top: 68px;
  right: max(24px, calc((100vw - 1180px) / 2));
  width: min(390px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid #d9dee2;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.contact-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 44px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid #d9dee2;
  border-top: 1px solid #d9dee2;
  transform: rotate(45deg);
}
.contact-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.panel-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #67737e;
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
}
.contact-intro h2 {
  margin: 0 0 5px;
  color: var(--navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
}
.contact-intro p { margin: 0 24px 20px 0; color: var(--muted); line-height: 1.45; font-size: 14px; }
#contact-form { display: grid; gap: 8px; }
#contact-form label { color: #162a3a; font-family: Georgia, "Times New Roman", serif; font-size: 15px; margin-top: 4px; }
#contact-form input,
#contact-form textarea {
  width: 100%;
  border: 1px solid #ccd3d9;
  border-radius: 5px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#contact-form input:focus,
#contact-form textarea:focus { border-color: #7c9ab2; box-shadow: 0 0 0 3px rgba(11,61,104,.08); }
#contact-form textarea { resize: vertical; min-height: 112px; }
.submit-button,
.hero-contact {
  border: 0;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.submit-button { margin-top: 8px; padding: 13px 18px; font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
.submit-button:hover,
.hero-contact:hover { background: var(--navy-deep); }
.submit-button:disabled { opacity: .65; cursor: wait; }
.form-status { min-height: 20px; margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: #315c3f; }
.form-status.is-error { color: #9a2b2b; }
.form-privacy { margin: 0; color: #727c84; font-size: 11.5px; line-height: 1.45; }
.text-button,
.inline-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.turnstile-wrap { min-height: 0; margin-top: 4px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: grid;
  place-items: start center;
  padding: 78px 24px 120px;
  background: #fff;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(860px, 100%);
  text-align: center;
}
.hero-logo { width: min(520px, 74vw); height: auto; display: block; margin: 0 auto 30px; }
.hero h1 {
  margin: 0;
  color: #0c3153;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5.8vw, 76px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.hero-rule { display: block; width: 48px; height: 1px; background: var(--taupe); margin: 38px auto 28px; }
.lead {
  width: min(760px, 100%);
  margin: 0 auto;
  color: #4d5660;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}
.lead.secondary { width: min(690px, 100%); margin-top: 20px; }
.hero-contact {
  margin-top: 32px;
  padding: 13px 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(11,61,104,.10);
}
.wave { position: absolute; left: -8%; width: 116%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; pointer-events: none; }
.wave-one { z-index: 1; height: 210px; bottom: -100px; background: #f2f0ee; transform: rotate(2deg); }
.wave-two { z-index: 2; height: 170px; bottom: -118px; background: rgba(155,145,139,.09); transform: rotate(-3deg); }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 150px;
  padding: 28px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}
.company-details { display: grid; gap: 4px; color: #66717a; font-family: Georgia, "Times New Roman", serif; font-size: 13px; line-height: 1.35; }
.company-details strong { color: #33404a; font-weight: 500; font-size: 14px; }
.footer-links { display: flex; gap: 28px; align-items: center; padding: 14px 0 14px 42px; border-left: 1px solid #d8dde1; }
.footer-links button { border: 0; background: transparent; color: var(--navy); font-family: Georgia, "Times New Roman", serif; padding: 6px 0; }
.footer-links button:hover { text-decoration: underline; text-underline-offset: 3px; }

.legal-dialog {
  width: min(820px, calc(100% - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(12,39,61,.28);
}
.legal-dialog::backdrop { background: rgba(7,26,42,.45); backdrop-filter: blur(2px); }
.dialog-shell { position: relative; max-height: min(88vh,900px); overflow: auto; padding: 48px 56px 58px; }
.dialog-close { position: sticky; float: right; top: 0; margin: -26px -34px 0 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f2f4f5; color: #43505b; font-size: 23px; line-height: 1; z-index: 2; }
.legal-dialog article { font-family: Georgia, "Times New Roman", serif; color: #36424c; font-size: 16px; line-height: 1.6; }
.legal-dialog h2 { margin: 0 0 4px; color: var(--navy-deep); font-size: 38px; line-height: 1.15; font-weight: 500; }
.legal-dialog h3 { margin: 30px 0 8px; color: #153b5b; font-size: 20px; font-weight: 600; }
.legal-dialog p { margin: 9px 0; }
.legal-dialog address { font-style: normal; margin: 10px 0; }
.eyebrow { margin: 0 0 8px !important; color: var(--taupe); text-transform: uppercase; letter-spacing: .08em; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size: 12px; }
.updated { color: #77818a; font-size: 14px; margin-bottom: 24px !important; }

@media (max-width: 760px) {
  .header-inner { width: calc(100% - 28px); min-height: 72px; }
  .brand img { width: 190px; }
  .contact-link { font-size: 16px; }
  .contact-panel { position: fixed; top: 72px; left: 10px; right: 10px; width: auto; max-height: calc(100vh - 84px); overflow-y: auto; padding: 22px; }
  .contact-panel::before { right: 34px; }
  .hero { min-height: 650px; padding: 62px 20px 110px; }
  .hero-logo { width: min(440px, 88vw); margin-bottom: 28px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .lead { font-size: 18px; }
  .footer-inner { width: calc(100% - 32px); flex-direction: column; gap: 22px; }
  .footer-links { width: 100%; padding: 0; border-left: 0; border-top: 1px solid #e1e5e8; padding-top: 18px; }
  .dialog-shell { padding: 40px 24px 46px; }
  .dialog-close { margin: -22px -12px 0 0; }
  .legal-dialog h2 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.error-page { min-height: 100vh; place-items: center; }
.error-page h1 { font-size: clamp(44px, 7vw, 64px); }
.error-page .lead { margin-top: 24px; }
.error-return { margin-top: 30px; }
.error-return a { color: var(--navy); text-underline-offset: 3px; }
