/* FONT SETUP
   Headings -> Poppins
   Body -> Inter
*/
:root {
  --c-primary: #01393e;
  --c-accent: #21a599;
  --c-dark: #292929;
  --c-bg-light: #f7f9f9;
  --c-text: #444;
  --radius-lg: 1rem;
  --transition-fast: all 0.25s ease;
}

/* Global reset tweaks */
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--c-dark);
  background-color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6,
.brand-title,
.section-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.2;
}
.section-title {
  font-size: clamp(1.6rem, 1vw + 1.2rem, 2rem);
  margin-bottom: .5rem;
}
.section-desc {
  color: var(--c-text);
  font-size: 0.95rem;
}

/* UTILITIES */
.section-padding {
  padding: 4rem 0;
}
.bg-light-wave {
  background: radial-gradient(circle at 20% 20%, rgba(33,165,153,0.08) 0%, rgba(1,57,62,0.02) 60%, transparent 70%);
}
.bg-dark-pattern {
  background-color: var(--c-primary);
  background-image:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.08) 0 20%, transparent 21%),
    radial-gradient(circle at 80% 30%, rgba(33,165,153,.15) 0 20%, transparent 21%);
  background-size: 200px 200px;
  background-repeat: repeat;
}
.text-accent {
  color: var(--c-accent) !important;
}

.btn-accent {
  background-color: var(--c-accent);
  border: 0;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  box-shadow: 0 10px 20px rgba(33,165,153,.4);
}
.btn-accent:hover {
  background-color: #169082;
  color: #fff;
}
.btn-outline-dark {
  border-radius: 999px;
  border-color: var(--c-dark);
  color: var(--c-dark);
  font-weight: 500;
}
.btn-outline-dark:hover {
  background-color: var(--c-dark);
  color: #fff;
}

.mini-title {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-primary);
  background: rgba(1,57,62,.07);
  border-left: 4px solid var(--c-accent);
  display: inline-flex;
  align-items: center;
  padding: .4rem .6rem;
  border-radius: 4px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background-color: var(--c-dark);
  font-size: 0.8rem;
  line-height: 1.4;
}
.top-bar i {
  color: var(--c-accent);
}

/* ===== NAVBAR ===== */
header .main-navbar {
  background-color: #fff;
  border-bottom: 1px solid rgba(0,0,0,.05);
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.navbar-brand {
  color: var(--c-primary) !important;
  text-decoration: none;
}
.brand-icon,
.brand-icon-footer {
  background-color: var(--c-accent);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: .75rem;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 24px rgba(33,165,153,.4);
}
.brand-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.2;
}
.brand-subtitle {
  font-size: .7rem;
  color: var(--c-dark);
  font-weight: 500;
}

.navbar-nav .nav-link {
  color: var(--c-dark);
  font-weight: 500;
  padding: .75rem 1rem;
  position: relative;
  font-family: "Poppins", sans-serif;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--c-accent);
}
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .4rem;
  height: 2px;
  border-radius: 2px;
  background-color: var(--c-accent);
}

/* Custom toggler */
/* Mobile nav toggler fix */
.custom-toggler {
  border: 2px solid var(--c-primary);
  border-radius: .5rem;
  padding: .9rem 1rem;
  position: relative;          /* NEW: contain the lines */
  background-color: transparent;
}

.custom-toggler:focus {
  box-shadow: 0 0 0 .25rem rgba(33,165,153,.3);
  outline: none;
}

.custom-toggler .navbar-toggler-icon {
  background-image: none !important;  /* kill default Bootstrap icon */
  width: 1.5rem;
  height: 1.5rem;
  position: relative;                 /* this is now the local frame */
  display: block;
}

.custom-toggler .navbar-toggler-icon,
.custom-toggler .navbar-toggler-icon::before,
.custom-toggler .navbar-toggler-icon::after {
  background-color: var(--c-primary);
  border-radius: 2px;
  height: 2px;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
}

/* middle line */
.custom-toggler .navbar-toggler-icon {
  top: calc(50% - 1px);
}

/* top line */
.custom-toggler .navbar-toggler-icon::before {
  top: -6px;
  width: 100%;
}

/* bottom line */
.custom-toggler .navbar-toggler-icon::after {
  top: 6px;
  width: 100%;
}

/* Call Now button in navbar */
.call-now-btn {
  font-size: .8rem;
  padding: .6rem .9rem;
  font-weight: 600;
}

/* ===== HERO / CAROUSEL ===== */
.hero-carousel {
  position: relative;
  max-height: 80vh;
  overflow: hidden;
}
.hero-slide {
  height: 80vh;
  min-height: 480px;
  background-position: center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: stretch;
}
.hero-slide .overlay {
  background: radial-gradient(circle at 20% 30%, rgb(49 179 167 / 50%) 0%, rgb(8 69 74 / 51%) 60%);
  mix-blend-mode: multiply;
  opacity: .75;
  position: absolute;
  inset: 0;
}
.hero-content {
  position: relative;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.hero-title {
  font-size: clamp(1.8rem, 1vw + 1.4rem, 2.4rem);
  color: #fff;
  font-weight: 600;
}
.hero-desc {
  font-size: 1rem;
  color: #e6fdfa;
  max-width: 40ch;
  margin-top: .75rem;
  line-height: 1.5;
}
.btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  border-radius: 999px;
  font-weight: 500;
  background-color: rgba(255,255,255,.1);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  color: var(--c-primary);
  background-color: #fff;
}

/* ===== ABOUT US ===== */
.about-img-wrapper {
  position: relative;
}
.about-main-img img {
  object-fit: cover;
  height: 360px;
}
.floating-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  border-radius: .75rem;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.05);
}
.icon-circle {
  background-color: var(--c-accent);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: .75rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(33,165,153,.4);
}
.badge-title {
  font-weight: 600;
  color: var(--c-primary);
  font-size: .9rem;
  font-family: "Poppins", sans-serif;
}
.badge-sub {
  font-size: .75rem;
  color: var(--c-dark);
}
.shape-ribbon {
  position: absolute;
  top: 1rem;
  right: -1rem;
  background: var(--c-accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: .5rem .75rem;
  border-radius: .5rem .5rem .5rem 0;
  box-shadow: 0 12px 24px rgba(33,165,153,.4);
  content: "SAFE INSTALL";
}

.about-stats .info-card {
  background-color: #fff;
  border-radius: .75rem;
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(1,57,62,.07);
  border: 1px solid rgba(0,0,0,.04);
  text-align: center;
}
.about-stats .info-number {
  color: var(--c-primary);
  font-size: 1.5rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}
.about-stats .info-label {
  color: var(--c-dark);
  font-size: .8rem;
  font-weight: 500;
}

/* ===== Hover Effect for About Image ===== */
.about-main-img {
  overflow: hidden;
}

.about-main-img img {
  transition: transform 0.6s ease, filter 0.6s ease;
}

.about-main-img:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}



/* ===== SERVICES ===== */
/* ===== SERVICE CARD (image + icon + text) ===== */

.service-card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 24px 50px rgba(1,57,62,.07);
  position: relative;
  transition: var(--transition-fast);
  height: 100%;
  overflow: hidden;                /* makes rounded top on the image */
  display: flex;
  flex-direction: column;
  /* remove padding here; we'll add padding only to the body */
  padding: 0;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(1,57,62,.12);
}

/* top image wrapper */
.service-img-wrap {
  position: relative;
  background-color: #f5f7f7;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;               /* fills the box like a banner */
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.service-card:hover .service-img {
  transform: scale(1.05);
  filter: brightness(.9);
}

/* small tag badge on the image */
.service-tag {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background-color: var(--c-accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1;
  padding: .4rem .6rem;
  border-radius: .5rem;
  box-shadow: 0 16px 30px rgba(33,165,153,.45);
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* body content under the image */
.service-content {
  padding: 1.5rem 1.25rem 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  background: var(--c-primary);
  color: #fff;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  border-radius: .75rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 20px 40px rgba(1,57,62,.5);
}

.service-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: .5rem;
  font-family: "Poppins", sans-serif;
  line-height: 1.4;
}

.service-text {
  font-size: .9rem;
  color: var(--c-text);
  line-height: 1.5;
  margin: 0;
}

/* mobile tweaks */
@media (max-width: 575.98px) {
  .service-img {
    height: 180px;
  }

  .service-content {
    padding: 1.25rem 1rem 1.5rem;
  }

  .service-title {
    font-size: .95rem;
  }

  .service-text {
    font-size: .85rem;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    border-radius: .6rem;
    margin-bottom: .75rem;
  }
}


/* ===== WHY US ===== */
.why-box {
  background-color: rgba(255,255,255,.05);
  border-radius: .75rem;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  height: 100%;
}
.why-icon {
  width: 40px;
  height: 40px;
  border-radius: .6rem;
  background-color: var(--c-accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  margin-bottom: .75rem;
  box-shadow: 0 20px 40px rgba(33,165,153,.4);
}
.why-title {
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
}
.why-text {
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  line-height: 1.4;
}

/* ===== ACHIEVEMENTS ===== */
.counter-card .counter-number {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--c-primary);
  font-size: 1.5rem;
}
.counter-card .counter-label {
  color: var(--c-dark);
  font-size: .8rem;
  font-weight: 500;
}

/* ===== GALLERY ===== */
.gallery-grid .gallery-item {
  position: relative;
  border-radius: .75rem;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
}
.gallery-grid .gallery-item img {
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: var(--transition-fast);
}
.gallery-grid .gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,.6) 100%);
  opacity: 0;
  transition: var(--transition-fast);
}
.gallery-grid .gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(.8);
}
.gallery-grid .gallery-item:hover::after {
  opacity: 1;
}

/* ===== CONTACT ===== */
.contact-section {
  background: radial-gradient(circle at 20% 20%, rgba(33,165,153,0.08) 0%, rgba(1,57,62,0.02) 60%, transparent 70%);
}
.contact-card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.05);
  padding: 1.5rem;
  box-shadow: 0 30px 60px rgba(1,57,62,.07);
}
.contact-icon {
  background-color: var(--c-primary);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: .75rem;
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 20px 40px rgba(1,57,62,.4);
}
.contact-label {
  font-size: .8rem;
  color: var(--c-dark);
  font-weight: 500;
}
.contact-value {
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: none;
}
.contact-value:hover {
  color: var(--c-accent);
}
.contact-form-card {
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.05);
}
.contact-form-card .form-label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--c-dark);
}
.contact-form-card .form-control,
.contact-form-card .form-select {
  border-radius: .75rem;
  border-color: rgba(0,0,0,.1);
  padding: .75rem 1rem;
  font-size: .9rem;
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 .25rem rgba(33,165,153,.25);
}

/* ===== MAP ===== */
.map-wrapper .map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== FOOTER ===== */
.footer-area {
  background-color: var(--c-dark);
  background-image:
    radial-gradient(circle at 10% 10%, rgba(33,165,153,.2) 0 15%, rgba(0,0,0,0) 16%),
    radial-gradient(circle at 80% 30%, rgba(1,57,62,.8) 0 15%, rgba(0,0,0,0) 16%);
  background-size: 200px 200px;
}
.footer-top {
  padding-bottom: 2rem;
}
.footer-heading {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: .5rem;
}
.footer-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .9rem;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--c-accent);
}
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
}
.footer-contact a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
}
.footer-contact a:hover {
  color: var(--c-accent);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 20px 40px rgba(1,57,62,.5) !important;
  display: none; /* default hidden, JS will show */
  z-index: 999;
  border: 0;
  color: #fff;
}

/* ===== ANIMATIONS / EFFECTS ===== */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s cubic-bezier(.16,1,.3,1);
}
[data-animate="fade-up"].animate-active {
  opacity: 1;
  transform: translateY(0);
}

/* Counter pop animation */
.counter-number {
  transition: color .3s ease;
}
.counter-card:hover .counter-number {
  color: var(--c-accent);
}

/* Responsive Tweaks */
@media (max-width: 767.98px) {
  .hero-slide {
    height: 70vh;
    min-height: 420px;
  }
  .top-bar .top-location {
    font-size: 0.7rem;
  }
  .top-bar .top-info span {
    font-size: 0.7rem;
  }
}






/* === EXTRA RESPONSIVE IMPROVEMENTS === */
@media (max-width: 575.98px) {
  /* Section vertical spacing tighter on phones */
  .section-padding {
    padding: 3rem 0;
  }

  /* Top bar stack is already column on XS but let's make text wrap nicer */
  .top-bar {
    text-align: center;
    padding-left: .75rem;
    padding-right: .75rem;
  }

  /* Navbar brand sizing for small screens */
  .brand-title {
    font-size: 0.9rem;
  }
  .brand-subtitle {
    font-size: 0.65rem;
  }
  .brand-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  /* Hero section height on very small phones so it doesn't feel too tall */
  .hero-slide {
    height: 65vh;
    min-height: 380px;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .hero-desc {
    font-size: 0.9rem;
  }
  .btn.btn-lg {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }

  /* About section visuals */
  .about-main-img img {
    height: 260px;
  }
  .floating-badge {
    bottom: .5rem;
    left: .5rem;
    transform: scale(.9);
  }

  /* Service cards: give more spacing between them on mobile */
  .service-card {
    padding: 1.5rem 1.25rem;
  }
  .service-title {
    font-size: 0.95rem;
  }
  .service-text {
    font-size: 0.85rem;
  }

  /* Why Choose Us boxes: make text a bit larger for readability on dark bg */
  .why-text {
    font-size: .85rem;
    line-height: 1.5;
  }

  /* Counters: make grid feel balanced 2 per row */
  #achievements .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .counter-number {
    font-size: 1.3rem;
  }
  .counter-label {
    font-size: .75rem;
  }

  /* Contact section cards/form spacing */
  .contact-card {
    padding: 1.25rem;
  }
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: .9rem;
  }

  .contact-form-card form {
    padding: 1.5rem !important;
  }
  .contact-form-card .form-control,
  .contact-form-card .form-select {
    font-size: .9rem;
    padding: .7rem .9rem;
  }

  /* Footer: stack spacing nicer */
  .footer-top {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
  }
  .footer-heading {
    margin-top: 1rem;
  }

  /* Back to top button: bring it up so it doesn't overlap WhatsApp chat bubbles if you add one later */
  #backToTop {
    right: 0.75rem;
    bottom: 4.5rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Small tablets (portrait tablet / big phones landscape) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .section-padding {
    padding: 3.5rem 0;
  }
  .hero-slide {
    height: 70vh;
    min-height: 420px;
  }
  .floating-badge {
    transform: scale(.95);
  }
}






/* ===== Floating WhatsApp & Call Buttons ===== */
.floating-buttons {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
}

/* Button Base */
.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* Glowing Animated Background */
.float-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.float-btn:hover::before {
  opacity: 1;
}

/* WhatsApp Button */
.float-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #21a599);
  box-shadow: 0 0 20px rgba(33,165,153,0.6);
  animation: glowPulse 2s infinite ease-in-out;
}

/* Call Button */
.float-btn.call {
  background: linear-gradient(135deg, #01393e, #045d63);
  box-shadow: 0 0 20px rgba(1,57,62,0.5);
  animation: glowPulseDark 2.2s infinite ease-in-out;
}

/* Hover effects */
.float-btn:hover {
  transform: translateY(-4px) scale(1.1);
  color: #fff;
}

/* Glow Animations */
@keyframes glowPulse {
  0% { box-shadow: 0 0 8px rgba(33,165,153,0.4), 0 0 20px rgba(33,165,153,0.6); }
  50% { box-shadow: 0 0 20px rgba(33,165,153,0.8), 0 0 35px rgba(33,165,153,0.9); }
  100% { box-shadow: 0 0 8px rgba(33,165,153,0.4), 0 0 20px rgba(33,165,153,0.6); }
}

@keyframes glowPulseDark {
  0% { box-shadow: 0 0 8px rgba(1,57,62,0.4), 0 0 20px rgba(1,57,62,0.6); }
  50% { box-shadow: 0 0 20px rgba(1,57,62,0.8), 0 0 35px rgba(1,57,62,0.9); }
  100% { box-shadow: 0 0 8px rgba(1,57,62,0.4), 0 0 20px rgba(1,57,62,0.6); }
}

/* Responsive */
@media (max-width: 575.98px) {
  .floating-buttons {
    bottom: 8rem;
    /* right: 1rem; */
    gap: 0.75rem;
  }
  .float-btn {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
}



