/* Sandby Relax & Recharge — semesterinspirerad design
   Palett: kalksten, falurött, östersjöblått, sand, sol */

:root {
  --paper: #f7f4ec;      /* kalksten — ljus bakgrund */
  --sand: #ece3cd;       /* sand — alternerande sektioner */
  --hav: #1f4254;        /* östersjöblå — rubriker, footer */
  --hav-deep: #16323f;
  --falu: #7e3226;       /* falurött — knappar, accenter */
  --falu-dark: #662820;
  --sol: #e0a458;        /* sol-amber — detaljer */
  --mist: #59707c;       /* dämpad text */
  --ink: #26333a;        /* brödtext */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 66, 84, 0.12);
  --font-display: "Bricolage Grotesque", "Albert Sans", sans-serif;
  --font-body: "Albert Sans", -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); color: var(--hav); line-height: 1.12; }

a { color: var(--falu); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  padding: 14px 0;
}
.nav.solid { background: rgba(247, 244, 236, 0.96); box-shadow: 0 1px 0 rgba(31,66,84,.1); backdrop-filter: blur(8px); }
.nav-inner { display: flex; align-items: center; gap: 28px; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: auto; }
.brand span {
  font-family: var(--font-display); font-weight: 650; font-size: 1.05rem;
  color: #fff; letter-spacing: 0.01em; transition: color .35s;
}
.nav.solid .brand span { color: var(--hav); }
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; }
.nav-links a {
  text-decoration: none; font-weight: 550; font-size: 0.95rem;
  color: rgba(255,255,255,0.92); transition: color .35s;
}
.nav.solid .nav-links a { color: var(--hav); }
.nav-links a:hover { color: var(--sol); }
.lang-switch {
  display: flex; gap: 2px; align-items: center;
  font-size: 0.85rem; font-weight: 650;
  border: 1.5px solid rgba(255,255,255,0.5); border-radius: 999px; padding: 3px 4px;
  transition: border-color .35s;
}
.nav.solid .lang-switch { border-color: rgba(31,66,84,0.35); }
.lang-switch a, .lang-switch strong {
  text-decoration: none; padding: 2px 10px; border-radius: 999px;
  color: rgba(255,255,255,0.85); transition: color .35s;
}
.nav.solid .lang-switch a { color: var(--hav); }
.lang-switch strong { background: var(--sol); color: var(--hav-deep) !important; }
.btn-nav {
  background: var(--falu); color: #fff !important; padding: 9px 20px; border-radius: 999px;
  text-decoration: none; font-weight: 650; font-size: 0.92rem;
  transition: background .2s;
}
.btn-nav:hover { background: var(--falu-dark); color: #fff !important; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; flex-direction: column;
  justify-content: flex-end; color: #fff; isolation: isolate; overflow: hidden;
}
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,50,63,0.38) 0%, rgba(22,50,63,0.05) 45%, rgba(22,50,63,0.55) 100%);
}
.hero-content { max-width: 1120px; margin: 0 auto; padding: 0 24px 96px; width: 100%; }
.hero-eyebrow {
  font-family: var(--font-hand); font-size: clamp(1.5rem, 2.5vw, 2rem); color: #ffd9a0;
  transform: rotate(-2deg); display: inline-block; margin-bottom: 10px;
}
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700;
  letter-spacing: -0.015em; max-width: 15ch; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(22,50,63,0.45);
}
.hero p.lead {
  max-width: 52ch; margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.94); text-shadow: 0 1px 12px rgba(22,50,63,0.5);
}
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px; text-decoration: none;
  font-weight: 650; font-size: 1rem; transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--falu); color: #fff; }
.btn-primary:hover { background: var(--falu-dark); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* Avståndsstrip — signaturen */
.dist-strip { background: var(--hav); color: #fff; padding: 0; }
.dist-strip ul {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 0; max-width: 1120px; margin: 0 auto; padding: 18px 16px;
}
.dist-strip li {
  display: flex; align-items: center; gap: 9px; padding: 4px 26px;
  font-size: 0.95rem; font-weight: 500; white-space: nowrap;
}
.dist-strip li + li { border-left: 1px solid rgba(255,255,255,0.18); }
.dist-strip .pin { color: var(--sol); font-weight: 700; font-family: var(--font-display); }

/* ---------- Sektioner ---------- */
section { padding: 84px 0; }
.section-sand { background: var(--sand); }
.section-hav { background: var(--hav); color: #e9f0f2; }
.section-hav h2, .section-hav h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--falu); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sol); border-radius: 2px; }
.section-hav .eyebrow { color: var(--sol); }

h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 650; letter-spacing: -0.01em; margin-bottom: 18px; text-wrap: balance; }
h3 { font-size: 1.35rem; font-weight: 650; margin-bottom: 10px; }

.intro-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.intro-grid p + p { margin-top: 14px; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow);
}
.stat-card .num {
  font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: var(--falu);
  line-height: 1;
}
.stat-card .lbl { font-size: 0.92rem; color: var(--mist); margin-top: 6px; line-height: 1.4; }

/* ---------- Boendekort ---------- */
.stay { display: grid; grid-template-columns: 1fr; gap: 64px; }
.stay-card { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; }
.stay-card.flip .stay-media { order: 2; }
.stay-media { position: relative; }
.stay-media > a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stay-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.stay-media > a:hover img { transform: scale(1.03); }
.badge {
  position: absolute; top: 14px; left: 14px; background: var(--sol); color: var(--hav-deep);
  font-weight: 700; font-size: 0.82rem; padding: 6px 14px; border-radius: 999px;
  letter-spacing: 0.02em; box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.feature-list { list-style: none; margin: 16px 0 22px; }
.feature-list li { padding-left: 26px; position: relative; margin-bottom: 7px; font-size: 0.98rem; }
.feature-list li::before {
  content: "☀"; position: absolute; left: 0; top: 1px; color: var(--sol); font-size: 0.85rem;
}
.dist-note { font-size: 0.9rem; color: var(--mist); font-weight: 600; margin-bottom: 8px; }
.dist-note span { color: var(--falu); }

/* Galleri-strip */
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 2px 6px; scrollbar-width: thin; }
.strip a { flex: 0 0 auto; scroll-snap-align: start; border-radius: 10px; overflow: hidden; }
.strip img { height: 88px; width: 122px; object-fit: cover; transition: transform .25s, opacity .25s; }
.strip a:hover img { transform: scale(1.06); opacity: 0.9; }

/* ---------- Priser ---------- */
.price-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 13px 22px; text-align: left; }
.price-table thead th { background: var(--hav); color: #fff; font-family: var(--font-display); font-weight: 650; font-size: 0.95rem; }
.price-table tbody tr:nth-child(even) { background: rgba(236, 227, 205, 0.45); }
.price-table td:last-child { font-weight: 650; color: var(--falu); white-space: nowrap; }
.price-table tr.hi td { background: rgba(224, 164, 88, 0.22); }
.info-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.info-card + .info-card { margin-top: 18px; }
.info-card ul { list-style: none; }
.info-card li { padding: 7px 0; border-bottom: 1px dashed rgba(31,66,84,0.15); font-size: 0.97rem; display: flex; justify-content: space-between; gap: 12px; }
.info-card li:last-child { border-bottom: none; }
.info-card li strong { white-space: nowrap; }

/* ---------- Att göra: mosaik ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 12px; margin-top: 34px; }
.mosaic a { border-radius: 12px; overflow: hidden; display: block; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(6) { grid-column: span 4; }
.mosaic .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  background: linear-gradient(transparent, rgba(22,50,63,0.72)); color: #fff;
  font-size: 0.88rem; font-weight: 600;
}
.act-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.act-cols h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; color: #fff; }
.act-cols ul { list-style: none; margin-top: 10px; }
.act-cols li { padding: 5px 0; font-size: 0.95rem; color: rgba(233,240,242,0.88); border-bottom: 1px solid rgba(255,255,255,0.09); }

/* ---------- Hitta hit ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.dir-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.dir-card h3 { font-size: 1.08rem; }
.dir-card p { font-size: 0.95rem; margin-top: 8px; color: var(--ink); }
.dir-card .ic { font-size: 1.6rem; display: block; margin-bottom: 10px; }

/* ---------- Om oss ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 52px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-grid p + p { margin-top: 14px; }
.signature { font-family: var(--font-hand); font-size: 2rem; color: var(--falu); margin-top: 22px; transform: rotate(-2deg); display: inline-block; }

/* ---------- Boka / footer ---------- */
.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 12px; }
.cta-final p { max-width: 54ch; margin: 0 auto 28px; }
footer { background: var(--hav-deep); color: rgba(233,240,242,0.85); padding: 54px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
footer a { color: var(--sol); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer ul { list-style: none; }
footer li { padding: 3px 0; font-size: 0.95rem; }
.foot-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem; color: rgba(233,240,242,0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Vågdelare (horisonten) ---------- */
.wave { display: block; width: 100%; height: 44px; margin-bottom: -1px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(22, 50, 63, 0.94);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox .lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #fff; font-size: 0.95rem; }
.lightbox button {
  position: absolute; background: none; border: none; color: #fff; font-size: 2.2rem;
  cursor: pointer; padding: 16px; opacity: 0.8; transition: opacity .2s; line-height: 1;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 14px; right: 20px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stay-media > a:hover img, .mosaic a:hover img { transform: none; }
}

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

/* ---------- Responsivt ---------- */
@media (max-width: 960px) {
  .intro-grid, .about-grid, .price-grid { grid-template-columns: 1fr; gap: 36px; }
  .stay-card { grid-template-columns: 1fr; gap: 22px; }
  .stay-card.flip .stay-media { order: 0; }
  .dir-grid, .act-cols { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .mosaic a:nth-child(6) { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 820px) {
  .brand span { display: none; }
  .nav-inner { gap: 14px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(247,244,236,0.98); flex-direction: column; padding: 18px 24px; gap: 14px;
    box-shadow: 0 12px 24px rgba(31,66,84,0.15); align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--hav) !important; font-size: 1.05rem; }
  .nav-toggle {
    display: block; background: none; border: none; cursor: pointer;
    font-size: 1.7rem; color: #fff; transition: color .35s; line-height: 1; padding: 4px 8px;
  }
  .nav.solid .nav-toggle { color: var(--hav); }
  .dist-strip li { padding: 4px 14px; font-size: 0.87rem; }
  section { padding: 60px 0; }
  .hero-content { padding-bottom: 70px; }
}
