/* ============================================
   AVAXIA DESIGN OVERRIDES
   Applied after hq7ba.css to improve UX/UI
   ============================================ */

/* ------------------------------------------
   1. DESKTOP NAVIGATION IN HEADER
   ------------------------------------------ */
.po-header-nav {
  display: none;
}

@media (min-width: 1024px) {
  .po-header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-right: 1.5rem;
  }
  .po-header-nav a {
    color: #333;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
  }
  .po-header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--avaxia-blue);
    transition: width 0.3s ease;
  }
  .po-header-nav a:hover {
    color: var(--avaxia-blue);
  }
  .po-header-nav a:hover::after {
    width: 100%;
  }
  .po-header > .po-wrapper {
    height: 70px !important;
  }
  .po-site-browse {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

/* ------------------------------------------
   2. IMPROVED TEXT CONTRAST / READABILITY
   ------------------------------------------ */
body {
  color: #3a3a3a !important;
  line-height: 1.75 !important;
}

p {
  color: #3a3a3a;
  line-height: 1.8;
}

h1, h2, h3, h4 {
  color: #1a1a2e;
}

.po-home-about p,
.po-home-products p,
.po-home-services p,
.hserv-text {
  color: #3a3a3a !important;
}

/* ------------------------------------------
   3. REDUCE EXCESSIVE SECTION SPACING
   ------------------------------------------ */
.po-home-about {
  padding-top: 80px !important;
  margin-bottom: 0 !important;
}

.po-home-services {
  padding-top: 60px !important;
}

.po-home-products {
  padding-top: 20px !important;
}

.po-home-partners {
  padding-top: 80px !important;
  padding-bottom: 60px !important;
}

.po-home-industries {
  margin-top: 0 !important;
  padding-top: 60px;
  padding-bottom: 80px;
}

.po-home-stats {
  margin-top: 0 !important;
}

/* ------------------------------------------
   4. SECTION BACKGROUND ALTERNATION
   ------------------------------------------ */
.po-home-services {
  background-color: #f7f9fc;
}

.po-home-partners {
  background-color: #f7f9fc;
}

.po-home-industries {
  background-color: #fff;
}

/* ------------------------------------------
   5. HERO SECTION IMPROVEMENTS
   ------------------------------------------ */
.po-home-hero {
  height: calc(90vh - 70px) !important;
}

.po-hero-welcome h1 {
  color: #1a1a2e !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

.po-hero-welcome h3 {
  color: #444 !important;
}

/* Hero CTA - replace triangle with a proper button */
.po-hero-cta .po-tri-btn svg {
  display: none !important;
}

.po-hero-cta .po-tri-btn > div::after {
  display: none !important;
}

.po-hero-cta .po-tri-btn a {
  display: inline-block;
  padding: 14px 36px !important;
  background-color: var(--avaxia-blue);
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.po-hero-cta .po-tri-btn a:hover {
  background-color: #003080;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 64, 152, 0.3);
}

/* ------------------------------------------
   6. CTA BUTTONS - Replace triangles with proper buttons
   ------------------------------------------ */

/* About CTA */
.po-habout-cta .po-tri-btn svg {
  display: none !important;
}
.po-habout-cta .po-tri-btn > div::before {
  display: none !important;
}
.po-habout-cta .po-tri-btn a {
  display: inline-block;
  padding: 12px 32px !important;
  background-color: transparent;
  color: var(--avaxia-blue) !important;
  font-size: 0.95rem !important;
  font-weight: 500;
  border: 2px solid var(--avaxia-blue);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.po-habout-cta .po-tri-btn a:hover {
  background-color: var(--avaxia-blue);
  color: #fff !important;
}

/* Services CTA */
.po-hserv-cta .po-tri-btn svg {
  display: none !important;
}
.po-hserv-cta .po-tri-btn > div::after,
.po-hserv-cta .po-tri-btn > div::before {
  display: none !important;
}
.po-hserv-cta .po-tri-btn a {
  display: inline-block;
  padding: 12px 32px !important;
  background-color: var(--poey-green);
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.po-hserv-cta .po-tri-btn a:hover {
  background-color: #2aad4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
}

/* Products CTA */
.po-hprod-cta .po-tri-btn svg {
  display: none !important;
}
.po-hprod-cta .po-tri-btn > div::before {
  display: none !important;
}
.po-hprod-cta .po-tri-btn a {
  display: inline-block;
  padding: 12px 32px !important;
  background-color: transparent;
  color: var(--avaxia-blue) !important;
  font-size: 0.95rem !important;
  font-weight: 500;
  border: 2px solid var(--avaxia-blue);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.po-hprod-cta .po-tri-btn a:hover {
  background-color: var(--avaxia-blue);
  color: #fff !important;
}

/* ------------------------------------------
   7. SECTION LABELS - Horizontal instead of vertical
   ------------------------------------------ */
@media (min-width: 1024px) {
  .po-home-about .po-s-title.sver,
  .po-home-services .po-s-title.sver,
  .po-home-products .po-s-title.sver {
    transform: none !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin-bottom: 2rem;
  }

  .po-home-about .po-s-title.sver h2,
  .po-home-services .po-s-title.sver h2,
  .po-home-products .po-s-title.sver h2 {
    left: auto !important;
    font-size: 2rem !important;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #1a1a2e;
  }

  .po-home-about .po-s-title h2::after,
  .po-home-services .po-s-title h2::after,
  .po-home-products .po-s-title h2::after {
    width: 80px !important;
  }
}

/* ------------------------------------------
   8. STATS SECTION - Visual Impact
   ------------------------------------------ */
.po-home-stats {
  position: relative;
}

.po-hstats-cover {
  opacity: 0.15 !important;
}

.po-home-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0a1628 0%, #1a2d50 50%, #004098 100%);
  z-index: 0;
}

.po-home-stats .po-wrapper {
  position: relative;
  z-index: 2;
}

.hstats-title h2 {
  color: #fff !important;
}

.hstats-text h3 {
  color: #fff !important;
}

.hstats-text h3 strong {
  color: #fff !important;
  font-size: 3.5rem;
}

.hstats-text h3 sub {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hstats-text h3 sup {
  color: var(--poey-orange) !important;
}

.hstats-title {
  border-right-color: rgba(255, 255, 255, 0.4) !important;
}

/* ------------------------------------------
   9. PARTNERS SECTION - Better framing
   ------------------------------------------ */
.po-home-partners .po-s-title h2 {
  color: #1a1a2e;
}

#hpart-grid {
  padding: 30px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

#hpart-grid .wp-block-column {
  padding: 15px 20px;
}

#hpart-grid img {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

#hpart-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ------------------------------------------
   10. INDUSTRY CARDS - Hover overlay
   ------------------------------------------ */
.po-home-industries .wp-block-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.po-home-industries .wp-block-image img {
  transition: transform 0.5s ease;
}

.po-home-industries .wp-block-image:hover img {
  transform: scale(1.05);
}

.po-home-industries figcaption {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 20px 16px 14px !important;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
  color: #fff !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 !important;
  transform: none !important;
  writing-mode: horizontal-tb !important;
}

/* Hide the old vertical rotated labels on industries */
.po-home-industries .hindust-grid .wp-block-column {
  position: relative;
}

/* ------------------------------------------
   11. FOOTER - Enriched and better structured
   ------------------------------------------ */
.po-footer {
  background-color: #f8f9fa !important;
  padding-top: 80px !important;
  border-top: none !important;
}

.sfooter-text {
  border-left-color: var(--avaxia-blue) !important;
  color: #3a3a3a !important;
}

.sfooter-text a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 28px;
  background-color: var(--avaxia-blue);
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

.sfooter-text a:hover {
  background-color: #003080;
}

.sfooter-locations h3 {
  color: #1a1a2e !important;
  font-weight: 500;
}

.po-copy {
  background-color: #1a1a2e !important;
  color: rgba(255, 255, 255, 0.6) !important;
  padding: 14px 0 !important;
}

.po-copy div {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Footer bottom nav links */
.sfooter-bottom .wp-block-navigation-item__content {
  color: #555 !important;
  font-weight: 400;
  transition: color 0.3s ease;
}

.sfooter-bottom .wp-block-navigation-item__content:hover {
  color: var(--avaxia-blue) !important;
}

/* Footer social icon */
.sfooter-bottom .wp-social-link a {
  background-color: #555 !important;
  transition: background-color 0.3s ease;
}

.sfooter-bottom .wp-social-link a:hover {
  background-color: var(--avaxia-blue) !important;
}

/* ------------------------------------------
   12. SERVICES LIST - Better hover feedback
   ------------------------------------------ */
.hservlist-container > div {
  padding: 12px 0;
  transition: padding-left 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hservlist-container > div:hover {
  padding-left: 10px;
}

.hservlist-container h3 {
  color: #333 !important;
  transition: color 0.3s ease;
}

.hservlist-container > div:hover h3 {
  color: var(--poey-green) !important;
}

/* ------------------------------------------
   13. GENERAL POLISH
   ------------------------------------------ */

/* Smoother scrolling */
html {
  scroll-behavior: smooth;
}

/* Better image rendering */
img {
  image-rendering: auto;
}

/* Link transitions everywhere */
a {
  transition: color 0.3s ease;
}

/* Header shadow on scroll (subtle) */
.po-header {
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

/* Slightly better heading typography */
h1 {
  letter-spacing: -0.02em;
}

h2 {
  letter-spacing: -0.01em;
}

/* Better line height for readability */
.po-home-about p,
.po-home-products p {
  line-height: 1.85 !important;
}

/* Services page content improvements */
.services-catalog p {
  line-height: 1.8;
  color: #3a3a3a;
}

/* ------------------------------------------
   14. MOBILE REFINEMENTS
   ------------------------------------------ */
@media (max-width: 1023px) {
  .po-header-nav {
    display: none !important;
  }

  /* Keep triangle CTAs on mobile but smaller */
  .po-home-stats::before {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d50 50%, #004098 100%);
  }
}

@media (max-width: 768px) {
  .po-home-about {
    padding-top: 60px !important;
  }

  .po-home-partners {
    padding-top: 60px !important;
    padding-bottom: 40px !important;
  }

  #hpart-grid {
    flex-wrap: wrap !important;
    gap: 1rem;
  }

  #hpart-grid .wp-block-column {
    flex-basis: calc(33.33% - 1rem) !important;
  }

  .po-home-industries figcaption {
    font-size: 0.8rem !important;
    padding: 12px 10px 10px !important;
  }
}
