/* ===== Brand & base ===== */
:root {
  --brand: #0d6efd;
  --brand-dark: #0a58ca;
  --navy: #0B1E3A;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 72px;
}

.bg-navy {
  background-color: var(--navy) !important;
}

.text-navy {
  color: var(--navy) !important;
}

.brand-logo {
  height: 42px;
  width: auto;
}

/* Sections */
.section-pad {
  padding: 80px 0;
}

@media (max-width: 576px) {
  .section-pad {
    padding: 64px 0;
  }
}

/* Offset anchors for fixed navbar */
#home,
#services,
#process,
#credentials,
#reviews,
#why-choose-us,
#about,
#faq,
#contact {
  scroll-margin-top: 90px;
}

/* ===== Top trust bar ===== */
.trustbar {
  background: linear-gradient(90deg, var(--navy), #102a52 60%, var(--navy));
}

/* ===== Hero ===== */
.hero {
  min-height: 70vh;
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(rgba(11, 30, 58, .65), rgba(11, 30, 58, .65)),
    url("../img/Banner0.jpeg") center/cover no-repeat;
}

.hero .badge {
  backdrop-filter: blur(4px);
}

/* ===== Services squares ===== */
.service-square {
  width: 220px !important;
  height: 220px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border: 6px solid #fff !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12) !important;
  border-radius: 8px !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
  display: block !important;
  margin: 0 auto !important;
}

a:hover .service-square {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .18) !important;
}

/* Layout for 4 items */
@media (min-width: 992px) {
  #services .col-lg-3 {
    max-width: 25% !important;
    flex: 0 0 25% !important;
  }
}

/* Responsive sizes */
@media (max-width: 991.98px) {
  .service-square {
    width: 200px !important;
    height: 200px !important;
  }
}

@media (max-width: 767.98px) {
  .service-square {
    width: 180px !important;
    height: 180px !important;
  }
}

@media (max-width: 575.98px) {
  .service-square {
    width: 150px !important;
    height: 150px !important;
  }
}

/* ===== Cards & icons ===== */
.secure-card {
  border: 1px solid rgba(11, 30, 58, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.secure-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  border-color: rgba(13, 110, 253, .35);
}

.icon-round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(13, 110, 253, .12);
  color: var(--brand);
  font-size: 1.1rem;
}

/* Bordered images */
.secure-border {
  border: 4px solid rgba(255, 255, 255, .85);
}

/* Geography badges */
.badge-area {
  background: rgba(13, 110, 253, .12);
  color: var(--brand);
  border: 1px solid rgba(13, 110, 253, .25);
}

/* Subtle image motion */
.animate-img {
  transition: transform .35s ease;
}

.animate-img:hover {
  transform: scale(1.02);
}

/* Why Choose Us list with checkmarks */
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin: .5rem 0;
}

.check-list li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: .15rem;
  color: var(--brand);
}

/* Back to top button */
.to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Navbar link active state */
.navbar .nav-link.active {
  color: #fff;
}

.navbar .nav-link {
  opacity: .85;
}

.navbar .nav-link:hover {
  opacity: 1;
}

/* Footer links */
footer a {
  opacity: .90;
}

footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* CTA button animations */
.shadow-call,
.shadow-estimate {
  transition: all .2s ease-in-out;
}

.shadow-call:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, .35);
  filter: brightness(1.05);
}

.shadow-estimate:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, .25);
  border-color: #2563eb;
  color: #2563eb;
}

/* ===== About Us Image with Gradient ===== */
#about .ratio {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

#about .ratio:hover {
  transform: translateY(-5px);
}

#about .ratio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
              rgba(11, 30, 58, 0.6) 0%, 
              rgba(11, 30, 58, 0.3) 50%, 
              rgba(11, 30, 58, 0.1) 100%);
  border-radius: 0.5rem;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#about .ratio:hover::before {
  opacity: 0.8;
}

#about .ratio img {
  position: relative;
  z-index: 0;
  transition: transform 0.5s ease;
}

#about .ratio:hover img {
  transform: scale(1.05);
}