/* Kvisvik Camping. Mobil først. Ingen rammeverk. */

@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/young-serif-400.woff2") format("woff2");
}

:root {
  --fjord: #163b5c;
  --fjord-deep: #0f2a43;
  --skog: #2f5b3c;
  --sand: #f4efe6;
  --sand-deep: #e8dfd0;
  --timber: #8a6a4b;
  --rav: #d9812a;
  --ink: #1d2430;
  --ink-soft: #4a5563;
  --white: #ffffff;
  --radius: 14px;
  --maxw: 1120px;
  --pad: clamp(1rem, 4vw, 2rem);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
}

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

a { color: var(--fjord); text-underline-offset: 0.15em; }
a:hover { color: var(--fjord-deep); }

:focus-visible {
  outline: 3px solid var(--rav);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.1rem, 7vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 4.5vw, 2.4rem); color: var(--fjord-deep); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--fjord); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 1rem; }

/* Topp-meny */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.is-scrolled { border-color: var(--sand-deep); box-shadow: 0 6px 20px rgba(15, 42, 67, 0.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--fjord-deep); font-weight: 700; letter-spacing: 0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-family: var(--display); font-size: 1.25rem; }

.nav__toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: 1.5px solid var(--fjord); color: var(--fjord);
  padding: 0.45rem 0.8rem; border-radius: 999px; font: inherit; font-size: 0.95rem; cursor: pointer;
}
.nav__toggle svg { width: 18px; height: 18px; }

.nav__menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--sand); border-bottom: 1px solid var(--sand-deep);
  padding: 0.5rem var(--pad) 1rem;
  box-shadow: 0 16px 30px rgba(15, 42, 67, 0.12);
}
.nav__menu.is-open { display: block; }
.nav__menu ul { list-style: none; margin: 0; padding: 0; }
.nav__menu a { display: block; padding: 0.7rem 0.25rem; text-decoration: none; font-weight: 600; color: var(--fjord-deep); border-bottom: 1px solid var(--sand-deep); }
.nav__menu li:last-child a { border-bottom: 0; }
.nav__lang { margin-top: 0.75rem; display: flex; gap: 0.75rem; align-items: center; font-size: 0.95rem; }
.nav__lang a { display: inline-block; padding: 0.3rem 0.7rem; border: 1px solid var(--fjord); border-radius: 999px; text-decoration: none; }
.nav__lang a[aria-current="page"] { background: var(--fjord); color: #fff; }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex; position: static; background: none; border: 0; box-shadow: none; padding: 0;
    align-items: center; gap: 1.25rem;
  }
  .nav__menu ul { display: flex; gap: 0.25rem; }
  .nav__menu a { border: 0; padding: 0.4rem 0.6rem; border-radius: 8px; }
  .nav__menu a:hover { background: var(--sand-deep); }
  .nav__lang { margin: 0; }
}

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; font-size: 1rem; line-height: 1.2; min-height: 48px;
  transition: transform 0.12s, background 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--rav); color: #1a1208; }
.btn--primary:hover { background: #c9711f; color: #1a1208; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--fjord { background: var(--fjord); color: #fff; }
.btn--fjord:hover { background: var(--fjord-deep); color: #fff; }
.btn--outline { background: transparent; color: var(--fjord); border-color: var(--fjord); }
.btn--outline:hover { background: var(--fjord); color: #fff; }

/* Hero */
.hero {
  position: relative; color: #fff; isolation: isolate;
  min-height: min(88vh, 760px); display: flex; align-items: flex-end;
  background: #68685a;
}
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 42, 67, 0.15) 0%, rgba(15, 42, 67, 0.25) 40%, rgba(15, 42, 67, 0.82) 100%);
}
.hero__content { padding: 5rem 0 2.5rem; max-width: 40rem; }
.hero__season {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; margin-bottom: 1.1rem;
  backdrop-filter: blur(6px);
}
.hero__season svg { width: 16px; height: 16px; }
.hero h1 { margin-bottom: 0.4em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25); }
.hero__lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 34rem; margin-bottom: 1.5rem; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Seksjoner */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--alt { background: var(--white); }
.section--fjord { background: var(--fjord-deep); color: #fff; }
.section--fjord h2 { color: #fff; }
.section--fjord a { color: #fff; }
.eyebrow { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--skog); margin-bottom: 0.6rem; }
.section--fjord .eyebrow { color: #f0b46e; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 42rem; }
.section--fjord .lead { color: rgba(255, 255, 255, 0.82); }

/* Om oss */
.split { display: grid; gap: 2rem; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 800px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
  .split--flip > :first-child { order: 2; }
}

.facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.facts li { display: flex; gap: 0.75rem; align-items: flex-start; }
.facts svg { width: 22px; height: 22px; flex: none; color: var(--skog); margin-top: 0.15rem; }

/* Kort */
.cards { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--sand-deep); display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card__body { padding: 1.1rem 1.25rem 1.3rem; }
.card__body p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card__body h3 { margin-bottom: 0.35rem; }
.card--plain { padding: 1.25rem; background: var(--sand); }
.card--plain h3 { display: flex; align-items: center; gap: 0.6rem; }
.card--plain svg { width: 24px; height: 24px; color: var(--fjord); flex: none; }

/* Fasiliteter */
.amenities { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.6rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.amenities li { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 0.9rem; background: var(--white); border-radius: 10px; border: 1px solid var(--sand-deep); }
.amenities svg { width: 22px; height: 22px; color: var(--skog); flex: none; }

.note {
  margin-top: 2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--sand-deep);
  background: var(--sand); border-radius: 10px; color: var(--ink-soft);
}
.note p:last-child { margin: 0; }

/* Priser */
.prices { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 720px) { .prices { grid-template-columns: repeat(2, 1fr); } }
.price { background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.price__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.price__amount { font-family: var(--display); font-size: 1.9rem; color: var(--fjord-deep); white-space: nowrap; }
.price__amount small { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); }
.price__req { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--timber); }
.price p { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 0.98rem; }
.price h3 { margin: 0; }

/* Beliggenhet */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--sand-deep); background: var(--sand-deep); margin-top: 2rem; }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }
.map__links { display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 1rem; background: var(--white); align-items: center; }
.map__links span { color: var(--ink-soft); font-size: 0.95rem; }
.dist { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 1rem; }
.dist th, .dist td { text-align: left; padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--sand-deep); }
.dist th { font-weight: 600; }
.dist td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dist small { color: var(--ink-soft); display: block; font-size: 0.85rem; }
.loc-grid { display: grid; gap: 2rem; margin-top: 1rem; }
@media (min-width: 900px) { .loc-grid { grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; } .loc-grid .map { margin-top: 0; } }
.address { font-style: normal; line-height: 1.5; }
.address strong { display: block; }

.daytrip { margin-top: 2.5rem; display: grid; gap: 1.25rem; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--sand-deep); }
.daytrip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.daytrip__body { padding: 1.25rem 1.4rem 1.5rem; }
.daytrip__body p:last-child { margin: 0; }
@media (min-width: 800px) { .daytrip { grid-template-columns: 1.1fr 1fr; gap: 0; } .daytrip img { aspect-ratio: auto; } }

/* Galleri */
.gallery { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.gallery button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; overflow: hidden; display: block; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.25s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery__note { color: var(--ink-soft); font-size: 0.95rem; margin-top: 1rem; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); }
.lightbox::backdrop { background: rgba(15, 42, 67, 0.9); }
.lightbox img { border-radius: 10px; max-height: 85vh; width: auto; margin: 0 auto; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; background: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }

/* Kontakt */
.contact-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.contact h3 { margin-bottom: 0.25rem; }
.contact .role { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; margin-bottom: 0.9rem; }
.contact a.tel { font-family: var(--display); font-size: 1.7rem; text-decoration: none; display: inline-block; margin-bottom: 0.9rem; letter-spacing: 0.01em; }
.contact a.tel:hover { text-decoration: underline; }
.contact .btn { width: 100%; }
.contact--mail a.mail { word-break: break-all; font-weight: 600; }
.social { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.social a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; text-decoration: none; font-weight: 600; }
.social a:hover { background: rgba(255, 255, 255, 0.1); }
.social svg { width: 20px; height: 20px; }

/* Bunn */
.footer { background: var(--fjord-deep); color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; padding: 1.75rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer a { color: rgba(255, 255, 255, 0.85); }

/* Ring-knapp nederst på mobil */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.6rem var(--pad) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(244, 239, 230, 0.96); border-top: 1px solid var(--sand-deep);
  backdrop-filter: blur(10px);
}
.callbar .btn { padding: 0.7rem 0.5rem; font-size: 0.95rem; }
body.has-callbar { padding-bottom: 76px; }
@media (min-width: 900px) { .callbar { display: none; } body.has-callbar { padding-bottom: 0; } }
