/* before / after slider
   load after lime.css */

.ba {
  padding-block: 75px;
  border-top: 1px solid var(--border);
}

.ba-head,
.ba-frame,
.ba-hint {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ba-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px 40px;
  margin-bottom: 32px;
}

.ba-head h2 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.ba-head h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  color: var(--accent);
}

.ba-head p:not(.eyebrow) {
  max-width: 360px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--secondary);
}


/* preview for nettsiden */

.ba-frame {
  --pos: 50%; /* Slideren */
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(22, 26, 20, .12);
  user-select: none;
}

/* top bar with the dots and url */
.ba-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: #f4f6f0;
  border-bottom: 1px solid #e1e5da;
}

.ba-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d3d9c9;
}

.ba-bar span {
  margin-left: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  color: #6b7466;
}

/* sånn at den scaler med browser sin størrelse */
.ba-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  overflow: hidden;
}

.ba-site {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* the after site is cut off on the left side up to the slider */
.ba-after {
  clip-path: inset(0 0 0 var(--pos));
  will-change: clip-path;
}


/*slider line + round button  */

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(22, 26, 20, .15);
  pointer-events: none;
  z-index: 3;
  will-change: left;
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.ba-knob svg {
  width: 22px;
  height: 22px;
}



/* the dragging */
.ba-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

/* show focus on the button when using keyboard */
.ba-frame:has(.ba-range:focus-visible) .ba-knob {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

.ba-hint {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 12px;
  color: var(--secondary);
  text-align: center;
}


/*  the before "example" */

.ba-before {
  background: #ffffff;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  color: #ff0000;
  text-align: center;
}

.bad-top {
  display: flex;
  justify-content: center;
  gap: 1.2cqw;
  padding: 1cqw;
  background: #0000ff;
}

.bad-top a {
  font: 1.3cqw "Times New Roman", serif;
  color: #ffff00;
  text-decoration: underline;
}

.bad-h {
  margin: 2.2cqw 0 .6cqw;
  font-size: 4.4cqw;
  font-weight: 700;
  text-shadow: .3cqw .3cqw 0 #00ff00;
}

.bad-ticker {
  margin: 0 0 1.5cqw;
  padding: .5cqw;
  background: #ff00ff;
  color: #00ffff;
  font: 700 1.6cqw "Arial Black", Impact, sans-serif;
}

.bad-body {
  display: flex;
  justify-content: center;
  gap: 2cqw;
  padding: 0 4cqw;
}

.bad-img {
  width: 22cqw;
  height: 15cqw;
  display: grid;
  place-items: center;
  background: #c0c0c0;
  border: .4cqw outset #888;
  font: 1.2cqw "Times New Roman", serif;
  color: #333;
}

.bad-text {
  width: 30cqw;
  font: 1.25cqw/1.3 "Times New Roman", serif;
  color: #000;
  text-align: left;
}

.bad-text b {
  color: #ff0000;
}

.bad-btn {
  display: inline-block;
  margin-top: 1cqw;
  padding: .6cqw 1.2cqw;
  background: linear-gradient(#ff6a00, #ff0000);
  border: .3cqw solid #000;
  color: #fff;
  font: 700 1.3cqw Arial, sans-serif;
}

.bad-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5cqw;
  font: 1cqw "Courier New", monospace;
  color: #000;
}

.bad-counter {
  display: inline-block;
  padding: .2cqw .6cqw;
  background: #000;
  color: #00ff00;
}


/* the after "example"  */

.ba-after {
  background: #f7f1e8;
  color: #2a1f17;
  font-family: var(--sans);
}

.good-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2cqw 4cqw;
}

.good-logo {
  font-size: 1.9cqw;
  font-weight: 600;
  letter-spacing: -.05cqw;
}

.good-logo em {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: #b5562b;
}

.good-links {
  display: flex;
  gap: 2.2cqw;
  font-size: 1.15cqw;
  color: #6b5a4c;
}

.good-pill {
  padding: .8cqw 1.5cqw;
  border-radius: 99cqw;
  background: #2a1f17;
  color: #f7f1e8;
  font-size: 1.1cqw;
}

.good-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3cqw;
  align-items: center;
  padding: 1.5cqw 4cqw 0;
}

.good-eyebrow {
  margin: 0 0 1cqw;
  font-size: .95cqw;
  letter-spacing: .2cqw;
  color: #b5562b;
}

.good-h {
  margin: 0;
  font-size: 4.6cqw;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.25cqw;
}

.good-h em {
  font-family: "Instrument Serif", Georgia, serif;
  color: #b5562b;
}

.good-p {
  margin: 1.4cqw 0 0;
  max-width: 34cqw;
  font-size: 1.25cqw;
  line-height: 1.6;
  color: #6b5a4c;
}

.good-ctas {
  display: flex;
  gap: 1cqw;
  margin-top: 2cqw;
}

.good-ctas span {
  padding: 1cqw 1.8cqw;
  border-radius: 99cqw;
  font-size: 1.15cqw;
  font-weight: 500;
}

.good-ctas span:first-child {
  background: #b5562b;
  color: #fff;
}

.good-ctas span:last-child {
  border: .1cqw solid #d9cbb8;
}

/* bread "picture" made with css shapes */
.good-art {
  position: relative;
  height: 22cqw;
  border-radius: 1.6cqw;
  background: #e9d8c2;
  overflow: hidden;
}

.good-art::before,
.good-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.good-art::before {
  width: 24cqw;
  height: 13cqw;
  left: 6cqw;
  top: 5cqw;
  background: #c98a4b;
  box-shadow: inset 0 -1.5cqw 0 #a96c33;
  transform: rotate(-8deg);
}

.good-art::after {
  width: 13cqw;
  height: 13cqw;
  right: -3cqw;
  bottom: -4cqw;
  background: #d9b48a;
}

.good-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5cqw;
  padding: 2.4cqw 4cqw 0;
}

.good-card {
  padding: 1.4cqw;
  border-radius: 1.2cqw;
  background: #fff;
}

.good-card b {
  display: block;
  font-size: 1.25cqw;
  font-weight: 600;
}

.good-card span {
  display: block;
  margin-top: .4cqw;
  font-size: 1cqw;
  line-height: 1.5;
  color: #6b5a4c;
}

/* dark bar at the bottom with opening hours */
.good-foot {
  position: absolute;
  left: 4cqw;
  right: 4cqw;
  bottom: 2.4cqw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3cqw 1.8cqw;
  border-radius: 1.2cqw;
  background: #2a1f17;
  color: #f7f1e8;
  font-size: 1.1cqw;
}

.good-foot b {
  font-weight: 500;
  color: #f0b48c;
}


/* for mobil */
@media (max-width: 650px) {
  .ba {
    padding-block: 50px;
  }

  .ba-stage {
    aspect-ratio: 4 / 3;
  }
}
