/* ==========================================================================
   Solvind — Hanse 348 till salu
   ========================================================================== */

:root {
  --color-bg: #faf9f6;
  --color-bg-alt: #f1efe9;
  --color-surface: #ffffff;
  --color-text: #16202a;
  --color-text-muted: #5b6570;
  --color-border: #e3dfd5;
  --color-accent: #26576b;
  --color-accent-dark: #163b49;
  --color-accent-soft: #dce9ec;
  --color-wood: #a9764c;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1160px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: var(--space-2);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-4);
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-top: var(--space-1);
}

section {
  padding: var(--space-6) 0;
}

section:nth-of-type(even) {
  background: var(--color-bg-alt);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(38px) scale(0.98);
  transition: opacity 0.75s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.75s cubic-bezier(0.16, 0.8, 0.24, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.site-nav.is-scrolled {
  border-bottom-color: var(--color-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
}
.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-accent-dark);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.brand small {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a.is-active {
  font-weight: 700;
  color: var(--color-accent-dark);
}
.nav-links a.is-active::after {
  transform: scaleX(1);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(22, 59, 73, 0.55);
}
.btn-primary:hover {
  background: var(--color-accent);
}
.btn-ghost {
  background: transparent;
  color: var(--color-accent-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-accent);
  background: var(--color-surface);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 26, 0.12) 0%, rgba(10, 20, 26, 0.56) 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.hero-grid {
  display: grid;
  gap: var(--space-4);
  align-items: end;
  padding-top: var(--space-5);
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: #fff;
  line-height: 1.05;
  max-width: 14ch;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  max-width: 46ch;
  margin-top: var(--space-2);
}
.hero-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.hero-facts-bar {
  background: var(--color-accent-dark);
}
.hero-facts-bar .container {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.hero-fact {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 0.55rem 1.1rem;
}
.hero-fact dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.15rem;
}
.hero-fact dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* ---------- Placeholder photo blocks ---------- */
.photo-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  border: none;
  padding: 0;
}
.photo-placeholder svg {
  width: 34%;
  height: 34%;
  opacity: 0.85;
}
.photo-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
}
.photo-placeholder img.fit-contain {
  object-fit: contain;
}
.photo-placeholder .ph-label {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  z-index: 1;
}
.photo-placeholder.tone-2 { background: linear-gradient(135deg, #3a6b7c 0%, var(--color-accent) 100%); }
.photo-placeholder.tone-3 { background: linear-gradient(135deg, var(--color-wood) 0%, #7c5636 100%); }

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}
.intro-copy p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.intro-highlights {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.intro-highlights li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.98rem;
}
.intro-highlights svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--color-accent);
}

/* ---------- Layout plans ---------- */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.layout-plan {
  aspect-ratio: 3 / 4;
  background: #fff;
  border: 1px solid var(--color-border);
}
.layout-plan img {
  background: #fff;
  padding: 1.25rem;
}
.layout-plan .ph-label {
  color: #fff;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.gallery-grid .photo-placeholder:nth-child(3n+1) { }
.gallery-note {
  margin-top: var(--space-3);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---------- Specs ---------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-5);
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: var(--space-2);
  font-size: 1.05rem;
}
.specs-table tr {
  border-bottom: 1px solid var(--color-border);
}
.specs-table tr:last-child {
  border-bottom: none;
}
.specs-table th, .specs-table td {
  text-align: left;
  padding: 0.65rem 0;
  font-weight: 400;
  font-size: 0.95rem;
}
.specs-table th {
  color: var(--color-text-muted);
  width: 55%;
  font-weight: 400;
}
.specs-table td {
  font-weight: 600;
}
.specs-note {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px dashed var(--color-border);
  padding-top: var(--space-2);
}

/* ---------- Upgrade groups (Vad som gjorts) ---------- */
.upgrade-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: start;
}
.upgrade-group:last-child {
  grid-column: span 2;
}
.upgrade-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-border);
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.98rem;
  margin-bottom: 0.65rem;
}
.checklist li:last-child {
  margin-bottom: 0;
}
.checklist svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--color-accent);
}
.checklist-cols {
  columns: 2;
  column-gap: var(--space-4);
}
.checklist-cols li {
  break-inside: avoid;
}
.upgrade-note {
  margin: var(--space-2) 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Logg ---------- */
.log-years {
  border-top: 1px solid var(--color-border);
}
.log-year {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.log-year-label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  padding-top: 0.1rem;
}
.log-year-rows {
  display: grid;
  gap: 0.55rem;
}
.log-year-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.log-year-row svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--color-accent);
}
.log-year-row p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--color-text-muted);
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--color-accent-dark);
  color: #fff;
  border-radius: 16px;
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-4);
  align-items: center;
}
.contact-card h2 {
  color: #fff;
}
.contact-card p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 44ch;
}
.contact-details {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.02rem;
}
.contact-row svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}
.contact-card .btn-primary {
  background: #fff;
  color: var(--color-accent-dark);
}
.contact-card .btn-primary:hover {
  background: var(--color-accent-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--space-4) 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  background: var(--color-bg);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 20, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding: var(--space-4);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-box {
  max-width: 88vw;
  max-height: 76vh;
  border-radius: var(--radius);
  overflow: hidden;
}
.lightbox-box img {
  display: block;
  max-width: 88vw;
  max-height: 76vh;
  width: auto;
  height: auto;
}
.lightbox-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  text-align: center;
  max-width: 80vw;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lightbox-prev {
  left: var(--space-3);
}
.lightbox-next {
  right: var(--space-3);
}
@media (max-width: 600px) {
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }
  .lightbox-prev {
    left: 0.4rem;
  }
  .lightbox-next {
    right: 0.4rem;
  }
}
.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .layout-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .specs-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .contact-card { grid-template-columns: 1fr; text-align: left; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .upgrade-groups { grid-template-columns: 1fr; }
  .checklist-cols { columns: 1; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-2) var(--space-3) var(--space-3);
    gap: var(--space-2);
    display: none;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .log-year {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  section {
    padding: var(--space-5) 0;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero-facts {
    grid-template-columns: 1fr 1fr;
  }
}
