@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1c3358;
  --navy-deep: #152a49;
  --ink: #1c3358;
  --gold: #c6a35b;
  --gold-deep: #3a2410;
  --paper: #eef2f5;
  --fleet: #1a2330;
  --muted: #66707c;
  --white: #ffffff;
  --header: clamp(1rem, 2vw, 2.25rem);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  background: var(--white);
  color: var(--navy);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header sits on the photograph on the homepage, and on a navy bar inside. */
.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--header) 0;
}

.logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.logo img {
  width: clamp(168px, 20vw, 310px);
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(8, 12, 18, 0.45));
}

.nav-toggle,
.nav-button {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.6vw, 1.65rem);
  padding-top: 0.55rem;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #f3e2bc;
}

.site-nav a:focus-visible,
.btn:focus-visible,
.logo:focus-visible,
.crew .btn:focus-visible,
.text-link:focus-visible {
  outline: 2px solid #f3e2bc;
  outline-offset: 3px;
}

/* Hero — the real Bryggen photograph, short enough to leave room below. */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 22rem;
  max-height: 36rem;
  background: #101820;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 16, 24, 0.5) 0%, rgba(10, 16, 24, 0.12) 22%, rgba(10, 16, 24, 0) 40%),
    linear-gradient(90deg, rgba(8, 14, 22, 0.38) 0%, rgba(8, 14, 22, 0.08) 36%, rgba(8, 14, 22, 0) 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--header) clamp(1.15rem, 3.5vh, 2rem);
  max-width: 46rem;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
}

.btn-navy {
  background: var(--navy-deep);
  color: var(--white);
  min-width: 9.25rem;
  padding-inline: 1.6rem;
}

.btn-navy:hover {
  background: #1c3a66;
}

.btn-line {
  background: var(--white);
  color: var(--navy-deep);
  border-color: #314864;
  min-width: 9.25rem;
  padding-inline: 1.35rem;
}

.btn-line:hover {
  border-color: var(--navy-deep);
  background: #f7f9fb;
}

/* Journey chooser */
.journeys {
  background: var(--paper);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) var(--header) clamp(1.5rem, 3vw, 2rem);
}

.journeys h2 {
  margin: 0 0 clamp(1rem, 2.2vw, 1.45rem);
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .journeys .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1180px;
  }
}

.card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(22, 40, 70, 0.07);
  padding: 1.45rem 1.2rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.card p {
  margin: 0 0 1.15rem;
  max-width: 16rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.card .btn {
  margin-top: auto;
  margin-bottom: 0;
  width: 14rem;
  max-width: 100%;
}

.company {
  max-width: 40rem;
  margin: clamp(1.35rem, 3vw, 1.85rem) auto 0;
  text-align: center;
}

.company h2 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.company p {
  margin: 0 auto;
  max-width: 38rem;
  color: #3c4654;
  font-size: 1.02rem;
}

/* Fleet strip */
.fleet {
  background: var(--fleet);
  color: #e8eef4;
  padding: 0.4rem var(--header) 1.05rem;
}

.fleet-note {
  max-width: 40rem;
  margin: 0.85rem auto 0.1rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #d5dee8;
}

.fleet-track {
  display: flex;
  align-items: flex-end;
  gap: clamp(1rem, 2.8vw, 2.25rem);
  max-width: 1180px;
  margin: 0 auto;
}

.fleet-vehicles {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.55rem, 1.4vw, 1.25rem);
}

.fleet-item {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  text-align: center;
}

.fleet-item img {
  display: block;
  height: clamp(58px, 7.2vw, 92px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.fleet-item.is-coach img {
  height: clamp(100px, 13vw, 168px);
  object-position: center bottom;
}

.fleet-item figcaption {
  margin-top: 0.4rem;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #f2f5f8;
  line-height: 1.3;
}

.crew {
  flex: 0 0 auto;
  align-self: flex-end;
  margin: 0;
  max-width: 11.75rem;
  padding-bottom: 0.2rem;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #f4f7fa;
}

.crew p {
  margin: 0 0 0.65rem;
}

.crew .btn {
  min-width: 0;
  width: 100%;
  max-width: 11.75rem;
  min-height: 42px;
  padding: 0.55rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

/* Inside pages */
body.sub {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sub .site-header {
  position: relative;
  background: var(--fleet);
  align-items: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.sub .logo img {
  width: clamp(150px, 18vw, 240px);
  filter: none;
}

.sub .site-nav {
  padding-top: 0;
}

.sub .site-nav a {
  text-shadow: none;
}

.sub-main {
  flex: 1;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.75rem, 7vw, 4.5rem) var(--header) 3rem;
  width: 100%;
}

.sub-main h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.sub-main h2 {
  margin: 1.35rem 0 0.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--navy);
}

.sub-main .lead {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.sub-main p {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  color: #3c4654;
}

.text-link {
  color: var(--navy-deep);
  font-weight: 600;
}

.subfoot {
  background: var(--fleet);
  color: #f4f7fa;
  padding: 1.35rem var(--header);
}

.subfoot p {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 0.98rem;
}

.subfoot a {
  color: #e0c27a;
  font-weight: 600;
  text-decoration: none;
}

.subfoot a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .hero {
    height: 48vh;
    min-height: 20.5rem;
    max-height: none;
  }
}

@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 26rem;
  }

  .card {
    min-height: 0;
    padding-bottom: 1.6rem;
  }

  .card .btn {
    margin-top: 1.15rem;
    width: 100%;
    max-width: 14rem;
  }

  .fleet-track {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .crew {
    align-self: center;
    max-width: none;
    width: 100%;
    padding-bottom: 0;
    text-align: center;
  }

  .crew .btn {
    width: auto;
    max-width: 14rem;
    margin-inline: auto;
  }

  .fleet-vehicles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: end;
    gap: 1.35rem 0.75rem;
    width: 100%;
  }

  .fleet-item img,
  .fleet-item.is-coach img {
    height: 78px;
  }

  .fleet-item.is-coach {
    grid-column: 1 / -1;
  }

  .fleet-item.is-coach img {
    height: 96px;
    transform: translateY(-6px);
  }
}

@media (max-width: 720px) {
  .nav-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-top: 0.15rem;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
  }

  .nav-button span:not(.sr-only) {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: var(--header);
    left: var(--header);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0;
    background: rgba(18, 26, 36, 0.96);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  }

  .site-nav a {
    text-shadow: none;
    padding: 0.85rem 1.1rem;
    letter-spacing: 0.14em;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .nav-toggle:focus-visible ~ .nav-button {
    outline: 2px solid #f3e2bc;
    outline-offset: 3px;
  }

  .hero-photo {
    object-position: 68% center;
  }

  .hero-content {
    max-width: 100%;
  }

  .btn {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .fleet-item figcaption {
    font-size: 0.68rem;
  }
}

/* Journey pages: our frame around the Bókun product chooser */
.journey-main {
  flex: 1;
  width: min(1080px, calc(100% - 2 * var(--header)));
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 3.75rem) 0 2.5rem;
}

.journey-main h1 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.journey-main .lead {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--navy);
}

.journey-main .intro {
  margin: 0;
  max-width: 40rem;
  color: #3c4654;
  font-size: 1.05rem;
}

.widget-block {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(22, 40, 70, 0.07);
  padding: 1.5rem 1.15rem 1.15rem;
  margin-top: 1.5rem;
  scroll-margin-top: 1.25rem;
}

.widget-block h2 {
  margin: 0 0 0.35rem;
  padding-inline: 0.35rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.widget-block .widget-note {
  margin: 0 0 0.85rem;
  padding-inline: 0.35rem;
  color: var(--muted);
  font-size: 1rem;
}

.bokunWidget {
  width: 100%;
  min-height: 240px;
}

.secondary-link {
  margin: 1rem 0 0;
  padding-inline: 0.35rem;
  color: #3c4654;
}

.secondary-link a {
  color: var(--navy-deep);
  font-weight: 600;
}

.quote-card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(22, 40, 70, 0.07);
  padding: 1.5rem 1.35rem 1.4rem;
  margin-top: 1.6rem;
  max-width: 36rem;
}

.quote-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.quote-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
}

.quote-form input,
.quote-form textarea {
  font: inherit;
  font-weight: 400;
  color: #1c2430;
  background: #fff;
  border: 1px solid #c5ced8;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}

.quote-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.quote-form input:focus-visible,
.quote-form textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

.quote-form .btn {
  justify-self: start;
  margin-top: 0.25rem;
  border: 0;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: #e7f2ea;
  color: #1c3358;
}

.form-status.is-error {
  background: #f8e8e4;
}

.quote-fallback {
  margin: 0.9rem 0 0;
  color: #3c4654;
  font-size: 0.98rem;
}

.quote-fallback a {
  color: var(--navy-deep);
  font-weight: 600;
}

.quote-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.4rem;
}

.quote-form legend {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.quote-form .choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.quote-form .choice input {
  width: 1rem;
  height: 1rem;
}

.site-footer {
  background: var(--fleet);
  color: #f4f7fa;
  padding: 0.35rem var(--header) 1.2rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
}

.footer-nav a,
.site-footer a {
  color: #e0c27a;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.site-footer a.btn {
  color: var(--white);
}

.site-footer a.btn:hover {
  text-decoration: none;
}

.site-footer p {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  z-index: 40;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: #fff;
  color: #1c2430;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  padding: 0.9rem 1rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.cookie-banner a {
  color: var(--navy-deep);
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.cookie-actions .btn {
  width: auto;
}

@media (min-width: 861px) {
  .fleet-item.is-coach {
    flex: 1.7 1 0;
  }

  .fleet-item.is-coach img {
    width: 100%;
    height: auto;
    max-height: clamp(100px, 13vw, 168px);
    object-position: center bottom;
    transform: translateY(-20px);
  }
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}
