/* PRIMEARCH V33 shared navigation, country identity, section snapping, division tints and inline motion */
/* Approved stacked logo: keep it visible in every header, mobile menu, preloader and footer. */
header .brand {
  display:flex !important;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
  min-width:96px;
  text-decoration:none;
}
header .brand img {
  display:block !important;
  width:172px !important;
  height:auto !important;
  max-width:172px !important;
  object-fit:contain;
}
.mobile-panel .primearch-mobile-brand-home{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  text-decoration:none;
}
.mobile-panel .primearch-mobile-brand-home img{
  width:auto !important;
  height:110px !important;
  max-width:132px !important;
  object-fit:contain;
  margin:0 0 10px !important;
}
.footer-logo img{width:auto !important;height:150px !important;max-width:176px !important;object-fit:contain}
.preloader-card img{width:auto !important;height:205px !important;max-width:240px !important;object-fit:contain}

@media(max-width:1180px){header .brand img{width:150px !important;max-width:150px !important}}
@media(max-width:1080px){header .brand img{width:144px !important;max-width:144px !important}}
@media(max-width:700px){header .brand img{width:144px !important;max-width:144px !important}}

.primearch-country-nav,
.primearch-mobile-country,
.primearch-country-pill,
.primearch-footer-country {
  font-family: Inter, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.primearch-country-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(4, 18, 35, .24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  color: inherit;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  opacity: .84;
}
.primearch-mobile-country {
  display: block;
  margin: 2px 0 18px;
  font-size: 10px;
  font-weight: 800;
  opacity: .68;
  color:#e8f4ff;
}
.primearch-footer-country {
  margin: 22px 0 8px;
  font-size: 10px;
  font-weight: 800;
  opacity: .66;
}

/* Main gateway: country identity only. No Home button on the main page. */
.primearch-main-tools {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, Arial, sans-serif;
}
.primearch-country-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(79, 180, 255, .24);
  background: rgba(4, 11, 22, .58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
  color: #fff;
  padding: 0 14px;
  font-size: 9px;
  font-weight: 800;
}

/* Home is now a large icon-only action, sized exactly like phone/email controls. */
.primearch-home-icon{padding:0 !important;line-height:1 !important;flex:0 0 auto}
.primearch-home-icon svg{width:23px;height:23px;display:block;stroke:currentColor;fill:none;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}

/* Division light-section palettes. */
body.primearch-facility{--primearch-light:#edf8ff;--primearch-light-2:#f5fbff;--primearch-light-border:#d6ecf9;--primearch-motion:#168ed0}
body.primearch-technology{--primearch-light:#eef3ff;--primearch-light-2:#f5f7ff;--primearch-light-border:#dce5fb;--primearch-motion:#4e63e8}
body.primearch-construction{--primearch-light:#f5eee5;--primearch-light-2:#fbf7f1;--primearch-light-border:#eadbca;--primearch-motion:#b87942}
body.primearch-tourism{--primearch-light:#eef8e9;--primearch-light-2:#f6fbf3;--primearch-light-border:#d9ead3;--primearch-motion:#4f9b61}
body.primearch-print{--primearch-light:#f8edf7;--primearch-light-2:#f4f3fb;--primearch-light-border:#ead8e9;--primearch-motion:#c74cab}

body[class*="primearch-"] section.trust{background:var(--primearch-light-2) !important}
body[class*="primearch-"] section.section:not(.dark-section):not(.cta){background-color:var(--primearch-light) !important}
body[class*="primearch-"] section.services{background:linear-gradient(180deg,var(--primearch-light-2),var(--primearch-light)) !important}
body[class*="primearch-"] .trust-box,
body[class*="primearch-"] .use-card,
body[class*="primearch-"] .industry,
body[class*="primearch-"] .mini-stat,
body[class*="primearch-"] .gallery-launcher,
body[class*="primearch-"] .testimonial,
body[class*="primearch-"] .quote-form{
  border-color:var(--primearch-light-border) !important;
}

/* Print page keeps its visual texture but changes the white veil to a soft brand-tinted veil. */
body.primearch-print #about{
  background-image:linear-gradient(rgba(250,238,248,.92),rgba(246,242,250,.95)),url('print-signage/assets/user-signage-09.png') !important;
}
body.primearch-print #services{
  background-image:linear-gradient(rgba(248,238,248,.91),rgba(244,243,251,.95)),url('print-signage/assets/user-signage-03.png') !important;
}
body.primearch-print #applications{
  background-image:linear-gradient(rgba(249,239,248,.92),rgba(246,243,250,.95)),url('print-signage/assets/user-signage-16.png') !important;
}

/* Integrated autoplay video: lives inside the existing trust content instead of floating above the site. */
.primearch-inline-motion{
  position:relative;
  width:100%;
  margin-top:22px;
  border-radius:24px;
  overflow:hidden;
  aspect-ratio:16 / 5.1;
  min-height:190px;
  max-height:360px;
  background:#07111d;
  border:1px solid color-mix(in srgb,var(--primearch-motion) 30%,transparent);
  box-shadow:0 18px 48px rgba(6,25,54,.12);
  isolation:isolate;
}
.primearch-inline-motion video{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}
.primearch-inline-motion::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(3,9,17,.02) 38%,rgba(3,9,17,.64));
  z-index:1;
}
.primearch-motion-meta{
  position:absolute;
  left:16px;
  right:16px;
  bottom:14px;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color:#fff;
  font-family:Inter,Arial,sans-serif;
}
.primearch-motion-label{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  text-shadow:0 2px 10px rgba(0,0,0,.45);
}
.primearch-motion-label::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--primearch-motion);
  box-shadow:0 0 14px var(--primearch-motion);
  flex:0 0 7px;
}
.primearch-motion-sound{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(3,9,17,.48);
  color:#fff;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  cursor:pointer;
  font-size:17px;
  flex:0 0 38px;
}

/* Gateway approved logo positioning with the new stacked proportions. */
.floating-logo{pointer-events:auto !important;cursor:pointer;text-decoration:none;width:min(18vw,280px) !important;top:6px !important}
.floating-logo img{width:100%;height:auto;object-fit:contain}

@media (max-width: 1080px){
  header .brand img{height:68px !important;max-width:94px !important}
  .primearch-country-nav{display:none}
}
@media (max-width: 820px) {
  header .brand img{height:62px !important;max-width:88px !important}
}
@media (max-width: 760px) {
  .primearch-main-tools { top:10px; right:10px; }
  .primearch-country-pill { min-height:32px; padding:0 10px; font-size:7px; }
  .primearch-inline-motion{margin-top:16px;border-radius:18px;aspect-ratio:16/8.6;min-height:150px;max-height:220px;box-shadow:0 12px 30px rgba(6,25,54,.10)}
  .primearch-motion-meta{left:11px;right:11px;bottom:10px}
  .primearch-motion-label{font-size:8px;letter-spacing:.10em}
  .primearch-motion-sound{width:34px;height:34px;flex-basis:34px;font-size:15px}
  .floating-logo{width:min(34vw,150px) !important;top:2px !important}
}
@media (max-width: 520px){
  .primearch-motion-label{max-width:72%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .footer-logo img{height:128px !important;max-width:150px !important}
}
@media (prefers-reduced-motion: reduce) {
  .primearch-inline-motion video{animation:none}
}

/* V41 functional additions only — V33 visual design remains locked. */
.primearch-country-nav,
.primearch-mobile-country,
.primearch-footer-country{color:#fff !important}

/* Autoplay video replaces the existing hero-panel image without changing its V33 dimensions. */
.primearch-hero-motion{
  position:relative;
  height:258px;
  width:100%;
  overflow:hidden;
  border-radius:22px;
  margin-bottom:18px;
  background:#07111d;
}
.primearch-hero-motion video{width:100%;height:100%;display:block;object-fit:cover}
.primearch-hero-sound{
  position:absolute;right:12px;bottom:12px;width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;border:1px solid rgba(255,255,255,.22);
  background:rgba(3,9,17,.56);color:#fff;cursor:pointer;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)
}
.primearch-hero-sound svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Gallery uses the existing V33 typography, spacing and page variables. */
.primearch-shared-gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:38px}
.primearch-shared-gallery-card{position:relative;height:260px;padding:0;border:1px solid var(--line);border-radius:24px;overflow:hidden;background:var(--card);box-shadow:var(--shadow2);cursor:pointer;text-align:left}
.primearch-shared-gallery-card img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.primearch-shared-gallery-card:hover img{transform:scale(1.04)}
.primearch-shared-gallery-caption{position:absolute;left:0;right:0;bottom:0;padding:42px 18px 16px;background:linear-gradient(180deg,transparent,rgba(5,16,31,.88));color:#fff;font-size:13px;font-weight:800}
.primearch-shared-gallery-launcher{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:22px;padding:24px;border-radius:24px;background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow2)}
.primearch-shared-gallery-info{display:flex;align-items:center;gap:16px}.primearch-shared-gallery-info h3{font-size:20px;margin-bottom:5px}.primearch-shared-gallery-info p{font-size:14px;line-height:1.55;color:var(--muted)}
.primearch-shared-gallery-icon{width:46px;height:46px;border-radius:15px;flex:0 0 46px;background:linear-gradient(135deg,var(--accent),var(--accent2));position:relative}
.primearch-shared-gallery-icon:before,.primearch-shared-gallery-icon:after{content:"";position:absolute;background:#fff;border-radius:3px}.primearch-shared-gallery-icon:before{width:20px;height:15px;left:13px;top:16px}.primearch-shared-gallery-icon:after{width:7px;height:7px;left:17px;top:12px;border-radius:50%}
.primearch-gallery-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:24px;background:rgba(3,9,17,.82);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);opacity:0;visibility:hidden;transition:.25s}
.primearch-gallery-modal.open{opacity:1;visibility:visible}.primearch-gallery-open{overflow:hidden}
.primearch-gallery-panel{width:min(1180px,96vw);max-height:88vh;overflow:auto;padding:24px;border-radius:28px;background:#07111d;border:1px solid rgba(255,255,255,.13);box-shadow:0 30px 100px rgba(0,0,0,.45);color:#fff}
.primearch-gallery-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.primearch-gallery-head h3{font-size:25px}.primearch-gallery-head p{margin-top:5px;color:#b9c9d8;font-size:13px}.primearch-gallery-close{width:44px;height:44px;border-radius:14px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;font-size:28px;cursor:pointer}
.primearch-gallery-full-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.primearch-gallery-full-card{margin:0;overflow:hidden;border-radius:20px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.10)}.primearch-gallery-full-card img{width:100%;height:260px;object-fit:cover}.primearch-gallery-full-card figcaption{padding:12px 14px;font-size:13px;font-weight:700;color:#e8f0f8}

@media(max-width:1050px){.primearch-shared-gallery-grid{grid-template-columns:repeat(2,1fr)}.primearch-gallery-full-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){
  .primearch-hero-motion{height:210px}
  .primearch-shared-gallery-grid{grid-template-columns:1fr}.primearch-shared-gallery-card{height:240px}.primearch-shared-gallery-launcher{align-items:flex-start;flex-direction:column}.primearch-gallery-full-grid{grid-template-columns:1fr}.primearch-gallery-full-card img{height:230px}
}

/* V42 — first-screen height only. No visual/style changes. */
body.primearch-technology .hero,
body.primearch-technology .hero-content,
body.primearch-tourism .hero,
body.primearch-tourism .hero-content,
body.primearch-construction .hero,
body.primearch-construction .hero-content,
body.primearch-print .hero,
body.primearch-print .hero-content{
  min-height:101vh !important;
}
@supports (height: 100svh){
  body.primearch-technology .hero,
  body.primearch-technology .hero-content,
  body.primearch-tourism .hero,
  body.primearch-tourism .hero-content,
  body.primearch-construction .hero,
  body.primearch-construction .hero-content,
  body.primearch-print .hero,
  body.primearch-print .hero-content{
    min-height:101svh !important;
  }
}


/* V46 — Facility-matched contact controls only. */
.primearch-floating-phone{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:160;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 18px;
  border-radius:999px;
  color:white;
  font-weight:900;
  letter-spacing:.01em;
  text-decoration:none;
  background:linear-gradient(135deg, rgba(0,166,232,.92), rgba(7,119,200,.82));
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 18px 48px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.30);
  backdrop-filter:blur(14px) saturate(160%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  animation:primearchFloatingPulse 2.3s ease-in-out infinite;
}
.primearch-floating-phone:hover{
  transform:translateY(-4px);
  animation-play-state:paused;
}
@keyframes primearchFloatingPulse{
  0%,100%{box-shadow:0 18px 48px rgba(0,0,0,.32), 0 0 0 0 rgba(139,226,255,.25)}
  50%{box-shadow:0 22px 56px rgba(0,0,0,.38), 0 0 0 10px rgba(139,226,255,0)}
}
@media(max-width:700px){
  /* Facility keeps phone + email visible beside Home/Menu on mobile; match it here. */
  body.primearch-technology .nav-actions .nav-icon,
  body.primearch-tourism .nav-actions .nav-icon,
  body.primearch-construction .nav-actions .nav-icon,
  body.primearch-print .nav-actions .nav-icon{
    display:grid !important;
    width:42px !important;
    height:42px !important;
    border-radius:14px !important;
    font-size:18px !important;
  }
  .primearch-floating-phone{
    right:14px;
    bottom:14px;
    padding:12px 15px;
    font-size:14px;
  }
}


/* V47 — main gateway flags only; remove main floating phone via JS. */
.primearch-main-flags{
  min-height:30px !important;
  padding:0 9px !important;
  gap:5px !important;
  font-size:15px !important;
  line-height:1 !important;
  letter-spacing:0 !important;
}
.primearch-main-flags .primearch-flag-icon{display:block;width:18px;height:12px;border-radius:2px;object-fit:cover;box-shadow:0 0 0 1px rgba(255,255,255,.22)}
@media(max-width:760px){
  .primearch-main-flags{min-height:28px !important;padding:0 8px !important;font-size:14px !important;gap:4px !important}
  .primearch-main-flags .primearch-flag-icon{width:16px;height:11px}
}
