/*
 * Halifax Regional Police Association — static rebuild.
 * Replaces The7 theme + Elementor / Pro Elements styles.
 * Breakpoints match the original Elementor settings:
 *   laptop <= 1300px, tablet-extra <= 1200px, tablet <= 900px, mobile <= 600px
 */

:root {
  --blue: #206acc;          /* el_color_1 */
  --blue-dark: #003459;     /* link hover */
  --blue-teal: #007ea7;     /* button hover */
  --link-blue: #5688ff;
  --bg: #080e10;            /* el_color_9 */
  --white: #fff;
  --grey: #a1a4a5;          /* el_color_7_1 */
  --grey-63: rgba(161, 164, 165, .63);
  --line: rgba(255, 255, 255, .2);
  --pad: 60px;              /* Elementor container side padding */

  /* global typography (Elementor kit) */
  --title-2: 37px;  --title-2-lh: 1.4;
  --title-4: 25px;
  --content-5: 20px;
  --sub-ls: .2em;
}
@media (max-width: 600px) {
  :root {
    --pad: 20px;
    --title-2: 26px;
    --title-4: 22px;
    --content-5: 18px;
    --sub-ls: .1em;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--grey);
  font: 400 16px/1.8 Sora, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
#page { overflow: hidden; overflow: clip; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; color: var(--white); }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; transition: color .3s; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 99999; background: #fff; color: #333; padding: 10px 15px; }
.skip-link:focus { left: 10px; top: 10px; }

/* boxed content: 1300px wide, 60px side padding (20px on phones) */
.wrap { max-width: 1300px; margin: 0 auto; padding: 0 var(--pad); box-sizing: content-box; }
.title-2 { font-size: var(--title-2); line-height: var(--title-2-lh); text-align: center; }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 99;
  display: flex; justify-content: space-between; align-items: center; gap: 25px;
  min-height: 100px; border-bottom: 1px solid var(--line); background-color: rgba(8, 14, 16, 0);
  transition: min-height .3s, background .3s;
}
.site-header.scrolled { min-height: 70px; background-color: var(--bg); }
.logo { display: block; flex: none; width: 60px; transition: width .3s; }
.logo img { display: block; width: 100%; height: auto; }
.site-header.scrolled .logo { width: 120px; }
.header-nav { display: flex; flex: 1 0 1%; justify-content: flex-end; align-self: stretch; align-items: center; gap: 15px; }
.menu { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; min-height: 100px; transition: min-height .3s; }
.site-header.scrolled .menu { min-height: 70px; }
.menu .divider { align-self: center; width: 0; height: 16px; border-left: 2px solid var(--line); }
.menu li:not(.divider) { display: flex; padding: 0 1px; }
.menu a {
  position: relative; display: flex; align-items: center; padding: 0 15px;
  color: var(--white); font: 400 16px/1.8 Sora, sans-serif;
}
.menu a::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 0; height: 3px; background: transparent;
  transition: all .35s cubic-bezier(.175, .885, .32, 1.275);
}
.menu li:not(.act) > a:hover { color: var(--blue); }
.menu li:not(.act) > a:hover::after { left: 0; width: 100%; background: var(--blue); }
.menu li.act > a { color: var(--blue); }
.menu li.act > a::after { left: 0; width: 100%; background: var(--blue); }
.header-cta { display: flex; align-self: stretch; align-items: center; }
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: 8px 18px; border-radius: 100px; background: var(--blue); color: var(--bg);
  font: 500 14px/1 Sora, sans-serif; white-space: nowrap;
  transition: background-color .3s, color .3s, box-shadow .3s, border-color .3s, transform .3s;
}
.btn-pill:hover, .btn-pill:focus-visible { background: var(--blue-teal); color: var(--bg); }

/* tablet / phone header: an empty 60px bar, exactly as on the live site */
.mobile-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 99; display: none;
  min-height: 60px; padding: 0 20px; border-bottom: 1px solid var(--line); background-color: transparent;
  transition: background .3s;
}
.mobile-header.scrolled { background-color: var(--bg); }
@media (max-width: 1200px) {
  .site-header { display: none; }
  .mobile-header { display: flex; align-items: center; }
}

/* ---------------------------------------------------------------------- */
/* Home: hero with background video                                        */
/* ---------------------------------------------------------------------- */
.hero { position: relative; z-index: 1; }
.hero-inner {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 100vh; padding: 0 var(--pad); overflow: hidden;
}
.hero-video-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content {
  position: relative; z-index: 11; display: flex; flex-direction: column; align-items: center; gap: 50px;
  width: 100%; margin: 160px 0 100px;
  transform: translateY(var(--ty, 0px)); transition: transform 1s cubic-bezier(0, .33, .07, 1.03);
}
.hero-logo { display: flex; justify-content: center; width: 18vw; max-width: 18vw; }
.hero-logo img { width: 100px; height: auto; aspect-ratio: .97; object-fit: contain; }
.hero-title {
  margin: 0; color: var(--white); text-align: center; text-transform: uppercase;
  font-size: 6vw; font-weight: 700; line-height: 1.2; text-shadow: 0 5px 40px rgba(0, 0, 0, .5);
}
.hero-words {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px 12px;
  width: 100%; max-width: 1300px; padding: 0 var(--pad); box-sizing: content-box;
}
.hero-words span {
  color: var(--white); font-size: 18px; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; text-align: center;
}
.hero-fade {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 200px; z-index: 10; pointer-events: none;
  background-image: linear-gradient(0deg, #080e10 0%, rgba(0, 0, 0, 0) 100%);
}

/* entrance animations (Elementor fadeIn / fadeInUp / fadeInDown) */
.js .anim { visibility: hidden; }
.js .anim.go { visibility: visible; animation-duration: 1.25s; animation-fill-mode: both; }
.js .anim.go.slow { animation-duration: 2s; }
.anim.go.fadeIn { animation-name: fadeIn; }
.anim.go.fadeInUp { animation-name: fadeInUp; }
.anim.go.fadeInDown { animation-name: fadeInDown; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------- */
/* Home: content                                                           */
/* ---------------------------------------------------------------------- */
.home-body { margin-top: 100px; }
.intro .wrap { display: flex; flex-direction: column; align-items: center; gap: 60px; }
.intro .title-2, .resp-head .title-2 { width: 1000px; max-width: 100%; }
.intro-text { width: 1000px; max-width: 100%; text-align: center; font-size: var(--content-5); line-height: 1.8; }
.intro-text p + p { margin-top: 15px; }
.logo-grid { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 40px 60px; width: 100%; }
.logo-grid img { width: 121px; height: auto; }
.link-space { display: block; min-height: 160px; }

.resp-head .wrap { display: flex; flex-direction: column; align-items: center; gap: 60px; }
.spacer-50 { height: 50px; width: 100%; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px 80px; }
.card { display: flex; flex-wrap: nowrap; align-self: flex-start; gap: 30px 40px; }
.card-img { flex: none; align-self: flex-start; width: 200px; max-width: 200px; aspect-ratio: 1; overflow: hidden; border-radius: 40px 0 40px 0; }
.card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-text { display: flex; flex-direction: column; justify-content: center; gap: 20px; flex: 1 1 auto; align-self: center; min-width: 0; }
.card-text h4 { font-size: var(--title-4); line-height: 1.5; }
.card-text h4 a { color: var(--white); }
.card-text h4 a:hover { color: var(--blue-dark); }
.card-text p { font-size: 16px; line-height: 1.8; }

.commemorate .wrap { display: flex; flex-direction: column; gap: 60px; }
.commemorate-text { font-size: 22px; line-height: 28.8px; text-align: center; }
.link-arrow {
  align-self: flex-end; display: inline-flex; align-items: center; color: var(--link-blue);
  font: 400 14px/1.4 Sora, sans-serif; letter-spacing: var(--sub-ls); text-transform: uppercase;
}
.link-arrow svg { width: 24px; height: 24px; margin-left: 14px; fill: currentColor; }
.link-arrow:hover { color: #e5e5e5; }
.tribute-photo { text-align: center; border-radius: 40px 0 40px 0; box-shadow: 0 0 100px 0 rgba(0, 0, 0, .5); }
.tribute-photo img { width: 60%; box-shadow: 100px 100px 100px 100px rgba(0, 0, 0, .5); }

@media (max-width: 1300px) {
  .cards { gap: 60px; }
}
@media (max-width: 1200px) {
  .hero-inner { min-height: 90vh; }
  .cards { grid-template-columns: 1fr; }
  .card { align-items: center; }
}
@media (max-width: 900px) {
  .hero-content { margin: 140px 0 20px; }
  .hero-logo { width: 28vw; max-width: 28vw; }
  .hero-title { font-size: 8.5vw; }
  .hero-words span { font-size: 16px; }
  .intro .title-2 { width: 100%; }
}
@media (max-width: 600px) {
  .hero-video-wrap { display: none; }
  .hero-content { gap: 40px; }
  .hero-logo { width: 46vw; max-width: 46vw; }
  .hero-title { line-height: 1.3; }
  .hero-words { gap: 5px 10px; }
  .hero-words span { font-size: 14px; letter-spacing: .1em; }
  .card { flex-direction: column; }
  .card-img { width: 100%; max-width: 100%; aspect-ratio: 1.5; border-radius: 20px 0 20px 0; }
  .card-text { gap: 15px; align-self: flex-start; }
  .link-arrow svg { width: 20px; height: 20px; margin-left: 12px; }
}

/* ---------------------------------------------------------------------- */
/* Tributes                                                                */
/* ---------------------------------------------------------------------- */
.tributes .wrap > .inner { display: flex; flex-direction: column; gap: 60px; padding: 0 var(--pad); }
.tributes-sub { font-size: 22px; line-height: 28.8px; text-align: center; }
.tribute { display: flex; flex-flow: row nowrap; align-items: flex-start; }
.tribute-img { flex: none; width: 260px; margin: 0 15px 0 0; }
.tribute.flip .tribute-img { order: 2; margin: 0 0 0 15px; }
.tribute-img img { display: block; width: 100%; height: auto; }
.tribute-body { flex: 1; min-width: 0; align-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tribute-body h4 { font-size: var(--title-4); line-height: 1.5; margin-bottom: 10px; }
.tribute-body .desc { margin-top: 10px; font-size: 16px; line-height: 1.8; }
@media (max-width: 900px) {
  .tribute { flex-flow: column wrap; }
  .tribute-img, .tribute.flip .tribute-img { order: 0; margin: 0 0 15px 0; align-self: flex-start; }
  .tribute-body { width: 100%; }
}
@media (max-width: 600px) {
  .tribute-img, .tribute.flip .tribute-img { width: 100%; }
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer { margin-top: 120px; padding: 100px 0 20px; border-top: 1px solid var(--line); }
.footer-bottom { margin-top: 80px; }
.footer-main { display: flex; flex-direction: row; justify-content: space-between; gap: 60px; }
.footer-contact { display: flex; flex-direction: column; justify-content: flex-start; gap: 20px; width: 40%; }
.footer-contact h4 { font-size: var(--title-4); line-height: 1; }
.footer-hours { margin-top: 40px; font-size: 14px; line-height: 1.7; }
.footer-phone { font-size: 18px; line-height: 1.5; text-align: left; }
.footer-phone a { color: var(--white); }
.footer-phone a:hover { color: var(--blue-dark); }
.btn-outline {
  align-self: flex-start; display: inline-flex; align-items: center; margin-top: 5px;
  min-height: 34px; padding: 5px 15px; border: 1px solid var(--blue); border-radius: 100px; background: transparent; color: var(--blue);
  font: 500 12px/1 Sora, sans-serif; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn-outline svg { width: 16px; height: 16px; margin-left: 8px; fill: currentColor; }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--blue); color: var(--bg); }
.footer-side { display: flex; flex-direction: row; justify-content: space-between; gap: 80px 60px; width: 60%; }
.footer-online { display: flex; flex-direction: column; justify-content: center; gap: 30px; width: 33%; }
.footer-online h6 {
  font-size: 14px; line-height: 1.4; letter-spacing: var(--sub-ls); text-transform: uppercase; text-align: left;
}
.footer-online p { font-size: 16px; line-height: 1.8; }
.footer-bottom { display: flex; flex-flow: row wrap; align-items: center; gap: 15px; min-height: 40px; }
.footer-bottom p {
  font-size: 11px; line-height: 1.2; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey-63);
}
.footer-bottom .sep { flex: none; width: 1px; height: 16px; background: var(--line); }
@media (max-width: 1200px) {
  .footer-main { justify-content: center; gap: 80px 40px; }
  .footer-contact { width: 33%; }
  .footer-side { width: 67%; justify-content: center; }
}
@media (max-width: 900px) {
  .footer-main { flex-direction: column; }
  .footer-contact { width: 100%; }
  .footer-hours, .footer-phone { text-align: center; }
  .btn-outline { align-self: center; }
  .footer-side { width: 100%; flex-direction: column; }
  .footer-online { width: 100%; align-items: center; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom .sep { display: none; }
}
@media (max-width: 600px) {
  .footer-online h6 { text-align: center; }
  .footer-bottom p { width: 100%; text-align: center; }
}

/* scroll to top */
.scroll-top {
  position: fixed; right: 20px; bottom: 20px; z-index: -1; display: flex; align-items: center; justify-content: center;
  padding: 8px; border: 1px solid var(--line); border-radius: 100%; background: var(--bg); color: var(--white);
  opacity: 0; transition: all .4s ease;
}
.scroll-top svg { width: 24px; height: 24px; fill: currentColor; }
.scroll-top.on { opacity: 1; z-index: 109; }
.scroll-top:hover { border-color: var(--blue); color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .js .anim { visibility: visible; }
  .anim.go { animation: none !important; }
  .hero-content { transition: none; }
}
