/* ==========================================================================
   GreatHost — Shared service page styling (/services/*)
   Matches the visual language of the homepage: fixed grid backdrop,
   transparent sections, blue gradient headings and glass cards.
   Per page accents can be tuned with --svc-accent.
   ========================================================================== */

:root {
  --svc-accent: #60a5fa;
  --svc-glass: linear-gradient(160deg, rgba(17, 26, 46, 0.88), rgba(15, 23, 42, 0.55));
  --svc-border: rgba(59, 130, 246, 0.2);
  --svc-border-strong: rgba(96, 165, 250, 0.55);
}

/* --------------------------------------------------------------------------
   Page canvas — identical backdrop to the homepage so the pages sit on the
   same surface instead of an isolated lighter slab.
   -------------------------------------------------------------------------- */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-image:
    radial-gradient(circle at center, rgba(30, 64, 175, 0.1) 0%, #0f172a 80%),
    linear-gradient(rgba(59, 130, 246, 0.15) 2px, transparent 2px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.15) 2px, transparent 2px);
  background-size: 100% 100%, 50px 50px, 50px 50px;
  background-color: #0f172a;
  background-attachment: fixed;
  background-position: center center;
  color: #e2e8f0;
  min-height: 100vh;
  padding-top: 0 !important;
}

/* The navbar scrolls with the page (as on the homepage). This removes the
   80px dead strip that used to sit above the hero. */
.navbar {
  position: relative !important;
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Shared typography
   -------------------------------------------------------------------------- */
.svc-title,
.section-title {
  color: #2563eb;
  background-image: linear-gradient(45deg, #2563eb, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.svc-subtitle,
.section-subtitle,
.feature-description,
.plan-price-period {
  color: #e2e8f0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.svc-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.svc-section-header .section-title::after {
  content: '';
  display: block;
  width: 84px;
  height: 4px;
  margin: 1.1rem auto 1.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
/* No per-section glow here on purpose: any radial placed on a section gets
   clipped at the section edge and shows up as a hard horizontal seam. The
   ambient light comes from the fixed body backdrop instead. */
.svc-hero {
  position: relative;
  padding: 4rem 0 5rem;
  background: transparent;
}

.svc-hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.svc-hero-content {
  max-width: 640px;
}

.svc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  backdrop-filter: blur(10px);
}

.svc-title {
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.svc-subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.svc-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.svc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease,
    border-color 0.3s ease;
}

.svc-btn-primary {
  color: #fff;
  background: linear-gradient(45deg, #2563eb, #3b82f6);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.svc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.svc-btn-outline {
  color: var(--text-primary);
  border-color: rgba(59, 130, 246, 0.4);
  background: transparent;
}

.svc-btn-outline:hover {
  transform: translateY(-2px);
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.7);
}

/* Hero highlight chips */
.svc-hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.svc-highlight {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #cbd5e1;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.35));
  border: 1px solid rgba(59, 130, 246, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.svc-highlight:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.45);
}

.svc-highlight svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--svc-accent);
}

/* Hero artwork */
.svc-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The artwork floats free, with no frame, matching the homepage hero logo. */
.svc-hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
}

.svc-hero-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: svcFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 18px 32px rgba(2, 6, 23, 0.55));
}

@keyframes svcFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* --------------------------------------------------------------------------
   Plans
   -------------------------------------------------------------------------- */
.plans-section {
  position: relative;
  padding: 5rem 0;
  background: transparent;
}

/* Monthly / lifetime switch */
.billing-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 0;
}

.billing-toggle .toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.billing-toggle .toggle-label.active {
  color: #93c5fd;
}

.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
  flex-shrink: 0;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease;
  pointer-events: none;
}

.slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #93c5fd;
  transition: transform 0.3s ease, background 0.3s ease;
}

.switch input:checked + .slider {
  background: rgba(37, 99, 235, 0.45);
  border-color: rgba(147, 197, 253, 0.7);
}

.switch input:checked + .slider::before {
  transform: translateX(26px);
  background: #fff;
}

.switch input:focus-visible + .slider {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.lifetime-badge-promo {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Family selector, used by the VPS page (KVM / LXC / VPS-V2) */
.vps-family-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.vps-family-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--text-secondary);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.35));
  border: 1px solid rgba(59, 130, 246, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease,
    box-shadow 0.3s ease;
}

.vps-family-tab:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.45);
}

.vps-family-tab.active {
  color: var(--text-primary);
  border-color: rgba(147, 197, 253, 0.7);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 20px rgba(59, 130, 246, 0.2);
}

.vps-family-name {
  font-size: 1rem;
  font-weight: 700;
}

.vps-family-tab.active .vps-family-name {
  color: #93c5fd;
}

/* The location distinguishes the two KVM tabs, so it stays clearly legible. */
.vps-family-region {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cbd5e1;
}

.vps-family-tab.active .vps-family-region {
  color: #e2e8f0;
}

.vps-family-note {
  margin: 2rem auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.vps-family-note:empty {
  display: none;
}

/* Grid holding every plan */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 3rem;
}

.plans-grid[hidden] {
  display: none;
}

.plans-message {
  grid-column: 1 / -1;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  border-radius: 1rem;
  background: var(--svc-glass);
  border: 1px dashed var(--svc-border);
}

/* Plan card */
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  border-radius: 1rem;
  text-align: left;
  background: var(--svc-glass);
  border: 1px solid var(--svc-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: var(--svc-border-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 22px rgba(59, 130, 246, 0.18);
}

.plan-card.featured {
  border-color: rgba(147, 197, 253, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), 0 0 26px rgba(59, 130, 246, 0.28);
}

.plan-card.lifetime {
  border-color: rgba(245, 158, 11, 0.3);
}

.plan-card.lifetime:hover,
.plan-card.lifetime.featured {
  border-color: rgba(252, 211, 77, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), 0 0 26px rgba(245, 158, 11, 0.25);
}

.plan-ribbon {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: #0b1120;
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
}

/* Placeholder that keeps unhighlighted cards vertically aligned */
.plan-ribbon.is-empty {
  visibility: hidden;
}

.plan-card.lifetime .plan-ribbon {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
}

.plan-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.plan-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.plan-card.lifetime .plan-icon {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
}

.plan-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.plan-tier {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.plan-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #93c5fd;
}

.plan-card.lifetime .plan-price {
  color: #fcd34d;
}

.plan-price-period {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.plan-specs {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  flex: 1;
}

.plan-spec {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.plan-spec svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  color: var(--svc-accent);
}

.plan-card.lifetime .plan-spec svg {
  color: #fcd34d;
}

.plan-spec.is-highlight {
  font-weight: 700;
  color: #fcd34d;
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(45deg, #2563eb, #3b82f6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.45);
}

.plan-card.lifetime .plan-cta {
  color: #1f1300;
  background: linear-gradient(45deg, #f59e0b, #fcd34d);
}

.plan-card.lifetime .plan-cta:hover {
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.4);
}

/* Footer banner under the plans */
.more-packages-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(17, 26, 46, 0.8), rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(59, 130, 246, 0.16);
}

.more-packages-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.more-packages-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.more-packages-copy {
  flex: 1 1 260px;
}

.more-packages-copy h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.more-packages-copy p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.svc-features-section {
  position: relative;
  padding: 5rem 0 6rem;
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 2rem;
  border-radius: 1rem;
  text-align: left;
  background: var(--svc-glass);
  border: 1px solid var(--svc-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--svc-border-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 22px rgba(59, 130, 246, 0.18);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.feature-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */
.svc-cta-section {
  padding: 0 0 6rem;
}

.svc-cta-inner {
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  text-align: center;
  background:
    radial-gradient(600px circle at 50% 0%, rgba(37, 99, 235, 0.22), transparent 70%),
    linear-gradient(160deg, rgba(17, 26, 46, 0.9), rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
}

.svc-cta-inner h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 0.85rem;
  color: #2563eb;
  background-image: linear-gradient(45deg, #2563eb, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.svc-cta-inner p {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.svc-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .svc-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .svc-hero-content {
    max-width: none;
  }

  .svc-hero-visual {
    order: -1;
  }

  .svc-hero-cta,
  .svc-hero-highlights {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .svc-hero {
    padding: 2.5rem 0 3.5rem;
  }

  .svc-hero-art {
    max-width: 220px;
  }

  .svc-hero-highlights {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .plans-section,
  .svc-features-section {
    padding: 3rem 0;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .svc-section-header {
    margin-bottom: 2.25rem;
  }

  .more-packages-banner {
    padding: 1.5rem;
  }

  .feature-card {
    padding: 1.75rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-hero-art img {
    animation: none;
  }

  .plan-card,
  .feature-card,
  .svc-highlight,
  .svc-btn,
  .plan-cta {
    transition: none;
  }

  .plan-card:hover,
  .feature-card:hover,
  .svc-highlight:hover,
  .svc-btn:hover,
  .plan-cta:hover {
    transform: none;
  }
}
