/*
 * index.css
 * Styles specifikt for forsiden (index.php)
 */

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  /* TODO: Erstat URL med eget billede: url('../images/general/hero-bg.jpg') */
  background: url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?w=1600&q=80') center/cover no-repeat;
  filter: brightness(0.55);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 80px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.6px; margin-bottom: 14px; max-width: 560px; }
.hero p { font-size: 15px; color: rgba(255,255,255,0.55); max-width: 440px; margin-bottom: 36px; line-height: 1.75; }

/* Hero kategori-knapper */
.hero-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-cat {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 7px;
  padding: 9px 18px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.hero-cat:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.28); color: white; }

/* Hero statistikker */
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); }
.hero-stat strong { display: block; font-size: 19px; font-weight: 700; color: white; }
.hero-stat span { font-size: 11px; color: rgba(255,255,255,0.38); }

/* ── KATEGORI KORT ── */
.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { border-radius: 12px; border: 1px solid var(--border); padding: 28px 24px; background: var(--white); transition: box-shadow 0.2s, transform 0.2s; }
.cat-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.07); transform: translateY(-2px); }
.cat-card-icon { font-size: 26px; margin-bottom: 14px; }
.cat-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.cat-card p { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 20px; }
.cat-card-meta { display: flex; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #F1F5F9; }
.cat-meta-item { font-size: 11px; color: var(--text-muted); }
.cat-meta-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 1px; }
.cat-card-link { font-size: 13px; font-weight: 600; }
.cat-card.card-el { border-top: 3px solid var(--el); } .cat-card.card-el h3, .cat-card.card-el .cat-card-link { color: var(--el); }
.cat-card.card-la { border-top: 3px solid var(--la); } .cat-card.card-la h3, .cat-card.card-la .cat-card-link { color: var(--la); }
.cat-card.card-ga { border-top: 3px solid var(--ga); } .cat-card.card-ga h3, .cat-card.card-ga .cat-card-link { color: var(--ga); }

/* ── TOPAFTALER TABEL ── */
.top-deals { background: var(--white); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.deal-row { display: grid; grid-template-columns: 150px 1fr 130px 140px 110px 110px; align-items: center; padding: 14px 22px; border-bottom: 1px solid #F8FAFC; gap: 12px; }
.deal-row:last-child { border-bottom: none; }
.deal-row:hover { background: #FAFBFD; }
.deal-row-header { background: #F8FAFC; font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.deal-provider-name { font-size: 13px; font-weight: 600; }
.deal-price-el { font-size: 15px; font-weight: 700; color: var(--el); }
.deal-price-la { font-size: 15px; font-weight: 700; color: var(--la); }
.deal-price-ga { font-size: 15px; font-weight: 700; color: var(--ga); }
.deal-monthly { font-size: 13px; color: var(--text-2); }
.btn-sm-el { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; border: 1.5px solid var(--el); color: var(--el); transition: all 0.15s; }
.btn-sm-el:hover { background: var(--el); color: white; }
.btn-sm-la { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; border: 1.5px solid var(--la); color: var(--la); transition: all 0.15s; }
.btn-sm-la:hover { background: var(--la); color: white; }
.btn-sm-ga { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; border: 1.5px solid var(--ga); color: var(--ga); transition: all 0.15s; }
.btn-sm-ga:hover { background: var(--ga); color: white; }

/* ── STEPS ── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; padding: 8px; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--el-light); color: var(--el); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.step h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── RESPONSIV ── */
@media (max-width: 900px) {
  .cat-cards { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .deal-row { grid-template-columns: 1fr 1fr; }
  .deal-row-header { display: none; }
}
@media (max-width: 600px) {
  .hero-cats { flex-direction: column; align-items: flex-start; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
