/* ========================================
   Contact page — same visual system as Home
   ======================================== */

.contact-page {
  overflow: hidden;
}

.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page strong,
.contact-page p {
  overflow-wrap: anywhere;
}

.contact-page h1,
.contact-page h2 {
  font-size: clamp(24px, 3vw, 30px);
}

/* Hero */

.contact-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: max(590px, calc(76svh - var(--header-height)));
  padding-block: 66px;
  color: #fff;
  background:
    radial-gradient(circle at 9% 8%, rgba(119, 138, 255, .26), transparent 31%),
    radial-gradient(circle at 92% 85%, rgba(170, 102, 232, .22), transparent 35%),
    linear-gradient(135deg, #07112d 0%, #111d45 56%, #17204c 100%);
}

.contact-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.contact-hero-inner {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(480px, 1.2fr);
  align-items: center;
  gap: clamp(38px, 6vw, 78px);
}

.contact-hero-copy {
  max-width: 540px;
  animation: contact-arrive .72s var(--ease) .12s both;
}

.contact-hero .section-kicker {
  color: #b9c2ff;
}

.contact-hero h1 {
  max-width: 520px;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -.035em;
}

.contact-hero-lead {
  max-width: 520px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.contact-light-button {
  color: var(--green-dark);
  background: #fff;
}

.contact-light-button:hover {
  color: var(--green-dark);
  background: #f0f3fa;
}

.contact-outline-button {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-outline-button:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .16);
}

.contact-hero-service {
  margin: 21px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 650;
}

/* Real Google map */

.contact-map-card {
  position: relative;
  min-width: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 26px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .25);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  animation: contact-arrive .78s var(--ease) .24s both;
}

.contact-map-frame {
  position: relative;
  height: clamp(310px, 35vw, 410px);
  overflow: hidden;
  border-radius: 18px;
  background: #dfe6f0;
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 10px 5px;
}

.contact-map-bar > div {
  min-width: 0;
}

.contact-map-bar strong,
.contact-map-bar span {
  display: block;
}

.contact-map-bar strong {
  color: #fff;
  font-size: 13px;
}

.contact-map-bar > div > span {
  margin-top: 3px;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
}

.contact-map-direction {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 11px;
  font-weight: 800;
  transition:
    transform .24s var(--ease),
    background .24s ease;
}

.contact-map-direction:hover {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
}

@keyframes contact-arrive {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shared light surface */

.contact-surface {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at -8% 12%, rgba(132, 148, 255, .25), transparent 31%),
    radial-gradient(circle at 108% 54%, rgba(95, 157, 255, .2), transparent 35%),
    radial-gradient(circle at 12% 98%, rgba(190, 139, 239, .18), transparent 33%),
    linear-gradient(180deg, #f3f6ff 0%, #fbfaff 52%, #f7faff 100%);
}

.contact-details,
.contact-connect,
.contact-faq {
  position: relative;
  z-index: 1;
}

.contact-details {
  padding-block: 74px 46px;
}

.contact-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 26px;
}

.contact-section-heading h2 {
  margin: 0;
}

.contact-section-heading > p {
  max-width: 390px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
}

/* Visit cards */

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.contact-info-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 245px;
  padding: 22px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(75, 86, 160, .13);
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 15px 38px rgba(38, 45, 95, .09);
  backdrop-filter: blur(19px) saturate(128%);
  -webkit-backdrop-filter: blur(19px) saturate(128%);
  transition:
    transform .28s var(--ease),
    box-shadow .28s ease,
    border-color .28s ease;
}

.contact-info-card:hover {
  border-color: rgba(75, 86, 160, .26);
  box-shadow: 0 21px 46px rgba(38, 45, 95, .14);
  transform: translateY(-4px);
}

.contact-info-card-featured {
  color: #fff;
  border-color: rgba(255, 255, 255, .14);
  background:
    radial-gradient(circle at 90% 8%, rgba(137, 148, 255, .3), transparent 32%),
    linear-gradient(145deg, #0a1534, #1b285b);
}

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 20px;
  color: #5968ca;
  border-radius: 13px;
  background: rgba(232, 236, 255, .92);
}

.contact-card-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.contact-info-card-featured .contact-card-icon {
  color: #fff;
  background: rgba(255, 255, 255, .13);
}

.contact-card-copy {
  min-width: 0;
}

.contact-card-label {
  display: block;
  margin-bottom: 7px;
  color: #6875d5;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-info-card-featured .contact-card-label {
  color: #bac2ff;
}

.contact-info-card h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
}

.contact-info-card h3 a {
  color: inherit;
}

.contact-info-card-featured h3 {
  color: #fff;
}

.contact-info-card .text-link {
  margin-top: auto;
  font-size: 11px;
}

.contact-info-card-featured .text-link {
  color: #c2c9ff;
}

.contact-email {
  font-size: clamp(13px, 1.15vw, 16px) !important;
}

.contact-schedule {
  display: grid;
  gap: 10px;
}

.contact-schedule > div {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(69, 80, 145, .12);
}

.contact-schedule > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-schedule strong {
  color: var(--ink);
  font-size: 12px;
}

.contact-schedule span {
  color: var(--muted);
  font-size: 11px;
}

/* Contact people */

.contact-connect {
  padding-block: 46px;
}

.contact-connect-panel {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(34px, 6vw, 72px);
  padding: clamp(30px, 4.8vw, 54px);
  border: 1px solid rgba(81, 90, 185, .15);
  border-radius: 26px;
  background: rgba(255, 255, 255, .56);
  box-shadow: 0 22px 62px rgba(37, 45, 105, .11);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.contact-connect-copy h2 {
  margin: 0 0 13px;
}

.contact-connect-copy > p:not(.section-kicker) {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact-person-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-person-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(72, 84, 145, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .74);
}

.contact-person-card-pastor {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #15214b, #33417e);
}

.contact-person-card > span {
  display: block;
  min-height: 32px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.contact-person-card-pastor > span {
  color: rgba(255, 255, 255, .65);
}

.contact-person-card > strong {
  display: block;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: -.025em;
}

.contact-person-card-pastor > strong {
  color: #fff;
}

.contact-person-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
}

.contact-person-card a {
  color: #5968ca;
  font-size: 11px;
  font-weight: 800;
}

.contact-person-card-pastor a {
  color: #d1d5ff;
}

/* FAQ */

.contact-faq {
  padding-block: 46px 80px;
}

.contact-faq-inner {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 7vw, 82px);
}

.contact-faq-heading {
  align-self: start;
}

.contact-faq-heading h2 {
  margin: 0;
}

.contact-faq-list {
  display: grid;
  gap: 10px;
}

.contact-faq-list details {
  overflow: hidden;
  border: 1px solid rgba(73, 84, 150, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 10px 28px rgba(38, 45, 95, .055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    border-color .25s ease,
    background .25s ease;
}

.contact-faq-list details[open] {
  border-color: rgba(91, 105, 205, .27);
  background: rgba(255, 255, 255, .86);
}

.contact-faq-list summary {
  position: relative;
  padding: 18px 52px 18px 19px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 760;
}

.contact-faq-list summary::-webkit-details-marker {
  display: none;
}

.contact-faq-list summary::before,
.contact-faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 13px;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: #6976d7;
  transition: transform .25s var(--ease);
}

.contact-faq-list summary::before {
  transform: translateY(-50%);
}

.contact-faq-list summary::after {
  transform: translateY(-50%) rotate(90deg);
}

.contact-faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.contact-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s var(--ease);
}

.contact-faq-list details[open] .contact-faq-answer {
  grid-template-rows: 1fr;
}

.contact-faq-answer p {
  min-height: 0;
  margin: 0;
  padding: 0 19px 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* Closing */

.contact-closing {
  color: #34466f;
  background:
    radial-gradient(circle at 5% 0%, rgba(207, 231, 255, .94), transparent 44%),
    radial-gradient(circle at 94% 88%, rgba(225, 207, 255, .78), transparent 44%),
    linear-gradient(135deg, #f4f9ff, #f4efff);
}

.contact-closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 58px;
}

.contact-closing h2 {
  margin: 0 0 8px;
  color: #34466f;
}

.contact-closing p:not(.section-kicker) {
  max-width: 620px;
  margin: 0;
  color: rgba(52, 70, 111, .74);
  font-size: 13px;
}

.contact-closing .section-kicker {
  color: #6f7fc7;
}

.contact-closing-button {
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #6277d4, #8a68c5);
  box-shadow: 0 12px 28px rgba(83, 91, 174, .22);
}

.contact-closing-button:hover {
  color: #fff;
  background: linear-gradient(135deg, #5269c8, #7959b7);
}

/* Responsive */

@media (max-width: 1040px) {
  .contact-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-info-card {
    min-height: 220px;
  }
}

@media (max-width: 880px) {
  .contact-hero {
    min-height: auto;
    padding-block: 64px;
  }

  .contact-hero-inner,
  .contact-connect-panel,
  .contact-faq-inner {
    grid-template-columns: 1fr;
  }

  .contact-hero-copy {
    max-width: 650px;
  }

  .contact-map-frame {
    height: 390px;
  }

  .contact-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 620px) {
  .contact-hero {
    padding-block: 52px 58px;
  }

  .contact-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-hero-actions .button {
    width: 100%;
  }

  .contact-map-card {
    padding: 7px;
    border-radius: 20px;
  }

  .contact-map-frame {
    height: 330px;
    border-radius: 14px;
  }

  .contact-map-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
    padding: 13px 8px 7px;
  }

  .contact-map-direction {
    justify-content: center;
    width: 100%;
  }

  .contact-details {
    padding-block: 56px 34px;
  }

  .contact-card-grid,
  .contact-person-list {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    min-height: 205px;
  }

  .contact-connect {
    padding-block: 34px;
  }

  .contact-connect-panel {
    gap: 25px;
    padding: 25px 20px;
    border-radius: 21px;
  }

  .contact-person-card > span {
    min-height: 0;
  }

  .contact-faq {
    padding-block: 34px 62px;
  }

  .contact-faq-inner {
    gap: 25px;
  }

  .contact-closing-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 23px;
    padding-block: 48px;
  }

  .contact-closing-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero-copy,
  .contact-map-card {
    animation: none;
  }

  .contact-info-card,
  .contact-map-direction,
  .contact-faq-answer,
  .contact-faq-list summary::after {
    transition: none;
  }
}

/*
 * Contact page visual update
 * Load this after contact.css, or append it to the end of contact.css.
 */

/* Hero: natural landscape with a neutral 20% black shade.
   The shade is 80% transparent, so the image retains roughly 80% brightness. */
.contact-hero {
  background-color: #262724;
  background-image: var(--contact-hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-hero::before {
  z-index: -1;
  opacity: 1;
  background: rgba(0, 0, 0, .2);
  background-image: none;
  background-size: auto;
  mask-image: none;
  -webkit-mask-image: none;
}

.contact-hero .section-kicker {
  color: rgba(255, 255, 255, .82);
}

.contact-hero-lead {
  color: rgba(255, 255, 255, .84);
}

.contact-hero-service {
  color: rgba(255, 255, 255, .78);
}

/* Map tray: light, neutral translucent glass with no blue tint. */
.contact-map-card {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .48);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .66);
  backdrop-filter: blur(24px) saturate(108%);
  -webkit-backdrop-filter: blur(24px) saturate(108%);
}

.contact-map-bar strong {
  color: #20252d;
}

.contact-map-bar > div > span {
  color: rgba(32, 37, 45, .68);
}

.contact-map-direction {
  color: #20252d;
  border-color: rgba(255, 255, 255, .76);
  background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58);
}

.contact-map-direction:hover {
  color: #11151a;
  border-color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .74);
}

/* FAQ: JS measures real content height so native <details> never snaps shut.
   During an accordion switch, the old and new panels animate concurrently. */
.contact-faq-list.contact-faq-ready {
  transition: height .42s var(--ease);
  will-change: height;
}

.contact-faq-list.contact-faq-ready .contact-faq-answer,
.contact-faq-list.contact-faq-ready details[open] .contact-faq-answer {
  display: block;
  height: 0;
  overflow: clip;
  opacity: 0;
  grid-template-rows: none;
  transition:
    height .42s var(--ease),
    opacity .24s ease;
  will-change: height, opacity;
}

.contact-faq-list.contact-faq-ready .contact-faq-answer p {
  overflow: visible;
}

.contact-faq-list details.is-opening summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.contact-faq-list details.is-closing summary::after {
  transform: translateY(-50%) rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .contact-faq-list.contact-faq-ready,
  .contact-faq-list.contact-faq-ready .contact-faq-answer,
  .contact-faq-list.contact-faq-ready details[open] .contact-faq-answer {
    transition: none;
  }
}
