/* Case study: Rollbe — a direct port of the original Rollbe case study
   site (Wix Studio). This intentionally does NOT follow the portfolio's
   own design system (Optician Sans, red/black accents). Colors and type
   match the original brand: cream/orange/teal with clean grotesk type. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/gamekit/inter-body.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Optician Sans";
  src: url("assets/fonts/Optician-Sans.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --rollbe-blue: #eef9ff;
  --rollbe-cream: #ece0b5;
  --rollbe-red: #fb5336;
  --rollbe-teal: #6cb6be;
  --rollbe-dark: #282e33;
}

body.rollbe-body {
  background: #ffffff;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.rollbe-page * {
  box-sizing: border-box;
}

/* --- back link ---------------------------------------------------------- */

.rollbe-backbar {
  padding: 28px 40px;
}

.rollbe-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111111;
  text-decoration: none;
  font-size: 17px;
}

.rollbe-back:hover {
  text-decoration: underline;
}

.rollbe-back-arrow {
  width: 20px;
  height: 20px;
}

/* --- shared container ---------------------------------------------------- */

.rollbe-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.rollbe-h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.3;
  color: var(--rollbe-dark);
  margin: 0 0 30px;
}

.rollbe-h2-light {
  color: #ffffff;
}

.rollbe-h2-center {
  text-align: center;
}

.rollbe-p {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--rollbe-dark);
  margin: 0 0 22px;
}

.rollbe-p:last-child {
  margin-bottom: 0;
}

.rollbe-p-half {
  max-width: 60%;
}

/* --- hero ----------------------------------------------------------------- */

.rollbe-hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

.rollbe-tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.rollbe-tag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: var(--rollbe-red);
  color: #111111;
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.rollbe-tag-outline {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: transparent;
  border: 1.5px solid #111111;
  color: #111111;
  font-family: "Optician Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.rollbe-tagline {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--rollbe-dark);
  margin: 0 0 24px;
}

.rollbe-hero-logo-block {
  background: #111111;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
}

.rollbe-hero-logo-block img {
  display: block;
  width: 100%;
  height: auto;
}

.rollbe-hero-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.rollbe-lede {
  font-family: "Inter", sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--rollbe-dark);
  max-width: 640px;
  margin: 0;
}

.rollbe-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rollbe-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rollbe-meta-label {
  font-family: "Optician Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rollbe-red);
}

.rollbe-meta-value {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--rollbe-dark);
}

/* --- two-column text grid -------------------------------------------------- */

.rollbe-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  padding-top: 48px;
  padding-bottom: 48px;
}

/* --- problem/solution split cards ------------------------------------------- */

.rollbe-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.rollbe-split-block {
  padding: 28px;
  background: #f5f5f5;
  border-radius: 16px;
  box-sizing: border-box;
}

.rollbe-split-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
}

.rollbe-split-block h3 {
  font-family: "Optician Sans", sans-serif;
  font-weight: normal;
  font-size: 20px;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  color: var(--rollbe-red);
}

.rollbe-split-block p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--rollbe-dark);
  margin: 0;
}

/* --- generic image section -------------------------------------------------- */

.rollbe-imgsection {
  padding: 64px 0;
}

.rollbe-imgsection-flush-bottom {
  padding-bottom: 0;
}

.rollbe-imgsection-flush-top {
  padding-top: 0;
}

.rollbe-imgsection-pad52-bottom {
  padding-bottom: 52px;
}

.rollbe-imgsection-pad52-top {
  padding-top: 52px;
}

.rollbe-imgsection-dark {
  background: var(--rollbe-dark);
}

.rollbe-imgsection .rollbe-container {
  margin-bottom: 24px;
}

.rollbe-full-bleed img {
  display: block;
  width: 100%;
  height: auto;
}

.rollbe-tall-frame {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.rollbe-scroll-roller {
  position: absolute;
  top: 12.9%;
  left: 45.6%;
  width: 28%;
  aspect-ratio: 792 / 763;
  transform: translate(-50%, -50%);
  will-change: top;
}

.rollbe-scroll-roller-disc,
.rollbe-scroll-roller-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.rollbe-scroll-roller-disc {
  transform-origin: 51.4% 49.5%;
  will-change: transform;
}

.rollbe-scroll-roller-handle {
  transform: translate(9.7%, -10.9%);
  pointer-events: none;
}

.rollbe-flush-stack {
  display: flex;
  flex-direction: column;
}

.rollbe-flush-stack img {
  display: block;
  width: 100%;
  height: auto;
}

.rollbe-flush-row {
  display: flex;
}

.rollbe-flush-row img {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  width: 100%;
  height: auto;
}

.rollbe-imgsection-row {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.rollbe-imgsection-row img {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* --- mobile ---------------------------------------------------------------- */

@media (max-width: 800px) {
  .rollbe-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .rollbe-tagline {
    font-size: 26px;
  }

  .rollbe-hero-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rollbe-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rollbe-grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .rollbe-imgsection-row {
    flex-direction: column;
  }

  .rollbe-p-half {
    max-width: 100%;
  }

  .rollbe-backbar,
  .rollbe-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.rollbe-back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 60px auto 60px;
  background: transparent;
  border: 1.5px solid #111111;
  color: #111111;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.rollbe-back-to-top:hover {
  background: #111111;
  color: #ffffff;
}

.rollbe-back-to-top-icon {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
  transition: filter 0.2s ease;
}

.rollbe-back-to-top:hover .rollbe-back-to-top-icon {
  filter: invert(1);
}
