/*
Theme Name: IPTV Scandinavia 4K
Description: A standalone Nordic IPTV homepage with a TV guide, plan selector and WordPress journal.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: iptv-scandinavia-4k
*/
:root {
    --navy: #0c2438;
    --ink: #0b1d31;
    --light: #e9f5fb;
    --gold: #ffcd3b;
    --line: #d2dde6;
    --muted: #526478;
    --white: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 2rem; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.55 system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #247eb2; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 .65em; line-height: 1.12; letter-spacing: -.035em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.35rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.25rem; }
.wrap { width: min(100% - 3rem, 1240px); margin-inline: auto; }
.section { padding-block: clamp(2rem, 5vw, 4.5rem); }
.center { text-align: center; }
.ice { background: var(--light); }
.navy { color: var(--white); background: var(--navy); }
.grid { display: grid; gap: 1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 4vw, 3.5rem); align-items: center; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .55rem 1rem; border: 1px solid transparent; border-radius: .5rem; font-weight: 750; text-decoration: none; line-height: 1.25; text-align: center; }
.button-gold { background: var(--gold); color: var(--ink); }
.button-dark { background: var(--navy); color: var(--white); }
.button-outline { border-color: #c7d8e8; color: var(--white); }
.button:hover { filter: brightness(.93); }
.skip, .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { top: 1rem; left: 1rem; width: auto; height: auto; clip-path: none; padding: .75rem; background: #fff; z-index: 2; }
.masthead, .site-footer { background: #081b2e; color: var(--white); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .3em; font-weight: 850; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand b, .brand-icon { color: var(--gold); }
.brand-icon { border: 1px solid currentColor; border-radius: 4px; padding: .08em .34em; font-size: .75em; }
.custom-logo { width: auto; max-height: 46px; max-width: 200px; object-fit: contain; }
.menu { list-style: none; margin: 0; padding: 0; }
.header-inner .menu { display: flex; flex-wrap: wrap; gap: 1rem; }
.menu a { text-decoration: none; font-weight: 650; font-size: .9rem; }
.menu a:hover { text-decoration: underline; }
.menu-toggle { display: none; background: transparent; border: 1px solid #7890a4; border-radius: 6px; color: #fff; padding: .45rem .7rem; }
.hero { background: radial-gradient(ellipse at right, #20445e, #07192b 65%); color: #fff; }
.hero-slide { display: grid; grid-template-columns: .8fr 1.2fr; min-height: clamp(360px, 42vw, 560px); align-items: center; gap: 1rem; }
.hero-copy { padding-block: 2.25rem; }
.hero-copy > :is(h1,h2) { font-size: clamp(2.35rem, 5vw, 4.55rem); margin-bottom: .28em; }
.hero-copy > :is(h1,h2)::after { content: ''; display: block; width: 3.2rem; height: .23rem; margin-top: .28em; background: var(--gold); }
.hero-copy p { font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 34ch; }
.hero-media { overflow: hidden; border-radius: 12px; }
.hero-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-controls { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; padding: .4rem 0 1.35rem; }
.hero-controls button, .durations button { min-height: 44px; border-radius: 7px; padding: .36rem .9rem; border: 1px solid var(--line); font-weight: 700; }
.hero-controls button { color: #fff; background: transparent; border-color: #8a9eb1; }
.hero-controls button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.programme { min-width: 0; position: relative; margin: 0; border-radius: .65rem; overflow: hidden; background: var(--navy); }
.programme img { width: 100%; aspect-ratio: 1/1.12; object-fit: cover; }
.programme figcaption { position: absolute; inset: auto 0 0; padding: 1.4rem .5rem .5rem; background: linear-gradient(transparent,#0b1728); color: #fff; text-align: center; font-weight: 750; }
.durations fieldset { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; border: 0; margin: 0 0 1.45rem; padding: 0; }
.durations button { background: #fff; color: var(--ink); }
.durations button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.plan-grid, .country-grid, .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: #fff; }
.card-body { padding: clamp(.85rem, 1.7vw, 1.4rem); }
.plan { display: flex; flex-direction: column; }
.plan.featured { background: var(--navy); color: #fff; border-color: var(--navy); }
.plan-art { position: relative; }
.plan-art img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.plan-badge { position: absolute; top: .4rem; right: .4rem; padding: .18rem .55rem; background: var(--gold); color: var(--ink); border-radius: 1rem; font-size: .75rem; font-weight: 800; }
.plan .card-body { display: flex; flex-direction: column; flex: 1; }
.plan h3 { margin-bottom: .3em; font-size: clamp(1.35rem, 2.6vw, 2.1rem); }
.amount { font-size: clamp(1.2rem, 2.65vw, 2.4rem); font-weight: 850; line-height: 1.12; letter-spacing: -.04em; }
.bill, .plan-help { font-size: .9rem; }
.bill { margin-top: .3rem; }
.plan-features { list-style: none; margin: 0 0 1rem; padding: 0; font-size: .9rem; }
.plan-features li + li { margin-top: .45rem; }
.plan-features li::before { content: '✓'; font-weight: 800; margin-right: .42rem; color: #17814c; }
.featured li::before { color: #91e0b8; }
.plan-button { margin-top: auto; width: 100%; }
.plan-help { margin: 1rem 0 0; }
details { background: #fff; border: 1px solid var(--line); border-radius: .6rem; }
summary { padding: .65rem .85rem; cursor: pointer; font-weight: 700; }
details p { padding: 0 .85rem; }
.country { background: var(--light); }
.country summary { min-height: 50px; }
.flag { margin-inline: .15rem .5rem; }
.feature-art { border-radius: .8rem; overflow: hidden; }
.feature-art img { width: 100%; object-fit: cover; }
.device-split { grid-template-columns: .75fr 1.25fr; gap: 1.2rem; }
.app { display: grid; align-content: center; gap: .2rem; text-align: center; padding: .65rem .25rem; min-height: 102px; line-height: 1.2; font-size: .91rem; }
.app-mark { color: #17659e; font-size: 1.5rem; font-weight: 900; }
.app small { color: var(--muted); }
.step-grid, .journal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-grid { padding-left: 0; list-style: none; counter-reset: steps; }
.step-grid li { counter-increment: steps; padding: 1rem; background: #fff; border-radius: .7rem; }
.step-grid li::before { content: counter(steps); display: inline-grid; place-items: center; width: 1.85rem; height: 1.85rem; margin-bottom: .55rem; border-radius: 100%; background: var(--gold); color: var(--ink); font-weight: 850; }
.step-grid p, .connection p, .card-body p:last-child, .split p:last-child { margin-bottom: 0; }
.connection { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.connection strong { display: block; }
.journal-grid img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.review-box { text-align: center; border: 1px dashed #8399ab; padding: 1.5rem; border-radius: .75rem; }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .9rem; align-items: start; }
.final-call { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.final-call h2 { margin: 0; }
.footer-cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 1rem; padding-block: 2rem; }
.footer-cols h2 { font-size: 1rem; }
.footer-cols a:not(.brand):not(.custom-logo-link) { display: block; width: fit-content; margin-bottom: .35rem; }
.footer-cols p { margin-top: .65rem; font-size: .9rem; }
.footer-end { border-top: 1px solid #4b5d6f; padding-block: .75rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.footer-end .menu { display: flex; flex-wrap: wrap; gap: 1rem; }
.text-page { padding-block: 3rem; overflow-wrap: anywhere; }
.text-page > article { max-width: 76ch; }
.text-page img { margin-bottom: 1rem; }
@media (max-width: 950px) {
    .header-inner { flex-wrap: wrap; padding-block: .7rem; }
    .menu-toggle:not([hidden]) { display: inline-block; margin-left: auto; }
    .menu-toggle:not([hidden]) + nav:not(.is-open) { display: none; }
    .header-inner nav { order: 3; width: 100%; }
    .hero-slide { min-height: 0; }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .wrap { width: calc(100% - 1.5rem); }
    .hero-slide, .split, .connection { grid-template-columns: 1fr; }
    .hero-slide { padding-bottom: 1rem; }
    .hero-copy { padding: 1.5rem 0 0; }
    .header-cta { display: none; }
    .country-grid, .app-grid, .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step-grid, .journal-grid, .faq-grid { grid-template-columns: 1fr; }
    .final-call, .footer-end { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
    .plan-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Journal articles and their featured images. */
.text-page > article > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: .75rem; }
.text-page > article h2 { font-size: clamp(1.25rem, 3vw, 1.8rem); margin-top: 1.5em; }
.text-page > article li + li { margin-top: .4rem; }

.journal-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: baseline; }
