/* Site enhancements: smooth scroll, navbar entrance, hovers, image zoom */

/* Global body paragraph text justification for straight margins */
p {
  text-align: justify;
  text-justify: inter-word;
}

.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: #2b98f0;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: transform 0.2s ease;
}
.skip-to-main:focus {
  left: 0;
  top: 0;
  outline: 2px solid #f3e53d;
  outline-offset: 2px;
}

/* Top bar: phone + social — taller, clearer type, larger icon targets */
.wrap {
  padding: 0.75rem 0 0.8rem;
}

@media (max-width: 767.98px) {
  .wrap {
    padding: 0.95rem 0 1.05rem;
  }
}

.wrap .phone {
  font-size: 14px;
  line-height: 1.55;
}

.wrap .phone a {
  font-size: 14px !important;
}

.wrap .phone .mailus {
  font-size: 13px;
}

.wrap .social-media p a {
  width: 36px;
  height: 36px;
  margin-right: 0.55rem;
}

.wrap .social-media p a span {
  font-size: 15px;
}

/* Desktop: nav in document flow below blue .wrap — no overlap; solid bar instead of transparent over top strip */
@media (min-width: 992px) {
  .ftco-navbar-light.ftco_navbar#ftco-navbar {
    position: relative !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  #ftco-navbar.ftco-navbar-light .navbar-brand {
    color: #1a1a1a !important;
  }

  #ftco-navbar.ftco-navbar-light .navbar-brand span {
    color: #2b98f0 !important;
  }

  #ftco-navbar.ftco-navbar-light .navbar-brand:hover,
  #ftco-navbar.ftco-navbar-light .navbar-brand:focus {
    color: #2b98f0 !important;
  }

  #ftco-navbar.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    color: rgba(0, 0, 0, 0.82) !important;
  }

  #ftco-navbar.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover {
    color: #2b98f0 !important;
  }

  #ftco-navbar.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:before {
    background-color: #2b98f0 !important;
  }

  #ftco-navbar.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link {
    color: #2b98f0 !important;
  }

  #ftco-navbar.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link:before {
    background-color: #2b98f0 !important;
  }

  #ftco-navbar.ftco-navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, 0.65) !important;
  }
}

html {
  scroll-behavior: smooth;
}

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

  #ftco-navbar.ftco-navbar-light {
    animation: none !important;
  }

  #ftco-loader.site-page-loader .site-page-loader__spinner {
    animation: none;
    border-top-color: #2b98f0;
  }

  #ftco-loader.site-page-loader .site-page-loader__text {
    animation: none;
    opacity: 1;
  }
}

/* Navbar slides down on first paint */
#ftco-navbar.ftco-navbar-light {
  animation: ftco-navbar-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  /* Above hero slideshow / .slider-text (also z-index: 3) so nav links stay clickable on the home page */
  z-index: 1020;
}

@keyframes ftco-navbar-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* About / business hours column: full portrait visible (.img alone uses cover and crops heads) */
.img.home-about-photo {
  position: relative;
  align-self: stretch;
  width: 100%;
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #e9ecef;
}

@media (max-width: 767.98px) {
  .img.home-about-photo {
    min-height: 340px;
  }
}

/* Buttons & primary actions */
.btn,
.navbar-toggler,
input[type="submit"],
button[type="submit"],
.btn-custom,
.icon-video {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, opacity 0.3s ease;
}

.btn:hover,
.btn:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
button[type="submit"]:hover,
button[type="submit"]:focus,
.navbar-toggler:hover,
.navbar-toggler:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.btn-custom:hover,
.btn-custom:focus {
  transform: translateY(-2px);
}

.icon-video:hover,
.icon-video:focus {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* Card-style surfaces */
.staff,
.blog-entry,
.testimony-wrap,
.wrap-appointment,
.block-18,
.ftco-section .services .d-block,
.dbox,
.contact-wrap {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.staff:hover,
.blog-entry:hover,
.testimony-wrap:hover,
.wrap-appointment:hover,
.block-18:hover,
.ftco-section .services .d-block:hover,
.dbox:hover,
.contact-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Project tiles: subtle hover only — no title overlay, tint, or expand button */
.work {
  transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
}

.work:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  filter: brightness(1.06);
}

.work:after {
  opacity: 0 !important;
  pointer-events: none !important;
}

.work:hover:after {
  opacity: 0 !important;
}

.work .desc {
  display: none !important;
}

.work .text {
  opacity: 0 !important;
}

.work:hover .text {
  opacity: 0 !important;
}

/* Invisible full-tile hit target for lightbox; no visible icon */
.work .icon.image-popup,
.work:hover .icon.image-popup {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  margin: 0 !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  opacity: 0 !important;
  z-index: 3;
}

.work .icon.image-popup span {
  visibility: hidden;
  pointer-events: none;
}

/* Portfolio / “Our Project” grid: same box size for every tile (incl. last cell) */
.ftco-section .row .col-md-6.col-lg-3 > .work.img {
  width: 100%;
  height: 270px;
  min-height: 270px;
  max-height: 270px;
  box-sizing: border-box;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat;
}

/* work-18: <img> + object-fit so the tile fills like background-cover tiles (no letterboxing) */
.ftco-section .row .col-md-6.col-lg-3 > .work.work-tile-img-cover {
  background-image: none !important;
  position: relative;
  overflow: hidden;
}

.ftco-section .row .col-md-6.col-lg-3 > .work.work-tile-img-cover .work-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.ftco-section .row .col-md-6.col-lg-3 > .work.work-tile-img-cover::after {
  z-index: 1;
}

.ftco-section .row .col-md-6.col-lg-3 > .work.work-tile-img-cover .icon,
.ftco-section .row .col-md-6.col-lg-3 > .work.work-tile-img-cover .desc {
  z-index: 2;
}

/* Background image blocks & inline images */
.staff .img-wrap {
  overflow: hidden;
  border-radius: 24px 24px 0 0; /* clip image to rounded top corners of card */
}

.staff .img {
  transition: transform 0.45s ease, opacity 0.3s ease, margin 0.3s ease;
}

.staff:hover .img,
.staff:focus-within .img {
  transform: scale(1.06);
}

.blog-entry .block-20 {
  transition: transform 0.45s ease;
}

.blog-entry:hover .block-20 {
  transform: scale(1.05);
}

.block-21 .img {
  display: block;
  transition: transform 0.45s ease;
}

.block-21:hover .img {
  transform: scale(1.06);
}

.testimony-wrap .user-img {
  transition: transform 0.4s ease;
}

.testimony-wrap:hover .user-img {
  transform: scale(1.08);
}

.hero-wrap img:not(.hero-slide__img),
.ftco-section img {
  transition: transform 0.45s ease;
  transform-origin: center;
}

.hero-wrap img:not(.hero-slide__img):hover,
.ftco-section img:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  transition: transform 0.35s ease;
}

.navbar-brand:hover img,
.navbar-brand:focus img {
  transform: scale(1.04);
}

/* Full-page loading overlay (plain CSS; replaces template default spinner) */
#ftco-loader.site-page-loader.fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f5f9fc 0%, #ffffff 48%, #eef6ff 100%);
}

#ftco-loader.site-page-loader .site-page-loader__inner {
  text-align: center;
  pointer-events: none;
}

/* When the loader is hidden it must not intercept clicks (some engines still hit-test visibility:hidden overlays). */
#ftco-loader:not(.show) {
  pointer-events: none;
}

#ftco-loader.site-page-loader .site-page-loader__spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.2rem;
  border: 4px solid rgba(43, 152, 240, 0.22);
  border-top-color: #2b98f0;
  border-radius: 50%;
  animation: site-page-loader-spin 0.8s linear infinite;
}

#ftco-loader.site-page-loader .site-page-loader__text {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #33313b;
  animation: site-page-loader-pulse 1.15s ease-in-out infinite;
}

@keyframes site-page-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes site-page-loader-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Appointment strip: solid panel so fields stay readable over any hero/parallax backdrop */
.ftco-appointment.ftco-section.ftco-no-pt.ftco-no-pb {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}

.ftco-appointment {
  background-color: #e9eef5;
  background-image: linear-gradient(180deg, #eef3f9 0%, #e4eaf3 100%);
}

.ftco-appointment > .overlay {
  display: none;
}

.ftco-appointment .container {
  position: relative;
  z-index: 1;
}

.ftco-appointment .wrap-appointment {
  margin-top: 0 !important;
  background-color: #ffffff !important;
  border-radius: 14px;
  padding: 1.25rem 1rem 1.35rem;
  box-shadow:
    0 8px 32px rgba(15, 35, 55, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .ftco-appointment .wrap-appointment {
    padding: 1.5rem 1.5rem 1.6rem;
  }
}

.ftco-appointment .appointment-form-panel .form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: #1a5f96;
}

.ftco-appointment .appointment-form-panel .form-control {
  background-color: #f7f9fc !important;
  color: rgba(0, 0, 0, 0.88) !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.85rem !important;
  height: auto !important;
  min-height: 46px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ftco-appointment .appointment-form-panel .form-control:focus {
  outline: none;
  border-color: rgba(43, 152, 240, 0.65) !important;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.85),
    0 0 0 3px rgba(43, 152, 240, 0.2);
}

.ftco-appointment .appointment-form-panel textarea.form-control {
  min-height: 92px;
  padding-top: 0.7rem !important;
  resize: vertical;
}

.ftco-appointment .appointment-form-panel .form-group.bg-primary {
  border-radius: 0 13px 13px 0;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .ftco-appointment .appointment-form-panel .form-group.bg-primary {
    border-radius: 0 0 13px 13px;
  }
}

/* Inner page heroes: anchor bg to top so portrait heads aren’t cropped (cover); fade + wave below */
.hero-wrap.hero-wrap-2 {
  overflow: hidden;
  /* center center = center the image so bg_2-banner.jpg fits nicely without crop/stretch issues */
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.hero-wrap.hero-wrap-2 .overlay {
  z-index: 0;
}

.hero-wrap.hero-wrap-2 .container {
  position: relative;
  z-index: 4;
}

.hero-wrap.hero-wrap-2::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.55) 72%,
    rgba(255, 255, 255, 0.94) 100%
  );
}

.hero-wrap.hero-wrap-2::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,48 C320,12 640,72 960,36 C1120,18 1280,28 1440,22 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
}

@media (max-width: 767.98px) {
  .hero-wrap.hero-wrap-2::after {
    height: 44px;
  }
}

/* About hero: full-bleed cover (inherits center center from .hero-wrap.hero-wrap-2). */
.hero-wrap.hero-wrap-2.about-hero-banner {
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Ensure Business Hours & Contact No floating boxes stay within the viewport bounds on smaller desktops */
@media (min-width: 1200px) {
  .time-open-wrap {
    left: max(-150px, calc(15px - (100vw - 1140px) / 2)) !important;
  }
}

/* ============================================================
   Rounded Image Card — reusable floating card style
   Apply with: class="rounded-image-card"
   ============================================================ */
.rounded-image-card {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* --- Portfolio gallery cards --- */
/* .work.img divs use background-image; apply rounded card effect directly */
.work.img {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work.img:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

/* --- Team / Staff photo cards --- */
/* .staff card gets rounded top corners on the image area */
.staff {
  border-radius: 24px;
  /* NOTE: overflow:hidden REMOVED — it was clipping the box-shadow.
     Image clipping is now handled by .staff .img-wrap below. */
  background-color: #f0f6fa;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.staff:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 60px -10px rgba(0, 0, 0, 0.3);
}

/* Force bottom label bar colors to match across all team cards (Issue 1 color bug fix) */
.staff .text {
  background: #2b98f0 !important;
}
.staff:hover .text,
.staff:focus .text,
.staff:focus-within .text {
  background: #f3e53d !important;
}

/* --- Service detail page flaticon icon wrapper --- */
.service-icon-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(43, 152, 240, 0.08);
  box-shadow: 0 10px 30px rgba(43, 152, 240, 0.18);
  margin: 0 auto 1.5rem;
}

/* ============================================================
   MOBILE RESPONSIVENESS — Full Audit Fixes (Steps 1-7)
   ============================================================ */

/* STEP 2 - Prevent horizontal scroll on any viewport */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* STEP 3 - Images: ensure every img is fluid */
img {
  max-width: 100%;
  height: auto;
}

/* STEP 5 - Buttons: minimum 44px touch target height */
.btn,
a.btn,
button[type='submit'],
input[type='submit'],
input[type='button'],
input[type='reset'] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 768px breakpoint */
@media (max-width: 767.98px) {

  .container,
  .container-fluid {
    overflow-x: hidden;
  }

  /* STEP 2 - Reduce excessive section padding on mobile (96px -> 48px) */
  .ftco-section {
    padding: 3em 0 !important;
  }

  /* STEP 2 - Shrink adjacent row paddings on mobile (48px -> 24px) */
  .row.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* STEP 2 - Reduce heading-to-content spacing on mobile (64px -> ~32px) */
  .row.pb-5.mb-3 {
    padding-bottom: 1.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* STEP 4 - Inner-page hero: shrink from fixed 500px */
  .hero-wrap.hero-wrap-2 {
    height: auto !important;
    min-height: 220px;
  }

  .hero-wrap.hero-wrap-2 .slider-text {
    height: auto !important;
    padding-top: 2.5rem !important;
    padding-bottom: 3rem !important;
  }

  .slider-text h1 {
    font-size: 28px !important;
    line-height: 1.3;
  }

  .slider-text .bread {
    font-size: 26px !important;
  }

  .slider-text p,
  .slider-text .subheading {
    font-size: 15px !important;
  }

  .heading-section h2 {
    font-size: 26px !important;
  }

  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 22px; }

  /* STEP 5 - Buttons: 48px height + spacing between stacked buttons */
  .btn {
    min-height: 48px;
    padding: 12px 20px !important;
    font-size: 12px !important;
    margin-bottom: 8px;
  }

  /* STEP 6 - Hamburger: ensure 44x44px tap target */
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    font-size: 15px;
  }

  /* STEP 7 - Contact form: restore usable padding */
  .contactForm .form-control {
    padding: 10px 14px !important;
    min-height: 48px;
    font-size: 15px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
  }

  .form-control {
    min-height: 48px;
    font-size: 15px !important;
  }

  .contactForm input[type='submit'],
  .contactForm .btn {
    width: 100%;
    min-height: 52px;
  }

  /* Reduce booking form section vertical padding */
  .ftco-appointment.ftco-section.ftco-no-pt.ftco-no-pb {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .ftco-appointment .wrap-appointment {
    padding: 1.2rem 0.9rem !important;
  }

  .ftco-counter .text .number {
    font-size: 30px !important;
  }

  .block-21 .img {
    flex-shrink: 0;
    width: 60px !important;
    height: 60px !important;
  }

  .staff .img-wrap {
    min-height: 240px;
  }

  /* Compact spacing for tip cards on blog pages */
  .tip-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px !important;
    margin-bottom: 1rem !important;
  }

  /* Compact padding & margin for blog CTA section */
  .blog-cta-section {
    padding: 24px 16px !important;
    margin-top: 1.5rem !important;
  }
}

/* 480px breakpoint (small phones) */
@media (max-width: 479.98px) {

  /* Reduce section padding further (96px -> 40px) */
  .ftco-section {
    padding: 2.5em 0 !important;
  }

  /* Shrink adjacent row paddings further (48px -> 19px) */
  .row.py-5 {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
  }

  /* STEP 2 - Shrink heading-to-content spacing further (64px -> ~24px) */
  .row.pb-5.mb-3 {
    padding-bottom: 1.2rem !important;
    margin-bottom: 0.3rem !important;
  }

  .slider-text h1,
  .slider-text .bread {
    font-size: 22px !important;
  }

  h1 { font-size: 24px; }
  h2 { font-size: 22px; }
  h3 { font-size: 19px; }

  .heading-section h2 {
    font-size: 22px !important;
  }

  /* Compact inner-hero padding */
  .hero-wrap.hero-wrap-2 .slider-text {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* 16px minimum prevents iOS Safari auto-zoom on input focus */
  .form-control,
  .contactForm .form-control {
    font-size: 16px !important;
  }

  .block-20,
  .work.img,
  .staff .img-wrap {
    min-height: 180px;
    max-width: 100%;
  }
}

/* Custom Responsive Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.video-modal-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.video-modal.is-active .video-modal-container {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.video-modal-close:hover {
  color: #2b98f0;
  transform: scale(1.1);
}

.video-modal-content {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.video-modal-content video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
}

/* Restore inherited alignment for narrow/card columns that look stretched with justify */
.our-team-intro,
.services p,
.services-2 p,
.staff p,
.testimony-wrap p,
.blog-entry p,
.footer p,
.block-23 p,
.block-23 li {
  text-align: inherit;
}

/* Desktop heading-to-content spacing override (40-60px range) */
@media (min-width: 768px) {
  .row.pb-5.mb-3 {
    padding-bottom: 2.2rem !important; /* ~35px */
    margin-bottom: 0.8rem !important;  /* ~13px */
  }
}