/* fpnet.cz — company presentation site.
   Derived from the nexti web design system; brand colors from the company logo. */

:root {
  --dark: #123a4d;
  --darker: #081e29;
  --accent: #009be2;
  --accent-contrast: #ffffff;
  --deep: #0272a6;
  --ink: #1c2438;
  --muted: #5a6579;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --line: #e2e8f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --container: min(1800px, 94vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

main {
  flex: 1;
}

/* Footer sticks to the window bottom on short pages */
#footer-placeholder {
  margin-top: auto;
}

img {
  max-width: 100%;
}

a {
  color: var(--dark);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

/* Sticky must sit on the placeholder (the header's parent) — a sticky .site-header
   inside the placeholder can only stick within the placeholder's own height */
#header-placeholder {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.site-header__logo img {
  height: 40px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  background: var(--bg-soft);
}

.site-nav a.is-active {
  background: var(--dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 18px;
  color: var(--dark);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0, 155, 226, 0.25), transparent 60%),
    linear-gradient(150deg, var(--dark) 0%, var(--darker) 100%);
  color: #fff;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 32px;
  padding: 64px 0;
}

.hero__logo {
  height: 84px;
  width: auto;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
  margin: 0 0 28px;
}

.hero__robot {
  max-height: 380px;
  width: auto;
  justify-self: center;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.hero--compact .hero__inner {
  padding: 44px 0;
  grid-template-columns: 1fr;
}

.hero--compact h1 {
  margin-bottom: 8px;
}

.hero--compact p {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 8px 24px rgba(0, 155, 226, 0.35);
}

.btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  margin-left: 12px;
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section__head {
  max-width: 44rem;
  margin-bottom: 36px;
}

.section__head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--dark);
  margin: 0 0 10px;
}

.section__head p {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section .eyebrow {
  color: #0272a6;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--dark);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dark), var(--accent));
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

/* ---------- Feature list (nexty page) ---------- */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.feature-list .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.split img {
  justify-self: center;
  max-height: 420px;
  width: auto;
}

/* ---------- Contact ---------- */

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 30rem;
}

.contact-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
}

.contact-card dt {
  font-weight: 700;
  color: var(--dark);
}

.contact-card dd {
  margin: 0;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--darker);
  color: rgba(255, 255, 255, 0.8);
  padding: 28px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer .brand-mark {
  height: 1em;
  width: auto;
  vertical-align: -0.125em;
  margin-right: 0.4em;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero__inner,
  .split {
    grid-template-columns: 1fr;
  }

  .hero__robot {
    max-height: 260px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px;
  }

  .site-nav.is-open {
    display: flex;
  }
}

/* ---------- Hero logo card ---------- */

.hero__logocard {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 44px;
  justify-self: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.hero__logocard img {
  display: block;
  max-height: 110px;
  width: auto;
}

@media (max-width: 860px) {
  .hero__logocard {
    padding: 20px 24px;
  }

  .hero__logocard img {
    max-height: 64px;
  }
}

/* ---------- fpnet specifics ---------- */

.tariff__speed {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 4px;
}

.tariff__price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-deep, #0272a6);
  margin: 0 0 10px;
}

.tariff__price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.card-grid--tariffs,
.card-grid--partners {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card.partner img {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 52rem;
  margin-top: 24px;
}

details.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 12px;
}

details.faq summary {
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
}

details.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin-top: 14px;
  color: var(--deep);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- TV programs popup (data live from the SledovaniTV partner API) ---------- */

.tv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 30, 41, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.tv-modal-overlay.is-open {
  display: flex;
}

.tv-modal {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
}

.tv-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.tv-modal__title {
  margin: 0;
  color: var(--dark);
}

.tv-modal__meta {
  margin: 4px 0 16px;
  color: var(--deep);
  font-weight: 700;
}

.tv-modal__body {
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 14px;
}

.tv-channel {
  margin: 0;
  text-align: center;
}

.tv-channel img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.tv-channel figcaption {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
  margin-top: 4px;
  word-break: break-word;
}

.tv-modal__note {
  color: var(--muted);
  grid-column: 1 / -1;
}

/* ---------- Availability locality list ---------- */

.locality-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.locality {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.locality:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.locality span {
  flex: 1;
  min-width: 0;
}

.locality--giga {
  border-color: var(--accent);
}

.loc-pin {
  flex: none;
  width: 13px;
  height: auto;
  color: var(--deep);
}

.loc-tag {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

.loc-tag--giga {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
  margin-left: 4px;
}

/* ---------- Feed-driven package card extras ---------- */

.pkg-perks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.pkg-perks li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.pkg-perks li::before {
  content: '\2713'; /* checkmark as ASCII-safe escape — a raw char breaks on wrong charset */
  position: absolute;
  left: 0;
  color: var(--deep);
  font-weight: 800;
}

.card__cover {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

.card-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- TV package card design ---------- */

.card.tariff {
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card.tariff:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.tariff__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.tariff__head h3 {
  margin: 0;
}

.tariff__letter {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dark), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline {
  margin-top: auto;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: none;
  color: var(--deep);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

.card.tariff .pkg-perks {
  margin-bottom: 14px;
}

.card.tariff .card-links {
  margin-top: auto;
}

.card.tariff .card-links .btn-outline {
  margin-top: 0;
  flex: 1;
}

/* ---------- Internet tariff card design ---------- */

.tariff--net {
  border-top: 4px solid var(--dark);
}

.tariff--net.tariff--giga {
  border-top-color: var(--accent);
}

.tariff--net .tariff__price {
  font-size: 1.45rem;
}


.tariff__type {
  flex: none;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.tariff__type--giga {
  background: linear-gradient(135deg, var(--dark), var(--accent));
}

.tariff__speed-big {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin: 6px 0 2px;
}

.tariff__speed-big span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 700;
}

a.btn-outline {
  display: flex;
  justify-content: center;
  text-decoration: none;
}

/* ---------- Home page TV tips ---------- */

.tip-card__air {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem !important;
  font-weight: 600;
  margin-bottom: 8px !important;
}

.tip-card__air img {
  height: 22px;
  width: auto;
  background: #111;
  border-radius: 6px;
  padding: 3px 5px;
}

.tip-card__meta {
  color: var(--deep) !important;
  font-weight: 700;
  font-size: 0.82rem !important;
  margin-bottom: 6px !important;
}

/* decorative banner from the feed's posters — same 96px line as .card__cover,
   posters on a black rounded panel like the extras' cover banners */
.card__posters {
  display: flex;
  gap: 6px;
  height: 96px;
  padding: 6px;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.card__posters img {
  flex: 1;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.price-standalone {
  font-size: 0.82rem;
  color: var(--muted);
  margin: -6px 0 10px;
}

.is-loading {
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  animation: loading-pulse 1.2s ease-in-out infinite;
}

@keyframes loading-pulse {
  50% {
    opacity: 0.4;
  }
}

/* Low-key footer link to the documents page (kept out of the main nav on purpose) */
.site-footer .subtle-link {
  color: rgba(255, 255, 255, 0.35);
}

.site-footer .subtle-link svg {
  display: block;
  height: 1em;
  width: auto;
}

.site-footer .subtle-link:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* Download list icon (file with arrow) */
.dl-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dl-icon svg {
  height: 18px;
  width: auto;
}

.feature-list li:hover .dl-icon {
  background: var(--accent);
  color: var(--accent-contrast);
}
