/* ═══════════════════════════════════════════════════════
   GDATA GROUP — hardware.css
   Scope: Hardware rental page (hero, brand tabs, server
   cards with term selector & spec list). Same palette as
   the rest of the site: --accent #0D59F2 / #3D7FFF, cyan
   #48D6FF / #00C8D4, on the --bg-main #00193C background.
   ═══════════════════════════════════════════════════════ */

:root {
  --hw-text: #FFFFFF;
  --hw-muted: #94A3B8;
  --hw-line: rgba(255, 255, 255, 0.08);
  --hw-card: rgba(255, 255, 255, 0.03);
}

/* ─────────────────────────────────────────────────────
   0. SHARED LAYOUT
   ───────────────────────────────────────────────────── */
.hw-container {
  margin: 0 auto;
  padding: 0 102px;
}

@media (max-width: 991px) {
  .hw-container { padding: 0 24px; }
}

/* ─────────────────────────────────────────────────────
   1. HERO
   ───────────────────────────────────────────────────── */
.hw-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse 70% 80% at 85% 40%, rgba(13, 89, 242, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 0% 90%, rgba(0, 200, 212, 0.10) 0%, transparent 60%);
}

.hw-hero-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 560px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 214, 255, 0.16) 0%, transparent 65%);
  filter: blur(12px);
  pointer-events: none;
}

.hw-hero .hw-container { position: relative; z-index: 1; }

.hw-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hw-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(13, 89, 242, 0.16);
  border: 1px solid rgba(72, 214, 255, 0.35);
  color: #48D6FF;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hw-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48D6FF;
  box-shadow: 0 0 10px rgba(72, 214, 255, 0.7);
  animation: hw-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes hw-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: 0.7; }
}

.hw-hero-title {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--hw-text);
  margin: 0 0 18px;
}

.hw-hero-desc {
  max-width: 520px;
  color: var(--hw-muted);
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0;
}

.hw-hero-right { display: flex; justify-content: center; }

.hw-hero-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

/* ─────────────────────────────────────────────────────
   2. TABS
   ───────────────────────────────────────────────────── */
.hw-plans { padding: 56px 0 96px; }

.hw-tabs {
  position: relative;
  display: flex;
  gap: 0;
  max-width: 620px;
  margin: 0 auto 56px;
}

.hw-tab {
  flex: 1;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 12px 22px;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  color: var(--hw-muted);
  white-space: nowrap;
  transition: color var(--dur, .3s) var(--ease, ease);
}

.hw-tab:hover { color: #CBD5E1; }
.hw-tab.is-active { color: var(--hw-text); }

.hw-tabs-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.hw-tabs-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent, #0D59F2), #48D6FF);
  transition: transform var(--dur, .3s) var(--ease, ease),
              width var(--dur, .3s) var(--ease, ease);
}

/* ─────────────────────────────────────────────────────
   2b. CARDS
   ───────────────────────────────────────────────────── */
.hw-panel[hidden] { display: none; }

.hw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.hw-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hw-line);
  border-radius: 18px;
  background: var(--hw-card);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform var(--dur, .3s) var(--ease, ease),
              border-color var(--dur, .3s) var(--ease, ease),
              box-shadow var(--dur, .3s) var(--ease, ease);
}

.hw-card:hover {
  transform: translateY(-6px);
  border-color: rgba(72, 214, 255, 0.4);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

/* top zone: image + name + price + button */
.hw-card-top {
  padding: 26px 22px 24px;
  text-align: center;
  border-bottom: 1px solid var(--hw-line);
}

.hw-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  margin-bottom: 18px;
}

.hw-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.hw-card-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  line-height: 1;
  color: #48D6FF;
  filter: drop-shadow(0 8px 16px rgba(13, 89, 242, 0.4));
}

.hw-card-name {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  background: linear-gradient(90deg, #3D7FFF 0%, #48D6FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hw-card-price {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--hw-text);
  margin-bottom: 18px;
}

.hw-card-cta {
  display: inline-block;
  padding: 11px 36px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(90deg, var(--accent, #0D59F2), #3D7FFF);
  box-shadow: 0 8px 22px rgba(13, 89, 242, 0.4);
  transition: transform var(--dur, .3s) var(--ease, ease),
              box-shadow var(--dur, .3s) var(--ease, ease);
}

.hw-card-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(13, 89, 242, 0.6);
}

/* spec zone */
.hw-card-specs { display: flex; flex-direction: column; }

.hw-spec {
  padding: 14px 22px;
  border-bottom: 1px solid var(--hw-line);
  font-size: 13.5px;
  line-height: 1.55;
  color: #DCE6F5;
  text-align: center;
  background: rgba(13, 89, 242, 0.10);
}

.hw-spec:last-child { border-bottom: 0; }

/* term row (first spec) */
.hw-term {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hw-term-label { color: var(--hw-muted); font-weight: 600; }

.hw-term-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}

.hw-term-caret { font-size: 11px; color: #48D6FF; transition: transform var(--dur, .3s) var(--ease, ease); }
.hw-term.is-open .hw-term-caret { transform: rotate(180deg); }

.hw-term-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 6;
  min-width: 140px;
  list-style: none;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--hw-line);
  background: #06234d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease, ease), transform .2s var(--ease, ease), visibility .2s;
}

.hw-term.is-open .hw-term-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hw-term-menu li {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hw-muted);
  cursor: pointer;
  transition: background var(--dur, .3s) var(--ease, ease), color var(--dur, .3s) var(--ease, ease);
}

.hw-term-menu li:hover,
.hw-term-menu li.is-selected {
  background: rgba(72, 214, 255, 0.12);
  color: #fff;
}

/* ─────────────────────────────────────────────────────
   3. ADD-ON SERVICES & EQUIPMENT
   ───────────────────────────────────────────────────── */
.hw-addons { padding: 0 0 96px; }

.hw-section-head { text-align: center; margin-bottom: 24px; }

.hw-section-title {
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--hw-text);
  margin: 0;
}

.hw-addons-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 36px;
}

.hw-addons-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(72, 214, 255, 0.3);
  background: rgba(13, 89, 242, 0.16);
  color: #fff;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur, .3s) var(--ease, ease),
              border-color var(--dur, .3s) var(--ease, ease),
              transform var(--dur, .3s) var(--ease, ease);
}

.hw-addons-toggle:hover {
  background: rgba(13, 89, 242, 0.28);
  border-color: rgba(72, 214, 255, 0.55);
  transform: translateY(-2px);
}

.hw-addons-toggle-caret {
  font-size: 13px;
  transition: transform var(--dur, .3s) var(--ease, ease);
}

.hw-addons-toggle[aria-expanded="true"] .hw-addons-toggle-caret { transform: rotate(180deg); }

.hw-addons-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hw-addons-body[hidden] { display: none; }

.hw-table-wrap {
  border: 1px solid var(--hw-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--hw-card);
}

.hw-addon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.hw-addon-table thead th {
  padding: 16px 22px;
  text-align: left;
  font-family: "Space Grotesk", "Exo 2", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(13, 89, 242, 0.16);
}

.hw-ad-th-price, .hw-ad-th-qty { text-align: center; }
.hw-ad-th-act { width: 150px; }

.hw-addon-table tbody td {
  padding: 14px 22px;
  border-top: 1px solid var(--hw-line);
  color: var(--hw-text);
  vertical-align: middle;
}

.hw-addon-table tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.015); }
.hw-addon-table tbody tr:hover td { background: rgba(72, 214, 255, 0.07); }

.hw-ad-name { font-weight: 600; }

.hw-ad-price {
  text-align: center;
  font-weight: 700;
  color: #48D6FF;
  white-space: nowrap;
}

.hw-ad-qty, .hw-ad-act { text-align: center; }

.hw-qty {
  min-width: 64px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--hw-line);
  background: #06234d;
  color: #fff;
  font-size: 13.5px;
  cursor: pointer;
}

.hw-qty:focus { outline: none; border-color: rgba(72, 214, 255, 0.6); }

.hw-table-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(90deg, var(--accent, #0D59F2), #3D7FFF);
  box-shadow: 0 6px 16px rgba(13, 89, 242, 0.4);
  transition: transform var(--dur, .3s) var(--ease, ease),
              box-shadow var(--dur, .3s) var(--ease, ease);
}

.hw-table-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 89, 242, 0.6);
}

/* ─────────────────────────────────────────────────────
   4. RESPONSIVE
   ───────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .hw-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hw-hero-right { order: -1; }
  .hw-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  /* add-on tables → stacked cards */
  .hw-addon-table, .hw-addon-table tbody,
  .hw-addon-table tr, .hw-addon-table td { display: block; width: 100%; }
  .hw-addon-table thead { display: none; }
  .hw-addon-table tbody tr {
    border-top: 1px solid var(--hw-line);
    padding: 8px 0;
  }
  .hw-addon-table tbody td {
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 18px;
    text-align: right;
  }
  .hw-ad-name { font-size: 15px; }
  .hw-addon-table tbody td::before {
    content: attr(data-label);
    color: var(--hw-muted);
    font-size: 12px;
    font-weight: 600;
  }
}

@media (max-width: 640px) {
  .hw-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}
