/* =========================================================
   VisitNyhavn.com — shared stylesheet (mockup V3)
   ---------------------------------------------------------
   Warm, photo-first, visit-guide aesthetic. Clean white base,
   Nyhavn house-colour accents, rounded friendly UI.
   Type: Bricolage Grotesque (display) + Hanken Grotesk (body).
   ========================================================= */

:root {
  /* Surfaces */
  --bg:              #FFFFFF;
  --bg-warm:         #FFFAF4;
  --bg-deep:         #FBEFDD;

  /* Ink */
  --ink:             #1E2A33;
  --ink-soft:        #51616B;
  --ink-muted:       #8A969E;
  --line:            #EDE7DD;
  --line-strong:     #E1D8C7;

  /* Nyhavn house-colour accents — OUR identity (bright, joyful, not the visit brands') */
  --ny-red:          #D64D38;
  --ny-ochre:        #E9A23B;
  --ny-blue:         #2F6FB0;
  --ny-green:        #4A8A6F;
  --ny-yellow:       #F3C969;

  --ny-red-soft:     #FBE4DE;
  --ny-ochre-soft:   #FCEFD6;
  --ny-blue-soft:    #DCE8F4;
  --ny-green-soft:   #DEEBE4;
  --ny-yellow-soft:  #FCEFCE;

  --accent:          var(--ny-blue);
  --accent-warm:     var(--ny-red);

  /* Type */
  --display: "Bricolage Grotesque", "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans:    "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Shape */
  --r-sm:   8px;
  --r:      14px;
  --r-lg:   22px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 8px -2px rgba(30, 42, 51, 0.08);
  --shadow:    0 14px 32px -22px rgba(30, 42, 51, 0.30);
  --shadow-lg: 0 28px 60px -32px rgba(30, 42, 51, 0.35);

  /* Layout */
  --max-w:        1240px;
  --gutter:       clamp(20px, 4vw, 56px);
  --section-pad:  clamp(72px, 9vw, 112px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Type primitives ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 600; }
h4 { font-size: 18px; line-height: 1.3; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); text-wrap: pretty; }
p.lede {
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow .dot { color: var(--line-strong); margin: 0 .5em; }

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--wide { max-width: 1400px; }

.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section--tight { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.section--warm { background: var(--bg-warm); }
.section--deep { background: var(--bg-deep); }

/* ---------- Photo system ---------- */
/* Every image slot is an <img> inside .photo. Swap src to upgrade. */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: linear-gradient(135deg, #F1E6D2 0%, #E2C9A1 60%, #C8A576 100%);
  isolation: isolate;
  display: block;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.photo:hover img { transform: scale(1.03); }
.photo--lg { border-radius: var(--r-lg); }

.photo__credit {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  background: rgba(30, 42, 51, 0.45);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
  font-weight: 500;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.brand__mark {
  display: inline-block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.brand small {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__primary {
  display: flex;
  gap: 26px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  white-space: nowrap;
  padding: 6px 0;
  transition: color .15s;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--ny-red);
  border-radius: 2px;
}

/* Language switcher */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 4px;
  background: var(--bg);
}
.lang a, .lang span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  color: var(--ink-muted);
  text-transform: uppercase;
  transition: background .15s, color .15s;
}
.lang a:hover { color: var(--ink); }
.lang .is-current {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 980px) {
  .nav .nav__primary { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: var(--r-pill);
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-1px); }
.btn--warm {
  background: var(--ny-red);
  border-color: var(--ny-red);
  color: #fff;
}
.btn--warm:hover { background: #BA3F2C; border-color: #BA3F2C; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn .arrow { transform: translateY(-1px); transition: transform .15s; }
.btn:hover .arrow { transform: translate(2px, -1px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: gap .15s;
}
.link-arrow::after {
  content: "→";
  transition: transform .15s;
}
.link-arrow:hover { gap: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
  padding-top: 72px;
  padding-bottom: 40px;
  margin-top: 56px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { font-size: 15px; color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.site-footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
}
.site-footer__about {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 34ch;
}

@media (max-width: 880px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--ink-muted); }
.center { text-align: center; }
.hide-mobile { }
.show-mobile { display: none; }
@media (max-width: 720px) {
  .hide-mobile { display: none; }
  .show-mobile { display: block; }
}

/* ---------- Top note ---------- */
.topnote {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 16px;
  font-weight: 500;
}
.topnote strong { color: #fff; font-weight: 700; }
.topnote .dot { color: rgba(255,255,255,0.35); margin: 0 8px; }

/* ---------- Section heads ---------- */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
  flex-wrap: wrap;
}
.section-head h2 { max-width: 22ch; }
.section-head__meta {
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}
.section-head__arrows {
  display: flex; gap: 8px;
}
.arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.arrow-btn:hover { background: var(--ink); color: #fff; }
.arrow-btn:disabled { opacity: 0.4; cursor: default; }

/* ---------- Photo cards (generic) ---------- */
.pcard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: transparent;
  transition: transform .25s ease;
}
.pcard:hover { transform: translateY(-3px); }
.pcard .photo { aspect-ratio: 4/3; }
.pcard__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.pcard__cat .swatch {
  width: 10px; height: 10px; border-radius: 999px;
}
.pcard h3 {
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.2;
}
.pcard p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
}
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding-bottom: 12px;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scrollbar-width: thin;
}
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
.carousel__track > * { scroll-snap-align: start; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-warm);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 999px;
}
.badge--food .dot  { background: var(--ny-red); }
.badge--exp  .dot  { background: var(--ny-ochre); }
.badge--stay .dot  { background: var(--ny-blue); }
.badge--prac .dot  { background: var(--ny-green); }
.badge--season .dot { background: var(--ny-yellow); }

/* ---------- Card ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
