/* ============================================
   MHichri Consulting — Design System
   ============================================ */

:root {
  --bg: #0a0e1a;
  --bg-alt: #0d1220;
  --surface: #121a2c;
  --surface-2: #17203696;
  --border: #232c42;
  --text: #e9edf5;
  --text-muted: #96a2c0;
  --text-faint: #7c87a3;
  --accent: #22d3ee;
  --accent-strong: #67e8f9;
  --accent-dim: #0e7490;
  --accent-2: #818cf8;
  --success: #34d399;
  --danger: #f87171;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --max-width: 1180px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

section { position: relative; }

/* Background texture: subtle grid + glow */
.bg-grid {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.glow-cyan { background: #22d3ee; }
.glow-indigo { background: #6366f1; }

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  color: #04141a;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.5);
}
.btn-primary:hover { box-shadow: 0 14px 34px -8px rgba(34, 211, 238, 0.65); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-whatsapp {
  background: #1fae5a;
  color: #fff;
}
.btn-whatsapp:hover { background: #199249; }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ============================================
   Header / Nav
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; flex-shrink: 0; }
.logo img { height: 38px; width: 38px; }
.logo span { line-height: 1.1; }
.logo em { font-style: normal; color: var(--accent); font-weight: 700; }
.logo small { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); color: #04141a; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.2s ease; }

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 90px 0 100px;
  overflow: hidden;
}

.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }

.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: 1.15rem; color: var(--text-muted); max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust div { font-size: 0.82rem; color: var(--text-faint); }
.hero-trust strong { display: block; color: var(--text); font-size: 1.4rem; font-weight: 700; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(155deg, var(--surface), var(--bg-alt));
  padding: 32px;
  min-height: 380px;
}

.hero-visual .node {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}
.hero-visual .node .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 12px var(--accent); }
.hero-visual .node span { color: var(--text-muted); }
.hero-visual .node strong { color: var(--text); font-weight: 600; }

/* ============================================
   Cards / Grids
   ============================================ */

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.35); }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.card .icon svg { width: 26px; height: 26px; flex-shrink: 0; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.card ul li { font-size: 0.88rem; color: var(--text-muted); display: flex; gap: 8px; align-items: flex-start; }
.card ul li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* Section band */
.band {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}
.band-alt { background: var(--bg-alt); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 28px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat span { font-size: 0.85rem; color: var(--text-muted); }

/* Testimonials */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial .stars { color: var(--accent); letter-spacing: 2px; }
.testimonial p { color: var(--text-muted); font-style: italic; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #04141a; font-size: 0.85rem; flex-shrink: 0;
}
.testimonial .who strong { display: block; font-size: 0.9rem; }
.testimonial .who small { color: var(--text-faint); }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 60px;
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(99,102,241,0.12));
  border: 1px solid rgba(34,211,238,0.25);
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 30px; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ============================================
   Page header (inner pages)
   ============================================ */

.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--accent); }
.page-header p { color: var(--text-muted); max-width: 620px; margin-top: 16px; font-size: 1.05rem; }

/* ============================================
   Tables / lists (program, pricing)
   ============================================ */

.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-list .item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: var(--surface);
}
.info-list .item span { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 6px; }
.info-list .item strong { font-size: 1rem; }

.program-module {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 26px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
}
.program-module .num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(34,211,238,0.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.program-module h4 { margin-bottom: 6px; }
.program-module p { color: var(--text-muted); font-size: 0.92rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Small inline icon used inside text (badges, notes, footer line) */
.icon-inline {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ============================================
   Forms
   ============================================ */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field fieldset { border: none; padding: 0; margin: 0; }
.field legend { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text); padding: 0; }
.field .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 6px; }

.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio-option:hover { border-color: rgba(34,211,238,0.4); }
.radio-option input { width: auto; accent-color: var(--accent); }
.radio-option span { font-size: 0.92rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success .icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--text-muted); max-width: 440px; margin: 0 auto; }

.form-error {
  display: none;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.form-error strong { color: var(--danger); display: block; margin-bottom: 6px; }
.form-error a { color: var(--danger); text-decoration: underline; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Contact split */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; }
.contact-info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 36px;
  height: fit-content;
}
.contact-info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-info-row:last-of-type { border-bottom: none; }
.contact-info-row .ic {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(34,211,238,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-row .ic svg { width: 20px; height: 20px; }
.contact-info-row strong { display: block; font-size: 0.9rem; }
.contact-info-row span, .contact-info-row a { font-size: 0.88rem; color: var(--text-muted); }
.contact-info-row a:hover { color: var(--accent); }

/* ============================================
   Team / About
   ============================================ */

.value-row { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 26px; }
.value-row .ic {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: rgba(34,211,238,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.value-row .ic svg { width: 22px; height: 22px; }
.value-row h4 { margin-bottom: 6px; }
.value-row p { color: var(--text-muted); font-size: 0.92rem; }

.timeline { border-left: 2px solid var(--border); padding-left: 28px; display: flex; flex-direction: column; gap: 34px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.15);
}
.timeline-item strong { color: var(--accent); font-size: 0.85rem; display: block; margin-bottom: 4px; }

/* ============================================
   Footer
   ============================================ */

.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin: 16px 0 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-muted);
  transition: border-color .15s ease, color .15s ease;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

.footer-links h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 18px; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ============================================
   WhatsApp floating button
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #04140b;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.02); }
.whatsapp-float svg { width: 20px; height: 20px; flex-shrink: 0; }
.whatsapp-float .wa-label { white-space: nowrap; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm.hide-mobile { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .whatsapp-float .wa-label { display: none; }
  .whatsapp-float { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 28px 22px; }
}
