
/* =========================================================
   V14 — FLOATING SOCIALS + MOBILE RESPONSIVE SYSTEM
   ========================================================= */

:root{
  --social-gold:#d8a03a;
  --social-dark:rgba(8,8,8,.90);
}

/* ---------- FLOATING SOCIAL LOGOS ---------- */
.floating-socials,
.floating-contact-actions{
  position:fixed;
  z-index:900;
  display:flex;
  align-items:center;
  gap:9px;
  pointer-events:auto;
}

.floating-socials{
  left:22px;
  bottom:22px;
  direction:ltr;
  padding:7px;
  border:1px solid rgba(216,160,58,.18);
  border-radius:999px;
  background:rgba(7,7,7,.56);
  backdrop-filter:blur(14px);
  box-shadow:0 10px 35px rgba(0,0,0,.24);
}

.floating-contact-actions{
  right:22px;
  bottom:22px;
  flex-direction:column;
}

.social-logo,
.contact-float-btn,
.footer-social-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:50%;
  transition:
    transform .28s ease,
    background .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    opacity .28s ease;
}

.social-logo{
  width:40px;
  height:40px;
  border:1px solid rgba(255,255,255,.11);
  background:#141414;
}

.social-logo img,
.footer-social-logo img,
.contact-float-btn img{
  width:20px;
  height:20px;
  object-fit:contain;
  filter:brightness(0) invert(1);
  transition:transform .28s ease, filter .28s ease;
}

.social-logo:hover,
.footer-social-logo:hover{
  transform:translateY(-3px) scale(1.04);
  background:#b8832e;
  border-color:#d8a03a;
  box-shadow:0 10px 26px rgba(184,131,46,.24);
}

.social-logo:hover img,
.footer-social-logo:hover img{
  filter:brightness(0);
  transform:scale(1.08);
}

.social-unset{
  cursor:default;
}

.contact-float-btn{
  width:52px;
  height:52px;
  color:#fff;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(10,10,10,.90);
  backdrop-filter:blur(12px);
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}

.contact-float-btn svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.contact-float-btn.whatsapp{
  background:#1fba63;
  border-color:#4adc83;
}

.contact-float-btn.whatsapp img{
  width:26px;
  height:26px;
  filter:brightness(0) invert(1);
}

.contact-float-btn:hover{
  transform:translateY(-3px) scale(1.04);
  border-color:#d8a03a;
  box-shadow:0 12px 30px rgba(184,131,46,.22);
}

.footer-brand-column{
  min-width:0;
}

/* ---------- FOOTER SOCIAL LOGOS ---------- */
.footer-social-block{
  margin-top:22px;
}

.footer-social-title{
  display:block;
  margin-bottom:12px;
  color:#817b73;
  font-size:9px;
  letter-spacing:2px;
}

.footer-social-row{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.footer-social-logo{
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.11);
  background:#101010;
}

.footer-social-logo img{
  width:19px;
  height:19px;
}

/* ---------- MOBILE MENU ---------- */
.header-tools{
  display:flex;
  align-items:center;
  gap:10px;
}

.mobile-menu-toggle{
  display:none;
  width:42px;
  height:42px;
  padding:0;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.17);
  background:rgba(8,8,8,.52);
  color:#fff;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  cursor:pointer;
}

.mobile-menu-toggle span{
  width:17px;
  height:1.5px;
  background:currentColor;
  transition:transform .3s ease, opacity .3s ease;
}

.mobile-menu-panel{
  display:none;
}

body.mobile-menu-open{
  overflow:hidden;
}

body.mobile-menu-open .mobile-menu-toggle span:nth-child(1){
  transform:translateY(5.5px) rotate(45deg);
}
body.mobile-menu-open .mobile-menu-toggle span:nth-child(2){
  opacity:0;
}
body.mobile-menu-open .mobile-menu-toggle span:nth-child(3){
  transform:translateY(-5.5px) rotate(-45deg);
}

/* ---------- TABLET ---------- */
@media(max-width:1000px){
  header{
    padding-left:3vw;
    padding-right:3vw;
  }

  nav{
    gap:16px;
    font-size:11px;
  }

  .project-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .contact-title{
    font-size:clamp(48px,7.5vw,78px) !important;
  }
}

/* ---------- MOBILE ---------- */
@media(max-width:780px){
  body{
    padding-bottom:78px;
  }

  header{
    height:72px;
    padding:0 16px;
    background:linear-gradient(to bottom,rgba(0,0,0,.92),rgba(0,0,0,.55),transparent);
  }

  header > nav{
    display:none !important;
  }

  .brand{
    gap:8px;
  }

  .brand img{
    width:42px !important;
    height:42px !important;
    border-radius:9px !important;
  }

  .brand > div{
    font-size:12px;
    line-height:1.25;
  }

  .brand small{
    font-size:6.5px !important;
    letter-spacing:.6px !important;
  }

  .lang{
    padding:7px 9px !important;
    font-size:8px !important;
  }

  .mobile-menu-toggle{
    display:flex;
  }

  .mobile-menu-panel{
    display:block;
    position:fixed;
    z-index:1500;
    inset:0;
    padding:92px 22px 30px;
    background:
      radial-gradient(circle at 80% 10%,rgba(184,131,46,.13),transparent 32%),
      rgba(5,5,5,.97);
    backdrop-filter:blur(18px);
    transform:translateY(-105%);
    opacity:0;
    pointer-events:none;
    transition:transform .38s cubic-bezier(.2,.7,.2,1),opacity .3s ease;
  }

  body.mobile-menu-open .mobile-menu-panel{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }

  .mobile-menu-panel nav{
    display:flex !important;
    flex-direction:column;
    gap:0;
    width:100%;
    font-size:18px;
  }

  .mobile-menu-panel nav a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:58px;
    border-bottom:1px solid rgba(255,255,255,.08);
    color:#fff;
  }

  .mobile-menu-panel nav a:after{
    content:"←";
    color:#d8a03a;
    font-size:14px;
  }

  /* Hero */
  .hero{
    min-height:100svh;
  }

  .hero:before{
    background:
      linear-gradient(to top,rgba(0,0,0,.92),rgba(0,0,0,.20) 67%),
      linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.16));
  }

  .hero-copy{
    width:90vw !important;
    margin:0 auto 12vh !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .hero h1{
    font-size:clamp(20px,6.3vw,30px) !important;
    line-height:1.35 !important;
    white-space:nowrap !important;
  }

  .hero p{
    max-width:100%;
    font-size:13px !important;
    line-height:1.9 !important;
  }

  .actions{
    gap:8px !important;
  }

  .btn{
    padding:11px 14px !important;
    font-size:10px !important;
  }

  /* General section spacing */
  .about,
  .services,
  .projects,
  .clients,
  .certifications,
  .contact-final{
    padding-left:5vw !important;
    padding-right:5vw !important;
  }

  .about{
    padding-top:82px !important;
    padding-bottom:76px !important;
  }

  .about h2{
    font-size:clamp(37px,11vw,54px) !important;
    line-height:1.22 !important;
  }

  .about .lead{
    font-size:17px !important;
  }

  .metrics{
    grid-template-columns:1fr !important;
  }

  .metric{
    min-height:128px !important;
  }

  /* Services */
  .services{
    padding-top:82px !important;
    padding-bottom:82px !important;
  }

  .service-grid{
    grid-template-columns:1fr !important;
  }

  /* Sectors */
  .sectors-intro{
    min-height:auto !important;
    padding:92px 5vw 72px !important;
  }

  .sectors-intro .inner{
    grid-template-columns:1fr !important;
    gap:28px !important;
  }

  .sectors-intro h2{
    font-size:clamp(18px,5.4vw,27px) !important;
    white-space:nowrap !important;
  }

  .sectors-intro p{
    font-size:13px !important;
  }

  .layer-panel{
    height:82svh !important;
    border-radius:24px 24px 0 0 !important;
  }

  .layer-content{
    right:6vw !important;
    left:6vw !important;
    bottom:8vh !important;
  }

  .layer-content h3{
    font-size:clamp(38px,12vw,58px) !important;
  }

  .layer-content p{
    font-size:13px !important;
    max-width:88vw !important;
  }

  /* Branch maps */
  .presence-page{
    padding-top:88px !important;
    padding-bottom:60px !important;
  }

  .presence-copy{
    padding-right:22px !important;
  }

  .presence-copy h2{
    font-size:clamp(30px,9vw,44px) !important;
    line-height:1.45 !important;
  }

  .presence-copy .subline,
  .presence-copy .regional-subline{
    font-size:clamp(16px,4.7vw,22px) !important;
  }

  .presence-map-wrap{
    border-radius:20px !important;
    aspect-ratio:1.25/1 !important;
  }

  /* Projects */
  .projects{
    padding-top:88px !important;
    padding-bottom:88px !important;
  }

  .projects-head{
    grid-template-columns:1fr !important;
    gap:24px !important;
  }

  .projects-head h2{
    font-size:clamp(19px,5.7vw,28px) !important;
    white-space:nowrap !important;
  }

  .projects-head p{
    font-size:13px !important;
  }

  .project-grid{
    grid-template-columns:1fr !important;
    gap:16px !important;
  }

  .project-card{
    min-height:430px !important;
  }

  /* Clients */
  .clients{
    padding-top:86px !important;
    padding-bottom:76px !important;
  }

  .clients-head{
    grid-template-columns:1fr !important;
    gap:24px !important;
  }

  .clients-head h2{
    font-size:clamp(42px,12vw,58px) !important;
    line-height:1.15 !important;
  }

  .client-grid{
    grid-template-columns:1fr 1fr !important;
  }

  .client-card{
    min-height:130px !important;
    padding:18px !important;
  }

  .client-card h3{
    font-size:17px !important;
  }

  .gold-ribbon-item{
    flex-basis:150px !important;
    width:150px !important;
    height:98px !important;
  }

  /* Certifications */
  .certifications{
    padding-top:86px !important;
    padding-bottom:82px !important;
  }

  .cert-head{
    grid-template-columns:1fr !important;
    gap:22px !important;
  }

  .cert-head h2{
    font-size:clamp(40px,11vw,58px) !important;
  }

  .cert-grid{
    grid-template-columns:1fr !important;
  }

  /* Contact */
  .contact-final{
    padding-top:92px !important;
    padding-bottom:90px !important;
  }

  .contact-top,
  .contact-body{
    grid-template-columns:1fr !important;
    gap:34px !important;
  }

  .contact-title{
    font-size:clamp(44px,12vw,64px) !important;
    line-height:1.25 !important;
  }

  .contact-intro{
    font-size:14px !important;
  }

  .contact-body{
    padding-top:38px !important;
  }

  .contact-info{
    gap:18px !important;
  }

  .contact-info-card a,
  .contact-info-card strong{
    font-size:17px !important;
    overflow-wrap:anywhere;
  }

  .contact-form{
    padding:24px 18px !important;
  }

  .form-grid{
    grid-template-columns:1fr !important;
  }

  .field.full{
    grid-column:auto !important;
  }

  /* Footer */
  .site-footer{
    padding:42px 5vw 28px !important;
  }

  .footer-main{
    grid-template-columns:1fr !important;
    gap:28px !important;
  }

  .footer-links{
    justify-content:flex-start !important;
    gap:12px 16px !important;
  }

  .footer-bottom{
    flex-direction:column !important;
    align-items:flex-start !important;
  }

  /* Floating socials on mobile */
  .floating-socials{
    left:10px;
    bottom:10px;
    gap:5px;
    padding:5px;
    max-width:calc(100vw - 78px);
    overflow-x:auto;
    scrollbar-width:none;
  }

  .floating-socials::-webkit-scrollbar{
    display:none;
  }

  .social-logo{
    width:31px;
    height:31px;
    flex:0 0 31px;
  }

  .social-logo img{
    width:16px;
    height:16px;
  }

  .floating-contact-actions{
    right:10px;
    bottom:10px;
    gap:7px;
  }

  .contact-float-btn{
    width:39px;
    height:39px;
  }

  .contact-float-btn svg{
    width:19px;
    height:19px;
  }

  .contact-float-btn.whatsapp img{
    width:20px;
    height:20px;
  }

  .footer-social-logo{
    width:36px;
    height:36px;
  }
}

@media(max-width:430px){
  .client-grid{
    grid-template-columns:1fr !important;
  }

  .brand > div{
    max-width:125px;
  }

  .footer-brand{
    align-items:flex-start !important;
  }
}

/* Project-detail pages: mobile-safe hero/gallery */
@media(max-width:800px){
  .project-top{
    height:58px !important;
    padding:0 16px !important;
  }

  body > .hero{
    min-height:520px;
  }

  body > .hero .hero-copy{
    right:5vw !important;
    left:5vw !important;
    bottom:7vh !important;
    max-width:none !important;
  }

  body > .hero .hero-copy h1{
    white-space:normal !important;
    font-size:clamp(42px,13vw,68px) !important;
    line-height:1.2 !important;
  }

  .content{
    padding:54px 5vw 64px !important;
  }

  .content-grid{
    grid-template-columns:1fr !important;
    gap:42px !important;
  }

  .gallery{
    padding:0 4vw 80px !important;
  }

  .gallery-grid{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  .gallery-grid figure:first-child{
    grid-column:auto !important;
  }

  .gallery-grid img,
  .gallery-grid figure:first-child img{
    min-height:300px !important;
    max-height:520px !important;
  }

  .back{
    padding:58px 5vw !important;
  }
}


.contact-inline-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
}

.contact-inline-link{
  font-size:clamp(17px,1.6vw,24px) !important;
}

.contact-inline-link.whatsapp-text{
  color:#42d77d !important;
  font-size:14px !important;
  border:1px solid rgba(66,215,125,.35);
  border-radius:999px;
  padding:8px 13px;
}

.contact-inline-link.whatsapp-text:hover{
  color:#fff !important;
  background:#1fba63;
  border-color:#1fba63;
}

/* V16 multilingual */
.lang-switcher{display:flex!important;align-items:center;gap:3px;padding:4px!important;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(7,7,7,.30)}
.lang-switcher button{border:0;background:transparent;color:#aaa;font:inherit;font-size:8px;padding:5px 7px;border-radius:999px;cursor:pointer}
.lang-switcher button.active{background:#d8a03a;color:#090806}
html[dir="ltr"] body{text-align:left}
html[dir="ltr"] .hero-copy,html[dir="ltr"] .projects-head,html[dir="ltr"] .clients-head,html[dir="ltr"] .cert-head,html[dir="ltr"] .contact-top,html[dir="ltr"] .contact-body{direction:ltr}
html[dir="ltr"] .presence-copy{direction:ltr;text-align:left}
html[lang="ur"] body{line-height:1.9}
@media(max-width:780px){.lang-switcher button{font-size:7px;padding:4px 6px}.lang-switcher{gap:1px}}
