/**
 * WordPress compatibility layer for Prospects.
 * Loaded AFTER global-styles so these unlayered rules beat Tailwind @layer utilities
 * that WP heading/link element styles otherwise override.
 */

/* ── Base reset against block-theme chrome ───────────────── */
.skip-link.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link.screen-reader-text:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: #212A0B;
  color: #fff;
  border-radius: 999px;
  clip: auto;
}

#main-content {
  outline: none;
}

.admin-bar #navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar #navbar {
    top: 46px;
  }
}

.wp-site-blocks,
.wp-site-blocks > * {
  margin-block: 0;
  padding: 0;
}

body {
  font-size: 16px;
  line-height: 1.6;
  color: #4a4a4a;
  background-color: #f9f9ef;
}

/* Neutralize WP element colors so Tailwind utilities can win */
.wp-site-blocks :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}

.wp-site-blocks a:where(:not(.wp-element-button):not(.btn-primary):not(.btn-dark):not(.btn-nav):not(.btn-outline):not(.btn-outline-light):not(.cta-journey__btn):not(.social-btn)) {
  color: inherit;
  text-decoration: inherit;
}

/* ── Re-declare critical Tailwind color utilities (unlayered) ─ */
.text-white { color: #fff !important; }
.text-white\/20 { color: rgba(255, 255, 255, 0.2) !important; }
.text-white\/40 { color: rgba(255, 255, 255, 0.4) !important; }
.text-white\/50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-white\/60 { color: rgba(255, 255, 255, 0.6) !important; }
.text-white\/70 { color: rgba(255, 255, 255, 0.7) !important; }
.text-white\/80 { color: rgba(255, 255, 255, 0.8) !important; }

.text-brand-dark { color: #212A0B !important; }
.text-brand-green { color: #8DC63F !important; }

.bg-brand-dark { background-color: #212A0B !important; }
.bg-brand-green { background-color: #8DC63F !important; }
.bg-white { background-color: #fff !important; }

.hover\:text-brand-green:hover { color: #8DC63F !important; }
.hover\:text-white:hover { color: #fff !important; }

.border-white\/10 { border-color: rgba(255, 255, 255, 0.1) !important; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2) !important; }

/* ── Buttons (beat WP + Tailwind preflight) ──────────────── */
button.btn-primary,
a.btn-primary,
.btn-primary {
  background: linear-gradient(135deg, #8DC63F, #6aad1e) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border: 0 !important;
  border-radius: 50px !important;
  padding: 14px 36px;
  display: inline-block;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(141, 198, 63, 0.4);
  cursor: pointer;
}

button.btn-primary:hover,
a.btn-primary:hover,
.btn-primary:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(141, 198, 63, 0.5);
}

button.btn-dark,
a.btn-dark,
.btn-dark,
button.btn-nav,
a.btn-nav,
.btn-nav {
  background: #c9d6a3 !important;
  color: #212A0B !important;
  font-weight: 600 !important;
  border: 0 !important;
  border-radius: 50px !important;
  padding: 12px 26px;
  display: inline-block;
  text-decoration: none !important;
  cursor: pointer;
}

button.btn-dark:hover,
a.btn-dark:hover,
.btn-dark:hover,
button.btn-nav:hover,
a.btn-nav:hover,
.btn-nav:hover {
  background: #8DC63F !important;
  color: #fff !important;
}

#home .btn-primary,
#home .btn-dark {
  padding: 10px 22px;
  font-size: 0.8rem;
}

.cta-journey__btn--primary {
  background: #8DC63F !important;
  color: #fff !important;
}

.cta-journey__btn--primary:hover {
  background: #78ad2f !important;
  color: #fff !important;
}

.cta-journey__btn--outline {
  background: #f9f9ef !important;
  color: #212A0B !important;
  border: 1.5px solid #212A0B !important;
}

/* ── Footer ──────────────────────────────────────────────── */
footer,
.wp-site-blocks footer,
footer.pt-12 {
  background: #333333 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-top: 4px solid #484747;
}

footer :is(h1, h2, h3, h4, h5, h6) {
  color: #fff !important;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
}

footer a:hover {
  color: #8DC63F !important;
}

footer .text-white { color: #fff !important; }
footer .text-white\/20 { color: rgba(255, 255, 255, 0.2) !important; }
footer .text-white\/40 { color: rgba(255, 255, 255, 0.4) !important; }
footer .text-white\/50 { color: rgba(255, 255, 255, 0.5) !important; }
footer .text-white\/60 { color: rgba(255, 255, 255, 0.6) !important; }
footer .text-white\/70 { color: rgba(255, 255, 255, 0.7) !important; }

footer .social-btn {
  color: #333333 !important;
  background: #fff !important;
}

footer .social-btn:hover {
  background: #8DC63F !important;
  color: #fff !important;
}

/* Service card CTAs that use inline dark bg + text-white */
a.text-white[style*="background"],
a.inline-flex.text-white {
  color: #fff !important;
}

/* Destination labels */
.destination-label .text-white,
.destination-card .text-white {
  color: #fff !important;
}

/* ── Consultation modal ──────────────────────────────────── */
#counselling-modal .modal-card {
  background: #fff;
}

#counselling-modal #modal-submit-btn,
#counselling-modal button[type="submit"] {
  background: #8DC63F !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

/* ── Fluent Forms – Prospects look ───────────────────────── */
.prospects-ff,
.ff-el-group,
.fluentform {
  font-family: "Poppins", sans-serif;
}

.prospects-ff .ff-el-input--label label,
.fluentform .ff-el-input--label label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  margin-bottom: 0.35rem;
}

.prospects-ff .ff-el-form-control,
.prospects-ff select.ff-el-form-control,
.prospects-ff textarea.ff-el-form-control,
.fluentform .ff-el-form-control,
.fluentform select.ff-el-form-control,
.fluentform textarea.ff-el-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #1f2937;
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: none;
}

.prospects-ff .ff-el-form-control:focus,
.fluentform .ff-el-form-control:focus {
  outline: none;
  border-color: #8DC63F;
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.2);
  background: #fff;
}

.prospects-ff .ff-btn-submit,
.fluentform .ff-btn-submit,
.ff-btn-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.5rem !important;
  border-radius: 999px !important;
  background: #8DC63F !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border: 0 !important;
  box-shadow: 0 8px 20px rgba(141, 198, 63, 0.3);
  cursor: pointer;
}

.prospects-ff .ff-btn-submit:hover,
.fluentform .ff-btn-submit:hover,
.ff-btn-submit:hover {
  background: #78ad2f !important;
  color: #fff !important;
}

#counselling-modal .fluentform .ff-btn-submit {
  margin-top: 0.5rem;
}

.prospects-section img {
  max-width: 100%;
  height: auto;
}

#reviews,
.elfsight-slot,
[class^="elfsight-app-"] {
  overflow-x: clip;
  max-width: 100%;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Fixed header clearance for in-page anchors */
html {
  scroll-padding-top: 96px;
}
