/* ==========================================================================
   Imortis About page (v2)
   Styles for templates/home/page-about-us.html. Depends on the --hp-* tokens
   and shared section/card/button classes in home-v2.css (load that first).
   Prefix: ab- (about).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero: copy beside a photo
   -------------------------------------------------------------------------- */
.ab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 5rem;
  align-items: center;
  padding: 6rem 0 5rem 0;
}

.ab-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ab-hero__title {
  font-family: var(--hp-font-display);
  font-size: clamp(2.375rem, 4.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--hp-text);
  text-wrap: balance;
}

.ab-hero__lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--hp-text-2);
  max-width: 560px;
  text-wrap: pretty;
}

.ab-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

.ab-hero__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 7;
  border-radius: var(--hp-radius);
  overflow: hidden;
  background: var(--hp-bg-muted);
  box-shadow: var(--hp-shadow-xl);
}

.ab-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ab-hero__caption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  background: rgba(252, 252, 250, 0.92);
  border-radius: var(--hp-radius-sm);
  padding: 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

[data-theme="dark"] .ab-hero__caption {
  background: rgba(21, 24, 32, 0.92);
}

.ab-hero__caption span:first-child {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.ab-hero__caption span:last-child {
  font-family: var(--hp-font-display);
  font-size: 1.125rem;
  color: var(--hp-text);
}

/* Secondary (ghost) button on light backgrounds */
.hp-btn--outline {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--hp-text-2);
  padding: 1.0625rem 2rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.hp-btn--outline:hover,
.hp-btn--outline:focus-visible {
  border-color: var(--hp-accent);
  color: var(--hp-text);
}

[data-theme="dark"] .hp-btn--outline {
  border-color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Story: copy + photo/feature stack
   -------------------------------------------------------------------------- */
.ab-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: start;
}

.ab-story__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ab-story__title {
  font-family: var(--hp-font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hp-text);
  text-wrap: balance;
}

.ab-story__copy p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--hp-text-2);
}

.ab-story__copy p.ab-story__lead {
  color: var(--hp-text);
}

.ab-story__quote {
  font-family: var(--hp-font-display);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--hp-text);
  padding: 0.5rem 0 0 1.5rem;
  border-left: 3px solid var(--hp-accent);
  margin-top: 0.5rem;
}

.ab-story__aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ab-story__photo {
  border-radius: var(--hp-radius);
  overflow: hidden;
  height: 300px;
  background: var(--hp-primary);
}

.ab-story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}

.ab-feature {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--hp-shadow-md);
}

.ab-feature h3 {
  font-family: var(--hp-font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--hp-text);
}

.ab-feature p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--hp-text-2);
}

.ab-feature ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.95rem;
  color: var(--hp-text);
}

.ab-feature li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ab-feature li svg {
  flex-shrink: 0;
  color: var(--hp-accent);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   Journey: three year cards
   -------------------------------------------------------------------------- */
.ab-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.ab-year {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border-soft);
  border-radius: var(--hp-radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--hp-shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.ab-year--current {
  border-color: var(--hp-accent-light);
}

.ab-year__num {
  font-family: var(--hp-font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hp-accent);
}

.ab-year h3 {
  font-family: var(--hp-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hp-text);
}

.ab-year p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--hp-text-2);
}

/* Closing band actions */
.ab-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ab-hero {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 3rem;
  }

  .ab-story {
    gap: 3rem;
  }

  .ab-journey {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .ab-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0 2.5rem 0;
  }

  .ab-hero__copy {
    gap: 1.125rem;
  }

  .ab-hero__lead {
    font-size: 1.03rem;
  }

  .ab-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
  }

  .ab-hero__actions .hp-btn {
    width: 100%;
  }

  .ab-hero__photo {
    aspect-ratio: 7 / 6;
    border-radius: 20px;
    margin-top: 0.75rem;
  }

  .ab-hero__caption {
    left: 0.875rem;
    right: 0.875rem;
    bottom: 0.875rem;
    padding: 0.75rem 0.875rem;
    border-radius: 12px;
  }

  .ab-hero__caption span:last-child {
    font-size: 0.9375rem;
  }

  .hp-btn--outline {
    padding: 0.875rem 1.75rem;
  }

  .ab-story {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ab-story__title {
    font-size: 1.75rem;
  }

  .ab-story__copy p {
    font-size: 1rem;
  }

  .ab-story__quote {
    font-size: 1.1875rem;
    padding-left: 1.125rem;
  }

  .ab-story__photo {
    height: 200px;
    border-radius: 20px;
  }

  .ab-feature {
    padding: 1.375rem 1.25rem;
    border-radius: 20px;
  }

  .ab-feature h3 {
    font-size: 1.1875rem;
  }

  .ab-feature ul {
    font-size: 0.9rem;
  }

  /* Journey becomes a vertical timeline */
  .ab-journey {
    grid-template-columns: 1fr;
    gap: 0;
    border-left: 2px solid rgba(168, 137, 90, 0.35);
    padding-left: 1.5rem;
  }

  .ab-year {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 1.5rem 0;
    gap: 0.375rem;
  }

  .ab-year:last-child {
    padding-bottom: 0.25rem;
  }

  .ab-year::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--hp-accent);
    border: 3px solid var(--hp-bg-muted);
    box-shadow: 0 0 0 2px rgba(168, 137, 90, 0.35);
  }

  .ab-year__num {
    font-size: 1.625rem;
    line-height: 1.1;
  }

  .ab-year h3 {
    font-size: 1.125rem;
  }

  .ab-year p {
    font-size: 0.9rem;
  }

  .ab-cta__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .ab-cta__actions .hp-btn {
    width: 100%;
  }
}
