/* ============================================================
   INDO POMPA — main.css
   Design Tokens, Reset, Base Typography, Layout, Utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ─── Design Tokens ─── */
:root {
  /* Layout */
  --ticker-h: 40px;
  --navbar-h: 72px;
  --container-max: 1240px;
  --container-pad: 24px;

  /* Brand Colors — per Indo Pompa Brand Guidelines v1.0 */
  --blue-primary: #1E73D8;
  --blue-mid: #1557B0;
  --blue-dark: #0B1F3A;
  --blue-light: #6FB6FF;
  --blue-xlight: #EBF4FF;

  --red-primary: #C5162E;
  --red-dark: #8B1020;
  --red-xlight: #FDECEE;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F7F9FC;
  --gray-100: #F1F5F9;
  --gray-200: #E5E9F0;
  --gray-300: #CBD5E1;
  --border: #E3E8EF;

  --text-primary: #11233A;
  --text-secondary: #4A5A6E;
  --text-muted: #8593A4;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 28px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16,35,58,0.06);
  --shadow-md: 0 4px 14px rgba(16,35,58,0.08);
  --shadow-lg: 0 12px 30px rgba(16,35,58,0.12);
  --shadow-xl: 0 22px 48px rgba(16,35,58,0.16);
  --shadow-blue: 0 8px 22px rgba(30,115,216,0.35);
  --shadow-red: 0 8px 22px rgba(197,22,46,0.32);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.28s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.34,1.56,0.64,1);

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Offset for fixed ticker + navbar */
  padding-top: calc(var(--ticker-h) + var(--navbar-h));
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, select, textarea { font: inherit; }

ul, ol { list-style: none; }

/* ─── Headings ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-base); }

p { text-wrap: pretty; }

strong, b { font-weight: 700; color: inherit; }
em { font-style: italic; }

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-10) 0; }
.bg-section { background: var(--gray-50); }

.section-header {
  max-width: 720px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section-header h2 { margin-bottom: var(--space-3); }

.section-header p {
  color: var(--text-muted);
  font-size: var(--text-lg);
}

/* ─── Eyebrow ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-primary);
  background: var(--blue-xlight);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

/* ─── Grids ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* ─── Utilities ─── */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-blue { color: var(--blue-primary); }
.font-semibold { font-weight: 600; }
.mt-2 { margin-top: var(--space-2); }
.mb-0 { margin-bottom: 0; }

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.22rem 0.62rem;
  border-radius: var(--radius-full);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
}

.badge-red { background: var(--red-primary); color: var(--white); }
.badge-blue { background: var(--blue-xlight); color: var(--blue-mid); }
.badge-green { background: #E7F7EF; color: #0F7A4D; }

/* ─── Selection ─── */
::selection { background: var(--blue-primary); color: var(--white); }

/* ─── Scrollbar (subtle) ─── */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
  border: 3px solid var(--gray-100);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
