/* ========================================
   JaktLicens – Base CSS
   Reset, typografi, knappar, utilities
   ======================================== */

/* Fonts (self-hosted, variabla) */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces-var-italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-body, #2b2b26);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
}

.accent-text {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    color: var(--accent-gold);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Knappar */
.btn-primary {
    background: var(--accent-gold);
    color: var(--text-light);
    padding: 12px 28px;
    border: none;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    color: var(--text-light);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    padding: 12px 28px;
    border: 2px solid var(--accent-gold);
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--text-light);
}

/* Section headers (globala) */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-dark);
    font-weight: 400;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-soft, #5c5c52);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Disclaimerbanner */
.disclaimer {
    background: var(--accent-gold);
    color: var(--text-light);
    padding: 12px 0;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.5;
}

.disclaimer strong {
    font-weight: 600;
}

/* Main content */
.site-main {
    min-height: 60vh;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* WordPress-specifikt */
img {
    max-width: 100%;
    height: auto;
}

.wp-block-image img {
    height: auto;
}

/* Content banner (photo between block sections) */
.jl-banner {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 20px;
}

.jl-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(51, 22, 32, 0.18);
}

.jl-banner figcaption {
    margin-top: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-soft, #5c5c52);
}

/* Prissektion */
.jl-pricing-section {
    padding: 90px 0;
    background: var(--bg-light, #f8f4f1);
}

.jl-pricing.wp-block-columns {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 28px;
    align-items: stretch;
}

.jl-pricing .wp-block-column {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-light, #e8ded9);
    border-radius: 10px;
    padding: 42px 32px;
    box-shadow: 0 8px 30px rgba(51, 22, 32, 0.06);
    display: flex;
    flex-direction: column;
}

.jl-pricing .wp-block-column.is-featured {
    border-color: var(--accent-gold, #c08a3e);
    box-shadow: 0 16px 44px rgba(192, 138, 62, 0.18);
    position: relative;
}

.jl-pricing .jl-tier {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin: 0 0 8px;
    font-weight: 600;
}

.jl-pricing .jl-price {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.9rem;
    color: var(--accent-gold);
    margin: 0 0 4px;
    line-height: 1.15;
}

.jl-pricing .jl-price-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-soft, #5c5c52);
    margin: 0 0 22px;
}

.jl-pricing .jl-desc {
    color: var(--text-soft, #5c5c52);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 22px;
}

.jl-pricing ul.wp-block-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
    flex: 1;
}

.jl-pricing ul.wp-block-list li {
    position: relative;
    padding: 9px 0 9px 26px;
    color: var(--text-body, #2b2b26);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border-light, #e8ded9);
}

.jl-pricing ul.wp-block-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold, #c08a3e);
}

.jl-pricing .wp-block-button {
    width: 100%;
}

.jl-pricing .wp-block-button__link {
    display: block;
    width: 100%;
    background: var(--primary-dark);
    color: #fff;
    padding: 14px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease;
}

.jl-pricing .wp-block-column.is-featured .wp-block-button__link {
    background: var(--accent-gold);
}

.jl-pricing .wp-block-button__link:hover {
    background: var(--primary-darker);
}

.jl-pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold, #c08a3e);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    white-space: nowrap;
    margin: 0;
}

.jl-pricing-note {
    max-width: 760px;
    margin: 34px auto 0;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-soft, #5c5c52);
}

/* Regioner */
.jl-regions-section {
    padding: 80px 20px;
    background: var(--bg-white, #fff);
}

.jl-regions-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--primary-dark);
    font-weight: 400;
    margin: 0 auto 40px;
}

ul.jl-regions {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

ul.jl-regions li {
    background: var(--bg-light, #f8f4f1);
    border: 1px solid var(--border-light, #e8ded9);
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--text-body, #2b2b26);
    text-align: center;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

ul.jl-regions li:hover {
    border-color: var(--accent-gold, #c08a3e);
    transform: translateY(-2px);
}

/* Readable text section */
.jl-prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 20px;
}

.jl-prose h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--primary-dark);
    font-weight: 400;
    margin: 0 0 24px;
}

.jl-prose p {
    color: var(--text-body, #2b2b26);
    line-height: 1.85;
    margin: 0 0 20px;
    font-size: 1.02rem;
}

/* Checklista */
.jl-checklist-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

ul.jl-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.jl-checklist li {
    position: relative;
    padding: 16px 18px 16px 52px;
    margin-bottom: 12px;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-light, #e8ded9);
    border-radius: 8px;
    color: var(--text-body, #2b2b26);
    line-height: 1.6;
}

ul.jl-checklist li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border-radius: 50%;
    background: var(--accent-gold, #c08a3e);
}

ul.jl-checklist li::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 50%;
    width: 5px;
    height: 9px;
    margin-top: -6px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.jl-checklist-note {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-soft, #5c5c52);
}

.jl-checklist-note a {
    color: var(--accent-gold, #c08a3e);
    font-weight: 600;
}

@media (max-width: 781px) {
    .jl-pricing.wp-block-columns {
        gap: 20px;
    }
    .jl-pricing .wp-block-column.is-featured {
        order: -1;
    }
}

/* Page hero (for inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    padding: 160px 0 100px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   Legal pages (Privacy / Cookies / Terms)
   ======================================== */
.legal-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 150px 20px 56px;
}

.legal-hero h1 {
    color: var(--text-light);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
}

.legal-hero .legal-updated {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 0.9rem;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 20px 90px;
}

.legal-content h2 {
    font-size: 1.55rem;
    margin: 44px 0 16px;
    color: var(--primary-dark);
}

.legal-content h3 {
    font-size: 1.2rem;
    margin: 28px 0 10px;
    color: var(--primary-dark);
}

.legal-content p,
.legal-content li {
    color: var(--text-body);
    line-height: 1.8;
}

.legal-content ul {
    margin: 0 0 20px 22px;
    list-style: disc;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
}

.legal-content th,
.legal-content td {
    border: 1px solid var(--border-light);
    padding: 10px 12px;
    text-align: left;
    font-size: 0.92rem;
    vertical-align: top;
}

.legal-content th {
    background: var(--bg-light);
    color: var(--primary-dark);
}

.legal-content code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88rem;
}
