/* SViwt front chrome — header/menu/footer/modal/anchors (j5 custom.css parity) */
html {
  scroll-behavior: smooth;
}
body.pgsv-front {
  margin: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  background: #f7f8fb;
  color: #0b1220;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* main content grows so footer sticks to bottom */
body.pgsv-front > .pgs-landing,
body.pgsv-front > main.inner-page,
body.pgsv-front > .inner-page {
  flex: 1 0 auto;
}
.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Header ===== */
#sp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 88px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(15, 40, 80, 0.1);
}
.sp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 20px;
}
.logo img {
  height: 68px;
  width: auto;
  max-width: 260px;
  display: block;
}
.sp-header-line {
  height: 3px;
  margin-top: -3px;
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, transparent, #0345BF 22%, #1EA0BF 58%, #1EA0BF 78%, transparent);
  opacity: 0.85;
}

/* Menu (j5 no-jump animated hover) */
.sp-megamenu-parent {
  display: flex;
  align-items: center;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sp-megamenu-parent > li {
  margin: 0;
  padding: 0;
}
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #0b1220 !important;
  padding: 0 4px;
  text-decoration: none;
  transition: color 0.25s ease;
}
.sp-megamenu-parent > li > a::before,
.sp-megamenu-parent > li > span::before {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #0345BF, #1EA0BF);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.sp-megamenu-parent > li > a:hover,
.sp-megamenu-parent > li.active > a {
  color: #1EA0BF !important;
}
.sp-megamenu-parent > li > a:hover::before,
.sp-megamenu-parent > li.active > a::before {
  transform: scaleX(1);
}

#offcanvas-toggler {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  background: none;
  border: 0;
  padding: 0;
}
.burger-icon {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.burger-icon > span {
  display: block;
  width: 100%;
  height: 2px;
  background: #0b1220;
  border-radius: 2px;
}

/* ===== Inner pages ===== */
.inner-page {
  padding: 28px 0 12px;
  min-height: 40vh;
}
.inner-page-body .inner-page {
  padding-top: 32px;
}
.inner-page .pgs-section,
.inner-page .pgs-section-legal,
.inner-page .pgs-section-text {
  padding-top: 8px;
}

/* ===== Hero flush to header ===== */
.pgs-landing {
  margin: 0;
  padding: 0;
}
.pgs-landing > .pgs-canvas,
.pgs-landing > .pgs-hero,
.pgs-canvas {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.pgs-canvas > .pgs-hero:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.pgs-hero {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* ===== Anchors under sticky header (j5) ===== */
#about, #services, #production, #portfolio, #library, #trust, #feedback,
.pgs-block, .pgs-about-section, .pgs-services, .pgs-production,
.pgs-portfolio, .pgs-library, .pgs-trust, .pgs-contact-sec {
  scroll-margin-top: 112px !important;
}

/* ===== Footer (j5 custom.css) ===== */
#sp-footer {
  flex: 0 0 auto;
  background: linear-gradient(180deg, #0b1220 0%, #12275a 100%) !important;
  color: #d7e0f5 !important;
  padding: 36px 0 40px !important;
  margin: 0 !important;
  border: 0 !important;
  position: relative;
  z-index: 2;
}
#sp-footer .container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
}
#sp-footer .sp-copyright {
  color: #d7e0f5 !important;
  display: block;
  text-align: center !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.7;
  width: 100%;
}
#sp-footer .sp-copyright .pgs-foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  width: 100%;
  margin: 0 0 12px;
}
#sp-footer .sp-copyright .fa {
  margin-right: 6px;
  opacity: 0.95;
  color: #8eb6ff;
  width: 16px;
  text-align: center;
}
#sp-footer .sp-copyright a {
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  border: 0 !important;
  position: relative;
  padding-bottom: 3px;
  background: linear-gradient(90deg, #7eb6ff, #5eead4) left bottom / 0% 2px no-repeat;
  transition: background-size 0.3s ease;
  white-space: nowrap;
}
#sp-footer .sp-copyright a:hover {
  background-size: 100% 2px;
}
#sp-footer .sp-copyright a .fa {
  margin-right: 8px;
  color: #a5c4ff;
}
#sp-footer .pgs-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  opacity: 0.92;
  font-size: 13px;
  font-weight: 500;
  color: #b9c7e4 !important;
}
#sp-footer .pgs-disclaimer .fa {
  color: #6ee7b7;
  margin-right: 2px;
}
#sp-footer .pgs-disclaimer::before { content: none; }

/* ===== Contact modal (j5) ===== */
#pgs-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#pgs-modal.open { display: flex; }
#pgs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(6px);
}
#pgs-modal-card {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 32px 28px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: pgsPop 0.28s ease;
}
@keyframes pgsPop {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
#pgs-modal-close {
  position: fixed;
  top: calc(50% - min(38vh, 340px) - 52px);
  right: calc(50% - min(248px, 44vw) );
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f3f5f9;
  color: #0b1220;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
#pgs-modal-close:hover { background: #e7ecf5; }
#pgs-modal-card h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #0b1220;
}
#pgs-modal-card .pgs-modal-sub {
  margin: 0 0 20px;
  color: #1a2433;
  font-size: 14px;
  line-height: 1.6;
}
#pgs-modal-form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #1a2433;
  margin: 0 0 16px;
  line-height: 1.3;
}
#pgs-modal-form input,
#pgs-modal-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 40, 80, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  margin: 0;
  color: #0b1220;
  background: #fbfcfe;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  flex: 0 0 auto;
}
#pgs-modal-form input:focus,
#pgs-modal-form textarea:focus {
  outline: none;
  border-color: #0345BF;
  box-shadow: 0 0 0 4px rgba(3, 69, 191, 0.12);
}
#pgs-modal-form textarea {
  min-height: 110px;
  resize: vertical;
}
#pgs-modal-form button[type="submit"] {
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #0345BF 0%, #1EA0BF 45%, #5eead4 100%);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(3, 69, 191, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
#pgs-modal-form button[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
#pgs-modal-ok {
  display: none;
  text-align: center;
  padding: 18px 8px 8px;
}
#pgs-modal-ok .fa {
  font-size: 42px;
  color: #0d9488;
  margin-bottom: 12px;
}
.pgs-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Font Awesome inside pgs buttons/cards — must be solid 900 */
.pgs-ico.fa,
.pgs-ico.fas,
.pgs-ico.far,
.fa.fa-check,
.fa.fa-paper-plane,
.fa.fa-phone,
.fa.fa-book,
.fa.fa-envelope,
.fa.fa-arrow-right,
.fa.fa-arrow-down,
.fa.fa-chevron-down,
.fa.fa-search-plus {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
  font-weight: 900 !important;
  font-style: normal !important;
  line-height: 1 !important;
}
#pgs-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(145deg, #0b1220, #2a2f3a);
  color: #fff;
  cursor: pointer;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 14px 30px rgba(11, 18, 32, 0.28);
}
#pgs-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .sp-megamenu-parent { display: none !important; }
  #offcanvas-toggler { display: inline-flex !important; }
  #sp-header, .sp-header-inner { height: 72px; }
  .logo img { height: 52px; }
}

/* ===== FormBuilder: dynamic fields ===== */
.pgs-form-fields { display: flex; flex-wrap: wrap; gap: 14px; }
.pgs-form-field { flex: 1 1 100%; }
.pgs-form-field.half { flex: 1 1 calc(50% - 7px); }
.pgs-form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.pgs-form-field .req { color: #b91c1c; }
.pgs-form-field input,
.pgs-form-field textarea,
.pgs-form-field select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px; font-size: 14px;
}
.pgs-form-field input:focus,
.pgs-form-field textarea:focus,
.pgs-form-field select:focus { outline: none; border-color: #1EA0BF; box-shadow: 0 0 0 3px rgba(30, 160, 191, 0.18); }
.pgs-form-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.pgs-form-help { display: block; margin-top: 3px; font-size: 12px; color: var(--muted, #64748b); }
.pgs-form-success { text-align: center; padding: 32px 20px; }
.pgs-form-success i { font-size: 48px; color: #10b981; margin-bottom: 12px; }
.pgs-form-success h3 { margin: 0 0 8px; font-size: 20px; }
.pgs-form-success p { margin: 0; color: var(--muted, #64748b); }
@media (max-width: 600px) { .pgs-form-field.half { flex: 1 1 100%; } }

/* ===== intl-tel-input overrides ===== */
.iti { width: 100%; }
.iti__flag-container { border-radius: 10px 0 0 10px; }
.iti__selected-flag { padding: 0 8px 0 12px; height: 44px; }
.iti__arrow { margin-left: 4px; }
.iti__country-list { border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.pgs-form-field input.iti__tel-input {
  padding-left: 52px;
}
.iti--separate-dial-code .iti__tel-input {
  padding-left: 52px;
}

/* ===== Offcanvas mobile menu ===== */
.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.offcanvas-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.offcanvas-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100vh;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.32s ease;
  overflow-y: auto;
  background:
    radial-gradient(600px 320px at 10% 0%, rgba(3, 69, 191, 0.35), transparent 60%),
    radial-gradient(500px 280px at 90% 100%, rgba(43, 184, 212, 0.25), transparent 55%),
    var(--menu-grad, linear-gradient(165deg, #0345BF, #2bb8d4));
  color: #e8eefc;
  box-shadow: -18px 0 50px rgba(3, 69, 191, 0.28);
}
.offcanvas-menu.is-open {
  transform: translateX(0);
}
.offcanvas-inner {
  padding: 18px 18px 32px;
}
.offcanvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.offcanvas-head strong {
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9ec2ff;
}
.close-offcanvas {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.close-offcanvas:hover {
  background: rgba(255, 255, 255, 0.16);
}
.offcanvas-menu ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.offcanvas-menu ul.menu > li > a {
  display: block;
  color: #e8eefc;
  text-decoration: none !important;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.offcanvas-menu ul.menu > li > a:hover,
.offcanvas-menu ul.menu > li.active > a {
  color: #9ec2ff;
  background: rgba(255, 255, 255, 0.06);
}
.offcanvas-auth {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.offcanvas-auth a {
  display: block;
  color: #9ec2ff;
  text-decoration: none !important;
  font-weight: 600;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(158, 194, 255, 0.28);
}
.offcanvas-auth a:hover {
  background: rgba(158, 194, 255, 0.12);
}
body.offcanvas-open {
  overflow: hidden;
}
/* ===== Module section heading (h2–h4 under page H1) ===== */
.pgs-module-heading {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink, #0b1220);
  line-height: 1.3;
}
h3.pgs-module-heading { font-size: 20px; }
h4.pgs-module-heading { font-size: 17px; }

/* ===== Gap between hero/slider and first content block ===== */
.pgs-landing > .pgs-hero + .pgs-block,
.pgs-canvas > .pgs-hero + .pgs-block,
.pgs-hero + .pgs-block,
.pgs-hero + .pgs-about-section {
  margin-top: 40px !important;
}
.pgs-landing > .pgs-block:first-child,
.pgs-canvas > .pgs-block:first-child {
  margin-top: 28px !important;
}

/* Modal submit — larger label */
#pgs-modal-form button[type="submit"] {
  font-size: 17px !important;
  font-weight: 700;
  padding: 18px 24px !important;
  letter-spacing: 0.3px;
}
