/**
 * Contact book landing — /contact/ gateway (no quote form).
 * iOS liquid glass · interior page · matches work/services polish.
 */

/* —— Hide duplicate WP page title —— */
body.pa-contact-page .wp-block-post-title,
body.pa-contact-page main .entry-header {
  display: none !important;
}

/* —— Page shell —— */
body.pa-contact-page .pa-contact-book {
  max-width: 42rem;
  margin: 0 auto var(--pa-space-section-footer, clamp(2.5rem, 6vw, 4rem));
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) var(--pa2-space-3, 1.5rem);
}

/* —— Hero —— */
body.pa-contact-page .pa-contact-book__hero {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

body.pa-contact-page .pa-contact-book__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--pa2-hairline, rgba(29, 29, 31, 0.12));
  background: var(--pa-ios-fill, rgba(255, 255, 255, 0.62));
  backdrop-filter: var(--pa-ios-blur-light, blur(32px) saturate(190%));
  -webkit-backdrop-filter: var(--pa-ios-blur-light, blur(32px) saturate(190%));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.62);
  box-shadow: var(--pa-ios-shadow-sm, 0 8px 28px rgba(17, 17, 17, 0.08));
}

body.pa-contact-page .pa-contact-book__title {
  margin: 0 auto 0.85rem;
  max-width: 16ch;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--pa2-ink, #1d1d1f);
}

body.pa-contact-page .pa-contact-book__lead {
  margin: 0 auto;
  max-width: 42ch;
  font-size: clamp(1rem, 2.2vw, 1.0625rem);
  line-height: 1.55;
  text-wrap: pretty;
  color: rgba(29, 29, 31, 0.68);
}

body.pa-contact-page .pa-contact-book__lead strong {
  color: var(--pa2-ink, #1d1d1f);
  font-weight: 700;
}

/* —— Glass panel —— */
body.pa-contact-page .pa-contact-book__panel {
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 4vw, 1.75rem);
  text-align: center;
  border-radius: var(--pa-ios-radius-lg, 20px);
  background: var(--pa-ios-fill-raised, rgba(255, 255, 255, 0.74));
  backdrop-filter: var(--pa-ios-blur-light, blur(32px) saturate(190%));
  -webkit-backdrop-filter: var(--pa-ios-blur-light, blur(32px) saturate(190%));
  border: 1px solid var(--pa-ios-stroke, rgba(255, 255, 255, 0.88));
  box-shadow: var(--pa-ios-shadow-sm, 0 8px 28px rgba(17, 17, 17, 0.08));
}

/* —— Trust pills —— */
body.pa-contact-page .pa-contact-book__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

body.pa-contact-page .pa-contact-book__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(29, 29, 31, 0.68);
}

body.pa-contact-page .pa-contact-book__trust-item::before {
  content: "✓";
  color: var(--pa2-success, #1a6b3c);
  font-weight: 700;
  font-size: 0.75rem;
}

/* —— CTA actions — iOS liquid glass —— */
body.pa-contact-page .pa-contact-book__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

body.pa-contact-page .pa-contact-book__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 3.25rem;
  min-width: 11rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.22s ease,
    border-color 0.22s ease;
}

body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: linear-gradient(180deg, #0084ff 0%, #0071e3 52%, #0066d6 100%) !important;
  background-color: var(--pa-ios-blue, #0071e3) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.42) !important;
  box-shadow:
    0 14px 36px rgba(0, 113, 227, 0.38),
    0 0 0 1px rgba(0, 113, 227, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
}

body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.08) 42%,
    transparent 58%
  );
  pointer-events: none;
  z-index: 0;
}

body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--primary:hover,
body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--primary:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(180deg, #0091ff 0%, #0077ed 55%, #006ee0 100%) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    0 20px 48px rgba(0, 113, 227, 0.48),
    0 0 0 1px rgba(0, 113, 227, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  outline: none;
}

body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 8px 22px rgba(0, 113, 227, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--secondary {
  background: var(--pa-ios-fill, rgba(255, 255, 255, 0.62)) !important;
  backdrop-filter: var(--pa-ios-blur-light, blur(32px) saturate(190%)) !important;
  -webkit-backdrop-filter: var(--pa-ios-blur-light, blur(32px) saturate(190%)) !important;
  border: 1px solid var(--pa-ios-stroke, rgba(255, 255, 255, 0.88)) !important;
  color: var(--pa2-ink, #1d1d1f) !important;
  -webkit-text-fill-color: var(--pa2-ink, #1d1d1f) !important;
  box-shadow: var(--pa-ios-shadow-sm, 0 8px 28px rgba(17, 17, 17, 0.08)) !important;
}

body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--secondary:hover,
body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(29, 29, 31, 0.18) !important;
  background: var(--pa-ios-fill-raised, rgba(255, 255, 255, 0.74)) !important;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.1) !important;
  outline: none;
}

body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--secondary:active {
  transform: scale(0.98);
}

body.pa-contact-page .pa-contact-book__btn:focus-visible {
  outline: 2px solid var(--pa-ios-blue, #0071e3);
  outline-offset: 3px;
}

/* —— Email line —— */
body.pa-contact-page .pa-contact-book__email {
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  text-align: center;
  font-size: 0.9375rem;
  color: rgba(29, 29, 31, 0.65);
}

body.pa-contact-page .pa-contact-book__email a {
  font-weight: 600;
  color: var(--pa-ios-blue, #0071e3);
  text-decoration: none;
}

body.pa-contact-page .pa-contact-book__email a:hover,
body.pa-contact-page .pa-contact-book__email a:focus-visible {
  text-decoration: underline;
}

/* —— Ready state —— */
body.pa-contact-page .pa-contact-book.is-ready .pa-contact-book__title,
body.pa-contact-page .pa-contact-book.is-ready .pa-contact-book__lead,
body.pa-contact-page .pa-contact-book.is-inview .pa-contact-book__title,
body.pa-contact-page .pa-contact-book.is-inview .pa-contact-book__lead {
  opacity: 1 !important;
  transform: none !important;
}

/* —— Mobile —— */
@media (max-width: 640px) {
  body.pa-contact-page .pa-contact-book__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  body.pa-contact-page .pa-contact-book__btn {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  body.pa-contact-page .pa-contact-book__title {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pa-contact-page .pa-contact-book__btn {
    transition: none;
  }

  body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--primary:hover,
  body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--primary:focus-visible,
  body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--secondary:hover,
  body.pa-contact-page .pa-contact-book__btn.pa2-cta__btn--secondary:focus-visible {
    transform: none;
  }
}

/* —— Footer contact line (shared) —— */
body.pa-glass-site .pa-footer-contact a {
  font-weight: 600;
}

body.pa-glass-site .pa-footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}

body.pa-glass-site .pa-booking-help-email {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9375rem;
}

body.pa-glass-site .pa-booking-help-email a {
  font-weight: 700;
}

/**
 * Legacy quote form styles (retained for admin previews).
 */
.pa-inquire {
  max-width: 40rem;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.pa-inquire__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.55);
}

.pa-inquire__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pa-inquire__lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(29, 29, 31, 0.72);
}

.pa-inquire__lead a {
  font-weight: 600;
}

.pa-inquire__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pa-inquire__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .pa-inquire__row {
    grid-template-columns: 1fr;
  }
}

.pa-inquire__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(29, 29, 31, 0.75);
}

.pa-inquire__field input,
.pa-inquire__field select,
.pa-inquire__field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(29, 29, 31, 0.18);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.pa-inquire__field input:focus,
.pa-inquire__field select:focus,
.pa-inquire__field textarea:focus {
  outline: 2px solid #0071e3;
  outline-offset: 1px;
  border-color: #0071e3;
}

.pa-inquire__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pa-inquire__submit {
  min-height: 3rem;
  padding: 0 1.5rem;
  border: none;
  cursor: pointer;
}

.pa-inquire__status {
  margin: 0;
  font-size: 0.9375rem;
  min-height: 1.25rem;
}

.pa-inquire__status.is-success {
  color: #0a7a3d;
  font-weight: 600;
}

.pa-inquire__status.is-error {
  color: #b42318;
  font-weight: 600;
}

.pa-inquire__aside {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(29, 29, 31, 0.04);
  text-align: center;
}

.pa-inquire__mailto {
  font-size: 1.125rem;
  font-weight: 700;
}

.pa-inquire__note {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: rgba(29, 29, 31, 0.58);
}
