/* ==========================================
   AIRBUS A320 PAGE
   ========================================== */

.scroll-container {
  scroll-snap-type: none;
}

.a320-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 14%, rgba(255, 184, 0, 0.14), transparent 26%),
    linear-gradient(180deg, #02050d 0%, #050b14 44%, #02050d 100%);
}

.a320-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.a320-hero-bg,
.a320-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.a320-hero-bg {
  background-image: url("../assets/airbus background.png");
  background-size: min(900px, 62vw) auto;
  background-position: right 2vw top -80px;
  background-repeat: no-repeat;
  filter: brightness(1.16) contrast(1.08) saturate(1.08);
}

.a320-hero-overlay {
  background:
    radial-gradient(circle at 72% 21%, rgba(255, 184, 0, 0.1), transparent 24%),
    linear-gradient(90deg, rgba(2, 5, 13, 0.99) 0%, rgba(2, 5, 13, 0.86) 31%, rgba(2, 5, 13, 0.22) 58%, rgba(2, 5, 13, 0.08) 100%),
    linear-gradient(180deg, rgba(2, 5, 13, 0.02) 0%, rgba(2, 5, 13, 0.12) 48%, #02050d 100%);
}

.a320-shell {
  min-height: 100vh;
  height: auto;
  justify-content: flex-start;
  padding-top: clamp(16px, 2vh, 28px);
  padding-bottom: clamp(18px, 2.6vh, 32px);
}

.nav-link.active {
  color: var(--accent-yellow);
}

.a320-hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(430px, 0.92fr);
  align-items: end;
  gap: clamp(22px, 3.4vw, 54px);
  padding: clamp(8px, 1.8vh, 18px) 0 clamp(14px, 2.4vh, 28px);
}

.a320-hero-copy {
  max-width: 610px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(11px, 1.45vh, 17px);
}

.a320-badge {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(5, 11, 20, 0.48);
  backdrop-filter: blur(12px);
}

.a320-title {
  font-family: var(--font-tech);
  font-size: clamp(3rem, 4.35vw, 4.75rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--text-primary);
  text-wrap: balance;
  max-width: 610px;
}

.a320-title span {
  display: block;
  margin-top: 0.04em;
  color: var(--accent-yellow);
  white-space: nowrap;
}

.a320-subtitle {
  max-width: 520px;
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 0.94vw, 1rem);
  line-height: 1.55;
  margin-bottom: clamp(14px, 2.4vh, 28px);
}

.a320-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: clamp(8px, 1.3vh, 16px);
}

.a320-proof-row {
  width: min(100%, 690px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.a320-proof-row div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 9px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(5, 11, 20, 0.72);
}

.a320-proof-icon {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent-yellow);
  font-family: var(--font-tech);
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.22);
}

.a320-proof-row strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: clamp(0.76rem, 0.76vw, 0.86rem);
  white-space: normal;
  line-height: 1.2;
}

.a320-proof-row small {
  min-width: 0;
  color: var(--text-secondary);
  font-size: clamp(0.67rem, 0.68vw, 0.76rem);
  line-height: 1.3;
}

.a320-companion-panel {
  position: relative;
  align-self: end;
  width: min(100%, 700px);
  min-height: 206px;
  margin-top: 0;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(5, 11, 20, 0.86), rgba(5, 11, 20, 0.55)),
    rgba(2, 5, 13, 0.76);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}


.a320-panel-kicker {
  position: relative;
  color: var(--accent-yellow);
  font-family: var(--font-tech);
  font-size: clamp(1.45rem, 1.85vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1;
}

.a320-companion-panel h2 {
  position: relative;
  max-width: 370px;
  color: var(--text-secondary);
  font-size: clamp(0.82rem, 0.82vw, 0.94rem);
  line-height: 1.35;
  font-weight: 600;
}

.a320-panel-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.a320-panel-stats div {
  padding: 7px 14px 4px;
  background: rgba(5, 11, 20, 0.42);
}

.a320-panel-stats strong {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-tech);
  font-size: clamp(1.18rem, 1.62vw, 1.55rem);
  line-height: 1;
}

.a320-panel-stats span {
  display: block;
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: clamp(0.68rem, 0.72vw, 0.78rem);
  line-height: 1.35;
}

.a320-content {
  position: relative;
  z-index: 2;
  padding: 0 3.5vw 64px;
}

.a320-container {
  width: min(100%, 1440px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.a320-systems-panel {
  padding: clamp(22px, 2.8vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 11, 20, 0.82), rgba(3, 8, 16, 0.72));
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.a320-section-heading {
  margin-bottom: 18px;
}

.a320-section-heading h2,
.a320-bottom-content h2 {
  font-family: var(--font-tech);
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.a320-section-heading h2::after,
.a320-bottom-content h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 10px;
  border-radius: 99px;
  background: var(--accent-yellow);
}

.a320-systems-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.a320-systems-grid article {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(5, 14, 27, 0.76);
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.a320-systems-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 184, 0, 0.35);
  background: rgba(255, 184, 0, 0.08);
}

.a320-systems-grid span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-yellow);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 50%;
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.22);
}

.a320-systems-grid h3 {
  color: var(--text-primary);
  font-size: 0.82rem;
  line-height: 1.28;
  font-weight: 700;
}

.a320-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.a320-feature-card {
  overflow: hidden;
  min-height: 482px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(5, 11, 20, 0.82);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.a320-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 184, 0, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.36), 0 0 28px rgba(255, 184, 0, 0.06);
}

.a320-feature-card img {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  object-fit: contain;
  padding: 16px 16px 0;
  display: block;
  background: #050b14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.a320-feature-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
}

.a320-card-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent-yellow);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 10px;
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.24);
}

.a320-feature-body h2 {
  color: var(--text-primary);
  font-family: var(--font-tech);
  font-size: clamp(1.18rem, 1.3vw, 1.42rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.a320-feature-body p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.62;
}

.a320-feature-body ul,
.a320-bottom-content ul {
  list-style: none;
}

.a320-feature-body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 18px;
}

.a320-feature-body li,
.a320-bottom-content li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
}

.a320-feature-body li::before,
.a320-bottom-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.45);
}

.a320-feature-body a {
  margin-top: auto;
  color: var(--accent-yellow);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.a320-feature-body a:hover {
  color: var(--accent-yellow-hover);
}

.a320-metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(5, 11, 20, 0.82);
  margin: clamp(32px, 5vw, 64px) 0; /* Add generous top/bottom margin to avoid overlap with boxes above/below */
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.a320-metric-strip div {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 28px) clamp(10px, 1.2vw, 20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.a320-metric-strip div:last-child {
  border-right: 0;
}

.a320-metric-strip strong {
  display: block;
  color: var(--accent-yellow);
  font-family: var(--font-tech);
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.a320-metric-strip span {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: clamp(0.68rem, 0.75vw, 0.8rem);
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.a320-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.a320-why-panel,
.a320-ready-panel {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(5, 11, 20, 0.82);
}

.a320-why-panel img,
.a320-ready-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05) saturate(1.1); /* Sharp and bright, no blur filters */
}

.a320-why-panel::after,
.a320-ready-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 5, 13, 0.75) 0%, rgba(2, 5, 13, 0.4) 50%, rgba(2, 5, 13, 0.15) 100%),
    linear-gradient(180deg, rgba(2, 5, 13, 0.05) 0%, rgba(2, 5, 13, 0.4) 100%);
  z-index: 0;
}

.a320-bottom-content {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(26px, 3.4vw, 44px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); /* Ensures high readability over bright background */
}

.a320-bottom-content p {
  margin-top: 20px;
  max-width: 440px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.72;
}

.a320-bottom-content ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 24px;
}

.a320-ready-panel .a320-actions {
  margin-top: 28px;
}

.site-footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 1180px) {
  .a320-hero-bg {
    background-size: min(760px, 78vw) auto;
    background-position: right top -80px;
  }

  .a320-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    padding-top: clamp(22px, 4vh, 44px);
  }

  .a320-companion-panel {
    width: min(100%, 760px);
    margin-top: 0;
  }

  .a320-systems-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .a320-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a320-metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .a320-metric-strip div:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .a320-hero-bg {
    background-size: 720px auto;
    background-position: 58% top -60px;
  }

  .a320-hero-overlay {
    background:
      radial-gradient(circle at 56% 25%, rgba(255, 184, 0, 0.12), transparent 28%),
      linear-gradient(180deg, rgba(2, 5, 13, 0.76) 0%, rgba(2, 5, 13, 0.86) 48%, #02050d 100%);
  }

  .a320-hero-grid {
    padding-bottom: 36px;
  }

  .a320-proof-row {
    grid-template-columns: 1fr;
  }

  .a320-panel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: transparent;
  }

  .a320-panel-stats div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
  }

  .a320-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .a320-hero-bg {
    background-size: 620px auto;
    background-position: 56% top -45px;
  }

  .a320-shell {
    padding: 18px 16px 28px;
  }

  .a320-content {
    padding: 0 16px 44px;
  }

  .a320-title {
    font-size: clamp(2.45rem, 13vw, 3.75rem);
  }

  .a320-subtitle {
    line-height: 1.6;
  }

  .a320-actions,
  .a320-actions .btn-primary-cta,
  .a320-actions .btn-secondary-cta {
    width: 100%;
  }

  .a320-actions .btn-primary-cta,
  .a320-actions .btn-secondary-cta {
    justify-content: center;
  }

  .a320-systems-panel {
    padding: 18px;
  }

  .a320-systems-grid,
  .a320-feature-grid,
  .a320-metric-strip {
    grid-template-columns: 1fr;
  }

  .a320-systems-grid article {
    min-height: 90px;
  }

  .a320-feature-card {
    min-height: auto;
  }

  .a320-feature-body {
    padding: 18px;
  }

  .a320-metric-strip div,
  .a320-metric-strip div:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .a320-metric-strip div:last-child {
    border-bottom: 0;
  }

  .a320-bottom-content {
    min-height: 360px;
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .a320-panel-stats {
    grid-template-columns: 1fr;
  }

  .a320-proof-row div {
    grid-template-columns: 1fr;
  }

  .a320-proof-icon {
    grid-row: auto;
  }
}
