/* ============================================
   Pro Pigeon Removal Services
   Behavior / interactivity overrides on top of the
   Divi-replica structural CSS (base.css + theme-*.css)
   ============================================ */

/* ============================================
   Self-hosted Google fonts
   The theme CSS references cross-origin gstatic SUBSET
   TTFs whose glyph advances differ from the full fonts
   the live site serves; full canonical files loaded last
   override them so text metrics match the live layout.
   ============================================ */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/poppins-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/poppins-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/poppins-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/poppins-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: normal;
  font-display: swap;
  src: url('../assets/fonts/archivo-variable.ttf') format('truetype');
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================
   Homepage hero (static replacement for the slider)
   ============================================ */

.et_pb_section_0.et_pb_fullwidth_section {
  padding: 0 !important;
  overflow: hidden;
}

.et_pb_row_homehero {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.et_pb_section_0.et_pb_fullwidth_section {
  padding: 0 !important;
}

.et_pb_section_0.et_pb_fullwidth_section .home-hero {
  position: relative;
  width: 100%;
  height: calc(100vw / 1.6);
  overflow: hidden;
}

.home-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__crosshair {
  position: absolute;
  z-index: 1;
  left: 47.7%;
  top: 26%;
  width: 70vw;
  max-width: 1005px;
  height: auto;
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.home-hero__text {
  position: absolute;
  z-index: 2;
  left: 11.8%;
  bottom: 15.5%;
  width: 31.25%;
}

.home-hero__text img,
#main-content .home-hero__text img {
  display: block;
  width: 100%;
  height: auto;
}

.home-hero__title {
  margin: 0 0 69px;
}

.home-hero__sub {
  margin: 0;
}

@media (max-width: 700px) {
  .et_pb_section_0.et_pb_fullwidth_section .home-hero { height: calc(100vw / 0.684); }
  .home-hero__text { left: 6%; bottom: 14%; width: 58%; }
  .home-hero__title { margin-bottom: 40px; }
  .home-hero__crosshair { left: 18%; top: 14%; width: 90vw; }
}

@media (max-width: 479px) {
  .home-hero__text { width: 74%; }
}

/* ============================================
   Sticky desktop header
   (position fixed + hide on scroll down, reveal on scroll up)
   ============================================ */

/* Divi menu link spans carry a transparent 8px border on live,
   widening each item by 16px and causing the desktop nav to wrap
   to two lines; reproduce it so header height matches live. */
.et_pb_menu_0_tb_header .et-menu > li > a,
.et_pb_menu_0_tb_header .et-menu > li > a > span {
  border: 8px solid rgba(255, 255, 255, 0);
  box-sizing: border-box;
}

.et_pb_section_0_tb_header {
  transition: box-shadow 0.4s ease;
}

.et_pb_section_0_tb_header.is-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10010;
}

/* Stuck state: the theme's own .et_pb_sticky rules (added by the JS
   toggle) provide the live dark bar — 15px padding, #2f3437, live shadow.
   Live's logo-wrap never shrinks below its 300px sticky max-width (the
   210px logo is the natural clamp of 300px minus the 60px logo padding),
   so pin the wrap there; the theme CSS handles everything else. */
.et_pb_section_0_tb_header.is-fixed .et_pb_menu_0_tb_header .et_pb_menu__logo-wrap {
  min-width: 300px;
}

/* ============================================
   Reveal footer: keep main content clear of the
   fixed footer while it slides up
   ============================================ */

#main-content {
  position: relative;
  z-index: 2;
}

.dipi_revealing_footer_footer {
  position: fixed !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0;
  right: 0;
}

@media (max-width: 767px) {
  .dipi_revealing_footer_footer {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
  }
}

/* ============================================
   Lightbox (gallery)
   ============================================ */

body.dipi-lb-open { overflow: hidden; }

.dipi-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: dipiLbFade 0.25s ease;
}

@keyframes dipiLbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dipi-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.et_pb_button_module_wrapper > a {
  display: inline-block;
}

/* ============================================
   Page transition: gun-sight zoom into the middle
   (replaces the white-screen logo preloader)
   ============================================ */

/* Kill the old white preloader entirely */
.dipi_preloader_wrapper_outer {
  display: none !important;
}

.pr-transition {
  position: fixed;
  inset: 0;
  z-index: 40000000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.pr-transition.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.pr-transition__bg {
  position: absolute;
  inset: 0;
  background: #0d0f11;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pr-transition__cross {
  position: relative;
  width: 70vw;
  max-width: 1000px;
  height: auto;
  opacity: 0;
  transform: scale(0.2) rotate(-8deg);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.9, 0.25), opacity 0.15s ease;
  filter: drop-shadow(0 0 60px rgba(0, 0, 0, 0.55));
}

/* Zoom-in pose used while leaving a page */
.pr-transition.is-zooming .pr-transition__bg {
  opacity: 0.94;
}

.pr-transition.is-zooming .pr-transition__cross {
  opacity: 0.95;
  transform: scale(3.1) rotate(14deg);
}

/* Arrival pose: crosshair already large, then fade it away */
.pr-transition.is-intro .pr-transition__bg {
  opacity: 0.94;
}

.pr-transition.is-intro .pr-transition__cross {
  opacity: 0.95;
  transform: scale(3.1) rotate(14deg);
}

.pr-transition.is-out .pr-transition__bg {
  opacity: 0;
  transition: opacity 0.32s ease;
}

.pr-transition.is-out .pr-transition__cross {
  opacity: 0;
  transform: scale(4.4) rotate(18deg);
  transition: transform 0.38s ease-out, opacity 0.28s ease;
}

/* Jump to a pose instantly (used before animating in) */
.pr-transition.is-clamp .pr-transition__bg,
.pr-transition.is-clamp .pr-transition__cross {
  transition: none !important;
}

/* ============================================
   Gallery grid (static showcase of all items,
   matching the live 4-column layout)
   ============================================ */

.et_pb_gutters2 .et_pb_column_4_4 .et_pb_gallery_grid .et_pb_gallery_item {
  display: block !important;
  float: left;
  position: relative;
  width: calc(25% - 25.91px);
  margin: 0 34.547px 0 0;
  overflow: hidden;
}

.et_pb_gutters2 .et_pb_column_4_4 .et_pb_gallery_grid .et_pb_gallery_item:nth-child(n + 5) {
  margin-top: 34.547px;
}

.et_pb_gutters2 .et_pb_column_4_4 .et_pb_gallery_grid .et_pb_gallery_item:nth-child(4n) {
  margin-right: 0 !important;
}

.et_pb_gutters2 .et_pb_column_4_4 .et_pb_gallery_grid .et_pb_gallery_item:nth-child(4n + 1) {
  clear: left;
}

.et_pb_gallery_image {
  position: relative;
}

.et_pb_gallery_image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .et_pb_gutters2 .et_pb_column_4_4 .et_pb_gallery_grid .et_pb_gallery_item {
    width: calc(50% - 8.64px);
    margin: 0 17.27px 0 0;
  }
  .et_pb_gutters2 .et_pb_column_4_4 .et_pb_gallery_grid .et_pb_gallery_item:nth-child(n + 3) {
    margin-top: 17.27px;
  }
  .et_pb_gutters2 .et_pb_column_4_4 .et_pb_gallery_grid .et_pb_gallery_item:nth-child(2n) {
    margin-right: 0 !important;
  }
  .et_pb_gutters2 .et_pb_column_4_4 .et_pb_gallery_grid .et_pb_gallery_item:nth-child(2n + 1) {
    clear: left;
  }
}

@media (max-width: 479px) {
  .et_pb_gutters2 .et_pb_column_4_4 .et_pb_gallery_grid .et_pb_gallery_item,
  .et_pb_gutters2 .et_pb_column_4_4 .et_pb_gallery_grid .et_pb_gallery_item:nth-child(2n) {
    width: 100%;
    margin: 0;
    clear: both;
  }
  .et_pb_gutters2 .et_pb_column_4_4 .et_pb_gallery_grid .et_pb_gallery_item:nth-child(n + 2) {
    margin-top: 17.27px;
  }
}

/* ============================================
   Contact form success notice
   ============================================ */

.et-pb-contact-message {
  background: #d1eedd;
  border: 1px solid #7bd7a5;
  color: #124a2d;
  padding: 16px 20px;
  border-radius: 6px;
  margin: 12px 0 0;
  font-weight: 600;
  line-height: 1.6;
}

.et-pb-contact-message:empty {
  display: none;
}

/* ============================================
   Back-to-top chip
   ============================================ */

.dipi_btt_link {
  position: fixed;
  right: 5%;
  bottom: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #ff1f24;
  color: #ffffff;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.dipi_btt_link:hover,
.dipi_btt_link:focus {
  background: #2f3437;
  color: #ffffff;
}

.dipi_btt_link.is-visible { display: flex; }
