/* ==========================================================================
   AAR Labs Corporate Website Styles
   Logo palette: Navy #1B2D5C, Cyan #1FBCD9
   ========================================================================== */

:root {
  --navy: #1B2D5C;
  --navy-dark: #0F1B3D;
  --navy-light: #2A4080;
  --cyan: #1FBCD9;
  --cyan-light: #5DD3E8;
  --cyan-dark: #1798B0;
  --bg: #FFFFFF;
  --surface: #F7FAFC;
  --surface-2: #EDF2F7;
  --text: #1A202C;
  --text-muted: #4A5568;
  --text-soft: #718096;
  --border: #E2E8F0;
  --border-strong: #CBD5E0;
  --success: #10B981;
  --shadow-sm: 0 1px 3px rgba(15, 27, 61, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 27, 61, 0.10);
  --shadow-lg: 0 12px 36px rgba(15, 27, 61, 0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--cyan-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--navy);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
}

.nav__logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav__menu a:hover {
  color: var(--cyan-dark);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--navy);
  color: white !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.nav__cta:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__menu li { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav__menu li:last-child { border-bottom: none; padding-top: 16px; }
  .nav__cta { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse at top right, rgba(31, 188, 217, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(27, 45, 92, 0.05), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(31, 188, 217, 0.1);
  color: var(--cyan-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--cyan-dark);
  position: relative;
  display: inline-block;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
}

.hero__visual img {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .hero__visual img { max-width: 320px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: white;
}

.btn--primary:hover {
  background: var(--navy-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--navy);
  background: var(--surface);
  color: var(--navy);
}

.btn--accent {
  background: var(--cyan);
  color: var(--navy);
}

.btn--accent:hover {
  background: var(--cyan-dark);
  color: white;
  transform: translateY(-1px);
}

/* ==========================================================================
   Sections
   ========================================================================== */

section {
  padding: 80px 0;
}

.section--surface {
  background: var(--surface);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section__head .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-dark);
  margin-bottom: 12px;
}

.section__head p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  padding: 32px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 56px;
  align-items: center;
  font-size: 0.92rem;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-strip__item::before {
  content: '✓';
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan);
  color: var(--navy);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.78rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.96rem;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.92rem;
}

.card__link::after {
  content: '→';
  transition: transform 0.15s ease;
}

.card__link:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Pillars (Why)
   ========================================================================== */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.pillar {
  display: flex;
  gap: 16px;
}

.pillar__num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--cyan);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
}

.pillar h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.pillar p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.93rem;
}

/* ==========================================================================
   Founder
   ========================================================================== */

.founder {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}

.founder__photo {
  width: 280px;
  height: 280px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--cyan-light), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 4rem;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-md);
}

.founder__name {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.founder__role {
  color: var(--cyan-dark);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.founder__bio {
  color: var(--text-muted);
  font-size: 1rem;
}

.founder__bio p { margin-bottom: 12px; }

.founder__links {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}

.founder__links a {
  font-weight: 600;
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .founder { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .founder__photo { width: 220px; height: 220px; margin: 0 auto; }
  .founder__links { justify-content: center; }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
  text-align: center;
}

.cta-section h2 { color: white; }
.cta-section p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }

.cta-section .btn--primary {
  background: var(--cyan);
  color: var(--navy);
}

.cta-section .btn--primary:hover {
  background: white;
  color: var(--navy);
}

.cta-section .btn--secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-section .btn--secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

/* ==========================================================================
   Page intro (sub-pages)
   ========================================================================== */

.page-intro {
  padding: 80px 0 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-intro h1 { margin-bottom: 12px; }
.page-intro__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
}

/* ==========================================================================
   Content prose
   ========================================================================== */

.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.75;
}

.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; }

.prose ul, .prose ol {
  padding-left: 1.5em;
}

.prose li { margin-bottom: 6px; }

/* ==========================================================================
   Timeline (about page)
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-strong);
}

.timeline__item {
  position: relative;
  margin-bottom: 28px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--cyan);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--cyan-dark);
}

.timeline__date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.timeline__title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.timeline__desc {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ==========================================================================
   Director / team
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.team-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.team-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-light), var(--navy-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.team-card__name {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  font-size: 1.05rem;
}

.team-card__role {
  font-size: 0.86rem;
  color: var(--cyan-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.team-card__bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Contact / details panel
   ========================================================================== */

.details-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
}

.details-panel h3 { margin-top: 0; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.detail-row {
  font-size: 0.94rem;
}

.detail-row__label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-row__value {
  color: var(--text);
  font-weight: 500;
}

/* ==========================================================================
   Email channels (contact)
   ========================================================================== */

.email-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.email-list li {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: all 0.15s ease;
}

.email-list li:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.email-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.email-list a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
}

.email-list small {
  display: block;
  color: var(--text-soft);
  margin-top: 4px;
  font-size: 0.82rem;
}

/* ==========================================================================
   Product card (products page)
   ========================================================================== */

.product-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.product-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-md);
}

.product-card__visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 24px;
  min-height: 160px;
}

.product-card h3 { margin-top: 0; }

.product-card__tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(31, 188, 217, 0.12);
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  margin-bottom: 10px;
}

.product-card__features {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
}

.product-card__features li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}

.product-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan-dark);
  font-weight: 700;
}

.product-card--placeholder {
  background: var(--surface);
  border-style: dashed;
  border-color: var(--border-strong);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 32px;
  gap: 16px;
  grid-template-columns: none;
}

.product-card--placeholder .product-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.product-card--placeholder h3 {
  margin: 0;
}

.product-card--placeholder p {
  max-width: 540px;
  color: var(--text-muted);
  margin: 0 auto;
}

@media (max-width: 720px) {
  .product-card { grid-template-columns: 1fr; }
  .product-card__visual { min-height: 100px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 32px;
  font-size: 0.92rem;
}

.site-footer h4 {
  color: white;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s ease;
}

.site-footer a:hover { color: var(--cyan); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }

.footer__brand img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  max-width: 280px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
}

.footer__legal-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   404 page
   ========================================================================== */

.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.not-found__code {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--navy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
