/* ==========================================================
   GIAS – WordPress-only additions (loaded after style.css)
   ========================================================== */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keep the sticky header and the mobile menu below the admin bar for logged-in users */
.admin-bar .header-bar.is-sticky,
.admin-bar .offcanvas { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .header-bar.is-sticky,
  .admin-bar .offcanvas { top: 46px; }
}
@media (max-width: 600px) {
  /* The admin bar scrolls away on small screens */
  .admin-bar .header-bar.is-sticky { top: 0; }
}

/* Editor text is wrapped in <p> tags by WordPress */
.about-text p:last-child { margin-bottom: 0; }

/* Partner logo uploaded as an image instead of text */
.partner img { max-height: 48px; width: auto; max-width: 100%; }

/* Default pages / posts */
.hero-simple { min-height: 0; padding-bottom: 140px; }
.page-content { padding: 100px 0; }
.page-content .entry + .entry { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--line-card); }
.page-content .entry-title { font-weight: 700; font-size: 32px; letter-spacing: -1px; }
.page-content .entry-title a { color: inherit; text-decoration: none; }
.page-content .entry-content {
  font-family: var(--font-helvetica);
  font-size: 16px;
  line-height: 26px;
  color: var(--text-about);
}
.page-content .entry-content img { max-width: 100%; height: auto; }
@media (max-width: 991.98px) {
  .page-content { padding: 70px 0; }
}

/* Contact Form 7 inside the CTA form */
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form .wpcf7-not-valid-tip { font-size: 13px; margin-top: 6px; color: #ff8a8a; }
.contact-form .wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 10px 16px !important;
  border-radius: 12px;
  font-size: 14px;
  color: #fff;
}
.contact-form .wpcf7-spinner { display: block; margin: 12px auto 0; }
.contact-form input.btn-gias { border: 0; color: #fff; }

/* Contact Form 7 inside the contact page enquiry form */
.ct-form .wpcf7-form-control-wrap { display: block; }
.ct-form .wpcf7-not-valid-tip { font-size: 13px; margin-top: 6px; color: #d63638; }
.ct-form .wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 10px 16px !important;
  border-radius: 12px;
  font-size: 14px;
}
.ct-form .wpcf7-spinner { display: block; margin: 12px 0 0; }
.ct-form input.btn-gias { border: 0; color: #fff; }

/* Contact Form 7 inside the project "Schedule a site visit" box */
.pd-visit .wpcf7-form-control-wrap { display: block; }
.pd-visit .wpcf7-not-valid-tip { font-size: 13px; margin-top: 6px; color: #d63638; }
.pd-visit .wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 10px 16px !important;
  border-radius: 12px;
  font-size: 14px;
}
.pd-visit .wpcf7-spinner { display: block; margin: 12px 0 0; }
.pd-visit input.btn-gias { border: 0; color: #fff; }

/* Career form (Contact Form 7) inside a popup plugin: wrap the popup content in <div class="cr-popup"> */
.cr-popup { text-align: left; }
.cr-popup .cr-modal-title { margin-bottom: 0; }
.cr-popup .cr-modal-sub { margin-bottom: 26px; }
.cr-popup .ct-form { margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.cr-popup .ct-form .btn-gias { margin-top: 30px; }
/* Phone box: CF7 puts the error message inside the field's wrapper, so show it under the box */
.cr-phone { position: relative; overflow: visible; }
.cr-phone .wpcf7-form-control-wrap { position: static; flex: 1; min-width: 0; display: flex; align-items: center; }
.cr-phone .wpcf7-form-control-wrap .form-control { width: 100%; }
.cr-phone .wpcf7-not-valid-tip { position: absolute; left: 0; top: 100%; margin-top: 6px; white-space: nowrap; }
.cr-phone:has(.wpcf7-not-valid-tip) { margin-bottom: 26px; }
.cr-phone:has(.wpcf7-not-valid) { border-color: #d63638; }
.cr-form .wpcf7-spinner { display: block; margin: 12px 0 0; }

/* Project pages */
.pd-content > :first-child { margin-top: 0; }
.pd-content > :last-child { margin-bottom: 0; }
.pd-content p { margin: 0 0 16px; }
.pd-content img { max-width: 100%; height: auto; border-radius: 20px; }
.pd-content a { color: var(--gias-navy); text-decoration: underline; }
.prop-list + .prop-empty + .prop-strip { margin-top: 80px; }
/* Space between wide cards only after a visible card (filters hide cards with .d-none) */
.prop-list > .prop-wide + .prop-wide { margin-top: 0; }
.prop-list > .prop-wide:not(.d-none) ~ .prop-wide { margin-top: 50px; }
@media (max-width: 991.98px) {
  .prop-list + .prop-empty + .prop-strip { margin-top: 60px; }
  .prop-list > .prop-wide:not(.d-none) ~ .prop-wide { margin-top: 60px; }
}