/* ===================================================================
   SIDFIXARNA.SE — GEMENSAMT STILARK
   Grafisk profil: Marinblå + Klar Orange · Poppins · Mobile-first
   =================================================================== */

:root {
  /* Brandfärger enligt Grafisk Profil */
  --navy: #0D1B3D;
  --navy-mid: #122A5C;
  --navy-soft: #1a2d5e;
  --orange: #FF6A00;
  --orange-dark: #e85f00;
  --orange-soft: #FFF4EC;
  --grey-bg: #F1F3F6;
  --grey-line: #DDE2EA;
  --grey-text: #4A5060;
  --text-dark: #2D2D2D;
  --white: #FFFFFF;
  --green: #2E8B57;
  --red: #C0392B;

  /* Spacing & sizing */
  --container: 1180px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(13, 27, 61, 0.06);
  --shadow-md: 0 6px 20px rgba(13, 27, 61, 0.1);
  --shadow-lg: 0 12px 40px rgba(13, 27, 61, 0.15);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--orange); color: var(--white); }

/* === TYPOGRAFI === */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h1 { font-weight: 700; font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-weight: 600; font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-weight: 600; font-size: 1.1rem; }
p { font-size: 1.05rem; line-height: 1.65; color: var(--text-dark); }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--grey-text); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 1rem;
}

/* === LAYOUT === */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
@media (max-width: 768px) { section { padding: 3.5rem 0; } }

/* === KNAPPAR === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.3);
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 106, 0, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover { background: var(--white); color: var(--navy); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost {
  color: var(--navy);
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--orange);
  border-radius: 0;
}
.btn-ghost:hover { color: var(--orange); }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

/* === HEADER / NAV === */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.3s, box-shadow 0.3s;
}
header.site-header.scrolled {
  border-bottom-color: var(--grey-line);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo img { height: 90px; width: auto; }
/* Persona-sidornas header anvander .logo-klass — samma storlek som nav-logo */
.logo { display: flex; align-items: center; }
.logo img { height: 90px; width: auto; }
/* Footer-logo (anvands pa persona-sidor) — mindre */
.footer-logo { height: 70px; width: auto; max-width: 100%; }
.nav-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  display: none;
}
@media (min-width: 480px) { .nav-logo-text { display: block; } }
.nav-logo-text .accent { color: var(--orange); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.current { color: var(--orange); }

@media (min-width: 992px) {
  .nav-links { display: flex; }
}

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-cta:hover {
  background: var(--orange-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}
@media (min-width: 992px) { .nav-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transform: translateY(-150%);
  transition: transform 0.3s;
  z-index: 99;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu a {
  display: block;
  padding: 0.9rem 0;
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid var(--grey-line);
}
.mobile-menu a:last-child { border-bottom: none; }

/* === FOOTER === */
footer.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.footer-brand .accent { color: var(--orange); }
.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  max-width: 360px;
}
.footer-col h4 {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 0.35rem 0; }
.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom .tagline { color: var(--orange); font-style: italic; }

/* === KORTSEKTIONER & UTILS === */
.section-header { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--grey-text); font-size: 1.1rem; }

.bg-light { background: var(--grey-bg); }
.bg-dark { background: var(--navy); color: var(--white); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark p { color: rgba(255, 255, 255, 0.85); }

/* === KORT === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-line);
  transition: all 0.3s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* === ANIMATIONS === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* === TRUST BAR (under hero) === */
.trust-bar {
  background: var(--grey-bg);
  border-top: 1px solid var(--grey-line);
  border-bottom: 1px solid var(--grey-line);
  padding: 1.5rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.trust-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
}
.trust-text .small { display: block; font-size: 0.72rem; color: var(--orange); font-weight: 600; }

/* === STEG-INDIKATOR === */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  padding-top: 2rem;
}
.step-num {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center; justify-content: center;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 1.5rem;
}
.step h3 { margin-bottom: 0.8rem; }

/* === LISTA MED CHECK/CROSS === */
.list-check, .list-cross { list-style: none; }
.list-check li, .list-cross li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  font-size: 1rem;
  line-height: 1.55;
}
.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 24px; height: 24px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.list-cross li::before {
  content: '✗';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 24px; height: 24px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* === CTA-BAND === */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.15), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; margin-bottom: 2rem; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-band-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === HEXAGONMÖNSTER (bakgrund) === */
.hex-pattern {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='66' viewBox='0 0 60 66' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='30,3 54,18 54,48 30,63 6,48 6,18' fill='none' stroke='%23FF6A00' stroke-width='1' opacity='0.18'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.hex-pattern + .container { position: relative; z-index: 1; }

/* === PERSONA-SIDA TILLÄGG === */
.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}
.btn-sm 
/* === BTN-TEL: telefonknapp i hero (panelens audit S1) === */
.btn-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-tel:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-tel.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* === POPULÄRAST-tag på primär persona-card (panelens audit S3) === */
.persona-card-popular { position: relative; }
.persona-popular-tag {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(255, 106, 0, 0.35);
  z-index: 2;
}

/* === Panelens audit S4: mobil-logo dropas (Elena) === */
@media (max-width: 768px) {
  .nav-logo img { height: 60px !important; }
  .logo img { height: 60px !important; }
  .footer-logo { height: 50px !important; }
}

/* === Panelens audit S4: hover-state på paket-cards (David) === */
.pkg-features {
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  border: 1px solid transparent;
}
.pkg-features:hover {
  box-shadow: var(--shadow-md), 0 0 0 2px var(--orange-soft);
  transform: translateY(-2px);
}
.price-card {
  transition: box-shadow 0.3s, transform 0.3s;
}
.price-card:hover {
  box-shadow: var(--shadow-md), 0 12px 30px rgba(255, 106, 0, 0.18);
  transform: translateY(-3px);
}

/* === Panelens audit S4: orange-diet (Elena) — mer återhållsam färganvändning === */
/* Footer-h4 ska vara navy + lättare orange-accent under, inte ren orange */
.footer-col h4 {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 106, 0, 0.4);
  padding-bottom: 0.4rem;
  margin-bottom: 0.8rem;
}

/* === BAS-paketets innehåll i konfigurator-summary (panelens audit follow-up) === */
.bas-line { align-items: flex-start; }
.bas-line span:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.bas-toggle {
  background: rgba(255, 106, 0, 0.15);
  color: var(--orange);
  border: 1px solid rgba(255, 106, 0, 0.4);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.85rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  margin-left: 0.5rem;
}
.bas-toggle:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.bas-toggle-arrow {
  font-size: 0.7rem;
  display: inline-block;
  transition: transform 0.25s;
}
.bas-toggle[aria-expanded="false"] .bas-toggle-arrow {
  transform: rotate(-90deg);
}
.bas-includes {
  list-style: none;
  margin: 0.5rem 0 1rem 0;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border-left: 2px solid var(--orange);
  font-size: 0.85rem;
}
.bas-includes li {
  padding: 0.25rem 0 0.25rem 1.2rem;
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}
.bas-includes li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0.25rem;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
}

/* === PERSONA-SIDORNAS HEADER (saknades — orsak till mikael.html-kraschen) === */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}
.main-nav ul {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 992px) {
  .main-nav ul { display: flex; }
}
.main-nav li { list-style: none; }
.main-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--orange); }
.main-nav a.current { color: var(--orange); }
.main-nav .btn {
  text-decoration: none;
}
.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
@media (min-width: 992px) {
  .mobile-menu-toggle { display: none; }
}

/* === BYGG-SJÄLV-BANNER (panelens follow-up: synliggöra konfiguratorn) === */
.bygg-sjalv-banner {
  background: linear-gradient(135deg, var(--orange-soft) 0%, var(--white) 100%);
  padding: 3rem 0;
  border-top: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
}
.bygg-sjalv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .bygg-sjalv-card {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .bygg-sjalv-card > div { flex: 1; }
}
.bygg-sjalv-eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.bygg-sjalv-card h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.bygg-sjalv-card p {
  color: var(--text-dark);
  font-size: 1rem;
  margin: 0;
}

.bygg-sjalv-mini {
  text-align: center;
  margin: 2.5rem auto 0;
  padding: 1.2rem 1.5rem;
  background: var(--orange-soft);
  border-radius: var(--radius);
  max-width: 600px;
}
.bygg-sjalv-mini p {
  margin: 0;
  color: var(--text-dark);
  font-size: 1rem;
}
.bygg-sjalv-mini a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}
.bygg-sjalv-mini a:hover { text-decoration: underline; }
