/**
 * Coyote Logistics
 * Main stylesheet - shared across all pages
 */

/* ==========================================================================
   CSS Custom Properties (Brand & Theme)
   ========================================================================== */
:root {
  /* Primary brand */
  --color-primary: #E09400;
  --color-primary-container: #F9A61A;
  --color-primary-fixed: #FFF3E0;
  --color-primary-fixed-dim: #FFE0B2;

  /* Surfaces */
  --color-surface: #f9f9f9;
  --color-surface-container: #eeeeee;
  --color-surface-container-low: #f3f3f3;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-high: #e8e8e8;
  --color-surface-variant: #e2e2e2;

  /* Text */
  --color-on-surface: #1a1c1c;
  --color-on-primary: #ffffff;
  --color-on-primary-container: #ffffff;
  --color-secondary: #5e5e5e;
  --color-outline-variant: #e2beba;

  /* Tertiary (accent) */
  --color-tertiary: #00496e;

  /* Typography */
  --font-headline: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing & layout */
  --max-width-content: 80rem; /* 1280px */
  --shadow-editorial: 0 20px 40px rgba(26, 28, 28, 0.06);
  --shadow-card: 0 4px 6px -1px rgba(26, 28, 28, 0.04), 0 2px 4px -2px rgba(26, 28, 28, 0.04);
  --shadow-card-hover: 0 20px 25px -5px rgba(26, 28, 28, 0.08), 0 8px 10px -6px rgba(26, 28, 28, 0.06);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ==========================================================================
   Third-party overrides (Material Symbols)
   ========================================================================== */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ==========================================================================
   Utility classes
   ========================================================================== */
.editorial-shadow {
  box-shadow: var(--shadow-editorial);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.shadow-card-hover:hover {
  box-shadow: var(--shadow-card-hover);
}

/* Shared navbar - consistent across all pages */
.glass-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   Base typography & readability
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Component styles
   ========================================================================== */
.btn-primary {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary);
}

/* Form focus states - accessible and professional */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: fixed;
  top: -100%;
  left: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary-container);
  color: var(--color-on-primary);
  font-weight: 600;
  z-index: 99999;
  transition: top 0.2s ease;
  border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Scroll reveal animations
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  main section,
  header.hero-slider {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  main section.is-visible,
  header.hero-slider.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Page-specific overrides (add section comments as you build)
   ========================================================================== */
