/* ============================================================
   Löfstrand Solpaneler – style.css
   ============================================================ */

/* --- Variabler --- */
:root {
  /* Solgul: #F2A100 för ikoner/dekor/mörk bakgrund, --gold-dark för text på vitt */
  --gold:        #F2A100;
  --gold-dark:   #B07800;   /* text på vit bg – säker kontrast */
  --gold-bg:     rgba(242, 161, 0, 0.08);
  --gold-border: rgba(242, 161, 0, 0.35);

  /* Produktsidors accentfärger (ref) */
  --green:       #2F9E44;
  --green-dark:  #1E7A34;
  --blue:        #2079C6;
  --blue-dark:   #155F9E;

  /* Rött – ENBART CTA-knappar */
  --red:         #C0392B;
  --red-dark:    #922B21;

  /* Neutraler */
  --black:       #18181B;
  --white:       #FFFFFF;
  --off-white:   #FAF8F4;
  --gray-100:    #F0EDE6;
  --gray-200:    #E5E1D8;
  --text:        #18181B;
  --text-muted:  #6B6760;

  /* Layout */
  --nav-height:  102px;
  --max-width:   1140px;

  /* Radier */
  --radius-sm:   8px;
  --radius-md:   16px;

  /* Skuggor */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-card: 0 2px 10px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);

  --transition: 0.2s ease;
}

/* ============================================================
   PER-SIDA ACCENTFÄRGER
   Åsidosätter --gold / --gold-dark per produktsida.
   All befintlig CSS som använder dessa variabler färgas automatiskt.
   ============================================================ */

/* Batterisidan – grön accent */
body[data-page="batterier"] {
  --gold:        #2F9E44;
  --gold-dark:   #1E7A34;
  --gold-border: rgba(47, 158, 68, 0.35);
  --gold-bg:     rgba(47, 158, 68, 0.08);
}

/* Laddboxsidan – blå accent */
body[data-page="laddbox"] {
  --gold:        #2079C6;
  --gold-dark:   #155F9E;
  --gold-border: rgba(32, 121, 198, 0.35);
  --gold-bg:     rgba(32, 121, 198, 0.08);
}

/* Startsidans tjänstekort – "Läs mer →" i resp. temafärg */
a.service-card[href="batterier.html"] .service-card-link { color: #1E7A34; }
a.service-card[href="laddbox.html"]   .service-card-link { color: #155F9E; }

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

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

.section    { padding: 96px 0; }
.section-sm { padding: 56px 0; }

/* --- Typografi --- */
h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem);  letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.028em; }
h3 { font-size: 1.2rem;  letter-spacing: -0.018em; }
h4 { font-size: 0.95rem; letter-spacing: -0.01em; }

.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 { margin-bottom: 14px; }
.section-title p  {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.025rem;
  line-height: 1.7;
}

.gold-line {
  width: 44px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 18px auto 0;
}

/* ============================================================
   KNAPPAR
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Solig gul CTA – fast färg, oberoende av per-sida accentvariabler */
.btn-primary {
  background: linear-gradient(135deg, #F7B733 0%, #E8920A 100%);
  color: #18181B;
  border-color: transparent;
  font-weight: 700;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #E8A820 0%, #D47A00 100%);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 146, 10, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.50);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 28px rgba(0,0,0,0.10);
  border-bottom-color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 46px;
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.nav-logo-text {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1.1;
}
.nav-logo-gold { color: var(--gold-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 1.0625rem;   /* ~17px */
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--gold-dark); }

.nav-links a.active {
  color: var(--gold-dark);
  font-weight: 600;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Nav-knapp – exakt samma stil och storlek som .btn-primary */
.btn-nav {
  background: linear-gradient(135deg, #F7B733 0%, #E8920A 100%) !important;
  color: #18181B !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
  padding: 9px 20px !important;
  border-radius: 100px !important;
  border: 2px solid transparent !important;
  margin-left: 8px;
  transition: background var(--transition), transform var(--transition),
              box-shadow var(--transition) !important;
}
.btn-nav:hover {
  background: linear-gradient(135deg, #E8A820 0%, #D47A00 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(232, 146, 10, 0.35) !important;
}
.btn-nav::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO (startsidan)
   ============================================================ */
.hero {
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.50) 45%, rgba(0,0,0,0.20) 100%),
    url('bilder/Solpaneler-med-bil-logga.png');
  background-size: cover;
  background-position: center;
  background-color: #18181B;
  color: var(--white);
  padding: 124px 0 104px;
}

.hero-content { max-width: 620px; }

.hero h1 { margin-bottom: 22px; }

.hero-subtitle {
  font-size: 1.075rem;
  color: rgba(255,255,255,0.78);
  margin: 0 0 40px;
  max-width: 500px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Trust-rad under hero-knapparna */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 6px 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.68);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-trust-item svg {
  width: 13px;
  height: 13px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.hero-trust-sep {
  color: rgba(255,255,255,0.22);
  user-select: none;
}

/* ============================================================
   TJÄNSTEKORT (startsidan)
   ============================================================ */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--white);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-card-image {
  aspect-ratio: 4/3;
  background: var(--off-white);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 12px;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.service-card:hover .service-card-image img { transform: scale(1.04); }

.service-card-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-body h3 { margin-bottom: 10px; }
.service-card-body p  {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.65;
}

.service-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.service-card:hover .service-card-link { gap: 10px; }

/* ============================================================
   FÖRTROENDE-SEKTION
   ============================================================ */
.trust {
  background: var(--off-white);
  border-top: 3px solid var(--gold);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.trust-item { text-align: center; }

.trust-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 2px 10px rgba(242,161,0,0.12);
}
.trust-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-number {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.trust-item h3 { margin-bottom: 8px; font-size: 1.05rem; }
.trust-item p  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ============================================================
   CTA-SEKTION
   ============================================================ */
.cta {
  background: var(--black);
  color: var(--white);
  text-align: center;
}
.cta h2 { margin-bottom: 16px; color: var(--white); }
.cta p  {
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SIDHUVUD (inre sidor)
   ============================================================ */
.page-hero {
  background: var(--off-white);
  border-bottom: 3px solid var(--gold);
  padding: 62px 0 50px;
}
.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.page-hero .breadcrumb a { color: var(--gold-dark); font-weight: 500; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p  { color: var(--text-muted); font-size: 1.025rem; max-width: 560px; line-height: 1.7; }

/* ============================================================
   PRODUKTSIDOR
   ============================================================ */
.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.product-text h2 { margin-bottom: 20px; }
.product-text p  { color: var(--text-muted); margin-bottom: 18px; line-height: 1.72; }

.product-features { margin: 28px 0 32px; }
.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.925rem;
  line-height: 1.55;
}

.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--white);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-guarantee {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.product-guarantee strong { color: var(--gold-dark); }

.product-image-wrap {
  background: var(--off-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 24px;
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   KONTAKTSIDAN
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 36px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-text strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact-item-text a { font-weight: 600; color: var(--black); font-size: 0.975rem; }
.contact-item-text a:hover { color: var(--gold-dark); text-decoration: underline; }
.contact-item-text p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

.contact-area-box {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 36px;
}
.contact-area-box h4 { margin-bottom: 6px; font-size: 0.95rem; }
.contact-area-box p  { color: var(--text-muted); font-size: 0.875rem; }

.map-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
}
.map-iframe { display: block; width: 100%; height: 380px; border: none; }
.map-open-link {
  display: block;
  text-align: center;
  padding: 12px 16px;
  background: var(--off-white);
  border-top: 1px solid var(--gray-100);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
  transition: color var(--transition);
}
.map-open-link:hover { text-decoration: underline; }

/* ============================================================
   OFFERT-FORMULÄR
   ============================================================ */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 161, 0, 0.18);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}


.form-submit { text-align: center; margin-top: 8px; }
.form-submit .btn { padding: 15px 52px; font-size: 1rem; }

.form-notice {
  text-align: center;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   OFFERTSIDAN – TVÅKOLUMNSLAYOUT
   ============================================================ */
.offert-section { background: var(--off-white); }

.offert-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

/* Vänster kolumn – sticky på desktop */
@media (min-width: 769px) {
  .offert-left {
    position: sticky;
    top: calc(var(--nav-height) + 32px);
  }
}

.offert-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.offert-left h1 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.offert-intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 32px;
}

.offert-checklist {
  list-style: none;
  margin-bottom: 36px;
}
.offert-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--text);
}

.check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-circle svg {
  width: 11px;
  height: 11px;
  stroke: var(--white);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offert-contact-box {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.offert-contact-box p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.offert-contact-box a {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.025em;
  transition: color var(--transition);
}
.offert-contact-box a:hover { color: var(--gold-dark); }

/* Formulärkort – höger kolumn */
.offert-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.09), 0 2px 10px rgba(0,0,0,0.05);
}

/* Tjänsteval – tre kort i en rad */
.checkbox-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.checkbox-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 22px 16px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.checkbox-item:hover {
  border-color: #F2A100;
  background: #FFFBF0;
}
.checkbox-item.selected,
.checkbox-item:has(input:checked) {
  border-color: #F2A100;
  background: #FFFBF0;
  box-shadow: 0 0 0 1px #F2A100;
}

/* Bock-badge – visas ENBART när kortet är valt */
.checkbox-item.selected::after,
.checkbox-item:has(input:checked)::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #F2A100;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2 6 5 9 10 3' fill='none' stroke='%2318181B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.checkbox-item input[type="checkbox"] { display: none; }

/* Felmeddelande och felstil för tjänsteval */
.checkbox-error-msg {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #C0392B;
  min-height: 1em;
}
.has-error .checkbox-row {
  border-radius: var(--radius-md);
  outline: 2px solid #C0392B;
  outline-offset: 4px;
}

/* Ikon-cirkel – explicit centrerad */
.checkbox-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0 auto;
  flex-shrink: 0;
  transition: background 0.2s;
}
.checkbox-item.selected .checkbox-icon,
.checkbox-item:has(input:checked) .checkbox-icon {
  background: #F2A100;
}
.checkbox-icon svg {
  width: 22px;
  height: 22px;
  stroke: #B07800;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}
/* Blixt-ikonen är fylld, inte streckad */
.checkbox-icon svg polygon { fill: #B07800; stroke: none; transition: fill 0.2s; }
.checkbox-item.selected .checkbox-icon svg polygon,
.checkbox-item:has(input:checked) .checkbox-icon svg polygon { fill: #18181B; }
.checkbox-item.selected .checkbox-icon svg,
.checkbox-item:has(input:checked) .checkbox-icon svg { stroke: #18181B; }

.checkbox-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .offert-layout { grid-template-columns: 1fr; gap: 40px; }
  .offert-card    { padding: 24px 20px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr auto;
  gap: 48px;
  padding-bottom: 52px;
}

.footer-logo-text {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--white);
}
.footer-logo-text span { color: var(--gold); }

.site-footer p,
.site-footer li,
.site-footer address {
  color: rgba(255,255,255,0.52);
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.9;
}

.site-footer h4 {
  color: rgba(255,255,255,0.88);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.site-footer ul li { margin-bottom: 4px; }
.site-footer ul a  { color: rgba(255,255,255,0.52); transition: color var(--transition); }
.site-footer ul a:hover { color: var(--gold); }

.footer-cta .btn-primary { white-space: nowrap; }

/* Telefon-länk i avskalad offert-header */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--black); }
.nav-phone svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Slimmad footer + sticky-bottom-layout – enbart offertsidan */
body[data-page="offert"] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body[data-page="offert"] .offert-section {
  flex: 1;
}

.site-footer--minimal {
  padding: 0;
  flex-shrink: 0;
}
.site-footer--minimal .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 28px 24px;
}
.footer-bottom--centered { text-align: center; }
.footer-bottom--centered a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s ease;
}
.footer-bottom--centered a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 24px;
  font-size: 0.775rem;
  color: rgba(255,255,255,0.28);
}

/* ============================================================
   SIFFROR-RAD (startsidan)
   ============================================================ */
.stats-bar {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 8px 32px;
  border-right: 1px solid var(--gray-100);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--gold-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 180px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .stats-grid       { grid-template-columns: 1fr; }
  .stat-item        { border-right: none; border-bottom: 1px solid var(--gray-100); padding: 20px 16px; }
  .stat-item:last-child { border-bottom: none; }
}

/* ============================================================
   INFORMATIONSAVSNITT (solpanelssidan)
   ============================================================ */
.sol-info-section { background: var(--off-white); }

.sol-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.sol-info-block {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}
.sol-info-block:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.sol-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gold-bg);
  margin-bottom: 20px;
}
.sol-info-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sol-info-block h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  color: var(--black);
}
.sol-info-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* Grönt avdrag – framhävd ruta */
.sol-tax-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 26px 30px;
}
.sol-tax-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gold-bg);
}
.sol-tax-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sol-tax-box h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--black);
}
.sol-tax-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .sol-info-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   SCROLL-ANIMATIONER
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIV
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta  { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; }
  .btn-nav { text-align: center; margin-left: 0; margin-top: 8px; }

  /* Hero */
  .hero { padding: 80px 0 64px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-trust { gap: 8px 16px; }
  .hero-trust-sep { display: none; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid     { grid-template-columns: 1fr; gap: 36px; }

  /* Produktsidor */
  .product-content { grid-template-columns: 1fr; gap: 40px; }
  .product-image-wrap { order: -1; }

  /* Kontakt */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .service-select-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Sektioner */
  .section { padding: 56px 0; }
  .section-title { margin-bottom: 40px; }
  .cta-actions { flex-direction: column; align-items: center; }

  /* Animationer – inaktivera på mobil för prestanda */
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .container { padding: 0 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   NAV-DROPDOWN (Produkter)
   ============================================================ */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-caret {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown-toggle.active { color: var(--gold-dark); font-weight: 600; }
.nav-dropdown-toggle.active::after { display: none; }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
  color: var(--text);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--off-white); color: var(--gold-dark); }
.nav-dropdown-menu a.active { color: var(--gold-dark); background: var(--off-white); }
.nav-dropdown-menu a.active::after { display: none; }

/* ============================================================
   PRODUKTER-SIDAN
   ============================================================ */
.produkter-intro { max-width: 660px; margin-bottom: 64px; }
.produkter-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.produkter-intro h1 { margin-bottom: 20px; }
.produkter-intro h1 .accent { color: var(--gold-dark); }
.produkter-intro p { color: var(--text-muted); font-size: 1.08rem; line-height: 1.7; }

.produkt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}
.produkt-row.reverse .produkt-image { order: 2; }

.produkt-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.produkt-image img { width: 100%; height: 100%; object-fit: cover; }

.produkt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.produkt-eyebrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.produkt-text h2 { margin-bottom: 14px; }
.produkt-text > p { color: var(--text-muted); line-height: 1.72; margin-bottom: 22px; }

.produkt-bullets { margin-bottom: 26px; }
.produkt-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 11px;
  font-size: 0.95rem;
  color: var(--text);
}
.produkt-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.produkt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gold-dark);
  border-bottom: 2px solid var(--gold-border);
  padding-bottom: 4px;
  transition: gap var(--transition);
}
.produkt-link:hover { gap: 12px; }

/* CTA-kort */
.produkt-cta {
  margin-top: 80px;
  background-color: var(--black);
  background-image: radial-gradient(circle at 100% 0%, rgba(242, 161, 0, 0.20), transparent 48%);
  border-radius: var(--radius-md);
  padding: 64px 56px;
  color: var(--white);
}
.produkt-cta .produkter-eyebrow { color: rgba(255, 255, 255, 0.7); }
.produkt-cta h2 { color: var(--white); margin-bottom: 14px; max-width: 600px; }
.produkt-cta h2 .accent { color: var(--gold); }
.produkt-cta p { color: rgba(255, 255, 255, 0.7); max-width: 540px; line-height: 1.7; margin-bottom: 34px; }
.produkt-cta-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.produkt-cta-phone {
  font-weight: 600;
  color: var(--white);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 3px;
  transition: border-color var(--transition);
}
.produkt-cta-phone:hover { border-color: var(--gold); }

/* Responsiv – produkter + dropdown */
@media (max-width: 768px) {
  .produkt-row { grid-template-columns: 1fr; gap: 26px; margin-bottom: 52px; }
  .produkt-row.reverse .produkt-image { order: 0; }
  .produkter-intro { margin-bottom: 44px; }
  .produkt-cta { padding: 40px 26px; margin-top: 52px; }
  .produkt-cta-actions { flex-direction: column; align-items: flex-start; gap: 18px; }

  /* Dropdown blir en indenterad lista i mobilmenyn */
  .nav-dropdown-menu {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 2px 0 4px 12px;
    min-width: 0;
  }
  .nav-caret { display: none; }
  .nav-dropdown-menu a { color: var(--text-muted); }
}
