/* ===========================================================
   Rad Web Hosting - Horizontal Pricing Tables
   Modernized (Bootstrap-independent, Responsive Flex Layout)
   Enhanced Mobile UX 2025 Edition
   =========================================================== */

/* --- Root & Typography --- */
:root {
  --brand-blue: #0c71b9;
  --brand-gray: #4d4d4d;
  --brand-light: #ffffff;
  --accent-red: #d32f2f;
  --bg-alt: #f9fafc;
  --radius: 8px;
  --fs-base: 16px;
  --fs-sm: 14px;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--brand-gray);
  line-height: 1.6;
}

/* --- Layout Wrappers --- */
.pricing-horizontal {
  padding: 60px 0;
  background: var(--bg-alt);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-sub {
  font-size: 1rem;
  color: var(--brand-gray);
  opacity: 0.9;
}

/* --- Table Header --- */
.pricing-table {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pricing-header,
.pricing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.75rem 1rem;
}

.pricing-header {
  background: var(--brand-blue);
  color: var(--brand-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-row {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pricing-row:hover {
  background: #f3f9ff;
  box-shadow: 0 1px 6px rgba(12, 113, 185, 0.15);
}

/* --- Columns --- */
.col {
  flex: 1;
  min-width: 110px;
  font-size: var(--fs-sm);
}

.col.server { flex: 1.3; font-weight: 600; }
.col.cpu,
.col.memory,
.col.storage,
.col.bandwidth,
.col.price,
.col.action { flex: 1; text-align: center; }

.col.price { font-family: 'Alfa Slab One', cursive; }
.col.action { text-align: right; }

.bonus {
  color: var(--brand-blue);
  font-weight: 500;
  font-size: var(--fs-sm);
}

/* --- Price Styling --- */
.col.price .was {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
  display: block;
}

.col.price .now {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 1.25rem;
  display: block;
  margin-top: 0.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--brand-blue);
  color: var(--brand-light);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus {
  background: #095a93;
  transform: translateY(-2px);
}

/* --- Notes --- */
.note {
  font-size: 0.9rem;
  color: #555;
  margin-top: 1.5rem;
  text-align: center;
  opacity: 0.8;
}

/* --- Responsive Enhancements --- */

/* Tablet */
@media (max-width: 991px) {
  .pricing-header .col,
  .pricing-row .col {
    font-size: 13px;
  }
}

/* --- Mobile Optimizations --- */
@media (max-width: 768px) {
  .pricing-header {
    display: none;
  }

  .pricing-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(12, 113, 185, 0.08);
    margin-bottom: 1.25rem;
    background: #fff;
  }

  .pricing-row:nth-child(even) {
    background: #f9fafc;
  }

  .col {
    width: 100%;
    text-align: left !important;
    margin-bottom: 0.4rem;
  }

  .col.server {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
  }

  .col.memory,
  .col.storage,
  .col.bandwidth {
    color: #333;
    line-height: 1.5;
  }

  .col.storage .bonus {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: var(--brand-blue);
  }

  .col.price {
    margin-top: 0.75rem;
    text-align: left;
  }

  .col.price .was {
    font-size: 0.8rem;
    color: #999;
  }

  .col.price .now {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-blue);
  }

  .col.action {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
  }

  .order-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    font-size: 1rem;
    padding: 0.9rem 0;
    border-radius: 6px;
    font-weight: 600;
    background: var(--brand-blue);
    transition: transform 0.15s ease, background 0.25s ease;
  }

  .order-btn:active {
    transform: scale(0.97);
    background: #095a93;
  }
}

/* --- Accessibility Focus --- */
.btn:focus-visible {
  outline: 3px solid #90caf9;
  outline-offset: 2px;
}