/* KARS Technologies — static site, mirrors live Odoo design */
:root {
  --charcoal: #343a40;
  --charcoal-dark: #23272b;
  --blue: #0d6efd;
  --blue-dark: #0b5ed7;
  --gray-light: #f4f5f6;
  --teal: #20c997;
  --tan: #d9b98a;
  --tan-dark: #c9a878;
  --text: #3a3f44;
  --text-muted: #6c757d;
  --white: #ffffff;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--charcoal);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-text { line-height: 1.1; }
.brand-text .kars { font-size: 1.35rem; font-weight: 800; letter-spacing: .06em; color: #fff; }
.brand-text .tech { font-size: .72rem; letter-spacing: .42em; color: var(--tan); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover { text-decoration: none; background: rgba(255,255,255,.08); }
.nav-links a.active { background: var(--blue); color: #fff; }
.search-icon {
  color: #fff; font-size: 1.15rem; padding: 8px 10px; cursor: pointer;
  background: none; border: none;
}
.login-link {
  border: 1px solid rgba(255,255,255,.4); border-radius: 20px;
  padding: 6px 18px !important; font-size: .9rem; white-space: nowrap;
}
.login-link:hover { border-color: #fff; background: rgba(255,255,255,.12) !important; }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(20,24,28,.88) 0%, rgba(20,24,28,.55) 55%, rgba(20,24,28,.25) 100%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 2px, transparent 2px 60px),
    radial-gradient(1200px 600px at 70% 20%, #2b3f5c 0%, #161b22 70%);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 80px 24px; width: 100%; }
.hero-kicker {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero .lead { font-size: 1.12rem; max-width: 560px; color: #e8eaed; margin-bottom: 32px; }
.hero-slide { display: none; }
.hero-slide.on { display: block; animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none;} }
.hero-dots { display: flex; gap: 10px; margin-top: 28px; }
.hero-dots button {
  width: 34px; height: 6px; border-radius: 4px; border: none;
  background: rgba(255,255,255,.3); cursor: pointer; padding: 0;
}
.hero-dots button.on { background: var(--tan); }
.hero-arrows { position: absolute; right: 32px; bottom: 36px; display: flex; gap: 10px; z-index: 3; }
.hero-arrows button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: transparent;
  color: #fff; font-size: 1.2rem; cursor: pointer;
}
.hero-arrows button:hover { background: rgba(255,255,255,.15); }
.scroll-down {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--tan); color: #4a3f2c; font-size: 1.5rem; border: none; cursor: pointer;
  margin-top: 8px;
}
.scroll-down:hover { background: var(--tan-dark); }

/* small page banner (about/careers/contact/jobs) */
.page-banner {
  background: linear-gradient(100deg, rgba(20,24,28,.9), rgba(20,24,28,.5)),
    radial-gradient(900px 420px at 70% 20%, #2b3f5c 0%, #161b22 70%);
  color: #fff;
  padding: 90px 0 70px;
}
.page-banner h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
.page-banner .lead { color: #dfe3e8; max-width: 640px; margin-top: 12px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.gray { background: var(--gray-light); }
.quote-heading {
  border-left: 5px solid var(--teal);
  padding-left: 18px;
  margin-bottom: 14px;
}
.quote-heading h2 { font-size: 1.9rem; font-weight: 700; color: var(--charcoal); }
.section-sub { color: var(--text-muted); max-width: 720px; margin-bottom: 40px; }
h3.big { font-size: 1.65rem; font-weight: 700; color: var(--charcoal); margin-bottom: 16px; }

/* buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.teal-rule { width: 64px; height: 4px; background: var(--teal); border: none; margin: 22px 0; }

/* news cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  display: flex; flex-direction: column;
}
.card-img {
  height: 190px;
  background: linear-gradient(135deg, #1c2b45, #0d6efd 130%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); font-weight: 700; font-size: 1.05rem;
  text-align: center; padding: 16px;
}
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--text-muted); font-size: .95rem; margin-bottom: 18px; flex: 1; }
.card-body .btn { align-self: flex-start; }

/* parallax banner sections */
.parallax {
  position: relative;
  padding: 110px 0;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(15,19,24,.82) 0%, rgba(15,19,24,.45) 60%, rgba(15,19,24,.2) 100%),
    radial-gradient(1000px 500px at 75% 30%, #31445f 0%, #141920 75%);
}
.parallax .box {
  background: rgba(20,24,29,.72);
  border-radius: 16px;
  padding: 40px 44px;
  max-width: 560px;
}
.parallax .quote-heading h2 { color: #fff; }
.parallax h3 { font-size: 1.7rem; margin-bottom: 14px; }
.parallax p { color: #d7dbe0; margin-bottom: 24px; }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img {
  min-height: 380px; border-radius: var(--radius);
  background: linear-gradient(135deg, #22334f, #0d6efd 140%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); font-weight: 600;
}

/* partner logos */
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 36px; }
.logo-card {
  background: #fff; border-radius: 10px; padding: 26px 12px;
  text-align: center; font-weight: 700; color: var(--charcoal);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  font-size: 1.02rem; letter-spacing: .02em;
}

/* service detail sections */
.svc { padding: 70px 0; }
.svc.gray { background: var(--gray-light); }
.svc ul { margin: 18px 0 26px 22px; }
.svc li { margin-bottom: 8px; }

/* values grid */
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 32px; }
.value-card {
  background: #fff; border-radius: var(--radius); padding: 26px 20px;
  box-shadow: 0 3px 14px rgba(0,0,0,.07); text-align: center;
}
.value-card .letter {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.value-card h4 { margin-bottom: 8px; color: var(--charcoal); }
.value-card p { font-size: .9rem; color: var(--text-muted); }

/* group companies / offices */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.info-card {
  background: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: 0 3px 14px rgba(0,0,0,.07);
}
.info-card h4 { color: var(--charcoal); margin-bottom: 10px; font-size: 1.2rem; }
.info-card p { color: var(--text-muted); font-size: .95rem; margin-bottom: 14px; }
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.office-card {
  background: #fff; border-radius: var(--radius); padding: 26px;
  box-shadow: 0 3px 14px rgba(0,0,0,.07);
}
.office-card h4 { color: var(--charcoal); margin-bottom: 8px; }
.office-card p { font-size: .92rem; color: var(--text-muted); white-space: pre-line; }

/* testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.testi {
  background: #fff; border-radius: var(--radius); padding: 30px;
  box-shadow: 0 3px 14px rgba(0,0,0,.07);
}
.testi .quote { font-style: italic; color: var(--text); margin-bottom: 18px; }
.testi .who { font-weight: 700; color: var(--charcoal); }
.testi .role { font-size: .88rem; color: var(--text-muted); }

/* accordion (jobs) */
.accordion { margin-top: 32px; border: 1px solid #e2e5e9; border-radius: var(--radius); overflow: hidden; }
.acc-item { border-bottom: 1px solid #e2e5e9; }
.acc-item:last-child { border-bottom: none; }
.acc-head {
  width: 100%; background: #fff; border: none; cursor: pointer;
  padding: 18px 24px; display: flex; justify-content: space-between; align-items: center;
  font-size: 1.02rem; font-weight: 600; color: var(--charcoal); text-align: left;
  font-family: inherit;
}
.acc-head:hover { background: var(--gray-light); }
.acc-body { display: none; padding: 0 24px 22px; color: var(--text-muted); font-size: .95rem; }
.acc-item.open .acc-body { display: block; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 12px;
  border-radius: 999px; margin-left: 10px; vertical-align: middle;
}
.badge.open { background: #d1e7dd; color: #0f5132; }
.badge.closed { background: #f8d7da; color: #842029; }

/* contact form */
.form-wrap { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; margin-bottom: 6px; font-size: .93rem; }
.field label .req { color: #dc3545; }
.field input, .field textarea, .field select {
  padding: 12px 14px; border: 1px solid #ced4da; border-radius: 8px; font-size: 1rem;
  font-family: inherit;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* footer */
.site-footer { background: var(--charcoal); color: #cfd4d9; }
.footer-inner { padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.footer-grid h5 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #adb5bd; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 48px; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; color: #8a9299;
  max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px;
}

/* back to top */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--tan); color: #4a3f2c; border: none; cursor: pointer;
  font-size: 1.4rem; display: none; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.to-top.show { display: inline-flex; align-items: center; justify-content: center; }

/* responsive */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--charcoal-dark); flex-direction: column; padding: 12px 24px 20px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; width: 100%; }
  .hamburger { display: block; }
  .cards-3, .split, .two-col, .testi-grid { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-arrows { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------- Real background images ---------- */
.hero-img {
  background:
    linear-gradient(100deg, rgba(20,24,28,.88) 0%, rgba(20,24,28,.55) 55%, rgba(20,24,28,.25) 100%),
    url("images/hero-bg.jpg") center/cover no-repeat;
}
/* ---------- Hero background video ---------- */
.hero-video {
  position: relative; overflow: hidden;
  background: url("images/hero-bg.jpg") center/cover no-repeat;
}
.hero-video-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-video-bg iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.78vh; height: 100vh;
  min-width: 100vw; min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: 0;
}
.hero-video .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(20,24,28,.88) 0%, rgba(20,24,28,.55) 55%, rgba(20,24,28,.25) 100%);
}
.hero-video .hero-inner { position: relative; z-index: 2; }
.parallax-services {
  background:
    linear-gradient(100deg, rgba(15,19,24,.82) 0%, rgba(15,19,24,.45) 60%, rgba(15,19,24,.2) 100%),
    url("images/services-bg.jpg") center/cover no-repeat fixed;
}
.parallax-cta {
  background:
    linear-gradient(100deg, rgba(15,19,24,.82) 0%, rgba(15,19,24,.45) 60%, rgba(15,19,24,.2) 100%),
    url("images/hero-bg.jpg") center/cover no-repeat fixed;
}
.banner-img {
  background:
    linear-gradient(100deg, rgba(20,24,28,.9), rgba(20,24,28,.5)),
    url("images/hero-bg.jpg") center/cover no-repeat;
}

/* news card images */
.card-img { padding: 0; overflow: hidden; }
.card-img img { width: 100%; height: 190px; object-fit: cover; display: block; }

/* article pages */
.article-body { max-width: 800px; }
.article-body h2 { margin-bottom: 24px; }
.article-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; display: block; }
.article-body p { margin-bottom: 1.2em; line-height: 1.75; }

/* capabilities image */
.split-img { padding: 0; overflow: hidden; background: none; }
.split-img img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; border-radius: var(--radius); }

/* partner logo images */
.logo-card { display: flex; align-items: center; justify-content: center; min-height: 110px; }
.logo-card:hover { text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.logo-card img { max-height: 64px; max-width: 80%; object-fit: contain; }

/* ---------- Service split layout ---------- */
.svc-split { display: flex; gap: 40px; align-items: center; }
.svc-split .svc-img { flex: 0 0 45%; }
.svc-split .svc-img img { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 16/10; }
.svc-split .svc-text { flex: 1; }
.svc:nth-child(even) .svc-split { flex-direction: row-reverse; }
@media (max-width: 768px) {
  .svc-split, .svc:nth-child(even) .svc-split { flex-direction: column; }
  .svc-split .svc-img { flex: none; width: 100%; }
}

/* ---------- Search modal ---------- */
.search-modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.6); align-items: flex-start; justify-content: center; padding-top: 15vh; }
.search-modal.open { display: flex; }
.search-modal-box { background: #fff; border-radius: 12px; padding: 30px; width: 90%; max-width: 500px; position: relative; }
.search-modal-box h3 { margin-top: 0; }
.search-modal-box input[type="text"] { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; box-sizing: border-box; }
.search-modal-box .btn { margin-top: 15px; }
.search-close { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer; }
.search-results { margin-top: 15px; max-height: 300px; overflow-y: auto; }
.search-results a { display: block; padding: 8px 0; border-bottom: 1px solid #eee; color: #0d6efd; text-decoration: none; }

/* ---------- Testimonial avatars ---------- */
.testimonial-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; }

/* ---------- Office flags ---------- */
.office-flag { width: 48px; height: 32px; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }

/* ---------- Policy pages ---------- */
.policy-body h3 { margin-top: 30px; color: #343a40; }
.policy-body ol { padding-left: 20px; }
.policy-body li { margin-bottom: 15px; }
