/* ═══════════════════════════════════════════════════
   BilligaVerktyg.se – Global Stylesheet v1.0
   Importera på alla sidor: <link rel="stylesheet" href="/assets/css/styles.css">
   ═══════════════════════════════════════════════════ */

/* ─── VARIABLER ─────────────────────────────────── */
:root {
  --orange:       #E8621A;
  --orange-dark:  #C4501A;
  --orange-light: #FF7A32;
  --dark:         #1A1A1A;
  --dark-2:       #2D2D2D;
  --bg:           #F7F4F0;
  --surface:      #FFFFFF;
  --text:         #1A1A1A;
  --muted:        #6B6560;
  --border:       #E0DAD4;
  --row-alt:      #FBF8F5;
  --highlight:    #FFF3EA;

  --radius:       6px;
  --radius-lg:    10px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow:       0 2px 10px rgba(0,0,0,0.08);
  --shadow-lg:    0 6px 24px rgba(0,0,0,0.10);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

/* ─── RESET & BASE ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--orange); }
a:hover { color: var(--orange-light); }

/* ─── TYPOGRAFI ─────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

h1 { font-size: clamp(32px, 6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(22px, 4vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p { line-height: 1.7; }

.text-muted   { color: var(--muted); }
.text-orange  { color: var(--orange); }
.text-center  { text-align: center; }
.text-sm      { font-size: 14px; }
.text-lg      { font-size: 18px; }

/* ─── LAYOUT ────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section        { padding: 48px 0; }
.section--sm    { padding: 28px 0; }
.section--lg    { padding: 72px 0; }
.section--dark  { background: var(--dark); }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }

/* ─── HEADER / NAVBAR ───────────────────────────── */
.site-header {
  background: var(--dark);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--orange);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo span { color: #fff; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: #B0A89E;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover,
.nav a.active { color: #fff; background: rgba(255,255,255,0.08); }

@media(max-width: 640px) {
  .nav { display: none; }
}

/* ─── HERO ──────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, #3a2010 100%);
  padding: 56px 24px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 350px; height: 350px;
  background: var(--orange);
  opacity: 0.05;
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 280px; height: 280px;
  background: var(--orange);
  opacity: 0.04;
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p {
  color: #B0A89E;
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 32px;
}

/* Breadcrumb i hero */
.hero-breadcrumb {
  position: absolute;
  top: 16px; left: 24px;
  font-size: 13px;
  color: #6B6560;
}
.hero-breadcrumb a { color: #6B6560; text-decoration: none; }
.hero-breadcrumb a:hover { color: var(--orange); }
.hero-breadcrumb span { margin: 0 6px; }

/* ─── KNAPPAR ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-light); color: #fff; box-shadow: 0 4px 16px rgba(232,98,26,0.4); }

.btn-secondary {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-secondary:hover { background: var(--orange); color: #fff; }

.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover { background: var(--dark-2); color: #fff; }

.btn--sm { font-size: 14px; padding: 8px 18px; }
.btn--lg { font-size: 20px; padding: 16px 40px; }
.btn svg { width: 18px; height: 18px; }

/* ─── CARDS ─────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 18px;
}
.card-icon { font-size: 22px; }
.card p, .card li {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.card ul { padding-left: 16px; }
.card li { margin-bottom: 4px; }

/* Formel-box inuti card */
.formula-box {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  margin-top: 10px;
}
.formula-box em { color: var(--orange); font-style: normal; }

/* ─── BADGE ─────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--highlight);
  color: var(--orange-dark);
  border: 1px solid #F5C4A4;
}
.badge--dark { background: var(--dark); color: #fff; border-color: #333; }

/* ─── KALKYLATOR ────────────────────────────────── */
.calc-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.calc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.calc-box {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.2s;
}
.calc-box:focus-within { border-color: var(--orange); }
.calc-box label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 6px;
}
.calc-box input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text);
  outline: none;
}
.calc-box .unit {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.calc-arrow {
  font-size: 28px;
  color: var(--orange);
  text-align: center;
  user-select: none;
}
.calc-result {
  margin-top: 12px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.calc-result b { color: var(--text); }

@media(max-width: 600px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-arrow { transform: rotate(90deg); }
}

/* ─── TABELLER ──────────────────────────────────── */
.table-wrapper {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-scroll { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.data-table thead tr {
  background: var(--dark);
  color: #fff;
}
.data-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 18px;
  text-align: left;
  white-space: nowrap;
}
.data-table thead th:first-child { color: var(--orange); }

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.data-table tbody tr:nth-child(even) { background: var(--row-alt); }
.data-table tbody tr:hover { background: var(--highlight); }
.data-table tbody tr.row--highlight {
  background: var(--highlight) !important;
  outline: 2px solid var(--orange);
  outline-offset: -1px;
}

.data-table td {
  padding: 9px 18px;
  white-space: nowrap;
}
.data-table td:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--orange-dark);
}
.data-table td:nth-child(2) { font-weight: 600; }
.data-table .td--muted { color: var(--muted); font-size: 13px; }

.table-footer {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--row-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── SÖK / FILTER ──────────────────────────────── */
.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  gap: 8px;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--orange); }
.search-box svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.search-box input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  width: 140px;
  background: transparent;
}

/* ─── SECTION HEADER (rubrik + sök-rad) ─────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
}

/* ─── FAQ / ACCORDION ───────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
details[open] { border-color: var(--orange); }

summary {
  padding: 15px 20px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 22px;
  color: var(--orange);
  font-weight: 400;
  flex-shrink: 0;
}
details[open] summary::after { content: '−'; }

details .faq-body {
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* ─── DOWNLOAD / PDF-SEKTION ────────────────────── */
.download-section {
  background: var(--dark);
  padding: 56px 0;
  text-align: center;
}
.download-section h2 { color: #fff; margin-bottom: 10px; }
.download-section h2 em { color: var(--orange); font-style: normal; }
.download-section p { color: #8A8480; max-width: 480px; margin: 0 auto 28px; }

.feature-list {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.feature-item {
  color: #B0A89E;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feature-item::before { content: '✓'; color: var(--orange); font-weight: 700; }

/* ─── ALERT / INFO BOX ──────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
}
.alert--info  { background: #EEF4FF; border-left: 4px solid #4A80D4; color: #2A4A8A; }
.alert--tip   { background: var(--highlight); border-left: 4px solid var(--orange); color: var(--orange-dark); }
.alert--warn  { background: #FFFBEA; border-left: 4px solid #D4A017; color: #7A5A00; }

/* ─── FOOTER ────────────────────────────────────── */
footer {
  background: #111;
  padding: 32px 24px;
  color: #555;
  font-size: 14px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #555; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }

/* ─── PRINT ─────────────────────────────────────── */
@media print {
  .site-header, .hero, .calc-section, .search-box,
  .download-section, footer, .btn, nav { display: none !important; }
  body { background: white; font-size: 11pt; }
  .table-wrapper { border: 1px solid #ccc; box-shadow: none; }
  .data-table thead tr {
    background: #1A1A1A !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .data-table tbody tr:nth-child(even) {
    background: #f5f5f5 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .data-table td, .data-table th { padding: 5px 10px !important; }
}

/* ─── RESPONSIVT ────────────────────────────────── */
@media(max-width: 768px) {
  .section { padding: 36px 0; }
  .hero { padding: 44px 20px 40px; }
  .container, .container--wide { padding: 0 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media(max-width: 480px) {
  .section-header { flex-direction: column; align-items: flex-start; }
  .feature-list { gap: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.auktioner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.auktioner-list {
  list-style: none;
  padding: 0;
}

.auktioner-list li {
  margin: 0.5rem 0;
}
