/* =========================================================
   Eucal IT Solutions — design system
   Direction: "the operations desk" — calm, precise, high-trust.
   Palette: deep petrol ink + warm amber signal. WhatsApp green
   is reserved ONLY for enquiry buttons.
   ========================================================= */

:root {
  --ink:      #0F1720;   /* near-black (brand) — dark sections & headings */
  --petrol:   #1E6FB0;   /* brand blue — interactive / eyebrows on light */
  --petrol-2: #12283B;   /* deep navy — band & footer surfaces */
  --signal:   #1E6FB0;   /* brand blue accent (light contexts) */
  --blue-d:   #17588C;   /* blue hover */
  --sky:      #79B4E1;   /* Botswana light blue — accents on dark, dots, glows */
  --signal-d: #79B4E170;
  --paper:    #F4F7FA;   /* cool light page background */
  --card:     #FFFFFF;
  --line:     #DCE4EC;   /* hairlines */
  --line-d:   #23384A;   /* hairlines on dark */
  --text:     #14202A;   /* body text on light */
  --muted:    #5A6B78;   /* captions / muted */
  --muted-d:  #A2B6C6;   /* muted on dark */
  --wa:       #25D366;   /* WhatsApp — enquiry buttons only */
  --wa-d:     #1EBE5A;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 4px;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* eyebrow — the mono "readout" device used throughout */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--petrol);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow--light { color: var(--sky); }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-d);
  animation: pulse 2.4s infinite;
}
.eyebrow--light .dot { background: var(--sky); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(121,180,225,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(121,180,225,0); }
  100% { box-shadow: 0 0 0 0 rgba(121,180,225,0); }
}

.section-title { font-size: clamp(28px, 4.4vw, 46px); max-width: 20ch; }
.section-lead { color: var(--muted); font-size: clamp(17px, 2vw, 19px); max-width: 58ch; margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost--light { color: #fff; border-color: var(--line-d); }
.btn-ghost--light:hover { border-color: var(--sky); color: var(--sky); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-d); }
.btn-wa svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,246,245,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; display: block; }
.brand .mark {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--ink); letter-spacing: -0.02em;
  border-bottom: 3px solid var(--signal); line-height: 1; padding-bottom: 2px;
}
.brand .mark-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px; color: var(--text); position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--signal); transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero::before { /* subtle monitor scanlines */
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  opacity: .6; pointer-events: none;
}
.hero::after { /* amber signal glow */
  content: ""; position: absolute; right: -12%; top: -30%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(121,180,225,.20), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 132px); }
.hero h1 {
  font-size: clamp(40px, 8vw, 84px); color: #fff; max-width: 15ch;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--signal); }
.hero-lead { color: var(--muted-d); font-size: clamp(17px, 2.2vw, 21px); max-width: 54ch; margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* status strip — the signature readout */
.status {
  border-top: 1px solid var(--line-d);
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative; z-index: 1;
}
.status .cell {
  padding: 26px var(--gutter);
  border-right: 1px solid var(--line-d);
}
.status .cell:last-child { border-right: 0; }
.status .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-d); display: block; margin-bottom: 8px; }
.status .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); color: #fff; }
.status .v small { color: var(--sky); font-size: .6em; margin-left: 2px; }

/* ---------- services ---------- */
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 52px; }
.svc { background: var(--card); padding: 34px 30px 38px; transition: background .2s ease; }
.svc:hover { background: #fbfcfb; }
.svc .num { font-family: var(--font-mono); font-size: 12px; color: var(--signal); letter-spacing: .1em; }
.svc h3 { font-size: 21px; margin: 16px 0 12px; color: var(--ink); }
.svc p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- credibility band ---------- */
.band { background: var(--petrol-2); color: #fff; }
.band .eyebrow { color: var(--sky); }
.band .band-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.band h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); }
.band p { color: var(--muted-d); margin-top: 18px; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.trust-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-d); }
.trust-list li:last-child { border-bottom: 0; }
.trust-list .tk { font-family: var(--font-mono); color: var(--sky); font-size: 13px; white-space: nowrap; padding-top: 3px; }
.trust-list .tv strong { color: #fff; font-family: var(--font-display); font-weight: 600; display: block; margin-bottom: 3px; }
.trust-list .tv span { color: var(--muted-d); font-size: 15px; }

/* ---------- industries ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.ind {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative; overflow: hidden;
}
.ind::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.ind:hover::before { transform: scaleX(1); }
.ind .ico { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.ind h3 { font-size: 20px; color: var(--ink); margin: 14px 0 10px; }
.ind p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- shop / how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.step .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--signal); }
.step h3 { font-size: 20px; color: var(--ink); margin: 12px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.cat h4 { font-size: 17px; color: var(--ink); }
.cat p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.cat .btn-wa { align-self: flex-start; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; left: -10%; bottom: -40%;
  width: 50vw; height: 50vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, rgba(121,180,225,.18), transparent 62%);
}
.cta .wrap { position: relative; z-index: 1; text-align: center; }
.cta h2 { color: #fff; font-size: clamp(30px, 5vw, 52px); max-width: 18ch; margin-inline: auto; }
.cta p { color: var(--muted-d); margin: 20px auto 34px; max-width: 50ch; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--petrol-2); color: var(--muted-d); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 40px; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; font-weight: 500; }
.foot-grid a, .foot-grid p { color: var(--muted-d); font-size: 15px; }
.foot-grid a { display: block; padding: 5px 0; }
.foot-grid a:hover { color: var(--sky); }
.foot-brand img { height: 74px; width: auto; display: block; }
.foot-brand .mark { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: #fff; border-bottom: 3px solid var(--sky); padding-bottom: 3px; }
.foot-brand p { margin-top: 18px; max-width: 34ch; }
.foot-bottom { border-top: 1px solid var(--line-d); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 120;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- page hero (interior pages) ---------- */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px); opacity:.6; }
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 92px); }
.page-hero h1 { font-size: clamp(34px, 6vw, 60px); color: #fff; max-width: 18ch; }
.page-hero p { color: var(--muted-d); max-width: 56ch; margin-top: 18px; font-size: clamp(16px,2vw,19px); }

/* ---------- prose / detail blocks ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(24px, 3.4vw, 34px); color: var(--ink); margin-top: 48px; margin-bottom: 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); margin: 0 0 18px; }
.prose p.muted { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }

/* detailed service list */
.svc-detail { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.svc-row .rn { font-family: var(--font-mono); color: var(--signal); font-size: 14px; padding-top: 4px; }
.svc-row h3 { font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.svc-row p { margin: 0; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,64px); }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-card h3 { color: var(--ink); font-size: 20px; margin-bottom: 20px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .il { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); width: 92px; flex: none; padding-top: 3px; }
.info-row .iv { color: var(--ink); }
.info-row .iv a:hover { color: var(--petrol); }

.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 16px; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* focus visibility */
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .status { grid-template-columns: repeat(2, 1fr); }
  .status .cell:nth-child(2) { border-right: 0; }
  .status .cell:nth-child(1), .status .cell:nth-child(2) { border-bottom: 1px solid var(--line-d); }
  .band .band-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .steps, .cats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 24px;
  }
  .nav-links.open a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
  .grid-services, .status, .grid-3, .steps, .cats, .foot-grid { grid-template-columns: 1fr; }
  .status .cell { border-right: 0 !important; border-bottom: 1px solid var(--line-d); }
  .hero h1 { font-size: clamp(34px, 11vw, 52px); }
  .foot-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
