/* ==========================================================
   KingsCollection — Contact page
   Same look as Our Story and Verses: cream, giant heavy + light
   serif titles, gold, contour lines, a dark card.
   (.sy-title / .sy-meta / .sy-lead / .sy-thin come from css/story.css)
   ========================================================== */
body[data-page="contact"] { background: var(--sy-bg); color: var(--sy-ink); }
.ct-topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ct-topo path { fill: none; stroke: rgba(27,25,20,.08); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

/* headings shared by the form and the answers */
.ct-form h2, .ct-faq h2 {
  margin: 0 0 1.6rem; display: grid;
  font-family: var(--sy-heavy); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.4rem, 5.5vw, 5rem); line-height: .86; letter-spacing: -.045em;
}
.ct-form h2 .sy-thin, .ct-faq h2 .sy-thin { color: var(--gold-deep); }

/* ==========================================================
   1. Intro
   ========================================================== */
.ct-intro { position: relative; overflow: hidden; isolation: isolate; padding: clamp(1.5rem, 3vw, 2.5rem) var(--sy-pad) clamp(3rem, 6vw, 4.5rem); }
.ct-intro .sy-title { position: relative; z-index: 1; font-size: clamp(2.4rem, 12.6vw, 15rem); white-space: nowrap; }   /* "Get in Touch" is longer than "Our Story" */
.ct-intro__row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: end; margin-top: 1.2rem; }
.ct-intro__row .sy-meta { margin: 0; flex-wrap: wrap; }
.ct-intro__row .sy-lead { margin: 0; }

/* ==========================================================
   2. Form + dark card
   ========================================================== */
.ct-main {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start;
  padding: clamp(3rem, 6vw, 5rem) var(--sy-pad) clamp(4rem, 8vw, 6rem);
  border-top: 1px solid rgba(27,25,20,.12);
}
.ct-form { display: grid; gap: 1.4rem; }
.ct-form h2 { margin-bottom: .4rem; }

/* topic chips (radio buttons) */
.ct-topics { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-topics legend { width: 100%; margin-bottom: .7rem; font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.ct-topics label { position: relative; cursor: pointer; }
.ct-topics input { position: absolute; opacity: 0; pointer-events: none; }
.ct-topics span {
  display: inline-block; padding: .6rem 1rem; border-radius: 30px;
  border: 1px solid rgba(27,25,20,.22); background: transparent;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.ct-topics label:hover span { border-color: var(--sy-ink); }
.ct-topics input:checked + span { background: var(--sy-ink); color: #fff; border-color: var(--sy-ink); }
.ct-topics input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* fields: big underlined inputs */
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.ct-field { display: grid; gap: .35rem; }
.ct-field span { font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--sy-soft); }
.ct-field input, .ct-field textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid rgba(27,25,20,.25); border-radius: 0;
  background: transparent; color: var(--sy-ink);
  padding: .6rem 0; font: inherit; font-size: 1.15rem;
  transition: border-color .25s;
}
.ct-field textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.ct-field input:focus, .ct-field textarea:focus { outline: 0; border-bottom-color: var(--gold); }
.ct-prayer { margin: -.4rem 0 0; padding: .8rem 1rem; border-left: 3px solid var(--gold); background: #fbf6e8; font-family: var(--serif); font-size: 1.1rem; font-style: italic; }
.ct-send {
  justify-self: start; display: inline-flex; align-items: center; gap: .7rem;
  padding: 1.05rem 1.7rem; border: 0; border-radius: 6px;
  background: var(--sy-ink); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.ct-send span { transition: transform .3s var(--ease); }
.ct-send:hover { background: var(--gold); color: var(--sy-ink); transform: translateY(-2px); }
.ct-send:hover span { transform: translateX(4px); }

/* dark card */
.ct-card {
  position: sticky; top: calc(var(--kc-head, 78px) + 1.5rem);
  overflow: hidden; isolation: isolate;
  background: #0d0c0a; color: #efe9dd;
  border-radius: 18px; padding: clamp(1.8rem, 3.5vw, 3rem);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}
.ct-card .ct-topo path { stroke: rgba(201,162,77,.14); }
.ct-card > *:not(.ct-topo) { position: relative; z-index: 1; }
.ct-card__mark { height: 30px; width: auto; margin-bottom: 1.2rem; }
.ct-card__verse { margin: 0; max-width: none; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2; text-align: left; }
.ct-card__verse cite { display: block; margin-top: .9rem; font-family: var(--sy-heavy); font-style: normal; font-weight: 900; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); opacity: 1; }
.ct-card__info { display: grid; gap: 1.3rem; margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid rgba(239,233,221,.14); }
.ct-card__info h3 { margin: 0 0 .3rem; font-family: var(--sy-heavy); font-weight: 900; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.ct-card__info p { margin: 0; font-size: .86rem; line-height: 1.6; color: #c8c1b2; }

/* ==========================================================
   3. Quick answers
   ========================================================== */
.ct-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: clamp(3rem, 6vw, 5rem) var(--sy-pad) clamp(4rem, 8vw, 6rem); border-top: 1px solid rgba(27,25,20,.12); }
.ct-faq__list { border-top: 1px solid rgba(27,25,20,.16); }
.ct-faq details { border-bottom: 1px solid rgba(27,25,20,.16); }
.ct-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-family: var(--sy-heavy); font-weight: 800; font-size: clamp(1rem, 1.5vw, 1.2rem); letter-spacing: -.01em;
}
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after {
  content: '+'; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(27,25,20,.25);
  font-weight: 500; font-size: 1.1rem; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.ct-faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); }
.ct-faq summary:hover { color: var(--gold-deep); }
.ct-faq details p { margin: 0 0 1.4rem; max-width: 40rem; color: var(--sy-soft); font-size: .95rem; line-height: 1.65; }
.ct-faq details[open] p { animation: ctOpen .4s var(--ease); }
@keyframes ctOpen { from { opacity: 0; transform: translateY(-6px); } }

body[data-page="contact"] .site-footer { margin-top: 0; }

/* ==========================================================
   Phones
   ========================================================== */
@media (max-width: 860px) {
  .ct-intro__row, .ct-main, .ct-faq { grid-template-columns: 1fr; }
  .ct-intro .sy-title { font-size: clamp(2rem, 12vw, 7rem); justify-content: flex-start; }
  .ct-card { position: relative; top: auto; }
}
@media (max-width: 520px) {
  .ct-row { grid-template-columns: 1fr; }
  .ct-send { justify-self: stretch; justify-content: center; }
}
