/*
Theme Name: St. Joseph's Centre of Hope
Theme URI: https://sjcentre.ca
Author: St. Joseph's Centre of Hope
Description: Custom theme for St. Joseph's Centre of Hope for Women. Page markup and behaviour are identical to the designed site; GoHighLevel forms, the donation surveys and the booking calendar are wired through ghl.js.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
Text Domain: sjcentre
*/

/* Page styling is authored inline within each template, exactly as in the
   designed site. Only WordPress-specific corrections and cross-device
   safeguards belong here. */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  margin-top: 0 !important;
}

/* Fixed-position hero art and full-bleed sections can push the viewport wider
   than the screen on small devices; this pins it shut without touching layout. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Taps feel immediate rather than washed out on iOS. */
a,
button,
[role="button"] {
  -webkit-tap-highlight-color: rgba(15, 118, 110, 0.14);
}

/* Nothing in the design should be able to spill sideways. */
img,
svg,
iframe,
video {
  max-width: 100%;
}

/* Embedded GoHighLevel widgets size themselves; keep them from overflowing. */
iframe {
  border: 0;
}

/* The admin bar shifts everything down by its own height — the fixed nav has to
   follow it, or it sits underneath. */
body.admin-bar .navbar {
  top: 32px;
}

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

/* Respect a reader's motion preference. The reveal animations are decorative. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Comfortable minimum tap area on touch devices. */
@media (hover: none) and (pointer: coarse) {
  a,
  button,
  input[type="submit"] {
    min-height: 44px;
  }
}
