/* IBC Roads — the public website (WO-255, ADR 0092).
   The look is the company site's (ibccube.ai): Poppins, the brand red, a light grey bar,
   a red header that curves into the page, the ibc³ cube on the curve, red headings and
   outlined boxes. Nothing is loaded from another host: the fonts are files of the site. */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }

:root {
  --red: #bb0f0f;
  --red-deep: #8f0b0b;
  --red-wash: #fbf1f1;
  --ink: #2a2727;
  --grey: #5c5757;
  --grey-soft: #7f7777;
  --line: #cfcbcb;
  --bar: #e6e6e8;
  --tint: #f6f5f5;
  --paper: #ffffff;
  --wrap: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--paper); color: var(--red); padding: 10px 16px; border-radius: 24px; font-weight: 500;
}
.skip:focus { top: 10px; }

/* ── The bar ─────────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 20; background: var(--bar); }
.bar-in { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--red); font-weight: 600; font-size: 18px; letter-spacing: 0.01em; white-space: nowrap; }
.brand img { width: 40px; height: auto; }
.nav { display: flex; align-items: center; gap: 26px; flex: 1; }
.nav a { color: var(--red); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--grey-soft); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 26px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 2px solid var(--red); cursor: pointer;
}
.btn--red { background: var(--red); color: #fff; border-color: #3d0606; }
.btn--red:hover { background: var(--red-deep); color: #fff; }
.btn--line { background: transparent; color: var(--red); }
.btn--line:hover { background: var(--red); color: #fff; }
.btn--white { background: #fff; color: var(--red); border-color: #fff; }
.btn--white:hover { background: var(--red-wash); color: var(--red-deep); }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--red); }
.nav .btn { min-height: 38px; padding: 5px 20px; font-size: 14px; }
.nav a.btn--red, .nav a.btn--red:hover { color: #fff; }
.nav a.btn--line:hover { color: #fff; }

/* ── The red header that curves into the page ────────────────────────────── */
.hero { position: relative; background: var(--red); color: #fff; text-align: center; padding: 64px 0 0; overflow: hidden; }
.hero h1 { font-weight: 500; font-size: clamp(30px, 4.4vw, 46px); max-width: 880px; margin: 0 auto; }
.hero-say { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.45; max-width: 900px; margin: 20px auto 0; text-wrap: balance; }
.hero-do { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.hero-curve { position: relative; height: clamp(190px, 22vw, 270px); margin-top: 26px; }
.hero-curve svg { position: absolute; left: 0; bottom: -1px; width: 100%; height: 100%; display: block; }
.hero-cube { position: absolute; left: 50%; bottom: clamp(18px, 3vw, 40px); width: clamp(150px, 15vw, 200px); transform: translateX(-50%); }
.hero--slim { padding-top: 40px; }
.hero--slim .hero-curve { margin-top: 0; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section--first { padding-top: 28px; }
.eyebrow { display: block; color: var(--grey-soft); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; margin-bottom: 10px; }
.section h2 { color: var(--red); font-weight: 600; font-size: clamp(26px, 3.2vw, 36px); text-align: center; }
.lede { max-width: 780px; margin: 16px auto 0; text-align: center; font-size: 18px; }
.lede--red { color: var(--red); font-weight: 500; }

/* The five steps, survey to closure */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1.5px solid var(--line); padding: 26px 18px 22px; text-align: center; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px;
  border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-weight: 600; font-size: 18px;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 48px; right: -19px; width: 18px; height: 2px; background: var(--red);
}
.step h3 { color: var(--red); font-size: 18px; font-weight: 600; }
.step p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; }

/* A picture of the portal beside what it shows */
.features { display: grid; gap: 64px; margin-top: 52px; }
.feature { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); gap: 44px; align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
.feature:nth-child(even) .shot { order: 2; }
.shot-open { display: block; cursor: zoom-in; }
.shot { margin: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 14px 34px rgba(42, 39, 39, 0.10); }
.shot-top { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bar); border-bottom: 1px solid var(--line); }
.shot-top i { width: 9px; height: 9px; border-radius: 50%; background: #c2bebe; }
.shot-top span { margin-left: 8px; font-size: 12px; color: var(--grey-soft); }
.feature-say .label {
  display: inline-block; background: var(--bar); color: var(--red); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; padding: 5px 12px; border-radius: 8px; margin-bottom: 14px;
}
.feature-say h3 { color: var(--ink); font-size: clamp(21px, 2.2vw, 26px); font-weight: 600; }
.feature-say p { margin-top: 12px; }
.ticks { margin-top: 16px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 12px; height: 2.5px; background: var(--red); border-radius: 2px; }

/* The phone */
.field { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; margin-top: 48px; }
.phones { display: flex; justify-content: center; gap: 22px; }
.phone { margin: 0; width: min(46%, 236px); border: 7px solid #2a2727; border-radius: 30px; overflow: hidden; background: #2a2727; box-shadow: 0 16px 34px rgba(42, 39, 39, 0.18); }
.phone:nth-child(2) { margin-top: 38px; }
.field-say h3 { color: var(--ink); font-size: clamp(21px, 2.2vw, 26px); font-weight: 600; }
.field-say p { margin-top: 12px; }

/* Outlined boxes: who it is for, and how to reach us */
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.box { border: 1.5px solid #9c9797; padding: 26px 24px; background: var(--paper); text-align: center; }
.box h3 { color: var(--red); font-size: 19px; font-weight: 600; }
.box p { margin-top: 10px; font-size: 15px; }
.box a { font-weight: 500; overflow-wrap: anywhere; }
.box--left { text-align: left; }

/* A smaller picture of the portal in a box */
.boxes--shots { margin-top: 64px; }
.boxes--four { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
.boxes--four .box { padding: 22px 20px; }
.boxes--four .box h3 { font-size: 17px; }
.boxes--four .box p { font-size: 14.5px; }
.box--shot { padding: 0 0 24px; overflow: hidden; }
.box--shot img { width: 100%; border-bottom: 1.5px solid var(--line); }
.box--shot h3 { margin-top: 20px; padding: 0 22px; }
.box--shot p { padding: 0 22px; }

/* The company */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; margin-top: 44px; }
.about p + p { margin-top: 14px; }
.offices { display: grid; gap: 22px; }
.offices h3 { color: var(--red); font-size: 16px; font-weight: 600; }
.offices address { font-style: normal; margin-top: 4px; }

.cta { background: var(--red); color: #fff; text-align: center; padding: 60px 0; }
.cta h2 { color: #fff; font-weight: 500; font-size: clamp(24px, 3vw, 34px); }
.cta p { max-width: 640px; margin: 14px auto 0; font-size: 18px; }
.cta .hero-do { margin-top: 26px; }

/* ── The foot ────────────────────────────────────────────────────────────── */
.foot { background: var(--bar); padding: 40px 0 34px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 36px; }
.foot .brand { font-size: 17px; }
.foot h3 { color: var(--red); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 10px; }
.foot li + li { margin-top: 6px; }
.foot a { text-decoration: none; font-weight: 500; }
.foot a:hover { text-decoration: underline; }
.foot-legal { margin-top: 12px; max-width: 420px; }
.foot-end { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--grey-soft); font-size: 13px; }

/* ── A page that is not there ────────────────────────────────────────────── */
.lost { text-align: center; padding: 20px 0 90px; }
.lost h1 { color: var(--red); font-weight: 600; font-size: clamp(28px, 4vw, 40px); }
.lost p { margin: 14px auto 26px; max-width: 520px; font-size: 18px; }

/* ── Narrower screens ────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .boxes--four { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .nav { gap: 18px; }
}
@media (max-width: 860px) {
  .bar-in { flex-wrap: wrap; gap: 0 16px; }
  .js .menu {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 6px 14px;
    background: transparent; border: 1.5px solid var(--red); border-radius: 999px; color: var(--red); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  }
  .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 16px; }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .nav a { padding: 11px 2px; font-size: 16px; border-top: 1px solid #d2d2d6; }
  .nav-end { margin: 12px 0 0; flex-wrap: wrap; }
  .nav-end a { border-top: 0; }
  .nav .btn { min-height: 44px; padding: 8px 22px; font-size: 15px; flex: 1; }
  .section { padding: 54px 0; }
  .feature, .feature:nth-child(even), .field, .about { grid-template-columns: 1fr; gap: 26px; }
  .feature:nth-child(even) .shot { order: 0; }
  .features { gap: 52px; }
  .boxes, .boxes--four { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; text-align: left; padding: 18px 16px; }
  .step::before { grid-row: span 2; margin: 0; }
  .step p { margin-top: 4px; }
  .hero { padding-top: 44px; }
  .hero-do .btn, .cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .bar { position: static; }
  .menu, .hero-do, .cta { display: none; }
}
