/* Urbanite Buildtech brand override — loaded after style.css.
   Re-themes the Tourm template's primary color variable to the Urbanite
   green without modifying the original template stylesheet. */
:root {
  --theme-color: #14532d;
  --primary-color: #14532d;
}

/* The template's --icon-font points at "Font Awesome 6 Pro" (a paid font
   the client's license does not cover for this rebuild). Registering that
   exact family name against the free Solid webfont lets every existing
   icon-font pseudo-element in style.css resolve correctly without editing
   style.css itself. */
@font-face {
  font-family: "Font Awesome 6 Pro";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../webfonts/fa-solid-900.woff2") format("woff2");
}

/* Hero slide backgrounds (replaces the template's per-slide inline
   background-image style, which the client asked us to avoid). */
.th-hero-bg.slide-1 { background-image: url("../img/hero-bg.jpg"); background-repeat: no-repeat; background-size: cover; background-position: center; }
.th-hero-bg.slide-2 { background-image: url("../img/project-1.jpg"); background-repeat: no-repeat; background-size: cover; background-position: center; }
.th-hero-bg.slide-3 { background-image: url("../img/project-2.jpg"); background-repeat: no-repeat; background-size: cover; background-position: center; }

/* Testimonial avatar initials (no stock photos used as if real clients).
   Sized to match .testi-card_avater's own expected image dimensions
   (72px, 40px on very small screens) so nothing looks misaligned. */
.avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--theme-color);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
@media (max-width: 575px) {
  .avatar-circle { width: 40px; height: 40px; font-size: 0.85rem; }
}

/* Why-choose icon tiles */
.why-icon {
  display: block;
  font-size: 2rem;
  color: var(--theme-color);
  margin-bottom: 1rem;
}

/* Back-to-top button */
#backToTop.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--theme-color);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}
#backToTop.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop.back-to-top:hover { background: var(--primary-color); filter: brightness(1.15); }

/* Mobile off-canvas menu / body overlay open state (toggled by script.js) */
.body-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}
.body-overlay.show { opacity: 1; visibility: visible; }

/* Logo sizing — the real Urbanite logo is a tall square lockup (icon +
   wordmark), unlike the templates own wide/short demo logos, so every
   instance needs an explicit height with auto width to avoid rendering
   at native (huge) pixel size. */
img[src$="logo/logo.png"] {
  height: 58px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

