/* ============================================
   KEPLER AEROSPACE — partner.css
   Page-specific styles for Partner With Us
   ============================================ */

/* Reuses from gsaas.css:
   .page-label, .section-label, .closing-line,
   .header-border, .header-cta,
   .infra-stack-item, .stack-icon, .stack-label
*/

/* ============================================
   PARTNER HERO — centered, bg image
   ============================================ */
.partner-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.partner-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/partnership-bg.webp') center/contain no-repeat;
}
.partner-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(170deg, rgb(0 0 0 / 12%) 0%, rgb(2 10 20 / 62%) 60%, rgba(0, 0, 0, 0.82) 100%);
}

.partner-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 8%; right: 8%; height: 1px; z-index: 2;
  background: linear-gradient(to right, transparent, rgba(35,165,220,0.5), transparent);
}

.partner-hero .container { position: relative; z-index: 1; }

.partner-hero-content {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) 0;
}

.partner-hero-content h1 {
  font-size: clamp(28px, 4.5vw, 47px);
  font-weight: 300; line-height: 1.2; margin-bottom: 24px;
}
.partner-hero-content h1 span { font-weight: 700; color: var(--accent2); }

.partner-hero-content > p {
  font-size: 16px;
  color: rgba(245,245,244,0.75);
  line-height: 1.78; margin-bottom: 14px;
}

/* ============================================
   SUBSYSTEM PARTNERSHIPS — bg image
   ============================================ */
.subsystem-partner-section {
  position: relative;
  padding: clamp(80px, 9vw, 120px) 0;
  overflow: hidden;
}

.subsystem-partner-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../images/engineering-principles.webp') center/cover no-repeat;
}
.subsystem-partner-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    170deg,
    rgba(0,0,0,0.90) 0%,
    rgba(2,10,20,0.93) 60%,
    rgba(0,0,0,0.90) 100%
  );
}

.subsystem-partner-section .container { position: relative; z-index: 1; }

/* ============================================
   EXPAND THE GLOBAL GROUND NETWORK
   ============================================ */
.expand-section {
  padding: clamp(80px, 9vw, 120px) 0;
  background: linear-gradient(88deg, #041E2A, #000);
}

.expand-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.expand-content .section-title h2 span { color: var(--accent2); }
.expand-content .section-title { margin-bottom: 20px; }

.expand-body {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  border-left: 2px solid rgba(35,165,220,0.3);
  padding-left: 16px;
  margin-top: 4px;
}

/* Partner list — same style as infra-stack but slightly wider */
.expand-list {
  display: flex; flex-direction: column; gap: 3px;
}

.expand-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 2px solid rgba(35,165,220,0.35);
  transition: background 0.28s, border-color 0.28s, padding-left 0.28s;
}
.expand-item:hover {
  background: rgba(35,165,220,0.08);
  border-left-color: var(--accent);
  padding-left: 24px;
}
.expand-item .stack-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(35,165,220,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--accent);
  transition: background 0.28s;
}
.expand-item:hover .stack-icon { background: rgba(35,165,220,0.22); }
.expand-item span {
  font-size: 14px; color: rgba(255,255,255,0.82); line-height: 1.45;
}

/* ============================================
   WHY PARTNER ON GSaaS  — bullet list style
   ============================================ */
.why-partner-section {
  padding: clamp(80px, 9vw, 120px) 0;
  background: var(--bg);
  position: relative;
}

/* Ambient glow */
.why-partner-section::before {
  content: '';
  position: absolute; top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(35,165,220,0.05) 0%, transparent 68%);
  pointer-events: none;
}

.why-partner-section .section-title { margin-bottom: 52px; }
.why-partner-section .section-title h2 span { color: var(--accent2); }

.why-partner-inner { position: relative; z-index: 1; }

/* Bullet list */
.why-partner-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 3px;
  max-width: 860px; margin: 0 auto;
}

.why-partner-list li {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid rgba(35,165,220,0.35);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}

.why-partner-list li::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(35,165,220,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.35s;
}

.why-partner-list li:hover {
  background: rgba(35,165,220,0.06);
  border-left-color: var(--accent);
  transform: translateX(5px);
}
.why-partner-list li:hover::before { opacity: 1; }

.wp-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(35,165,220,0.1);
  border: 1px solid rgba(35,165,220,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--accent);
  transition: background 0.3s, transform 0.3s;
  position: relative; z-index: 1;
}
.why-partner-list li:hover .wp-icon {
  background: rgba(35,165,220,0.22);
  transform: scale(1.08);
}

.wp-text { position: relative; z-index: 1; }
.wp-text h4 {
  font-size: 15px; font-weight: 700;
  color: var(--primary); margin-bottom: 6px;
  text-transform: capitalize;
}
.wp-text p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ============================================
   PARTNERSHIP MODELS  — icon cards
   ============================================ */
.models-section {
  padding: clamp(80px, 9vw, 120px) 0;
  background: linear-gradient(88deg, #041E2A, #000);
}

.models-section .section-title { margin-bottom: 52px; }
.models-section .section-title h2 span { color: var(--accent2); }

.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.model-card {
  position: relative;
  padding: 34px 26px;
  background: rgba(35,165,220,0.06);
  border: 1px solid rgba(35,165,220,0.2);
  display: flex; flex-direction: column; gap: 0;
  transition: background 0.35s, border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  overflow: hidden;
}

/* Bottom gradient sweep on hover */
.model-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(0deg, rgba(35,165,220,0.12) 0%, transparent 100%);
  transition: height 0.4s ease;
}
.model-card:hover::before { height: 100%; }

.model-card:hover {
  background: rgba(35,165,220,0.12);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(35,165,220,0.12);
}

.model-card-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(35,165,220,0.1);
  border: 1px solid rgba(35,165,220,0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--accent);
  margin-bottom: 22px;
  transition: background 0.3s, transform 0.3s;
  position: relative; z-index: 1;
}
.model-card:hover .model-card-icon {
  background: rgba(35,165,220,0.25);
  transform: scale(1.1) rotate(-5deg);
}

.model-card-body { position: relative; z-index: 1; }
.model-card-body h3 {
  font-size: 16px; font-weight: 700;
  color: var(--primary); margin-bottom: 12px; line-height: 1.35;
}
.model-card-body p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.65; }

/* ============================================
   SUBSYSTEM PARTNERSHIPS
   ============================================ */
.subsystem-partner-section {
  /* bg + padding defined above */
}

.sub-partner-eyebrow {
  margin-bottom: 56px;
  text-align: center;
}

.sub-partner-headline {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 300;
  color: var(--primary);
  margin-top: 10px;
}
.sub-partner-headline span { font-weight: 800; color: var(--accent2); }

.sub-partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.sub-partner-card {
  padding: 36px 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}

.sub-partner-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.sub-partner-card:hover::before { transform: scaleX(1); }
.sub-partner-card:hover {
  background: rgba(35,165,220,0.05);
  border-color: rgba(35,165,220,0.2);
}

.sub-partner-card h3 {
  font-size: 17px; font-weight: 700;
  color: var(--primary); margin-bottom: 12px; line-height: 1.35;
}
.sub-partner-card > p {
  font-size: 14px; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 18px;
}

.sub-label {
  font-size: 11px; font-weight: 600;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 14px !important;
  opacity: 0.85;
}

.sub-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.sub-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.75);
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sub-list li:last-child { border-bottom: none; }
.sub-list li i { font-size: 9px; color: var(--accent2); flex-shrink: 0; }

.sub-contact-line {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 6px;
}
.sub-contact-line span { font-size: 12px; color: var(--muted); }
.sub-contact-line a {
  font-size: 15px; font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
}
.sub-contact-line a:hover { color: var(--accent2); }

/* ============================================
   CTA BANNER
   ============================================ */
.partner-cta-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--bg);
}

.partner-cta-card {
  position: relative;
  border: 1px solid rgba(35,165,220,0.2);
  border-radius: 4px; overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 80px);
  background: linear-gradient(135deg, rgba(4,18,32,0.98) 0%, rgba(2,10,20,0.96) 100%);
}

/* Corner glows */
.cta-glow-tl {
  position: absolute; top: -1px; left: -1px;
  width: 280px; height: 200px;
  background: radial-gradient(ellipse at top left, rgba(35,165,220,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.cta-glow-br {
  position: absolute; bottom: -1px; right: -1px;
  width: 280px; height: 200px;
  background: radial-gradient(ellipse at bottom right, rgba(44,161,153,0.14) 0%, transparent 65%);
  pointer-events: none;
}

.partner-cta-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}

.partner-cta-text h2 {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 300; line-height: 1.25; margin-bottom: 16px;
}
.partner-cta-text h2 span { font-weight: 800; color: var(--accent2); }
.partner-cta-text p { font-size: 15px; color: var(--muted); margin: 0; max-width: 560px; line-height: 1.7; }

.partner-cta-action .btn { font-size: 15px; padding: 14px 36px; }

/* Bottom accent line */
.cta-bottom-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(35,165,220,0.45), rgba(44,161,153,0.3), transparent);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  .expand-inner { grid-template-columns: 1fr; gap: 40px; }
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-partner-grid { grid-template-columns: 1fr; }
  .partner-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .why-partner-list li { padding: 18px 16px; }
  .models-grid { grid-template-columns: 1fr; }
  .sub-partner-card { padding: 28px 20px; }
  .partner-cta-card { padding: 36px 20px; }
}