/*
Theme Name: Mapat Hosting
Theme URI: https://mapat-hosting.com
Author: Mapat Hosting
Description: Et moderne, redigerbart block-theme til Mapat Hosting med mørkt paneldesign, serverpakker og links til Paymenter og Pterodactyl.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: mapat-hosting
*/

:root {
  --mh-bg: #070b10;
  --mh-bg-soft: #0b1119;
  --mh-surface: #101923;
  --mh-surface-2: #14202c;
  --mh-border: #223242;
  --mh-border-bright: #2d4a60;
  --mh-text: #f5f8fb;
  --mh-muted: #91a6ba;
  --mh-accent: #18aeea;
  --mh-accent-2: #087db8;
  --mh-green: #36d484;
  --mh-radius: 16px;
  --mh-shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--mh-bg);
  color: var(--mh-text);
  overflow-x: hidden;
}

a {
  transition: color .2s ease, opacity .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.wp-site-blocks {
  overflow: hidden;
}

.mh-site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 18px 22px 0;
}

.admin-bar .mh-site-header {
  top: 32px;
}

.mh-navbar {
  width: min(1180px, calc(100vw - 44px));
  margin: 0 auto;
  padding: 12px 14px 12px 20px;
  border: 1px solid rgba(130, 164, 193, .18);
  border-radius: 15px;
  background: rgba(11, 17, 25, .82);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mh-brand {
  gap: 10px;
  flex-shrink: 0;
}

.mh-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(24, 174, 234, .48);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(24, 174, 234, .28), rgba(24, 174, 234, .06));
  color: #7dd9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.03em;
  box-shadow: inset 0 0 22px rgba(24, 174, 234, .1);
}

.mh-brand .wp-block-site-title {
  margin: 0;
  white-space: nowrap;
}

.mh-brand .wp-block-site-title a {
  color: var(--mh-text);
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -.04em;
  text-decoration: none;
}

.mh-nav {
  font-size: 14px;
  font-weight: 600;
}

.mh-nav a {
  color: #b7c5d2 !important;
}

.mh-nav a:hover {
  color: #fff !important;
}

.mh-header-actions {
  flex-shrink: 0;
  gap: 8px;
}

.wp-block-button .wp-block-button__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--mh-accent), var(--mh-accent-2));
  color: #fff;
  font-weight: 750;
  box-shadow: 0 10px 30px rgba(0, 148, 214, .2);
}

.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 148, 214, .3);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.mh-button-secondary .wp-block-button__link {
  border-color: var(--mh-border-bright);
  background: rgba(16, 25, 35, .7);
  color: #dce8f2;
  box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.mh-button-secondary .wp-block-button__link:hover {
  border-color: var(--mh-accent);
  background: rgba(24, 174, 234, .08);
  color: #fff;
}

.mh-small-button .wp-block-button__link {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 13px;
}

.mh-hero {
  position: relative;
  min-height: 780px;
  padding: 170px 24px 105px;
  background:
    radial-gradient(circle at 76% 36%, rgba(24, 174, 234, .2), transparent 26%),
    radial-gradient(circle at 18% 18%, rgba(31, 91, 132, .14), transparent 30%),
    linear-gradient(180deg, #070b10 0%, #09111a 58%, #070b10 100%);
}

.mh-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(81, 127, 158, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 127, 158, .055) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  pointer-events: none;
}

.mh-hero::after {
  position: absolute;
  right: -190px;
  bottom: 5%;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(24, 174, 234, .14);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 130px rgba(24, 174, 234, .09), inset 0 0 90px rgba(24, 174, 234, .05);
  pointer-events: none;
}

.mh-hero-inner {
  position: relative;
  z-index: 2;
}

.mh-eyebrow {
  margin-bottom: 22px !important;
  color: #9de4ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.mh-eyebrow::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 12px;
  background: var(--mh-accent);
  content: "";
  box-shadow: 0 0 18px rgba(24, 174, 234, .7);
}

.mh-hero-title {
  max-width: 680px;
  margin-top: 0;
  font-size: clamp(48px, 6vw, 82px) !important;
  line-height: .98 !important;
  letter-spacing: -.055em;
}

.mh-gradient-text {
  background: linear-gradient(100deg, #fff 8%, #a8dfff 55%, #18aeea 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mh-hero-copy {
  max-width: 630px;
  margin-top: 26px !important;
  color: #adbdca;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

.mh-hero-buttons {
  margin-top: 34px !important;
}

.mh-microcopy {
  margin-top: 18px !important;
  color: #6f8799;
  font-size: 13px;
}

.mh-dashboard-wrap {
  position: relative;
  padding: 30px 0 20px 34px;
}

.mh-dashboard-wrap::before {
  position: absolute;
  inset: 2% 0 0 3%;
  border-radius: 50%;
  background: rgba(24, 174, 234, .14);
  filter: blur(65px);
  content: "";
}

.mh-dashboard {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(93, 143, 177, .29);
  border-radius: 19px;
  background: linear-gradient(160deg, rgba(17, 28, 39, .98), rgba(8, 14, 21, .98));
  box-shadow: 0 34px 100px rgba(0, 0, 0, .48), 0 0 55px rgba(24, 174, 234, .07);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.mh-dashboard::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .035), transparent 32%);
  content: "";
  pointer-events: none;
}

.mh-window-dots {
  margin-bottom: 20px !important;
  color: #52697c;
  font-size: 17px;
  letter-spacing: .18em;
}

.mh-server-head {
  margin-bottom: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--mh-border);
}

.mh-server-head h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.mh-server-status {
  margin: 0 !important;
  color: #a4b6c5;
  font-size: 13px;
}

.mh-server-status::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mh-green);
  content: "";
  box-shadow: 0 0 12px rgba(54, 212, 132, .65);
}

.mh-stat-grid {
  gap: 10px;
}

.mh-stat {
  min-height: 88px;
  padding: 15px;
  border: 1px solid var(--mh-border);
  border-radius: 11px;
  background: rgba(18, 29, 40, .75);
}

.mh-stat p {
  margin: 0;
}

.mh-stat-label {
  color: #7892a6;
  font-size: 12px;
}

.mh-stat-value {
  margin-top: 6px !important;
  color: #f2f8fc;
  font-size: 16px;
  font-weight: 750;
}

.mh-chart {
  position: relative;
  height: 128px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--mh-border);
  border-radius: 11px;
  background:
    linear-gradient(rgba(92, 128, 151, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 128, 151, .08) 1px, transparent 1px),
    rgba(12, 20, 29, .82);
  background-size: 100% 40px, 54px 100%, auto;
}

.mh-chart::before {
  position: absolute;
  right: -3%;
  bottom: 0;
  width: 74%;
  height: 68%;
  background: linear-gradient(180deg, rgba(24, 174, 234, .52), rgba(24, 174, 234, .04));
  clip-path: polygon(0 88%, 14% 80%, 25% 84%, 38% 58%, 48% 64%, 59% 27%, 70% 35%, 82% 10%, 100% 18%, 100% 100%, 0 100%);
  content: "";
}

.mh-chart::after {
  position: absolute;
  top: 23px;
  right: 13px;
  color: #82a1b8;
  content: "Live performance";
  font-size: 11px;
}

.mh-trust-row {
  position: relative;
  z-index: 3;
  margin-top: -48px;
  padding: 0 24px 76px;
}

.mh-trust-inner {
  padding: 18px 24px;
  border: 1px solid var(--mh-border);
  border-radius: 15px;
  background: rgba(13, 21, 30, .94);
  box-shadow: var(--mh-shadow);
}

.mh-trust-item {
  color: #a9bbc9;
  font-size: 14px;
}

.mh-trust-item strong {
  color: #fff;
}

.mh-trust-dot {
  color: var(--mh-green);
}

.mh-section {
  position: relative;
  padding: 104px 24px;
}

.mh-section-alt {
  border-top: 1px solid rgba(57, 84, 105, .22);
  border-bottom: 1px solid rgba(57, 84, 105, .22);
  background: var(--mh-bg-soft);
}

.mh-section-heading {
  max-width: 750px;
  margin: 0 auto 54px;
  text-align: center;
}

.mh-section-heading h2 {
  margin: 12px 0 16px;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.mh-section-heading p {
  color: var(--mh-muted);
  font-size: 17px;
  line-height: 1.7;
}

.mh-card-grid {
  gap: 18px;
}

.mh-plan-card,
.mh-feature-card,
.mh-step-card,
.mh-faq-item {
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  background: linear-gradient(160deg, rgba(18, 29, 40, .92), rgba(10, 16, 24, .94));
}

.mh-plan-card {
  position: relative;
  min-height: 100%;
  padding: 27px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.mh-plan-card:hover {
  border-color: var(--mh-border-bright);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .28);
  transform: translateY(-5px);
}

.mh-plan-card.is-featured {
  border-color: rgba(24, 174, 234, .56);
  box-shadow: 0 0 45px rgba(24, 174, 234, .1);
}

.mh-plan-icon,
.mh-feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px !important;
  place-items: center;
  border: 1px solid rgba(24, 174, 234, .32);
  border-radius: 12px;
  background: rgba(24, 174, 234, .1);
  color: #7edcff;
  font-weight: 800;
}

.mh-plan-card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.025em;
}

.mh-plan-desc {
  min-height: 52px;
  color: var(--mh-muted);
  font-size: 14px;
  line-height: 1.65;
}

.mh-price {
  margin: 23px 0 4px !important;
  color: #fff;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.mh-price small {
  color: #7890a2;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.mh-plan-list {
  margin: 22px 0 26px;
  padding: 20px 0 0 20px;
  border-top: 1px solid var(--mh-border);
  color: #b8c7d3;
  font-size: 14px;
  line-height: 2;
}

.mh-plan-list li::marker {
  color: var(--mh-accent);
}

.mh-plan-card .wp-block-button,
.mh-plan-card .wp-block-button__link {
  width: 100%;
}

.mh-badge {
  position: absolute;
  top: 19px;
  right: 19px;
  padding: 6px 9px;
  border: 1px solid rgba(24, 174, 234, .34);
  border-radius: 999px;
  background: rgba(24, 174, 234, .1);
  color: #83dcff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mh-feature-card {
  min-height: 100%;
  padding: 27px;
}

.mh-feature-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.mh-feature-card p {
  margin: 0;
  color: var(--mh-muted);
  font-size: 14px;
  line-height: 1.7;
}

.mh-hardware {
  overflow: hidden;
  border: 1px solid var(--mh-border);
  border-radius: 21px;
  background:
    radial-gradient(circle at 12% 30%, rgba(24, 174, 234, .14), transparent 30%),
    linear-gradient(135deg, #111c27, #0a1017);
  box-shadow: var(--mh-shadow);
}

.mh-hardware-copy {
  padding: 52px;
}

.mh-hardware-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(35px, 4vw, 51px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.mh-hardware-copy > p {
  color: var(--mh-muted);
  line-height: 1.75;
}

.mh-metrics {
  gap: 10px;
  margin-top: 28px;
}

.mh-metric {
  padding: 17px;
  border: 1px solid var(--mh-border);
  border-radius: 11px;
  background: rgba(6, 11, 16, .48);
}

.mh-metric strong {
  display: block;
  color: #fff;
  font-size: 19px;
}

.mh-metric span {
  display: block;
  margin-top: 5px;
  color: #7f96a8;
  font-size: 12px;
}

.mh-rack {
  min-height: 430px;
  padding: 54px 48px;
  background: linear-gradient(180deg, rgba(24, 174, 234, .08), transparent);
}

.mh-rack-unit {
  position: relative;
  height: 72px;
  margin-bottom: 13px;
  border: 1px solid #2b4052;
  border-radius: 9px;
  background: linear-gradient(180deg, #172430, #0c141c);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.mh-rack-unit::before {
  position: absolute;
  top: 25px;
  left: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mh-green);
  content: "";
  box-shadow: 18px 0 0 #18aeea, 36px 0 0 #18aeea, 0 0 14px rgba(54, 212, 132, .7);
}

.mh-rack-unit::after {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 42%;
  height: 28px;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg, #263b4c 0 3px, transparent 3px 8px);
  content: "";
}

.mh-steps {
  counter-reset: steps;
  gap: 18px;
}

.mh-step-card {
  position: relative;
  min-height: 195px;
  padding: 29px;
  counter-increment: steps;
}

.mh-step-card::before {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 25px;
  place-items: center;
  border: 1px solid rgba(24, 174, 234, .4);
  border-radius: 10px;
  background: rgba(24, 174, 234, .1);
  color: #90e3ff;
  content: "0" counter(steps);
  font-size: 12px;
  font-weight: 800;
}

.mh-step-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.mh-step-card p {
  margin: 0;
  color: var(--mh-muted);
  font-size: 14px;
  line-height: 1.7;
}

.mh-faq {
  max-width: 850px;
  margin: 0 auto;
}

.mh-faq-item {
  margin-bottom: 11px;
  padding: 0 22px;
}

.mh-faq-item summary {
  padding: 22px 34px 22px 0;
  color: #f4f8fb;
  cursor: pointer;
  font-weight: 700;
}

.mh-faq-item p {
  padding: 0 0 20px;
  color: var(--mh-muted);
  line-height: 1.7;
}

.mh-cta {
  overflow: hidden;
  padding: 66px 50px;
  border: 1px solid rgba(24, 174, 234, .42);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 18%, rgba(24, 174, 234, .28), transparent 28%),
    linear-gradient(135deg, #102231, #0a1119 70%);
  box-shadow: 0 26px 75px rgba(0, 0, 0, .34);
}

.mh-cta h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -.045em;
}

.mh-cta p {
  color: #a8bbc9;
  font-size: 17px;
}

.mh-site-footer {
  padding: 62px 24px 30px;
  border-top: 1px solid var(--mh-border);
  background: #070b10;
}

.mh-footer-top {
  padding-bottom: 38px;
}

.mh-footer-title {
  margin-top: 0;
  font-size: 22px;
}

.mh-footer-copy,
.mh-footer-column p,
.mh-footer-column a {
  color: #8197a9;
  font-size: 14px;
  line-height: 1.8;
}

.mh-footer-column h3 {
  margin-top: 0;
  font-size: 15px;
}

.mh-footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--mh-border);
  color: #607689;
  font-size: 12px;
}

.mh-archive-main {
  min-height: 70vh;
  padding: 150px 24px 90px;
}

@media (max-width: 980px) {
  .mh-header-actions .mh-customer-button {
    display: none;
  }

  .mh-dashboard-wrap {
    padding: 40px 0 0;
  }

  .mh-dashboard {
    transform: none;
  }

  .mh-hero {
    padding-top: 145px;
  }

  .mh-hero .wp-block-columns,
  .mh-hardware.wp-block-columns {
    flex-wrap: wrap !important;
  }

  .mh-hero .wp-block-column,
  .mh-hardware .wp-block-column {
    flex-basis: 100% !important;
  }

  .mh-card-grid {
    flex-wrap: wrap !important;
  }

  .mh-card-grid > .wp-block-column {
    flex-basis: calc(50% - 10px) !important;
  }

  .mh-rack {
    min-height: 340px;
  }
}

@media (max-width: 700px) {
  .admin-bar .mh-site-header {
    top: 46px;
  }

  .mh-site-header {
    padding: 10px 12px 0;
  }

  .mh-navbar {
    width: calc(100vw - 24px);
    padding: 10px 11px 10px 14px;
  }

  .mh-header-actions {
    display: none;
  }

  .mh-nav {
    display: flex;
  }

  .mh-nav .wp-block-navigation__responsive-container-open {
    color: #fff;
  }

  .mh-nav .wp-block-navigation__responsive-container {
    background: #0a1118 !important;
    color: #fff !important;
  }

  .mh-nav .wp-block-navigation__responsive-container-content {
    padding: 80px 28px 28px !important;
  }

  .mh-hero {
    min-height: auto;
    padding: 132px 20px 94px;
  }

  .mh-hero-title {
    font-size: 48px !important;
  }

  .mh-hero-copy {
    font-size: 17px;
  }

  .mh-hero-buttons .wp-block-button,
  .mh-hero-buttons .wp-block-button__link {
    width: 100%;
  }

  .mh-dashboard {
    padding: 17px;
  }

  .mh-stat-grid {
    flex-wrap: wrap !important;
  }

  .mh-stat-grid > .wp-block-column {
    flex-basis: calc(50% - 5px) !important;
  }

  .mh-trust-row {
    margin-top: -28px;
  }

  .mh-trust-inner {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 9px;
  }

  .mh-section {
    padding: 78px 20px;
  }

  .mh-card-grid > .wp-block-column {
    flex-basis: 100% !important;
  }

  .mh-hardware-copy {
    padding: 34px 25px;
  }

  .mh-rack {
    min-height: 300px;
    padding: 38px 25px;
  }

  .mh-cta {
    padding: 42px 25px;
  }

  .mh-cta .wp-block-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .mh-cta .wp-block-button,
  .mh-cta .wp-block-button__link {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
