/* -------------------- HEADER -------------------- */
/* =========================
   Header — mobile-first
   Base (mobile) styles first,
   desktop overrides with min-width
   ========================= */

.header {
  background: #fff;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

/* scrolled / shrink states (works same) */
.header.scrolled {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.header.shrink .header-inner { padding: 5px 12px; }
.header.shrink .logo { height: 30px; width: 30px; }

/* --- Mobile (base) layout --- */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: black;
  margin: 0 auto; /* centers logo on mobile */
}
.logo { height: 40px; width: 40px; border-radius: 50%; }
.logo img { height: 40px; width: auto; }
.brand-name { display: none; font-weight: 600; font-size: 1rem; }

.nav-links { display: none; } /* hidden on mobile */
.nav-links a { color: #333; font-weight: 500; text-decoration: none; }

.hamburger {
  display: flex;           /* shown on mobile by default */
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span { width: 24px; height: 3px; background: #333; border-radius: 2px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 15px 20px;
  border-top: 1px solid #ccc;
}
.mobile-menu a { padding: 10px 0; color: #333; text-decoration: none; font-weight: 500; }
.mobile-menu.active { display: flex; }

.header-actions { display: flex; gap: 25px; align-items: center; }
.header-actions svg {
  width: 22px;
  height: 22px;
  fill: #007bff;
  transition: fill 0.2s;
}
.header-actions a {
  display: flex;          /* make each button a flexbox */
  align-items: center;    /* center the SVG vertically */
  justify-content: center;
  width: 40px;            /* equal hit area */
  height: 40px;
  border-radius: 50%;     /* circular area */
}

.header-actions a:hover svg { fill: #0056b3; }
/* Desktop search in header */
.search-desktop {
  display: none; /* hidden by default (mobile-first) */
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 25px;
  overflow: hidden;
  height: 36px;
}

.search-desktop input {
  border: none;
  padding: 0 10px;
  font-size: 14px;
  height: 100%;
  outline: none;
  flex: 1;
  min-width: 150px;
}

.search-desktop button {
  background: #007bff;
  border: none;
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-desktop button svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.search-desktop button:hover {
  background: #0056b3;
}

/* Show only on desktop */
@media (min-width: 769px) {
  .search-desktop { display: flex; }
  .floating-search { display: none; }
}

/* example: show call button on mobile by default */
.call-btn-mobile { display: block; }

/* --- Desktop / larger screens --- */
@media (min-width: 769px) {
  .logo-wrap { margin: 0; }          /* left aligned on desktop */
  .hamburger { display: none; }      /* hide hamburger */
  .nav-links { display: flex; gap: 20px; } /* show desktop nav */
  .brand-name { display: inline-block; }  /* show brand text */
  .mobile-menu { display: none !important; } /* ensure mobile menu hidden */
  .call-btn-mobile { display: none; }   /* hide mobile-only call button */
}

/* -------------------- FLOATING BUTTONS -------------------- */
.whatsapp-float,
.call-float,
.social-float {
  position: fixed;
  width: 55px; height: 55px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1001; cursor: pointer;
}

.whatsapp-float { bottom: 20px; right: 20px; background: #25d366; }
.whatsapp-float:hover { transform: scale(1.1); background: #1ebe5d; }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

.call-float { bottom: 20px; left: 20px; background: #007bff; }
.call-float:hover { transform: scale(1.1); background: #0056b3; }
.call-float svg { width: 26px; height: 26px; fill: #fff; }

.social-float {
  bottom: 90px; left: 20px;
  width: 55px; height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff416c, #ff4b2b); /* eye-catching gradient */
  animation: bubble 3s infinite;
}

.social-float svg { width: 28px; height: 28px; fill: #fff; }

@keyframes bubble {
  0%,100% { transform: scale(1); }
  30% { transform: scale(1.15); }
  60% { transform: scale(0.9); }
}

/* -------------------- STICKY SOCIAL BAR -------------------- */
.sticky-social {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: fixed;
  bottom: 150px; left: 20px;
  background: #fff; padding: 12px;
  border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  flex-direction: column; gap: 10px;
}
.sticky-social.show {
  display: flex !important;
  opacity: 1; transform: translateY(0);
}
.sticky-social .ss-link {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: #f1f1f1; border-radius: 50%;
  text-decoration: none; font-size: 14px;
}
.sticky-social .ss-link:hover { background: #e0e0e0; transform: scale(1.1); }

.close-social {
  position: absolute;
  top: -10px; right: -10px;
  width: 28px; height: 28px;
  border-radius: 50%; border: none;
  background: #333; color: #fff;
  font-size: 18px; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 2001;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 90px;   /* above WhatsApp button */
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #007bff; /* Brand blue */
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  border: none;
  display: none;  /* hidden by default */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s, background 0.3s;
  z-index: 1002;
}

.back-to-top:hover {
  transform: scale(1.1);
  background: #0056b3; /* Darker blue on hover */
}

.floating-search {
  position: fixed;
  bottom: 20px;
  left: 80px;   /* reduce gap to allow more space */
  right: 80px;  /* reduce gap */
  display: flex;
  align-items: center;
  height: 40px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 1001;
  min-width: 180px; /* ✅ prevent collapsing */
}

.floating-search input {
  flex: 1;
  border: none;
  padding: 0 10px;
  font-size: 14px;
  height: 100%;
  min-width: 0; /* ✅ allow flex shrink without breaking */
  outline: none;
}

.floating-search button {
  background: #007bff;
  border: none;
  width: 42px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0; /* ✅ button never shrinks */
}

.floating-search button svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}



.floating-search button:hover {
  background: #0056b3;
}

.floating-search button:hover svg {
  transform: scale(1.2); /* icon grows a bit */
  transition: transform 0.2s ease; 
}

/* Hide floating search on desktop */
@media (min-width: 769px) {
  .floating-search {
    display: none;
  }
}

