/* Lundéns VVS — light theme (warm white / charcoal + orange)
   Dark backup: css/theme-dark-backup.css */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f3f0;
  --bg-card: #ffffff;
  --border: #e4e0db;
  --text: #2a2a2a;
  --text-muted: #5c5c5c;
  --charcoal: #2f2f2f;
  --charcoal-deep: #1f1f1f;
  --white: #ffffff;
  --orange: #e86f12;
  --orange-hover: #f58220;
  --orange-deep: #c95e0c;
  --orange-soft: rgba(232, 111, 18, 0.12);
  --radius: 10px;
  --shadow: 0 8px 28px rgba(42, 42, 42, 0.08);
  --header-h: 84px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--orange-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--orange); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header — white */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
  max-width: min(260px, 58vw);
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: var(--bg-soft);
  color: var(--charcoal-deep);
}

.nav a[aria-current="page"] {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Hero — photo with softer dark overlay for white text */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(40, 34, 28, 0.58) 0%, rgba(40, 34, 28, 0.42) 50%, rgba(40, 34, 28, 0.28) 100%),
    #2a2a2a url("../images/hero.jpg") center / cover no-repeat;
}

.hero-content { padding: 4.5rem 0 5rem; max-width: 640px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  max-width: 34em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: #1a1a1a;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: #1a1a1a;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.75);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: #c8c4bf;
}
.btn-outline:hover {
  background: var(--bg-soft);
  color: var(--charcoal-deep);
  border-color: var(--orange);
}

/* Sections */
.section { padding: 4rem 0; background: var(--bg); }
.section-soft { background: var(--bg-soft); }

.section-header { max-width: 40rem; margin-bottom: 2.25rem; }
.section-header h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--charcoal-deep);
  letter-spacing: -0.02em;
}
.section-header p { margin: 0; color: var(--text-muted); font-size: 1.08rem; }


/* Cards (homepage teaser) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 0.55rem; font-size: 1.15rem; color: var(--charcoal-deep); }
.card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.card a { color: var(--orange-deep); font-weight: 600; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Page hero */
.page-hero {
  background: var(--bg-soft);
  color: var(--charcoal-deep);
  padding: 3.25rem 0 2.75rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  color: var(--charcoal-deep);
}
.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* Prose */
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1.1rem; color: var(--text-muted); }
.prose h2 { margin: 2rem 0 0.75rem; font-size: 1.35rem; color: var(--charcoal-deep); }
.prose ul { margin: 0 0 1.1rem; padding-left: 1.2rem; color: var(--text-muted); }
.prose li { margin-bottom: 0.4rem; }

.highlight-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 42rem;
}
.highlight-list li {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--charcoal-deep);
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: var(--shadow);
}
.highlight-list li::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: 0.1rem;
}
@media (max-width: 640px) {
  .highlight-list { grid-template-columns: 1fr; }
}


/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  color: var(--charcoal-deep);
}


.contact-card-solo {
  max-width: 32rem;
  margin: 0 auto;
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.contact-list .label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-list a,
.contact-list .value {
  color: var(--charcoal-deep);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}
.contact-list a:hover { color: var(--orange); text-decoration: underline; }

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}
.contact-form .field { margin-bottom: 1rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 111, 18, 0.2);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-hint { margin: 0.75rem 0 0; font-size: 0.88rem; color: var(--text-muted); }

/* CTA band */
.cta-band {
  background: var(--bg-soft);
  color: var(--charcoal-deep);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 { margin: 0 0 0.5rem; font-size: clamp(1.4rem, 3vw, 1.85rem); color: var(--charcoal-deep); }
.cta-band p { margin: 0 0 1.5rem; color: var(--text-muted); }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-secondary {
  color: var(--charcoal);
  border-color: #bdb8b2;
}
.cta-band .btn-secondary:hover {
  background: var(--white);
  color: var(--charcoal-deep);
  border-color: var(--orange);
}

/* Footer — charcoal grey, not pitch black */
.site-footer {
  background: #3a3836;
  color: rgba(255,255,255,0.78);
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.footer-meta { margin: 0; line-height: 1.7; }
.footer-meta a { color: rgba(255,255,255,0.92); text-decoration: none; }
.footer-meta a:hover { color: #ffb06a; text-decoration: underline; }
.footer-copy {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: #1a1a1a;
  padding: 0.6rem 1rem;
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--orange);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}
.step h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--charcoal-deep); }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

/* Värmepumpar */
.vp-feature {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
}
.vp-feature-media { margin: 0; }
.vp-feature-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.nibe-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.nibe-row .nibe-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
}
.nibe-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
}
.nibe-logo-link:hover { outline: 2px solid var(--orange); }
.nibe-logo-link img,
.nibe-logo-link svg {
  height: 28px;
  width: auto;
  display: block;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery figure { margin: 0; }
.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.gallery a:hover { border-color: var(--orange); }
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption {
  margin: 0.55rem 0.25rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(30, 28, 26, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid #666;
  border-radius: 8px;
  background: #3a3836;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--orange); color: var(--orange); }

/* Service cards (Tjänster) */
.intro-block {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}
.intro-block p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}
.intro-block p:last-child { margin-bottom: 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}
.service-card:hover { border-color: #d0cbc5; }
.service-card.is-link {
  text-decoration: none;
  color: inherit;
}
.service-card.is-link:hover { border-color: var(--orange); }
.service-card.is-link:hover .service-card-link { color: var(--orange); }

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  color: var(--charcoal-deep);
  letter-spacing: -0.01em;
}
.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
  flex-grow: 1;
}
.service-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--orange-deep);
  text-decoration: none;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .vp-feature { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: var(--shadow);
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { padding: 0.85rem 1rem; }
  .card-grid,
  .contact-grid,
  .steps,
  .gallery,
  .service-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-content { padding: 3.5rem 0 3.75rem; }
  .footer-inner { flex-direction: column; gap: 1.25rem; }
  .logo img { height: 44px; }
}

/* Centered hero text */
.hero { justify-content: center; }
.hero .hero-content { margin-left: auto; margin-right: auto; text-align: center; max-width: 760px; }
.hero .hero-lead { margin-left: auto; margin-right: auto; }
.hero .hero-actions { justify-content: center; }
.hero { background:
    linear-gradient(rgba(32, 28, 24, 0.55), rgba(32, 28, 24, 0.55)),
    #2a2a2a url("../images/hero.jpg") center / cover no-repeat; }
@media (max-width: 760px) { .hero { background-position: center, 12% center; } }
