/* ============================================================
   Sites of Grace — "Contact Us" page
   Uses the brand tokens defined in site.css (:root). Matches
   sites-of-grace-contact-mockup.html section for section; class names are
   prefixed (contact-*) so nothing here collides with other page CSS.
   Buttons are the site's own .btn/.btn-gold, as on the Support page.
   ============================================================ */

/* ---------- Shared type ---------- */
.contact-eyebrow {
  font-family: var(--serif-titling); font-size: 12px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 12px;
}
.contact-eyebrow--center { text-align: center; }
.contact h1, .contact h2, .contact h3 {
  font-family: var(--serif-display); font-weight: 500; line-height: 1.08; margin: 0; color: var(--navy);
}
.contact-h2 { font-size: clamp(30px, 3.6vw, 40px); }
.contact [hidden] { display: none !important; }

/* ---------- Photo slot ----------
   No image -> the same "dusk" brand gradient as the Support and Our Story
   pages, so the page looks finished with nothing uploaded. */
.contact-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, #f6d49a 0%, #e9ac72 40%, #b87460 70%, #4b4458 100%);
}

/* ---------- 1. Hero ---------- */
.contact-hero { position: relative; min-height: 340px; display: flex; align-items: center; overflow: hidden; }
.contact-hero-media { position: absolute; inset: 0; }
.contact-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(3,20,45,.88) 0%, rgba(3,25,55,.66) 42%, rgba(3,25,55,.15) 70%, transparent 86%);
}
.contact-hero-inner { position: relative; z-index: 2; }
.contact-hero-copy { max-width: 580px; padding: 58px 0; }
.contact .contact-hero h1 { color: var(--ivory); font-size: clamp(38px, 5vw, 56px); margin-bottom: 18px; }
.contact-hero-intro { font-size: 16px; line-height: 1.75; color: rgba(253,249,242,.88); margin: 0; }

/* ---------- 2. Topic cards ---------- */
.contact-topics { padding: 60px 0 20px; }
.contact-topics-head { text-align: center; margin-bottom: 28px; }
.contact-topic-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.contact-topic {
  position: relative; display: block; text-align: center; text-decoration: none; color: var(--navy);
  padding: 26px 12px 40px; border: 1px solid var(--gold); border-radius: 999px 999px 6px 6px;
  background: rgba(255,255,255,.6); cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.contact-topic:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(3,37,83,.55); }
.contact-topic:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.contact-topic svg { display: inline-block; width: 32px; height: 32px; color: var(--navy); margin-bottom: 10px; }
.contact .contact-topic h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; color: inherit; }
.contact-topic p { font-size: 12px; line-height: 1.55; color: var(--stone); margin: 0; }
.contact-topic::after {
  content: "✥"; position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%);
  color: var(--gold); font-size: 12px;
}
/* Selected: from ?topic= without JS, or aria-pressed once contact.js runs. */
.contact-topic.is-selected, .contact-topic[aria-pressed="true"] { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.contact-topic.is-selected p, .contact-topic[aria-pressed="true"] p { color: rgba(253,249,242,.78); }
.contact-topic.is-selected svg, .contact-topic[aria-pressed="true"] svg { color: var(--gold); }
.contact-topic[aria-pressed="false"] { background: rgba(255,255,255,.6); color: var(--navy); border-color: var(--gold); }
.contact-topic[aria-pressed="false"]:hover { background: #fff; }
.contact-topic[aria-pressed="false"] p { color: var(--stone); }
.contact-topic[aria-pressed="false"] svg { color: var(--navy); }

/* ---------- 3. Form card ---------- */
.contact-main { padding: 40px 0 70px; scroll-margin-top: 100px; }
.contact-main-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 36px; align-items: start; }
.contact-card {
  background: #fff; border: 1px solid var(--gold-soft); border-radius: 8px;
  padding: 34px 36px 36px; box-shadow: 0 24px 50px -40px rgba(3,37,83,.6);
}
/* contact.js scrolls the form into view; clear the sticky header. */
.contact-form, .contact-alert { scroll-margin-top: 110px; }
.contact .contact-form h2 { font-size: 32px; margin-bottom: 6px; }
.contact-lede { font-size: 14px; color: var(--stone); margin: 0 0 24px; line-height: 1.6; }

.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { position: relative; display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.contact-field label { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--blue); }
.contact-opt { font-weight: 400; color: var(--stone); }
.contact-field input, .contact-field select, .contact-field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--navy); background: var(--ivory);
  border: 1px solid rgba(95,100,112,.3); border-radius: 4px; padding: 12px 13px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.contact-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,66,.2); background: #fff;
}
.contact-help { font-family: var(--sans); font-size: 12px; color: var(--stone); }
.contact-field.has-error input, .contact-field.has-error textarea { border-color: var(--red); border-left-width: 3px; }
/* Navy text with the red marker, not red text: red on white is too faint
   for small type. */
.contact-err { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--navy); }
.contact-err::before { content: "! "; color: var(--red); }

.contact-alert {
  font-family: var(--sans); font-size: 13.5px; line-height: 1.5; color: var(--navy);
  background: var(--parchment); border-left: 3px solid var(--red); border-radius: 4px;
  padding: 10px 14px; margin: 0 0 18px;
}
.contact-alert:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.contact-errors p { margin: 0 0 4px; font-weight: 600; }
.contact-errors ul { margin: 0; padding-left: 18px; }
.contact-errors a { color: var(--blue); text-decoration: underline; }

/* Related page picker */
.contact-chip {
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%;
  font-family: var(--sans); font-size: 13.5px; padding: 9px 12px;
  border: 1px solid var(--gold); border-radius: 999px; background: var(--parchment); color: var(--navy);
}
.contact-chip button {
  border: 0; background: none; cursor: pointer; color: var(--stone);
  font-size: 16px; line-height: 1; padding: 0 0 0 4px;
}
.contact-chip button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.contact-suggest {
  position: absolute; left: 0; right: 0; top: 70px; z-index: 5; overflow: hidden;
  background: #fff; border: 1px solid var(--gold-soft); border-radius: 6px;
  box-shadow: 0 18px 34px -20px rgba(3,37,83,.5);
}
.contact-suggest-group {
  font-family: var(--serif-titling); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); padding: 10px 14px 4px;
}
.contact-suggest-option {
  display: block; padding: 8px 14px; font-family: var(--sans); font-size: 14px; color: var(--navy); cursor: pointer;
}
.contact-suggest-option small { color: var(--stone); margin-left: 6px; }
.contact-suggest-option:hover, .contact-suggest-option.is-active { background: var(--parchment); }
.contact-suggest-empty { padding: 10px 14px; font-family: var(--sans); font-size: 13px; color: var(--stone); }

.contact-note {
  font-size: 13.5px; line-height: 1.6; color: var(--blue); background: var(--parchment);
  border-left: 3px solid var(--gold); padding: 12px 14px; margin: -4px 0 18px; border-radius: 0 4px 4px 0;
}
.contact-note a { color: var(--blue); text-decoration: underline; }

/* Honeypot: off-screen for people, still in the form for bots. */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-turnstile { margin: 0 0 18px; }

.contact-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.contact-privacy { font-family: var(--sans); font-size: 12px; color: var(--stone); max-width: 330px; line-height: 1.5; margin: 0; }
.contact-privacy a { color: var(--blue); text-decoration: underline; }
.contact-submit { gap: 10px; }
.contact-arr { font-family: var(--serif-body); letter-spacing: 0; font-size: 15px; line-height: 1; }

/* Thank-you panel */
.contact-thanks { text-align: center; padding: 30px 10px 14px; scroll-margin-top: 110px; }
.contact-thanks:focus { outline: none; }
.contact .contact-thanks h2 { font-size: 36px; margin-bottom: 10px; }
.contact-thanks p { font-size: 15px; line-height: 1.7; color: #3a4458; max-width: 440px; margin: 0 auto 10px; }
.contact-seal { display: block; width: 74px; height: 74px; margin: 0 auto 18px; color: var(--gold); }
.contact-again { font-family: var(--sans); font-size: 13px; color: var(--blue); text-decoration: underline; }

/* ---------- Sidebar ---------- */
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-side-card { border: 1px solid var(--gold-soft); border-radius: 8px; padding: 24px 24px 22px; background: rgba(255,255,255,.55); }
.contact .contact-side-card h3 { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.contact-reach { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-reach li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.contact-reach-icon {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; color: var(--navy);
}
.contact-reach-icon svg { width: 16px; height: 16px; }
.contact-reach b, .contact-follow b {
  display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .04em; color: var(--stone);
  font-weight: 600; text-transform: uppercase; margin-bottom: 2px;
}
.contact-reach span, .contact-reach a { font-size: 15px; text-decoration: none; color: var(--navy); overflow-wrap: anywhere; }
.contact-reach a:hover { color: var(--gold); }
.contact-follow { margin-top: 18px; }
.contact-socials { display: flex; gap: 10px; margin-top: 8px; }
.contact-socials a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; color: var(--navy); text-decoration: none;
}
.contact-socials a:hover { background: var(--navy); color: var(--gold); }
.contact-socials svg { width: 16px; height: 16px; }
.contact-side-card a:focus-visible, .contact-again:focus-visible, .contact-faq a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.contact-side-card--navy { background: var(--navy); border-color: var(--navy); position: relative; overflow: hidden; }
.contact .contact-side-card--navy h3 { color: var(--ivory); }
.contact-side-card--navy p { position: relative; font-size: 14px; line-height: 1.7; color: rgba(253,249,242,.82); margin: 0 0 10px; }
.contact-side-card--navy p:last-child { margin: 0; }
.contact-visit-link { color: var(--gold); text-decoration: none; }
.contact-visit-link:hover { text-decoration: underline; }
.contact-emblem { position: absolute; right: -40px; bottom: -40px; width: 170px; height: 170px; color: var(--gold); opacity: .18; }

.contact-note-text p, .contact-policy-links { font-size: 13.5px; line-height: 1.65; color: #3a4458; margin: 0; }
.contact-note-text p + p, .contact-policy-links { margin-top: 8px; }
.contact-note-text a { color: var(--blue); }
.contact-policy-links { font-family: var(--sans); font-size: 12.5px; }
.contact-policy-links a { color: var(--blue); }
.contact-policy-links span + span::before { content: " · "; color: var(--stone); }

/* ---------- 4. FAQ ---------- */
.contact-faq { background: var(--parchment); border-top: 1px solid var(--gold-soft); padding: 64px 0 70px; }
.contact-faq-inner { max-width: 820px; }
.contact-faq .contact-h2 { text-align: center; margin-bottom: 28px; }
.contact-faq details { border-bottom: 1px solid var(--gold-soft); }
.contact-faq details:first-of-type { border-top: 1px solid var(--gold-soft); }
.contact-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 4px; font-family: var(--serif-display); font-size: 22px; font-weight: 600; color: var(--navy);
}
.contact-faq summary::-webkit-details-marker { display: none; }
.contact-faq summary::after {
  content: "+"; font-family: var(--serif-body); font-size: 22px; color: var(--gold);
  transition: transform .2s ease; flex: none;
}
.contact-faq details[open] summary::after { transform: rotate(45deg); }
.contact-faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.contact-faq-answer p { font-size: 15px; line-height: 1.75; color: #3a4458; margin: 0 4px 20px; }
.contact-faq-answer a { color: var(--blue); }

/* The FAQ's parchment runs straight into the footer, as in the mockup. */
.contact .site-footer { margin-top: 0; }

/* ---------- Responsive ----------
   The header's own nav collapses at 900px (site.css). */
@media (max-width: 1080px) {
  .contact-topic-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-main-grid { grid-template-columns: 1fr; }
  .contact-side { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-side-card--note { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .contact-hero { min-height: 380px; align-items: flex-end; }
  .contact-hero::after { background: linear-gradient(180deg, rgba(3,25,55,.15) 0%, rgba(3,20,45,.9) 60%); }
  .contact-hero-copy { padding: 36px 0 40px; }
  .contact-topic-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .contact-topic { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 999px; }
  .contact-topic svg { width: 22px; height: 22px; margin: 0; flex: none; }
  .contact .contact-topic h3 { font-size: 16px; margin: 0; line-height: 1.15; }
  .contact-topic p, .contact-topic::after { display: none; }
  .contact-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card { padding: 26px 20px 26px; }
  .contact-side { grid-template-columns: 1fr; }
  .contact-form-foot .btn { width: 100%; }
}
