/*
Theme Name: Ferjekalkulator
Theme URI: https://ferjekalkulator.no
Author: LAKI
Author URI: https://laki.no
Description: Flerspråklig tema for ferjepriskalkulator (Boring Tools POC #8). Navy/gull/krem, theme-native i18n.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: ferjekalkulator-theme
License: Proprietary
*/

:root {
  --navy: #1E3A5F;
  --gold: #C9A84C;
  --cream: #F9F7F4;
  --text: #1C1C1E;
  --muted: #6B6B70;
  --border: #E2DDD7;
  --white: #fff;
  --sp: 1rem;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; color: var(--navy); line-height: 1.2; }
a { color: var(--navy); }
.site-main { max-width: 820px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--cream); }
.header-inner { max-width: 1040px; margin: 0 auto; padding: .9rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-logo { font-family: Fraunces, serif; font-weight: 600; font-size: 1.3rem; color: var(--navy); text-decoration: none; }
.site-nav a { margin-left: 1rem; text-decoration: none; font-weight: 500; }
.fk-langswitch { display: flex; gap: .3rem; flex-wrap: wrap; }
.fk-langswitch a { font-size: .8rem; padding: .2rem .5rem; border: 1px solid var(--border); border-radius: 5px; text-decoration: none; color: var(--muted); }
.fk-langswitch a.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--cream); color: var(--muted); font-size: .88rem; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1.25rem; }
.footer-inner a { color: var(--navy); }

/* Hero */
.fk-hero { text-align: center; margin-bottom: 2rem; }
.fk-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .5rem; }
.fk-hero p { color: var(--muted); font-size: 1.1rem; max-width: 38rem; margin: 0 auto; }

/* Content */
.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin-top: 2rem; }
.fk-breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.fk-breadcrumbs a { color: var(--muted); }
.fk-pristabell { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.fk-pristabell th, .fk-pristabell td { border-bottom: 1px solid var(--border); padding: .5rem .4rem; text-align: left; }
.fk-pristabell td:last-child, .fk-pristabell th:last-child { text-align: right; }
.fk-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.5rem 0; }
.fk-card { border: 1px solid var(--border); border-radius: 10px; padding: 1rem; background: var(--cream); }
.fk-card a { text-decoration: none; font-weight: 600; }
