/* =========================================================
   Bergen RIB Safari — editorial layer
   Loaded after styles.css. Everything here is prefixed .x-
   so the older pages keep working untouched.

   Look: near-black ink, warm off-white paper, one cold sea
   accent. The orange of the boats is the only loud colour and
   it comes from the photographs, never from the UI.
   ========================================================= */

:root {
  --x-ink: #0e1417;
  --x-ink-2: #1b2429;
  --x-paper: #f6f3ee;
  --x-paper-2: #efeae2;
  --x-sea: #2f6d84;
  --x-sea-dark: #1e4d5f;
  --x-sand: #cbb89a;
  --x-line: rgba(14, 20, 23, .14);
  --x-line-light: rgba(255, 255, 255, .18);
  --x-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --x-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --x-pad: clamp(1.25rem, 5vw, 4rem);
}

.x { background: var(--x-paper); color: var(--x-ink); font-family: var(--x-sans); }
.x img { display: block; width: 100%; height: 100%; object-fit: cover; }

.x-wrap { width: min(100% - 2.5rem, 1240px); margin-inline: auto; }
.x-wrap--wide { width: min(100% - 2.5rem, 1560px); margin-inline: auto; }

.x-eyebrow {
  font-size: .68rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--x-sea); margin: 0 0 1.1rem;
}
.x-eyebrow--light { color: var(--x-sand); }

.x-display {
  font-family: var(--x-serif); font-weight: 300; font-style: normal;
  font-size: clamp(2.6rem, 7.2vw, 6rem); line-height: .98; letter-spacing: -.015em;
  margin: 0; color: inherit;
}
.x-h2 {
  font-family: var(--x-serif); font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.01em;
  margin: 0 0 1.1rem; color: inherit;
}
.x-h3 {
  font-family: var(--x-serif); font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.18; margin: 0 0 .5rem;
}
.x-lead { font-size: clamp(1.02rem, 1.35vw, 1.18rem); line-height: 1.72; color: #3d4a50; max-width: 58ch; margin: 0; }
.x-body { font-size: 1rem; line-height: 1.75; color: #46535a; max-width: 62ch; }
.x-body--light { color: rgba(255, 255, 255, .74); }

.x-section { padding: clamp(4.5rem, 11vw, 9rem) 0; }
.x-section--dark { background: var(--x-ink); color: #fff; }
.x-section--dark .x-lead { color: rgba(255, 255, 255, .72); }
.x-section--tone { background: var(--x-paper-2); }

/* ---------- buttons ---------- */
.x-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--x-sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 1.05rem 2.1rem; border: 1px solid transparent; border-radius: 0;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.x-btn--solid { background: var(--x-ink); color: #fff; }
.x-btn--solid:hover { background: var(--x-sea-dark); }
.x-btn--outline { border-color: currentColor; color: inherit; }
.x-btn--outline:hover { background: currentColor; }
.x-btn--outline:hover span { color: var(--x-ink); }
.x-btn--light { background: #fff; color: var(--x-ink); }
.x-btn--light:hover { background: var(--x-sand); }

/* ---------- hero ---------- */
.x-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.x-hero__media { position: absolute; inset: 0; }
.x-hero__media video, .x-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.x-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 14, .58) 0%, rgba(8, 12, 14, .18) 34%, rgba(8, 12, 14, .82) 100%);
}
.x-hero__inner { position: relative; z-index: 2; padding-bottom: clamp(3.5rem, 9vh, 7rem); padding-top: 8rem; }
.x-hero .x-display { max-width: 16ch; text-shadow: 0 2px 40px rgba(0, 0, 0, .35); }
.x-hero__sub { margin: 1.6rem 0 2.4rem; font-size: clamp(1.02rem, 1.4vw, 1.22rem); line-height: 1.65; max-width: 46ch; color: rgba(255, 255, 255, .88); }
.x-hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.x-hero__facts {
  margin: clamp(2.5rem, 6vh, 4rem) 0 0; padding: 1.6rem 0 0; list-style: none;
  border-top: 1px solid var(--x-line-light);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem 2rem;
}
.x-hero__facts li { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.x-hero__facts b { display: block; font-family: var(--x-serif); font-size: 2rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #fff; margin-bottom: .1rem; }

/* ---------- editorial tour rows ---------- */
.x-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.x-row + .x-row { margin-top: clamp(4rem, 9vw, 8rem); }
.x-row--flip .x-row__media { order: 2; }
.x-row__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--x-paper-2); }
.x-row__media img { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.x-row:hover .x-row__media img { transform: scale(1.04); }
.x-row__no {
  position: absolute; top: 1.2rem; left: 1.4rem; z-index: 2;
  font-family: var(--x-serif); font-size: 3.4rem; line-height: 1; color: rgba(255, 255, 255, .9);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.x-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; }
.x-meta li { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #6a767c; }
.x-price { font-family: var(--x-serif); font-size: 1.9rem; }
.x-price small { font-family: var(--x-sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #77848a; margin-left: .6rem; }
.x-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }
.x-textlink { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: .25rem; }

/* ---------- split feature ---------- */
.x-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.x-split__media { aspect-ratio: 4 / 5; overflow: hidden; }
.x-specs { list-style: none; margin: 2rem 0 0; padding: 0; }
.x-specs li { display: flex; justify-content: space-between; gap: 2rem; padding: .95rem 0; border-top: 1px solid var(--x-line-light); font-size: .95rem; }
.x-specs li:last-child { border-bottom: 1px solid var(--x-line-light); }
.x-specs span:first-child { letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; color: rgba(255, 255, 255, .6); }

/* ---------- three-up ---------- */
.x-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 4vw, 3.5rem); }
.x-col { border-top: 1px solid var(--x-line); padding-top: 1.6rem; }
.x-col h3 { font-family: var(--x-serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 .6rem; }
.x-col p { margin: 0; font-size: .98rem; line-height: 1.7; color: #4d5a61; }

/* ---------- gallery ---------- */
.x-band { width: 100%; aspect-ratio: 21 / 8; overflow: hidden; background: var(--x-paper-2); }
.x-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: .75rem; }
.x-gallery figure { margin: 0; overflow: hidden; background: var(--x-paper-2); aspect-ratio: 4 / 3; }
.x-gallery img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.x-gallery figure:hover img { transform: scale(1.05); }

/* ---------- practical ---------- */
.x-note { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.x-note h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 .6rem; color: var(--x-sea); }
.x-note p { margin: 0; font-size: .98rem; line-height: 1.7; color: #4d5a61; }

/* ---------- closing call ---------- */
.x-cta { position: relative; min-height: 70svh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.x-cta__media { position: absolute; inset: 0; }
.x-cta__media::after { content: ""; position: absolute; inset: 0; background: rgba(9, 14, 16, .55); }
.x-cta__inner { position: relative; z-index: 2; padding: clamp(3rem, 8vw, 6rem) 1.5rem; }

/* ---------- reveal ---------- */
.x-reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.x-reveal.in { opacity: 1; transform: none; }

/* ---------- header over hero ---------- */
.x-page .site-header { position: fixed; inset: 0 0 auto; background: transparent; border-bottom: 1px solid transparent; transition: background .35s ease, border-color .35s ease; }
.x-page .site-header.is-solid { background: rgba(14, 20, 23, .92); backdrop-filter: saturate(140%) blur(10px); border-bottom-color: rgba(255, 255, 255, .1); }
.x-page .brand__mark { background: none; border: 1px solid rgba(255, 255, 255, .5); color: #fff; border-radius: 0; font-size: .8rem; }
.x-page .brand { font-family: var(--x-serif); font-weight: 400; font-size: 1.3rem; letter-spacing: .02em; }
.x-page .brand small { font-family: var(--x-sans); color: var(--x-sand); letter-spacing: .28em; font-size: .55rem; }
.x-page .nav__links a { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.x-page .nav__cta .btn { border-radius: 0; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: .85rem 1.5rem; }
.x-page .nav__cta .btn--primary { background: #fff; color: var(--x-ink); }
.x-page .nav__cta .btn--primary:hover { background: var(--x-sand); box-shadow: none; }

/* ---------- inner pages ----------
   The sub-pages keep their original markup; this pulls their typography,
   colour and button shape into the same language as the front page. */
.x-inner { background: var(--x-paper); }
.x-inner h1, .x-inner h2, .x-inner h3, .x-inner .price {
  font-family: var(--x-serif); font-weight: 300; letter-spacing: -.01em;
}
.x-inner h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.02; }
.x-inner h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 300; }
.x-inner h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 400; }
.x-inner .eyebrow { color: var(--x-sea); letter-spacing: .3em; font-size: .68rem; }
.x-inner .btn { border-radius: 0; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; padding: 1rem 1.8rem; }
.x-inner .btn--primary { background: var(--x-ink); color: #fff; }
.x-inner .btn--primary:hover { background: var(--x-sea-dark); box-shadow: none; }
.x-inner .btn--light { background: #fff; color: var(--x-ink); }
.x-inner .card, .x-inner .tour-card, .x-inner .panel { border-radius: 0; }
.x-inner .site-header { background: var(--x-ink); }
.x-inner .brand { font-family: var(--x-serif); font-weight: 400; font-size: 1.3rem; }
.x-inner .brand small { font-family: var(--x-sans); color: var(--x-sand); letter-spacing: .28em; font-size: .55rem; }
.x-inner .brand__mark { background: none; border: 1px solid rgba(255, 255, 255, .5); color: #fff; border-radius: 0; font-size: .8rem; }
.x-inner .nav__links a { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.x-inner .bg-light { background: var(--x-paper-2); }
.x-inner .bg-dark { background: var(--x-ink); }
.x-inner img { border-radius: 0; }

/* ---------- footer ---------- */
.x-footer { background: var(--x-ink); color: rgba(255, 255, 255, .66); padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem; }
.x-footer a { color: rgba(255, 255, 255, .78); }
.x-footer a:hover { color: #fff; }
.x-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.x-footer h5 { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin: 0 0 1.1rem; font-weight: 700; }
.x-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.x-footer__brand { font-family: var(--x-serif); font-size: 1.6rem; color: #fff; margin: 0 0 .8rem; }
.x-footer__bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; }

@media (max-width: 960px) {
  .x-row, .x-split, .x-cols, .x-footer__grid { grid-template-columns: 1fr; }
  .x-row--flip .x-row__media { order: 0; }
  .x-gallery { grid-template-columns: repeat(2, 1fr); }
  .x-hero { min-height: 92svh; }
  .x-band { aspect-ratio: 16 / 9; }
}

@media (max-width: 700px) {
  /* Phone: the hero is one message and two buttons — the fact strip moves out
     of the way so the headline and CTAs always fit above the fold. */
  .x-page .brand { font-size: 1.05rem; white-space: nowrap; }
  .x-page .brand small { display: none; }
  .x-page .nav__cta .btn { padding: .7rem 1.05rem; font-size: .64rem; }
  .x-hero__media::after {
    background: linear-gradient(180deg, rgba(8, 12, 14, .62) 0%, rgba(8, 12, 14, .34) 40%, rgba(8, 12, 14, .86) 100%);
  }
  .x-hero__inner { padding-top: 6.5rem; }
  .x-hero .x-display { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .x-hero__sub { margin-bottom: 1.8rem; }
  .x-hero__cta { flex-direction: column; align-items: stretch; }
  .x-hero__cta .x-btn { justify-content: center; }
  .x-hero__facts { display: none; }
  .x-gallery { grid-template-columns: 1fr; }
  .x-btn { padding: .95rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .x-reveal { opacity: 1; transform: none; transition: none; }
  .x-row__media img, .x-gallery img { transition: none; }
}
