/* CIRI Systems — site styles */
:root {
  --navy: #1b2a6b;
  --navy-dark: #121d4d;
  --blue: #2c55c9;
  --orange: #ef5a24;
  --orange-light: #f8934c;
  --text: #333b4a;
  --muted: #6b7385;
  --bg-soft: #f4f6fb;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(18, 29, 77, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar .container { display: flex; justify-content: flex-end; gap: 24px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--orange-light); }

/* ---------- Header / nav ---------- */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 26px; color: var(--navy); letter-spacing: 0.5px; }
.logo:hover { color: var(--navy); }
.logo-mark { width: 44px; height: 44px; }
.logo small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 3px; color: var(--orange); margin-top: -6px; }

.nav { display: flex; align-items: center; }
.nav > ul { list-style: none; display: flex; gap: 4px; }
.nav li { position: relative; }
.nav > ul > li > a {
  display: block; padding: 24px 14px; color: var(--navy); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px;
}
.nav > ul > li > a:hover, .nav > ul > li.active > a { color: var(--orange); }
.has-sub > a::after { content: "▾"; font-size: 11px; margin-left: 5px; }
.submenu {
  list-style: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; box-shadow: var(--shadow);
  border-top: 3px solid var(--orange); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 10px 18px; color: var(--text); font-size: 15px; border-bottom: 1px solid #eef0f5; }
.submenu a:hover { background: var(--bg-soft); color: var(--orange); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--orange); color: #fff; padding: 11px 26px; border-radius: 4px; font-weight: 600;
  border: 0; cursor: pointer; font-size: 16px; transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--orange-light); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.slides { position: relative; min-height: 520px; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide-1 { background: linear-gradient(120deg, rgba(18,29,77,.92), rgba(44,85,201,.70)), radial-gradient(circle at 80% 30%, #4b7bec 0, transparent 60%), #1b2a6b; }
.slide-2 { background: linear-gradient(120deg, #24127a, #3b2bb3 55%, #5a3fd6); }
.slide-3 { background: linear-gradient(120deg, #0d3b66, #12698f 60%, #1fa2b8); }
.slide .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.slide h1, .slide h2 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; font-weight: 700; text-transform: uppercase; margin-bottom: 18px; }
.slide p { font-size: 20px; margin-bottom: 28px; max-width: 520px; opacity: .95; }
.slide-art { justify-self: center; width: 100%; max-width: 440px; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60%);
}
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; width: 44px; height: 44px;
  border-radius: 50%; font-size: 22px; cursor: pointer; z-index: 5;
}
.slider-arrow:hover { background: var(--orange); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.slider-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.slider-dots button.active { background: #fff; }

/* ---------- Social float ---------- */
.social-float { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; }
.social-float a { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.social-float .fb { background: #3b5998; }
.social-float .tw { background: #111; }
.social-float .li { background: #0a66c2; }
.social-float .yt { background: #e62117; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); font-weight: 700; margin-bottom: 14px; }
.section-title.light { color: #fff; }
.section-lead { text-align: center; max-width: 760px; margin: 0 auto 48px; color: var(--muted); font-size: 18px; }
.section-lead.light { color: rgba(255,255,255,.88); }
.title-bar { width: 60px; height: 3px; background: var(--orange); margin: 0 auto 22px; }

/* Challenges */
.challenge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.challenge { text-align: center; padding: 24px 16px; border-radius: var(--radius); transition: box-shadow .25s, transform .25s; }
.challenge:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.challenge .icon { width: 72px; height: 72px; margin: 0 auto 16px; }
.challenge h3 { color: var(--navy); font-size: 20px; margin-bottom: 8px; }
.challenge p { color: var(--muted); font-size: 16px; }

/* Services cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow); border-bottom: 4px solid transparent;
  transition: border-color .25s, transform .25s; display: flex; flex-direction: column;
}
.service-card:hover { border-bottom-color: var(--orange); transform: translateY(-4px); }
.service-card .icon { width: 58px; height: 58px; margin-bottom: 18px; }
.service-card h3 { font-size: 19px; letter-spacing: .6px; color: var(--navy); margin-bottom: 10px; text-transform: uppercase; }
.service-card p { color: var(--muted); flex: 1; margin-bottom: 18px; }
.learn-more { font-weight: 700; color: var(--orange); }
.learn-more::after { content: " →"; }

/* Clients / industries band */
.band { background: linear-gradient(120deg, var(--navy-dark), var(--blue)); color: #fff; }
.logo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.logo-tile {
  background: #fff; color: var(--navy); border-radius: var(--radius); padding: 26px 16px; text-align: center; font-weight: 700; font-size: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.logo-tile svg { width: 40px; height: 40px; }

/* Stats / recognition */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat-badge {
  width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 12px; display: grid; place-items: center; background: var(--navy);
  color: #fff; font-size: 34px; font-weight: 700; box-shadow: var(--shadow);
}
.stat-badge.alt { background: var(--orange); }
.stats-grid p { color: var(--muted); }
.center { text-align: center; margin-top: 40px; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--orange), #f27a3d); color: #fff; padding: 50px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; }

/* Contact block */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.contact-list { list-style: none; display: grid; gap: 22px; }
.contact-list li { display: flex; align-items: center; gap: 16px; font-size: 20px; }
.contact-list .ci { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--blue); display: grid; place-items: center; color: var(--blue); flex: none; }
.contact-list .ci svg { width: 22px; height: 22px; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { font-size: 14px; color: var(--muted); display: block; margin-bottom: 4px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 11px 12px; border: 1px solid #d5d9e4; border-radius: 4px; font: inherit; font-size: 16px; color: var(--text); background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 15px; min-height: 1.4em; }
.form-note.ok { color: #1a7f37; }
.form-note.err { color: #c0392b; }

/* Page banner (inner pages) */
.page-banner { background: linear-gradient(120deg, var(--navy-dark), var(--blue)); color: #fff; padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-banner h1 { font-size: clamp(30px, 4.4vw, 46px); text-transform: uppercase; }
.crumbs { font-size: 15px; opacity: .85; margin-top: 6px; }
.crumbs a { color: #fff; }

/* Detail blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split + .split { margin-top: 70px; }
.split.reverse > :first-child { order: 2; }
.split h2 { color: var(--navy); font-size: 30px; margin-bottom: 14px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.ticks { list-style: none; display: grid; gap: 8px; margin: 10px 0 20px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.art-panel { background: var(--bg-soft); border-radius: 12px; padding: 30px; }
.anchor { scroll-margin-top: 100px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.value h3 { color: var(--navy); margin-bottom: 8px; }
.value p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 60px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 30px; }
.site-footer h4 { color: var(--orange-light); text-transform: uppercase; font-size: 16px; margin-bottom: 14px; letter-spacing: .5px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--orange-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 44px; padding: 18px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom nav { display: flex; gap: 18px; }
.to-top {
  position: fixed; left: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; border: 0;
  font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 40;
}
.to-top.show { opacity: 1; visibility: visible; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .challenge-grid, .stats-grid, .logo-row { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav > ul {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open > ul { max-height: 80vh; overflow-y: auto; }
  .nav > ul > li > a { padding: 14px 18px; border-bottom: 1px solid #eef0f5; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; display: none; }
  .has-sub.open > .submenu { display: block; }
  .submenu a { padding-left: 34px; }
  .slide .container { grid-template-columns: 1fr; text-align: left; }
  .slide-art { display: none; }
  .slides { min-height: 460px; }
  .contact-wrap, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .topbar .container { justify-content: center; gap: 14px; }
}
@media (max-width: 600px) {
  .challenge-grid, .services-grid, .values-grid, .stats-grid { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .social-float { display: none; }
  .slider-arrow { display: none; }
  .topbar .hide-sm { display: none; }
}
