/* Premium Industrial Automation UI */

:root {
  --p-primary: #0066CC;
  --p-primary-dark: #004c99;
  --p-primary-light: #3b9bff;
  --p-secondary: #0F172A;
  --p-accent: #0080D4;
  --p-accent-warm: #FF6B00;
  --p-bg: #F8FAFC;
  --p-surface: #FFFFFF;
  --p-border: rgba(15, 23, 42, 0.12);
  --p-text: #0F172A;
  --p-muted: rgba(15, 23, 42, 0.72);
  --p-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  --p-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --p-radius: 16px;
  --p-ring: 0 0 0 4px rgba(0, 102, 204, 0.18);
  --p-container: 1200px;
  --p-header-h: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--p-bg) !important;
  color: var(--p-muted);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Poppins, Inter, system-ui, sans-serif;
  color: var(--p-text);
  letter-spacing: -0.01em;
}

a {
  color: var(--p-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #004c99;
}

.container {
  max-width: var(--p-container);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

#wrap {
  background: transparent !important;
  width: 100% !important;
  max-width: 100% !important;
}

.grid_1200 {
  width: 100% !important;
  max-width: 100% !important;
}

/* Translate widget – in top bar */
.p-translate--topbar {
  position: static !important;
  top: auto !important;
  right: auto !important;
  flex-shrink: 0;
  z-index: 1;
}

.p-translate--topbar .goog-te-gadget {
  font-family: Inter, sans-serif !important;
  font-size: 0 !important;
  color: transparent !important;
}

.p-translate--topbar .goog-te-gadget .goog-te-combo {
  margin: 0 !important;
  padding: 5px 8px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font-size: 12px !important;
  max-width: 150px;
}

.p-header-top__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  flex: 1;
  min-width: 0;
}

.p-header-top__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.p-header-top__item i {
  flex-shrink: 0;
  opacity: 0.85;
  font-size: 12px;
}

.p-header-top__item span {
  min-width: 0;
  word-break: break-word;
}

/* ========== HEADER ========== */
#header.p-site-header,
#header.p-site-header.fixed-nav,
#header.header-3.p-site-header,
#header.header-4.p-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: auto !important;
  line-height: normal !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--p-border);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

#header.p-site-header::before,
#header.p-site-header::after,
#header.header-4::after,
#header.header-3::before {
  display: none !important;
}

.p-header-top {
  background: linear-gradient(90deg, #0b1220 0%, var(--p-secondary) 50%, #0b1220 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.p-header-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 9px 0;
}

.p-header-top__item {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.p-header-top__item:hover {
  color: #fff !important;
}

.p-header-main {
  padding: 0 !important;
  position: relative;
}

.p-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--p-header-h);
}

.p-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
}

#header .navigation_mobile_click {
  display: none !important;
}

#header .logo,
#header.header-3 .logo {
  margin: 0 !important;
  margin-bottom: 0 !important;
  text-align: left !important;
  float: none !important;
}

#header .logo a,
#header.header-3 .logo a {
  float: none !important;
  display: block;
  padding: 0 !important;
}

#header .logo img,
#header .logo .p-site-logo {
  max-height: 92px !important;
  max-width: min(360px, 50vw);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Mobile toggle */
.p-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  background: var(--p-surface);
  cursor: pointer;
  flex-shrink: 0;
}

.p-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--p-secondary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.p-nav-open .p-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.p-nav-open .p-nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.p-nav-open .p-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== NAVIGATION ========== */
#header .navigation,
#header .navigation.p-primary-nav,
#header.header-3 .navigation,
#header.header-4 .navigation {
  float: none !important;
  width: auto !important;
  text-align: left !important;
  line-height: normal !important;
}

#header .navigation > ul,
#header .navigation.p-primary-nav > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none !important;
}

#header .navigation > ul > li,
#header .navigation.p-primary-nav > ul > li,
#header.header-3 .navigation > ul > li {
  float: none !important;
  display: block;
  position: relative;
  line-height: normal !important;
  margin: 0 !important;
  border: none !important;
  border-top: none !important;
  list-style: none !important;
}

#header .navigation > ul > li > a,
#header.header-3 .navigation > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px !important;
  line-height: 1.2 !important;
  border-radius: 8px;
  color: var(--p-secondary) !important;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

#header .navigation > ul > li.parent-list > a {
  padding-right: 28px !important;
  position: relative;
}

#header .navigation .menu-nav-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
  font-size: 12px;
  pointer-events: none;
}

#header .navigation > ul > li:hover > a,
#header .navigation > ul > li:focus-within > a {
  background: rgba(0, 102, 204, 0.08);
  color: var(--p-primary) !important;
}

#header .navigation > ul > li.current_page_item > a {
  background: var(--p-primary) !important;
  color: #fff !important;
}

#header .navigation > ul > li.current_page_item .menu-nav-arrow {
  color: #fff;
  opacity: 0.9;
}

/* Dropdown base */
#header .navigation ul li ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

#header .navigation li ul li {
  list-style: none !important;
  float: none !important;
  margin: 0 !important;
}

#header .navigation li ul li a {
  display: block;
  color: var(--p-secondary) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  padding: 10px 14px !important;
  border-bottom: none !important;
  white-space: normal;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

#header .navigation li ul li a:hover {
  background: rgba(0, 102, 204, 0.08) !important;
  color: var(--p-primary) !important;
  padding-left: 18px !important;
}

/* Desktop dropdown */
@media (min-width: 991px) {
  .p-header-inner {
    flex-wrap: nowrap;
  }

  #header .navigation.p-primary-nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  #header .navigation > ul,
  #header .navigation.p-primary-nav > ul {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  /* Standard dropdown panel */
  #header .navigation > ul > li > ul {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    max-width: 320px;
    background: var(--p-surface) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 1001;
    padding: 10px;
    overflow: hidden;
  }

  #header .navigation > ul > li > ul::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--p-primary), #3b9bff);
  }

  #header .navigation > ul > li:hover > ul,
  #header .navigation > ul > li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Right-align last menus */
  #header .navigation > ul > li:nth-last-child(-n+3) > ul {
    left: auto;
    right: 0;
  }

  #header .navigation > ul > li > ul > li > ul {
    display: none !important;
  }

  /* Large multi-column dropdowns (Products, PLC, VFD, HMI, Other) */
  #header .navigation > ul > li.p-dropdown-lg > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 2px 8px;
    min-width: min(540px, 92vw);
    max-width: 600px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 12px;
    scrollbar-width: thin;
  }

  #header .navigation > ul > li.p-dropdown-lg > ul > li {
    margin: 0;
    min-width: 0;
  }

  #header .navigation > ul > li.p-dropdown-lg > ul > li > a {
    display: block;
    width: 100%;
  }

  #header .navigation > ul > li.p-dropdown-lg > ul::-webkit-scrollbar {
    width: 6px;
  }

  #header .navigation > ul > li.p-dropdown-lg > ul::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
  }
}

/* Tablet: allow wrap but keep row feel */
@media (min-width: 991px) and (max-width: 1180px) {
  #header .navigation > ul > li > a {
    padding: 8px 10px !important;
    font-size: 12px;
  }

  #header .logo img,
  #header .logo .p-site-logo {
    max-height: 76px !important;
    max-width: 280px;
  }
}

/* Kill legacy theme nav styles on premium header */
#header.p-site-header .navigation li:hover ul,
#header.p-site-header .navigation > ul > li:hover > ul {
  top: calc(100% + 10px) !important;
  background-color: var(--p-surface) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

#header.p-site-header .navigation li ul li a {
  color: var(--p-secondary) !important;
  line-height: 1.35 !important;
  height: auto !important;
}

#header.p-site-header .navigation li ul li a:hover {
  background: rgba(0, 102, 204, 0.08) !important;
  color: var(--p-primary) !important;
}

#header.p-site-header.navigation_mobile,
#header.p-site-header .navigation.navigation_mobile {
  margin-top: 0 !important;
}

/* Mobile navigation */
@media (max-width: 990px) {
  #header.p-site-header,
  #header.p-site-header.fixed-nav {
    padding-bottom: 0 !important;
  }

  #header.p-site-header .logo a,
  #header.header-3 .logo a {
    text-align: left !important;
    float: none !important;
  }

  .p-header-main > .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .p-header-inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px 0;
    position: relative;
  }

  .p-header-bar {
    width: 100%;
    min-width: 0;
    flex: 1;
  }

  #header .logo {
    flex: 1;
    min-width: 0;
  }

  .p-nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  #header .logo img,
  #header .logo .p-site-logo {
    max-height: 58px !important;
    max-width: min(70vw, 260px);
    width: auto;
  }

  body.p-nav-open::before {
    display: none;
  }

  .p-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1040;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  body.p-nav-open .p-nav-backdrop {
    display: block;
  }

  #header .navigation.p-primary-nav,
  #header .navigation.navigation_mobile,
  #header .navigation.navigation_mobile_main {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(340px, 90vw);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0 !important;
    padding: 88px 16px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-left: 1px solid var(--p-border);
    box-shadow: -16px 0 48px rgba(15, 23, 42, 0.18);
    z-index: 1050;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
  }

  body.p-nav-open #header .navigation.p-primary-nav {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  #header .navigation > ul,
  #header .navigation.p-primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0;
  }

  #header .navigation > ul > li,
  #header .navigation.p-primary-nav > ul > li {
    border: 1px solid var(--p-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  }

  #header .navigation > ul > li > a,
  #header.header-3 .navigation > ul > li > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
    padding: 14px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--p-secondary) !important;
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.06), transparent) !important;
    white-space: normal;
  }

  #header .navigation > ul > li.current_page_item > a {
    background: var(--p-primary) !important;
    color: #fff !important;
  }

  #header .navigation > ul > li > ul,
  #header .navigation li ul li ul {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid var(--p-border) !important;
    background: rgba(248, 250, 252, 0.98) !important;
    border-radius: 0;
    margin: 0;
    padding: 6px 8px 10px !important;
  }

  #header .navigation > ul > li > ul::before {
    display: none;
  }

  #header .navigation li.p-submenu-open > ul {
    display: block !important;
  }

  #header .navigation li ul li a {
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-radius: 8px;
    color: var(--p-muted) !important;
  }

  #header .navigation li ul li a:hover {
    background: rgba(0, 102, 204, 0.08) !important;
    color: var(--p-primary) !important;
  }

  #header .navigation > ul > li:has(> ul) > a::after {
    content: "▾";
    opacity: 0.55;
    font-size: 12px;
    margin-left: 8px;
  }

  #header .navigation > ul > li.p-submenu-open > a::after {
    transform: rotate(180deg);
  }

  #header .navigation > ul > li.p-dropdown-lg > ul {
    display: none;
    grid-template-columns: 1fr;
  }

  #header .navigation .menu-nav-arrow {
    display: none;
  }
}

@media (max-width: 575px) {
  .p-header-top__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0;
  }

  .p-header-top__contacts {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }

  .p-header-top__item {
    font-size: 12px;
    line-height: 1.4;
    width: 100%;
  }

  .p-translate--topbar {
    align-self: flex-end;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .p-translate--topbar .goog-te-gadget .goog-te-combo {
    max-width: 100%;
    width: 100%;
  }

  #header .logo img,
  #header .logo .p-site-logo {
    max-height: 52px !important;
    max-width: min(75vw, 240px);
  }

  .p-header-inner {
    min-height: 64px;
    padding: 8px 0;
  }
}

/* ========== HERO / SLIDESHOW ========== */
.slideshow {
  background:
    radial-gradient(1200px 420px at 20% 0%, rgba(0, 102, 204, 0.15), transparent 55%),
    radial-gradient(900px 360px at 85% 10%, rgba(59, 155, 255, 0.08), transparent 55%),
    var(--p-bg);
}

.slideshow img {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(520px, 70vh);
  object-fit: cover;
}

.tp-banner-container {
  border-bottom: 1px solid var(--p-border);
}

/* ========== SECTIONS ========== */
.sections {
  padding: 64px 0 !important;
}

@media (min-width: 768px) {
  .sections {
    padding: 88px 0 !important;
  }
}

.sections-title {
  margin-bottom: 32px;
  text-align: center;
}

/* Unified section headings – same size, symmetric blue line below title */
.sections-title-h3 {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  margin: 0 auto 0;
  padding: 0 !important;
  text-align: center;
}

.sections-title-h3 h1,
.sections-title-h3 h2,
.sections-title-h3 h3,
.sections-title-h3 h4,
.p-footer-map-title {
  font-family: Poppins, Inter, sans-serif !important;
  font-size: clamp(1.5rem, 2.8vw, 1.875rem) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-transform: capitalize;
  color: var(--p-text) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.p-footer-map-title {
  color: var(--p-secondary) !important;
  letter-spacing: -0.02em;
}

/* Hide legacy theme lines – single symmetric line below heading only */
.sections-title-h3::before {
  display: none !important;
  content: none !important;
}

.sections-title-h3::after {
  content: "";
  display: block;
  width: min(320px, 90vw);
  height: 4px;
  margin: 22px auto 0;
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  border-radius: 0;
  background:
    linear-gradient(90deg, var(--p-primary-dark), var(--p-primary), var(--p-primary-light)) center / 56px 4px no-repeat,
    linear-gradient(90deg, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.14)) center / 100% 1px no-repeat;
  background-position: center center, center center;
}

.sections-title p,
.p-reviews-head p {
  color: var(--p-muted);
  font-size: 16px;
  max-width: 72ch;
  margin: 20px auto 0;
  line-height: 1.7;
}

.p-reviews-head {
  text-align: center;
  margin-bottom: 32px;
}

.p-reviews-head p {
  max-width: 48ch;
}

.p-footer-map-head {
  text-align: center;
  margin-bottom: 20px;
}

.p-footer-map-head .sections-title-h3 {
  display: block;
  width: 100%;
}

@media (max-width: 767px) {
  .sections-title-h3::after {
    width: min(280px, 92vw);
    margin-top: 18px;
    background:
      linear-gradient(90deg, var(--p-primary-dark), var(--p-primary), var(--p-primary-light)) center / 48px 4px no-repeat,
      linear-gradient(90deg, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.14)) center / 100% 1px no-repeat;
    background-position: center center, center center;
  }

  .sections-title-h3 h1,
  .sections-title-h3 h2,
  .sections-title-h3 h3,
  .sections-title-h3 h4,
  .p-footer-map-title {
    font-size: clamp(1.35rem, 5.5vw, 1.5rem) !important;
  }
}

/* Override legacy theme heading spacing */
.sections-title-h3 h1,
.sections-title-h3 h2,
.sections-title-h3 h3,
.sections-title-h3 h4 {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.sections-title {
  text-align: center;
}

.section-2 {
  background: transparent !important;
}

/* Product grid */
.section-2 .row {
  margin-left: -12px;
  margin-right: -12px;
}

.portfolio-slide.bxslider-slide {
  padding-top: 0 !important;
}

.portfolio-slide .bx-controls-direction {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 20px auto 0 !important;
  text-align: center;
}

.portfolio-item {
  padding: 12px;
  margin-bottom: 0 !important;
}

.portfolio-one {
  height: 100%;
  margin-bottom: 0 !important;
  border-radius: var(--p-radius) !important;
  border: 1px solid var(--p-border);
  background: var(--p-surface) !important;
  box-shadow: var(--p-shadow-sm) !important;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-one:hover {
  transform: translateY(-4px);
  box-shadow: var(--p-shadow) !important;
}

.portfolio-img {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), transparent);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-img img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  padding: 16px;
}

.portfolio-content {
  padding: 18px 20px 22px !important;
  border-top: 1px solid var(--p-border);
}

.portfolio-content > i {
  background: rgba(0, 102, 204, 0.1) !important;
  color: var(--p-primary) !important;
  border-radius: 8px;
}

.portfolio-meta h6 {
  margin: 0;
}

.portfolio-meta h6 a {
  color: var(--p-secondary) !important;
  font-weight: 600;
}

.portfolio-hover {
  background: rgba(15, 23, 42, 0.45) !important;
}

/* Google reviews */
.google-reviews-section {
  background: var(--p-surface) !important;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-sm) !important;
}

.google-reviews-section h2 {
  color: var(--p-secondary) !important;
}

.google-reviews-section h2::after {
  background: linear-gradient(90deg, var(--p-primary-dark), var(--p-primary), var(--p-primary-light)) !important;
}

/* ========== FOOTER (light premium – logo-friendly) ========== */
#footer.p-site-footer {
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(0, 102, 204, 0.06), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(59, 155, 255, 0.06), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 35%, #eef4fb 100%) !important;
  padding: 0 !important;
  border-top: 1px solid var(--p-border);
  color: var(--p-muted) !important;
  position: relative;
  overflow: hidden;
}

#footer.p-site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p-primary), var(--p-primary-light), var(--p-primary));
  background-size: 200% 100%;
  animation: p-footer-shine 8s linear infinite;
}

@keyframes p-footer-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

#footer.p-site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 204, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 204, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 80%);
  pointer-events: none;
}

.p-footer-top {
  padding: 64px 0 44px;
  position: relative;
  z-index: 1;
}

.p-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .p-footer-grid {
    grid-template-columns: minmax(260px, 1fr) 1.45fr 0.95fr;
    gap: 40px 48px;
    align-items: start;
  }
}

.p-footer-brand {
  padding: 20px 0 0;
}

@media (min-width: 768px) {
  .p-footer-brand {
    padding: 8px 24px 0 0;
    border-right: 1px solid var(--p-border);
  }
}

.p-footer-logo {
  display: inline-block;
  margin-bottom: 18px;
}

.p-footer-logo__wrap {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  line-height: 0;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.p-footer-logo img,
.p-footer-logo .p-site-logo {
  max-height: 130px;
  max-width: 380px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: normal;
  filter: none;
  transition: opacity 0.3s ease;
}

.p-footer-logo:hover .p-footer-logo__wrap {
  box-shadow: none;
  border-color: transparent;
}

.p-footer-logo:hover img {
  opacity: 0.92;
}

@media (max-width: 767px) {
  .p-footer-logo img,
  .p-footer-logo .p-site-logo {
    max-height: 110px;
    max-width: 320px;
  }
}

.p-footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: var(--p-muted);
  margin: 0 0 18px;
  max-width: 34ch;
}

.p-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.p-footer-badges span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--p-primary);
  background: rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.18);
}

.p-footer-badges span:nth-child(2) {
  color: var(--p-primary-dark);
  border-color: rgba(0, 102, 204, 0.28);
  background: rgba(0, 102, 204, 0.08);
}

.p-footer-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-footer-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  color: var(--p-secondary) !important;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.p-footer-contact-card:hover {
  background: #fff;
  border-color: rgba(0, 102, 204, 0.35);
  color: var(--p-primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 102, 204, 0.12);
}

.p-footer-contact-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--p-primary), #004c99);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.25);
}

.p-footer-col.footer-widget {
  position: relative;
}

#footer .widget-title::before {
  display: none !important;
}

#footer .widget-title h6,
#footer .p-footer-subtitle h6 {
  color: var(--p-secondary) !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding: 0 0 0 14px;
  border-bottom: none !important;
  position: relative;
}

#footer .widget-title h6::before,
#footer .p-footer-subtitle h6::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--p-primary-light), var(--p-primary));
}

#footer .widget-title h6::after,
#footer .p-footer-subtitle h6::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(0, 102, 204, 0.35), var(--p-border), transparent);
}

#footer .p-footer-subtitle {
  margin-top: 32px;
}

.p-footer-links > ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.p-footer-links--cols > ul {
  column-count: 1;
  column-gap: 24px;
}

@media (min-width: 576px) {
  .p-footer-links--cols > ul {
    column-count: 2;
  }
}

.p-footer-links > ul > li {
  margin-bottom: 6px !important;
  padding: 0 !important;
  border: none !important;
  list-style: none !important;
  break-inside: avoid;
}

.p-footer-links > ul > li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--p-muted) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease, padding-left 0.25s ease;
}

.p-footer-links > ul > li a i {
  color: var(--p-primary);
  font-size: 11px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.1);
  opacity: 1;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.p-footer-links > ul > li a:hover {
  color: var(--p-primary) !important;
  background: rgba(0, 102, 204, 0.08);
  padding-left: 14px;
}

.p-footer-links > ul > li a:hover i {
  transform: translateX(2px);
  background: var(--p-primary);
  color: #fff;
}

.p-footer-map {
  padding: 8px 0 52px;
  position: relative;
  z-index: 1;
}

.p-footer-map-head {
  margin-bottom: 20px;
}

.p-footer-map-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-primary);
  margin-bottom: 8px;
}

#footer .map-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid var(--p-border) !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1) !important;
}

@media (min-width: 768px) {
  #footer .map-container {
    flex-direction: row;
    align-items: stretch;
  }
}

#footer .map {
  flex: 1.65;
  min-height: 300px;
  position: relative;
}

#footer .map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset -16px 0 32px rgba(15, 23, 42, 0.04);
}

#footer .map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  filter: none;
}

#footer .address {
  flex: 1;
  padding: 32px 28px !important;
  background:
    linear-gradient(155deg, var(--p-primary) 0%, #004c99 50%, #003d7a 100%) !important;
  border-left: none !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#footer .address::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 155, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.p-footer-address-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  #footer .address {
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
}

#footer .address h3 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff !important;
  font-family: Poppins, Inter, sans-serif;
  position: relative;
}

#footer .address h3::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--p-primary-light), rgba(255, 255, 255, 0.55));
  margin-top: 12px;
  border-radius: 2px;
}

#footer .address p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92) !important;
  position: relative;
}

#footer-bottom.p-footer-bottom {
  background: linear-gradient(180deg, #e8eef6, #dfe8f3) !important;
  padding: 20px 0 !important;
  border-top: 1px solid var(--p-border);
  position: relative;
}

#footer-bottom.p-footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(200px, 40%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.4), transparent);
}

.p-footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.p-footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--p-muted);
}

#footer-bottom .navigation-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#footer-bottom .navigation-footer a {
  color: var(--p-secondary) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--p-border);
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

#footer-bottom .navigation-footer a:hover {
  color: #fff !important;
  border-color: var(--p-primary);
  background: var(--p-primary);
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.25);
}

#footer-bottom a:hover {
  color: var(--p-primary) !important;
}

@media (prefers-reduced-motion: reduce) {
  #footer.p-site-footer::before {
    animation: none;
  }

  .p-footer-logo img,
  .p-footer-contact-card {
    transition: none;
  }
}

/* ========== RESPONSIVE – FOOTER & GLOBAL ========== */
@media (max-width: 767px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .p-footer-top {
    padding: 44px 0 32px;
  }

  .p-footer-brand {
    padding: 0;
    text-align: center;
  }

  .p-footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .p-footer-tagline {
    max-width: none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .p-footer-badges {
    justify-content: center;
  }

  .p-footer-contact-cards {
    max-width: 420px;
    margin: 0 auto;
  }

  .p-footer-contact-card__text {
    word-break: break-word;
  }

  .p-footer-links--cols > ul {
    column-count: 1;
  }

  .p-footer-map {
    padding: 0 0 40px;
  }

  .p-footer-map-head {
    text-align: center;
  }

  #footer .map {
    min-height: 220px;
  }

  #footer .map iframe {
    min-height: 220px;
  }

  #footer .address {
    padding: 24px 20px !important;
  }

  .p-footer-bottom__inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  #footer-bottom .navigation-footer {
    justify-content: center;
    width: 100%;
  }

  .go-up {
    right: 14px !important;
    bottom: 80px !important;
  }
}

@media (max-width: 990px) {
  #header.p-site-header {
    height: auto !important;
    padding-bottom: 0 !important;
  }

  #header.p-site-header .logo a {
    display: block !important;
    text-align: left !important;
    float: none !important;
  }
}

/* Go up button */
.go-up {
  background: var(--p-primary) !important;
  border-radius: 12px !important;
  color: #fff !important;
  box-shadow: var(--p-shadow-sm);
}

.go-up:hover {
  background: #004c99 !important;
}

/* Scroll reveal */
.p-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.p-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .p-reveal,
  .portfolio-one {
    transition: none !important;
  }
}

/* Focus */
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--p-ring);
}
