/* ==========================================================================
   ABOUT PAGE — css/pages/about.css
   Loaded after css/global.css. Reuses the global tokens (--primary-navy,
   --accent-*, --radius-*, --shadow-*), .hero-section, .hero-title,
   .live-pill, .section-title and .section-subtitle.

   Sections:
     1. Shared about helpers (sections, eyebrow, buttons)
     2. Hero + platform tiles
     3. Who we are (image + copy)
     4. Vision & mission cards
     5. Core services grid
     6. Core values grid
     7. Commitment navy band
     8. Contact card + social links
     9. Responsive (991 / 768 / 576 / 400)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SHARED HELPERS
   -------------------------------------------------------------------------- */
.about-section {
  padding: 80px 0;
}

/* Soft tinted band to separate alternating sections */
.about-section-tint {
  background: #eef3fa;
}

.about-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

/* Small uppercase label above section titles */
.about-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.about-eyebrow-light {
  color: var(--accent-gold);
}

/* Buttons (page-scoped so they don't collide with global buttons) */
.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.about-btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
}

.about-btn-primary:hover,
.about-btn-primary:focus-visible {
  background: #005bd1;
  transform: translateY(-2px);
}

.about-btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.about-btn-ghost:hover,
.about-btn-ghost:focus-visible {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.about-btn:focus-visible,
.platform-tile:focus-visible,
.service-link:focus-visible,
.as-link:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   2. HERO + PLATFORM TILES
   -------------------------------------------------------------------------- */
.about-hero {
  padding: 72px 0 84px;
  overflow: hidden;
}

/* Decorative glow behind the tiles */
.about-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
  pointer-events: none;
}

.about-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.about-hero .hero-subtext {
  max-width: 560px;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.about-platforms {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.platform-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.platform-tile:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(251, 189, 35, 0.6);
}

.platform-tile strong {
  font-size: 1rem;
  font-weight: 800;
  margin-top: 10px;
}

.platform-tile small {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.platform-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #ffffff;
}

.pi-red   { background: var(--accent-red); }
.pi-blue  { background: var(--accent-blue); }
.pi-gold  { background: #d97706; }
.pi-green { background: #059669; }

/* --------------------------------------------------------------------------
   3. WHO WE ARE
   -------------------------------------------------------------------------- */
.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: center;
}

.about-intro-media {
  position: relative;
  margin: 0;
}

.about-intro-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  background: linear-gradient(135deg, #063168, #042552); /* shows while image loads / if missing */
  box-shadow: var(--shadow-lg);
}

/* Floating location badge on the photo */
.about-intro-badge {
  position: absolute;
  left: 20px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 40px);
  padding: 14px 18px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.about-intro-badge i {
  font-size: 1.25rem;
  color: var(--accent-red);
}

.about-intro-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.about-intro-badge strong {
  color: var(--primary-navy);
  font-size: 0.95rem;
}

.about-intro-badge small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.about-intro-copy .section-title {
  margin-bottom: 18px;
}

.about-intro-copy p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-intro-copy p:last-child {
  margin-bottom: 0;
}

.about-intro-copy strong {
  color: var(--primary-navy);
}

/* --------------------------------------------------------------------------
   4. VISION & MISSION
   -------------------------------------------------------------------------- */
.about-vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.vm-card {
  position: relative;
  padding: 40px 36px;
  border-radius: 22px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.vm-vision  { background: linear-gradient(135deg, #021738 0%, #063168 100%); }
.vm-mission { background: linear-gradient(135deg, #0059c9 0%, #0070f3 100%); }

/* Large faded icon in the corner for depth */
.vm-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 24px solid rgba(255, 255, 255, 0.07);
}

.vm-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.14);
  color: var(--accent-gold);
  margin-bottom: 18px;
}

.vm-card h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.vm-card p {
  color: #e2e8f0;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   5. CORE SERVICES
   -------------------------------------------------------------------------- */
.services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c7d7ee;
}

/* 7th card spans the full row on desktop so the grid ends evenly */
.service-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title tag"
    "icon text  tag";
  column-gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 60%);
}

.service-card-wide .service-icon { grid-area: icon; margin-bottom: 0; }
.service-card-wide h3            { grid-area: title; }
.service-card-wide p             { grid-area: text; }
.service-card-wide .service-tag  { grid-area: tag; }

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

/* Tinted icon chips (AA-contrast icon colour on light tint) */
.si-red    { background: #fee2e2; color: #b91c1c; }
.si-blue   { background: #dbeafe; color: #1d4ed8; }
.si-sky    { background: #e0f2fe; color: #0369a1; }
.si-gold   { background: #fef3c7; color: #b45309; }
.si-green  { background: #d1fae5; color: #047857; }
.si-purple { background: #ede9fe; color: #6d28d9; }
.si-teal   { background: #ccfbf1; color: #0f766e; }

.service-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* Link pinned to the bottom so all cards line up */
.service-link {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.service-link i {
  transition: transform 0.2s ease;
}

.service-link:hover i {
  transform: translateX(4px);
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: #ccfbf1;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   6. CORE VALUES
   -------------------------------------------------------------------------- */
.values-grid {
  list-style: none;
  counter-reset: value;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.value-card {
  counter-increment: value;
  position: relative;
  padding: 28px 22px 26px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

/* Big faded number (01–05) in the corner */
.value-card::before {
  content: counter(value, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.9rem;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
}

.value-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-navy);
  color: var(--accent-gold);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   7. COMMITMENT (navy band)
   -------------------------------------------------------------------------- */
.about-commitment {
  background: linear-gradient(135deg, #021738 0%, #063168 55%, #042552 100%);
  color: #ffffff;
  padding: 84px 0;
}

.commitment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.commitment-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 18px;
}

.commitment-copy p {
  color: #cbd5e1;
  line-height: 1.8;
}

.commitment-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.commitment-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  line-height: 1.5;
}

.commitment-list i {
  color: var(--accent-gold);
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   8. CONTACT CARD + SOCIAL
   -------------------------------------------------------------------------- */
.about-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 48px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.about-contact-copy .section-title {
  margin-bottom: 22px;
}

.about-contact-list {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.about-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ac-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1d4ed8;
}

.about-contact-list li > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.about-contact-list small {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.about-contact-list a:hover {
  color: var(--accent-blue);
}

.about-social h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 16px;
}

.about-social-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.as-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-light);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.as-link:hover {
  transform: translateX(4px);
  background: #ffffff;
  border-color: #c7d7ee;
}

.as-link i {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #ffffff;
}

.as-link span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 0;
}

.as-link small {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Brand colours (same as the footer .hub-* pills) */
.as-fb i { background: #1877f2; }
.as-ig i { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.as-x  i { background: #000000; }
.as-tk i { background: #010101; }
.as-yt i { background: #ff0000; }

/* --------------------------------------------------------------------------
   9. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .values-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  /* 3 on the first row, 2 centred on the second */
  .value-card { grid-column: span 2; }
  .value-card:nth-child(4) { grid-column: 2 / span 2; }
}

@media (max-width: 991px) {
  .about-section { padding: 64px 0; }

  .about-hero { padding: 48px 0 60px; }

  .about-hero-grid,
  .about-intro-grid,
  .commitment-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .about-intro-media {
    max-width: 640px;
    margin: 0 auto;
  }

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

  .about-contact-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 36px;
  }
}

@media (max-width: 768px) {
  .about-vm-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vm-card { padding: 32px 26px; }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .value-card,
  .value-card:nth-child(4) { grid-column: auto; }
  /* odd 5th card spans both columns */
  .value-card:last-child { grid-column: 1 / -1; }

  .about-commitment { padding: 64px 0; }

  /* Wide service card stacks like the others */
  .service-card-wide {
    display: flex;
    align-items: stretch;
  }
  .service-card-wide .service-icon { margin-bottom: 18px; }
  .service-card-wide .service-tag {
    align-self: flex-start;
    margin-top: 16px;
  }
}

@media (max-width: 576px) {
  .about-section { padding: 52px 0; }

  .about-section-head { margin-bottom: 32px; }

  .about-hero-actions .about-btn {
    flex: 1 1 100%;
  }

  .platform-tile { padding: 18px 16px; }
  .platform-tile strong { font-size: 0.92rem; }

  .services-grid,
  .values-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .value-card:last-child { grid-column: auto; }

  .about-contact-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .about-contact-copy .about-btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .about-platforms { gap: 12px; }
  .platform-icon { width: 40px; height: 40px; font-size: 1rem; }
  .platform-tile small { font-size: 0.74rem; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .about-btn,
  .platform-tile,
  .service-card,
  .service-link i,
  .as-link {
    transition: none;
  }
  .about-btn:hover,
  .platform-tile:hover,
  .service-card:hover,
  .as-link:hover {
    transform: none;
  }
}
