/* PH9 site overrides — loaded after main.css. Keep template files untouched. */

/* ---------- Page header photo (About / Contact / FAQ) ---------- */
.tj-page-header.has-photo { background-color: #01361a; }
.tj-page-header.has-photo::before { display: none; }
.page-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.page-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Brand-green wash: dark enough behind the title for AA contrast on any photo. */
.page-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 54, 26, 0.55) 0%, rgba(1, 68, 33, 0.78) 60%, rgba(1, 54, 26, 0.9) 100%);
}
.tj-page-header.has-photo .tj-page-title { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.tj-page-header.has-photo .tj-page-link { background: rgba(0, 0, 0, 0.28); }
.tj-page-header.has-photo .tj-page-link span a { color: #e6e8e4; }

/* ---------- Legal pages (Privacy / Terms / Delete account) ----------
   The template used a fixed 200px side padding, which pushed these pages
   wider than any phone screen. */
.container-padding {
  padding-left: clamp(16px, 8vw, 200px);
  padding-right: clamp(16px, 8vw, 200px);
}
@media (max-width: 767px) {
  .container-padding { padding-top: 32px; padding-bottom: 60px; }
}
.container-padding > .row { margin-left: 0; margin-right: 0; width: 100%; }
.container-padding > .row > [class*="col-"] { padding-left: 0; padding-right: 0; }

/* ---------- General safety for small screens ---------- */
img, video, iframe, svg { max-width: 100%; }
.sec-heading-inner p, .sec-heading-inner li { overflow-wrap: anywhere; }

/* ---------- Contact intro ----------
   Was a fixed 50% column with light grey text: a thin, low-contrast strip on phones. */
.contact-intro { width: 100%; max-width: 640px; }
.contact-intro p { color: #4b5563; }

/* ---------- Links inside legal/body copy ----------
   The theme colours links white; on these white pages the support email and
   "Privacy Policy" links were invisible. */
.container-padding a:not(.tj-primary-btn):not(.tj-secondary-btn) {
  color: #014421;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.container-padding a:not(.tj-primary-btn):not(.tj-secondary-btn):hover { color: #0a6b38; }

/* ---------- Home hero checklist ----------
   Three items in one row were clipped on both sides on phones. */
@media (max-width: 767px) {
  .list-row .list-style-1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px !important;
    margin: 0 auto;
  }
  .list-row .list-style-1 li { text-align: left; }
}

/* ---------- Video blocks (Home / About) ----------
   Below 1200px the template pulled the next section up under the video
   (negative margins) and used fixed heights, so the video covered text. */
@media (max-width: 1199px) {
  .tj-video-section { margin-bottom: 24px; }
}
@media (max-width: 991px) {
  .video-content-area { height: auto; aspect-ratio: 16 / 9; }
}

/* ---- Mobile menu (React-controlled; the template shipped no panel markup) ---- */
.ph9-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}
.ph9-menu-overlay.opened {
  opacity: 1;
  visibility: visible;
}
.ph9-mobile-menu {
  max-width: 100vw;
  transition-duration: 0.45s;
}
.ph9-mobile-menu:not(.opened) {
  visibility: hidden;
  transition-property: right, visibility;
}
.ph9-mobile-menu__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tj-color-common-white);
  font-size: 16px;
  text-transform: uppercase;
}
.ph9-mobile-menu__logo img {
  width: 44px;
  height: 44px;
}
.ph9-mobile-menu .hamburger_close_btn {
  background: none;
  border: 0;
  padding: 8px;
}
.ph9-mobile-menu__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ph9-mobile-menu__nav a {
  display: block;
  padding: 18px 0;
  color: var(--tj-color-common-white);
  font-size: 18px;
  font-weight: var(--tj-fw-medium);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ph9-mobile-menu__nav a:hover,
.ph9-mobile-menu__nav a[aria-current="page"] {
  color: var(--tj-color-theme-primary);
}
.ph9-mobile-menu__cta {
  margin-top: 30px;
  align-self: flex-start;
}
.ph9-mobile-menu .hamburger_bg,
.ph9-mobile-menu .hamburger_bg::before {
  background: #01361a;
}
.ph9-mobile-menu .hamburger_wrapper::before {
  background: #0a6b38;
  opacity: 0.5;
}
.ph9-mobile-menu__nav a:hover,
.ph9-mobile-menu__nav a[aria-current="page"] {
  color: #d4af37;
}
