/* === FILE: assets/css/pages/financial-aid.css === */

/* ============================================================
   pages/financial-aid.css — Financial Aid page styles
   Trimble Aviation
   ============================================================ */

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  background: var(--color-bg);
  position: relative;
  padding: 7rem 0 7rem;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.hero-content { position: relative; }

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: 16px;
  border-radius: 2px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 1.25rem;
}

.hero-heading {
  font-size: clamp(2.125rem, 7vw + 0.25rem, 3.25rem);
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 1.75rem;
}

@media (min-width: 900px) {
  .hero-heading {
    font-size: clamp(2.25rem, 2.8vw + 0.75rem, 3.75rem);
    line-height: 1.08;
  }
}

.hero-heading .text-accent {
  color: var(--color-accent);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 0 2.75rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero .btn-outline-light {
  color: var(--color-primary);
  border-color: rgba(17, 24, 39, 0.20);
  background: transparent;
}
.hero .btn-outline-light:hover,
.hero .btn-outline-light:focus-visible {
  color: var(--color-primary);
  background: var(--color-bg-soft);
  border-color: rgba(17, 24, 39, 0.38);
  box-shadow: none;
}

.hero-visual {
  position: relative;
  width: 100%;
}

.hero-img {
  width: 100%;
  height: auto;
  /* Match the partnership collage's native ratio so nothing is cropped */
  aspect-ratio: 1213 / 1147;
  object-fit: contain;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px -16px rgba(17, 24, 39, .12);
}

/* ─── SECTION HEADER ──────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

/* .section-eyebrow is defined globally in components.css. */

.section-header h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: var(--color-primary);
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
}

/* ─── DOCUMENT GALLERIES (uncropped + lightbox) ───────────────────
   The loan cards and program flyers are text-bearing document scans.
   They must be shown in FULL — never cropped — so the type stays
   legible. Each frame uses object-fit: contain and opens the shared
   lightbox (js/main.js) at full size on click. Built on the standard
   .media-gallery component so the lightbox wiring is reused. */
.fa-gallery.media-gallery {
  gap: 1.75rem;
  align-items: start;
  margin: 0;
}

.fa-gallery--cards.media-gallery {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  max-width: 960px;
  margin-inline: auto;
}

.fa-gallery--flyers.media-gallery {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  max-width: 1040px;
  margin-inline: auto;
}

/* Release the base item's aspect-ratio / overflow / background locks */
.fa-gallery .media-gallery-item {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

/* Clickable "paper" frame */
.fa-gallery .media-gallery-trigger {
  height: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -18px rgba(17, 24, 39, .22);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.fa-gallery .media-gallery-trigger:hover,
.fa-gallery .media-gallery-trigger:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px -22px rgba(17, 24, 39, .30);
  border-color: rgba(17, 24, 39, .18);
}

/* Full image — never cropped, no base hover-zoom or dark overlay */
.fa-gallery .media-gallery-trigger img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: none;
}
.fa-gallery .media-gallery-trigger:hover img,
.fa-gallery .media-gallery-trigger:focus-visible img { transform: none; }
.fa-gallery .media-gallery-trigger::after { display: none; }

/* Flyers share one ratio → exact-ratio frame fills with zero crop */
.fa-gallery--flyers .media-gallery-trigger { aspect-ratio: 1241 / 1755; }
.fa-gallery--flyers .media-gallery-trigger img { height: 100%; }

/* Loan cards are mixed ratios → contain inside a tidy uniform frame */
.fa-gallery--cards .media-gallery-trigger {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .85rem;
}
.fa-gallery--cards .media-gallery-trigger img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

/* Caption sits below the frame and doubles as the lightbox caption */
.fa-gallery .media-gallery-caption {
  position: static;
  opacity: 1;
  transform: none;
  padding: 1rem .25rem 0;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.fa-doc-desc {
  margin: .4rem 0 0;
  padding: 0 .25rem;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-align: center;
}

/* ─── APPLY WITH STRATUS ──────────────────────────────────────── */
.stratus-banner {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 60px -24px rgba(17, 24, 39, .18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.stratus-banner:hover,
.stratus-banner:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 32px 72px -24px rgba(17, 24, 39, .26);
}

.stratus-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.stratus-apply-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.stratus-apply-phone {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color 140ms ease;
}
.stratus-apply-phone:hover { color: var(--color-primary); }

/* ─── CTA BANNER ──────────────────────────────────────────────── */
.cta-banner {
  background: var(--color-primary);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .cta-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: .875rem;
}

.cta-banner-text p {
  color: rgba(255, 255, 255, .55);
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 520px;
  margin: 0;
  font-weight: 400;
}

.cta-banner-action {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.cta-phone {
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .40);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color 140ms ease;
}
.cta-phone:hover { color: rgba(255, 255, 255, .80); }

/* ─── MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 899px) {
  .hero { padding: 4rem 0 4.5rem; }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-sub {
    font-size: clamp(.9375rem, 2.5vw + 0.5rem, 1.125rem);
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .hero-visual { display: none; }

  .section-header { margin-bottom: 3rem; }

  .cta-banner { padding: 4rem 0; }
}
