/* ==========================================================
   Embisol Technologies — site styles
   Edit the tokens below to change colours/fonts site-wide.
   ========================================================== */
:root {
  --blue: #0b8ad3;
  --blue-dark: #0670ad;
  --blue-soft: #e6f3fb;
  --ink: #0d1520;
  --ink-2: #16212f;
  --grey: #5b6470;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --white: #ffffff;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 21, 32, 0.08);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--grey); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark p { color: #a9b4c2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: #a9b4c2; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #a9b4c2; }
.topbar a:hover { color: var(--white); }
.topbar span { margin-right: 22px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: var(--ink); font-weight: 600; font-size: .95rem; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue); transition: width .25s;
}
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.nav .btn { color: var(--white); padding: 11px 22px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: var(--ink) url("../img/slide1.jpg") center/cover no-repeat;
  padding: 140px 0 120px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,21,32,.96) 0%, rgba(13,21,32,.82) 45%, rgba(13,21,32,.35) 100%);
}
.hero .container { position: relative; }
.hero h1 { max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--blue); white-space: nowrap; }
.hero p.lead { font-size: 1.15rem; color: #c3ccd7; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin-top: 80px; max-width: 760px;
  background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden;
}
.hero-stats div { background: rgba(13,21,32,.75); padding: 22px 24px; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--white); }
.hero-stats span { font-size: .88rem; color: #a9b4c2; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: var(--white);
  background: var(--ink) url("../img/slide2.jpg") center/cover no-repeat;
  padding: 110px 0 90px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(13,21,32,.82); }
.page-hero .container { position: relative; }
.page-hero p { color: #c3ccd7; max-width: 620px; font-size: 1.08rem; }
.crumbs { font-size: .88rem; color: #a9b4c2; margin-bottom: 14px; }
.crumbs a { color: #a9b4c2; }
.crumbs a:hover { color: var(--white); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 22px;
}
.icon svg { width: 28px; height: 28px; }
.card .more { font-family: var(--font-head); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 6px; margin-top: 8px; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checks strong { display: block; font-family: var(--font-head); }
.checks span { color: var(--grey); font-size: .95rem; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px var(--blue);
}
.step::after { content: ""; position: absolute; top: 26px; left: 76px; right: -10px; height: 1px; background: rgba(255,255,255,.18); }
.step:last-child::after { display: none; }
.step h3 { color: var(--white); }
.step p { font-size: .95rem; }

/* ---------- Tech chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-weight: 600; font-size: .92rem; color: var(--ink);
}

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 22px; padding: 60px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { margin: 0; max-width: 620px; }
.cta p { color: rgba(255,255,255,.85); margin: 10px 0 0; }
.cta .btn { background: var(--white); color: var(--blue); }

/* ---------- Service detail rows ---------- */
.service-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row .icon { margin-bottom: 18px; }
.service-row ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.service-row li { padding-left: 20px; position: relative; color: var(--ink); }
.service-row li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }

/* ---------- Values ---------- */
.value-num { font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: .9rem; margin-bottom: 8px; display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-item .icon { flex: 0 0 52px; height: 52px; margin: 0; }
.contact-item h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-item p, .contact-item a { margin: 0; color: var(--grey); }
.contact-item a:hover { color: var(--blue); }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.form .btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form-status { display: none; margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-size: .92rem; }
.form-status.ok { display: block; background: #e8f7ee; color: #17663a; }
.form-status.error { display: block; background: #fdecec; color: #a12626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); filter: grayscale(.3); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #a9b4c2; padding: 80px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer p { color: #a9b4c2; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #a9b4c2; }
.footer a:hover { color: var(--white); }
.footer-logo { background: var(--white); display: inline-block; padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; }
.footer-logo img { height: 32px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); }
.socials a:hover { background: var(--blue); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--ink-2); margin-top: 60px; padding: 22px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .grid-3, .grid-2, .split, .contact-grid, .service-row { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .service-row { gap: 24px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 10px; justify-content: center; }
  .topbar .hide-sm { display: none; }
  .cta { padding: 40px 28px; }
}
@media (max-width: 560px) {
  .hero { padding: 100px 0 80px; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 50px; }
  .grid-4, .process, .footer-grid, .form-row, .service-row ul { grid-template-columns: 1fr; }
  .form { padding: 26px 20px; }
}
