/* =====================================================
   Fiber Internet Page — Custom Styles
   Built on top of wireless-plans.css shared styles
   Prefix: fi-
   ===================================================== */

/* Hero Background */
.fi-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../../images/fi-hero-bg.webp') center/cover no-repeat;
  z-index: 0;
}

/* =====================================================
   Why Fiber Is Different — 3 Feature Cards
   ===================================================== */
.fi-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.fi-feature-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.35s cubic-bezier(.165, .84, .44, 1), box-shadow 0.35s ease;
}

.fi-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(5, 65, 98, .18);
}

.fi-feature-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(.165, .84, .44, 1);
}

.fi-feature-card:hover .fi-feature-card-bg {
  transform: scale(1.06);
}

.fi-feature-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(4, 10, 24, 0.10) 0%,
      rgba(4, 10, 24, 0.25) 35%,
      rgba(4, 10, 24, 0.78) 70%,
      rgba(4, 10, 24, 0.95) 100%);
  transition: background 0.3s ease;
}

.fi-feature-card:hover .fi-feature-card-overlay {
  background: linear-gradient(180deg,
      rgba(4, 10, 24, 0.15) 0%,
      rgba(4, 10, 24, 0.30) 35%,
      rgba(4, 10, 24, 0.82) 70%,
      rgba(4, 10, 24, 0.97) 100%);
}

.fi-feature-card-body {
  position: relative;
  z-index: 2;
  padding: 2rem 2.25rem 2.25rem;
}

.fi-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(8, 153, 230, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 0.85rem;
}

.fi-feature-chip i {
  font-size: 0.72rem;
}

.fi-feature-card h4 {
  font-family: var(--fh);
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.65rem;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.fi-feature-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin: 0;
}

/* =====================================================
   Speed Tiers Table
   ===================================================== */
.fi-table-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(5, 65, 98, 0.08);
  border: 1px solid #e2e8f0;
}

.fi-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.95rem;
}

.fi-table thead {
  background: linear-gradient(135deg, #054162, #0b6faa);
}

.fi-table thead th {
  padding: 1.25rem 1.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
  border: none;
  letter-spacing: 0.3px;
}

.fi-table thead th:first-child {
  width: 18%;
}

.fi-table tbody td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  line-height: 1.6;
  vertical-align: top;
}

.fi-table tbody tr:last-child td {
  border-bottom: none;
}

.fi-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.fi-table tbody tr:hover {
  background: #f0f9ff;
  transition: background 0.2s ease;
}

.fi-table tbody td:first-child {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

/* Speed tier badge */
.fi-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #054162, #0899e6);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

/* =====================================================
   Fiber vs Cable — Comparison Row Cards
   ===================================================== */
.fi-compare-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fi-compare-row-icon {
  min-width: 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.2s ease;
}

.fi-compare-row:hover .fi-compare-row-icon {
  transform: scale(1.08);
}

.fi-compare-row-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 3px;
}

.fi-compare-row-value {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

.fi-compare-row-value.fiber {
  color: #7dd3fc;
  font-weight: 600;
}

/* =====================================================
   Availability Section — Split Cards
   ===================================================== */
.fi-avail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.fi-avail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(5, 65, 98, 0.08);
}

.fi-avail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #0899e6; /* Solid bright blue to match screenshot */
  border-radius: 20px 0 0 20px;
}

.fi-avail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.fi-avail-num {
  width: 44px;
  height: 44px;
  background: #054162;
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(5, 65, 98, 0.2);
}

.fi-avail-icon {
  width: 44px;
  height: 44px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0899e6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.fi-avail-card h3 {
  font-family: var(--fh);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.fi-avail-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.75;
  margin: 0;
}

/* =====================================================
   Las Vegas / Tampa highlight card
   ===================================================== */
.fi-market-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.fi-market-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(8, 153, 230, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.fi-market-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fi-market-icon {
  width: 48px;
  height: 48px;
  background: #0899e6;
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(8, 153, 230, 0.25);
}

.fi-market-card h3 {
  font-family: var(--fh);
  font-size: 1.2rem;
  font-weight: 800;
  color: #054162;
  margin: 0;
  line-height: 1.35;
}

.fi-market-card p {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.75;
  margin: 0;
}

.fi-market-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.fi-market-pill {
  background: #fff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* =====================================================
   Responsive Breakpoints
   ===================================================== */

/* Large Tablets / Small Desktop */
@media (max-width: 1199px) {
  .fi-feature-grid {
    gap: 1.25rem;
  }

  .fi-feature-card {
    min-height: 440px;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .fi-feature-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .fi-feature-card {
    min-height: 380px;
  }

  .fi-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fi-table {
    min-width: 580px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .fi-feature-grid {
    grid-template-columns: 1fr;
  }

  .fi-feature-card {
    min-height: 350px;
  }

  .fi-feature-card h4 {
    font-size: 1.1rem;
  }

  .fi-feature-card p {
    font-size: 0.85rem;
  }

  .fi-table thead th,
  .fi-table tbody td {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }

  .fi-compare-row-icon {
    min-width: 32px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .fi-compare-row-icon i {
    font-size: 0.85rem;
  }

  .fi-compare-row-value {
    font-size: 0.85rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .fi-feature-card {
    min-height: 320px;
  }

  .fi-feature-card-body {
    padding: 1.5rem;
  }

  .fi-table tbody td:first-child {
    white-space: normal;
  }
}

