/* ============================================================
   NETSAFI FIBER — pages.css
   Extra styles for FAQ, Coverage and Speed Test pages
   ============================================================ */

/* ---- Page Hero (shared across all sub-pages) ---- */
.page-hero {
  background: var(--dark);
  padding: 160px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,200,150,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,150,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.page-hero-content h1 {
  font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; color: var(--white); margin: 16px 0 20px; line-height: 1.15;
}
.page-hero-content p { color: var(--text); font-size: 1.05rem; }

/* ============================================================
   GALLERY SECTION (index.html)
   ============================================================ */
.gallery { padding: 100px 0; background: var(--dark-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
  min-height: 200px;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex; align-items: flex-end; padding: 20px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white); font-family: var(--font-heading);
  font-weight: 700; font-size: 1rem;
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-section { padding: 80px 0 60px; background: var(--light); }
.faq-category { margin-bottom: 56px; }
.faq-cat-title {
  font-family: var(--font-heading); font-size: 1.4rem;
  color: var(--dark); margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; border-bottom: 2px solid rgba(0,0,0,0.07);
}
.faq-cat-title i { color: var(--primary); font-size: 1.1rem; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.06); overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: none; border: none; cursor: pointer;
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
  color: var(--dark); text-align: left; gap: 16px;
  transition: var(--transition);
}
.faq-question i { color: var(--primary); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-item.open .faq-question { color: var(--primary); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 24px;
}
.faq-answer p { color: #4B5563; margin-bottom: 10px; font-size: 0.95rem; line-height: 1.7; }
.faq-answer ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.faq-answer ul li { color: #4B5563; font-size: 0.92rem; }
.faq-answer a { color: var(--primary); font-weight: 600; }

.faq-cta { padding: 60px 0 100px; background: var(--light); }
.faq-cta-box {
  background: var(--dark); border-radius: 24px; padding: 60px 40px;
  text-align: center; border: 1px solid rgba(255,255,255,0.06);
}
.faq-cta-box h2 {
  font-family: var(--font-heading); font-size: 2rem;
  color: var(--white); margin-bottom: 12px;
}
.faq-cta-box p { color: var(--text); }

/* ============================================================
   COVERAGE PAGE
   ============================================================ */
.coverage-section { padding: 60px 0 100px; background: var(--light); }

.coverage-legend {
  display: flex; gap: 24px; margin-bottom: 24px; flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #4B5563; font-weight: 500; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.legend-dot.green  { background: #00C896; }
.legend-dot.yellow { background: #F59E0B; }
.legend-dot.red    { background: #EF4444; }

#map {
  width: 100%; height: 480px; border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  z-index: 1;
}

.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid rgba(0,0,0,0.06); transition: var(--transition);
}
.area-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.area-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 12px; color: #00A87E;
}
.area-status.coming { color: #D97706; }
.area-card h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--dark); margin-bottom: 8px; }
.area-card p { font-size: 0.88rem; color: #6B7E92; line-height: 1.6; }
.area-card.coming-soon { border-color: rgba(245,158,11,0.2); background: #FFFBF0; }

/* ============================================================
   SPEED TEST PAGE
   ============================================================ */
.speedtest-section { padding: 60px 0 100px; background: var(--dark-2); }

.speedtest-card {
  max-width: 560px; margin: 0 auto 20px;
  background: var(--dark-3); border-radius: 28px; padding: 48px 40px;
  border: 1px solid rgba(255,255,255,0.06); text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.st-status { color: var(--text); font-size: 0.95rem; }

.gauge-wrap { position: relative; width: 220px; height: 140px; }
.gauge-svg { width: 100%; height: 100%; }
.gauge-value {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  text-align: center;
}
.gauge-value span:first-child {
  display: block; font-family: var(--font-heading);
  font-size: 3rem; font-weight: 800; color: var(--white); line-height: 1;
}
.gauge-unit { font-size: 0.85rem; color: var(--primary); font-weight: 600; }

.st-results {
  display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,0.04); border-radius: 14px;
  padding: 20px 32px; width: 100%;
}
.st-result-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.st-result-item i { font-size: 1.2rem; }
.st-result-item strong { font-family: var(--font-heading); font-size: 1.2rem; color: var(--white); }
.st-result-item span { font-size: 0.78rem; color: #6B7E92; text-transform: uppercase; letter-spacing: 0.5px; }
.st-result-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.1); }

.plan-compare {
  background: rgba(0,200,150,0.08); border: 1px solid rgba(0,200,150,0.2);
  border-radius: 12px; padding: 16px 20px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.compare-title { color: var(--text); font-size: 0.92rem; }
.compare-title strong { color: var(--primary); }

.tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tip-card {
  background: var(--dark-3); border-radius: var(--radius); padding: 32px 24px;
  text-align: center; border: 1px solid rgba(255,255,255,0.06); transition: var(--transition);
}
.tip-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.tip-card i { font-size: 2rem; color: var(--primary); display: block; margin-bottom: 16px; }
.tip-card h4 { font-family: var(--font-heading); color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.tip-card p { color: var(--text); font-size: 0.88rem; line-height: 1.6; }

.speed-table-wrap { overflow-x: auto; border-radius: var(--radius); }
.speed-table {
  width: 100%; border-collapse: collapse;
  background: var(--dark-3); border-radius: var(--radius); overflow: hidden;
}
.speed-table thead { background: var(--primary); }
.speed-table th {
  padding: 16px 20px; text-align: left;
  font-family: var(--font-heading); font-size: 0.85rem;
  color: var(--dark); text-transform: uppercase; letter-spacing: 0.5px;
}
.speed-table td { padding: 16px 20px; color: var(--text); font-size: 0.92rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.speed-table tr:last-child td { border-bottom: none; }
.speed-table .highlight-row td { background: rgba(0,200,150,0.07); color: var(--white); }
.speed-table td strong { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 2; }
  .areas-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr 1fr; }
  .st-results { flex-direction: column; }
  .st-result-divider { width: 80%; height: 1px; }
  .faq-cta-box { padding: 40px 24px; }
  .speedtest-card { padding: 36px 20px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .tips-grid { grid-template-columns: 1fr; }
}
