/* ============================================================
   ABOUT.CSS
   Page-specific styles for about.html.
   Shared tokens, reset, layout, and components come from:
   base.css → layout.css → components.css → utilities.css
   ============================================================ */


/* ── 1. HERO ──────────────────────────────────────────────── */

.about-hero {
  background: var(--color-white);
  padding: 28px var(--page-padding-inline) 36px;
  border-bottom: 0.5px solid var(--color-border);
}

.about-hero__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  border-left: 3px solid var(--color-gold);
  padding-left: 20px;
}

.about-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(10, 37, 117, 0.65); /* was rgba(238,204,26,0.6) ~1.3:1 — navy at 0.65 passes WCAG AA 4.5:1 */
  margin-bottom: 10px;
}

.about-hero__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-navy);
  line-height: var(--line-height-heading);
  margin-bottom: 8px;
}

.about-hero__sub {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.15rem, 1.15rem + ((1vw - 0.2rem) * 1.25), 1.75rem);
  color: rgba(10, 37, 117, 0.5);
}


/* ── 2. SHARED SECTION WRAPPER ────────────────────────────── */

.about-section {
  padding: min(3rem, 4vw) var(--page-padding-inline) min(3.5rem, 4.5vw);
  border-bottom: 0.5px solid var(--color-border);
}

.about-inner {
  max-width: var(--max-width);
  margin-inline: auto;
}


/* ── 3. SHARED SECTION TYPOGRAPHY ────────────────────────── */

.about-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(10, 37, 117, 0.65); /* was 0.4 — increased to pass WCAG AA 4.5:1 at 10px */
  margin-bottom: 10px;
}

.about-rule {
  width: 36px;
  height: 2px;
  background: var(--color-navy);
  border: none;
  margin-bottom: 16px;
}

.about-h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-h2);
  color: var(--color-navy);
  line-height: var(--line-height-heading);
  margin-bottom: 20px;
}


/* ── 4. SHARED IMAGE STYLE ────────────────────────────────── */

/*
 * Base image style — fills grid column, rounds corners, covers frame.
 * Applied to section photos (e.g. .how-photo in the How We Work section).
 * object-fit: cover fills the frame at any size.
 * border-radius matches --radius-lg (12px).
 * width: 100% ensures it fills its grid column.
 */
.about-img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center;
}


/* ── 5. OUR STORY ─────────────────────────────────────────── */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.story-body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: var(--line-height-body);
}

.story-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-city-photo {
  height: 280px;
  object-fit: cover;
  object-position: center 80%;
  border-radius: var(--radius-lg);
}

.stat-row {
  display: flex;
  gap: 14px;
}

.stat-box {
  flex: 1;
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
}

.stat-box--navy {
  background: var(--color-navy);
}

.stat-box--light {
  background: var(--color-white);
  border: 0.5px solid var(--color-border);
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
}

.stat-box--navy .stat-num {
  color: var(--color-gold);
}

.stat-box--light .stat-num {
  color: var(--color-navy);
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 7px;
}

.stat-box--navy .stat-label {
  color: rgba(255, 255, 255, 0.5);
}

.stat-box--light .stat-label {
  color: rgba(10, 37, 117, 0.65); /* was 0.4 — increased to pass WCAG AA 4.5:1 at 9px */
}


/* ── 6. OUR ADVANTAGE ─────────────────────────────────────── */

/*
 * Section background matched precisely to image background.
 * Sampled via PIL from fabric-swatches-arihant-range.webp:
 * all four corners returned #f8f7f5 — one unit off from
 * --color-bg-light (#f8f8f6). Set explicitly so image
 * blends seamlessly without a visible box edge.
 */
.about-section--alt {
  background: var(--color-bg-advantage);
}

/*
 * Grid: pills column first in DOM — drives row height.
 * Photo column second in DOM, visually first via order: -1.
 * This ensures the photo is exactly as tall as the pills,
 * no more, no less — no overflow.
 */
.advantage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/*
 * Photo column: position relative establishes containing
 * block. overflow hidden clips the scaled image cleanly.
 * No border-radius — seamless blend into section background.
 */
.advantage-photo-col {
  order: -1;
  position: relative;
  overflow: hidden;
}

/*
 * Photo: absolutely fills the containing block (pills height).
 * scale(1.05) zooms slightly to fill edges confidently.
 * transform-origin: center top anchors zoom from top.
 * Wrapped in reduced-motion query — static transform but
 * respects user preference per project accessibility standards.
 */
.advantage-photo-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .advantage-photo-col img {
    transform: scale(1.05);
    transform-origin: center top;
  }
}

.pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pill {
  background: rgba(10, 37, 117, 0.04);
  border: 1px solid rgba(10, 37, 117, 0.1);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.pill__title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 5px;
}

.pill__desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: var(--line-height-body);
}


/* ── 7. HOW WE WORK ───────────────────────────────────────── */

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.how-photo-col {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.how-photo-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
  display: block;
}

.how-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.how-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.how-step__title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.how-step__desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: var(--line-height-body);
}


/* ── 8. CTA STRIP ─────────────────────────────────────────── */

/*
 * Gold background to differentiate from the navy footer.
 * box-shadow + clip-path: footer reveal shadow pattern —
 * identical to .cta-section in home.css and last
 * .fabric-section in greige/yarn-dyed/denim.css.
 */
.about-cta-strip {
  background: var(--color-gold);
  padding: 28px var(--page-padding-inline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  clip-path: inset(0 -60px -60px -60px);
}

.about-cta-strip__text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-navy);
}

.about-cta-strip__btn {
  display: inline-block;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 28px;
  min-height: 44px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .about-cta-strip__btn {
    transition: background 0.15s ease, color 0.15s ease;
  }
}

.about-cta-strip__btn:hover {
  background: var(--color-navy-dark);
  color: var(--color-white);
  text-decoration: none;
}


/* ── 9. RESPONSIVE ───────────────────────────────────────── */

/* Tablet — 768px to 1023px */
@media (min-width: 768px) and (max-width: 1023px) {

  .about-hero {
    padding: 28px var(--page-padding-inline) 36px;
  }

  .about-section {
    padding: min(3.5rem, 4.5vw) var(--page-padding-inline);
  }

  .about-cta-strip {
    padding: 24px var(--page-padding-inline);
  }

  .story-grid {
    gap: 36px;
  }

  .story-city-photo {
    height: 240px;
  }

  .advantage-grid {
    gap: 32px;
  }

  /* Tablet zoom — wrapped in reduced-motion per project accessibility standards */
  @media (prefers-reduced-motion: no-preference) {
    .advantage-photo-col img {
      transform: scale(1.05);
      transform-origin: center top;
    }
  }

  .how-grid {
    gap: 36px;
  }

}

/* Mobile — below 768px */
@media (max-width: 767px) {

  .about-hero {
    padding: 24px 24px 32px;
  }

  .about-section {
    padding: 2rem 24px 2.5rem;
  }

  /* Story: single column — photo → text → stat boxes */
  .story-grid {
    grid-template-columns: 1fr;
    gap: 0;
    display: flex;
    flex-direction: column;
  }

  /*
   * Mobile order: photo (1) → text (2) → stat boxes (3).
   * .story-right contains photo + stat-row.
   * We split them by giving .story-city-photo order:1,
   * .story-text order:2, .stat-row order:3.
   * .story-right itself becomes a contents container
   * so its children participate directly in the flex order.
   */
  .story-right {
    display: contents;
  }

  .story-city-photo {
    order: 1;
    height: 200px;
    object-position: center 80%;
    margin-bottom: 20px;
  }

  .story-text {
    order: 2;
    margin-bottom: 20px;
  }

  .stat-row {
    order: 3;
    width: 100%;
    gap: 12px;
  }

  .stat-box {
    padding: 22px 12px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .stat-num {
    font-size: 2.2rem;
  }

  /* Advantage: single column — photo above pills */
  .advantage-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /*
   * Mobile photo: fixed height, border-radius since it
   * sits as a visible block above pills in single column.
   * order: -1 keeps it visually above the pills col.
   * scale(1.18) fills the fixed 240px height confidently.
   */
  .advantage-photo-col {
    height: 240px;
    order: -1;
    border-radius: var(--radius);
  }

  /* Mobile zoom — wrapped in reduced-motion per project accessibility standards */
  @media (prefers-reduced-motion: no-preference) {
    .advantage-photo-col img {
      transform: scale(1.18);
      transform-origin: center top;
    }
  }

  /* How We Work: single column — photo above steps */
  .how-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .how-photo-col {
    height: 240px;
    order: -1;
  }

  /* CTA strip: stack vertically */
  .about-cta-strip {
    padding: 24px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

}
