/* ABOUT PAGE – matches Home style: navy -> gray -> navy -> gray ... */

/* Animated underline (gold line) */
.title-underline {
  position: relative;
  display: inline-block; /* keeps underline tight to the text */
}

.title-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;                 /* distance below text */
  height: 3px;
  width: 110px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4af37, #ffe08a);
  transform-origin: left;
  animation: titleUnderline 2.4s ease-in-out infinite;
}

@keyframes titleUnderline {
  0%   { transform: scaleX(0); opacity: 0; }
  25%  { transform: scaleX(1); opacity: 1; }
  70%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}

/* HERO */
.about-hero{
  padding: 90px 0 70px;
  background:
    radial-gradient(900px 420px at 25% 15%, rgba(212,175,55,0.18), transparent 60%),
    radial-gradient(700px 350px at 75% 60%, rgba(212,175,55,0.10), transparent 60%),
    linear-gradient(120deg, #001F54, #07142e, #001F54);
}

.about-hero-inner{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
  align-items: center;
}

.eyebrow{
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 13px;
  margin: 0 0 10px;
}

.about-title{
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 14px;
}

.about-sub{
  padding-top: 10px;
  max-width: 620px;
  margin: 0 0 22px;
  opacity: 0.92;
  line-height: 1.65;
}

.about-actions{
  gap: 20px;
  flex-wrap: wrap;
}

/* Glass cards (navy sections) */
.glass-card{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(10px);
}

.glass-pill{
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 12px;
  margin: 0 0 12px;
}

.glass-title{
  font-size: 20px;
  margin: 0 0 12px;
}

.glass-text{
  padding-top: 10px;
  margin: 0 0 16px;
  opacity: 0.92;
  line-height: 1.6;
}

.glass-list{
  margin: 0;
  padding-left: 18px;
  opacity: 0.95;
}

.glass-list li{ margin: 8px 0; }

.btn-primary{
  width: 50%;
  margin-top: 8px;
  background:#caa12a;
  color:#04132a;
  border: none;
  padding: 14px 16px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 16px;
  cursor:pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn-primary:hover{ filter: brightness(1.2); }
.btn-primary:active{ transform: scale(0.98); }

.btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration:none;
  color:#fff;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.btn-outline:hover{
  border-color: rgba(202,161,42,.55);
  background: rgba(202,161,42,.12);
}

/* ABOUT MODEL (GRAY, NO CARDS) */
.about-model .model-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.model-block{
  background: transparent;
}

.model-block p{
  margin: 0 0 12px;
  opacity: 0.85;
  line-height: 1.7;
}

.model-list{
  margin: 10px 0 0;
  padding-left: 18px;
  line-height: 1.75;
  opacity: 0.9;
}

.model-highlights{
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.highlight{
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(10,22,51,0.04);
  border: 1px solid rgba(10,22,51,0.08);
}

.highlight-title{
  display:block;
  font-weight: 800;
  color: var(--blue-text);
  margin-bottom: 6px;
}

.highlight-text{
  padding-top: 10px;
  display:block;
  opacity: 0.85;
}

/* Navy sections */
.about-navy{
  background:
    radial-gradient(900px 420px at 30% 20%, rgba(212,175,55,0.10), transparent 60%),
    linear-gradient(120deg, #07142e, #0a1b3d);
}

.about-sub-light{
  color: rgba(255,255,255,0.85);
}

/* Teams grid — 3 cards */
.teams-grid{
  display:grid;
  gap: 18px;
  margin-top: 26px;
}

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

.glass-mini{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(8px);
}

.glass-mini p{
  padding-top: 10px;
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
}

.glass-mini h3{
  margin: 0 0 10px;
  font-size: 16px;
}

.mini-pill{
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 12px;
  margin: 0 0 10px;
}

.mini-btn{
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(212,175,55,0.8);
  text-underline-offset: 4px;
}

/* Steps (gray) */
.steps-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.step-num{
  font-weight: 900;
  color: var(--gold);
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.step-card p{
  margin: 0;
  opacity: 0.85;
  line-height: 1.6;
}

/* Step button + details */
.step-details{
  margin-top: 14px;
}

.step-details summary{
  list-style: none;
}

.step-details summary::-webkit-details-marker{
  display: none;
}

.step-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(10,22,51,0.18);
  background: rgba(10,22,51,0.03);
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.step-btn:hover{
  transform: translateY(-1px);
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.35);
}

.step-more{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(10,22,51,0.10);
  opacity: 0.9;
}

.step-more ul{
  margin: 0;
  padding-left: 18px;
  line-height: 1.75;
}

/* Promise grid (navy) */
.promise-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

/* Principles (gray, NO CARDS) */
.principles{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.principle p{
  margin: 8px 0 0;
  opacity: 0.85;
  line-height: 1.7;
}

/* CTA Navy */
.cta-navy{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.cta-navy-right{
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

/* Position animation: left + higher, bottom sticks to navy section */
.about-visual {
  margin-top: -100px;
  margin-bottom: 0;  /* Reset to 0 */
  margin-left: -53%;
  padding-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;  /* Aligns bottom edge */
  position: relative;
  z-index: 5;
  line-height: 0;  /* Removes inline gap */
  transform: translateY(35px);  /* Pushes it down to touch navy */
}

.about-visual lottie-player {
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 0 auto;
  object-fit: contain;
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes softFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.about-hero-inner > *{
  animation: fadeUp .65s ease both;
}

.about-hero-inner > :nth-child(1){ animation-delay: .05s; }
.about-hero-inner > :nth-child(2){ animation-delay: .15s; }

.glass-card{
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

@media (hover:hover){
  .glass-card:hover{
    transform: translateY(-4px);
    border-color: rgba(212,175,55,0.30);
    background: rgba(255,255,255,0.075);
  }
}

/* ---- Better tap targets on mobile/tablet ---- */
.about-actions a,
.mini-btn,
.step-btn{
  min-height: 44px;
}

/* ============================
   ABOUT — Responsive (Mobile/Tablet)
   (DO NOT TOUCH PC STYLES ABOVE)
   ============================ */

/* Tablet & down */
@media (max-width: 1024px) {

  /* HERO becomes 1 column */
  .about-hero{
    padding: 70px 0 50px;
  }
  .about-hero-inner{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-title{
    font-size: clamp(28px, 4.2vw, 40px);
    line-height: 1.15;
  }
  .about-sub{
    max-width: 100%;
    font-size: 16px;
  }

  /* Model grid becomes 1 column */
  .about-model .model-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Teams grid to 1 column on tablet */
  .teams-3{
    grid-template-columns: 1fr;
  }

  /* Steps grid to 2 columns */
  .steps-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Promise grid to 2 columns */
  .promise-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Principles to 1 column */
  .principles{
    grid-template-columns: 1fr;
  }

  /* CTA stacks */
  .cta-navy{
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cta-navy-right{
    width: 100%;
    justify-content: flex-start;
  }
}

/* Phone */
@media (max-width: 768px) {

  /* Titles + spacing feel more premium on phone */
  .title-underline::after{
    bottom: -8px;
    height: 3px;
    width: 92px;
  }

  .about-hero{
    padding: 62px 0 42px;
  }

  /* Buttons become full-width and centered (nice on iPhone) */
  .about-actions{
    gap: 10px;
  }
  .about-actions .btn-primary,
  .about-actions .btn-outline{
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Highlights become tighter */
  .highlight{
    padding: 12px 14px;
    border-radius: 14px;
  }

  /* Steps to 1 column */
  .steps-grid{
    grid-template-columns: 1fr;
  }

  /* Promise to 1 column */
  .promise-grid{
    grid-template-columns: 1fr;
  }

  /* TEAM cards spacing */
  .glass-mini{
    padding: 16px;
  }

  /* ---------------------------------------
     IMPORTANT: Make illustration "touch" navy
     without manual pixels per phone
     --------------------------------------- */

  /* Remove your desktop left-shift ONLY on mobile */
  .about-visual{
    margin-left: 0 !important;
    padding: 0 14px;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    transform: translateY(clamp(20px, 5vw, 40px)) !important;  /* Pushes down to touch navy on mobile */
  }

  .about-visual lottie-player{
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
  } 

  .about-visual img{
    width: min(520px, 100%) !important; /* responsive width */
    max-width: 100%;
    height: auto;
  }

  /* Add breathing room at top of the FIRST navy section after the image
     so content doesn't collide with the overlapping illustration */
  .about-model + .about-navy{
    padding-top: clamp(78px, 14vw, 120px);
  }

}

/* Very small phones */
@media (max-width: 420px){
  .about-visual{
    padding: 0 12px;
    margin-bottom: calc(-1 * clamp(36px, 12vw, 78px));
  }
  .about-visual img{
    width: 100% !important;
  }
}

/* =========================================
   FIX: illustration touches the navy section
   (PC + mobile, no manual pixels per phone)
========================================= */

/* Remove bottom padding of the white section so the image can reach the next section */
.section.about-model{
  padding-bottom: 0 !important;
}

/* Kill any bottom gap under the illustration block */
.about-visual{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0;                 /* removes inline-image baseline gap */
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Make sure the image itself has no “inline gap” */
.about-visual img{
  display: block;
  height: auto;
}

/* Remove top margin that could create a gap above the navy section */
.section.about-navy{
  margin-top: 0 !important;
}

/* OPTIONAL micro-fix: if you still see a 1px hairline on some devices */
.section.about-navy{
  position: relative;
}
.section.about-navy::before{
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -1px;
  height: 1px;
  background: transparent;
}

/* =========================================
   MOBILE/TABLET: keep PC untouched, fix layout
========================================= */
@media (max-width: 900px){

  /* Two columns -> one column */
  .about-grid{
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* Make illustration responsive + centered on mobile (does NOT affect desktop) */
  .about-visual{
    margin-top: 16px !important;
  }
  .about-visual img{
    width: min(560px, 92vw) !important;
    margin: 0 auto !important;
    max-width: 100% !important;
  }

  .about-actions{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  /* Only change length (full width), keep same look/animation */
  .about-actions .btn-primary,
  .about-actions .btn-outline{
    width: 100%;
  }

}
