/* ==========================================================================
   Nacka & Värmdö Solskydd — statisk återställning
   Design efter sajtens senare utseende (arkiv 2024–2025):
   centrerad logga, centrerad meny, marinblå kontaktrad, ljus hero.
   ========================================================================== */

:root {
  --blue:       #35a8e0;
  --blue-dark:  #2b90c4;
  --navy:       #1d3b4f;
  --navy-deep:  #16303f;
  --ink:        #24323c;
  --ink-soft:   #5e6d78;
  --line:       #e3eaee;
  --bg:         #ffffff;
  --bg-soft:    #f5f9fb;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 1px 2px rgba(29,59,79,.05), 0 6px 20px rgba(29,59,79,.07);
  --shadow-lg:  0 12px 44px rgba(29,59,79,.13);
  --wrap:       1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

/* ---------- Knappar (pillerform som originalet) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 34px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; text-decoration: none;
  border: 0; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:focus-visible { outline: 3px solid rgba(53,168,224,.45); outline-offset: 2px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(53,168,224,.35); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }

/* ---------- Header: centrerad logga + centrerad meny ---------- */
.site-header { background: #fff; padding: 18px 0 0; }
.header-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.logo img { height: 92px; width: auto; }
.nav { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; padding-bottom: 14px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 16.5px;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: #fff; border-radius: 9px; cursor: pointer; padding: 0; margin-bottom: 12px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; border-radius: 2px; }

/* ---------- Marinblå kontaktrad ---------- */
.contactbar { background: var(--navy); color: #fff; }
.contactbar .wrap {
  display: flex; gap: 46px; justify-content: center; flex-wrap: wrap; padding-block: 15px;
}
.contactbar a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
  display: inline-flex; align-items: center; gap: 11px;
}
.contactbar a:hover { color: var(--blue); }
.contactbar svg { width: 17px; height: 17px; opacity: .9; }

/* ---------- Hero: ljus bild, mörk text ---------- */
.hero {
  background: #dfe9f1 center/cover no-repeat;
  min-height: 560px; display: flex; align-items: center; padding: 70px 0;
}
.hero-inner { max-width: 620px; }
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.22; margin: 0 0 20px;
  font-weight: 800; letter-spacing: -.02em; color: var(--navy);
}
.hero .strap { font-weight: 700; font-size: 1.08rem; color: var(--navy); margin: 0 0 14px; }
.hero p { color: #3c4c57; margin: 0 0 30px; max-width: 48ch; }

/* undersidors sidhuvud */
.pagehead { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 54px 0; text-align: center; }
.pagehead h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.crumbs { font-size: 14.5px; color: var(--ink-soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Sektioner ---------- */
.section { padding: 78px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section h2 { font-size: clamp(1.65rem, 2.9vw, 2.25rem); line-height: 1.25; margin: 0 0 16px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.section h3 { color: var(--navy); }
.lead { color: var(--ink-soft); max-width: 68ch; margin: 0 0 42px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Produktkort ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cards.cols-5 { grid-template-columns: repeat(5, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
  text-decoration: none; color: inherit; display: block;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.card-body { padding: 20px 22px; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 800; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Recensioner ---------- */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.stars { color: #f5b301; font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.review p { margin: 0 0 18px; font-size: 15px; color: var(--ink-soft); flex: 1; }
.review .who { font-weight: 800; color: var(--navy); font-size: 15px; }

/* ---------- Referenser ---------- */
.refs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ref { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.ref img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.ref p { margin: 0; padding: 15px 18px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 46px; align-items: start; }
.info-item { display: flex; gap: 15px; margin-bottom: 22px; }
.info-item .ico { width: 44px; height: 44px; border-radius: 10px; flex: none; background: rgba(53,168,224,.12); color: var(--blue-dark); display: grid; place-items: center; }
.info-item .ico svg { width: 20px; height: 20px; }
.info-item .label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 3px; }
.info-item .value { font-weight: 600; }
.info-item a { text-decoration: none; color: var(--ink); }
.info-item a:hover { color: var(--blue-dark); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 17px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; font-size: 15px; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 9px; background: var(--bg-soft); color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 135px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(53,168,224,.2); background: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 700; font-size: 15px; display: none; }
.form-status.ok { display: block; color: #1a7f4b; }
.form-status.err { display: block; color: #b3261e; }
.form-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- CTA ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 60px 0; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 12px; font-size: clamp(1.5rem,2.6vw,2rem); }
.cta-band p { margin: 0 0 28px; opacity: .9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 14.5px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-logo img { height: 76px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .95; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); font-size: 13.5px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsivt ---------- */
@media (max-width: 1060px) {
  .cards, .cards.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .reviews, .refs { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .logo img { height: 74px; }
  .nav-toggle { display: block; }
  .nav { display: none; flex-direction: column; gap: 0; width: 100%; padding: 0 0 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: center; }
  .contactbar .wrap { gap: 10px; flex-direction: column; align-items: center; }
  .hero { min-height: auto; padding: 54px 0; background-position: 72% center; }
  .hero-inner { max-width: 100%; }
  .cards, .cards.cols-5, .cards.cols-3, .reviews, .refs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
