/* =============================================================
   dedicated.css — page-specific styles for dedicated.html
   BEM block prefix: dedicated-
   Never modifies shared CSS files.
   ============================================================= */

/* ---------------------------------------------------------------
   Container
--------------------------------------------------------------- */
.dedicated-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}


/* =============================================================
   SECTION 1: HERO
   ============================================================= */
.dedicated-hero {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary-900) 100%);
  color: #ffffff;
  padding-block: var(--space-16) var(--space-12);
  position: relative;
  overflow: hidden;
}

.dedicated-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

@media (min-width: 1024px) {
  .dedicated-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
  }
}

.dedicated-hero__content {
  flex: 1;
}

.dedicated-hero__h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-block-end: var(--space-4);
  color: #ffffff;
}

.dedicated-hero__sub {
  font-size: var(--font-size-lg);
  color: rgb(255 255 255 / 0.8);
  margin-block-end: var(--space-8);
  max-width: 48ch;
}

.dedicated-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.dedicated-hero__badges {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .dedicated-hero__badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dedicated-hero__badges {
    display: flex;
    flex-direction: column;
  }
}

.dedicated-hero__badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.20);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  min-width: 220px;
}


/* =============================================================
   SECTION 2: PRICING CARDS
   ============================================================= */
.dedicated-pricing {
  padding-block: var(--space-16);
  background: var(--color-bg);
}

.dedicated-pricing__header {
  text-align: center;
  margin-block-end: var(--space-10);
}

.dedicated-pricing__h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-block-end: var(--space-6);
}

/* Billing toggle — pill design identical to VPS page */
.dedicated-pricing__billing-toggle {
  display: inline-flex;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-full);
  padding: var(--space-1);
  gap: var(--space-1);
  flex-wrap: wrap;
  justify-content: center;
}

.dedicated-pricing__billing-toggle button {
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.dedicated-pricing__billing-toggle button:hover {
  color: var(--color-text);
}

.dedicated-pricing__billing-toggle button.is-active {
  background: var(--color-primary-600);
  color: #ffffff;
}

.dedicated-pricing__billing-toggle button:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* Plan grid: 4 → 2 → 1 */
.dedicated-pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  align-items: start;
}

@media (max-width: 1023px) {
  .dedicated-pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .dedicated-pricing__grid {
    grid-template-columns: 1fr;
  }
}

/* Plan card */
.dedicated-pricing__card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.dedicated-pricing__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.dedicated-pricing__card--featured {
  border-color: var(--color-primary-400);
  box-shadow: 0 0 0 2px var(--color-primary-200), var(--shadow-md);
}

.dedicated-pricing__card--promo {
  border-color: var(--color-warning-400, #f59e0b);
}

/* Ribbon badge (featured / promo) */
.dedicated-pricing__badge {
  position: absolute;
  top: 18px;
  right: -28px;
  background: var(--color-accent-400);
  color: #ffffff;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-8);
  transform: rotate(35deg);
  white-space: nowrap;
  pointer-events: none;
}

.dedicated-pricing__badge--promo {
  background: var(--color-warning-500, #f59e0b);
  color: #1a1a1a;
}

/* Plan name + storage */
.dedicated-pricing__name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin: 0;
}

.dedicated-pricing__storage {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

/* Price */
.dedicated-pricing__price-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.dedicated-pricing__price-original {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-decoration: line-through;
}

.dedicated-pricing__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary-600);
  line-height: 1;
}

.dedicated-pricing__period {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Savings note */
.dedicated-pricing__savings {
  font-size: var(--font-size-xs);
  color: var(--color-success-600, #16a34a);
  font-weight: 600;
  margin: 0;
}

/* Spec list */
.dedicated-pricing__specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  flex: 1;
}

.dedicated-pricing__specs li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-1);
  border-bottom: 1px solid var(--color-border-subtle);
}

.dedicated-pricing__specs li:last-child {
  border-bottom: none;
}

.dedicated-pricing__spec-label {
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.dedicated-pricing__spec-val {
  font-weight: 600;
  text-align: right;
}

/* CTA link */
.dedicated-pricing__cta {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-block-start: auto;
}

/* Custom note below grid */
.dedicated-pricing__note {
  text-align: center;
  margin-block-start: var(--space-8);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.dedicated-pricing__note a {
  color: var(--color-primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dedicated-pricing__note a:hover {
  color: var(--color-primary-700);
}


/* =============================================================
   SECTION 3: WHAT IS A DEDICATED SERVER?
   ============================================================= */
.dedicated-what {
  padding-block: var(--space-16);
  background: var(--color-bg-subtle);
}

.dedicated-what__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

@media (min-width: 1024px) {
  .dedicated-what__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-16);
  }
}

.dedicated-what__text {
  flex: 1;
}

.dedicated-what__h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 700;
  margin-block-end: var(--space-5);
}

.dedicated-what__text p {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 60ch;
}

.dedicated-what__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 240px;
}

.dedicated-what__feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.dedicated-what__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  flex-shrink: 0;
}


/* =============================================================
   SECTION 4: OS TABS
   ============================================================= */
.dedicated-os {
  padding-block: var(--space-16);
  background: var(--color-bg);
}

.dedicated-os__h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 700;
  text-align: center;
  margin-block-end: var(--space-8);
}

.dedicated-os__tablist {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-block-end: var(--space-8);
  overflow-x: auto;
}

.dedicated-os__tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.dedicated-os__tab:hover {
  color: var(--color-primary-600);
}

.dedicated-os__tab[aria-selected="true"] {
  color: var(--color-primary-600);
  border-bottom-color: var(--color-primary-600);
}

.dedicated-os__tab:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.dedicated-os__panels {
  max-width: 720px;
}

.dedicated-os__panel-h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-block-end: var(--space-4);
}

.dedicated-os__panel p {
  font-size: var(--font-size-base);
  line-height: 1.75;
  color: var(--color-text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .dedicated-os__tab {
    transition: none;
  }
}


/* =============================================================
   SECTION 5: SLA COMPARISON TABLE
   ============================================================= */
.dedicated-sla {
  padding-block: var(--space-16);
  background: var(--color-bg-subtle);
}

.dedicated-sla__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-block-end: var(--space-10);
}

.dedicated-sla__h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 700;
  margin-block-end: var(--space-4);
}

.dedicated-sla__header p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.dedicated-sla__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.dedicated-sla__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  background: var(--color-surface);
}

.dedicated-sla__table thead tr {
  background: var(--color-primary-700);
  color: #ffffff;
}

.dedicated-sla__table thead th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.dedicated-sla__table thead th:not(:first-child) {
  text-align: center;
}

.dedicated-sla__plan-badge {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: 400;
  opacity: 0.8;
  margin-block-start: var(--space-1);
  white-space: nowrap;
}

.dedicated-sla__table tbody tr {
  border-bottom: 1px solid var(--color-border-subtle);
}

.dedicated-sla__table tbody tr:last-child {
  border-bottom: none;
}

.dedicated-sla__table tbody tr:nth-child(even) {
  background: var(--color-bg-subtle);
}

.dedicated-sla__table td {
  padding: var(--space-3) var(--space-5);
  vertical-align: middle;
}

.dedicated-sla__table td:first-child {
  font-weight: 500;
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 1;
}

.dedicated-sla__table td:not(:first-child) {
  text-align: center;
}

.dedicated-sla__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.dedicated-sla__note {
  text-align: center;
  margin-block-start: var(--space-8);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.dedicated-sla__note a {
  color: var(--color-primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dedicated-sla__note a:hover {
  color: var(--color-primary-700);
}


/* =============================================================
   SECTION 6: DATACENTER SERVICES
   ============================================================= */
.dedicated-dc {
  padding-block: var(--space-16);
  background: var(--color-bg);
}

.dedicated-dc__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-block-end: var(--space-10);
}

.dedicated-dc__h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 700;
  margin-block-end: var(--space-4);
}

.dedicated-dc__header p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* 4-column service grid */
.dedicated-dc__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1023px) {
  .dedicated-dc__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .dedicated-dc__grid {
    grid-template-columns: 1fr;
  }
}

.dedicated-dc__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
}

.dedicated-dc__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  margin-inline: auto;
  margin-block-end: var(--space-4);
}

.dedicated-dc__card-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-block-end: var(--space-2);
}

.dedicated-dc__card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}


/* =============================================================
   SECTION 7: FAQ ACCORDION
   ============================================================= */
.dedicated-faq {
  padding-block: var(--space-16);
  background: var(--color-bg-subtle);
}

.dedicated-faq__h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 700;
  text-align: center;
  margin-block-end: var(--space-10);
}

.dedicated-faq__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.dedicated-faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dedicated-faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: transparent;
  border: none;
  text-align: left;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.dedicated-faq__trigger:hover {
  background: var(--color-bg-subtle);
}

.dedicated-faq__trigger:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: -2px;
}

.dedicated-faq__chevron {
  flex-shrink: 0;
  color: var(--color-text-secondary);
  transition: transform var(--transition-base);
}

.dedicated-faq__trigger--open .dedicated-faq__chevron {
  transform: rotate(180deg);
}

.dedicated-faq__answer {
  padding: 0 var(--space-6) var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
}

.dedicated-faq__answer p {
  margin: var(--space-4) 0 0;
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .dedicated-faq__chevron {
    transition: none;
  }
}


/* =============================================================
   SECTION 8: CTA BANNER
   ============================================================= */
.dedicated-cta {
  padding-block: var(--space-16);
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary-900) 100%);
  color: #ffffff;
}

.dedicated-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.dedicated-cta__h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.dedicated-cta__inner p {
  font-size: var(--font-size-lg);
  color: rgb(255 255 255 / 0.8);
  margin: 0;
  max-width: 52ch;
}

.dedicated-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-block-start: var(--space-2);
}

/* Ghost button on dark background */
.dedicated-cta__ghost {
  border-color: rgb(255 255 255 / 0.4);
  color: #ffffff;
}

.dedicated-cta__ghost:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.7);
  color: #ffffff;
}
