/*
Theme Name: IPTV Dansk Theme
Theme URI: https://iptv-dansk.com/
Author: OpenAI Codex
Author URI: https://openai.com/
Description: Custom Danish WordPress theme for IPTV Dansk with conversion-focused layouts, localized SEO content, and blog support.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: iptv-dansk
*/

:root {
  --brand: #c60c30;
  --brand-dark: #9f0d29;
  --brand-soft: #fff1f4;
  --surface: #ffffff;
  --surface-alt: #f8f5f6;
  --surface-muted: #f1ecee;
  --border: #ead8dd;
  --text: #1f1f24;
  --muted: #66616b;
  --shadow: 0 18px 50px rgba(198, 12, 48, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100% - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(198, 12, 48, 0.08), transparent 28%),
    linear-gradient(180deg, #fff8f9 0%, #ffffff 22%, #fffefe 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: #fff;
  z-index: 200;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 216, 221, 0.7);
}

.header-inner,
.footer-inner,
.site-main > section,
.content-shell,
.site-main > article {
  width: var(--container);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark img {
  width: clamp(170px, 18vw, 240px);
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.main-navigation ul,
.footer-navigation ul,
.legal-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  padding: 0;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
}

.main-navigation a,
.footer-navigation a,
.legal-navigation a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.main-navigation a:hover,
.footer-navigation a:hover,
.legal-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--brand);
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-weight: 700;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #d72a4e 100%);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--brand);
  border-color: var(--border);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.hero-copy h1,
.page-hero h1,
.entry-title,
h2,
h3,
h4,
h5 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.hero-copy h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-copy p,
.section-lead,
.entry-summary,
.entry-content p,
.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions,
.stack-inline {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-tags span,
.pill {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
}

.hero-media,
.image-card,
.panel,
.pricing-card,
.feature-card,
.content-card,
.contact-card,
.faq-item,
.post-card,
.device-card {
  background: var(--surface);
  border: 1px solid rgba(234, 216, 221, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media {
  padding: 1rem;
}

.hero-media--cover {
  padding: 0;
  overflow: hidden;
}

.hero-media img,
.image-card img,
.feature-card img,
.device-card img,
.post-card img,
.wide-image {
  border-radius: calc(var(--radius) - 8px);
  width: 100%;
  object-fit: cover;
}

.hero-media--cover img {
  min-height: 520px;
}

.section-shell {
  padding: 1.8rem 0 4.5rem;
}

.section-shell--tight {
  padding-top: 0.5rem;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.grid-2,
.grid-3,
.grid-4,
.logo-grid,
.pricing-grid,
.post-grid,
.device-grid,
.faq-grid,
.steps-grid {
  display: grid;
  gap: 1.4rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.post-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4,
.logo-grid,
.pricing-grid,
.device-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logo-grid .content-card,
.apps-strip .content-card {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.logo-grid .content-card img,
.apps-strip .content-card img {
  width: auto;
  max-height: 48px;
}

.logo-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.content-card,
.feature-card,
.pricing-card,
.contact-card,
.faq-item,
.post-card,
.device-card {
  padding: 1.6rem;
}

.panel-highlight {
  background:
    linear-gradient(135deg, rgba(198, 12, 48, 0.95), rgba(159, 13, 41, 0.95)),
    #c60c30;
  color: #fff;
}

.panel-highlight p,
.panel-highlight li,
.panel-highlight .section-lead {
  color: rgba(255, 255, 255, 0.86);
}

.split-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.feature-list,
.meta-list,
.comparison-list,
.policy-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.feature-list li,
.meta-list li,
.comparison-list li,
.policy-list li {
  position: relative;
  padding-left: 1.4rem;
}

.feature-list li::before,
.meta-list li::before,
.comparison-list li::before,
.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: rgba(198, 12, 48, 0.4);
  transform: translateY(-4px);
}

.badge {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
}

.price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
}

.muted {
  color: var(--muted);
}

.showcase {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showcase img {
  aspect-ratio: 1 / 1;
}

.device-card img {
  max-height: 64px;
  width: auto;
  margin-bottom: 1rem;
}

.steps-grid .feature-card img {
  max-width: 58px;
  margin-bottom: 1rem;
}

.apps-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.comparison .panel {
  min-height: 100%;
}

.buy-card {
  position: relative;
  overflow: hidden;
}

.buy-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(135deg, var(--brand), #ef7b93);
}

.film-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.5rem;
  align-items: stretch;
}

.film-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.film-slider {
  position: relative;
  display: grid;
  gap: 1rem;
}

.film-slider__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(234, 216, 221, 0.7);
  box-shadow: var(--shadow);
  background: var(--surface);
  min-height: 520px;
}

.film-slider__track {
  position: relative;
  min-height: 520px;
}

.film-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(4%);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.film-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.film-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.film-slide__overlay {
  position: absolute;
  inset: auto 24px 24px 24px;
  padding: 1.5rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(31, 31, 36, 0.18), rgba(31, 31, 36, 0.82));
  color: #fff;
}

.film-slide__overlay .eyebrow {
  color: #fff;
}

.film-slide__overlay h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-bottom: 0.8rem;
}

.film-slide__overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.film-slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.film-slider__button {
  min-width: 120px;
}

.film-slider__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.film-slider__dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: rgba(198, 12, 48, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.film-slider__dot.is-active {
  background: var(--brand);
  transform: scale(1.1);
}

.page-hero {
  padding: 3.3rem 0 2rem;
}

.page-hero-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.page-hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-shell {
  padding-bottom: 4rem;
}

.entry-content,
.entry-content ul,
.entry-content ol {
  color: var(--muted);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.2rem;
}

.archive-header {
  padding: 3rem 0 1rem;
}

.archive-layout,
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.post-card,
.search-form,
.widget-area .panel {
  overflow: hidden;
}

.post-card img {
  aspect-ratio: 16 / 10;
  margin: -1.6rem -1.6rem 1.2rem;
  width: calc(100% + 3.2rem);
}

.post-meta,
.entry-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 1.25rem 1.4rem;
  cursor: pointer;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.4rem 1.4rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.contact-form-placeholder {
  border: 1px dashed rgba(198, 12, 48, 0.35);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  background: var(--brand-soft);
}

.footer-shell {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

.footer-meta {
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.subfooter {
  border-top: 1px solid var(--border);
  padding: 1rem 0 2rem;
  color: var(--muted);
}

.whatsapp-sticky {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.95rem 1.15rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #25d366, #1aa64f);
  color: #fff;
  box-shadow: 0 20px 45px rgba(37, 211, 102, 0.28);
}

.whatsapp-sticky__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.whatsapp-sticky__number {
  font-size: 0.98rem;
  font-weight: 700;
}

.site-main {
  min-height: 60vh;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

@media (max-width: 1080px) {
  .hero,
  .split-panel,
  .film-layout,
  .page-hero-shell,
  .archive-layout,
  .single-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .logo-grid,
  .pricing-grid,
  .device-grid,
  .apps-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .film-slider__viewport,
  .film-slider__track,
  .film-slide img {
    min-height: 420px;
    height: 420px;
  }

  .grid-3,
  .post-grid,
  .steps-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation {
    position: absolute;
    inset: calc(100% + 1px) 1rem auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: none;
  }

  body.nav-open .main-navigation {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions .button-primary {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .logo-grid,
  .pricing-grid,
  .post-grid,
  .device-grid,
  .apps-strip,
  .steps-grid,
  .comparison,
  .contact-grid,
  .showcase {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 11vw, 3.7rem);
  }

  .hero-media--cover img {
    min-height: 340px;
  }

  .film-slider__controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .whatsapp-sticky {
    right: 12px;
    left: 12px;
    bottom: 12px;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .hero,
  .section-shell {
    gap: 1.3rem;
  }

  .panel,
  .content-card,
  .feature-card,
  .pricing-card,
  .contact-card,
  .faq-item,
  .post-card,
  .device-card {
    padding: 1.2rem;
  }

  .post-card img {
    margin: -1.2rem -1.2rem 1rem;
    width: calc(100% + 2.4rem);
  }

  .film-slider__viewport,
  .film-slider__track,
  .film-slide img {
    min-height: 320px;
    height: 320px;
  }

  .film-slide__overlay {
    inset: auto 14px 14px 14px;
    padding: 1rem;
  }
}
