/* ============================================================
   GAYUMA TECHNOLOGIES — HEADER (cleaned, deduplicated, premium)
   ============================================================ */

/* Force a bigger navbar height regardless of load order
   (overrides --nav-h from the page's inline <style>) */
:root{
  --nav-h:92px !important;
  --header-shadow:0 8px 30px rgba(13,27,62,.08);
}

/* ===================== HEADER SHELL ===================== */
header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:900;
  height:var(--nav-h);
  background:transparent;
  box-shadow:none;
  transition:height .3s ease, background .35s ease, box-shadow .35s ease;
}

/* Default / hero state — transparent, white text, slight gradient
   so text stays readable over any hero image */
header:not(.scrolled){
  background:linear-gradient(180deg, rgba(6,15,48,.55) 0%, rgba(6,15,48,.15) 70%, transparent 100%);
}
header:not(.scrolled) .nav-link,
header:not(.scrolled) .logo-name{
  color:#fff;
}
header:not(.scrolled) .nav-link:hover{
  color:#fff;
  background:rgba(255,255,255,.14);
}
header:not(.scrolled) .logo-img{
  filter:brightness(0) invert(1); /* white logo on dark hero */
}

/* Scrolled state — solid white, elevated */
header.scrolled{
  height:calc(var(--nav-h) - 12px);
  background:rgba(255,255,255,.98);
  box-shadow:var(--header-shadow);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
header.scrolled .nav-link,
header.scrolled .logo-name{
  color:var(--text);
}
header.scrolled .nav-link:hover{
  background:var(--blue-xl);
  color:var(--blue);
}
header.scrolled .logo-img{
  filter:none;
}

/* ===================== NAV LAYOUT ===================== */
nav{
  max-width:var(--max);
  margin:auto;
  padding:0 28px;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

/* ===================== LOGO ===================== */
.logo{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  flex-shrink:0;
}
.logo-img{
  height:52px;
  width:auto;
  object-fit:contain;
  transition:transform .25s ease, filter .3s ease;
}
.logo:hover .logo-img{
  transform:scale(1.04);
}
.logo-img-footer{
  height:50px;
  width:auto;
  object-fit:contain;
}
.logo-name{
  font-family:'Sora',sans-serif;
  font-size:19px;
  font-weight:800;
  letter-spacing:.2px;
  transition:color .3s ease;
}
.logo-name span{color:var(--accent)}

/* ===================== NAV LINKS ===================== */
.nav-center{
  display:flex;
  align-items:center;
  gap:4px;
}
.nav-item{position:relative}
.nav-link{
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  padding:10px 16px;
  border-radius:9px;
  display:flex;
  align-items:center;
  gap:6px;
  transition:all .18s;
  white-space:nowrap;
  cursor:pointer;
  border:none;
  background:none;
  font-family:'Plus Jakarta Sans',sans-serif;
}
.nav-link svg.arr{
  width:13px;height:13px;
  transition:transform .2s;
  opacity:.7;
}
.nav-item:hover .nav-link svg.arr{transform:rotate(180deg)}

/* CTA button */
.nav-cta{
  background:var(--accent) !important;
  color:#fff !important;
  padding:12px 26px !important;
  border-radius:11px !important;
  font-weight:800 !important;
  font-size:14px !important;
  box-shadow:0 6px 18px rgba(255,107,44,.35);
  transition:all .2s !important;
  flex-shrink:0;
}
.nav-cta:hover{
  background:var(--accent-d) !important;
  transform:translateY(-2px) !important;
  box-shadow:0 10px 24px rgba(255,107,44,.45);
}

/* ===================== DROPDOWN — SHARED ===================== */
.dropdown{
  position:absolute;
  top:100%;left:50%;
  transform:translateX(-50%) translateY(-6px);
  padding-top:14px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 24px 70px rgba(13,27,62,.16);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .22s ease, transform .22s ease, visibility .22s;
  transform-origin:top center;
  min-width:240px;
  padding:10px;
  z-index:200;
}
.nav-item:hover .dropdown{
  opacity:1;visibility:visible;pointer-events:all;
  transform:translateX(-50%) translateY(6px);
}
.dropdown-wide{min-width:640px}

/* ===================== PRODUCTS DROPDOWN ===================== */
.dropdown-wide .drop-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
  padding:6px;
}
.drop-product{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border-radius:14px;
  text-decoration:none;
  transition:background .18s, transform .18s;
}
.drop-product:hover{
  background:var(--blue-xl);
  transform:translateX(2px);
}
.drop-product-icon{
  width:46px;height:46px;
  border-radius:13px;
  display:flex;align-items:center;justify-content:center;
  font-size:19px;
  flex-shrink:0;
}
.drop-product-name{
  font-size:14px;font-weight:800;color:var(--text);margin-bottom:3px;
}
.drop-product-desc{
  font-size:12px;color:var(--muted);line-height:1.45;
}

/* ===================== SERVICES DROPDOWN ===================== */
.drop-col-title{
  font-size:11px;font-weight:800;text-transform:uppercase;
  letter-spacing:.08em;color:var(--muted);
  padding:10px 14px 8px;
  border-bottom:1px solid var(--border);
  margin-bottom:6px;
}
.drop-link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 14px;
  border-radius:11px;
  text-decoration:none;
  transition:background .15s, transform .15s;
}
.drop-link:hover{
  background:var(--blue-xl);
  transform:translateX(2px);
}
.drop-icon{
  width:38px;height:38px;
  border-radius:10px;
  background:var(--blue-xl);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.drop-icon svg{
  width:17px;height:17px;
  fill:var(--blue);
}
.drop-title{
  font-size:13.5px;font-weight:800;color:var(--text);
  margin-bottom:2px;line-height:1.25;
}
.drop-sub{
  font-size:11.5px;color:var(--muted);line-height:1.4;
}

/* Give each services column its own accent color so the
   mega-menu reads as organized categories, not one flat list */
.dropdown-wide[style*="720px"] > div > div > div:nth-child(1) .drop-icon{
  background:var(--blue-xl);
}
.dropdown-wide[style*="720px"] > div > div > div:nth-child(1) .drop-icon svg{
  fill:var(--blue);
}
.dropdown-wide[style*="720px"] > div > div > div:nth-child(2) .drop-icon{
  background:#FFF3E8;
}
.dropdown-wide[style*="720px"] > div > div > div:nth-child(2) .drop-icon svg{
  fill:var(--accent);
}
.dropdown-wide[style*="720px"] > div > div > div:nth-child(3) .drop-icon{
  background:#F3E8FF;
}
.dropdown-wide[style*="720px"] > div > div > div:nth-child(3) .drop-icon svg{
  fill:#7C3AED;
}

/* ===================== MOBILE NAV TOGGLE ===================== */
.nav-toggle{
  display:none;
  background:none;
  border:1px solid rgba(255,255,255,.35);
  border-radius:9px;
  padding:9px 11px;
  cursor:pointer;
  gap:4px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
header.scrolled .nav-toggle{border-color:var(--border)}
.nt-bar{
  width:20px;height:2px;background:#fff;border-radius:2px;transition:.25s;
}
header.scrolled .nt-bar{background:var(--text)}

@media(max-width:768px){
  .nav-center,.nav-cta{display:none}
  .nav-toggle{display:flex}
}

/* ===================== FOOTER ===================== */
footer{background:#07132B;padding:72px 0 0}
.footer-g{display:grid;grid-template-columns:2.2fr 1fr 1fr 1.4fr;gap:48px;margin-bottom:52px}
.footer-brand-desc{font-size:14px;color:rgba(255,255,255,.45);line-height:1.75;margin-top:14px;max-width:280px}
.footer-col-t{font-size:11px;font-weight:800;color:#fff;margin-bottom:16px;letter-spacing:.07em;text-transform:uppercase}
.footer-links{display:flex;flex-direction:column;gap:9px}
.footer-links a{font-size:13px;color:rgba(255,255,255,.45);text-decoration:none;transition:color .15s}
.footer-links a:hover{color:#fff}

.f-contact{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.f-ci{
  width:36px;height:36px;border-radius:10px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:.3s ease;
}
.f-ci i{font-size:14px;color:#fff;opacity:.8}
.f-contact:hover .f-ci{
  transform:scale(1.1);
  background:#2563eb;
  box-shadow:0 0 10px rgba(37,99,235,.4);
}
.f-ct{font-size:14px;color:#ccc}
.f-ct a{color:#ccc;text-decoration:none;transition:.3s}
.f-ct a:hover{color:#fff}

.footer-bottom{border-top:1px solid rgba(255,255,255,.07);padding:20px 0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.footer-copy{font-size:12px;color:rgba(255,255,255,.3)}
.footer-socials{display:flex;gap:10px}
.f-soc{
  width:40px;height:40px;border-radius:50%;
  background:#0f172a;
  display:flex;align-items:center;justify-content:center;
  text-decoration:none;transition:.3s ease;
}
.f-soc i{font-size:16px;color:#fff}
.f-soc:hover{transform:translateY(-5px) scale(1.1)}
.f-soc.insta:hover{background:radial-gradient(circle at 30% 107%, #fdf497, #fd5949, #d6249f, #285AEB)}
.f-soc.yt:hover{background:#ff0000}
.f-soc.wa:hover{background:#25D366}
.f-soc.tg:hover{background:#0088cc}
.f-soc.li:hover{background:#0A66C2}

/* Back to top */
#btt{position:fixed;bottom:28px;right:28px;width:44px;height:44px;background:var(--blue);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;border:none;opacity:0;transform:translateY(8px);transition:all .3s;z-index:800}
#btt.show{opacity:1;transform:none}
#btt svg{width:18px;height:18px;fill:#fff}

/* ===================== FOOTER — RESPONSIVE ===================== */
@media (max-width:1024px){
  .footer-g{grid-template-columns:1fr 1fr;gap:36px 28px;margin-bottom:40px}
  .footer-brand-desc{max-width:100%}
}
@media (max-width:640px){
  footer{padding:48px 0 0}
  .footer-g{grid-template-columns:1fr;gap:32px;margin-bottom:36px}
  .logo-img-footer{height:42px;margin-right:0}
  .footer-brand-desc{max-width:100%;margin-top:12px}
  .footer-col-t{margin-bottom:12px}
  .footer-links{gap:10px}
  .f-contact{margin-bottom:12px}
  .f-ct{font-size:13px}
  .footer-bottom{flex-direction:column;align-items:center;text-align:center;gap:16px;padding:20px 0}
  .footer-copy{order:2}
  .footer-socials{order:1;justify-content:center;flex-wrap:wrap;gap:10px}
}
@media (max-width:380px){
  .f-soc{width:32px;height:32px}
  .f-soc i{font-size:13px}
  .footer-socials{gap:8px}
  .f-ci{width:30px;height:30px}
}
@media (max-width:480px){
  #btt{bottom:20px;right:20px;width:40px;height:40px}
  #btt svg{width:16px;height:16px}
}

/* ===================== HEADER — MOBILE ===================== */
@media(max-width:768px){
  nav{padding:0 18px}
  .logo-img{height:40px}
}