/* ===================================================
   Alfa Insect Mosquito Net — Custom Stylesheet
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary:        #CC1020;
  --primary-dark:   #9e0c18;
  --primary-light:  #fff0f1;
  --secondary:      #1C2B6B;
  --secondary-dark: #101a4a;
  --accent:         #E53935;
  --cta:            #FF6F00;
  --cta-hover:      #e65c00;
  --dark:           #1A1020;
  --text:           #333333;
  --text-light:     #666666;
  --white:          #ffffff;
  --light-bg:       #fef9f9;
  --border:         #dee2e6;
  --shadow:         0 4px 20px rgba(0,0,0,0.10);
  --shadow-hover:   0 8px 30px rgba(0,0,0,0.18);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;    /* prevent horizontal scroll at root level */
  max-width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;    /* contain fixed children within scroll calculation */
}

h1,h2,h3,h4,h5,h6 { font-weight: 700; }

a { text-decoration: none; transition: all .3s ease; }

section { padding: 80px 0; overflow-x: hidden; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 0 auto 1rem;
}
.divider.left { margin: 0 0 1rem; }

/* ---------- Buttons ---------- */
.btn-primary-custom {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  padding: 11px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204,16,32,.35);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 11px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--cta);
  color: var(--white);
  border: 2px solid var(--cta);
  padding: 11px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-cta:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,111,0,.35);
}

/* ---------- Navbar ---------- */
#mainNavbar {
  background: var(--white) !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 10px 0;
  transition: all .3s ease;
  z-index: 1050;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
#mainNavbar.scrolled {
  padding: 6px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: 8px 14px !important;
  position: relative;
  transition: color .3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width .3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 28px);
}

.btn-call-nav {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 50px;
  padding: 9px 20px !important;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
  transition: all .3s ease;
}
.btn-call-nav:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(204,16,32,.4);
}
.btn-call-nav::after { display: none !important; }

/* ---------- Floating Enquire Button ---------- */
.floating-enquire {
  position: fixed;
  right: -2px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  z-index: 1040;
}
.floating-enquire-btn {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  padding: 18px 12px;
  border-radius: 8px 0 0 8px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: -3px 0 15px rgba(204,16,32,.4);
  transition: all .3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.floating-enquire-btn:hover {
  background: linear-gradient(180deg, var(--primary-dark), #14502e);
  padding-right: 18px;
  box-shadow: -5px 0 20px rgba(204,16,32,.55);
}
.floating-enquire-btn i {
  writing-mode: horizontal-tb;
  transform: rotate(90deg);
  font-size: 1rem;
}

/* ---------- Hero Carousel ---------- */
#heroCarousel {
  margin-top: 76px; /* navbar height offset */
}
.carousel-slide {
  position: relative;
  height: 92vh;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(25,5,10,.86) 0%,
    rgba(28,43,107,.65) 100%);
  z-index: 1;
}
.carousel-content {
  position: relative;
  z-index: 2;
  padding: 0 15px;
  width: 100%;
  max-width: 100%;
}
#heroCarousel,
.carousel-inner,
.carousel-item {
  overflow: hidden;
  max-width: 100%;
}
.carousel-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}
.carousel-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.carousel-title span { color: #FFCDD2; }
.carousel-desc {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  max-width: min(540px, 100%);
  line-height: 1.7;
}
.carousel-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,.3);
  transition: all .3s ease;
}
.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255,255,255,.3);
}
.carousel-control-prev-icon,
.carousel-control-next-icon { width: 20px; height: 20px; }

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  margin: 0 4px;
  transition: all .3s ease;
}
.carousel-indicators button.active {
  background: var(--white);
  width: 28px;
  border-radius: 5px;
}

/* ---------- About Section ---------- */
#about { background: var(--light-bg); }

.about-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform .5s ease;
}
.about-img-wrap:hover img { transform: scale(1.04); }
.about-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-img-badge .badge-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.about-img-badge .badge-text strong {
  display: block;
  font-size: 1.3rem;
  color: var(--primary);
}
.about-img-badge .badge-text span {
  font-size: .8rem;
  color: var(--text-light);
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border-left: 4px solid var(--primary);
  margin-bottom: 12px;
  transition: all .3s ease;
}
.about-highlight:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 18px rgba(204,16,32,.15);
}
.about-highlight i {
  color: var(--primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.about-highlight p { margin: 0; font-weight: 600; font-size: .9rem; color: var(--text); }

/* ---------- Services Section ---------- */
#services { background: var(--white); }

.service-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,.08);
  transition: all .35s ease;
  height: 100%;
  background: var(--white);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.service-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.service-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-card-img-wrap img {
  transform: scale(1.08);
}
.service-card-img-wrap .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,5,10,.60), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.service-card:hover .img-overlay { opacity: 1; }
.service-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.service-card-body {
  padding: 20px;
}
.service-card-body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.service-card-body p {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}
.service-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-card-call {
  flex: 1;
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 8px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .8rem;
  transition: all .3s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-card-call:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-card-enquire {
  flex: 1;
  background: var(--cta);
  color: var(--white);
  border: 1.5px solid var(--cta);
  padding: 8px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .8rem;
  transition: all .3s ease;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-card-enquire:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,111,0,.3);
}

/* ---------- Why Choose Us ---------- */
#why-choose {
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f0fb 100%);
}

.why-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0,0,0,.07);
  border: 1px solid rgba(204,16,32,.1);
  transition: all .35s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.why-card:hover::before { transform: scaleX(1); }
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(204,16,32,.25);
}
.why-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light), #d4eaf7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  transition: all .35s ease;
}
.why-icon i {
  font-size: 1.7rem;
  color: var(--primary);
  transition: all .35s ease;
}
.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.why-card:hover .why-icon i { color: var(--white); }
.why-card h5 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}
.why-card p {
  font-size: .82rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Contact Section ---------- */
#contact { background: var(--dark); }

.contact-info-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all .3s ease;
}
.contact-info-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(204,16,32,.35);
  transform: translateX(4px);
}
.contact-info-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-card h6 {
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 4px;
}
.contact-info-card p,
.contact-info-card a {
  color: var(--white);
  font-size: .9rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
}
.contact-info-card a:hover { color: #FFCDD2; }


.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .9rem;
  font-family: 'Poppins', sans-serif;
  transition: all .3s ease;
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204,16,32,.12);
}
.form-label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--text);
  margin-bottom: 6px;
}
textarea.form-control { resize: vertical; min-height: 110px; }

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 13px 28px;
  font-weight: 700;
  font-size: .95rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(204,16,32,.35);
}
.btn-submit:hover {
  background: linear-gradient(135deg, var(--primary-dark), #7a0a13);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(204,16,32,.45);
}

.map-container {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  border: 2px solid rgba(255,255,255,.1);
}
.map-container iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ---------- Modal ---------- */
.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 16px 16px 0 0;
  padding: 20px 28px;
}
.modal-header .modal-title { font-weight: 700; font-size: 1.15rem; }
.modal-header .btn-close { filter: brightness(0) invert(1); opacity: .8; }
.modal-content { border-radius: 16px; border: none; overflow: hidden; }
.modal-body { padding: 28px; }
.modal-footer { padding: 16px 28px; border-top: 1px solid var(--border); }
.modal-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
/* ---------- Copyright Bar ---------- */
.copyright-bar {
  background: #0d1117;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.copyright-bar p {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  margin: 0;
}
.copyright-bar a {
  color: var(--primary);
  font-weight: 500;
}
.copyright-bar a:hover { color: #FFCDD2; }

/* ---------- Back to Top ---------- */
/* ---------- Floating Call Button ---------- */
#floatingCall {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(37,211,102,.5);
  transition: all .3s ease;
  animation: callPulse 2s infinite;
}
#floatingCall:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 26px rgba(37,211,102,.65);
  color: var(--white);
}
@keyframes callPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

#backToTop {
  position: fixed;
  bottom: 88px;   /* sits above the call button */
  right: 20px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .35s ease;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(204,16,32,.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
#backToTop.visible { opacity: 1; visibility: visible; }
#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(204,16,32,.5);
}

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- Utilities ---------- */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.bg-primary-custom { background: var(--primary) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  section { padding: 60px 0; overflow-x: hidden; }
  .carousel-slide { height: 70vh; min-height: 460px; }
  .navbar-collapse {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
  }
  .navbar-nav .nav-link::after { display: none; }
  .btn-call-nav { margin-top: 10px; display: inline-block; }
  #heroCarousel { margin-top: 70px; }
  .container { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 767px) {
  .section-title { font-size: 1.65rem; }
  .carousel-slide { height: 80vh; }
  .carousel-title { font-size: 1.7rem; }
  .carousel-control-prev,
  .carousel-control-next { display: none; }
  .floating-enquire-btn { font-size: .75rem; padding: 14px 10px; }
  .about-img-wrap img { height: 320px; }
  .about-img-wrap { max-width: 100%; }
  .service-card { max-width: 100%; }
  .why-card { max-width: 100%; }
  .contact-info-card { flex-wrap: wrap; }
  .map-container iframe { min-height: 300px !important; }
  .row { --bs-gutter-x: 1rem; }
}

@media (max-width: 575px) {
  .carousel-actions { flex-direction: column; align-items: center; }
  .carousel-actions .btn-primary-custom,
  .carousel-actions .btn-outline-custom { width: 100%; justify-content: center; }
  .carousel-badge { font-size: .72rem; padding: 5px 14px; }
  .about-img-badge { left: 12px; bottom: 12px; padding: 10px 14px; }
  .about-img-badge .badge-icon { width: 38px; height: 38px; font-size: 1rem; }
  .floating-enquire-btn { padding: 12px 9px; font-size: .7rem; letter-spacing: .5px; }
  .container { padding-left: 12px; padding-right: 12px; }
}
