/* ============================================================
   SAC AERO DESIGN — about.css
   Styles specific to pages/about.html
============================================================ */

/* ---- PAGE HERO SUB-HEADING ---- */
.about-hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 1rem;
  line-height: 1.7;
}

/* ---- TEAM GRID ---- */
.team-section { background: var(--bg-dark); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.team-card:hover { border-color: var(--accent-dim); }

/* Fixed aspect-ratio photo slot */
.team-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-mid);
}
.team-photo {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform var(--transition);
}
.team-card:hover .team-photo { transform: scale(1.03); }

/* Shown when headshot image is missing */
.team-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--text-muted);
  text-align: center; padding: 1.5rem;
  background: var(--bg-card);
  border-bottom: 2px dashed var(--border);
}
.team-photo-placeholder i { font-size: 2.5rem; color: var(--accent-dim); }
.team-photo-placeholder span { font-size: 0.82rem; font-style: italic; }

.team-info { padding: 1.5rem; }
.team-info h3 { font-family: var(--font-display); font-size: 0.93rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.team-role { font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.team-bio { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

/* ---- SHOP PHOTOS ---- */
.shop-photos-section { background: var(--bg-mid); }

/* Three-slot grid: one wide (2fr) + two square stacked */
.shop-photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 360px;
}

.shop-photo-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
/* Wide item spans both rows */
.shop-photo-item.wide { grid-row: 1 / 3; }

.shop-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Placeholder shown when photo file is missing */
.shop-photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; color: var(--text-muted);
  text-align: center; padding: 2rem;
}
.shop-photo-placeholder i { font-size: 2rem; color: var(--accent-dim); }
.shop-photo-placeholder span { font-size: 0.88rem; font-weight: 500; }
.shop-photo-placeholder small { font-size: 0.76rem; font-style: italic; }

/* ============================================================
   BOTTOM CTA — FIXED
============================================================ */

.about-cta-section {
  background: var(--bg-mid);
  padding-top: 0;
}

/* MAIN CARD */
.about-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;

  background: linear-gradient(
    135deg,
    rgba(0, 200, 255, 0.08),
    rgba(0, 200, 255, 0.02)
  );

  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

/* TEXT */
.about-cta-text {
  max-width: 600px;
}

.about-cta-text p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* BUTTONS (THIS IS THE BIG FIX) */
.about-cta-actions {
  display: flex;
  flex-direction: column;   /* force vertical stack */
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 220px;
}

/* MOBILE (ALSO CRITICAL) */
@media (max-width: 768px) {
  .about-cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }

  .about-cta-actions {
    width: 100%;
    min-width: unset;
  }

  .about-cta-actions .btn {
    width: 100%;
  }
}
/* ============================================================
   ABOUT RESPONSIVE (STABLE + PREDICTABLE)
============================================================ */

/* Default desktop stays untouched */

/* Tablets: side-by-side only if space allows */
@media (max-width: 900px) {

  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
  }

  .about-image,
  .about-text {
    width: 100%;
  }

  .about-image img {
    width: 100%;
    height: auto;
    display: block;
  }

  .about-text {
    text-align: left;
  }

  .about-accent-box {
    position: static;
    margin-top: 1rem;
  }
}

/* Phones: force stacking (this is what fixes “bad layout”) */
@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}
