/* Gnome IT Solutions — performance + professional polish */

:root {
  --gnome-primary: #ee5586;
  --gnome-primary-dark: #a5215e;
  --gnome-accent: #ffc107;
  --gnome-text: #212122;
  --gnome-muted: #5e686c;
  --gnome-surface: #ffffff;
  --gnome-surface-alt: #f4f7fb;
  --gnome-border: #e8edf3;
  --gnome-shadow: 0 12px 40px rgba(21, 33, 42, 0.08);
  --gnome-radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--gnome-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[data-background="light"] .box-container .bg-colorstyle,
[data-background="light"] .box-container .bg-seccolorstyle {
  background-color: var(--gnome-surface) !important;
}

[data-background="light"] .box-container .mergecolor,
[data-background="light"] .box-container .section-heading {
  color: var(--gnome-text) !important;
}

[data-background="light"] .box-container .seccolor {
  color: var(--gnome-muted) !important;
}

[data-color="pink"] .total-grad-pink-blue-intense {
  background: linear-gradient(135deg, #1a1020 0%, #2d1240 45%, #110c0c 100%) !important;
}

/* Header */
.infonews {
  font-size: 0.92rem;
}

.menu-wrap {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.nav-menu .logo-menu {
  max-height: 50px;
  width: auto;
}

[data-background="light"] .box-container #header .logo-menu.d-block {
  display: inline-block !important;
}

.main-menu > .menu-item > a {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sub-menu.menu-large {
  border-radius: var(--gnome-radius);
  box-shadow: var(--gnome-shadow);
  border: 1px solid var(--gnome-border);
}

/* ===== Support megamenu (side-by-side white + pink panels) ===== */
.nav-menu .main-menu > .menu-item.menu-last {
  position: relative;
}

.nav-menu .main-menu > .menu-item.menu-last > .sub-menu.megamenu {
  left: auto !important;
  right: 0 !important;
  width: 820px;
  max-width: min(820px, calc(100vw - 32px));
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.sub-menu.megamenu > .container {
  max-width: 100%;
  padding: 0;
}

.sub-menu.megamenu > .container > .row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(21, 33, 42, 0.16);
}

.sub-menu.megamenu .service-list.col-md-9 {
  flex: 1 1 auto;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  padding: 26px 22px !important;
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.sub-menu.megamenu .service-list > .row {
  margin: 0;
}

.sub-menu.megamenu .service-list .service {
  padding: 10px 8px;
}

.sub-menu.megamenu .service-list .media-body a {
  color: #212122 !important;
  line-height: 1.4;
}

.sub-menu.megamenu .start-offer.col-md-3 {
  flex: 0 0 270px;
  width: 270px !important;
  min-width: 270px;
  max-width: 270px;
  margin-top: 0 !important;
  float: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: block !important;
}

.sub-menu.megamenu .start-offer .inner {
  height: 100%;
  min-height: 100%;
  border: none !important;
  border-radius: 0 !important;
  padding: 26px 22px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sub-menu.megamenu .start-offer .inner .title {
  font-size: 18px;
  line-height: 1.35;
  white-space: normal;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.sub-menu.megamenu .start-offer .inner .inner-content {
  font-size: 14px;
  line-height: 1.55;
}

.sub-menu.megamenu .start-offer .inner .btn {
  align-self: flex-start;
  margin-top: 14px !important;
}

@media (max-width: 991px) {
  .nav-menu .main-menu > .menu-item.menu-last > .sub-menu.megamenu {
    width: calc(100vw - 32px);
  }

  .sub-menu.megamenu > .container > .row {
    flex-direction: column;
  }

  .sub-menu.megamenu .start-offer.col-md-3 {
    flex: 0 0 auto;
    width: 100% !important;
    min-width: 0;
    max-width: none;
  }
}

/* Hero / slider */
.main-container.slider .slider-content .container {
  position: relative;
}

.main-container.slider .slider-content .container > [class*="col-"] {
  position: relative;
  z-index: 2;
}

.main-container.slider .slider-content h1,
.main-container.slider .slider-content .hero-slide-title {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: #ffffff !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.22);
}

.main-container.slider .slider-content .hero-slide-title {
  margin-bottom: 0.5rem;
}

.section-heading {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subheading {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  color: var(--gnome-muted);
}

.services.sec-normal {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.service-section {
  border-radius: var(--gnome-radius);
  border: 1px solid var(--gnome-border);
  box-shadow: var(--gnome-shadow);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(21, 33, 42, 0.11);
}

.feature-icon {
  min-height: 56px;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--gnome-primary);
}

.services.exapath {
  background: linear-gradient(180deg, #eef2ff 0%, #f8faff 100%) !important;
}

.pricing.special .wrapper {
  overflow: hidden;
  isolation: isolate;
}

.pricing.special .wrapper .plans.badge.feat {
  right: 0;
  top: 0;
  border-radius: 0 15px 0 12px;
  padding: 8px 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.pricing.special.sec-up-slider {
  position: relative;
  z-index: 2;
}

.trust-strip {
  background: var(--gnome-surface);
  border-top: 1px solid var(--gnome-border);
  border-bottom: 1px solid var(--gnome-border);
  padding: 1.25rem 0;
}

.trust-strip .trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--gnome-muted);
  font-size: 0.95rem;
}

.trust-strip .trust-item i {
  color: var(--gnome-primary);
}

.main-container.slider .subheading {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 36rem;
}

.header-main-slider .carousel-cell {
  min-height: 520px;
}

/* 3D hero illustrations — keep fully inside slider (overflow is hidden on flickity) */
.custom-element-right {
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  width: 50% !important;
  max-width: 580px !important;
  min-width: 280px;
  height: auto !important;
  max-height: min(480px, 72vh) !important;
  margin: 0 !important;
  overflow: visible !important;
  object-fit: contain;
  object-position: center right;
  opacity: 0.95;
  z-index: 1;
  pointer-events: none;
}

/* Cards & pricing */
.pricing .wrapper,
.help-container,
.sec-main {
  border-radius: var(--gnome-radius);
}

.pricing .wrapper {
  box-shadow: var(--gnome-shadow);
  border: 1px solid var(--gnome-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing .wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(21, 33, 42, 0.12);
}

/* VPS plan carousel — preserve complete cards at every breakpoint */
.slick #slider.slick-initialized .slick-slide {
  max-width: none !important;
  max-height: none !important;
}

.slick #slider .plan-container .wrapper {
  overflow: hidden;
}

/* Cloud VPS pricing — static responsive comparison grid */
.vps-pricing-section {
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.vps-pricing-section .section-subheading {
  margin-bottom: 2.5rem;
}

.vps-plan-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.vps-plan-grid .plan-container {
  min-width: 0;
}

.vps-plan-grid .plan-container:nth-child(4) {
  order: 1;
}

.vps-plan-grid .plan-container:nth-child(1) {
  order: 2;
}

.vps-plan-grid .plan-container:nth-child(2) {
  order: 3;
}

.vps-plan-grid .plan-container:nth-child(3) {
  order: 4;
}

.vps-plan-grid .wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid var(--gnome-border);
  border-top: 4px solid var(--gnome-primary);
  border-radius: 12px;
  box-shadow: var(--gnome-shadow) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vps-plan-grid .wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(21, 33, 42, 0.14) !important;
}

.vps-plan-grid .top-content {
  min-height: 286px;
  padding: 34px 24px 24px;
  text-align: center;
  background: #fff !important;
}

.vps-plan-grid .top-content > svg {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
}

.vps-plan-grid .title {
  min-height: 52px;
  color: #172235 !important;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.vps-plan-grid .fromer {
  margin-top: 4px;
  color: var(--gnome-muted) !important;
  font-size: 13px;
}

.vps-plan-grid .price {
  margin: 12px 0 2px;
  color: #172235 !important;
  font-size: 34px;
  font-weight: 800;
}

.vps-plan-grid .period {
  color: var(--gnome-muted);
  font-size: 14px;
}

.vps-plan-grid .top-content .btn {
  display: block;
  width: 100%;
  margin-top: 20px;
}

.vps-plan-grid .plans.badge.feat {
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  background: var(--gnome-primary) !important;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vps-plan-grid .list-info {
  flex: 1;
  margin: 0;
  padding: 24px;
  list-style: none;
  background: #fff6fa !important;
  border-top: 1px solid #f5d9e4;
}

.vps-plan-grid .list-info li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  color: #172235 !important;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid rgba(238, 85, 134, 0.1);
}

.vps-plan-grid .list-info li:last-child {
  border-bottom: 0;
}

.vps-plan-grid .list-info li i {
  flex: 0 0 32px;
  margin: 0 !important;
  color: var(--gnome-primary) !important;
  font-size: 27px;
}

.vps-plan-grid .list-info li span {
  color: var(--gnome-muted) !important;
  font-weight: 600;
}

.vps-pricing-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 28px;
  margin-top: 38px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--gnome-border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(21, 33, 42, 0.06);
}

.vps-pricing-benefits div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.vps-pricing-benefits i {
  color: var(--gnome-primary);
}

@media (max-width: 1050px) {
  .vps-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vps-plan-grid {
    grid-template-columns: 1fr;
    width: min(430px, calc(100% - 28px));
  }

  .vps-pricing-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 590px) {
  .slick.sec-normal {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .slick #slider {
    padding: 0 16px 36px;
  }

  .slick #slider .plan-container {
    padding: 0 6px;
  }

  .slick #slider .plan-container .wrapper {
    width: 100%;
    max-width: 420px;
    margin: 24px auto 0;
  }

  .slick #slider .plan-container .wrapper .top-content,
  .slick #slider .plan-container .wrapper .list-info {
    padding-left: 28px;
    padding-right: 28px;
  }

  .slick #slider:not(.slick-initialized) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .slick #slider:not(.slick-initialized) .plan-container {
    width: 100%;
  }

  .slick #slider .slick-dots {
    bottom: 0;
  }
}

.help-container {
  border: 1px solid var(--gnome-border);
  box-shadow: var(--gnome-shadow);
}

.help-container .img {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-container .img i {
  font-size: 2rem;
  color: var(--gnome-primary);
}

/* Fix empty lazyload boxes */
.lazyload:empty {
  min-height: 0;
}

/* Tables */
.table {
  border-radius: var(--gnome-radius);
  overflow: hidden;
}

.table thead th {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* Buttons */
.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-default-yellow-fill {
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.25);
}

.btn-default-pink-fill {
  box-shadow: 0 8px 24px rgba(238, 85, 134, 0.22);
}

/* Footer */
.footer {
  background: #0f1720;
}

.footer .footer-primary-logo,
[data-background="light"] .box-container .footer .footer-primary-logo {
  display: block !important;
  width: 181px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer .hosting-award {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 0 1rem;
  border-radius: 6px;
}

.footer .heading {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.footer-menu a {
  transition: color 0.15s ease;
}

.footer-menu a:hover {
  color: var(--gnome-primary);
}

/* Reduce animation flash — show content immediately */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Performance: lazy images */
img[loading="lazy"] {
  content-visibility: auto;
}

/* Skip link for accessibility/SEO */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--gnome-accent);
  color: #111;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

@media (max-width: 1199px) {
  .custom-element-right {
    width: 44% !important;
    max-width: 460px !important;
    max-height: min(400px, 60vh) !important;
  }
}

@media (max-width: 991px) {
  .custom-element-right {
    display: block !important;
    right: -15px !important;
    width: 40% !important;
    max-width: 360px !important;
    min-width: 240px;
    max-height: 340px !important;
    opacity: 0.72;
  }

  .header-main-slider .carousel-cell {
    min-height: 460px;
  }
}

@media (max-width: 575px) {
  .custom-element-right {
    right: -45px !important;
    width: 72% !important;
    min-width: 260px;
    max-width: 380px !important;
    opacity: 0.18;
  }

  .header-main-slider .carousel-cell {
    min-height: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
