/* ================================================================
   HYL Logistics - Main CSS
   Contains: CSS Variables, Base Resets, Typography, Utilities
   ================================================================ */

/* CSS Custom Properties (Variables) */
:root {
    /* Colors - Dark Blue + Orange Theme */
    --color-primary-dark: #1a2332;
    --color-primary-medium: #2c3e50;
    --color-accent: #ff6b35;
    --color-accent-hover: #e55a2b;
    --color-text-dark: #2c3e50;
    --color-text-muted: #7f8c8d;
    --color-bg-white: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-border: #e0e0e0;

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /*--font-family-base: 'Calps', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;*/
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing System */
    --spacing-xs: 0.5rem; /* 8px */
    --spacing-sm: 1rem; /* 16px */
    --spacing-md: 2rem; /* 32px */
    --spacing-lg: 4rem; /* 64px */
    --spacing-xl: 6rem; /* 96px */

    /* Responsive Section Spacing (overridden in media queries) */
    --section-padding: var(--spacing-xl);       /* 96px desktop */
    --section-title-mb: var(--spacing-md);      /* 64px desktop */
    --section-content-mt: var(--spacing-lg);    /* 64px desktop */
    --grid-gap-lg: var(--spacing-lg);           /* 64px desktop */
    --grid-gap-md: var(--spacing-md);           /* 40px desktop */
    --grid-gap-sm: var(--spacing-sm);           /* 24px desktop */
    --card-padding: var(--spacing-sm);          /* 32px desktop */
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@font-face {
    font-family: 'Calps';
    src: url('/assets/fonts/calps-bold/calps-bold.woff2') format('woff2'), url('/assets/fonts/calps-bold/calps-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

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

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--color-accent);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--section-padding) 0;
}

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

.text-muted {
  color: var(--color-text-muted);
}

/* Responsive Spacing - Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  :root {
    --section-padding: 4rem;          /* 64px tablet */
    --section-title-mb: 2.5rem;       /* 40px tablet */
    --section-content-mt: 2.5rem;     /* 40px tablet */
    --grid-gap-lg: 2.5rem;            /* 40px tablet */
    --card-padding: 1.5rem;           /* 24px tablet */
  }
}

/* Responsive Spacing - Mobile (≤768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: 2rem;          /* 32px mobile */
    --section-title-mb: 0.75rem;      /* 12px mobile */
    --section-content-mt: 1rem;       /* 16px mobile */
    --grid-gap-lg: 1rem;              /* 16px mobile */
    --card-padding: 1rem;             /* 16px mobile */
  }

  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* Focus Styles for Accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
