/* Reusable building blocks: buttons, badges, cards, lists, tags. */

/* ---------- buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* One button style for the whole site (header, heroes, forms, case studies):
   a pill with the label and a round arrow (.btn__icon) on the right, and a soft
   glare passing over filled buttons. Pick the colour by background:
     .btn--dark   light backgrounds (ink, gold arrow)
     .btn--gold   dark or glass backgrounds (gold, ink arrow)
     .btn--white  blue panels (white, gold arrow)
     .btn--ghost  secondary action, outline, no arrow
   Sizes: .btn--lg (home hero), .btn--block (full width, for forms);
   .btn--start keeps its own width inside a column layout. */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s ease, background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .25s ease;
}
.btn:has(.btn__icon) { padding-right: 9px; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .7; cursor: default; transform: none; }

.btn--dark::after,
.btn--gold::after,
.btn--white::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 44%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 30%), transparent);
  animation: glare 3.4s ease-in-out infinite;
  pointer-events: none;
}

.btn--dark { background: var(--ink); color: var(--white); box-shadow: 0 8px 20px -10px rgb(20 20 22 / 50%); }
.btn--dark:hover { background: var(--blue); color: var(--white); box-shadow: 0 14px 28px -10px rgb(59 116 232 / 70%); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--white); color: var(--ink); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--gold); color: var(--ink); }
.btn--ghost { border-color: var(--line-3); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.on-dark .btn--ghost { border-color: rgb(255 255 255 / 24%); color: var(--night-ink); }
.on-dark .btn--ghost:hover { background: var(--night-ink); color: var(--ink); }

.btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}

/* Arrow (right) drawn from one SVG mask, coloured by the icon's color. */
.btn__icon::before {
  content: '';
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.99974 13.0001L1.9996 11.0002L18.1715 11.0002L14.2218 7.05044L15.636 5.63623L22 12.0002L15.636 18.3642L14.2218 16.9499L18.1716 13.0002L1.99974 13.0001Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn--gold .btn__icon,
.btn--white:hover .btn__icon { background: var(--ink); color: var(--gold); }

.btn--lg { gap: 16px; height: 64px; padding: 0 32px; font-size: 19px; }
.btn--lg:has(.btn__icon) { padding-right: 10px; }
.btn--lg .btn__icon { width: 44px; height: 44px; }
.btn--lg .btn__icon::before { width: 20px; height: 20px; }

/* In a column layout, keep the button its own width, aligned to the start. */
.btn--start { align-self: flex-start; }

/* Full width: the label stays centred, the arrow sits at the right edge. */
.btn--block { width: 100%; white-space: normal; line-height: 1.2; text-align: center; }
.btn--block:has(.btn__icon) { padding: 0 56px; }
.btn--block .btn__icon { position: absolute; right: 9px; }

@media (prefers-reduced-motion: reduce) {
  .btn::after { animation: none; opacity: 0; }
}

/* Arrow icons from one SVG each (right, up-right), sized to the text around
   them (1em) and coloured by currentColor. Used inside links, chips and tabs. */
.ico {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  vertical-align: -.125em;
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}
.ico--right { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.99974 13.0001L1.9996 11.0002L18.1715 11.0002L14.2218 7.05044L15.636 5.63623L22 12.0002L15.636 18.3642L14.2218 16.9499L18.1716 13.0002L1.99974 13.0001Z'/%3E%3C/svg%3E"); }
.ico--up-right { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.63589 19.7784L4.22169 18.3644L15.657 6.92908L10.0712 6.92908V4.92908L19.0712 4.92908L19.0712 13.9291H17.0712L17.0712 8.34326L5.63589 19.7784Z'/%3E%3C/svg%3E"); }

.text-link { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15px; transition: color .2s ease; }
.text-link:hover { color: var(--blue); }

.text-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}

.round-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.round-btn:hover { background: var(--ink); color: var(--white); }

/* ---------- labels ---------- */

.badge {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.eyebrow--light { color: rgb(255 255 255 / 70%); margin-bottom: 20px; }

.crumbs { margin-bottom: 28px; font-size: 13.5px; color: var(--stone); }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 9px; border: 1px solid #ecd98a; border-radius: 5px; background: #fbf3d6; color: var(--amber); font-size: 10.5px; text-transform: uppercase; }

.num-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgb(59 116 232 / 18%);
  color: var(--blue-soft);
  font-weight: 700;
  font-size: 13.5px;
}
.num-chip--gold { width: 30px; height: 30px; border-radius: 8px; background: rgb(245 200 66 / 14%); color: var(--gold); font-size: 12px; }

.tick-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 12px;
}

.tick-list { display: flex; flex-direction: column; gap: 11px; }
.tick-list li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.55; color: var(--slate); }
.tick-list li::before { content: '✓'; flex: none; color: var(--blue); }

/* ---------- cards ---------- */

.card { display: flex; flex-direction: column; padding: 32px 30px; border-radius: 18px; }
.card--line { background: var(--white); border: 1px solid var(--line); padding: 34px 32px; border-radius: 20px; }
.card--night { background: var(--night-card); border: 1px solid var(--night-line); color: var(--night-ink); }
.card--roomy { padding: 34px 32px; }
.card--glass { background: rgb(30 38 54 / 82%); border: 1px solid var(--night-line); border-radius: 20px; padding: 34px 32px; backdrop-filter: blur(6px); }
.card--lift { transition: transform .35s var(--ease), border-color .35s ease; }
.card--lift:hover { transform: translateY(-8px); border-color: #5d5432; }

.card__numline { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.card__numline::after { content: ''; flex: 1; height: 1px; background: var(--night-line); }
.card__tag { margin-bottom: 14px; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #b8542f; }
.card__kicker { margin-bottom: 16px; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.card__kicker--muted { margin-bottom: 12px; color: var(--night-muted); }
.card__title { margin-bottom: 11px; font-weight: 600; font-size: 18.5px; }
.card__title--lg { margin-bottom: 12px; font-size: 20px; letter-spacing: -.5px; }
.card__text { font-size: 14.5px; line-height: 1.62; color: var(--slate); }
.card--night .card__text,
.card--glass .card__text { color: var(--night-muted); }
.card__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.card--night .card__foot { border-color: var(--night-line); color: var(--night-soft); }
.card__foot a { color: var(--amber); }
.card--night .card__foot a { color: var(--gold); }
.card--line .card__title { font-size: 18px; margin-bottom: 10px; }

.link-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}
.link-card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px -30px rgb(20 20 22 / 40%); border-color: var(--gold-line); }
.link-card__title { margin-bottom: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.3px; }
.link-card__text { margin-bottom: 20px; font-size: 14.5px; line-height: 1.6; color: var(--slate); }
.link-card__cta { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--blue); }

/* ---------- tiles, stats, placeholders ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}
.tile { padding: 34px 32px; background: var(--white); }
.tile__title { margin-bottom: 10px; font-weight: 600; font-size: 17.5px; }
.tile__text { font-size: 14.5px; line-height: 1.6; color: var(--slate); }

.stat-band {
  padding: 64px var(--gutter);
  background: radial-gradient(900px 520px at 12% 6%, rgb(76 134 240 / 11%), transparent 55%), var(--night-2);
  color: var(--night-ink);
}
.stat-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.stat { padding-top: 24px; border-top: 1px solid var(--night-line); }
.stat__value { font-weight: 800; font-size: clamp(32px, 3.2vw, 52px); line-height: 1; letter-spacing: -2px; }
.stat__label { margin-top: 12px; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--night-muted); }

.media-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid) 58%, #2b74e8);
}
.media-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 14%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 14%) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: .55;
}
.media-placeholder--blue { min-height: 420px; background: linear-gradient(135deg, #2b74e8, #4b93ff); }
.media-placeholder span { position: relative; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: rgb(255 255 255 / 75%); }

@media (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .tile-grid { grid-template-columns: 1fr; }
  .btn { height: 48px; font-size: 15px; }
  .btn--lg { height: 58px; font-size: 16px; }
  .btn--lg .btn__icon { width: 40px; height: 40px; }
  /* Labels stay on one line; full-width buttons read left to right with the arrow at the end. */
  .btn--block { white-space: nowrap; }
  .btn--block:has(.btn__icon) { justify-content: flex-start; padding: 0 52px 0 20px; text-align: left; }
}
