/* =============================================
   ALQU Rubber & Engineering Solutions
   main.css — Design tokens, reset, layout, typography
   ============================================= */

/* ─── Design Tokens ─────────────────────────── */
:root {
  /* Brand core */
  --color-brand-blue:   #1E8FE1;
  --color-black:        #000000;
  --color-white:        #FFFFFF;

  /* Blue tints */
  --color-blue-50:      #EBF5FC;
  --color-blue-100:     #B8DCEF;
  --color-blue-200:     #7BBFE3;
  --color-blue-400:     #1E8FE1;
  --color-blue-600:     #1566A3;
  --color-blue-900:     #0D3F66;

  /* Neutrals */
  --color-surface:      #F4F5F6;
  --color-border:       #D1D5DA;
  --color-muted:        #8A9199;
  --color-body:         #3D4349;
  --color-near-black:   #1A1D20;

  /* Accents */
  --color-ice-blue:     #E8F4FD;
  --color-orange:       #FF6B2B;
  --color-green:        #22C55E;
  --color-amber:        #F59E0B;

  /* Typography */
  --font-sans:          'Inter', 'DM Sans', system-ui, sans-serif;
  --font-mono:          'JetBrains Mono', 'Courier New', monospace;

  /* Type scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;

  /* 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-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders & Radii */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-blue: 0 4px 16px rgba(30,143,225,0.25);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Nav height */
  --nav-height: 70px;

  /* Container */
  --container-max: 1200px;
  --container-pad: var(--space-6);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-body);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-brand-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-600);
}

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-near-black);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }
.text-5xl   { font-size: var(--text-5xl); }

.text-muted     { color: var(--color-muted); }
.text-blue      { color: var(--color-brand-blue); }
.text-white     { color: var(--color-white); }
.text-near-black{ color: var(--color-near-black); }
.text-orange    { color: var(--color-orange); }

.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }

.text-center { text-align: center; }
.text-left   { text-align: left; }

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

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

/* Sections */
.section {
  padding-block: var(--space-16);
}

.section--sm {
  padding-block: var(--space-10);
}

.section--lg {
  padding-block: var(--space-24);
}

/* Backgrounds */
.bg-white     { background-color: var(--color-white); }
.bg-surface   { background-color: var(--color-surface); }
.bg-blue-50   { background-color: var(--color-blue-50); }
.bg-blue      { background-color: var(--color-brand-blue); }
.bg-dark      { background-color: var(--color-near-black); }
.bg-blue-900  { background-color: var(--color-blue-900); }

/* Grid */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Flex utilities */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* Spacing helpers */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --container-pad: var(--space-5);
  }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --container-pad: var(--space-4);
  }
  .section     { padding-block: var(--space-12); }
  .section--lg { padding-block: var(--space-16); }
  h1 { font-size: var(--text-2xl); }
  h2 { font-size: var(--text-xl); }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}
