/* === Darnell ITS visual polish overrides ===
 * Brand-wide style tweaks applied on top of main.css.
 * Loaded last so any cascade conflicts resolve here.
 */

/* --- Homepage hero/marquee spacing --- */
.hero-1 { padding-bottom: 80px; }
.marque-section { margin-top: 0; }

/* Hero photo oversizes itself on desktop with width:135% and negative
 * margins to bleed off-canvas. On mobile the column stacks under the text
 * so those values crop the photo off-screen. Reset to a contained,
 * centered image below the lg breakpoint. */
@media (max-width: 991.98px) {
  .hero-section .hero-image { text-align: center !important; margin: 24px 0 0 !important; }
  .hero-section .hero-image img {
    width: 100% !important;
    max-width: 480px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }
}

/* "Trusted By 79..." heading — keep the decorative line off the text */
.brand-wrapper h6 { z-index: 1; }
.brand-wrapper h6 span { background: #fff; padding: 0 18px; position: relative; z-index: 2; }

/* Brand logos — consistent visual size in the slider */
.brand-wrapper .brand-image { height: 100px; display: flex; align-items: center; justify-content: center; }
.brand-wrapper .brand-image img { max-height: 70px; max-width: 85%; width: auto; height: auto; object-fit: contain; }

/* --- Service cards: brand-tinted tile with a centered glyph --- */
.service-box-items .icon {
  width: 88px; height: 88px;
  background: #EBF5FF;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: background 0.25s ease;
}
.service-box-items:hover .icon { background: #D7EBFF; }
.service-box-items .icon img { width: 44px; height: 44px; object-fit: contain; }
.service-box-items.active .icon { background: rgba(255,255,255,0.18); }
.service-box-items.active .icon img { filter: brightness(0) invert(1); }

/* --- FAQ shape on homepage (keeps title clear of diagonal panel) --- */
@media (min-width: 1200px) {
  .faq-section .faq-shape-box { max-width: 680px; }
  .faq-section .faq-content .section-title { padding-left: 30px; }
}

/* --- Tone down homepage hero ornaments --- */
.hero-section .dot-shape,
.hero-section .frame-shape,
.hero-section .line-shape,
.hero-section .text-transparent { display: none; }

/* --- Cover-photo softener (homepage about block) --- */
.about-image-1 { position: relative; }
.about-image-1::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,30,80,0) 50%, rgba(0,30,80,0.45) 100%);
  pointer-events: none;
  border-radius: inherit;
}

/* --- about.html stats cards (30+ Years / Family-Run / Trusted / Responsive) ---
 * The original FA icons rendered dark-on-dark inside .offer-items.
 * Tint the icon container so the glyph reads against the dark blue panel. */
.offer-items .icon {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.offer-items .icon i { color: #ffffff !important; }
.offer-items.active .icon { background: rgba(255,255,255,0.22); }

/* --- service-detail page lead images: replace washed-out icon-only panels with photo --- */
.service-details-image,
.service-single-image {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.service-details-image::after,
.service-single-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,30,80,0) 55%, rgba(0,30,80,0.35) 100%);
  pointer-events: none;
}
.service-details-image > img,
.service-single-image > img { display: none; }

/* --- news.html article tiles: photo background instead of gradient + icon ---
 * NOTE: photo URL is set inline as `background-image` directly (NOT via a
 * CSS custom property), because url()s inside custom properties resolve
 * relative to the consuming stylesheet, not the HTML element. */
.news-image.has-photo {
  background-color: #045cb4;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
}
.news-image.has-photo > i { display: none; }
.news-image.has-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,30,80,0) 55%, rgba(0,30,80,0.45) 100%);
  pointer-events: none;
}
.news-image.has-photo .post-date { position: relative; z-index: 1; }

/* --- news-details featured thumb: photo background instead of broken FA microsoft icon --- */
.post-featured-thumb.has-photo {
  background-size: cover !important;
  background-position: center !important;
  position: relative;
}
.post-featured-thumb.has-photo > i { display: none; }
.post-featured-thumb.has-photo::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0,30,80,0) 55%, rgba(0,30,80,0.45) 100%);
  pointer-events: none;
}

/* --- service-detail sidebar "All Services": differentiate hover from active.
 * Original CSS painted both states the same brand-blue, so on a service-detail
 * page two items could look "selected" at once (the .active page item plus
 * whatever you're hovering). Soften hover to a pale tint so the active item
 * stays the only fully-blue tile. */
.main-sidebar .single-sidebar-widget .widget-categories ul li:hover {
  background-color: #EBF5FF;
}
.main-sidebar .single-sidebar-widget .widget-categories ul li:hover a { color: var(--header); }
.main-sidebar .single-sidebar-widget .widget-categories ul li:hover i { color: var(--theme); }
.main-sidebar .single-sidebar-widget .widget-categories ul li.active:hover { background-color: var(--theme); }
.main-sidebar .single-sidebar-widget .widget-categories ul li.active:hover a { color: var(--white); }
.main-sidebar .single-sidebar-widget .widget-categories ul li.active:hover i { color: var(--white); }
