:root {
  --navy: #071b2d;
  --navy-soft: #10273a;
  --ivory: #f4f2eb;
  --card: #f8f4e8;
  --paper: #fffdfa;
  --gold: #d3b76b;
  --gold-dark: #887031;
  --text: #10273a;
  --muted: #53616c;
  --error: #8a2b2b;
  --header-height: 106px;
  --content-width: 1180px;
  --shadow: 0 22px 54px rgba(7, 27, 45, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--ivory);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: var(--header-height);
  padding: 0 max(16px, calc((100vw - var(--content-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(244, 242, 235, 0.97);
  border-bottom: 1px solid rgba(136, 112, 49, 0.55);
  box-shadow: 0 8px 30px rgba(7, 27, 45, 0.07);
  backdrop-filter: blur(12px);
}

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

.brand img {
  width: 148px;
  height: auto;
}

.brand-mobile-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.brand-desktop {
  display: none;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  padding: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(136, 112, 49, 0.55);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.menu-icon {
  display: grid;
  gap: 5px;
}

.menu-icon i {
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  inset: var(--header-height) 0 0;
  padding: 42px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(244, 242, 235, 0.99);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}

.main-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.main-nav a {
  padding: 15px 4px;
  color: var(--navy);
  border-bottom: 1px solid rgba(136, 112, 49, 0.22);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  color: var(--gold-dark);
}

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

.skip-link:focus {
  transform: none;
}

.contact-hero {
  padding: calc(var(--header-height) + 68px) 0 70px;
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid rgba(211, 183, 107, 0.5);
}

.contact-hero-inner {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 11vw, 4.9rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.hero-intro {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 4vw, 1.35rem);
  line-height: 1.55;
}

.hero-support {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--gold);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.contact-section {
  padding: 72px 0 84px;
  background: var(--ivory);
}

.contact-layout {
  display: grid;
  gap: 26px;
}

.contact-visual {
  margin: 0 0 32px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(136, 112, 49, 0.5);
  box-shadow: var(--shadow);
}

.contact-visual img {
  width: 100%;
  height: auto;
}

.direct-panel,
.form-panel {
  padding: 28px 20px;
  background: var(--paper);
  border-top: 3px solid var(--gold-dark);
  box-shadow: var(--shadow);
}

.panel-heading {
  margin-bottom: 28px;
}

.panel-heading .eyebrow {
  color: var(--gold-dark);
}

.panel-heading h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 7vw, 2.75rem);
  line-height: 1.08;
}

.required-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-card {
  min-height: 126px;
  margin-top: 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid rgba(136, 112, 49, 0.38);
  box-shadow: 0 10px 26px rgba(7, 27, 45, 0.07);
}

.contact-icon {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 7px 11px rgba(136, 112, 49, 0.2));
}

.contact-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.phone-link {
  display: inline-block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 7vw, 2.3rem);
  line-height: 1.15;
  text-decoration-color: var(--gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.button {
  min-height: 48px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--gold-dark);
  border-radius: 0;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--navy-soft);
}

form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.field {
  min-width: 0;
}

.field label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.optional {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: normal;
}

input,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(136, 112, 49, 0.52);
  border-radius: 0;
  font: inherit;
  line-height: 1.45;
}

textarea {
  min-height: 154px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(211, 183, 107, 0.2);
  outline: none;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error,
.field-hint {
  min-height: 1.35em;
  margin-top: 5px;
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
}

.field-error {
  color: var(--error);
}

.field-hint,
.draft-note {
  color: var(--muted);
}

.form-actions {
  padding-top: 4px;
}

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

.privacy-field label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 600;
}

.privacy-field input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  accent-color: var(--gold-dark);
}

.privacy-field a {
  color: var(--navy);
  text-decoration-color: var(--gold-dark);
  text-underline-offset: 0.2em;
}

.button-submit {
  width: 100%;
}

.draft-note,
.form-status {
  margin: 12px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-status {
  min-height: 1.5em;
  color: var(--navy);
  font-weight: 700;
}

.site-footer {
  padding: 28px 20px;
  color: rgba(255, 255, 255, 0.78);
  background: #061522;
  border-top: 1px solid rgba(211, 183, 107, 0.36);
  font-size: 0.77rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(7, 27, 45, 0.92);
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(7, 27, 45, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.demo-notice {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 1100;
  width: min(calc(100% - 40px), 510px);
  padding: 13px 18px;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--gold-dark);
  box-shadow: 0 14px 36px rgba(7, 27, 45, 0.3);
  font-size: 0.88rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.demo-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 720px) {
  .content-width {
    width: min(calc(100% - 72px), var(--content-width));
  }

  .contact-hero {
    padding-block: calc(var(--header-height) + 76px) 82px;
  }

  .contact-section {
    padding: 92px 0 104px;
  }

  .contact-visual {
    margin-bottom: 40px;
  }

  .direct-panel,
  .form-panel {
    padding: 40px;
  }

  form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
  }

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

@media (min-width: 960px) {
  :root {
    --header-height: 110px;
  }

  body.menu-open {
    overflow: auto;
  }

  .brand-mobile,
  .menu-toggle {
    display: none;
  }

  .brand-desktop {
    display: block;
  }

  .brand img {
    width: 176px;
  }

  .main-nav {
    position: static;
    inset: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 34px;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav a {
    position: relative;
    padding: 12px 0;
    border: 0;
    font-size: 0.76rem;
  }

  .main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 6px;
    left: 0;
    height: 1px;
    background: var(--gold-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
  }

  .main-nav a:hover::after,
  .main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
  }

  .direct-panel,
  .form-panel {
    padding: 44px;
  }

  .direct-panel {
    display: flex;
    flex-direction: column;
  }
}

.button-community,
.button-community:hover,
.button-community:focus-visible {
  box-shadow: none;
}

@media (max-width: 390px) {
  .site-header {
    padding-inline: 12px;
  }

  .brand img {
    width: 136px;
  }

  .brand-mobile-subtitle {
    max-width: 170px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .content-width {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .direct-panel,
  .form-panel {
    padding: 26px 18px;
  }

  .contact-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    min-height: 112px;
    padding: 12px 14px;
  }

  .contact-icon {
    width: 68px;
    height: 68px;
  }

  .button-community {
    padding-inline: 12px;
    font-size: 0.67rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
