/* Malung-Sälen Flyttstäd v3 - Varm lokal hantverkare
   Single source of truth för alla sidor.
   Estetik: terrakotta accent, mörkblå text, off-white papperskänsla, serif-rubriker.
*/

/* ==========================================================================
   1. Fonts
   ========================================================================== */

/* Inter (sans, brödtext) - lokalt self-hosted, latin subset, woff2. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}

/* Playfair Display (serif, rubriker) via Google Fonts CDN.
   font-display:swap förhindrar FOIT. Preconnect:as i HTML. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&display=swap');

/* ==========================================================================
   2. Variabler - varm hantverkare-palett
   ========================================================================== */

:root {
  /* Bas */
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f4ede2;
  --text: #1a3a5c;
  --text-soft: #2d4a6b;
  --text-muted: #5a6b7c;

  /* Accent (terrakotta) */
  --accent: #c4956c;
  --accent-dark: #9d7654;
  --accent-light: #e8d4bf;
  --accent-tint: #f5ebde;

  /* Status */
  --success: #2d6b3f;
  --danger: #b03a3a;
  --warn: #d8a23b;

  /* Lines, shadows */
  --border: #e8e0d4;
  --border-soft: #f0e8da;
  --shadow-sm: 0 1px 2px rgba(26, 58, 92, 0.05);
  --shadow-md: 0 4px 14px rgba(26, 58, 92, 0.08);
  --shadow-lg: 0 12px 36px rgba(26, 58, 92, 0.13);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-h: 76px;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', 'Source Serif Pro', Georgia, serif;

  /* Bakåtkompatibla aliases (gamla klasser i bokning.html, kontakt.html) */
  --color-primary: var(--accent);
  --color-primary-dark: var(--accent-dark);
  --color-text: var(--text);
  --color-muted: var(--text-muted);
  --color-bg: var(--bg);
  --color-bg-alt: var(--surface-2);
  --color-border: var(--border);
  --color-success: var(--success);
  --color-warn: var(--warn);
  --color-danger: var(--danger);
}

/* ==========================================================================
   3. Reset + bas
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); transition: color .15s ease; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.25rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1rem; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--accent); color: #fff;
  padding: 10px 18px; z-index: 9999;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   4. Header / nav
   ========================================================================== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-soft);
  height: var(--header-h);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.site-nav .logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-nav .logo img { display: block; height: 50px; width: auto; max-width: 220px; }
@media (max-width: 600px) {
  .site-nav .logo img { height: 38px; max-width: 165px; }
}
.site-nav .nav-links {
  list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0;
}
.site-nav .nav-links a {
  color: var(--text); text-decoration: none; font-weight: 500;
  padding: 0.5rem 0; position: relative;
  font-size: 0.97rem;
}
.site-nav .nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .2s ease;
}
.site-nav .nav-links a:hover::after,
.site-nav .nav-links a[aria-current="page"]::after { width: 100%; }
.site-nav .nav-links a:hover, .site-nav .nav-links a[aria-current="page"] { color: var(--accent-dark); }
.site-nav .phone-btn {
  background: var(--accent); color: #fff; padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md); text-decoration: none; font-weight: 600;
  white-space: nowrap; letter-spacing: 0.01em;
  transition: background .15s ease, transform .1s ease;
}
.site-nav .phone-btn:hover { background: var(--accent-dark); color: #fff; }
.site-nav .phone-btn:active { transform: translateY(1px); }
.mobile-menu-btn {
  display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer;
  padding: 0.5rem; color: var(--text);
}
.mobile-menu {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
  background: #fff; box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border-soft);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0.5rem 0; }
.mobile-menu a {
  display: block; padding: 1rem 1.5rem; text-decoration: none;
  color: var(--text); border-bottom: 1px solid var(--border-soft); font-weight: 500;
}
.mobile-menu a:hover { background: var(--surface-2); color: var(--accent-dark); }

/* ==========================================================================
   5. Hero - varianter
   ========================================================================== */

/* Stor hero (index) - fullbild med overlay */
.hero-image {
  position: relative;
  min-height: clamp(560px, 85vh, 780px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: #1a3a5c url('/assets/img/hero-malung-stuga-skymning.jpg') center/cover no-repeat;
  color: #fff;
  margin-bottom: 0;
  overflow: hidden;
}
.hero-image::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(26, 58, 92, 0.45) 0%,
    rgba(26, 58, 92, 0.55) 60%,
    rgba(26, 58, 92, 0.7) 100%);
}
.hero-image .container { position: relative; z-index: 1; padding-block: 4rem; }
.hero-image h1 {
  color: #fff; font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1; margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}
.hero-image .lead {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 720px; margin: 0 auto 2rem;
  line-height: 1.55;
}
.hero-image .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 1;
  color: #fff; font-size: 0.85rem; letter-spacing: 0.05em;
  text-transform: uppercase; opacity: 0.75;
  animation: heroBounce 2.4s ease-in-out infinite;
  text-decoration: none;
}
.hero-scroll::after { content: " ↓"; }
@keyframes heroBounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.75; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* Liten hero (övriga sidor) tonad bakgrund, ingen bild */
.hero {
  background: linear-gradient(135deg, var(--text) 0%, #2a4d72 100%);
  color: #fff;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 4px; background: var(--accent);
  border-radius: 2px;
}
.hero h1 { color: #fff; margin: 0 0 0.75rem; }
.hero .lead {
  color: rgba(255, 255, 255, 0.92); font-size: clamp(1rem, 1.7vw, 1.2rem);
  max-width: 720px; margin: 0 auto 1.5rem;
}
.hero .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.btn {
  display: inline-block; padding: 0.95rem 1.85rem;
  border-radius: var(--radius-md); text-decoration: none; font-weight: 600;
  border: 0; cursor: pointer; font-size: 1rem;
  letter-spacing: 0.02em; line-height: 1.2;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  font-family: var(--font-sans);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-secondary {
  background: transparent; color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

.btn-cta {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-cta:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-tint); }

.btn-block { display: block; width: 100%; text-align: center; }

/* ==========================================================================
   7. Sections
   ========================================================================== */

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface-2); }
.section-cream { background: var(--accent-tint); }
.section h2 { text-align: center; margin: 0 0 1rem; }
.section .lead-center {
  text-align: center; max-width: 720px; margin: 0 auto 2.5rem;
  color: var(--text-muted); font-size: 1.1rem;
}
.eyebrow {
  display: inline-block; text-align: center;
  font-family: var(--font-sans); font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 0.75rem;
  position: relative; padding: 0 1.5rem;
}
.eyebrow::before, .eyebrow::after {
  content: ""; position: absolute; top: 50%;
  width: 1rem; height: 1px; background: var(--accent);
}
.eyebrow::before { left: 0; }
.eyebrow::after { right: 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ==========================================================================
   8. Grids
   ========================================================================== */

.grid { display: grid; gap: 1.75rem; }
.grid-features { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-services { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2rem; }
.grid-prices { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-areas { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.grid-process { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }

/* ==========================================================================
   9. Cards
   ========================================================================== */

.card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.card .card-icon {
  width: 56px; height: 56px; margin: 0 auto 1.25rem;
  background: var(--accent-tint); color: var(--accent-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1;
}
.card h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.card p { color: var(--text-muted); margin: 0; line-height: 1.6; }

/* Service-card (med foto) */
.card-service {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-align: left; padding: 0;
}
.card-service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.card-service .card-img {
  width: 100%; height: 220px;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.card-service .card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.card-service:hover .card-img img { transform: scale(1.04); }
.card-service .card-body { padding: 1.5rem 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card-service h3 { margin: 0 0 0.5rem; }
.card-service .price {
  font-weight: 600; color: var(--accent-dark);
  margin: 0.5rem 0 0.75rem;
  font-size: 1rem; font-family: var(--font-sans);
}
.card-service p { color: var(--text-muted); margin: 0 0 0.75rem; line-height: 1.6; }
.card-service .read-more {
  align-self: flex-start; margin-top: auto;
  color: var(--accent-dark); text-decoration: none; font-weight: 600;
  font-size: 0.95rem; padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.card-service .read-more:hover { border-bottom-color: var(--accent); color: var(--accent-dark); }

/* Pris-card */
.price-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.price-card h3 { color: var(--text); margin-top: 0; font-size: 1.25rem; }
.price-card .price-amount {
  font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600;
  color: var(--accent-dark); line-height: 1; margin: 0.75rem 0 0.25rem;
}
.price-card .price-detail { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.price-card .price-rut { color: var(--success); font-weight: 600; margin: 0.75rem 0 0; font-size: 0.95rem; }
.price-card ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.price-card li {
  padding: 0.45rem 0 0.45rem 1.5rem; color: var(--text-soft);
  position: relative; font-size: 0.95rem;
  border-top: 1px solid var(--border-soft);
}
.price-card li:first-child { border-top: 0; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 0.45rem;
  color: var(--accent); font-weight: 700;
}

/* Area-tile (serviceområden) */
.area-tile {
  background: var(--surface); padding: 1.25rem 1rem;
  border-radius: var(--radius-md); text-align: center;
  border: 1px solid var(--border);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.area-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-light);
}
.area-tile h3 {
  font-family: var(--font-serif); font-size: 1.05rem;
  margin: 0 0 0.2rem; color: var(--text);
}
.area-tile p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* CTA-panel */
.cta-panel {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-panel h3 { color: #fff; margin: 0 0 0.5rem; font-size: 1.5rem; }
.cta-panel p { margin: 0 0 1.5rem; opacity: 0.95; }
.cta-panel .btn-primary { background: #fff; color: var(--accent-dark); }
.cta-panel .btn-primary:hover { background: var(--accent-tint); color: var(--accent-dark); }

/* ==========================================================================
   10. Garanti-sektion (varma kortet)
   ========================================================================== */

.garanti-section {
  background: var(--accent-tint);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  position: relative;
}
.garanti-header { text-align: center; margin-bottom: 2.5rem; }
.garanti-header h2 { margin: 0 0 0.5rem; }
.garanti-subtitle {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.4rem; color: var(--accent-dark);
  margin: 0; font-weight: 500;
}
.garanti-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
  position: relative;
}
.garanti-card::before {
  content: '"';
  position: absolute; top: -1.5rem; left: 2.5rem;
  font-family: var(--font-serif); font-size: 6rem;
  color: var(--accent); line-height: 1; opacity: 0.4;
}
.garanti-intro {
  font-size: 1.1rem; line-height: 1.65;
  color: var(--text); margin: 0 0 2rem;
}
.garanti-points { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.garanti-points li {
  padding-left: 2.25rem; position: relative;
  line-height: 1.6; color: var(--text-soft);
}
.garanti-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0.1rem;
  width: 1.6rem; height: 1.6rem;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
}
.garanti-points strong { color: var(--text); display: block; margin-bottom: 0.15rem; }
.garanti-disclaimer {
  font-size: 0.88rem; color: var(--text-muted);
  line-height: 1.55; margin: 0;
  padding-top: 1.5rem; border-top: 1px solid var(--border-soft);
}

/* ==========================================================================
   11. Process-stegen (numrerade)
   ========================================================================== */

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.process-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.process-step h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.process-step p { color: var(--text-muted); margin: 0; line-height: 1.6; font-size: 0.95rem; }

/* ==========================================================================
   12. Område (omrade-banner)
   ========================================================================== */

.omrade-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: #1a3a5c center/cover no-repeat;
  color: #fff;
  margin-bottom: 2.5rem;
}
.omrade-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 58, 92, 0.4) 0%, rgba(26, 58, 92, 0.7) 100%);
}
.omrade-banner-content { position: relative; z-index: 1; padding: 2.5rem 1.5rem; max-width: 720px; }
.omrade-banner h3 {
  color: #fff; font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 0.75rem;
}
.omrade-banner p { color: rgba(255, 255, 255, 0.94); margin: 0; font-size: 1.05rem; }

/* ==========================================================================
   13. Trust-badges
   ========================================================================== */

.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: center; align-items: center;
  padding: 1.5rem 0;
}
.trust-badge {
  background: var(--surface); padding: 0.7rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-soft);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.trust-badge .icon { color: var(--accent-dark); font-weight: 700; }

/* ==========================================================================
   14. FAQ
   ========================================================================== */

.faq-list {
  max-width: 820px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  border: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-question {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 1.5rem 1.75rem;
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background .15s ease;
}
.faq-question:hover { background: var(--surface-2); }
.faq-question::after {
  content: "+"; font-size: 1.5rem;
  color: var(--accent-dark); font-family: var(--font-sans);
  transition: transform .25s ease; flex-shrink: 0; line-height: 1;
}
.faq-question[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.75rem 1.5rem; color: var(--text-soft); line-height: 1.7; }
.faq-answer[hidden] { display: none; }
.faq-answer p { margin: 0 0 0.75rem; }
.faq-answer ul { margin: 0.5rem 0 0.75rem; padding-left: 1.5rem; }
.faq-answer li { margin-bottom: 0.3rem; }

/* ==========================================================================
   15. Forms
   ========================================================================== */

.form {
  max-width: 720px; margin: 0 auto;
  background: var(--surface); padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 0.45rem;
  color: var(--text); font-size: 0.95rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.85rem 0.95rem;
  border: 2px solid var(--border); border-radius: var(--radius-md);
  font-size: 1rem; font-family: inherit; background: var(--surface);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); outline: 0;
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group .help { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }
.form-group.checkbox { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.8rem; }
.form-group.checkbox input { width: auto; margin-top: 0.3rem; flex-shrink: 0; }
.form-group.checkbox label { font-weight: 400; color: var(--text-soft); }
.form-error {
  background: #fce8e8; color: var(--danger);
  padding: 1rem 1.25rem; border-radius: var(--radius-md);
  margin-bottom: 1rem; border: 1px solid #f5c5c5;
}
.form-success {
  background: #e6f0e9; color: #2d4a37;
  padding: 1rem 1.25rem; border-radius: var(--radius-md);
  margin-bottom: 1rem; border: 1px solid #b8d3bf;
}
.honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Booking-stepper */
.steps-bar { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.step-pill {
  flex: 1; padding: 0.85rem 0.75rem; text-align: center;
  border-radius: var(--radius-md); background: var(--surface-2);
  color: var(--text-muted); font-size: 0.875rem; font-weight: 600;
  border: 1px solid var(--border);
  font-family: var(--font-sans);
}
.step-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.step-pill.done { background: var(--success); color: #fff; border-color: var(--success); }
.service-radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.service-radio { position: relative; }
.service-radio input { position: absolute; opacity: 0; pointer-events: none; }
.service-radio label {
  display: block; padding: 1.4rem 1rem;
  border: 2px solid var(--border); border-radius: var(--radius-md);
  text-align: center; cursor: pointer; background: var(--surface);
  transition: all .15s ease;
}
.service-radio label:hover { border-color: var(--accent-light); }
.service-radio input:checked + label {
  border-color: var(--accent); background: var(--accent-tint);
}
.service-radio .icon { font-size: 1.8rem; display: block; margin-bottom: 0.5rem; line-height: 1; }
.service-radio .label-text { font-weight: 600; color: var(--text); }
.step { display: none; }
.step.active { display: block; }

/* ==========================================================================
   16. Sticky mobile CTA
   ========================================================================== */

.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -4px 16px rgba(26, 58, 92, 0.1);
  padding: 0.75rem; gap: 0.5rem;
  border-top: 1px solid var(--border);
}
.sticky-cta a {
  flex: 1; padding: 0.95rem; text-align: center;
  border-radius: var(--radius-md); text-decoration: none; font-weight: 600;
  font-size: 0.95rem;
}
.sticky-cta .call { background: var(--success); color: #fff; }
.sticky-cta .book { background: var(--accent); color: #fff; }

/* ==========================================================================
   17. Footer
   ========================================================================== */

.site-footer {
  background: var(--text);
  color: #d8dee5;
  padding: clamp(3rem, 6vw, 4rem) 0 1.75rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem; margin-bottom: 2.5rem;
}
.site-footer .footer-brand .footer-logo {
  display: block; margin-bottom: 1rem;
  height: 44px; width: auto;
}
.site-footer .footer-brand p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem; line-height: 1.6; max-width: 280px;
}
.site-footer h3 {
  color: #fff; font-family: var(--font-sans);
  font-size: 0.85rem; margin: 0 0 1rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600;
}
.site-footer p, .site-footer a {
  color: rgba(255, 255, 255, 0.82); text-decoration: none;
  line-height: 1.85; font-size: 0.95rem;
  margin: 0;
}
.site-footer a:hover { color: var(--accent-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { line-height: 1.85; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem; text-align: center;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.65);
}
.footer-bottom p { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 900px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

/* ==========================================================================
   18. Blogg
   ========================================================================== */

.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem; margin: 0 auto;
  max-width: 1100px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}
.blog-card-body {
  padding: 1.75rem 1.75rem 1.85rem;
  display: flex; flex-direction: column; gap: 0.75rem; flex: 1;
}
.blog-card h2 {
  font-size: 1.3rem; line-height: 1.3;
  margin: 0; color: var(--text);
}
.blog-card h2 a { color: inherit; text-decoration: none; }
.blog-card h2 a:hover { color: var(--accent-dark); }
.blog-card-desc {
  color: var(--text-muted); font-size: 0.95rem;
  line-height: 1.6; margin: 0; flex: 1;
}
.blog-card .read-more {
  align-self: flex-start; font-weight: 600;
  color: var(--accent-dark); text-decoration: none;
  margin-top: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
  padding-bottom: 0.15rem;
}
.blog-card .read-more:hover { border-bottom-color: var(--accent); }

.blog-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-muted);
  margin: 0; flex-wrap: wrap; font-family: var(--font-sans);
}
.blog-meta .dot { opacity: 0.5; }
.blog-meta .cat {
  background: var(--accent-tint); border-radius: var(--radius-sm);
  padding: 0.18rem 0.6rem; font-weight: 500; color: var(--accent-dark);
  font-size: 0.8rem; letter-spacing: 0.02em;
}
.blog-meta-hero {
  font-size: 0.95rem; color: rgba(255, 255, 255, 0.85);
  margin: 0.75rem 0 0;
  display: flex; align-items: center; gap: 0.6rem;
  justify-content: center; flex-wrap: wrap;
}
.blog-meta-hero .cat {
  background: rgba(255, 255, 255, 0.18);
  padding: 0.2rem 0.7rem; border-radius: var(--radius-sm);
}

.breadcrumb { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 1rem; }
.breadcrumb a { color: #fff; text-decoration: underline; }
.breadcrumb a:hover { text-decoration: none; }

.blog-post .blog-content {
  max-width: 720px; margin: 0 auto;
  font-size: 1.07rem; line-height: 1.75;
  color: var(--text-soft);
}
.blog-content > *:first-child { margin-top: 0; }
.blog-content p { margin: 0 0 1.25rem; }
.blog-content h2 {
  font-size: 1.7rem; line-height: 1.3;
  margin: 2.75rem 0 1rem;
  color: var(--text);
  padding-top: 1.75rem;
  position: relative;
}
.blog-content h2::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 48px; height: 3px; background: var(--accent);
  border-radius: 2px;
}
.blog-content h2:first-of-type { padding-top: 0; margin-top: 1.5rem; }
.blog-content h2:first-of-type::before { display: none; }
.blog-content h3 { font-size: 1.3rem; line-height: 1.35; margin: 2rem 0 0.75rem; }
.blog-content ul, .blog-content ol { margin: 0 0 1.5rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; }
.blog-content a { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.blog-content a:hover { color: var(--accent); }
.blog-content strong { color: var(--text); font-weight: 600; }
.blog-content blockquote {
  margin: 1.75rem 0; padding: 1.25rem 1.5rem;
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text); font-style: normal;
}
.blog-content blockquote p:last-child { margin-bottom: 0; }
.blog-content code {
  background: var(--surface-2); padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm); font-size: 0.92em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
.blog-content pre {
  background: #1a3a5c; color: #d8dee5;
  padding: 1rem 1.25rem; border-radius: var(--radius-md);
  overflow-x: auto; font-size: 0.9rem; line-height: 1.55;
  margin: 0 0 1.5rem;
}
.blog-content pre code { background: transparent; color: inherit; padding: 0; }
.blog-content hr { border: 0; border-top: 1px solid var(--border); margin: 2.25rem 0; }

.blog-content table,
.price-table {
  width: 100%; border-collapse: collapse;
  margin: 0 0 1.75rem; font-size: 0.95rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden;
}
.blog-content thead,
.price-table thead { background: var(--surface-2); }
.blog-content th, .blog-content td,
.price-table th, .price-table td {
  text-align: left; padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.blog-content th,
.price-table th { font-weight: 600; color: var(--text); font-family: var(--font-sans); }
.blog-content tbody tr:last-child td,
.price-table tbody tr:last-child td { border-bottom: 0; }
.blog-content tbody tr:nth-child(even),
.price-table tbody tr:nth-child(even) { background: rgba(196, 149, 108, 0.04); }
.price-table td:last-child { font-weight: 600; color: var(--text); white-space: nowrap; }

.blog-cta-row {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  justify-content: center; max-width: 720px;
  margin: 2.5rem auto 0; padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Author bio-ruta i slutet av blogg-poster */
.author-bio {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--surface-2, #f7fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem auto 0;
  max-width: 720px;
}
.author-bio-avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent, #c4956c);
}
.author-bio-content {
  flex: 1;
  min-width: 0;
}
.author-bio-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  color: var(--text, #1a3a5c);
}
.author-bio-title {
  font-size: 0.88rem;
  color: var(--text-muted, #4a5568);
  margin: 0 0 0.6rem;
  font-weight: 500;
}
.author-bio-text {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  color: var(--text, #1a3a5c);
}
@media (max-width: 560px) {
  .author-bio {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .author-bio-avatar {
    width: 80px;
    height: 80px;
  }
}

/* ==========================================================================
   19. Misc helpers + animationer
   ========================================================================== */

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.hidden { display: none !important; }

.cta-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
}

/* Subtil fade-in när sektioner kommer in - styrs av JS Intersection Observer */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   20. Mobile breakpoints
   ========================================================================== */

@media (max-width: 900px) {
  body { font-size: 16px; }
  .form { padding: 1.75rem; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { padding-top: 64px; }
  .site-nav .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .site-nav .phone-btn { padding: 0.55rem 0.85rem; font-size: 0.85rem; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-image { min-height: 60vh; }
  .hero-image .container { padding-block: 3rem; }
  .hero .cta-row .btn,
  .hero-image .cta-row .btn { width: 100%; }
  .hero-scroll { display: none; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 80px; }
  .garanti-card { padding: 1.75rem 1.4rem; }
  .garanti-card::before { left: 1.5rem; top: -1.2rem; font-size: 4.5rem; }
  .blog-content h2 { font-size: 1.4rem; }
  .blog-content h3 { font-size: 1.15rem; }
  .blog-content table { font-size: 0.88rem; }
  .blog-content th, .blog-content td { padding: 0.55rem 0.6rem; }
  .blog-cards { grid-template-columns: 1fr; }
  .form { padding: 1.5rem; }
  .card-service .card-img { height: 180px; }
}

@media (max-width: 480px) {
  .hero-image { min-height: 540px; }
  .container { padding: 0 18px; }
  .container-narrow { padding: 0 18px; }
  .garanti-card { padding: 1.5rem 1.1rem; }
}

/* ==========================================================================
   21. Mobile target sizes — WCAG 2.5.5 (44x44 minimum touch target)
   ========================================================================== */
@media (max-width: 768px) {
  /* Synliga radio/checkbox blir större på mobil */
  input[type="radio"]:not(.honeypot input):not(.service-radio input),
  input[type="checkbox"]:not(.honeypot input) {
    min-width: 24px;
    min-height: 24px;
  }
  /* Label-target höjer hela klickytan till 44px för tillgänglighet */
  .form-group.checkbox {
    min-height: 44px;
    padding: 8px 0;
  }
  /* service-radio: label är klick-target (input gömd), säkerställ 44px */
  .service-radio label {
    min-height: 44px;
  }
}

/* ============================================================
   COOKIE BANNER (Consent Mode v2)
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 3px solid var(--accent, #c4956c);
  box-shadow: 0 -8px 30px rgba(26, 58, 92, 0.18);
  padding: 1.25rem 1rem;
  animation: cookie-slide-up 0.4s ease-out;
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.cookie-banner-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text, #1a3a5c);
  flex: 1 1 100%;
}
.cookie-banner-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted, #4a5568);
  flex: 1 1 60%;
  min-width: 280px;
}
.cookie-banner-desc a {
  color: var(--accent, #c4956c);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex: 0 0 auto;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cookie-btn-minimal {
  background: transparent;
  color: var(--text, #1a3a5c);
  border: 1.5px solid var(--border, #cbd5e0);
}
.cookie-btn-minimal:hover {
  background: var(--surface-2, #f7fafc);
}
.cookie-btn-all {
  background: var(--accent, #c4956c);
  color: #ffffff;
}
.cookie-btn-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 149, 108, 0.35);
}
.cookie-settings-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}
.cookie-settings-link:hover {
  color: #ffffff;
}
@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
  }
}

/* ============================================================
   FÖNSTERPUTS-KALKYLATOR
   ============================================================ */
.kalk-disclaimer {
  background: #fff5e6;
  border-left: 4px solid var(--accent, #c4956c);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 0 0 2rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.kalk-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.kalk-form { min-width: 0; }
.kalk-steg {
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.kalk-steg h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--text, #1a3a5c);
}
.kalk-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted, #4a5568);
}
.kalk-kundtyp-wrapper {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.kalk-kundtyp-rubrik {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  color: var(--text, #1a3a5c);
}
.kalk-kundtyp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.kalk-kundtyp-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
  background: #fafafa;
  transition: all 0.15s ease;
}
.kalk-kundtyp-option:has(input:checked) {
  border-color: var(--accent, #c4956c);
  background: #fff5e6;
}
.kalk-kundtyp-option input { margin-top: 0.25rem; }
.kalk-kundtyp-option small { color: var(--text-muted, #4a5568); }

.kalk-info-box {
  background: #fff5e6;
  border: 1px solid #f0d4a6;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.kalk-info-box summary {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: linear-gradient(to right, #fff5e6, #ffe9c8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.kalk-info-box summary::-webkit-details-marker { display: none; }
.kalk-info-box summary::before {
  content: 'ⓘ';
  font-size: 1.4rem;
  color: var(--accent, #c4956c);
  flex-shrink: 0;
}
.kalk-info-box[open] summary {
  border-bottom: 1px solid #f0d4a6;
}
.kalk-info-box summary:hover {
  background: linear-gradient(to right, #ffeacb, #ffe1b4);
}
.kalk-info-content {
  padding: 1rem 1.5rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
}
.kalk-info-content h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text, #1a3a5c);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.kalk-info-content h4:first-child { margin-top: 0; }
.kalk-info-content p { margin: 0.5rem 0; color: var(--text, #1a3a5c); }
.kalk-info-tag {
  background: var(--accent, #c4956c);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.kalk-info-list {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.5rem;
}
.kalk-info-list li {
  margin: 0.25rem 0;
  color: var(--text-muted, #4a5568);
}
.kalk-info-tip {
  background: #ffffff;
  border-left: 3px solid var(--accent, #c4956c);
  padding: 0.6rem 0.85rem;
  margin: 1rem 0 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: var(--text-muted, #4a5568);
}
.kalk-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border, #e2e8f0);
}
.kalk-info-table thead {
  background: #fff5e6;
}
.kalk-info-table th, .kalk-info-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border, #e2e8f0);
  vertical-align: top;
}
.kalk-info-table tbody tr:last-child td {
  border-bottom: 0;
}
.kalk-info-table th {
  font-weight: 600;
  color: var(--text, #1a3a5c);
}

.kalk-rad {
  background: #fafafa;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.kalk-rad-header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.kalk-rad-nr {
  display: inline-block;
  background: var(--accent, #c4956c);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.kalk-rad-beskrivning {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 4px;
  background: #ffffff;
}
.kalk-rad-bort {
  padding: 0.4rem 0.85rem;
  border: 1px solid #fed7d7;
  background: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #c53030;
  font-weight: 500;
  transition: all 0.15s ease;
}
.kalk-rad-bort:hover {
  background: #fed7d7;
}
.kalk-rad-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border, #e2e8f0);
  display: flex;
  justify-content: center;
}
.btn-inline {
  background: transparent;
  color: var(--accent, #c4956c);
  border: 2px dashed var(--accent, #c4956c);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s ease;
}
.btn-inline:hover {
  background: var(--accent, #c4956c);
  color: #ffffff;
  border-style: solid;
}
.kalk-rad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.kalk-rad-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text, #1a3a5c);
  font-weight: 500;
}
.kalk-rad-grid input,
.kalk-rad-grid select {
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 4px;
  background: #ffffff;
  min-height: 40px;
}
.kalk-rad-grid small {
  font-size: 0.78rem;
  color: var(--text-muted, #4a5568);
  font-weight: 400;
}
.kalk-rad-info {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border, #e2e8f0);
  font-size: 0.88rem;
}
.kalk-rad-info em {
  color: var(--text-muted, #4a5568);
  font-style: italic;
}
.rad-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
}
.rad-info-row span { color: var(--text-muted, #4a5568); }
.rad-info-row strong { color: var(--text, #1a3a5c); }
.kalk-rad-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.kalk-add-btn {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent, #c4956c);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(196, 149, 108, 0.25);
}
.kalk-add-btn:hover {
  background: #b88157;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(196, 149, 108, 0.35);
}
.kalk-clear-btn {
  padding: 0.85rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-muted, #4a5568);
  border: 1px solid var(--border, #cbd5e0);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.kalk-clear-btn:hover {
  background: #f7fafc;
  color: #c53030;
}

/* Aside / sticky pris */
.kalk-aside {
  position: sticky;
  top: 80px;
  align-self: start;
}
.kalk-aside-inner {
  background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(26, 58, 92, 0.25);
}
.kalk-aside h2 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.2rem;
}
.kalk-summa-tom {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0;
}
.kalk-summa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.kalk-summa-table td {
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.92);
}
.kalk-summa-table td:last-child {
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
}
.kalk-summa-table tr.kalk-rad-stark td {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 0.6rem;
}
.kalk-summa-table tr.kalk-rad-rut td {
  color: #9ae6b4;
}
.kalk-summa-table tr.kalk-rad-resultat td {
  font-weight: 600;
  padding-top: 0.5rem;
}
.kalk-summa-table tr.kalk-rad-total td {
  font-size: 1.15rem;
  font-weight: 700;
  border-top: 2px solid rgba(255, 255, 255, 0.4);
  padding-top: 0.7rem;
  color: #ffffff;
}
.kalk-aside-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

#skicka-offert {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 10px;
  border: none;
  background: var(--accent, #c4956c);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(196, 149, 108, 0.3);
}
#skicka-offert:hover:not(:disabled) {
  background: #b88157;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(196, 149, 108, 0.4);
}
#skicka-offert:active:not(:disabled) {
  transform: translateY(0);
}
#skicka-offert:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #cbd5e0;
  box-shadow: none;
}

/* Mobil */
@media (max-width: 900px) {
  .kalk-layout {
    grid-template-columns: 1fr;
  }
  .kalk-aside {
    position: static;
    order: -1;
  }
  .kalk-kundtyp {
    grid-template-columns: 1fr;
  }
}
