/* ========================================================================
   Verden i Bergen - landing page layer.
   Builds on styles.css primitives (.site, .sec, .hero, .btn ...) and adds:
   per-section theme classes (one "dusk" palette in use), a scroll-in sticky
   header, and full-bleed page chrome. Ported from vib/landing.css.
   ===================================================================== */

/* the colours of the top bar, phone menu and the NO|EN / menu buttons. These are
   the dark originals; html[data-chrome="light"] swaps them (palettes.css). The
   hero sits on the photo, so it always keeps the dark set. */
:root,.hero{
  --chrome-bg:rgba(18,13,7,.9); --chrome-solid:#1c1610; --chrome-line:rgba(244,236,224,.12);
  --chrome-text:#f4ece0; --chrome-link:#e7dccb;
  --ctl-bd:rgba(244,236,224,.55); --ctl-bg:rgba(18,13,7,.5); --ctl-text:#f4ece0;
  --ctl-hover:rgba(244,236,224,.14); --ctl-close-bd:rgba(244,236,224,.35);
}
html,body{margin:0; background:var(--page-bg,#28201a);}
.stage{min-height:100vh;}
/* A page drawn from blocks (a subpage, a module's page, an event's page) fills the window,
   and its last band grows down to the footer: on a short page the footer sits at the bottom
   of the window, never with empty space under it. Long pages are unchanged. The fixed bar
   pushes pages without the hero down by its height (theme.php), so those fill the window
   minus the bar; the front page (hero) fills all of it. */
.stage:has(> .page-site){display:flex; flex-direction:column;
  min-height:calc(100vh - var(--bar-h, 0px)); min-height:calc(100svh - var(--bar-h, 0px));}
.stage:has(> .page-site .hero){min-height:100vh; min-height:100svh;}
.stage > .page-site{flex:1 0 auto; display:flex; flex-direction:column;}
.stage > .page-site > *{flex-shrink:0;}
/* <main> holds the bands, the footer comes after it: main grows, and its last band down to the footer */
.stage > .page-site > .page-main{flex-grow:1; display:flex; flex-direction:column;}
.stage > .page-site > .page-main > *{flex-shrink:0;}
.stage > .page-site > .page-main > section:last-of-type{flex-grow:1;}
/* A form band (Selskap, Gavekort): one centred column as wide as the form, so the form doesn't
   hug the left edge of a wide screen (it was a centred column in the booking shell too). */
.wrap-in.wrap-form{max-width:calc(660px + 2 * var(--pad-x));}

/* ---- palette classes usable on ANY element (sections, footer) --------- */
/* mirror styles.css .site.t-* so a single <section> can carry its own theme */
.t-dark{
  --surface:#14100a; --surface-2:#1c1610; --surface-3:#241d14; --surface-foot:#1c1610;
  --text:#f4ece0; --text-soft:#cdbfac; --text-faint:#9a8b76;
  --hairline:rgba(244,236,224,.15); --card:rgba(255,255,255,.045); --card-bd:rgba(255,255,255,.09);
}
.t-light{
  --surface:#f4ece0; --surface-2:#ece2d2; --surface-3:#fbf6ec;
  --text:#1a130b; --text-soft:#5a4a38; --text-faint:#8a7860;
  --hairline:rgba(26,19,11,.13); --card:#fff; --card-bd:rgba(26,19,11,.1);
}
/* warm mid-tone dusk - softer & browner than the pure-night dark */
.t-dusk{
  --surface:#28201a; --surface-2:#312619; --surface-3:#3a2d1e; --surface-foot:#1c1610;
  --text:#f2e7d6; --text-soft:#ccbca3; --text-faint:#a7967e; /* 4.6:1 on surface-3 (#9b8a71 was 4.0) */
  --hairline:rgba(242,231,214,.14); --card:rgba(255,255,255,.05); --card-bd:rgba(255,255,255,.1);
}

/* ---- the page site ---------------------------------------------------- */
.page-site{width:100%; margin:0; overflow:hidden; --maxw:1180px;}
/* every band paints its own surface so dark/light sections can neighbour cleanly */
.page-site .sec{background:var(--surface);}
.page-site .sec-alt{background:var(--surface-2);}
/* forside: the shades alternate by position among the sections actually on
   the page, so the pattern holds when a section is hidden (an expired
   Fremhevet, an empty menu teaser) or a new one is added */
.page-main > section.sec:nth-of-type(odd){background:var(--surface);}
.page-main > section.sec:nth-of-type(even){background:var(--surface-2);}

/* dark/dusk/ember sections need the lighter accent for kickers & links */
.t-dark .kicker,.t-dusk .kicker,.t-ember .kicker{color:var(--accent-soft);}
.t-dark .morelink,.t-dusk .morelink,.t-ember .morelink{color:var(--accent-soft);}

/* ---- scroll-in sticky header ----------------------------------------- */
.topbar{position:fixed; top:0; left:0; right:0; z-index:60;
  transform:translateY(-102%); transition:transform .34s cubic-bezier(.4,0,.2,1);
  background:var(--chrome-bg); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  border-bottom:1px solid var(--chrome-line); color:var(--chrome-text);}
.topbar.is-solid{transform:translateY(0);}
.topbar-in{max-width:1180px; margin:0 auto; padding:12px clamp(20px,5vw,56px);
  display:flex; align-items:center; justify-content:space-between; gap:24px;}
.topbar .brand{color:var(--chrome-text);}
.topbar nav{display:flex; align-items:center; gap:26px;}
.topbar nav a{font-size:13.5px; font-weight:500; letter-spacing:.02em; color:var(--chrome-link); padding:4px 0; position:relative;}
.topbar nav a::after{content:""; position:absolute; left:0; right:100%; bottom:0; height:1.5px; background:var(--accent); transition:right .25s ease;}
.topbar nav a:hover{color:var(--chrome-text);} .topbar nav a:hover::after{right:0;}
.topbar .btn{padding:10px 18px;}

/* ---- hero: keep Nattlys cinematic, make it page-scale ---------------- */
.page-site.dir-a .hero{min-height:100vh; min-height:100svh;} /* fills the first screen; svh = minus phone browser bars */
.page-site.dir-a .hero .snav{padding-top:26px; padding-bottom:26px; max-width:1180px; margin:0 auto; width:100%;}
.page-site.dir-a .hero-body{padding-bottom:64px; max-width:1180px; margin-left:auto; margin-right:auto; width:100%;}
/* the hero is dark in every colour profile: this shows while the photo loads */
.page-site.dir-a .hero{background-color:#28201a;}
/* the hero nav is redundant once the sticky bar is up - fade it as you scroll */
.page-site .hero .snav{transition:opacity .3s ease;}


/* ---- logo (assets/vib/logo.svg, gold on the dark palette) ---------- */
.brand--logo img{display:block; width:auto; height:40px;}
.page-site .hero .brand--logo img{height:64px;}
.site-footer .brand--logo img{height:44px;}
@media(max-width:880px){ .page-site .hero .brand--logo img{height:40px;} }

/* ---- program: empty state (no upcoming events) ----------------------- */
.program-empty{border-top:1px solid var(--hairline); border-bottom:1px solid var(--hairline); padding:34px 0;}
.program-empty p{font-size:17px; line-height:1.6; color:var(--text-soft); margin:0 0 22px; max-width:52ch;}
.program-empty-links{display:flex; align-items:center; gap:28px; flex-wrap:wrap;}

/* ---- language switch (NO | EN), only rendered on multilingual sites ---
   A framed pill with a globe so it reads as "language" at a glance; the
   current language is filled amber. */
.topbar .navend,.snav .navend{display:flex; align-items:center; gap:18px;}
.vib-lang,.snav nav.vib-lang,.topbar nav.vib-lang{display:inline-flex; align-items:center; gap:2px;
  padding:3px 3px 3px 10px; border:1.5px solid var(--ctl-bd); border-radius:999px;
  background:var(--ctl-bg); color:var(--ctl-text); font-family:var(--font-body,'Hanken Grotesk',sans-serif);
  font-size:13.5px; font-weight:700; letter-spacing:.06em; line-height:1;}
.vib-lang .lang-ico{flex:none; margin-right:5px; opacity:.9;}
/* beat the hero/topbar nav link styles (.snav nav a / .topbar nav a) */
.vib-lang a,.snav nav.vib-lang a,.topbar nav.vib-lang a{padding:7px 11px; border-radius:999px; color:inherit; opacity:1; font-size:13.5px; letter-spacing:.06em;}
.vib-lang a::after,.snav nav.vib-lang a::after,.topbar nav.vib-lang a::after{display:none;}
.vib-lang a:hover{background:var(--ctl-hover);}
.vib-lang a.is-on,.snav nav.vib-lang a.is-on,.topbar nav.vib-lang a.is-on{background:var(--accent,#e8a544); color:var(--on-accent,#231507);}
/* narrow screens: the hero already has Reserver bord under the title, so the
   top one goes; the sticky bar keeps a smaller one next to the switch */
@media(max-width:560px){
  .page-site .hero .snav .navend .btn{display:none;}
  .topbar .navend{gap:10px;}
  .topbar .navend .btn{padding:8px 13px; font-size:12.5px;}
  .topbar .brand--logo img{height:32px;}
}

/* ---- forside booking box: real selects styled like the original fields ---- */
.res-form .res-field{display:block; cursor:pointer; position:relative;}
.res-form .res-field:focus-within{border-color:var(--accent);}
.res-lbl{display:block; font-family:var(--font-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--text-faint); margin-bottom:5px;}
.res-ctl{display:flex; align-items:center; gap:8px;}
.res-ctl select{flex:1; min-width:0; appearance:none; -webkit-appearance:none; background:transparent; border:0;
  color:var(--text); font:inherit; font-size:15px; padding:0; margin:0; cursor:pointer; outline:none;}
.res-ctl select option{background:var(--surface); color:var(--text);}
.res-ctl select:disabled{color:var(--text-faint); cursor:default;}
.res-ctl .chev{flex:none; color:var(--text-faint); pointer-events:none;}
.res-none{font-size:13.5px; color:var(--accent-soft); margin:0 0 12px;}
.res-form .btn:disabled{opacity:.45; cursor:not-allowed;}
.res-closed{font-size:15px; color:var(--text-soft); margin:0;}

/* hero tag line on phones: smaller and tighter so it fits on one line */
@media(max-width:560px){
  .page-site .hero .taglist{font-size:10px; letter-spacing:.1em; gap:7px;}
  .page-site .hero .taglist span{gap:7px;}
  .page-site .hero .taglist span::after{width:3px; height:3px;}
  /* the two hero buttons wrap instead of running off narrow screens */
  .page-site .hero .actions{flex-wrap:wrap;}
}

/* ---- "Fremhevet" campaign image ---- */
.feature-img{display:block; border-radius:14px; overflow:hidden; border:1px solid var(--hairline); line-height:0;}
.feature-img img{display:block; width:100%; height:auto;}
.feature-img:hover{border-color:var(--accent);}
.feature-cta{margin:20px 0 0; text-align:center;}
/* content (+ special menu) beside a photo */
.feature-grid{display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:56px; align-items:center;}
.feature-grid--solo{grid-template-columns:minmax(0,760px);}
.feature-text{font-size:16.5px; line-height:1.7; color:var(--text-soft); margin:16px 0 0; max-width:52ch;}
.feature-menu{display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:14px; margin-top:28px;}
.fm-item{border:1px solid var(--hairline); border-radius:12px; padding:18px 20px; background:var(--surface-3);}
.fm-name{font-family:var(--font-display); font-weight:600; font-size:19px; line-height:1.25; margin:0;}
.fm-price{font-size:28px; font-weight:700; color:var(--accent-soft); margin:10px 0 0; font-variant-numeric:tabular-nums;}
.fm-desc{font-size:14px; color:var(--text-soft); margin:4px 0 0;}
.feature-cta--left{text-align:left; margin-top:28px;}
.feature-photo{border-radius:14px; overflow:hidden; border:1px solid var(--hairline); line-height:0;}
.feature-photo img{display:block; width:100%; height:auto; max-height:640px; object-fit:cover;}
@media(max-width:880px){
  .feature-grid{grid-template-columns:1fr; gap:28px;}
  .feature-photo{order:-1;}
  .feature-photo img{max-height:340px;}
}

/* visually hidden, still read by screen readers and search engines */
.vh{position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0;}

/* ---- links (venue palette) ------------------------------------------- */
a{color:inherit;}
a.tint{color:var(--accent-deep);} a.tint:hover{color:var(--accent);}

/* ---- footer sits flush, a touch more air on the real page ------------ */
.page-site .site-footer{padding-top:40px; padding-bottom:28px;}
/* the footer has its own, darker shade so it never matches the last section,
   whichever shade the alternating pattern gives that one */
.page-site .site-footer{background:var(--surface-foot,#1c1610);}

/* ---- responsive ------------------------------------------------------- */
@media(max-width:880px){
  .topbar nav{display:none;}
}

/* ---- phone menu (button in the hero bar + sticky bar, panel #vib-mnav) ----
   Up to 880px the nav links hide, so a menu button takes their place. On
   phones the language switch moves into the menu too, so "Reserver bord"
   always fits next to the logo. */
.nav-toggle{display:none; flex:none; width:42px; height:42px; padding:0; border:1.5px solid var(--ctl-bd);
  border-radius:999px; background:var(--ctl-bg); color:var(--ctl-text); cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center; gap:4px;}
.nav-toggle span{display:block; width:16px; height:1.5px; background:currentColor; border-radius:2px;}
.nav-toggle:hover{border-color:var(--accent);}
.mnav{position:fixed; inset:0; z-index:80; background:var(--chrome-solid); color:var(--chrome-text); overflow-y:auto;
  display:flex; flex-direction:column; padding:14px 24px 32px;}
.mnav[hidden]{display:none;}
.mnav-top{display:flex; align-items:center; justify-content:space-between; gap:16px;}
.mnav-top .brand--logo img{height:34px;}
.mnav-close{width:42px; height:42px; display:grid; place-items:center; padding:0; border:1.5px solid var(--ctl-close-bd);
  border-radius:999px; background:none; color:inherit; cursor:pointer;}
.mnav-links{display:flex; flex-direction:column; margin-top:40px; border-top:1px solid var(--chrome-line);}
.mnav-links a{font-family:var(--font-display); font-size:28px; line-height:1.2; padding:16px 0;
  border-bottom:1px solid var(--chrome-line); color:var(--chrome-text);}
.mnav-links a:hover{color:var(--accent);}
.mnav-end{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:32px;}
/* Social buttons at the foot of the phone menu, in the menu's own colours (like the close button). */
.mnav-social{display:flex; flex-wrap:wrap; gap:10px; list-style:none; margin:auto 0 0; padding:28px 0 0;}
.mnav .social-btn{width:42px; height:42px; color:var(--chrome-text); border:1.5px solid var(--ctl-close-bd);}
.mnav .social-btn:hover,.mnav .social-btn:focus-visible{color:var(--chrome-text); border-color:var(--accent); background:var(--ctl-hover);}
html.mnav-open{overflow:hidden;}
/* More links than fit next to the logo (pages added to the menu in Sider):
   the menu button takes over at this width too (layout.php sets .nav-tight). */
.topbar nav a,.snav nav a{white-space:nowrap;}
.topbar-in.nav-tight > nav,.snav.nav-tight > nav{display:none;}
.topbar-in.nav-tight .nav-toggle,.snav.nav-tight .nav-toggle{display:inline-flex;}
.topbar nav a[aria-current="page"],.snav nav a[aria-current="page"]{opacity:1;}
.topbar nav a[aria-current="page"]::after,.snav nav a[aria-current="page"]::after{right:0;}
.mnav-links a[aria-current="page"]{color:var(--accent);}
@media(max-width:880px){
  .nav-toggle{display:inline-flex;}
  .topbar .navend,.snav .navend{gap:10px;}
}
@media(max-width:600px){
  /* the bar and the phone menu start at the page's own 22px margin (styles.css) */
  .topbar-in{padding-left:22px; padding-right:22px;}
  .mnav{padding-left:22px; padding-right:22px;}
}
@media(max-width:560px){
  .topbar .navend .vib-lang,.snav .navend .vib-lang{display:none;}
  .topbar-in{gap:12px;}
  .topbar .nav-toggle{width:38px; height:38px;}
}

.foot-contact{margin-top:8px;}

/* ---- footer on tablets and phones: no long column ------------------------- */
@media(max-width:880px){
  .page-site .site-footer{padding-top:40px; padding-bottom:30px;}
  .site-footer .brand--logo img{height:40px;}
  .foot-grid{grid-template-columns:1fr 1fr; gap:24px 28px;}
  /* logo and social buttons on one row, the line about the place under them */
  .foot-brand{grid-column:1 / -1; display:grid; grid-template-columns:auto 1fr; grid-template-areas:"logo social" "tag tag"; align-items:center; column-gap:14px;}
  .foot-brand .brand{grid-area:logo;}
  .foot-brand .foot-social{grid-area:social; justify-self:end; margin:0; gap:8px;}
  .foot-brand p{grid-area:tag; margin-top:10px;}
  .foot-col .foot-h{margin-bottom:8px;}
  .foot-hours{margin:0;}
  .foot-contact{margin-top:8px;}
  .foot-base{margin-top:22px; padding-top:14px;}
}
/* ---- phones: everything stays, the lines just sit closer -------------------- */
@media(max-width:560px){
  .page-site .site-footer{padding-top:24px; padding-bottom:18px;}
  .site-footer .brand--logo img{height:30px;}
  /* the menu's column only as wide as its links, so the address stays on one line */
  .foot-grid{grid-template-columns:auto 1fr; gap:16px 36px;}
  .foot-brand .social-btn{width:34px; height:34px;}
  .foot-brand .social-btn svg{width:15px; height:15px;}
  .foot-brand p{margin-top:8px; font-size:13px; line-height:1.45;}
  .foot-col .foot-h{margin-bottom:4px;}
  .foot-col a{padding:0; font-size:13px; line-height:1.6;}
  .foot-hours{font-size:12.5px; line-height:1.6;}
  .foot-contact{margin-top:2px;}
  .foot-base{margin-top:14px; padding-top:10px; gap:4px 12px;}
}

/* section links (#om, #program...) land with the section's top edge just
   under the fixed bar, not hidden behind it (--bar-h is set by layout.php) */
.page-site .sec[id]{scroll-margin-top:var(--bar-h, 64px);}

/* ---- "Seksjon" block (engine/section_block.php, vib_section_block) ---- */
/* a chosen shade instead of the alternation (same weight as the nth-of-type rule, later in the file) */
.page-main > section.sec.sb-bg-raised{background:var(--surface-3);}
.page-main > section.sec.sb-bg-deep{background:var(--surface-foot,var(--surface));}
.sb .sb-body{max-width:720px;}
.sb .sb-title{margin-bottom:18px;}
.sb .sb-text p,.sb .sb-a p{font-size:16px; line-height:1.75; color:var(--text-soft); margin:0 0 1em;}
.sb .sb-text p:last-child,.sb .sb-a p:last-child,.sb .sb-card-text p:last-child{margin-bottom:0;}
.sb .sb-text a,.sb .sb-card-text a,.sb .sb-a a{color:inherit; text-decoration:underline; text-decoration-color:var(--accent); text-underline-offset:2px;}
.sb .sb-buttons{display:flex; flex-wrap:wrap; gap:12px; margin-top:28px;}
.sb mark{background:color-mix(in oklab, var(--accent) 24%, transparent); color:inherit; padding:0 .12em; border-radius:3px;}
/* button band: centred */
.sb--cta .sb-body{margin:0 auto; text-align:center;}
.sb--cta .sb-buttons{justify-content:center;}
/* "Midtstilt": the section's small heading, heading, text and buttons centred (Knapperad always is).
   Cards centre their own text too; questions and answers stay left-aligned in a centred column. */
.sb--center .sb-body{margin-left:auto; margin-right:auto; text-align:center;}
.sb--center .sb-buttons{justify-content:center;}
.sb--center .sb-card{text-align:center;}
.sb--center .sb-cols-1,.sb--center .sb-split--solo{justify-content:center;}
.sb--center .sb-faq{text-align:left;}
/* image + text (like Fremhevet) */
.sb-split{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:56px; align-items:center;}
.sb-split--right .sb-media{order:2;}
.sb-split--solo{grid-template-columns:minmax(0,760px);}
.sb-split .sb-body{max-width:none;}
.sb-media{margin:0;}
.sb-media img{display:block; width:100%; height:auto; max-height:640px; object-fit:cover; border-radius:14px; border:1px solid var(--hairline);}
.sb-caption{font-size:13px; line-height:1.5; color:var(--text-faint); margin-top:10px;}
/* columns / cards */
.sb--cards .sb-body,.sb--gallery .sb-body{margin-bottom:30px;}
.sb-cards{display:grid; gap:16px;}
.sb-cols-1{grid-template-columns:minmax(0,720px);}
.sb-cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.sb-cols-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.sb-cols-4{grid-template-columns:repeat(4,minmax(0,1fr));}
.sb-card{display:flex; flex-direction:column; background:var(--card); border:1px solid var(--card-bd); border-radius:14px; overflow:hidden;}
.sb-card-img{line-height:0;}
.sb-card-img img{display:block; width:100%; aspect-ratio:4/3; object-fit:cover;}
.sb-card-title{font-family:var(--font-display); font-weight:600; font-size:21px; line-height:1.2; color:var(--text); margin:20px 22px 8px;}
.sb-card-title a{color:inherit;}
.sb-card-title a:hover{text-decoration:underline; text-decoration-color:var(--accent);}
.sb-card-text{margin:0 22px 22px;}
.sb-card > .sb-card-text:first-child{margin-top:20px;}
.sb-card-text p{font-size:15px; line-height:1.65; color:var(--text-soft); margin:0 0 .8em;}
/* gallery */
.sb-gallery{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px;}
.sb-photo{margin:0;}
.sb-photo img{display:block; width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px;}
.sb-photo figcaption{font-size:13px; color:var(--text-faint); margin-top:8px;}
/* questions and answers */
.sb-faq{margin-top:14px; border-top:1px solid var(--hairline);}
.sb-q{border-bottom:1px solid var(--hairline);}
.sb-q summary{position:relative; cursor:pointer; list-style:none; padding:18px 44px 18px 0; font-weight:600; font-size:17px; line-height:1.4; color:var(--text);}
.sb-q summary::-webkit-details-marker{display:none;}
.sb-q summary::after{content:"+"; position:absolute; right:6px; top:50%; transform:translateY(-50%); font-size:22px; font-weight:400; color:var(--accent-deep);}
.t-dark .sb-q summary::after,.t-dusk .sb-q summary::after,.t-ember .sb-q summary::after{color:var(--accent-soft);}
.sb-q[open] summary::after{content:"\2212";}
.sb-a{padding:0 44px 18px 0;}
@media(max-width:960px){
  .sb-cols-3,.sb-cols-4{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:880px){
  .sb-split{grid-template-columns:1fr; gap:28px;}
  .sb-split--right .sb-media{order:0;}
  .sb-media img{max-height:340px;}
}
@media(max-width:560px){
  .sb-cards{grid-template-columns:1fr;}
  .sb-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}
}
