/* Header/Footer standard styles
   Scoped to header/footer classes so it won't affect page sections.
*/

:root{
  --hf-max: 1200px;
  --hf-pad: 24px;
  --hf-border: rgba(10,20,40,.18);
}

/* =============== TOP BAR =============== */
.top-bar{
  width:100%;
  background: linear-gradient(90deg, #27b5d6 0%, #6f78c8 45%, #ff4b92 100%);
}
.top-bar .container{
  max-width: var(--hf-max);
  margin: 0 auto;
  padding: 4px var(--hf-pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.top-bar .top-left,
.top-bar .top-center,
.top-bar .top-right{
  display:flex;
  align-items:center;
  gap: 12px;
}
.top-bar .pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.10);
  color:#fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
}
.top-bar .top-msg{
  color:#fff;
  font-size: 14px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* =============== WHITE HEADER =============== */
.site-header{
  width:100%;
  background:#fff;
  border-bottom: 1px solid var(--hf-border);
}
.site-header .container{
  max-width: var(--hf-max);
  margin: 0 auto;
  padding: 12px var(--hf-pad);
}
.site-header .header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
}
.site-header .brand{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 220px;
}
.site-header .brand img{
  display:block;
  height: 48px;
  width: auto;
}
.site-header nav.nav{
  flex: 1 1 auto;
  display:flex;
  justify-content:center;
}
.site-header .nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 36px;
  list-style:none;
  padding:0;
  margin:0;
  flex-wrap: nowrap;
}
.site-header .nav-links a{
  color:#111;
  text-decoration:none;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.site-header .nav-links a:hover{
  opacity: .75;
}

.site-header .header-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 18px;
  min-width: 360px;
}
.site-header .header-contact{
  text-align:right;
  line-height: 1.2;
}
.site-header .header-contact .phone{
  color:#ff7a00;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.site-header .header-contact .email{
  color:#ff7a00;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.site-header .contact-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #31c7ff 0%, #6f63ff 45%, #ff4cc4 100%);
  color:#111;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(26, 79, 255, .18);
  text-decoration:none;
  white-space: nowrap;
}

.site-header .brand-right img{
  display:block;
  height: 44px;
  width:auto;
}

/* =============== FOOTER =============== */
.site-footer{
  width:100%;
  background: linear-gradient(180deg, rgba(2,10,24,1) 0%, rgba(1,8,20,1) 100%);
}
.site-footer .container{
  max-width: var(--hf-max);
  margin: 0 auto;
  padding: 12px var(--hf-pad);
}

/* Keep floating WhatsApp button above footer (so it never overlaps footer links) */
.whatsapp-float-icon{
  position: fixed;
  width: 38px;
  height: 38px;
  right: 22px;
  bottom: 92px;
  z-index: 9999;
}

@media (max-width: 900px){
  .whatsapp-float-icon{ right: 16px; bottom: 82px; }
}
.site-footer .footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}
.site-footer .footer-left,
.site-footer .footer-right{
  color: rgba(255,255,255,.80);
  font-size: 14px;
}
.site-footer .footer-right{
  text-align:right;
  white-space: nowrap;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1100px){
  .site-header .header-right{min-width: 300px;}
  .site-header .nav-links{gap: 22px;}
}
@media (max-width: 900px){
  .top-bar .top-msg{display:none;}
  .site-header .header-inner{flex-wrap: wrap;}
  .site-header nav.nav{order: 3; width:100%; justify-content:flex-start;}
  .site-header .nav-links{flex-wrap: wrap; justify-content:flex-start; gap: 18px;}
  .site-header .header-right{order: 2; min-width: unset; width:auto;}
}
@media (max-width: 600px){
  :root{--hf-pad: 16px;}
  .site-header .brand{min-width: unset;}
  .site-header .brand img, .site-header .brand-right img{height: 44px;}
  .site-header .contact-pill{padding: 10px 18px; font-weight: 700;}
  .site-footer .footer-inner{flex-direction: column; align-items:flex-start;}
  .site-footer .footer-right{text-align:left; white-space: normal;}
}


.whatsapp-float-icon img{
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* WhatsApp floating button: subtle pulse + hover */
.whatsapp-float-icon a{
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  overflow: hidden;
}

.whatsapp-float-icon{
  transform: translateZ(0);
  animation: waPulse 2.6s ease-in-out infinite;
}

.whatsapp-float-icon:hover{
  animation-play-state: paused;
}

.whatsapp-float-icon:hover a{
  transform: scale(1.10);
  transition: transform .18s ease;
}

.whatsapp-float-icon:hover img{
  box-shadow: 0 0 0 8px rgba(37, 211, 102, .18);
  transition: box-shadow .18s ease;
}

@keyframes waPulse{
  0%   { transform: scale(1); }
  55%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce){
  .whatsapp-float-icon{ animation: none; }
  .whatsapp-float-icon:hover a{ transform: none; }
  .whatsapp-float-icon:hover img{ box-shadow: none; }
}


/* =========================================================
   GLOBAL HEADER PARITY PATCH
   Ensure header looks identical to Home on ALL pages
   (spacing + font sizing + right-side cluster)
   ========================================================= */
.site-header{
  background:#fff !important;
  border-bottom:1px solid rgba(15,23,42,.12) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

/* Reduce nav gaps so tabs don't collide with logos / contact */
@media (min-width: 601px){
  .site-header .container.nav{gap:10px !important;}
  .site-header .nav-links{gap:16px !important;}
  .site-header .nav-links a{font-size:15px !important;}
  .site-header .nav-right{min-width:260px !important; gap:14px !important;}
  .site-header .nav-contact{font-size:13px !important;}
  .site-header .lang-switch{margin-inline-start:10px !important;}
}

/* Slight tightening for medium widths */
@media (max-width: 1100px){
  .site-header .nav-links{gap:14px !important;}
  .site-header .nav-links a{font-size:14px !important;}
  .site-header .nav-right{min-width:240px !important; gap:12px !important;}
}



/* === RTL HEADER FIX (nav overlap + LTR contact) === */
.site-header .container.nav{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;
  flex-wrap:wrap !important;
}
.site-header .nav-left,
.site-header .nav-right{flex:0 0 auto !important;}
.site-header .nav-links{
  flex:1 1 520px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  gap:14px !important;
}
.site-header .nav-links a{white-space:nowrap !important;}
.site-header .nav-contact{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:2px !important;
}
.ltr{direction:ltr !important; unicode-bidi:embed !important; display:inline-block !important;}
@media (min-width: 1100px){
  .site-header .container.nav{flex-wrap:nowrap !important;}
  .site-header .nav-links{flex-wrap:nowrap !important;}
}
@media (max-width: 900px){
  .site-header .nav-right{order:3 !important;}
  .site-header .nav-links{order:2 !important; justify-content:flex-start !important;}
  .site-header .nav-left{order:1 !important;}
}

