/* about.css */
/* ===========================
   About Page (assets/css/about.css)
   Keep header/footer styling in your main style.css
   =========================== */

/* Scope-safe resets for ABOUT page only (prevents Bootstrap/global spacing weirdness) */
.about,
.about * {
  box-sizing: border-box;
}

.about {
  font-family: inherit;
  color: #111;
  overflow-x: clip; /* safer than hidden (avoids some mobile clipping bugs) */
}

/* Neutralize Bootstrap/global typography spacing INSIDE about */
.about h1,
.about h2,
.about h3,
.about h4,
.about p,
.about ul {
  margin: 0;
}

.about p + p { margin-top: 0.9rem; }
.about h3 + p,
.about h4 + p { margin-top: 0.6rem; }
.about p + .about-quote { margin-top: 1rem; }

/* Containers */
.about-container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem); /* prevents edge clipping */
}

/* ===========================
   HERO
   =========================== */

.about-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #111;

  /* Allow content to define height (prevents “cropping / vanishing”) */
  min-height: clamp(520px, 75vh, 760px);

  display: grid;
  place-items: center;
  padding: clamp(2.25rem, 4vw, 4rem) 0;
}

/* Background layer (desktop) */
.about-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(0,0,0,0.70), rgba(0,0,0,0.25)),
    url("../images/movement3.jpg") center/cover no-repeat;
}

/* Mobile fallback image */
.about-hero__img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Content card */
.about-hero__content {
  position: relative;
  z-index: 2;

  width: min(900px, 100%);
  margin: 0 auto;

  padding: clamp(1.15rem, 3vw, 2rem);
  border-radius: 18px;

  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}

.about-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.9;
}

.about-title {
  margin-top: 0.7rem;
  font-size: clamp(1.55rem, 4.6vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
}

.about-subtitle {
  margin-top: 0.85rem;
  font-size: clamp(0.98rem, 2.4vw, 1.05rem);
  max-width: 65ch;
  opacity: 0.95;
}

/* Actions */
.about-hero__actions {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.about-btn {
  display: inline-block;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 140ms ease, opacity 140ms ease;
  white-space: nowrap;
}

.about-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.about-btn--primary {
  background: #fff;
  color: #111;
}

.about-btn--ghost {
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
}

/* Stats */
.about-stats {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.about-stat {
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

.about-stat__num {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.about-stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  opacity: 0.92;
}

/* ===========================
   Sections
   =========================== */

.about-section {
  padding: 4rem 0;
}

.about-section--story { padding-top: 3.25rem; }
.about-section--tracks { background: #f6f6f6; }
.about-section--faq { background: #0f0f10; color: #fff; }

.about-heading {
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
  font-weight: 900;
}

.about-lead {
  margin-top: 0.65rem;
  max-width: 75ch;
  opacity: 0.9;
  font-size: clamp(0.98rem, 2.2vw, 1.05rem);
}

/* ===========================
   Story grid
   =========================== */

.about-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: stretch;
}

.about-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.about-card--story {
  padding: 1.5rem;
}

.about-card--story h3 {
  font-size: clamp(1.2rem, 2.8vw, 1.4rem);
  font-weight: 900;
}

.about-card--story p {
  line-height: 1.7;
  margin-top: 0.85rem;
}

.about-quote {
  margin-top: 1.15rem !important;
  padding-left: 1rem;
  border-left: 4px solid #111;
  font-weight: 800;
}

.about-card--image {
  position: relative;
}

.about-card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
  color: #fff;
}

/* ===========================
   About Jared Section
   =========================== */

.about-section--jared { background: #f9f9f9; }

.jared {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: center;
}

.jared-image {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  background: #eaeaea;
  min-height: 360px;
}

/* Main portrait only */
.jared-image .about-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stamp only (do NOT inherit the portrait sizing) */
.jared-image .certification-stamp {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 84px;
  height: auto;
  z-index: 10;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.98);
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}


.jared-content h3 {
  font-size: clamp(1.55rem, 3.6vw, 2rem);
  font-weight: 900;
  margin-top: 0.35rem;
}

.jared-intro {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 2.2vw, 1.05rem);
  font-weight: 600;
}

.jared-content p {
  margin-top: 0.85rem;
  line-height: 1.7;
}

.jared-values {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.jared-value {
  background: #fff;
  border-radius: 16px;
  padding: 0.9rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.jared-value span {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.25rem;
}

.jared-value p {
  font-size: 0.9rem;
  font-weight: 700;
}

.jared-signoff {
  margin-top: 1.2rem;
  font-weight: 800;
  border-left: 4px solid #111;
  padding-left: 0.9rem;
}

/* ===========================
   Method
   =========================== */

.method {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.method-card {
  border-radius: 18px;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.method-card h4 { font-weight: 900; }
.method-card p { margin-top: 0.6rem; line-height: 1.6; opacity: 0.9; }

/* ===========================
   Tracks
   =========================== */

.tracks {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.track {
  border-radius: 18px;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.track h4 { font-weight: 900; }
.track p { margin-top: 0.6rem; opacity: 0.92; }
.track ul { margin-top: 0.85rem; padding-left: 1.1rem; line-height: 1.8; }

.track::before {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  opacity: 0.12;
  background: #000;
}

/* ===========================
   Chips
   =========================== */

.chips {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

/* ===========================
   FAQ
   =========================== */

.faq {
  margin-top: 0.85rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 1rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

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

.faq p {
  margin-top: 0.75rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* ===========================
   CTA
   =========================== */

.about-cta {
  padding: 3.25rem 0;
  background: #fff;
}

.about-cta__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.about-cta__inner h3 { font-weight: 900; }
.about-cta__inner p { margin-top: 0.5rem; opacity: 0.9; max-width: 70ch; }

/* ===========================
   Responsive
   =========================== */

@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
  .jared { grid-template-columns: 1fr; }
  .jared-values { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr 1fr; }
  .tracks { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .about-cta__inner { flex-direction: column; align-items: flex-start; }
}

/* Mobile stability */
@media (max-width: 768px) {
  .about-hero { min-height: 60vh; padding: 2.25rem 0; }
  .about-hero__img { display: block; }
  .about-hero__bg { display: none; }

  .about-section { padding: 2.6rem 0; }
}

/* Tight spacing + eliminate “giant gaps” */
@media (max-width: 600px) {
  .about-section { padding: 2.15rem 0; }
  .about-section--story { padding-top: 1.85rem; }

  .about-grid,
  .jared,
  .method,
  .tracks { margin-top: 1.15rem; }

  .about-lead { margin-top: 0.5rem; }
  .about-hero__actions { margin-top: 1rem; }

  .method { grid-template-columns: 1fr; } /* avoid awkward 2-up gaps */
  .jared-values { grid-template-columns: 1fr; }

  .about-card--story { padding: 1.1rem; }

  .about-card--image img {
    height: 220px;     /* prevents story image from creating huge vertical block */
    width: 100%;
    object-fit: cover;
  }

  .about-cta { padding: 2.25rem 0; }
  .about-cta__inner { padding: 1.15rem; }

  .faq { padding: 0.95rem 1rem; }
}
/* ===========================
   FIX: Stop horizontal overflow (mobile)
   =========================== */

/* 1) Hard-stop any horizontal scroll */
html, body { overflow-x: hidden; }

/* 2) Make sure the About page can never exceed viewport width */
.about,
.about-hero,
.about-section,
.about-container { max-width: 100%; }

/* 3) The hero card is the usual offender: force it to respect viewport padding */
.about-hero__content{
  width: min(900px, calc(100% - 2rem)) !important;
}

.about-image-wrapper {
  position: relative;
  overflow: hidden;   /* ⬅️ THIS was missing / wrong */
  border-radius: 24px;
}


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

.certification-stamp {
  position: absolute;
  bottom: 16px;
  right: 16px;

  width: 84px;
  height: auto;

  z-index: 10;               /* force above image */
  pointer-events: none;     /* behave like a badge, not UI */

  background: rgba(255, 255, 255, 0.98);
  padding: 6px;
  border-radius: 10px;

  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}





