/* =========================================================
   R-IGNITE SOLUTIONS LIMITED - BRAND THEME v5
   Burgundy, charcoal, warm grey
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --ink: #192234;
  --ink-soft: #273149;
  --ink-mid: #4f5565;
  --ink-muted: #6b6d79;
  --ink-faint: #8f909b;
  --red: #97143a;
  --red-bright: #b42955;
  --red-deep: #6d0d2b;
  --red-dark: #44091b;
  --red-soft: rgba(141, 18, 50, 0.11);
  --navy: #151f35;
  --navy-soft: #303c59;
  --plum: #724662;
  --plum-deep: #4d304b;
  --mauve: #ad7597;
  --mauve-soft: #dfbfd0;
  --blue-grey: #7483a2;
  --blue-grey-soft: #cbd4e2;
  --silver: #cbd0d8;
  --silver-light: #f0f2f5;
  --canvas: #e4e5ea;
  --canvas-deep: #c8cbd3;
  --surface: #d8d9e0;
  --surface-strong: #f1f1f4;
  --panel: #ffffff;
  --rule: #b9b1b3;
  --rule-strong: #9d9497;
  --shadow: 0 24px 60px rgba(48, 25, 29, 0.14);
  --shadow-soft: 0 14px 34px rgba(48, 25, 29, 0.09);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(151, 20, 58, 0.17), transparent 22rem),
    radial-gradient(circle at 8% 88%, rgba(114, 70, 98, 0.28), transparent 24rem),
    linear-gradient(145deg, #f2f3f6 0%, #d4d9e3 50%, #aeb8c9 100%);
  -webkit-font-smoothing: antialiased;
}

p {
  line-height: 1.8;
  color: var(--ink-mid);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 74px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(70, 67, 70, 0.1);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

nav.scrolled {
  background: #ffffff;
  border-bottom-color: rgba(70, 67, 70, 0.14);
  box-shadow: 0 18px 46px rgba(48, 25, 29, 0.1);
}

.logo {
  min-width: unset;
  min-height: unset;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 44px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.nav-links a {
  min-width: unset;
  min-height: unset;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-cta {
  min-width: unset;
  min-height: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--ink) 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(42, 43, 47, 0.16);
}

.hamburger {
  min-width: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 2rem 8%;
  background:
    radial-gradient(circle at top right, rgba(141, 18, 50, 0.13), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #e0e3e9 100%);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  min-width: unset;
  min-height: unset;
  display: block;
  padding: 0.2rem 0;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 7vw, 3.1rem);
  line-height: 1.18;
}

.mobile-nav .close-btn {
  min-width: 44px;
  min-height: 44px;
  position: absolute;
  top: 1.2rem;
  right: 5%;
  border: none;
  background: none;
  color: var(--ink-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav-bottom {
  margin-top: 1.6rem;
}

.mobile-nav-bottom a {
  min-width: unset;
  min-height: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--ink) 100%);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 9.2rem 5% 3.7rem;
  border-bottom: 1px solid rgba(57, 55, 58, 0.14);
  background:
    radial-gradient(circle at 72% 22%, rgba(151, 20, 58, 0.2), transparent 15rem),
    linear-gradient(112deg, #f1f2f5 0%, #ced4df 64%, #303c59 64%, #151f35 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 36%;
  pointer-events: none;
  opacity: 0.26;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.3) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(255, 255, 255, 0.22) 50%, transparent 51%);
  background-size: 54px 54px;
}

.page-title {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin-top: 1rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.9rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.page-title .accent {
  color: var(--red);
  font-style: italic;
}

.eyebrow,
.section-label {
  position: relative;
  z-index: 1;
  min-width: unset;
  min-height: unset;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--plum);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--red);
  transform: rotate(45deg);
}

.section-shell {
  padding: 4.6rem 5%;
  background:
    radial-gradient(circle at 90% 12%, rgba(151, 20, 58, 0.16), transparent 20rem),
    radial-gradient(circle at 8% 86%, rgba(114, 70, 98, 0.2), transparent 18rem),
    linear-gradient(155deg, #edf0f5 0%, #bec8d7 100%);
}

.section-shell.alt {
  background:
    radial-gradient(circle at top left, rgba(180, 41, 85, 0.24), transparent 24%),
    linear-gradient(145deg, #303c59 0%, #1d2940 54%, #432c45 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-shell.alt .section-title,
.section-shell.alt .section-copy,
.section-shell.alt p {
  color: #ffffff;
}

.section-shell.alt .section-label {
  color: #e2cbd7;
}

.section-shell.alt .section-label::before {
  background: var(--red);
}

.section-inner {
  max-width: 1360px;
  margin: 0 auto;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(24, 25, 27, 0.08);
}

.section-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 1rem;
}

.section-copy {
  max-width: 62ch;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

.surface-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(247, 248, 251, 0.98) 0%, rgba(184, 192, 208, 0.98) 100%);
  border: 1px solid rgba(57, 48, 66, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.surface-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 72px;
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--ink-soft) 0 82%, var(--red) 82% 100%);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(87, 64, 87, 0.16);
  background: rgba(116, 131, 162, 0.7);
  color: var(--ink-mid);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.btn-primary,
.btn-outline,
.btn-dark {
  min-width: unset;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.92rem 1.55rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ink-soft) 0%, var(--ink) 100%);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(42, 43, 47, 0.16);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(87, 64, 87, 0.24);
  color: var(--ink);
}

.btn-outline:hover {
  color: var(--red);
  border-color: rgba(153, 31, 38, 0.36);
}

.btn-dark {
  background: linear-gradient(135deg, var(--ink-soft), var(--ink));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-dark:hover {
  color: var(--ink);
  border-color: var(--warm-grey);
  background: rgba(255, 255, 255, 0.98);
}

footer {
  position: relative;
  padding: 2.75rem 5% 2.25rem;
  background: #ffffff;
  border-top: 1px solid rgba(70, 67, 70, 0.12);
}

footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0 46%, var(--plum) 46% 73%, var(--mauve) 73% 90%, var(--red) 90% 100%);
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem 3rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.9rem;
}

.footer-logo {
  min-width: unset;
  min-height: unset;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo img {
  width: auto;
  height: 50px;
}

.footer-tagline {
  max-width: 28ch;
  min-width: unset;
  min-height: unset;
  display: block;
  color: var(--ink-mid);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-column h3 {
  margin-bottom: 0.95rem;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  min-width: unset;
  min-height: unset;
  display: block;
  padding: 0.18rem 0;
  color: var(--ink-muted);
  font-size: 0.84rem;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--ink);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(24, 25, 27, 0.08);
}

.footer-copy {
  min-width: unset;
  min-height: unset;
  display: block;
  color: var(--ink-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.ri-chatbot {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 995;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.ri-chatbot-panel {
  width: min(390px, calc(100vw - 1.5rem));
  max-height: min(72vh, 640px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  border: 1px solid rgba(24, 25, 27, 0.08);
  border-radius: 24px;
  background: rgba(221, 224, 232, 0.98);
  box-shadow: 0 24px 64px rgba(48, 25, 29, 0.22);
  backdrop-filter: blur(18px);
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}

.ri-chatbot.is-open .ri-chatbot-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.ri-chatbot-head {
  padding: 1rem 1rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(24, 25, 27, 0.08);
  background:
    linear-gradient(90deg, var(--red) 0 5px, transparent 5px),
    linear-gradient(135deg, var(--navy-soft) 0%, var(--plum-deep) 100%);
}

.ri-chatbot-head h2 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ri-chatbot-close {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.ri-chatbot-log {
  padding: 1rem 1rem 0.4rem;
  overflow-y: auto;
}

.ri-chatbot-message {
  display: flex;
  margin-bottom: 0.85rem;
}

.ri-chatbot-message-user {
  justify-content: flex-end;
}

.ri-chatbot-bubble {
  max-width: 90%;
  padding: 0.88rem 0.96rem;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(22, 24, 28, 0.05);
  font-size: 0.88rem;
  line-height: 1.6;
}

.ri-chatbot-message-bot .ri-chatbot-bubble {
  border-top-left-radius: 7px;
  background: rgba(241, 245, 249, 0.96);
  color: var(--ink);
}

.ri-chatbot-message-user .ri-chatbot-bubble {
  border-top-right-radius: 7px;
  background: linear-gradient(135deg, var(--navy-soft), var(--plum-deep));
  color: #fff;
}

.ri-chatbot-bubble a {
  min-width: unset;
  min-height: unset;
  display: inline;
  color: var(--warm-grey-deep);
  font-weight: 700;
  text-decoration: none;
}

.ri-chatbot-replies {
  padding: 0.1rem 1rem 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ri-chatbot-reply {
  min-width: unset;
  min-height: 38px;
  padding: 0.58rem 0.8rem;
  border: 1px solid rgba(24, 25, 27, 0.08);
  border-radius: 999px;
  background: rgba(224, 232, 239, 0.96);
  color: var(--ink-mid);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ri-chatbot-reply:hover {
  color: var(--ink);
  border-color: var(--warm-grey);
  background: rgba(255, 255, 255, 1);
}

.ri-chatbot-actions {
  padding: 0 1rem 0.8rem;
}

.ri-chatbot-human {
  min-width: unset;
  width: 100%;
  justify-content: center;
  padding: 0.82rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(24, 25, 27, 0.08);
  background: rgba(157, 167, 183, 0.72);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ri-chatbot-form {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(24, 25, 27, 0.08);
  background: rgba(221, 224, 232, 0.98);
}

.ri-chatbot-label {
  display: block;
  margin: 0.92rem 0 0.65rem;
  color: var(--ink-faint);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ri-chatbot-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.ri-chatbot-input {
  width: 100%;
  min-height: 48px;
  padding: 0 0.95rem;
  border: 1px solid rgba(24, 25, 27, 0.1);
  border-radius: 15px;
  background: rgba(246, 249, 252, 0.98);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ri-chatbot-input:focus {
  border-color: var(--warm-grey);
  box-shadow: 0 0 0 3px rgba(117, 109, 112, 0.12);
}

.ri-chatbot-send {
  min-width: unset;
  min-height: 48px;
  padding: 0 1rem;
  border: none;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--navy-soft), var(--plum-deep));
  color: #fff;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.ri-chatbot-launcher {
  min-width: unset;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0 1rem;
  border: 1px solid rgba(24, 25, 27, 0.08);
  border-radius: 999px;
  border-color: rgba(70, 67, 70, 0.18);
  background: linear-gradient(135deg, var(--navy-soft), var(--plum-deep));
  color: #fff;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 16px 36px rgba(22, 24, 28, 0.12);
  cursor: pointer;
}

.ri-chatbot-launcher-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--red);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

:focus-visible {
  outline: 2px solid rgba(85, 81, 84, 0.62);
  outline-offset: 3px;
  border-radius: 5px;
}

a,
button,
[role=button] {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1080px) {
  .section-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  nav {
    height: 68px;
    padding: 0 4.5%;
  }

  .page-hero {
    padding: 9rem 5% 3.8rem;
  }

  .section-shell {
    padding: 4rem 5%;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 40px;
  }

  .footer-logo img {
    height: 42px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .ri-chatbot {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    align-items: stretch;
  }

  .ri-chatbot-panel {
    width: 100%;
  }

  .ri-chatbot-launcher {
    align-self: flex-end;
  }
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (hover: none) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .btn-primary:hover,
  .btn-outline:hover,
  .btn-dark:hover,
  .nav-cta:hover {
    transform: none;
    box-shadow: none;
  }
}
