/*
Theme Name: OvernTM
Theme URI: https://overntm.no/
Author: OVIT Consulting AS
Author URI: https://ovit.cloud/
Description: Skreddersydd tema for OvernTM - strom, merch og samarbeid. Bygget for WooCommerce og Polylang.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: overntm
Tags: e-commerce, dark, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   1. Designtokens
   ============================================================ */
:root {
  --bg:            #0c0a12;
  --bg-2:          #13101d;
  --surface:       #191428;
  --surface-2:     #221b36;
  --line:          #2e2545;
  --line-soft:     #241d38;

  --text:          #eeebf7;
  --text-muted:    #a79fc0;
  --text-dim:      #7d7595;

  --accent:        #9d6bff;
  --accent-hi:     #b48cff;
  --accent-lo:     #7c47e6;
  --accent-ink:    #ffffff;
  --accent-soft:   rgba(157,107,255,.14);

  --cyan:          #38d9d0;
  --amber:         #ffb648;
  --live:          #ff4d6a;

  --radius:        14px;
  --radius-lg:     22px;
  --radius-sm:     9px;

  --shadow:        0 10px 40px rgba(0,0,0,.45);
  --shadow-hi:     0 18px 60px rgba(124,71,230,.28);

  --wrap:          1200px;
  --wrap-narrow:   760px;

  --font:          "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display:  "Space Grotesk", var(--font);

  --step-lift:     transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, border-color .25s ease;
}

/* ============================================================
   2. Grunnlag
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Dempet lysglod i bakgrunnen - gir dybde uten a stjele oppmerksomhet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 40rem at 15% -10%, rgba(157,107,255,.13), transparent 60%),
    radial-gradient(50rem 35rem at 90% 0%, rgba(56,217,208,.07), transparent 55%);
}

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

a { color: var(--accent-hi); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1.15em; }

:focus-visible {
  outline: 3px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink);
  padding: .8rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0;
  z-index: 999;
}
.skip-link:focus { left: 0; top: 0; }

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

/* ============================================================
   3. Layout
   ============================================================ */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; position: relative; z-index: 1; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; z-index: 1; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }

.section-head { margin-bottom: 2.75rem; max-width: 62ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 1.7rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-head--center .eyebrow::before { display: none; }

/* ============================================================
   4. Knapper
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--step-lift);
  text-align: center;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-lo));
  color: var(--accent-ink);
  box-shadow: 0 8px 26px rgba(124,71,230,.34);
}
.btn--primary:hover {
  color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(124,71,230,.46);
}
.btn--ghost {
  background: rgba(255,255,255,.04);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-2px);
}
.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ============================================================
   5. Topplinje
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,10,18,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; letter-spacing: -.02em;
  color: var(--text); flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand img { max-height: 42px; width: auto; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-lo));
  display: grid; place-items: center;
  font-size: .95rem; color: #fff; font-weight: 700;
  box-shadow: 0 5px 16px rgba(124,71,230,.4);
}

.nav-main { margin-left: auto; }
.nav-main ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-main a {
  display: block; padding: .55rem .9rem;
  color: var(--text-muted); font-weight: 500; font-size: .96rem;
  border-radius: var(--radius-sm);
  transition: color .2s ease, background .2s ease;
}
.nav-main a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-main .current-menu-item > a { color: var(--text); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.lang-switch { display: flex; gap: .2rem; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 100px; padding: .2rem; }
.lang-switch a {
  padding: .3rem .65rem; border-radius: 100px;
  font-size: .8rem; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .04em;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch .is-active { background: var(--accent); color: #fff; }

.cart-link {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--text); transition: var(--step-lift);
}
.cart-link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 100px; background: var(--accent);
  color: #fff; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after  { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-main {
    position: fixed; inset: 74px 0 auto 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    display: none;
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
  }
  .nav-main.is-open { display: block; }
  .nav-main ul { flex-direction: column; gap: .15rem; }
  .nav-main a { padding: .8rem 1rem; font-size: 1.02rem; }
}

/* ============================================================
   6. Hero
   ============================================================ */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero h1 { margin-bottom: .5em; }
.hero .lede {
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  color: var(--text-muted); max-width: 52ch; margin-bottom: 1.9rem;
}
.hero .btn-row { margin-bottom: 2rem; }

.live-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .42rem .95rem; border-radius: 100px;
  background: rgba(255,77,106,.12); border: 1px solid rgba(255,77,106,.35);
  color: #ff8fa3; font-size: .82rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  font-family: var(--font-display);
  margin-bottom: 1.1rem;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(255,77,106,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255,77,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,106,0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  html { scroll-behavior: auto; }
}

.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; }
.hero-stats .num {
  font-family: var(--font-display); font-size: 1.85rem;
  font-weight: 700; color: var(--text); line-height: 1.1;
}
.hero-stats .lbl {
  font-size: .82rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .1em;
}

.stream-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-hi);
  aspect-ratio: 16 / 9;
}
.stream-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   7. Kort og rutenett
   ============================================================ */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: var(--step-lift);
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .96rem; margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--accent-soft); color: var(--accent-hi);
}

/* Sosiale kanaler */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 1rem; }
.social-card {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.05rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text);
  transition: var(--step-lift);
}
.social-card:hover { color: var(--text); transform: translateY(-3px); border-color: var(--brand-color, var(--accent)); box-shadow: var(--shadow); }
.social-card svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand-color, var(--accent-hi)); }
.social-card .s-name { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.social-card .s-handle { font-size: .8rem; color: var(--text-dim); }

/* Sponsorer */
.sponsor-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  transition: var(--step-lift); height: 100%;
}
.sponsor-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.sponsor-logo {
  height: 62px; display: grid; place-items: center;
  margin-bottom: 1.15rem;
}
.sponsor-logo img { max-height: 62px; width: auto; object-fit: contain; }
.sponsor-logo .placeholder {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: -.01em;
}
.sponsor-card h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.sponsor-card p { color: var(--text-muted); font-size: .93rem; flex-grow: 1; }
.sponsor-code {
  display: inline-flex; align-items: center; gap: .5rem;
  align-self: flex-start; margin-top: 1rem;
  padding: .5rem .9rem; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px dashed var(--accent);
  font-family: var(--font-display); font-weight: 700;
  color: var(--accent-hi); font-size: .9rem;
  letter-spacing: .06em;
}

/* ============================================================
   8. WooCommerce
   ============================================================ */
.woocommerce-page .site-main, .single-product .site-main { padding: 3rem 0 4.5rem; }

ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.6rem; list-style: none; margin: 0 0 2.5rem; padding: 0;
}
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--step-lift);
  display: flex; flex-direction: column;
}
ul.products li.product:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
ul.products li.product a img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; }
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display); font-size: 1.02rem !important;
  font-weight: 600; padding: 1rem 1.15rem .3rem !important; margin: 0;
  color: var(--text);
}
ul.products li.product .price {
  display: block; padding: 0 1.15rem .5rem; margin: 0;
  color: var(--accent-hi) !important; font-weight: 700; font-size: 1.05rem;
}
ul.products li.product .price del { color: var(--text-dim); font-weight: 400; margin-right: .4rem; }
ul.products li.product .button {
  margin: auto 1.15rem 1.15rem !important;
  display: block; text-align: center;
}
.woocommerce span.onsale {
  background: var(--live); color: #fff; border-radius: 100px;
  min-height: auto; min-width: auto; line-height: 1;
  padding: .45rem .85rem; font-weight: 700; font-size: .78rem;
  top: 12px; left: 12px; right: auto; margin: 0;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: linear-gradient(135deg, var(--accent), var(--accent-lo));
  color: #fff; border-radius: 100px; font-weight: 600;
  font-family: var(--font-display);
  padding: .8rem 1.5rem; border: 0;
  transition: var(--step-lift);
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
  color: #fff; transform: translateY(-2px);
}

.woocommerce div.product .product_title { margin-bottom: .35em; }
.woocommerce div.product p.price, .woocommerce div.product span.price {
  color: var(--accent-hi); font-size: 1.6rem; font-weight: 700;
}
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin-bottom: 1.5rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--surface); border-color: var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--text-muted); font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--surface-2); border-bottom-color: var(--surface-2); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--text); }

.woocommerce .quantity .qty {
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--radius-sm); padding: .6rem;
}

.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--surface); border-top: 3px solid var(--accent);
  color: var(--text); border-radius: var(--radius-sm);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent); }
.woocommerce-error { border-top-color: var(--live); }
.woocommerce-error::before { color: var(--live); }

.woocommerce table.shop_table, .woocommerce table.shop_table td,
.woocommerce table.shop_table th, .woocommerce-cart table.cart td.actions {
  border-color: var(--line); background: transparent; color: var(--text);
}
.woocommerce table.shop_table thead th { color: var(--text); }
.woocommerce .cart_totals h2, .woocommerce-checkout h3 { font-size: 1.35rem; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--radius-sm);
  padding: .75rem .9rem; height: auto; line-height: 1.4;
}
.woocommerce form .form-row label { color: var(--text-muted); font-size: .92rem; }
.select2-dropdown { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--accent); }

.woocommerce .woocommerce-breadcrumb { color: var(--text-dim); font-size: .9rem; margin-bottom: 1.5rem; }
.woocommerce .woocommerce-breadcrumb a { color: var(--text-muted); }

.woocommerce nav.woocommerce-pagination ul { border: 0; gap: .4rem; display: flex; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text-muted); padding: .5rem .9rem;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--accent); color: #fff; border-color: var(--accent); }

.woocommerce-store-notice, p.demo_store { background: var(--accent-lo); color: #fff; }

/* ============================================================
   9. Innholdssider
   ============================================================ */
.page-hero { padding: clamp(2.75rem, 6vw, 4.5rem) 0 0; }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .lede { color: var(--text-muted); font-size: 1.1rem; max-width: 60ch; }

.entry-content { font-size: 1.04rem; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; color: var(--text-muted); }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: .3rem 0 .3rem 1.4rem; margin-left: 0;
  color: var(--text-muted); font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; }
.entry-content th { background: var(--surface); }
.entry-content code {
  background: var(--surface-2); padding: .15em .45em;
  border-radius: 5px; font-size: .9em; color: var(--cyan);
}
.entry-content img { border-radius: var(--radius); }

.table-scroll { overflow-x: auto; }

/* Innlegg */
.post-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--step-lift); display: flex; flex-direction: column;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent-hi); }
.post-card .meta { font-size: .82rem; color: var(--text-dim); margin-bottom: .7rem; }
.post-card p { color: var(--text-muted); font-size: .94rem; flex-grow: 1; }

/* ============================================================
   10. Bunn
   ============================================================ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: 4rem;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
.footer-col h4 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--text-dim); margin-bottom: 1.1rem; font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: .55rem; }
.footer-col a { color: var(--text-muted); font-size: .95rem; }
.footer-col a:hover { color: var(--accent-hi); }
.footer-about p { color: var(--text-muted); font-size: .95rem; max-width: 40ch; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--text-muted); transition: var(--step-lift);
}
.footer-social a:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  color: var(--text-dim); font-size: .88rem;
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--accent-hi); }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   11. Diverse
   ============================================================ */
.notice-box {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1.15rem 1.35rem;
  color: var(--text-muted); font-size: .95rem;
}
.notice-box strong { color: var(--text); }

.cta-band {
  background: linear-gradient(135deg, rgba(157,107,255,.16), rgba(56,217,208,.08));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}
.cta-band h2 { margin-bottom: .5em; }
.cta-band p { color: var(--text-muted); max-width: 52ch; margin-inline: auto; margin-bottom: 1.75rem; }
.cta-band .btn-row { justify-content: center; }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: .55rem .95rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-muted);
}
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--text); }
