/* =========================================
   INFOMAAT DESIGN SYSTEM · Web Adaptation
   ========================================= */
:root {
  /* Brand */
  --im-blue: #1B6FB8; --im-blue-700: #155A96; --im-blue-100: #DCEAF6; --im-blue-050: #EEF5FB;
  --im-orange: #F08A24; --im-orange-700: #C86E12; --im-orange-100: #FDE6D0; --im-orange-050: #FDF3E8;
  --im-teal: #4FB8B8; --im-teal-700: #2F9090; --im-teal-100: #D9EFEF;
  /* Neutrals */
  --im-cream: #F5F2ED; --im-cream-deep: #ECE7DE; --im-paper: #FAF8F4;
  --im-line: #E2DCD0; --im-ink: #2A2A2A; --im-ink-soft: #6B6B6B; --im-ink-mute: #9A9590;
  /* Semantic */
  --im-warning: #D97706; --im-warning-bg: #FEF3E2;
  --im-success: #2F9090; --im-success-bg: #E5F2F2;
  --im-danger: #B83A3A; --im-danger-bg: #F8E5E5;
  /* Spacing (base-4) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  /* Radii & Shadows */
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(42,42,42,.06), 0 1px 1px rgba(42,42,42,.04);
  --shadow-md: 0 4px 12px rgba(42,42,42,.08), 0 1px 2px rgba(42,42,42,.04);
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', Manrope, Inter, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--im-cream);
  color: var(--im-ink);
  font-family: var(--font-sans);
  font-size: 18px; /* Web base (slide usa 24px) */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--im-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--im-blue-700); }
img, svg { max-width: 100%; display: block; }

/* Container */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s-6); }

/* Header */
.site-header { background: var(--im-cream); padding: var(--s-5) 0; border-bottom: 1px solid var(--im-line); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; color: var(--im-blue); letter-spacing: -0.02em; }
.nav { display: flex; gap: var(--s-5); }
.nav-link { font-weight: 600; color: var(--im-ink-soft); font-size: 16px; }
.nav-link:hover, .nav-link.active { color: var(--im-blue); }

/* Hero */
.hero { padding: var(--s-9) 0 var(--s-8); animation: fadeInUp 0.8s ease-out; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--im-blue); display: block; margin-bottom: var(--s-4); }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance; margin-bottom: var(--s-5); }
.subtitle { font-size: 20px; color: var(--im-ink-soft); max-width: 750px; margin-bottom: var(--s-7); text-wrap: pretty; }

/* Buttons */
.btn { display: inline-block; padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); font-weight: 600; transition: all 0.25s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--im-orange); color: var(--im-cream); }
.btn-primary:hover { background: var(--im-orange-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--im-blue); border: 2px solid var(--im-blue); }
.btn-secondary:hover { background: var(--im-blue-050); }

/* Features Grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-6); padding: var(--s-8) 0; }
.card { background: var(--im-paper); padding: var(--s-7); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border-left: 8px solid transparent; transition: transform 0.3s ease, box-shadow 0.3s ease; animation: fadeInUp 0.8s ease-out backwards; }
.card:nth-child(1) { animation-delay: 0.1s; } .card:nth-child(2) { animation-delay: 0.2s; } .card:nth-child(3) { animation-delay: 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-blue { border-left-color: var(--im-blue); } .card-teal { border-left-color: var(--im-teal); } .card-orange { border-left-color: var(--im-orange); }
.card-title { font-size: 26px; font-weight: 700; margin-bottom: var(--s-3); line-height: 1.25; }
.card p { color: var(--im-ink-soft); line-height: 1.6; }

/* Courses Page */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-5); padding: var(--s-7) 0 var(--s-9); }
.course-card { background: var(--im-paper); padding: var(--s-6); border-radius: var(--r-lg); border-left: 6px solid var(--im-line); transition: all 0.25s; }
.course-card:hover { border-left-color: var(--im-blue); box-shadow: var(--shadow-sm); }
.course-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--im-ink-mute); display: block; margin-bottom: var(--s-2); }
.course-title { font-size: 22px; font-weight: 700; margin-bottom: var(--s-3); }

/* Contact Form */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); padding: var(--s-8) 0; }
.form-group { margin-bottom: var(--s-5); }
.form-label { display: block; font-weight: 600; margin-bottom: var(--s-2); color: var(--im-ink-soft); font-size: 15px; }
.form-input, .form-textarea {
  width: 100%; padding: var(--s-3) var(--s-4); border: 1px solid var(--im-line); border-radius: var(--r-md);
  background: var(--im-paper); color: var(--im-ink); font-family: var(--font-sans); font-size: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--im-blue); box-shadow: 0 0 0 3px var(--im-blue-100); }
.form-textarea { min-height: 150px; resize: vertical; }
.contact-info { background: var(--im-paper); padding: var(--s-7); border-radius: var(--r-lg); }
.contact-info h3 { font-size: 24px; margin-bottom: var(--s-4); }
.contact-info p { margin-bottom: var(--s-3); color: var(--im-ink-soft); }

/* Footer (7.8 spec) */
.site-footer { background: var(--im-cream-deep); padding: var(--s-6) 0; border-top: 1px solid var(--im-line); margin-top: var(--s-9); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-4); align-items: center; }
.footer-left { display: flex; align-items: center; gap: var(--s-3); }
.footer-logo { font-weight: 800; color: var(--im-ink); font-size: 16px; }
.footer-divider { width: 1px; height: 18px; background: var(--im-line); }
.footer-copy { font-size: 13px; color: var(--im-ink-soft); }
.footer-counter { font-family: var(--font-mono); font-weight: 700; color: var(--im-blue); font-size: 14px; }
.footer-url { font-size: 14px; font-weight: 600; color: var(--im-ink-soft); text-align: right; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .container { flex-direction: column; gap: var(--s-4); }
  .nav { gap: var(--s-4); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: var(--s-3); }
  .footer-left, .footer-right { justify-content: center; }
}
