/* ==========================================================================
   Ravnsvej 11 — delt design
   Palet: arkitektonisk, kystnært. Se README.md for justering.
   ========================================================================== */

:root {
  --paper: #FAF8F4;
  --paper-deep: #F1ECE1;
  --ink: #1E1D1B;
  --ink-soft: #5C5850;
  --sea: #4C6B78;
  --sea-deep: #33505C;
  --sea-tint: #E4EBEC;
  --teak: #B27F49;
  --teak-tint: #F1E4D2;
  --line: #E6E1D3;
  --card: #FFFFFF;
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 2px;
  --shadow: 0 1px 2px rgba(30,29,27,0.05), 0 10px 30px rgba(30,29,27,0.06);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Horizon signature motif ---------- */
.horizon {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}
.horizon::before,
.horizon::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.horizon .sun {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teak);
  flex-shrink: 0;
}
.horizon.left {
  justify-content: flex-start;
}
.horizon.left::after { display: none; }
.horizon.left::before { flex: 0 0 40px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 600;
  margin-top: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--sea-deep); color: #fff; }
.btn-primary:hover { background: var(--sea); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 0.78rem; }

/* Language switcher */
.langsel {
  display: flex;
  gap: 2px;
  background: var(--sea-tint);
  border-radius: 999px;
  padding: 3px;
}
.langsel button {
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: var(--sea-deep);
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.langsel button[aria-pressed="true"] { background: var(--sea-deep); color: #fff; }
.langsel button:hover:not([aria-pressed="true"]) { background: rgba(76,107,120,0.14); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; display: block; }

@media (max-width: 900px) {
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 18px 28px; gap: 16px; display: none; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 78vh;
  min-height: 480px;
  max-height: 760px;
  overflow: hidden;
}
.hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,29,27,0.05) 0%, rgba(30,29,27,0.02) 45%, rgba(30,29,27,0.55) 100%);
}
.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 28px 46px;
  color: #fff;
  z-index: 2;
}
.hero-content .wrap { padding: 0; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
  opacity: 0.92;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.04;
  color: #fff;
  max-width: 15ch;
  letter-spacing: -0.01em;
}
.hero-content p {
  font-size: 1.08rem;
  max-width: 44ch;
  margin: 16px 0 26px;
  opacity: 0.94;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }

/* ---------- Facts bar ---------- */

.facts-bar {
  background: var(--sea-deep);
  color: #fff;
}
.facts-bar .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.fact { text-align: center; }
.fact .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  display: block;
}
.fact .lbl {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
  margin-top: 2px;
  display: block;
}

/* ---------- Sections ---------- */

section.block { padding: 78px 0; }
section.block.tight { padding: 52px 0; }
section.block.alt { background: var(--paper-deep); }

.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 600;
  margin: 0 0 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: 1.14; }
.section-head p { color: var(--ink-soft); margin: 14px 0 0; font-size: 1.02rem; }

/* ---------- About / two column ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col img { border-radius: var(--radius-l); }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
}

.prose p { margin: 0 0 16px; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

/* ---------- Amenities grid ---------- */

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.amenity {
  background: var(--card);
  padding: 26px 24px;
}
.amenity .ai {
  width: 26px; height: 26px;
  color: var(--sea);
  margin-bottom: 14px;
}
.amenity .ai svg { width: 100%; height: 100%; }
.amenity h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.amenity p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- Gallery grid ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 190px;
  gap: 8px;
}
.gallery-grid a { display: block; overflow: hidden; border-radius: var(--radius-s); position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid a:hover img { transform: scale(1.045); }
.g-w2 { grid-column: span 2; }
.g-w3 { grid-column: span 3; }
.g-h2 { grid-row: span 2; }
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .g-w2, .g-w3 { grid-column: span 2; }
  .g-h2 { grid-row: span 1; }
}

/* Lightbox (simple) */
.lightbox {
  position: fixed; inset: 0; background: rgba(20,19,17,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius-s); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; color: #fff;
  font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- Favorites (area page) ---------- */

.fav-list { display: flex; flex-direction: column; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.fav-item { background: var(--card); padding: 30px 32px; display: grid; grid-template-columns: 160px 1fr; gap: 26px; align-items: start; }
.fav-item .cat { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teak); font-weight: 600; padding-top: 4px; }
.fav-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.fav-item p { margin: 0; color: var(--ink-soft); }
.fav-item .meta { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--sea-deep); }
@media (max-width: 620px) {
  .fav-item { grid-template-columns: 1fr; gap: 8px; }
}

.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.tip-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; }
.tip-card .tip-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--teak); display:block; margin-bottom: 10px; }
.tip-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Manual hub grid ---------- */

.manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.manual-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.manual-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(30,29,27,0.06), 0 14px 28px rgba(30,29,27,0.1); }
.manual-card .loc {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sea);
  font-weight: 600;
}
.manual-card .mi { width: 28px; height: 28px; color: var(--sea-deep); }
.manual-card .mi svg { width: 100%; height: 100%; }
.manual-card .name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; }
.manual-card .desc { font-size: 0.85rem; color: var(--ink-soft); margin: -2px 0 0; }
.manual-card .qr-badge {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft);
  padding-top: 6px;
}
.manual-card .qr-badge svg { width: 14px; height: 14px; }

/* ---------- Manual detail page ---------- */

.manual-hero {
  padding: 40px 0 8px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--sea-deep);
  text-decoration: none; margin: 22px 0 0;
}
.back-link:hover { text-decoration: underline; }

.icon-plate {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(160deg, var(--sea-tint), var(--paper-deep));
  border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center;
  margin: 20px 0 36px; overflow: hidden; position: relative;
}
.icon-plate svg { width: 30%; height: 30%; color: var(--sea-deep); }
.icon-plate .photo-hint {
  position: absolute; bottom: 10px; right: 14px;
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--ink-soft);
  background: rgba(255,255,255,0.75); padding: 3px 8px; border-radius: 999px;
}

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 15px 17px; box-shadow: var(--shadow); }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--radius-s);
  background: var(--sea-deep); color: #fff; font-family: var(--font-mono);
  font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}
.step p { margin: 0; padding-top: 5px; }
.step p strong { color: var(--ink); }

.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-m); overflow: hidden; background: var(--ink); border: 1px solid var(--line); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 2px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.1rem; color: var(--sea); flex-shrink: 0; transition: transform 0.15s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; color: var(--ink-soft); padding-right: 4px; }

.callout {
  background: var(--teak-tint);
  border: 1px solid var(--teak);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0 0 28px;
}
.callout strong { color: var(--ink); }

/* ---------- Welcome-guide layout ---------- */

.guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 54px; align-items: flex-start; }
.guide-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; }
.guide-toc a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; border-left: 2px solid transparent; padding-left: 12px; }
.guide-toc a:hover { color: var(--ink); }
.guide-toc-group { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sea); margin: 16px 0 2px; padding-left: 12px; }
.guide-toc-group:first-child { margin-top: 0; }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 10px 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
  .guide-toc-group { display: none; }
}

.guide-section { padding-top: 10px; margin-bottom: 52px; scroll-margin-top: 90px; }
.guide-section h2 { font-size: 1.5rem; margin-bottom: 6px; }
.guide-section h3 { font-size: 1.05rem; margin: 22px 0 8px; font-family: var(--font-body); font-weight: 600; }
.guide-section p { color: var(--ink-soft); margin: 0 0 14px; }
.guide-section ul { color: var(--ink-soft); padding-left: 20px; margin: 0 0 14px; }
.guide-section li { margin-bottom: 6px; }
.guide-section strong { color: var(--ink); }
.guide-key { background: var(--sea-tint); border-radius: var(--radius-m); padding: 18px 20px; margin: 0 0 20px; }
.guide-key .k { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sea-deep); display: block; margin-bottom: 2px; }
.guide-key .v { font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.checklist li::before { content: "✓"; color: var(--sea-deep); font-weight: 700; flex-shrink: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 46ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 50px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--sea); margin: 0 0 12px; }
.footer-grid p, .footer-grid a { font-size: 0.88rem; color: var(--ink-soft); text-decoration: none; display: block; margin-bottom: 6px; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--ink-soft); }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-grid img, .manual-card { transition: none; }
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--sea-deep); outline-offset: 2px;
}
