/* =========================================================
   Bergen RIB Safari - design system
   Palette: charcoal #383636 · sky blue #60b1e0 · warm greys
   Type: Manrope (300–800)
   ========================================================= */

:root {
  --charcoal: #383636;
  --charcoal-2: #40424d;
  --ink: #1e1e1e;
  --accent: #2f6d84;
  --accent-dark: #1e4d5f;
  --accent-tint: #eef7fd;
  --muted: #4a4b53;
  --grey-500: #6a7282;
  --grey-300: #9da2b3;
  --grey-200: #d3d6e0;
  --line: #e5e7eb;
  --bg: #f7f7f7;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 8px 30px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 50px rgba(16, 24, 40, .14);

  --maxw: 1200px;
  --gap: clamp(1rem, 2.5vw, 2rem);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--charcoal); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 1rem; color: var(--muted); }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-light { background: var(--bg); }
.bg-tint { background: var(--accent-tint); }
.bg-dark { background: var(--charcoal); color: #e9e9ea; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: #c6c7cb; }

.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .8rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 62ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: .95rem 1.6rem; border-radius: var(--pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #06283a; }
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 8px 22px rgba(96,177,224,.35); }
.btn--dark { background: var(--charcoal); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--grey-200); }
.btn--ghost:hover { border-color: var(--charcoal); }
.btn--light { background: #fff; color: var(--charcoal); }
.btn--light:hover { background: var(--accent-tint); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--charcoal);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.12rem; color: #fff; letter-spacing: -.01em; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); display: grid; place-items: center; color: #06283a; font-size: 1.1rem; }
.brand small { display: block; font-weight: 600; font-size: .62rem; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: #d8d9dd; font-weight: 600; font-size: .96rem; transition: color .15s; }
.nav__links a:hover, .nav__links a.active { color: #fff; }
.nav__cta { display: flex; align-items: center; gap: .7rem; }
.nav__toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: .4rem; }
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav { gap: .6rem; }
  .brand { font-size: 1.02rem; min-width: 0; }
  .brand span { min-width: 0; }
  .nav__cta { gap: .5rem; }
  .nav__links.open {
    display: flex; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: flex-start; gap: .2rem;
    background: var(--charcoal); padding: 1rem 1.2rem 1.6rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav__links.open a { padding: .7rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.06); }
}

@media (max-width: 430px) {
  .brand small { display: none; }
  .brand { font-size: .98rem; }
  .brand__mark { width: 30px; height: 30px; }
  .nav__cta .btn--primary { padding: .7rem 1rem; font-size: .9rem; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,20,26,.55) 0%, rgba(15,20,26,.35) 40%, rgba(15,20,26,.72) 100%); }
.hero__inner { position: relative; z-index: 1; padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3rem, 8vw, 6rem); }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero p { color: #eef1f4; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.4rem; }
.hero__trust li { list-style: none; display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; color: #eef1f4; }
.hero__trust svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* ---------- Tour cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--grey-200); }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  background: var(--accent); color: #06283a; font-weight: 700; font-size: .74rem;
  letter-spacing: .04em; text-transform: uppercase; padding: .35rem .7rem; border-radius: var(--pill);
}
.badge--dark { background: var(--charcoal); color: #fff; }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; gap: 1rem; color: var(--grey-500); font-size: .86rem; font-weight: 600; margin-bottom: .5rem; }
.card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.card__meta svg { width: 15px; height: 15px; }
.card h3 { margin-bottom: .35rem; }
.card__desc { flex: 1; font-size: .96rem; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; gap: .8rem; }
.price { font-weight: 800; color: var(--charcoal); font-size: 1.02rem; }
.price small { display: block; font-weight: 600; color: var(--grey-500); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- USP / feature grid ---------- */
.feature { text-align: left; }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-tint); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 1rem; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.feature p { font-size: .95rem; margin: 0; }

/* stat row */
.stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem,5vw,4rem); justify-content: center; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat span { color: #bcbfcc; font-weight: 600; font-size: .92rem; }

/* ---------- Reviews ---------- */
.rating-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.4rem 2.4rem; margin-bottom: 2.6rem; }
.rating-pill { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--pill); padding: .55rem 1.1rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.rating-pill .plat { color: var(--grey-500); font-weight: 700; }
.stars { color: #f5a623; letter-spacing: 1px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.review .stars { font-size: 1rem; margin-bottom: .7rem; }
.review p { color: var(--charcoal); font-size: .98rem; }
.review__by { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; font-size: .86rem; color: var(--grey-500); font-weight: 600; }
.review__by .av { width: 34px; height: 34px; border-radius: var(--pill); background: var(--accent-tint); color: var(--accent-dark); display: grid; place-items: center; font-weight: 800; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.25rem 0; font-size: 1.05rem; font-weight: 700; color: var(--charcoal); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: inherit; }
.faq__q::after { content: "+"; font-size: 1.5rem; font-weight: 500; color: var(--accent-dark); transition: transform .2s; }
.faq__item.open .faq__q::after { content: "−"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding-bottom: 1.25rem; margin: 0; }

/* ---------- Split / media sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split--rev .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.checklist { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; color: var(--muted); font-weight: 500; }
.checklist svg { width: 20px; height: 20px; color: var(--accent-dark); flex: none; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--charcoal), #23222b); color: #fff; border-radius: var(--radius-xl); padding: clamp(2.5rem,6vw,4rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c6c7cb; max-width: 52ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1.4rem; }

/* ---------- Tour detail page ---------- */
.tour-hero { position: relative; color: #fff; }
.tour-hero__media { aspect-ratio: 16/7; min-height: 320px; }
.tour-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.tour-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,20,26,.15), rgba(15,20,26,.75)); }
.tour-hero__inner { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(1.5rem,4vw,2.6rem); }
.tour-hero__inner h1 { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.chip { background: rgba(255,255,255,.16); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 600; font-size: .84rem; padding: .35rem .8rem; border-radius: var(--pill); display: inline-flex; align-items: center; gap: .4rem; }
.chip svg { width: 15px; height: 15px; }

.tour-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
@media (max-width: 900px) { .tour-layout { grid-template-columns: 1fr; } }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { display: flex; gap: .6rem; margin-bottom: .55rem; color: var(--muted); }
.prose ul li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; }

.booking-card { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem; }
.booking-card .price-lg { font-size: 2rem; font-weight: 800; color: var(--charcoal); }
.booking-card .price-lg small { font-size: .9rem; font-weight: 600; color: var(--grey-500); }
.booking-card ul { list-style: none; padding: 0; margin: 1rem 0; }
.booking-card ul li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.booking-card ul li span:first-child { color: var(--grey-500); }
.booking-card ul li span:last-child { font-weight: 700; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.gallery img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.gallery a:first-child { grid-row: span 2; grid-column: span 2; }
.gallery a:first-child img { aspect-ratio: auto; height: 100%; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2,1fr); } .gallery a:first-child { grid-column: span 2; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form label { font-weight: 700; font-size: .9rem; color: var(--charcoal); display: block; margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--charcoal);
  padding: .85rem 1rem; border: 1.5px solid var(--grey-200); border-radius: var(--radius);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(96,177,224,.18); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }

/* info cards row */
.info-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
@media (max-width:800px){ .info-cards{ grid-template-columns:1fr; } }
.info-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.info-card svg { width: 28px; height: 28px; color: var(--accent-dark); margin-bottom: .7rem; }
.info-card h3 { font-size: 1.05rem; }
.info-card p { font-size: .93rem; margin: 0; }

/* map placeholder */
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #c6c7cb; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2rem; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: #c6c7cb; font-weight: 500; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer .muted { font-size: .9rem; line-height: 1.7; }
.socials { display: flex; gap: .7rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: var(--pill); background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .15s; }
.socials a:hover { background: var(--accent); color: #06283a; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; }
.footer-bottom a { margin-left: 1.2rem; }

/* Bokun widget mount + fallback */
.bokun-mount { min-height: 60px; }
.booking-placeholder { display: flex; flex-direction: column; gap: .4rem; background: var(--accent-tint); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.booking-placeholder strong { color: var(--charcoal); }
.booking-placeholder span { font-size: .92rem; color: var(--muted); }
.bokunWidget { min-height: 300px; }

/* utilities */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.reveal{opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease;}
.reveal.in{opacity:1; transform:none;}
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1; transform:none; transition:none;} html{scroll-behavior:auto;} }
