/* ============================================================
   EMS TEXTILES — base.css  v3 LIGHT REDESIGN
   Design Tokens · Reset · Typography · Layout
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Brand Design Tokens (Light Theme — ONLY) ─────────────── */
:root {
  /* Core brand palette */
  --blue-900:    #1e3a5f;
  --blue-800:    #1a4480;
  --blue-700:    #1a56db;
  --blue-600:    #1d6ee6;
  --blue-500:    #3b82f6;
  --blue-400:    #60a5fa;
  --blue-100:    #dbeafe;
  --blue-50:     #eff6ff;

  --cyan-500:    #0ea5e9;
  --cyan-400:    #38bdf8;
  --cyan-100:    #e0f2fe;

  --green-500:   #10b981;
  --green-100:   #d1fae5;

  --amber-500:   #f59e0b;
  --amber-100:   #fef3c7;

  --red-500:     #ef4444;
  --red-100:     #fee2e2;

  --purple-500:  #8b5cf6;
  --purple-100:  #ede9fe;

  /* Surfaces */
  --bg:          #ffffff;
  --bg-soft:     #f8faff;
  --bg-alt:      #f0f7ff;
  --surface:     #ffffff;
  --surface-2:   #f8faff;

  /* Text */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-xmuted:    #cbd5e1;

  /* Borders */
  --border:       rgba(15, 23, 42, 0.08);
  --border-md:    rgba(15, 23, 42, 0.12);
  --border-strong:rgba(15, 23, 42, 0.20);

  /* Brand shortcuts */
  --brand:        var(--blue-700);
  --brand-dark:   var(--blue-900);
  --brand-light:  var(--cyan-500);
  --brand-gradient: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
  --brand-gradient-soft: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(15,23,42,0.05);
  --shadow-sm:  0 1px 4px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 16px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg:  0 12px 40px rgba(15,23,42,0.10), 0 4px 12px rgba(15,23,42,0.05);
  --shadow-xl:  0 24px 60px rgba(15,23,42,0.12), 0 8px 20px rgba(15,23,42,0.06);
  --shadow-blue: 0 8px 32px rgba(26,86,219,0.20);
  --shadow-blue-lg: 0 16px 48px rgba(26,86,219,0.25);

  /* Spacing */
  --s1:  4px;  --s2:  8px;  --s3:  12px;
  --s4:  16px; --s5:  24px; --s6:  32px;
  --s7:  48px; --s8:  64px; --s9:  80px;
  --s10: 96px; --s11: 128px;

  /* Border radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  24px;
  --r-3xl:  32px;
  --r-full: 9999px;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast:  150ms;
  --dur-base:  250ms;
  --dur-slow:  400ms;
  --dur-reveal:600ms;

  /* Typography */
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  /* Nav */
  --nav-height:  72px;
  --nav-bg:      rgba(255,255,255,0.95);
  --nav-border:  rgba(15,23,42,0.07);
}

/* ── No system dark mode override — always light ──────────── */

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open { overflow: hidden; }

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
}

p { color: var(--text-secondary); }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s3);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--brand-gradient);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(100% - 40px, 1280px);
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 40px, 860px);
  margin-inline: auto;
}

.section {
  padding-block: var(--s10);
}

.section-heading {
  text-align: center;
  margin-bottom: var(--s8);
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: var(--s3);
}

.section-heading p {
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
  color: var(--text-secondary);
}

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.20) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.btn:hover::after { transform: translateX(100%); }
.btn:hover        { transform: translateY(-2px); }
.btn:active       { transform: translateY(0); }

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { box-shadow: var(--shadow-blue-lg); }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); box-shadow: none; }

.btn-white {
  background: #ffffff;
  color: var(--brand);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { box-shadow: var(--shadow-lg); }

.btn-sm { padding: 10px 20px; font-size: 0.8125rem; }
.btn-lg { padding: 18px 40px; font-size: 1.0625rem; }

/* ============================================================
   SIGNAL DOT
   ============================================================ */
.signal-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  flex-shrink: 0;
}
.signal-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  opacity: 0;
  animation: signalPulse 2s ease-out infinite;
}
.signal-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid #10b981;
  opacity: 0;
  animation: signalPulse 2s ease-out infinite 0.4s;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-brand {
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
}

/* ============================================================
   SURFACE / CARD
   ============================================================ */
.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--brand-gradient);
  z-index: 9999;
  transition: width 80ms linear;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .section { padding-block: var(--s8); }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 32px, 100%); }
}
