/* ============================================================
   Sky5G Vanuatu — Visual Enhancement Layer
   Overrides on top of Elementor base styles
   ============================================================ */

/* --- Smooth scrolling & base refinements --- */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- Background: full-cover fixed with dark overlay --- */
body[class*="elementor-page"] {
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  position: relative;
}

body[class*="elementor-page"]::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 20, 40, 0.82) 0%,
    rgba(15, 30, 60, 0.7) 40%,
    rgba(73, 154, 215, 0.25) 100%
  );
  z-index: 0;
  pointer-events: none;
}

body[class*="elementor-page"] > .elementor {
  position: relative;
  z-index: 1;
}

/* --- Header / Navbar: glass-morphism --- */
.e-con.e-parent:first-child {
  background: rgba(10, 18, 36, 0.65) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.e-con.e-parent:first-child:hover {
  background: rgba(10, 18, 36, 0.8) !important;
}

/* Logo polish */
.hfe-site-logo-img {
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.hfe-site-logo-img:hover {
  transform: scale(1.05);
}

/* Nav links refinement */
.hfe-nav-menu .menu-item a.hfe-menu-item {
  letter-spacing: 0.03em;
  font-size: 15px !important;
  font-weight: 500 !important;
  transition: color 0.25s ease, transform 0.2s ease;
  position: relative;
}

.hfe-nav-menu .menu-item a.hfe-menu-item::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #F26419, #FF9A5E);
  border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
}

.hfe-nav-menu .menu-item a.hfe-menu-item:hover::after,
.hfe-nav-menu .menu-item.current-menu-item a.hfe-menu-item::after {
  width: 60%;
  left: 20%;
}

.hfe-nav-menu .menu-item a.hfe-menu-item:hover {
  color: #FF9A5E !important;
}

/* --- Hero / Main content sections --- */
.e-con.e-parent:nth-child(2) {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* Content cards — the main content child containers */
.e-con.e-parent:nth-child(2) > .e-con-inner > .e-con.e-child {
  background: rgba(12, 22, 45, 0.65) !important;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 48px 40px !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.e-con.e-parent:nth-child(2) > .e-con-inner > .e-con.e-child:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* --- Headings --- */
h1.elementor-heading-title {
  font-size: clamp(2rem, 5vw, 3.2rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
  background: linear-gradient(135deg, #FFFFFF 0%, #e0e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px !important;
}

h2.elementor-heading-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
  line-height: 1.25 !important;
  background: linear-gradient(135deg, #FFFFFF 0%, #c8d8e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px !important;
}

/* Sub-headings in content (h2 inside text editor widgets) */
.elementor-widget-text-editor h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(242, 100, 25, 0.3);
}

.elementor-widget-text-editor h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #FF9A5E;
  letter-spacing: -0.005em;
  margin-top: 20px;
  margin-bottom: 8px;
}

/* Body text */
.elementor-widget-text-editor p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.elementor-widget-text-editor ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.elementor-widget-text-editor li {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: 6px;
  position: relative;
}

.elementor-widget-text-editor li::marker {
  color: #F26419;
}

.elementor-widget-text-editor li p {
  margin-bottom: 2px;
}

/* H6 section labels */
.elementor-widget-text-editor h6 {
  font-size: 11px !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5) !important;
  font-weight: 600;
  margin-bottom: 12px;
}

/* --- Buttons --- */
.elementor-button {
  background: linear-gradient(135deg, #F26419 0%, #e85d10 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 32px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  text-transform: none;
  box-shadow:
    0 4px 16px rgba(242, 100, 25, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.elementor-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.elementor-button:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 8px 28px rgba(242, 100, 25, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

.elementor-button:hover::before {
  opacity: 1;
}

.elementor-button:active {
  transform: translateY(0) !important;
}

/* --- Footer section (3rd+ parent on multi-section pages) --- */
.e-con.e-parent:nth-child(n+3):last-child {
  background: rgba(8, 15, 30, 0.8) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  margin-top: 20px;
}

/* Footer grid container (multi-section pages) */
.e-con.e-parent:nth-child(n+3):last-child .e-con.e-child[class*="e-grid"],
.e-con.e-parent:nth-child(n+3):last-child > .e-con-inner > .e-con.e-child {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 16px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Reset hover for footer children */
.e-con.e-parent:nth-child(n+3):last-child > .e-con-inner > .e-con.e-child:hover,
.e-con.e-parent:nth-child(n+3):last-child .e-con.e-child:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Home page: footer is 2nd child in the grid inside the 2nd parent */
.e-con.e-parent:nth-child(2) > .e-con-inner > .e-con.e-child.e-grid {
  background: rgba(8, 15, 30, 0.75) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px 24px !important;
  margin-top: 20px;
}

.e-con.e-parent:nth-child(2) > .e-con-inner > .e-con.e-child.e-grid:hover {
  transform: none;
}

/* Footer grid inner children (both layouts) */
.e-con.e-child.e-grid > .e-con.e-child {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 12px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.e-con.e-child.e-grid > .e-con.e-child:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Footer section titles (both layouts) */
.e-con.e-child.e-grid h6,
.e-con.e-child.e-grid .elementor-widget-text-editor h6 {
  font-size: 11px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F26419 !important;
  -webkit-text-fill-color: #F26419 !important;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(242, 100, 25, 0.2);
}

/* Footer links (both layouts) */
.e-con.e-child.e-grid .elementor-icon-list-text {
  transition: color 0.25s ease, transform 0.2s ease;
  font-size: 14px;
}

.e-con.e-child.e-grid .elementor-icon-list-item a:hover .elementor-icon-list-text {
  color: #FF9A5E !important;
  transform: translateX(4px);
}

.e-con.e-child.e-grid .elementor-icon-list-icon svg {
  fill: rgba(255, 255, 255, 0.35) !important;
  transition: fill 0.25s ease;
}

.e-con.e-child.e-grid .elementor-icon-list-item a:hover .elementor-icon-list-icon svg {
  fill: #F26419 !important;
}

/* --- AddToAny social share — restyle floating buttons --- */
.a2a_floating_style {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.a2a_floating_style:hover {
  opacity: 1;
}

/* Hide the bottom inline share bar (clutters the page) */
.addtoany_content_bottom {
  display: none;
}

/* --- Scroll-triggered fade-in animations --- */
.sky5g-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sky5g-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays for child elements */
.sky5g-fade-in:nth-child(2) { transition-delay: 0.1s; }
.sky5g-fade-in:nth-child(3) { transition-delay: 0.2s; }
.sky5g-fade-in:nth-child(4) { transition-delay: 0.3s; }

/* --- Selection color --- */
::selection {
  background: rgba(242, 100, 25, 0.35);
  color: #fff;
}

/* --- Scrollbar styling (webkit) --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 18, 36, 0.95);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #F26419, #499AD7);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FF9A5E, #6bb8e8);
}

/* --- Mobile refinements --- */
@media (max-width: 1024px) {
  .e-con.e-parent:first-child {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .e-con.e-parent:nth-child(2) > .e-con-inner > .e-con.e-child {
    padding: 32px 24px !important;
    border-radius: 12px;
  }

  /* Mobile dropdown nav styling */
  nav.hfe-dropdown,
  nav.hfe-dropdown-expandible {
    background: rgba(10, 18, 36, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
    margin-top: 8px;
    overflow: hidden;
  }

  nav.hfe-dropdown .menu-item a.hfe-menu-item,
  nav.hfe-dropdown .menu-item a.hfe-sub-menu-item,
  nav.hfe-dropdown-expandible .menu-item a.hfe-menu-item,
  nav.hfe-dropdown-expandible .menu-item a.hfe-sub-menu-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  /* Hamburger toggle */
  .hfe-nav-menu__toggle {
    color: #fff !important;
  }
}

@media (max-width: 767px) {
  body[class*="elementor-page"] {
    background-attachment: scroll !important;
  }

  .e-con.e-parent:nth-child(2) {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .e-con.e-parent:nth-child(2) > .e-con-inner > .e-con.e-child {
    padding: 28px 20px !important;
    margin-left: 8px;
    margin-right: 8px;
  }

  h1.elementor-heading-title {
    font-size: 1.8rem !important;
  }

  h2.elementor-heading-title {
    font-size: 1.5rem !important;
  }

  .elementor-button {
    padding: 12px 24px !important;
    font-size: 14px !important;
    width: 100%;
    text-align: center;
  }
}

/* --- Print styles --- */
@media print {
  body[class*="elementor-page"]::before,
  .a2a_floating_style,
  .lang-switcher {
    display: none !important;
  }
}
