/* header.css - Water Solutions Theme */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Raleway:wght@500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Main Header Styles */
.tf-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f5fbff 100%);
  font-family: 'Inter';
  z-index: 1000;
  box-shadow: 0 8px 30px rgba(0, 100, 150, 0.1);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #4FC3F7, #0288D1, #4FC3F7);
  border-image-slice: 1;
}

/* Wave Decoration */
.tf-wave-decoration {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 48px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.tf-wave-svg {
  width: 100%;
  height: 100%;
}

.tf-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Enhanced Logo Section */
.tf-logo-wrapper {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.tf-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.tf-logo:hover {
  transform: translateY(-2px);
}

.tf-logo-icon {
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,150,255,0.3));
  flex-shrink: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.tf-logo-text {
  display: flex;
  flex-direction: column;
}

.tf-brand-name {
  font-family: 'Inter';
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #01579b, #0288d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tm {
  font-size: 1rem;
  background: linear-gradient(135deg, #ff6b4a, #ff8a6c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  vertical-align: super;
}

.tf-brand-tagline {
  font-family: 'Inter';
  font-size: 0.75rem;
  color: #546e7a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Navigation Styles */
.tf-nav {
  flex: 1;
  margin: 0 2rem;
}

.tf-nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 0.5rem;
}

.tf-nav-item {
  position: relative;
}

.tf-nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.7rem 1.2rem;
  color: #2c3e50;
  font-family: 'Inter';
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-text {
  position: relative;
  z-index: 2;
}

.nav-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, rgba(79,195,247,0.3) 0%, rgba(2,136,209,0.1) 100%);
  transition: height 0.3s ease;
  z-index: 1;
}

.tf-nav-link:hover .nav-wave,
.tf-nav-link.active .nav-wave {
  height: 100%;
}

.tf-nav-link:hover,
.tf-nav-link.active {
  color: #01579b;
}

.tf-nav-link.active {
  font-weight: 700;
}

/* Dropdown Styles */
.tf-dropdown {
  position: relative;
}

.dropdown-icon {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.tf-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.tf-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 260px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,95,140,0.15);
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(79,195,247,0.3);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.98);
  z-index: 1001;
}

.tf-dropdown:hover .tf-dropdown-menu,
.tf-dropdown.active .tf-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.tf-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  color: #2c3e50;
  text-decoration: none;
  font-family: 'Inter';
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s, border-left-color 0.3s;
  border-left: 4px solid transparent;
}

.tf-dropdown-menu a:hover {
  background: linear-gradient(90deg, #f0f9ff, transparent);
  color: #01579b;
  border-left-color: #0288d1;
  padding-left: 1.5rem;
}

.dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #4FC3F7, transparent);
  margin: 0.5rem 0;
}

/* Header Actions */
.tf-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

/* Brochure Download Button */
.tf-brochure-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, #0288d1, #01579b);
  color: #ffffff;
  text-decoration: none;
  font-family: 'Inter';
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(2,136,209,0.3);
  flex-shrink: 0;
}

.tf-brochure-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2,136,209,0.45);
  background: linear-gradient(135deg, #039be5, #0277bd);
}

.tf-brochure-text {
  white-space: nowrap;
}

/* WhatsApp Button */
.tf-whatsapp-btn {
  background: linear-gradient(135deg, #e8faf0, #c8f0d8) !important;
  border: 1px solid rgba(37,211,102,0.35) !important;
}

.tf-whatsapp-btn:hover {
  background: linear-gradient(135deg, #c8f0d8, #a8e6bc) !important;
  box-shadow: 0 4px 12px rgba(37,211,102,0.35) !important;
}

/* Ripple Button */
.tf-ripple-container {
  position: relative;
}

.tf-ripple-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 50%;
  color: #01579b;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
}

.ripple-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(2,136,209,0.4) 0%, transparent 70%);
  transform: scale(0);
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.tf-ripple-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2,136,209,0.3);
}

/* Floating Water Drops */
.tf-floating-drops {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.drop {
  position: absolute;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #4FC3F7, #0288D1);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  opacity: 0.3;
  animation: dropFall 6s infinite;
}

.drop-1 {
  left: 15%;
  top: -10px;
  animation-delay: 0s;
}

.drop-2 {
  left: 45%;
  top: -10px;
  width: 8px;
  height: 8px;
  animation-delay: 2s;
}

.drop-3 {
  left: 75%;
  top: -10px;
  animation-delay: 4s;
}

@keyframes dropFall {
  0% { transform: translateY(0) rotate(-45deg); opacity: 0.3; }
  50% { transform: translateY(100px) rotate(-45deg); opacity: 0.6; }
  100% { transform: translateY(200px) rotate(-45deg); opacity: 0; }
}

/* Mobile Trigger */
.tf-mobile-trigger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.tf-mobile-trigger span {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #01579b, #0288d1);
  border-radius: 3px;
  transition: all 0.3s;
  display: block;
}

/* ── Nav Close Button (hidden on desktop) ── */
.tf-nav-close {
  display: none;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border: 1px solid rgba(2,136,209,0.3);
  border-radius: 50%;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tf-nav-close:hover {
  background: linear-gradient(135deg, #bbdefb, #90caf9);
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(2,136,209,0.25);
}

/* =============================================
   RESPONSIVE DESIGN - ALL BREAKPOINTS
   ============================================= */

/* Large Desktop */
@media (max-width: 1200px) {
  .tf-nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-family: 'Inter';

  }

  .tf-brand-name {
    font-size: 1.5rem;
  }

  .tf-header-container {
    padding: 0.5rem 1.5rem;
  }
}

/* Tablet Landscape / Small Desktop */
@media (max-width: 1100px) {
  .tf-nav {
    margin: 0 1rem;
  }

  .tf-nav-link {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .tf-brochure-text {
    display: none;
  }

  .tf-brochure-btn {
    padding: 0.5rem 0.7rem;
  }
}

/* Tablet Portrait - Mobile Menu Starts */
@media (max-width: 992px) {
  .tf-header-container {
    padding: 0.6rem 1.5rem;
  }

  /* Full-screen mobile nav */
  .tf-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(160deg, #ffffff 0%, #e8f6ff 100%);
    margin: 0;
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    z-index: 98;
    box-shadow: 4px 0 30px rgba(0, 100, 150, 0.15);
    /* KEY FIX: make nav a flex column so close bar sits on top */
    display: flex;
    flex-direction: column;
  }

  .tf-nav.active {
    transform: translateX(0);
  }

  /* Close button row — sticks to top-right of panel */
  .tf-nav-close {
    display: flex;
    /* Removed position:absolute — now it's in normal flow at top of flex column */
    align-self: flex-end;
    margin: 1.2rem 1.2rem 0.5rem auto;
    flex-shrink: 0;
  }

  /* Menu list gets the padding below the close button */
  .tf-nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.5rem 1.5rem 2rem;
  }

  .tf-nav-item {
    width: 100%;
  }

  .tf-nav-link {
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    justify-content: space-between;
    border-radius: 12px;
    border: 1px solid rgba(79,195,247,0.15);
    background: rgba(255,255,255,0.7);
  }

  .tf-nav-link:hover,
  .tf-nav-link.active {
    background: rgba(227, 242, 253, 0.8);
    border-color: rgba(2,136,209,0.3);
  }

  /* Dropdown override for mobile */
  .tf-dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 1px solid rgba(79,195,247,0.2);
    border-radius: 10px;
    margin-top: 0.5rem;
    margin-left: 1rem;
    display: none;
    width: calc(100% - 1rem);
    background: rgba(240, 249, 255, 0.95);
    padding: 0.5rem 0;
  }

  .tf-dropdown.active .tf-dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
  }

  .tf-dropdown-menu a {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    margin: 0.15rem 0.5rem;
    border-left: none;
  }

  .tf-dropdown-menu a:hover {
    padding-left: 1.2rem;
    border-radius: 8px;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Show mobile trigger */
  .tf-mobile-trigger {
    display: flex;
  }

  .tf-brochure-text {
    display: none;
  }

  .tf-brochure-btn {
    padding: 0.5rem 0.65rem;
  }

  .tf-header-actions {
    gap: 0.75rem;
  }

  .tf-logo-icon svg {
    width: 40px;
    height: 40px;
  }
}

/* Mobile Large */
@media (max-width: 768px) {
  .tf-header-container {
    padding: 0.5rem 1rem;
  }

  .tf-logo-text img {
    height: 45px !important;
  }

  .tf-logo-icon svg {
    width: 36px;
    height: 36px;
  }

  .tf-logo {
    gap: 0.6rem;
  }

  .tf-brand-name {
    font-size: 1.3rem;
  }

  .tf-brand-tagline {
    font-size: 0.65rem;
  }

  .tf-ripple-button {
    width: 40px;
    height: 40px;
  }

  .tf-header-actions {
    gap: 0.5rem;
  }
}

/* Mobile Medium */
@media (max-width: 576px) {
  .tf-header-container {
    padding: 0.4rem 0.8rem;
  }

  .tf-brand-name {
    font-size: 1.2rem;
  }

  .tf-brand-tagline {
    font-size: 0.6rem;
  }

  .tf-logo-icon svg {
    width: 32px;
    height: 32px;
  }

  .tf-logo-text img {
    height: 38px !important;
    max-width: 140px;
  }

  .tf-brochure-btn {
    padding: 0.4rem 0.6rem;
  }

  .tf-ripple-button {
    width: 38px;
    height: 38px;
  }

  .tf-nav-close {
    margin: 1rem 1rem 0.5rem auto;
  }

  .tf-nav-menu {
    padding: 0.5rem 1rem 2rem;
  }

  .tf-nav-link {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }
}

/* Mobile Small */
@media (max-width: 375px) {
  .tf-header-container {
    padding: 0.4rem 0.6rem;
  }

  .tf-logo-text img {
    height: 32px !important;
    max-width: 110px;
  }

  .tf-logo-icon {
    display: none;
  }

  .tf-header-actions {
    gap: 0.4rem;
  }

  .tf-mobile-trigger {
    width: 26px;
    height: 18px;
  }
}

/* Logo Image Styles */
.tf-logo-text img {
  height: 60px;
  width: auto;
  max-width: 200px;
  display: block;
}

/* Body scroll lock when mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* Mobile menu overlay */
body.menu-open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 50, 80, 0.3);
  z-index: 97;
  backdrop-filter: blur(2px);
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}