/* ===========================================================================
   Anchor India Automations — shared UI stylesheet
   ---------------------------------------------------------------------------
   NOTE ON !important
   The markup in this project sets colours and borders as INLINE styles
   (style="color:var(--text)"). An inline style always beats a stylesheet rule
   no matter how specific the selector, so a plain `:hover{color:...}` rule
   silently does nothing. The `!important` flags below are what actually let
   these hover states win. Do not remove them unless the matching inline
   colour/border is removed from the HTML at the same time.
   ========================================================================= */

body { margin: 0; }
a { color: inherit; text-decoration: none; }

@keyframes aia-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Skip link (keyboard + screen reader) -------------------------------- */
.aia-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--orange);
  color: #fff;
  padding: 12px 18px;
  font: 700 13px Arial, sans-serif;
}
.aia-skip:focus { left: 0; }

/* --- Solutions dropdown -------------------------------------------------- */
.aia-sol-link {
  padding: 11px 13px;
  font: 700 12.5px Arial, sans-serif;
  color: var(--text);
  border-radius: 3px;
  transition: color .15s ease, background-color .15s ease;
}
.aia-sol-link:hover,
.aia-sol-link:focus-visible {
  background: var(--panel2);
  color: var(--orange) !important;
  outline: none;
}
.aia-sol-link:focus-visible { box-shadow: inset 0 0 0 1px var(--orange); }

/* --- Nav + footer links -------------------------------------------------- */
.aia-nav-link { color: var(--text); transition: color .15s ease; }
.aia-nav-link:hover,
.aia-nav-link:focus-visible { color: var(--orange) !important; }

.aia-footer-link { transition: color .15s ease; }
.aia-footer-link:hover,
.aia-footer-link:focus-visible { color: var(--orange) !important; }

/* --- Equipment cards ----------------------------------------------------- */
/* Orange border + orange drop shadow on hover. border-color needs !important
   because the card carries an inline `border:1px solid var(--line)`. */
.aia-card {
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.aia-card:hover,
.aia-card:focus-within {
  border-color: var(--orange) !important;
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px var(--orange), 0 18px 42px rgba(239, 84, 35, .32);
}
.aia-card:hover .aia-card-title,
.aia-card:focus-within .aia-card-title { color: var(--orange) !important; }

.aia-card img,
.aia-hero-img img { transition: transform .5s ease; }
.aia-card:hover img,
.aia-card:focus-within img,
.aia-hero-img:hover img { transform: scale(1.06); }

/* --- Buttons and step markers -------------------------------------------- */
.aia-cta-btn { transition: transform .2s ease, box-shadow .2s ease; }
.aia-cta-btn:hover,
.aia-cta-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(239, 84, 35, .4); }

.aia-step-circle { transition: transform .2s ease, border-color .2s ease; }
.aia-step-circle:hover { transform: scale(1.1); border-color: var(--orange); }

/* --- Visible keyboard focus everywhere ----------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
  .aia-nav-links { display: none; }
  .aia-nav-links.open {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: #0a0c0e;
    padding: 26px 6vw 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    z-index: 20;
  }
  .aia-menu-btn { display: flex; }
  .aia-solutions-menu { position: static; padding-top: 8px; width: 100%; }
  .aia-solutions-panel { box-shadow: none; min-width: 0; width: 100%; }
}

@media (max-width: 640px) {
  .aia-footer { grid-template-columns: 1fr; text-align: center; gap: 26px; }
  .aia-footer-links { justify-content: center; }
  .aia-footer-nav { justify-content: center; }
}

/* --- Respect reduced-motion preferences ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .aia-card:hover, .aia-card:focus-within { transform: none; }
}

/* ===========================================================================
   Model series: chooser tabs, model cards, spec list
   ---------------------------------------------------------------------------
   Progressive enhancement: with JavaScript off, every panel stays visible and
   the tab strip reads as a summary. site.js then hides all but one panel and
   wires the tabs. All content is in the DOM either way, so crawlers and answer
   engines see every model.
   ========================================================================= */

.aia-brochure {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 18px;
  font: 700 13px Arial, sans-serif;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.aia-brochure small {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: .02em;
}
.aia-brochure-ico {
  font: 700 9.5px/1 'Space Grotesk', Arial, sans-serif;
  letter-spacing: .06em;
  background: var(--orange);
  color: #fff;
  padding: 6px 7px;
  border-radius: 2px;
  flex: none;
}
.aia-brochure:hover,
.aia-brochure:focus-visible {
  border-color: var(--orange) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(239, 84, 35, .25);
}

/* --- Series chooser / tab strip ----------------------------------------- */
.aia-series-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 34px;
}
.aia-series-tab {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.aia-series-tab b {
  display: block;
  font: 700 19px 'Space Grotesk', sans-serif;
  margin-bottom: 5px;
}
.aia-series-tab span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.aia-series-tab em {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
.aia-series-tab:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.aia-series-tab.is-active {
  border-color: var(--orange);
  border-left-color: var(--orange);
  background: var(--panel2);
}
.aia-series-tab.is-active b { color: var(--orange); }

/* --- Model throughput cards ---------------------------------------------- */
.aia-model-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange);
  border-radius: 4px;
  padding: 18px 20px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.aia-model-card:hover {
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(239, 84, 35, .18);
}

/* --- Shared spec list ----------------------------------------------------- */
/* Two columns on wide screens, one on narrow. No horizontal scrolling, ever —
   a spec table that scrolls sideways on a phone is unreadable in a plant. */
.aia-spec-list {
  margin: 0;
  columns: 2;
  column-gap: 44px;
}
.aia-spec-row {
  break-inside: avoid;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.aia-spec-row dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.aia-spec-row dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}

@media (max-width: 900px) {
  .aia-series-tabs { grid-template-columns: 1fr; gap: 10px; }
  .aia-spec-list { columns: 1; }
  .aia-model-grid { grid-template-columns: 1fr !important; }
  .aia-sec-head { flex-direction: column; align-items: flex-start !important; }
}

/* Panels are only hidden once JS has taken over (html.js set by site.js). */
.js .aia-series-panel { display: none; }
.js .aia-series-panel.is-active { display: block; }
.aia-series-panel + .aia-series-panel { margin-top: 46px; }
.js .aia-series-panel + .aia-series-panel { margin-top: 0; }

/* ===========================================================================
   Model matrix (ranges where every parameter varies model to model)
   ---------------------------------------------------------------------------
   Two renderings of the same data: a table on wide screens, stacked cards on
   narrow ones. Both are always in the DOM — the swap is CSS only, so crawlers
   and screen readers see the full range either way, and a phone never has to
   scroll a spec table sideways.
   ========================================================================= */

.aia-matrix-wrap { overflow: visible; }

.aia-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.aia-matrix thead th {
  background: #000;
  color: var(--cream);
  font: 700 10.5px 'Space Grotesk', Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px 14px;
  white-space: nowrap;
}
.aia-matrix tbody th {
  font: 700 13.5px 'Space Grotesk', Arial, sans-serif;
  color: var(--orange);
  padding: 14px;
  white-space: nowrap;
  border-top: 1px solid var(--line);
}
.aia-matrix tbody td {
  padding: 14px;
  color: var(--text);
  border-top: 1px solid var(--line);
}
.aia-matrix tbody tr:first-child th,
.aia-matrix tbody tr:first-child td { border-top: 2px solid var(--orange); }
.aia-matrix tbody tr:nth-child(even) th,
.aia-matrix tbody tr:nth-child(even) td { background: var(--panel); }
.aia-matrix tbody tr:hover th,
.aia-matrix tbody tr:hover td { background: var(--panel2); }

/* Card view is the narrow-screen counterpart; hidden while the table shows. */
.aia-model-stack { display: none; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 900px) {
  .aia-matrix-wrap { display: none; }
  .aia-model-stack { display: grid; }
}
@media (max-width: 560px) {
  .aia-model-stack { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  /* "In use" feature grid collapses to one column on phones. */
  .aia-sec-head + dl + p + ul { grid-template-columns: 1fr !important; }
}

/* --- Top bar tagline ------------------------------------------------------ */
/* Long enough to crowd the phone number on a narrow screen, and the number is
   the more useful of the two on a phone. */
@media (max-width: 560px) {
  .aia-tagline { display: none; }
}
