/* ============================================================
   PLANET HAULAGE SOLUTIONS - Global Design System
   planethaulagesolutions.name.ng
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Colors */
  --primary:        hsl(214, 90%, 22%);
  --primary-light:  hsl(214, 80%, 35%);
  --accent:         hsl(33, 95%, 50%);
  --accent-light:   hsl(40, 100%, 62%);
  --accent-dark:    hsl(28, 90%, 38%);
  --surface:        hsl(222, 25%, 8%);
  --surface-2:      hsl(222, 22%, 13%);
  --surface-3:      hsl(222, 18%, 18%);
  --surface-card:   hsl(222, 20%, 15%);
  --text:           hsl(210, 20%, 94%);
  --text-muted:     hsl(220, 12%, 62%);
  --text-dim:       hsl(220, 10%, 45%);
  --success:        hsl(145, 55%, 42%);
  --success-light:  hsl(145, 55%, 55%);
  --border:         hsl(220, 18%, 22%);
  --border-light:   hsl(220, 15%, 28%);
  --glass-bg:       hsla(222, 25%, 12%, 0.7);
  --glass-border:   hsla(210, 30%, 60%, 0.12);

  /* Typography */
  --font-display:   'Outfit', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-accent:    'Space Grotesk', sans-serif;

  /* Font sizes (fluid) */
  --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;
  --text-7xl:       4.5rem;

  /* 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;
  --space-32:  8rem;

  /* Layout */
  --container-max:  1200px;
  --container-wide: 1400px;
  --radius-sm:      0.375rem;
  --radius-md:      0.625rem;
  --radius-lg:      1rem;
  --radius-xl:      1.5rem;
  --radius-2xl:     2rem;
  --radius-full:    9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px hsla(0,0%,0%,0.3);
  --shadow-md:  0 4px 16px hsla(0,0%,0%,0.4);
  --shadow-lg:  0 8px 32px hsla(0,0%,0%,0.5);
  --shadow-xl:  0 20px 60px hsla(0,0%,0%,0.6);
  --shadow-accent: 0 8px 32px hsla(33,95%,50%,0.25);
  --shadow-glow:   0 0 40px hsla(33,95%,50%,0.15);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34,1.56,0.64,1);

  /* Z-index layers */
  --z-below:    -1;
  --z-base:      0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-modal:    300;
  --z-toast:    400;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

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

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

/* ─── Typography Scale ───────────────────────────────────── */
.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.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-6xl   { font-size: var(--text-6xl); }

.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
.font-accent  { font-family: var(--font-accent); }

.font-light    { font-weight: 300; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-black    { font-weight: 900; }

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

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

.leading-tight  { line-height: 1.1; }
.leading-snug   { line-height: 1.3; }
.leading-normal { line-height: 1.5; }
.leading-relaxed{ line-height: 1.75; }

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

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Section spacing */
.section {
  padding-block: var(--space-24);
}

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

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

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

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

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

/* ─── Background Utilities ───────────────────────────────── */
.bg-surface   { background-color: var(--surface); }
.bg-surface-2 { background-color: var(--surface-2); }
.bg-surface-3 { background-color: var(--surface-3); }
.bg-primary   { background-color: var(--primary); }
.bg-accent    { background-color: var(--accent); }

/* Grain texture overlay */
.bg-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Dark overlay for images */
.overlay {
  position: relative;
}
.overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    hsla(222,30%,6%,0.6) 0%,
    hsla(222,30%,6%,0.4) 40%,
    hsla(222,30%,6%,0.8) 100%
  );
  z-index: 1;
}
.overlay > * { position: relative; z-index: 2; }

/* ─── Gradient Utilities ─────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
}

.gradient-surface {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

/* ─── Section Title Pattern ──────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* centered variant */
.text-center .section-subtitle {
  margin-inline: auto;
}

.text-center .section-label {
  justify-content: center;
}
.text-center .section-label::before {
  display: none;
}
.text-center .section-label::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-block: var(--space-12);
}

/* ─── Responsive Breakpoints ─────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: var(--space-20); }
}

@media (max-width: 768px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-16); }

  .container,
  .container-wide {
    padding-inline: var(--space-5);
  }
}

@media (max-width: 480px) {
  .section { padding-block: var(--space-12); }
  .container,
  .container-wide {
    padding-inline: var(--space-4);
  }
}
