/* ============================================================
   Compuvist — Redesigned static site
   Theme colours extracted from the company logo (Graphic2.jpg)
   Navy  #234863  |  Orange  #e47815  |  Gold  #f0a500
   ============================================================ */

:root {
  --navy: #234863;
  --navy-dark: #17303f;
  --navy-darker: #0f2532;
  --navy-light: #2f5f83;
  --steel: #3a6d94;
  --orange: #e47815;
  --orange-dark: #c9640c;
  --orange-light: #f28b2e;
  --gold: #f0a500;
  --gold-light: #f6bd3b;

  --bg: #f5f8fa;
  --surface: #ffffff;
  --surface-alt: #eef3f7;
  --text: #1d2b36;
  --text-muted: #5b6b78;
  --heading: #17303f;
  --border: #e2eaf0;

  --shadow-sm: 0 1px 3px rgba(23, 48, 63, 0.08);
  --shadow-md: 0 8px 24px rgba(23, 48, 63, 0.10);
  --shadow-lg: 0 20px 48px rgba(23, 48, 63, 0.16);

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --header-h: 76px;

  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1rem; color: var(--text-muted); }

a { color: var(--orange-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange); }

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

::selection { background: var(--orange); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(228, 120, 21, 0.32);
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(228, 120, 21, 0.4);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline:hover {
  background: #fff;
  color: var(--navy-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-dark); transform: translateY(-2px); }

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 14px rgba(15, 37, 50, 0.35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand { display: flex; align-items: center; }
.brand img { height: 48px; width: auto; border-radius: 6px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #dfe8ef;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 9px 15px;
  border-radius: 8px;
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links .nav-cta {
  background: var(--orange);
  color: #fff;
  margin-left: 8px;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--orange-dark); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: #fff;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy) 55%, var(--steel) 100%);
  color: #fff;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(240,165,0,0.22), transparent 68%);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -160px; left: -100px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(228,120,21,0.18), transparent 68%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 7px 15px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  max-width: 15ch;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--gold-light); }
.hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
  max-width: 58ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-sub {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 62px 0;
}
.hero-sub h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.hero-sub p { color: rgba(255,255,255,0.82); max-width: 60ch; margin: 0; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  font-family: var(--font-head);
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { margin: 0 8px; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 78px 0; }
.section.alt { background: var(--surface-alt); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head p { font-size: 1.05rem; }

/* Two column feature block */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.media-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

/* ============================================================
   Cards / Product grid
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(228, 120, 21, 0.4);
}
.card .icon {
  width: 54px; height: 54px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--steel));
  color: #fff;
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* Product card */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(228, 120, 21, 0.4);
}
.product-card .thumb {
  height: 170px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}
.product-card .thumb img { max-height: 100%; width: auto; object-fit: contain; }
.product-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.product-card p { font-size: 0.95rem; flex: 1; }
.product-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 12px;
}
.product-card .card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.product-card:hover .card-link svg { transform: translateX(4px); }

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-soon { background: rgba(240,165,0,0.16); color: var(--orange-dark); }
.badge-live { background: rgba(46, 160, 96, 0.14); color: #218451; }

/* ============================================================
   Feature list (checkmarks)
   ============================================================ */
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
}
.feature-list li .tick {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(228, 120, 21, 0.12);
  color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.feature-list li .tick svg { width: 15px; height: 15px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding: 0; list-style: none; }
.chip-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.chip-list li svg { width: 16px; height: 16px; color: var(--orange); }

/* ============================================================
   Stats band
   ============================================================ */
.stats {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
}
.stats .grid { text-align: center; }
.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold-light);
  line-height: 1;
}
.stat .label { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-top: 8px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  color: #fff;
  border-radius: 22px;
  padding: 54px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: "";
  position: absolute;
  top: -80px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(240,165,0,0.28), transparent 70%);
  border-radius: 50%;
}
.cta-band h2 { color: #fff; position: relative; z-index: 1; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.cta-band p { color: rgba(255,255,255,0.85); position: relative; z-index: 1; max-width: 56ch; margin: 0 auto 26px; }
.cta-band .hero-actions { justify-content: center; position: relative; z-index: 1; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 44px; align-items: start; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label.field-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--heading);
  margin-bottom: 8px;
}
label.field-label .req { color: var(--orange-dark); }
.form-control {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(228, 120, 21, 0.15);
}
textarea.form-control { resize: vertical; min-height: 130px; }

.captcha-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-alt);
  border: 1px dashed var(--navy-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.captcha-box .q {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  white-space: nowrap;
}
.captcha-box .form-control { max-width: 130px; }
.captcha-note { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 22px; }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-weight: 500;
}
.form-status.ok { display: block; background: rgba(46,160,96,0.12); color: #1c7a49; border: 1px solid rgba(46,160,96,0.3); }
.form-status.err { display: block; background: rgba(211,64,64,0.10); color: #b23838; border: 1px solid rgba(211,64,64,0.3); }

.info-card {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.info-card h3 { color: #fff; }
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; }
.info-item .ic {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
}
.info-item .ic svg { width: 20px; height: 20px; }
.info-item .t { font-family: var(--font-head); font-weight: 600; color: #fff; margin-bottom: 2px; }
.info-item .d { color: rgba(255,255,255,0.78); font-size: 0.92rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-darker);
  color: #cfdae2;
  padding: 62px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
}
.site-footer img.f-logo { height: 46px; margin-bottom: 18px; border-radius: 6px; }
.site-footer p { color: #9fb2bf; font-size: 0.95rem; }
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a { color: #9fb2bf; font-size: 0.94rem; transition: color .2s ease, padding .2s ease; }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: #7f95a4;
}
.footer-bottom .motto { color: var(--gold-light); font-style: italic; }

/* ============================================================
   Scroll reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .media { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 22px;
    box-shadow: 0 18px 30px rgba(0,0,0,0.35);
    transform: translateY(-140%);
    transition: transform .3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    z-index: 200;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 12px; border-radius: 8px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: rgba(255,255,255,0.06); }
  .nav-links .nav-cta { margin: 10px 0 0; justify-content: center; }
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { padding: 42px 26px; }
  .hero { padding: 64px 0 72px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
