/* AirAdmin8 Robotics: content and visual experience only.
   Header, navigation, logo, mobile menu and Footer are owned exclusively by shared-layout.css. */

:root {
  --aa8-blue: #079fcf;
  --aa8-blue-dark: #0077b6;
  --aa8-cyan: #10b8c7;
  --aa8-ink: #173342;
  --aa8-text: #526b78;
  --aa8-line: #dbe8ed;
  --aa8-pale: #f4fafc;
  --aa8-pale-blue: #eaf7fb;
  --aa8-white: #fff;
}

html { scroll-behavior: smooth; }
body {
  color: var(--aa8-text);
  background: var(--aa8-white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--aa8-ink); }
a { text-underline-offset: .18em; }

main > section:nth-of-type(even):not(.dark):not(.cta):not(.cta-band),
.section.alt,
.section.soft,
.section-light,
.bg-soft { background: var(--aa8-pale); }

main > section:nth-of-type(odd):not(.dark):not(.cta):not(.cta-band) {
  background-color: var(--aa8-white);
}

.hero,
.page-hero,
.hub-hero,
.product-hero,
.product-detail-hero,
.compare-hero,
.guide-hero,
.manufacturer-hero {
  background-color: var(--aa8-pale-blue);
  background-image:
    radial-gradient(circle at 85% 15%, rgba(16,184,199,.10), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f0fafc 55%, #e8f7fb 100%);
}

.card,
.panel,
.tile,
.product-card,
.case-card,
.support-card,
.guide-card,
.compare-card {
  background: var(--aa8-white);
  border-color: var(--aa8-line);
  box-shadow: 0 10px 28px rgba(23,51,66,.06);
}

.btn-primary,
.button-primary,
a.button.primary,
.cta .button,
.cta-band .button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--aa8-cyan), var(--aa8-blue));
}

.btn-secondary,
.button-secondary,
a.button.secondary {
  color: var(--aa8-ink);
  border-color: var(--aa8-ink);
  background: #fff;
}

.aa8-back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 1200;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--aa8-cyan), var(--aa8-blue-dark));
  box-shadow: 0 10px 28px rgba(0,119,182,.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.aa8-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.aa8-mobile-quicknav { display: none; }

body:has(.product-page-hero) #lineup { padding-bottom: 34px; }
body:has(.product-page-hero) #lineup + .section { padding-top: 38px; }
body:has(.product-page-hero) main > section:nth-of-type(5) { padding-bottom: 42px; }
body:has(.product-page-hero) main > section:nth-of-type(6) { padding-top: 42px; }

@media (min-width: 981px) {
  .hub-hero .hub-hero-grid {
    grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr);
    gap: 40px;
  }
  .hub-hero .hub-hero-grid > div:first-child h1 {
    max-width: 820px;
    font-size: clamp(2.75rem,4.25vw,4.35rem);
    line-height: 1.12;
    letter-spacing: -.035em;
  }
  .hub-hero .hub-hero-grid > div:first-child .lead {
    max-width: 820px;
    font-size: 1.02rem;
    line-height: 1.8;
  }
}

@media (max-width: 760px) {
  main > section { overflow: clip; }
  .aa8-back-to-top {
    right: 14px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
  .hub-hero .hub-hero-grid > div:first-child h1 {
    font-size: clamp(2.15rem,10vw,3rem);
    line-height: 1.14;
  }
  .hub-hero .hub-hero-grid > div:first-child .lead {
    font-size: .96rem;
    line-height: 1.75;
  }
  body:has(.product-page-hero) #lineup { padding-bottom: 26px; }
  body:has(.product-page-hero) #lineup + .section { padding-top: 30px; }
  body:has(.product-page-hero) main > section:nth-of-type(5) { padding-bottom: 30px; }
  body:has(.product-page-hero) main > section:nth-of-type(6) { padding-top: 30px; }
  .compare-tray,
  .comparison-tray,
  .compare-drawer,
  [class*="compare"][class*="fixed"] {
    z-index: 1080;
    max-height: 42vh;
    overflow: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aa8-back-to-top { transition: none; }
}
