/* ============================================================
   ARCTIC FORCE SNOW SOLUTIONS — GLOBAL STYLESHEET
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --color-dark:       #0a0f1e;
  --color-dark-mid:   #0d1530;
  --color-dark-light: #111827;
  --color-ford-blue:  #003478;
  --color-ice-white:  #e8f4fd;
  --color-ice-blue:   #00aaff;
  --color-amber:      #f0a500;
  --color-amber-dark: #d4920a;
  --color-text-dark:  #1a1a2e;
  --color-text-light: #8a9ab5;
  --color-white:      #ffffff;
  --color-card-bg:    #0f1a35;
  --color-border:     rgba(0, 170, 255, 0.15);

  --font-heading: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition:      all 0.3s ease;
  --transition-slow: all 0.5s ease;
  --shadow-card:     0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:     0 0 40px rgba(0, 170, 255, 0.2);
  --shadow-glow-amber: 0 0 40px rgba(240, 165, 0, 0.35);

  --border-radius:    8px;
  --border-radius-lg: 16px;

  --navbar-height:    80px;
  --section-padding:  100px 0;
  --container-max:    1280px;
  --container-padding: 0 40px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.6rem); }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-light);
}

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

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }
address { font-style: normal; }

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---- Sections ---- */
.section          { padding: var(--section-padding); }
.section-dark     { background-color: var(--color-dark); }
.section-darker   { background-color: var(--color-dark-mid); }
.section-darkest  { background-color: #070c1a; }

/* ---- Section Header ---- */
.section-header { text-align: center; margin-bottom: 64px; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-ice-blue);
  margin-bottom: 14px;
}

.section-title { color: var(--color-white); margin-bottom: 16px; }
.section-title span { color: var(--color-ice-blue); }

.section-subtitle {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--color-text-light);
}

/* ---- Divider ---- */
.divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-ice-blue), var(--color-ford-blue));
  margin: 0 auto 24px;
  border-radius: 2px;
}
.divider-left { margin-left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-amber {
  background: var(--color-amber);
  color: #0a0f1e;
  border-color: var(--color-amber);
}
.btn-amber:hover {
  background: #e09a00;
  border-color: #e09a00;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-amber);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-3px);
}

.btn-ice {
  background: var(--color-ice-blue);
  color: var(--color-dark);
  border-color: var(--color-ice-blue);
}
.btn-ice:hover {
  background: #0090e0;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 170, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ice-blue);
  border-color: var(--color-ice-blue);
}
.btn-ghost:hover {
  background: rgba(0,170,255,0.1);
  transform: translateY(-3px);
}

.btn-ford {
  background: var(--color-ford-blue);
  color: var(--color-white);
  border-color: var(--color-ford-blue);
}
.btn-ford:hover {
  background: #00286a;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 52, 120, 0.5);
}

/* ---- Cards ---- */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0, 170, 255, 0.4);
}

/* ---- Page Hero ---- */
.page-hero {
  padding: 160px 0 80px;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(7,11,22,0.88) 0%, rgba(0,52,120,0.55) 55%, rgba(7,11,22,0.80) 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-ice-blue), transparent);
  opacity: 0.3;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--color-white); margin-bottom: 16px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--color-ice-blue); }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb .sep { opacity: 0.4; }

/* ---- Icon Box ---- */
.icon-box {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 170, 255, 0.08);
  border: 1px solid rgba(0, 170, 255, 0.2);
  border-radius: 12px;
  font-size: 1.5rem;
  color: var(--color-ice-blue);
  margin-bottom: 24px;
  flex-shrink: 0;
  transition: var(--transition);
}
.card:hover .icon-box {
  background: rgba(0, 170, 255, 0.15);
  border-color: rgba(0, 170, 255, 0.5);
}

/* ---- Badge ---- */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge-amber  { background: rgba(240,165,0,0.15); color: var(--color-amber); border: 1px solid rgba(240,165,0,0.3); }
.badge-ice    { background: rgba(0,170,255,0.1);  color: var(--color-ice-blue); border: 1px solid rgba(0,170,255,0.3); }
.badge-green  { background: rgba(0,200,100,0.1);  color: #00c864; border: 1px solid rgba(0,200,100,0.3); }
.badge-ford   { background: rgba(0,52,120,0.2);   color: #6ba3e8; border: 1px solid rgba(0,52,120,0.4); }

/* ---- Grids ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* ---- Glow Text ---- */
.glow-text  { text-shadow: 0 0 60px rgba(0, 170, 255, 0.6); }
.glow-amber { text-shadow: 0 0 40px rgba(240, 165, 0, 0.6); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-ice    { color: var(--color-ice-blue) !important; }
.text-amber  { color: var(--color-amber) !important; }
.text-white  { color: var(--color-white) !important; }
.text-muted  { color: var(--color-text-light); }
.text-ford   { color: #6ba3e8; }

.d-flex       { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-16  { margin-top: 16px; }
.mt-32  { margin-top: 32px; }
.mb-16  { margin-bottom: 16px; }
.mb-32  { margin-bottom: 32px; }

/* ---- Horizontal Rule ---- */
.hr-ice {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,170,255,0.3), transparent);
  margin: 60px 0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-dark); }
::-webkit-scrollbar-thumb { background: var(--color-ford-blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-ice-blue); }

::selection { background: var(--color-ice-blue); color: var(--color-dark); }

/* ============================================================
   AOS FAILSAFE
   If AOS JS doesn't run (offline / CDN blocked / slow load),
   this CSS animation reveals elements after 1.5s so the page
   is never blank. When AOS DOES work, .aos-animate is added
   immediately and overrides this animation.
   ============================================================ */

@keyframes aosReveal {
  to { opacity: 1; transform: none; }
}

/* Applied to every AOS element that hasn't been animated yet */
[data-aos]:not(.aos-animate) {
  animation: aosReveal 0.5s ease 1.5s both;
}

/* When AOS works normally, clear the fallback animation */
[data-aos].aos-animate {
  animation: none;
  opacity: 1 !important;
  transform: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 24px;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --container-padding: 0 20px;
  }
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 40px; }
  .card { padding: 28px; }
  .btn { padding: 13px 24px; }
}

@media (max-width: 480px) {
  :root { --container-padding: 0 16px; }
}
