/* Lindqvist Måleri & Snickeri — fristående designsystem: varm, bildstyrd, icke-linjär struktur. */

@font-face {
  font-family: 'Abril Fatface';
  src: url('fonts/AbrilFatface.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Merriweather';
  src: url('fonts/Merriweather-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --wood-dark: #4A2F1C;
  --wood: #8B5E34;
  --gold: #A9762F;
  --sage: #6B7A5E;
  --cream: #FBF3E4;
  --paper: #FFFFFF;
  --ink: #2B2013;
  --ink-soft: #5C4A38;
  --line: #E6D8C0;
  --radius: 4px;
  --font-display: 'Abril Fatface', Georgia, serif;
  --font-body: 'Merriweather', Georgia, serif;
  --wrap: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.scroll-mt { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body { margin: 0; font-family: var(--font-body); background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; color: var(--wood-dark); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
a, button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .wrap { padding: 0 36px; } }
.wrap-narrow { max-width: 640px; margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--wood-dark); color: #fff; font-weight: 700; padding: 12px 20px; font-family: var(--font-body); }
.skip-link:focus { left: 0; }

.demo-banner { background: var(--wood-dark); color: #F3E9D8; font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; text-align: center; padding: 10px 16px; }
.demo-banner a { color: #F5D68A; text-decoration: underline; }
.demo-banner strong { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; border-radius: var(--radius); padding: 15px 28px; border: 2px solid transparent; transition: background-color 200ms ease, color 200ms ease, transform 150ms ease; min-height: 44px; }
.btn:active { transform: scale(0.98); }
.btn-wood { background: var(--wood-dark); color: #fff; }
.btn-wood:hover { background: #3A2515; }
.btn-outline { background: transparent; color: var(--wood-dark); border-color: var(--wood-dark); }
.btn-outline:hover { background: rgba(74,47,28,0.06); }
.btn-cream { background: var(--cream); color: var(--wood-dark); }
.btn-cream:hover { background: #F3E6CC; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,243,228,0.96); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 16px; }
.logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--wood-dark); display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--wood-dark); color: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; align-items: center; gap: 24px; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; }
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-phone { display: none; align-items: center; gap: 8px; font-weight: 700; color: var(--wood-dark); white-space: nowrap; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--wood-dark); flex-shrink: 0; }
@media (min-width: 1000px) { .nav-links { display: flex; } .nav-phone { display: flex; } .menu-toggle { display: none; } }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--cream); }
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 10px 0; }
.mobile-menu li { border-top: 1px solid var(--line); }
.mobile-menu li:first-child { border-top: none; }
.mobile-menu a:not(.btn) { display: block; padding: 14px 0; font-weight: 700; }

/* HERO — full-bleed with overlay box + integrated before/after */
.hero { position: relative; }
.reveal-compare {
  position: relative; width: 100%; height: 78vh; min-height: 480px; max-height: 720px;
  overflow: hidden; --reveal: 55%;
}
.reveal-before, .reveal-after {
  position: absolute; inset: 0; display: flex; align-items: flex-start; padding: 28px;
}
/* Två versioner av samma foto, tagna från samma pixlar: i "före" är enbart
   väggfärgen avfärgad, medan golv, soffa, mattan och fönstret är oförändrade.
   Bakgrunden ligger på pseudoelement så etiketterna hålls utanför. */
.reveal-after::before, .reveal-before::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.reveal-after::before  { background-image: url('bilder/hero-vagg-efter-800.webp'); }
@media (min-width: 801px) {
  .reveal-after::before  { background-image: url('bilder/hero-vagg-efter-1600.webp'); }
  .reveal-before::before { background-image: url('bilder/hero-vagg-fore-1600.webp'); }
}
.reveal-before { justify-content: flex-end; }
.reveal-after { clip-path: inset(0 calc(100% - var(--reveal)) 0 0); }
.reveal-tag { position: relative; z-index: 1; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: #fff; background: rgba(0,0,0,0.58); padding: 6px 12px; border-radius: 999px; }
.reveal-handle {
  position: absolute; top: 0; bottom: 0; left: var(--reveal); width: 3px; background: #fff;
  transform: translateX(-1.5px); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.reveal-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px;
  transform: translate(-50%, -50%); background: #fff; border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.reveal-handle::before {
  content: '⇔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -55%);
  font-size: 1.2rem; color: var(--wood-dark); z-index: 2;
}
.reveal-compare { cursor: ew-resize; touch-action: none; }
.reveal-input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute; left: 20px; right: 20px; bottom: 24px; z-index: 3;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; max-width: 560px; box-shadow: 0 10px 30px rgba(43,32,19,0.18);
}
@media (min-width: 700px) { .hero-overlay { left: 44px; bottom: 44px; padding: 36px 38px; } }
.hero-eyebrow { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--gold); margin-bottom: 12px; }
.hero-overlay h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); color: var(--wood-dark); }
.hero-overlay p.sub { margin-top: 14px; color: var(--ink-soft); font-size: 1rem; max-width: 46ch; }
.hero-ctas { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.reveal-hint { margin-top: 14px; font-size: 0.8rem; color: var(--ink-soft); font-style: italic; }

/* Mobil: textrutan täcker nästan hela heron, så reglaget går knappt att använda.
   Där visas bara efterbilden. Före-lagret renderas inte och laddas därmed aldrig ner,
   och touch-action återställs så att sidan går att skrolla med fingret över heron. */
@media (max-width: 800px) {
  .reveal-compare { cursor: default; touch-action: auto; }
  .reveal-before, .reveal-handle, .reveal-input, .reveal-tag, .reveal-hint { display: none; }
  .reveal-after { clip-path: none; }
}

/* Sections generic */
.section { padding: 54px 0; }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.section-alt { background: var(--paper); }
.section-dark { background: var(--wood-dark); color: #F3E9D8; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 620px; margin-bottom: 34px; }
.section-eyebrow { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; color: var(--gold); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-top: 8px; }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.02rem; }
.section-dark .section-head p { color: #D9CBB0; }

/* Bevis — horizontal scroll gallery, edge-to-edge */
.gallery-scroll {
  display: flex; gap: 20px; overflow-x: auto; padding: 4px 20px 20px 32px;
  scroll-snap-type: x proximity; scroll-padding-left: 32px; -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) { .gallery-scroll { padding-left: 56px; padding-right: 36px; scroll-padding-left: 56px; } }
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.gallery-card {
  flex: 0 0 auto; width: 300px; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line);
}
.gallery-img { height: 210px; position: relative; display: flex; align-items: flex-end; padding: 16px; }
.gallery-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.7) 100%); }
.gallery-img .loc { position: relative; z-index: 1; color: #fff; font-weight: 700; font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.gallery-body { padding: 18px 18px 20px; }
.gallery-body h3 { font-size: 1.15rem; color: var(--wood-dark); }
.gallery-body p { margin-top: 8px; font-size: 0.92rem; color: var(--ink-soft); }
.gallery-note { padding: 0 20px 0 32px; margin-top: 10px; font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }
@media (min-width: 640px) { .gallery-note { padding-left: 56px; } }

/* Tjänster — staggered overlap cards */
.stagger-grid {
  display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 900px; margin: 0 auto;
}
@media (min-width: 760px) { .stagger-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 26px; } }
.stagger-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 6px 6px 0 0 var(--line);
}
@media (min-width: 760px) {
  .stagger-card:nth-child(2n) { transform: translateY(28px); }
}
.stagger-num { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); }
.stagger-card h3 { font-size: 1.2rem; margin-top: 8px; color: var(--wood-dark); }
.stagger-card p { margin-top: 8px; color: var(--ink-soft); font-size: 0.95rem; }

/* Om oss — bento grid */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "story story img1 img1"
      "stat1 stat2 img1 img1"
      "stat3 stat4 quote quote";
  }
  .bento .b-story { grid-area: story; }
  .bento .b-img1 { grid-area: img1; }
  .bento .b-stat1 { grid-area: stat1; }
  .bento .b-stat2 { grid-area: stat2; }
  .bento .b-stat3 { grid-area: stat3; }
  .bento .b-stat4 { grid-area: stat4; }
  .bento .b-quote { grid-area: quote; }
}
.bento-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.bento-tile.b-img1 { padding: 0; overflow: hidden; min-height: 220px; background: var(--wood-dark); position: relative; }
.bento-tile.b-img1 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-tile.b-img1::after { content: 'LINDQVIST SEDAN 1978'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; font-family: var(--font-display); font-size: 1.4rem; padding: 20px; background: linear-gradient(180deg, rgba(43,32,19,0.55), rgba(43,32,19,0.75)); text-shadow: 0 2px 10px rgba(43,32,19,0.55); }
.bento-tile.b-story h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.bento-tile.b-story p { margin-top: 12px; color: var(--ink-soft); font-size: 0.98rem; }
.bento-tile.b-story p + p { margin-top: 10px; }
.bento-stat .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--wood-dark); }
.bento-stat .label { margin-top: 4px; font-size: 0.82rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.bento-tile.b-quote { background: var(--sage); color: #fff; display: flex; align-items: center; }
.bento-tile.b-quote p { font-style: italic; font-size: 1.02rem; }
.bento-tile.b-quote span { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 0.85rem; }

.cert-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cert-chip { display: inline-flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 0.85rem; color: var(--wood-dark); }
.cert-chip svg { color: var(--gold); flex-shrink: 0; }

/* Recensioner — narrow centered column */
.quote-stack { display: grid; gap: 26px; }
.quote-item { border-bottom: 1px solid var(--line); padding-bottom: 26px; }
.quote-item:last-child { border-bottom: none; padding-bottom: 0; }
.quote-stars { color: var(--gold); letter-spacing: 0.1em; margin-bottom: 10px; }
.quote-text { font-size: 1.05rem; font-style: italic; color: var(--ink); }
.quote-attr { margin-top: 12px; font-weight: 700; font-size: 0.88rem; color: var(--wood-dark); }
.quote-attr span { font-weight: 400; color: var(--ink-soft); font-style: normal; }

/* Kontakt — full-bleed dark band */
.contact-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; margin-bottom: 40px; text-align: center; }
.contact-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 160px; }
.contact-chip svg { color: #F5D68A; }
.contact-chip .k { font-weight: 700; font-size: 0.98rem; color: #fff; }
.contact-chip .d { font-size: 0.85rem; color: #D9CBB0; }
.contact-form-card { max-width: 560px; margin: 0 auto; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 0.88rem; color: #fff; }
.field input, .field textarea { font: inherit; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); min-height: 44px; }
.field textarea { min-height: 110px; resize: vertical; }
.field-error { color: #FCA5A5; font-size: 0.8rem; font-weight: 700; display: none; }
.field-error.is-visible { display: block; }
.form-status { margin-top: 14px; font-weight: 700; font-size: 0.88rem; display: none; color: #fff; }
.form-status.is-visible { display: block; }

/* Sticky mobile call bar */
.mobile-call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--wood-dark); padding: 10px 16px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.mobile-call-bar a { color: #fff; font-weight: 700; display: flex; align-items: center; gap: 8px; padding: 8px; }
@media (min-width: 1000px) { .mobile-call-bar { display: none; } }
body { padding-bottom: 62px; }
@media (min-width: 1000px) { body { padding-bottom: 0; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { padding-top: 30px; padding-bottom: 30px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-fine { font-size: 0.82rem; color: var(--ink-soft); }
.footer-fine a { text-decoration: underline; }
