/* ═══════════════════════════════════════════
   ABOUT.CSS — Shaq's Auto Spa
   About page: hero, stats, bio, guarantee
   ═══════════════════════════════════════════ */

/* ──────────────────────────────────────────
   PLACEHOLDER STYLE — visible gap indicator
   ────────────────────────────────────────── */
.about-placeholder {
  border: 1px dashed rgba(132, 204, 22, 0.3);
  background: rgba(132, 204, 22, 0.03);
  padding: 16px;
  border-radius: 6px;
}

.about-placeholder p {
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 13px;
  color: #555;
  margin: 0;
}

.about-placeholder--inline {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 12px;
  color: #555;
}

.about-placeholder--block {
  margin-bottom: 16px;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.about-placeholder--block:last-child {
  margin-bottom: 0;
}


/* ──────────────────────────────────────────
   SECTION 1 — HERO (Split-screen)
   ────────────────────────────────────────── */
.about-hero {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

@media (min-width: 768px) {
  .about-hero {
    flex-direction: row;
  }
}

/* ── Left column: Photo panel ── */
.about-hero__left {
  position: relative;
  width: 100%;
  height: 55vw;
  min-height: 300px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .about-hero__left {
    width: 50%;
    height: auto;
    min-height: 100dvh;
  }
}

/* Photo wrapper with corner bracket accents */
.about-hero__photo-wrap {
  position: absolute;
  inset: 24px;
}

@media (min-width: 768px) {
  .about-hero__photo-wrap {
    inset: 40px;
  }
}

/* Corner bracket accents — top-left & bottom-right via ::before/::after */
.about-hero__photo-wrap::before,
.about-hero__photo-wrap::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: #84cc16;
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}

.about-hero__photo-wrap::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.about-hero__photo-wrap::after {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

/* Additional corners via the photo element's pseudo-elements */
.about-hero__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Gradient overlay at bottom of photo for badge readability */
.about-hero__left::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(10,10,10,0.7), transparent);
  pointer-events: none;
  z-index: 2;
}

.about-hero__photo::before,
.about-hero__photo::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: #84cc16;
  border-style: solid;
  z-index: 2;
  pointer-events: none;
}

.about-hero__photo::before {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.about-hero__photo::after {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

/* Badge */
.about-hero__badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 3;
  background: #1a1a1a;
  border: 1px solid #84cc16;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: #84cc16;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .about-hero__badge {
    bottom: 56px;
    left: 56px;
  }
}

/* ── Right column: Content ── */
.about-hero__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .about-hero__right {
    width: 50%;
    padding: 0 48px;
    text-align: left;
  }
}

.about-hero__eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: #84cc16;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.about-hero__name {
  font-family: var(--font-display);
  font-size: clamp(80px, 11vw, 140px);
  color: #e5e5e5;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about-hero__period {
  color: #84cc16;
}

.about-hero__title {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 8px;
  margin-bottom: 0;
}

.about-hero__divider {
  width: 40px;
  height: 1px;
  background: #84cc16;
  margin: 28px 0;
}

@media (max-width: 767px) {
  .about-hero__divider {
    margin: 28px auto;
  }
}

/* ── Hero load animation ── */
.about-hero__slide-left {
  opacity: 0;
  transform: translateX(-32px);
  animation: aboutSlideIn 0.65s ease-out forwards;
}

.about-hero__slide-right {
  opacity: 0;
  transform: translateX(32px);
  animation: aboutSlideIn 0.65s ease-out 0.15s forwards;
}

@keyframes aboutSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero__slide-left,
  .about-hero__slide-right {
    transform: none;
    animation: aboutFadeOnly 0.65s ease-out forwards;
  }

  .about-hero__slide-right {
    animation-delay: 0.15s;
  }

  @keyframes aboutFadeOnly {
    to {
      opacity: 1;
    }
  }
}


/* ──────────────────────────────────────────
   SECTION 2 — BY THE NUMBERS
   ────────────────────────────────────────── */
.about-stats {
  background: #0a0a0a;
  border-top: 1px solid #2a2a2a;
  padding: 80px 0;
}

.about-stats__heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: #e5e5e5;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 40px;
}

.about-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
  .about-stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-stat {
  padding: 36px 28px;
  border-bottom: 1px solid #2a2a2a;
}

/* Right border on non-last-in-row — 2-col mobile */
.about-stat:nth-child(odd) {
  border-right: 1px solid #2a2a2a;
}

/* Last row: no bottom border — mobile (6 items, 2-col = 3 rows) */
.about-stat:nth-last-child(-n+2) {
  border-bottom: none;
}

@media (min-width: 768px) {
  /* Reset mobile borders */
  .about-stat:nth-child(odd) {
    border-right: none;
  }
  .about-stat:nth-last-child(-n+2) {
    border-bottom: 1px solid #2a2a2a;
  }

  /* 3-col: right border on 1st and 2nd in each row */
  .about-stat:nth-child(3n+1),
  .about-stat:nth-child(3n+2) {
    border-right: 1px solid #2a2a2a;
  }

  /* Last row (items 4-6): no bottom border */
  .about-stat:nth-child(n+4) {
    border-bottom: none;
  }
}

.about-stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 72px);
  color: #84cc16;
  line-height: 1;
  letter-spacing: 0.02em;
}

.about-stat__label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

.about-stat__sub {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  color: #555;
  margin-top: 4px;
}


/* ──────────────────────────────────────────
   SECTION 3 — BIO BLOCK
   ────────────────────────────────────────── */
.about-bio {
  background: #111111;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  padding: 80px 0;
}

.about-bio__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-bio__eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: #84cc16;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
}

.about-bio__text {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 400;
  color: #e5e5e5;
  line-height: 1.9;
}

.about-bio__text + .about-bio__text {
  color: #888;
  margin-top: 20px;
}


/* ──────────────────────────────────────────
   SECTION 4 — GUARANTEE + CTA
   ────────────────────────────────────────── */
.about-guarantee {
  background: #84cc16;
  padding: 80px 0;
  text-align: center;
}

.about-guarantee__headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  color: #0a0a0a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

.about-guarantee__subtext {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  color: rgba(10, 10, 10, 0.7);
  max-width: 500px;
  margin: 16px auto 36px;
  line-height: 1.6;
}

.about-guarantee__cta {
  display: inline-block;
  background: #0a0a0a;
  color: #84cc16;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  padding: 15px 36px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.about-guarantee__cta:hover {
  background: #111;
}


/* ──────────────────────────────────────────
   ANIMATIONS — IntersectionObserver driven
   ────────────────────────────────────────── */

/* Fade-up: starts hidden, revealed by JS */
.about-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .about-fade-up {
    transform: none;
    transition: opacity 0.5s ease;
  }
}
