/* ============================================================
   ANIMATED SECTION HEADERS
============================================================ */
.section-header {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  color: #111;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.section-header.appear {
  opacity: 1;
  transform: translateY(0);
}

.section-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #ff4d4d, #ff9900);
  border-radius: 2px;
  transition: width 0.8s ease-out 0.2s;
}

.section-header.appear::after {
  width: 100%;
}


/* ============================================================
   SCROLL-LINKED GRADIENT DIVIDER
============================================================ */
.gradient-divider {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #111, #444, #111);
  border-radius: 3px;
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left;
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gradient-divider.appear {
  opacity: 1;
  transform: scaleX(1);
}


/* ============================================================
   PARALLAX HERO
============================================================ */
.parallax-hero {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}


/* ============================================================
   PREMIUM HEADING STYLING
============================================================ */
h1, h2, h3, h4, h5, h6 {
  color: #111 !important;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}


/* ============================================================
   BODY TEXT
============================================================ */
p, li, address {
  color: #333 !important;
  font-size: 1.05rem;
  line-height: 1.6;
}


/* ============================================================
   SERVICE IMAGE SYSTEM — FULL IMAGE FIT (NO CROPPING)
============================================================ */

.service-img {
  width: 300px;          /* reduced size */
  height: auto;          /* natural height */
  object-fit: contain;   /* show full image */
  object-position: center;
  border-radius: 6px;
  background-color: #000; /* prevents white bars */
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: block;
}

.service-img:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  transform: translateY(-3px);
}

/* Optional cropping variants (still safe) */
.service-img.crop-top { object-position: top center; }
.service-img.crop-bottom { object-position: bottom center; }


/* ============================================================
   GLOBAL PICTURE IMG RULE — SAFE VERSION
============================================================ */
#services-tabs .tab-pane picture img {
  display: block;
  background-size: contain;   /* match full-image behaviour */
  background-position: center;
  background-repeat: no-repeat;
  /* NO width:100% */
  /* NO height override */
  /* NO object-fit override */
}


/* ============================================================
   REMOVE OLD OVERRIDES
============================================================ */
#hen img { height: auto !important; }


