/* ============================================================
   Contact page styles (25 Oct 2026 — production rebuild)
   "NNLHC 3.0 Contact Page" controlled production handoff, using
   the 12-asset verified PNG package (silk bands, mountain sunrise
   hero, 5 category card illustrations, official logo reference).
   Scoped to body.page-contact so nothing here affects any other
   page. Reuses css/style.css shared tokens (--navy-deep, --gold,
   --gold-bright, --white, --radius-lg, --radius-md, --shadow-soft,
   --max-width) and the shared .container/.btn/.reveal/.is-visible
   classes rather than redefining color variables — this avoids any
   collision with style.css's own :root tokens. All page-specific
   classes are prefixed "contact-" to avoid colliding with shared
   class names (e.g. the site-wide .hero used on other pages).

   The page reuses the site's real header/nav (official logo,
   mobile nav-toggle, nav-actions) and real footer markup rather
   than any generic header/footer, per the handoff's design lock
   ("official logo in header and footer").
   ============================================================ */

body.page-contact {
  --contact-muted: #c7d3d1;
  --contact-panel-grad: linear-gradient(135deg, rgba(15, 61, 42, 0.55), rgba(8, 17, 34, 0.93));
}

/* ---------- Skip link (a11y; not present in style.css) ---------- */
body.page-contact .contact-skip {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--white);
  color: var(--navy-deep);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  z-index: 50;
}
body.page-contact .contact-skip:focus { top: 10px; }

/* ---------- Shared inline-SVG icon treatment ----------
   Directive: phone/envelope/clock/arrow icons should be accessible
   inline SVG, not raster images. */
body.page-contact .contact-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
}
body.page-contact .contact-icon svg {
  width: 1.15em;
  height: 1.15em;
  color: var(--gold-bright);
}
body.page-contact .contact-panel h2 .contact-icon svg,
body.page-contact .contact-gold-btn .contact-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  vertical-align: -0.28em;
}

/* ---------- Hero — tricolor silk band + mountain sunrise art ---------- */
body.page-contact .contact-hero {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--navy-deep);
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  padding: 56px 0;
}
body.page-contact .contact-hero-silk {
  position: absolute;
  left: 0;
  bottom: -6%;
  width: 100%;
  height: auto;
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}
body.page-contact .contact-hero-mountain {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  max-width: 620px;
  height: auto;
  z-index: 0;
  opacity: 0.92;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
}
body.page-contact .contact-hero::after {
  /* Text-legibility scrim: the new silk/mountain artwork has a bright
     sunrise sky toward the right, which the subhead text crosses into
     at narrower viewports. This darkens the left ~70% (where the text
     column sits) and fades to fully transparent by 100%, painting above
     both background images but below .contact-hero-inner (z-index 1). */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8,17,34,0.55) 0%, rgba(8,17,34,0.4) 45%, rgba(8,17,34,0.12) 70%, rgba(8,17,34,0) 100%);
}
body.page-contact .contact-hero-inner { position: relative; z-index: 1; max-width: 640px; }
body.page-contact .contact-eyebrow {
  letter-spacing: 0.35em;
  color: var(--gold-bright);
  font-size: 0.78rem;
  margin: 0 0 10px;
  text-transform: uppercase;
}
body.page-contact .contact-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1;
  margin: 0 0 16px;
  color: var(--gold-bright);
}
body.page-contact .contact-hero h1 em {
  font-style: normal;
  color: var(--white);
}
body.page-contact .contact-hero-lead {
  font-size: 1.25rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: var(--white);
  margin: 0 0 10px;
}
body.page-contact .contact-hero-sub { color: var(--contact-muted); margin: 0; max-width: 480px; }

/* ---------- Contact layout (form + info) ---------- */
body.page-contact .contact-layout {
  padding: 56px 0;
  position: relative;
  background: linear-gradient(120deg, rgba(8, 17, 34, 0.96), rgba(10, 27, 24, 0.94));
}
body.page-contact .contact-layout > .container {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
}
body.page-contact #message {
  /* The site header is position:sticky at ~88px tall. The inquiry
     cards below call #message.scrollIntoView() (js/contact.js) —
     without this, the sticky header lands flush over the panel's
     own heading and the info panel's phone number. scroll-margin-top
     reserves that space for scroll positioning only; it adds no
     visible gap in normal in-flow layout. */
  scroll-margin-top: 104px;
}
body.page-contact .contact-panel {
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  background: var(--contact-panel-grad);
  box-shadow: var(--shadow-deep, 0 24px 60px rgba(6, 12, 24, 0.45));
  padding: 28px;
  position: relative;
  backdrop-filter: blur(6px);
}
body.page-contact .contact-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-bright);
  margin: 0 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
}
body.page-contact .contact-panel > p { margin-top: 0; color: var(--contact-muted); }

body.page-contact .contact-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body.page-contact .contact-form-fields label {
  display: block;
  margin: 14px 0;
  color: var(--white);
  font-size: 0.92rem;
}
body.page-contact .contact-form-fields input:not([type="checkbox"]),
body.page-contact .contact-form-fields select,
body.page-contact .contact-form-fields textarea {
  width: 100%;
  display: block;
  margin-top: 6px;
  border: 1px solid #45574f;
  border-radius: 6px;
  padding: 12px;
  background: #03141a;
  color: var(--white);
  outline-offset: 2px;
}
body.page-contact .contact-form-fields input:focus,
body.page-contact .contact-form-fields select:focus,
body.page-contact .contact-form-fields textarea:focus,
body.page-contact .contact-gold-btn:focus-visible {
  outline: 2px solid var(--gold-bright);
}
body.page-contact .contact-optional { color: var(--contact-muted); }
body.page-contact .contact-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
body.page-contact .contact-consent input { margin-top: 5px; }

body.page-contact .contact-gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(var(--gold-bright), var(--gold));
  color: var(--navy-deep);
  padding: 13px 28px;
  font-weight: 700;
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
body.page-contact .contact-gold-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
body.page-contact .contact-gold-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

body.page-contact .contact-form-status { min-height: 24px; font-size: 0.92rem; }
body.page-contact .contact-form-status.error { color: #ffb6a8; }
body.page-contact .contact-form-status.success { color: #a9f5c4; }

body.page-contact .contact-honeypot { position: absolute; left: -9999px; }

/* ---------- Info panel ---------- */
body.page-contact .contact-info { display: grid; gap: 18px; align-content: start; }
body.page-contact .contact-info-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 16px;
}
body.page-contact .contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
body.page-contact .contact-info-list .contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(233, 199, 102, 0.55);
  background: rgba(233, 199, 102, 0.08);
}
body.page-contact .contact-info-list a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
body.page-contact .contact-info-list a:hover,
body.page-contact .contact-info-list a:focus-visible { color: var(--gold-bright); }
body.page-contact .contact-info-list p { margin: 2px 0 0; color: var(--contact-muted); font-size: 0.9rem; }
body.page-contact .contact-info-label { color: var(--white); font-weight: 700; display: block; }
body.page-contact .contact-info-note { color: var(--contact-muted); font-size: 0.88rem; margin: 0; }

body.page-contact .contact-statement {
  text-align: center;
  font: italic 1.4rem/1.5 Georgia, 'Times New Roman', serif;
  color: var(--gold-bright);
}
body.page-contact .contact-statement p { color: var(--gold-bright); margin: 0; }

/* ---------- Fading logo panel ---------- */
body.page-contact .contact-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
}
body.page-contact .contact-logo-fade {
  display: block;
  width: 72%;
  max-width: 220px;
  height: auto;
  animation: contact-logo-fade 5.5s ease-in-out infinite;
}
@keyframes contact-logo-fade {
  0%   { opacity: 0.18; }
  50%  { opacity: 1; }
  100% { opacity: 0.18; }
}

/* ---------- Category help cards ---------- */
body.page-contact .contact-help {
  /* This section has no background of its own in the base layout,
     so it would otherwise sit on the page's light default background
     — leaving its white heading/copy (styled for the page's navy
     palette) nearly invisible. Give it the same navy backdrop as
     the rest of the page, matching the locked design. */
  background: var(--navy-deep);
  text-align: center;
  padding: 60px 0;
}
body.page-contact .contact-help h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  margin: 0;
  color: var(--white);
}
body.page-contact .contact-help > p { color: var(--contact-muted); }
body.page-contact .contact-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
body.page-contact .contact-category {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  background: var(--contact-panel-grad);
  box-shadow: var(--shadow-soft);
}
body.page-contact .contact-category-media {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}
body.page-contact .contact-category img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
body.page-contact .contact-category h3 {
  font: 700 0.95rem Arial, sans-serif;
  min-height: 46px;
  padding: 0 12px;
  margin: 14px 0 0;
  color: var(--white);
}
body.page-contact .contact-category p { font-size: 0.82rem; padding: 0 12px; flex: 1; color: var(--contact-muted); }
body.page-contact .contact-category button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 14px 0;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(var(--gold-bright), var(--gold));
  color: var(--navy-deep);
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Footer silk accent (scoped to this page only) ---------- */
body.page-contact .contact-footer {
  position: relative;
  overflow: hidden;
}
body.page-contact .contact-footer-silk {
  position: absolute;
  top: -4%;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  transform: scaleY(-1);
}
body.page-contact .contact-footer .container { position: relative; z-index: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  body.page-contact .contact-cards { grid-template-columns: repeat(3, 1fr); }
  body.page-contact .contact-layout > .container { grid-template-columns: 1fr; }
  body.page-contact .contact-hero-mountain { width: 56%; opacity: 0.6; }
}
@media (max-width: 620px) {
  body.page-contact .contact-two { grid-template-columns: 1fr; }
  body.page-contact .contact-cards { grid-template-columns: 1fr 1fr; }
  body.page-contact .contact-hero { min-height: 320px; padding: 40px 0; }
  body.page-contact .contact-hero-lead { font-size: 1.05rem; }
  body.page-contact .contact-hero-mountain { width: 72%; opacity: 0.4; }
  body.page-contact .contact-panel { padding: 20px; }
  body.page-contact .contact-category img { height: 120px; }
}
@media (max-width: 380px) {
  body.page-contact .contact-cards { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body.page-contact .contact-gold-btn { transition: none; }
  body.page-contact .contact-gold-btn:hover { transform: none; }
  body.page-contact .contact-logo-fade { animation: none; opacity: 1; }
}
