/* ==========================================================================
   PEOPLESOFT AUSTRALIA - BRAND DESIGN SYSTEM & BUTTON STYLES
   ========================================================================== */

:root {
  --primary: #6f1f90 !important;
  --secondary: #b5179e !important;
  --primary-hover: #5a1776 !important;
  --primary-rgb: 111, 31, 144 !important;
  --secondary-rgb: 181, 23, 158 !important;
  --brand-gradient: linear-gradient(135deg, #6f1f90 0%, #86198f 45%, #c026d3 100%) !important;
  --brand-gradient-hover: linear-gradient(135deg, #7c22a3 0%, #9d174d 45%, #d946ef 100%) !important;
  --brand-gradient-sec: linear-gradient(135deg, #b5179e 0%, #c026d3 50%, #d946ef 100%) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   1. LOGO SIZING & VISIBILITY (DESKTOP, STICKY & SCROLL DOWN)
   ══════════════════════════════════════════════════════════════════════════ */

.logo-header {
  width: 250px !important;
  height: 80px !important;
  align-items: center !important;
}

.logo-header a {
  display: inline-block !important;
  vertical-align: middle !important;
}

.logo-header img {
  height: 52px !important;
  max-height: 56px !important;
  width: auto !important;
  object-fit: contain !important;
  transition: all 0.3s ease !important;
}

/* When header is scrolled down (.is-fixed) */
.is-fixed .logo-header img,
.main-bar-wraper.is-fixed .logo-header img {
  height: 48px !important;
  max-height: 52px !important;
}

/* Desktop Visibility Rules: Guarantee exactly ONE logo in desktop header */
@media (min-width: 992px) {
  /* ALWAYS hide mobile menu drawer logo inside header-nav / W3Menu on desktop */
  .header-nav .logo-header,
  #W3Menu .logo-header,
  .w3menu .logo-header,
  .mo-left .logo-header {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* 1. At Top of Page (When NOT fixed / not scrolled):
        Show white logo, hide dark logo */
  .main-bar-wraper:not(.is-fixed) .inner-bar > .logo-header.logo-light,
  .sticky-header:not(.is-fixed) .inner-bar > .logo-header.logo-light {
    display: flex !important;
  }
  .main-bar-wraper:not(.is-fixed) .inner-bar > .logo-header.logo-dark,
  .sticky-header:not(.is-fixed) .inner-bar > .logo-header.logo-dark {
    display: none !important;
  }

  /* 2. After Scroll Down (When sticky-header has .is-fixed with white background):
        Show dark logo with crisp purple PeopleSoft wordmark, hide white logo */
  .is-fixed .logo-header.logo-light,
  .is-fixed .inner-bar > .logo-header.logo-light,
  .sticky-header.is-fixed .logo-header.logo-light,
  .main-bar-wraper.is-fixed .logo-header.logo-light {
    display: none !important;
  }

  .is-fixed .logo-header.logo-dark,
  .is-fixed .inner-bar > .logo-header.logo-dark,
  .sticky-header.is-fixed .logo-header.logo-dark,
  .main-bar-wraper.is-fixed .logo-header.logo-dark {
    display: flex !important;
  }

  /* 3. Non-transparent header pages (if header background is already white/light):
        Show dark logo, hide white logo */
  .site-header:not(.header-transparent) .inner-bar > .logo-header.logo-light {
    display: none !important;
  }
  .site-header:not(.header-transparent) .inner-bar > .logo-header.logo-dark {
    display: flex !important;
  }
}

/* Big Footer Logo */
.footer-logo {
  margin-bottom: 22px !important;
}
.footer-logo img {
  height: 60px !important;
  max-height: 65px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 991px) {
  html,
  body {
    overflow-x: clip !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   2. ULTRA-PREMIUM BUTTON SYSTEM (APPLIED ACROSS ALL PAGES)
   ══════════════════════════════════════════════════════════════════════════ */

/* Header "Enquiry" Button */
.extra-nav .btn-primary,
.extra-nav .btn-rounded,
.btn-enquiry {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #6f1f90 0%, #86198f 45%, #c026d3 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 50px !important;
  padding: 10px 24px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.35px !important;
  line-height: 1.2 !important;
  box-shadow: 0 4px 18px rgba(111, 31, 144, 0.35), 0 2px 6px rgba(192, 38, 211, 0.2) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  z-index: 1 !important;
  text-decoration: none !important;
}

/* Shimmer Sheen Reflection on Hover */
.extra-nav .btn-primary::before,
.extra-nav .btn-rounded::before,
.btn-enquiry::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  ) !important;
  transition: all 0.65s ease !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.extra-nav .btn-primary:hover::before,
.extra-nav .btn-rounded:hover::before,
.btn-enquiry:hover::before {
  left: 100% !important;
}

.extra-nav .btn-primary:hover,
.extra-nav .btn-rounded:hover,
.btn-enquiry:hover {
  background: linear-gradient(135deg, #7c22a3 0%, #9d174d 45%, #d946ef 100%) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 26px rgba(111, 31, 144, 0.48), 0 4px 12px rgba(217, 70, 239, 0.32) !important;
  color: #ffffff !important;
}

.extra-nav .btn-primary:active,
.extra-nav .btn-rounded:active,
.btn-enquiry:active {
  transform: translateY(0) scale(0.98) !important;
  box-shadow: 0 3px 10px rgba(111, 31, 144, 0.3) !important;
}

/* Paper Plane Icon Styling */
.extra-nav .btn-primary i,
.extra-nav .btn-rounded i,
.btn-enquiry i {
  color: #ffffff !important;
  font-size: 13.5px !important;
  transition: transform 0.3s ease !important;
}

.extra-nav .btn-primary:hover i,
.extra-nav .btn-rounded:hover i,
.btn-enquiry:hover i {
  transform: translateX(3px) translateY(-1px) rotate(-8deg) !important;
}

@media (max-width: 575px) {
  .site-header .extra-nav .extra-cell {
    justify-content: center !important;
  }

  .site-header .extra-nav .extra-cell .header-right {
    justify-content: center !important;
  }

  #enquiryModal .modal-dialog,
  #enquiryModal .modal-content {
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  #enquiryModal .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   3. GLOBAL BUTTONS ACROSS ALL PAGES (.btn-primary, .btn-secondary, etc.)
   ══════════════════════════════════════════════════════════════════════════ */

.btn-primary {
  background: linear-gradient(135deg, #6f1f90 0%, #86198f 50%, #b5179e 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 4px 16px rgba(111, 31, 144, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #7c22a3 0%, #9d174d 50%, #c026d3 100%) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(111, 31, 144, 0.44), 0 3px 8px rgba(192, 38, 211, 0.25) !important;
}

.btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(111, 31, 144, 0.25) !important;
}

.btn-secondary {
  background: linear-gradient(135deg, #b5179e 0%, #c026d3 50%, #d946ef 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(181, 23, 158, 0.3) !important;
  transition: all 0.3s ease !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(135deg, #981184 0%, #a21caf 50%, #c026d3 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(181, 23, 158, 0.42) !important;
}

.btn-rounded {
  border-radius: 50px !important;
}

.btn-outline-primary {
  color: #6f1f90 !important;
  border: 2px solid #6f1f90 !important;
  background: transparent !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: linear-gradient(135deg, #6f1f90 0%, #b5179e 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(111, 31, 144, 0.35) !important;
}

/* Hero Section CTA Buttons */
.hero-btn-group .btn-primary {
  padding: 13px 32px !important;
  font-size: 15px !important;
  border-radius: 50px !important;
}

.hero-btn-group .btn-outline-light {
  background: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  padding: 13px 28px !important;
  font-size: 15px !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
}

.hero-btn-group .btn-outline-light:hover {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.25) !important;
}

.hero-btn-group .btn-white {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1.5px solid #ffffff !important;
  padding: 13px 28px !important;
  font-size: 15px !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.3s ease !important;
}

.hero-btn-group .btn-white:hover {
  background: #fdf4ff !important;
  color: #6f1f90 !important;
  border-color: #fdf4ff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(111, 31, 144, 0.2) !important;
}

/* Quick Enquiry Modal Submit Button */
#enquiryModal .btn-primary {
  background: linear-gradient(135deg, #6f1f90 0%, #86198f 50%, #c026d3 100%) !important;
  border-radius: 50px !important;
  padding: 13px 28px !important;
  font-size: 15.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 6px 20px rgba(111, 31, 144, 0.35) !important;
}

#enquiryModal .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(111, 31, 144, 0.48) !important;
}

/* Brand Text & Background Utilities */
.text-primary {
  color: #6f1f90 !important;
}
.text-secondary {
  color: #64748b !important;
}
.bg-primary {
  background-color: #6f1f90 !important;
}
.bg-secondary {
  background-color: #b5179e !important;
}

/* Footer Case & Wrap Fix */
.widget_services a[href^="mailto:"],
.widget_services a[href^="mailto:"] span,
a[href^="mailto:"],
a[href^="mailto:"] span {
  text-transform: lowercase !important;
  white-space: nowrap !important;
}
.widget_services a[href^="tel:"],
.widget_services a[href^="tel:"] span {
  text-transform: none !important;
  white-space: nowrap !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   4. PRELOADER (BIG LOGO SIZE & REFINED ANIMATION)
   ══════════════════════════════════════════════════════════════════════════ */

.dz-loader {
  background: #ffffff !important;
  pointer-events: none !important;
}

.dz-loader .dz-loader-info .text-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Big Preloader Logo */
.dz-loader .text-center .logo,
.dz-loader .dz-loader-info .logo,
.dz-loader-info img.logo {
  width: 290px !important;
  max-width: 85vw !important;
  height: auto !important;
  max-height: 85px !important;
  margin-bottom: 22px !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 16px rgba(111, 31, 144, 0.22)) !important;
  animation: preloaderPulse 1.8s ease-in-out infinite alternate !important;
}

@keyframes preloaderPulse {
  0% {
    transform: scale(0.97);
    opacity: 0.92;
  }
  100% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@media only screen and (max-width: 991px) {
  .dz-loader .text-center .logo,
  .dz-loader .dz-loader-info .logo,
  .dz-loader-info img.logo {
    width: 230px !important;
    max-height: 70px !important;
  }
}

@media only screen and (max-width: 575px) {
  .dz-loader .text-center .logo,
  .dz-loader .dz-loader-info .logo,
  .dz-loader-info img.logo {
    width: 190px !important;
    max-height: 60px !important;
  }
}

/* Brand colored loading text */
.dz-loader .dz-loader-info .load-text {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 5px !important;
  text-transform: uppercase !important;
  color: #6f1f90 !important;
  margin-top: 8px !important;
}

.dz-loader .dz-loader-info .load-text span {
  color: #6f1f90 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   5. CUSTOM ENQUIRY MODAL (MATCHING CLEAN MODERN DESIGN SPEC)
   ══════════════════════════════════════════════════════════════════════════ */
#enquiryModal .modal-content {
  border-radius: 20px !important;
  border: none !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22) !important;
}

#enquiryModal .custom-enquiry-input-group .input-group-text {
  background-color: #f3f4f8 !important;
  border: 1px solid #e2e8f0 !important;
  border-right: none !important;
  border-radius: 12px 0 0 12px !important;
  color: #64748b !important;
  padding: 10px 16px !important;
  font-size: 15px !important;
}

#enquiryModal .custom-enquiry-input-group .form-control {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: none !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  color: #1e293b !important;
}

#enquiryModal .custom-enquiry-input-group .form-control::placeholder,
#enquiryModal .custom-enquiry-textarea::placeholder {
  color: #94a3b8 !important;
  font-size: 13.5px !important;
}

#enquiryModal .custom-enquiry-input-group .form-control:focus {
  border-color: #6f1f90 !important;
  box-shadow: 0 0 0 3px rgba(111, 31, 144, 0.12) !important;
}

#enquiryModal .custom-enquiry-select {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  color: #1e293b !important;
  height: 44px !important;
}

#enquiryModal .custom-enquiry-select:focus {
  border-color: #6f1f90 !important;
  box-shadow: 0 0 0 3px rgba(111, 31, 144, 0.12) !important;
}

#enquiryModal .custom-enquiry-textarea {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  color: #1e293b !important;
}

#enquiryModal .custom-enquiry-textarea:focus {
  border-color: #6f1f90 !important;
  box-shadow: 0 0 0 3px rgba(111, 31, 144, 0.12) !important;
}

#enquiryModal {
  z-index: 100000 !important;
}

.main-bar-wraper.is-fixed .inner-bar > .logo-header.logo-light,
.sticky-header.is-fixed .inner-bar > .logo-header.logo-light {
  display: none !important;
}

.main-bar-wraper.is-fixed .inner-bar > .logo-header.logo-dark,
.sticky-header.is-fixed .inner-bar > .logo-header.logo-dark {
  display: flex !important;
}
