/* ============================================================
   ASSEMBLY AUTOMATION ZONE — LIGHT THEME (Matches index.css)
   Scoped to .az-page — nothing leaks to other pages.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800&display=swap");

.az-page {
  /* Colors mapped from index(3).css */
  --az-bg: #ffffff;
  --az-bg-2: #f4f8fa;
  --az-card-bg: #ffffff;
  --az-border: #e2e8f0;
  --az-border-hi: #c7d6ea;

  --az-text-main: #0a1650;
  --az-dim: #475569;
  --az-faint: #64748b;

  --az-gold: #ffca05;
  --az-blue: #156dbd;
  
  /* Thematic dark blues from main site */
  --az-dark-bg: #042e4a;
  --az-dark-cta: #062d49;

  /* Button gradient matching main site */
  --az-grad-hot: linear-gradient(to right, #63005d, #01316f);
  --az-grad-hot-hover: linear-gradient(to left, #63005d, #01316f);

  --az-font: "Roboto", Arial, sans-serif;

  background: var(--az-bg);
  color: var(--az-text-main);
  font-family: var(--az-font);
  overflow-x: hidden;
}

/* ============================================================
   PRIMITIVES
   ============================================================ */
.az-container {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.az-page h1, .az-page h2, .az-page h3 {
  margin: 0;
  font-family: var(--az-font);
  font-weight: 700;
  color: var(--az-text-main);
  line-height: 1.15;
}

.az-page p { color: var(--az-dim); }

/* Tags / Pills */
.az-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--az-border);
  border-radius: 40px;
  background: var(--az-bg-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--az-blue);
}

.az-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--az-gold);
}

.az-tag-white {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Gradient text */
.az-grad-text {
  background: var(--az-grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section heads */
.az-head { max-width: 760px; margin-bottom: 35px; }
.az-head h2 { margin: 15px 0 12px; font-size: clamp(28px, 3vw, 46px); }
.az-head p { margin: 0; font-size: 16px; line-height: 1.6; }
.az-center { text-align: center; }
.az-head.az-center { margin-left: auto; margin-right: auto; }

/* Buttons */
.az-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--az-font);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.az-btn i { font-size: 14px; transition: transform 0.3s ease; }
.az-btn:hover i { transform: translateX(4px); }

.az-btn-primary {
  background: var(--az-grad-hot);
  color: #fff;
  box-shadow: 0 6px 12px rgba(30, 29, 91, 0.15);
}

.az-btn-primary:hover {
  background: var(--az-grad-hot-hover);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(30, 29, 91, 0.25);
}

.az-btn-glass {
  background: #fff;
  border: 1px solid var(--az-border-hi);
  color: var(--az-text-main);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.az-btn-glass:hover {
  background: var(--az-bg-2);
  border-color: var(--az-blue);
  color: var(--az-blue);
  transform: translateY(-4px);
}

.az-btn-gold {
  background: var(--az-gold);
  color: #08275a;
}

.az-btn-gold:hover {
  background: #ffd633;
  color: #08275a;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.az-btn-glass-white {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.az-btn-glass-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

/* Base Card Style (Replaces az-glass) */
.az-card {
  background: var(--az-card-bg);
  border: 1px solid var(--az-border);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.az-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: var(--az-border-hi);
}

/* Scroll reveal */
.az-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.az-reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   1. HERO
   ============================================================ */
.az-hero {
  position: relative;
  padding: 60px 0;
  background: var(--az-bg-2);
  overflow: hidden;
}

.az-hero-inner { position: relative; z-index: 2; }
.az-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.az-hero h1 { margin: 16px 0 16px; font-size: clamp(36px, 4vw, 54px); }
.az-hero h1 span { display: block; }
.az-hero-sub { max-width: 580px; margin: 0 0 15px; font-size: 16px; line-height: 1.7; }
.az-hero-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 25px; }

/* Hero panel */
.az-panel { padding: 25px; }
.az-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 15px; border-bottom: 1px solid var(--az-border);
  font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--az-faint);
}
.az-panel-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 15px;
  padding: 12px 0; border-bottom: 1px solid var(--az-border);
}
.az-panel-row:last-child { border-bottom: none; padding-bottom: 0; }
.az-panel-row dt { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--az-faint); padding-top: 3px; }
.az-panel-row dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--az-text-main); line-height: 1.4; }

/* ============================================================
   2. TICKER
   ============================================================ */
.az-ticker {
  padding: 15px 0;
  background: var(--az-dark-cta);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
}
.az-ticker-track { display: inline-flex; align-items: center; gap: 40px; animation: azTicker 30s linear infinite; }
.az-ticker:hover .az-ticker-track { animation-play-state: paused; }
.az-ticker span { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.az-ticker span::after { content: "◆"; margin-left: 40px; color: var(--az-gold); font-size: 10px; vertical-align: middle; }

@keyframes azTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   3. STATS
   ============================================================ */
.az-stats-section { padding: 40px 0; background: var(--az-bg); }
.az-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.az-stat {
  padding: 25px 15px;
  text-align: center;
  background: var(--az-dark-bg);
  border-radius: 12px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.az-stat:hover { transform: translateY(-6px); box-shadow: 0 13px 24px rgba(0, 32, 59, 0.2); }
.az-stat-num {
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 700;
  color: var(--az-gold);
  line-height: 1;
  margin-bottom: 8px;
}
.az-stat p { margin: 0; font-size: 15px; font-weight: 500; color: #fff; }

/* ============================================================
   4. STATEMENT
   ============================================================ */
.az-statement-section { padding: 60px 0; background: var(--az-bg-2); }
.az-statement { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.az-statement h2 { font-size: clamp(30px, 3.5vw, 46px); margin-top: 15px; }
.az-statement-body p { margin: 0 0 15px; font-size: 16px; line-height: 1.7; }
.az-statement-body p:last-child { margin-bottom: 0; }
.az-statement-body strong { color: var(--az-text-main); font-weight: 700; }

/* ============================================================
   5. ON SHOW 
   ============================================================ */
.az-show-section { padding: 60px 0; background: var(--az-bg); }
.az-show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.az-show-grid .az-card { padding: 30px 25px; }

.az-card-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--az-grad-hot);
  color: #fff; font-size: 20px;
  box-shadow: 0 4px 10px rgba(30, 29, 91, 0.2);
}

.az-show-grid h3 { font-size: 20px; margin-bottom: 10px; color: var(--az-text-main); }
.az-show-grid p { margin: 0; font-size: 15px; line-height: 1.6; }

.az-show-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; margin-top: 35px; }
.az-show-foot p { margin: 0; font-size: 13px; font-weight: 600; color: var(--az-faint); }

/* ============================================================
   6. REASONS
   ============================================================ */
.az-reasons-section { padding: 60px 0; background: var(--az-bg-2); }
.az-reasons-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.az-reason { display: flex; align-items: flex-start; gap: 20px; padding: 25px; }
.az-reason > i {
  flex-shrink: 0; width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #fff; border: 1px solid var(--az-border);
  color: var(--az-blue); font-size: 20px;
}
.az-reason h3 { font-size: 20px; margin-bottom: 10px; }
.az-reason p { margin: 0; font-size: 15px; line-height: 1.6; }

/* ============================================================
   7. VISITOR PROFILE
   ============================================================ */
.az-visitors-section { padding: 60px 0; background: var(--az-bg); }
.az-industries { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 35px; }
.az-industry {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--az-border); border-radius: 50px;
  background: var(--az-bg-2);
  font-size: 15px; font-weight: 600; color: var(--az-text-main);
  transition: all 0.3s ease;
}
.az-industry i { color: var(--az-blue); font-size: 16px; }
.az-industry:hover { background: #fff; border-color: var(--az-border-hi); transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.05); }
/* ============================================================
   8. CLOSING CTA
   ============================================================ */
.az-cta-section { padding: 20px 0 60px; background: var(--az-bg); }

.az-cta {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  text-align: center;
  padding: 55px 30px; 
  border-radius: 16px;
  background: var(--az-dark-cta);
  color: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.az-cta h2 { 
  max-width: 800px; 
  margin: 20px 0 15px; 
  font-size: clamp(30px, 3.5vw, 46px); 
  color: #fff; 
}

.az-cta-meta { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 10px 25px; 
  margin-bottom: 30px; 
  font-size: 14px; 
  font-weight: 600; 
  color: #cbd5e1; 
  text-transform: uppercase; 
}

.az-cta-meta i { color: var(--az-gold); margin-right: 8px; }

.az-cta-actions { display: flex; justify-content: center; }

/* Makes the single button slightly wider/taller for emphasis */
.az-cta-actions .az-btn { 
  padding: 16px 40px; 
  font-size: 17px; 
  width: max-content; 
}

.az-cta-tagline { 
  margin: 24px 0 0; 
  font-size: 13px; 
  font-weight: 700; 
  letter-spacing: 2px; 
  text-transform: uppercase; 
  color: #cbd5e1; 
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .az-hero-grid, .az-statement, .az-cta { grid-template-columns: 1fr; gap: 35px; }
  .az-panel { max-width: 600px; }
  .az-show-grid, .az-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .az-container { width: calc(100% - 32px); }
  .az-hero, .az-statement-section, .az-show-section, .az-reasons-section, .az-visitors-section { padding: 40px 0; }
  .az-stats-section { padding-top: 30px; }
  .az-cta-section { padding: 20px 0 40px; }
  .az-reasons-grid { grid-template-columns: 1fr; }
  .az-cta { padding: 35px 25px; }
  .az-head { margin-bottom: 25px; }
  .az-hero-actions .az-btn, .az-show-foot .az-btn { width: 100%; }
  .az-show-foot { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .az-show-grid, .az-stats-grid { grid-template-columns: 1fr; }
  .az-panel { padding: 20px; }
  .az-panel-row { grid-template-columns: 1fr; gap: 5px; padding: 12px 0; }
  .az-reason { flex-direction: column; gap: 15px; }
  .az-industry { font-size: 14px; padding: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .az-page *, .az-page *::before, .az-page *::after { animation: none !important; transition: none !important; }
  .az-reveal { opacity: 1; transform: none; }
}

/* ============================================================
   5b. WHAT'S ON SHOW — THE STATION LINE
   Six technology groups laid out in the order a part moves
   through an assembly line. The numbering is the content.
   ============================================================ */
.aaz-line {
  display: grid;
  grid-template-columns: 0.95fr 1.55fr;
  gap: 70px;
  align-items: start;
}

.aaz-line-intro { position: sticky; top: 110px; }
.aaz-line-intro h2 { margin: 15px 0 14px; font-size: clamp(28px, 3vw, 46px); }
.aaz-line-intro > p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; }

.aaz-line-note {
  margin: 0 0 26px !important;
  padding-left: 16px;
  border-left: 3px solid var(--az-gold);
  font-size: 15px !important;
  font-weight: 600;
  color: var(--az-text-main) !important;
}

/* --- The stations --- */
.aaz-stations {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: station;
}

.aaz-station {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 26px;
  padding-bottom: 38px;
}

.aaz-station:last-child { padding-bottom: 0; }

/* the rail running between markers */
.aaz-station:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 62px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--az-border-hi), var(--az-border));
}

.aaz-marker {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--az-dark-bg);
  color: var(--az-gold);
  font-family: var(--az-font);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(4, 46, 74, 0.22);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.aaz-station:hover .aaz-marker,
.aaz-station:focus-within .aaz-marker {
  background: var(--az-gold);
  color: var(--az-dark-bg);
  transform: translateY(-3px);
}

.aaz-station-body { padding-top: 4px; }

.aaz-station-body h3 {
  font-size: 21px;
  margin-bottom: 8px;
  color: var(--az-text-main);
}

.aaz-station-body p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
}

/* --- What's actually on the floor at that station --- */
.aaz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aaz-chips li {
  padding: 6px 13px;
  border: 1px solid var(--az-border);
  border-radius: 50px;
  background: var(--az-bg-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--az-dim);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.aaz-station:hover .aaz-chips li {
  border-color: var(--az-border-hi);
  color: var(--az-text-main);
}

@media (max-width: 1024px) {
  .aaz-line { grid-template-columns: 1fr; gap: 40px; }
  .aaz-line-intro { position: static; }
  .aaz-line-intro .az-btn { width: auto; }
}

@media (max-width: 560px) {
  .aaz-station { grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 30px; }
  .aaz-marker { width: 44px; height: 44px; font-size: 15px; border-radius: 8px; }
  .aaz-station:not(:last-child)::before { left: 21px; top: 52px; }
  .aaz-station-body h3 { font-size: 19px; }
  .aaz-line-intro .az-btn { width: 100%; }
}
