/* =========================================================
   IBE SOLTECH — Global Styles
   Palette inspired by the logo (navy + green + binary blue)
   ========================================================= */

:root {
  --navy:        #0d2150;
  --navy-2:      #16357a;
  --navy-deep:   #08163a;
  --green:       #2f9e44;
  --green-2:     #38b04e;
  --green-deep:  #237a33;
  --sky:         #4a90d9;
  --ink:         #0f1729;
  --muted:       #5b6677;
  --line:        #e7ebf2;
  --bg:          #ffffff;
  --bg-soft:     #f5f8fc;
  --bg-dark:     #0a1430;
  --white:       #ffffff;

  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 18px 50px -22px rgba(13, 33, 80, .35);
  --shadow-sm:   0 8px 24px -14px rgba(13, 33, 80, .35);

  --maxw:        1180px;
  --ease:        cubic-bezier(.22, .61, .36, 1);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy);
  letter-spacing: -.02em;
  font-weight: 800;
}

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

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

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.section-head p {
  font-size: 1.06rem;
}

.bg-soft { background: var(--bg-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .96rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(47, 158, 68, .8);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 16px 0;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px -16px rgba(13,33,80,.5);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; transition: filter .3s; }
/* On the dark transparent header (top of page) the navy logo is hard to see,
   so render it in white. Restore original brand colors once the header
   turns white on scroll. */
.site-header:not(.scrolled) .brand img { filter: brightness(0) invert(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  padding: 9px 14px;
  border-radius: 10px;
  transition: color .2s, background .2s;
}
.site-header:not(.scrolled) .nav-links a { color: #eaf0fb; }
.site-header:not(.scrolled) .brand .brand-text { color: #fff; }
.nav-links a:hover,
.nav-links a.active { color: var(--green-2); }
.site-header.scrolled .nav-links a:hover,
.site-header.scrolled .nav-links a.active { color: var(--green); }

.nav-tools { display: flex; align-items: center; gap: 10px; }

/* Language switch */
.lang-switch {
  display: inline-flex;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 999px;
  overflow: hidden;
  font-size: .8rem;
  font-weight: 700;
}
.site-header.scrolled .lang-switch { border-color: var(--line); }
.lang-switch button {
  background: transparent;
  border: 0;
  color: #eaf0fb;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.site-header.scrolled .lang-switch button { color: var(--navy); }
.lang-switch button.active {
  background: var(--green);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 42px; height: 42px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px;
  width: 24px; height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s, opacity .2s;
}
.nav-toggle span { top: 20px; color: #fff; }
.site-header.scrolled .nav-toggle span,
.site-header.scrolled .nav-toggle span::before,
.site-header.scrolled .nav-toggle span::after { color: var(--navy); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1200px 700px at 78% 10%, rgba(74,144,217,.25), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(47,158,68,.18), transparent 55%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, #0b2566);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 3;
  padding-top: 90px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--green-2), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  color: #c7d4ec;
  font-size: 1.18rem;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-size: 2rem;
  color: #fff;
  font-weight: 800;
}
.hero-stats .stat span { color: #9fb2d6; font-size: .9rem; }

/* Typing tagline */
.typing {
  min-height: 1.6em;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  color: var(--green-2);
  font-size: 1rem;
  letter-spacing: .02em;
  margin-bottom: 20px;
}
.typing .cursor {
  display: inline-block;
  width: 9px;
  background: var(--green-2);
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Animated globe */
.hero-visual { position: relative; display: grid; place-items: center; }
.globe {
  position: relative;
  width: min(420px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(74,144,217,.55), transparent 60%),
    radial-gradient(circle at 70% 75%, rgba(47,158,68,.4), transparent 60%),
    radial-gradient(circle at 50% 50%, #103067, #0a1d45 70%);
  box-shadow: inset 0 0 80px rgba(0,0,0,.5), 0 30px 80px -30px rgba(74,144,217,.6);
  animation: float 7s ease-in-out infinite;
}
.globe::before,
.globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(122,170,235,.28);
  animation: spin 18s linear infinite;
}
.globe::after {
  inset: 14%;
  border-color: rgba(56,176,78,.3);
  animation-duration: 12s;
  animation-direction: reverse;
}
.globe .ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.18);
  transform: rotateX(72deg);
  animation: spin 22s linear infinite;
}
.globe .ring.r2 { inset: 22%; animation-duration: 16s; animation-direction: reverse; border-color: rgba(56,176,78,.35); }
.globe .bits {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: rgba(150,195,250,.55);
  letter-spacing: 3px;
  line-height: 1.9;
  padding: 8%;
  opacity: .7;
  mask-image: radial-gradient(circle, #000 55%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 78%);
  animation: drift 9s ease-in-out infinite;
}
.globe .bits b { color: var(--green-2); font-weight: 400; }
.globe .core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: .05em;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
}
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-16px); } }
@keyframes drift { 50% { transform: translateY(-8px); } }

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; width: 100%;
  z-index: 2; line-height: 0;
}
.hero-wave svg { width: 100%; height: 90px; display: block; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(47,158,68,.4);
}
.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(47,158,68,.15), rgba(74,144,217,.15));
  color: var(--green);
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; }
.card p { margin-bottom: 0; font-size: .98rem; }

/* ---------- Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.feature-list { list-style: none; margin: 24px 0 0; padding: 0; }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .check {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(47,158,68,.14);
  color: var(--green);
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 800;
  margin-top: 2px;
}
.media-card {
  border-radius: var(--radius);
  padding: 48px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(74,144,217,.3), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.media-card h3 { color: #fff; font-size: 1.5rem; }
.media-card p { color: #c7d4ec; }
.code-window {
  margin-top: 24px;
  background: rgba(4,12,33,.7);
  border: 1px solid rgba(122,170,235,.25);
  border-radius: 12px;
  font-family: ui-monospace, monospace;
  font-size: .82rem;
  overflow: hidden;
}
.code-window .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(122,170,235,.2); }
.code-window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f56; }
.code-window .bar i:nth-child(2){ background:#ffbd2e;}
.code-window .bar i:nth-child(3){ background:#27c93f;}
.code-window pre { margin: 0; padding: 16px 18px; color: #c7d4ec; line-height: 1.7; white-space: pre-wrap; }
.code-window .k { color: #7aa6ff; }
.code-window .s { color: #6ee787; }
.code-window .c { color: #6b7a99; }

/* ---------- Steps / Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-weight: 800;
  font-size: 1.6rem;
  color: rgba(47,158,68,.35);
}
.step h3 { font-size: 1.1rem; margin-top: 6px; }
.step p { font-size: .92rem; margin: 0; }

/* ---------- Stats band ---------- */
.band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.band .num { font-size: 2.6rem; font-weight: 800; color: #fff; }
.band .num .green { color: var(--green-2); }
.band p { color: #b9c8e6; margin: 0; font-size: .95rem; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(47,158,68,.22), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy));
  border-radius: var(--radius);
  padding: 72px 32px;
  color: #fff;
}
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta p { color: #c7d4ec; max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #aebbd6;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a { color: #aebbd6; transition: color .2s; }
.site-footer a:hover { color: var(--green-2); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-brand img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { color: #8fa0c2; font-size: .92rem; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .94rem; }
.contact-line svg { flex: none; width: 18px; height: 18px; color: var(--green-2); margin-top: 3px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .85rem; color: #7787a8;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
}
.socials a:hover { background: var(--green); color: #fff; }
.socials svg { width: 18px; height: 18px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 150px 0 80px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(74,144,217,.3), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: #fff;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-hero p { color: #c7d4ec; max-width: 640px; margin: 0 auto; font-size: 1.12rem; }
.breadcrumb { font-size: .85rem; color: #9fb2d6; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--green-2); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(47,158,68,.16), rgba(74,144,217,.16));
  color: var(--green); display: grid; place-items: center;
}
.info-item h4 { margin: 0 0 3px; font-size: 1rem; }
.info-item p { margin: 0; font-size: .95rem; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(47,158,68,.12);
}
.form-note { font-size: .82rem; color: var(--muted); }
.field-error {
  font-size: .8rem;
  color: #d92d20;
  min-height: 1em;
  display: none;
}
.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: #d92d20;
  box-shadow: 0 0 0 4px rgba(217,45,32,.1);
}
.field.invalid .field-error { display: block; }
.map-embed { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Values ---------- */
.value { text-align: center; padding: 30px 22px; }
.value .vic {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -14px rgba(47,158,68,.8);
}
.value .vic svg { width: 30px; height: 30px; }

/* ---------- Mission/Vision cards ---------- */
.mv-card { padding: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.mv-card .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--green); margin-bottom: 14px;
  text-transform: uppercase; font-size: .8rem; letter-spacing: .12em;
}
.mv-card h3 { font-size: 1.5rem; }
.mv-card p { margin: 0; font-size: 1.02rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- i18n visibility ---------- */
[data-lang-show]{ display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav-links {
    position: fixed;
    inset: 72px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s, opacity .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { color: var(--navy) !important; }
  .nav-toggle { display: block; }
  .nav-toggle span { color: #fff; }
  .grid-3, .grid-2, .steps, .band, .footer-grid { grid-template-columns: 1fr; }
  .media-card, .mv-card, .cta { padding: 32px 24px; }
}
