/* ══════════════════════════════════════════════════════════════
   BBS ELECTRIC — about.css
   About Us page styles
   Section order:
     1. about-hero      (dark image bg)
     2. about-story     (white)
     3. about-values    (dark navy)
     4. about-credentials (light gray)
     5. about-team      (white)
     6. about-faq       (light gray)
     7. about-cta       (dark gradient)
══════════════════════════════════════════════════════════════ */

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

.about-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height, 120px) + var(--space-12));
  padding-bottom: var(--space-16);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Dark overlay over background image */
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 0;
  pointer-events: none;
}

/* Decorative colored accent bar at bottom edge */
.about-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-tertiary);
  z-index: 2;
}

.about-hero .container {
  position: relative;
  z-index: 1;
}

.about-hero-inner {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Breadcrumb / tag badges above the headline */
.about-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: 0;
  align-items: center;
}

.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: rgba(251, 211, 1, 0.18);
  border: 1px solid rgba(251, 211, 1, 0.45);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-accent);
}

.about-hero-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--color-text-on-dark);
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.about-hero-title span {
  color: var(--color-accent);
}

.about-hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-neutral-200);
  max-width: 100%;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 0;
}

/* ── 2. STORY ────────────────────────────────────────────── */

.about-story {
  background: var(--color-bg);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gutter);
  align-items: stretch;
}

/* Left: text content */
.about-story-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-story-content .section-label {
  align-self: flex-start;
}

.about-story-content h2 {
  color: var(--color-heading);
  margin-bottom: 0;
}

.about-story-content p {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

.about-story-content p + p {
  margin-top: var(--space-4);
}

/* Tagline / pull quote inside story */
.about-story-tagline {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  border-left: 4px solid var(--color-tertiary);
  padding-left: var(--space-5);
  line-height: var(--line-height-snug);
  margin: var(--space-2) 0;
}

/* Right: image column — full height, image wrap sticks while text scrolls */
.about-story-image {
  height: 100%;
}

.about-story-img-wrap {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-story-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

/* Accent badge overlapping bottom-left corner of image */
.about-story-accent-badge {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  background: var(--color-accent);
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  z-index: 2;
}

.about-story-accent-badge .badge-icon {
  flex-shrink: 0;
  color: var(--color-secondary);
}

/* ── 3. VALUES ───────────────────────────────────────────── */

.about-values {
  background: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative blob */
.about-values-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  opacity: 0.08;
  filter: blur(100px);
  top: -120px;
  right: -80px;
  pointer-events: none;
  z-index: 0;
  aria-hidden: true;
}

.about-values .container {
  position: relative;
  z-index: 1;
}

.about-values-header {
  text-align: center;
  margin-bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.about-values-header .section-label {
  color: var(--color-accent);
  align-self: center;
}

.about-values-header h2 {
  color: var(--color-text-on-dark);
}

.about-values-header p {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: var(--color-neutral-300);
  line-height: var(--line-height-relaxed);
  max-width: 560px;
  margin: 0;
}

/* 3-column values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--grid-gutter);
}

/* First 3 cards: span 2 columns each (fills row of 6) */
.values-grid .value-card:nth-child(1),
.values-grid .value-card:nth-child(2),
.values-grid .value-card:nth-child(3) {
  grid-column: span 2;
}

/* Cards 4 & 5: span 3 columns each so they share the row evenly */
.values-grid .value-card:nth-child(4),
.values-grid .value-card:nth-child(5) {
  grid-column: span 3;
}

/* Individual value card */
.value-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  
  position: relative;
  overflow: hidden;
}



/* Large ordinal number — decorative */
.value-number {
  font-family: var(--font-heading);
  font-size: var(--font-size-7xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-none);
  color: var(--color-accent);
  opacity: 0.25;
  position: absolute;
  top: var(--space-3);
  right: var(--space-5);
  pointer-events: none;
  user-select: none;
}

/* Icon sits below/alongside the number */
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(22, 108, 157, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.value-icon svg,
.value-icon [data-lucide] {
  width: 24px;
  height: 24px;
}

.value-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-on-dark);
  line-height: var(--line-height-snug);
  margin: 0;
}

.value-desc {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-neutral-400);
  margin: 0;
}

/* ── 4. CREDENTIALS ──────────────────────────────────────── */

.about-credentials {
  background: var(--color-bg-secondary);
}

.about-credentials-header {
  text-align: center;
  margin-bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.about-credentials-header .section-label {
  align-self: center;
}

.about-credentials-header h2 {
  color: var(--color-heading);
}

.about-credentials-header p {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 540px;
  margin: 0;
}

/* 2-column credentials grid */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gutter);
}

/* Individual credential card */
.credential-card {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}



/* Icon/badge row at top of card */
.credential-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.credential-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fed401;
  flex-shrink: 0;
}

.credential-icon-wrap svg,
.credential-icon-wrap [data-lucide] {
  width: 26px;
  height: 26px;
  color: #fed401 !important;
  stroke: #fed401 !important;
}

.credential-card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: #ffffff !important;
  margin: 0;
  line-height: var(--line-height-snug);
}

.credential-card-desc {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: #ffffff !important;
  margin: 0;
}

.credential-card li {
  color: #ffffff !important;
}

/* BBB badge centered in its card */
.bbb-badge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-4) 0;
}

.bbb-badge-wrap img {
  max-width: 150px;
  width: 100%;
  height: auto;
  display: block;
}

/* ── 5. TEAM ─────────────────────────────────────────────── */

.about-team {
  background: var(--color-bg);
}

.about-team-header {
  text-align: center;
  margin-bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.about-team-header .section-label {
  align-self: center;
}

.about-team-header h2 {
  color: var(--color-heading);
}

/* Split layout: bio text left, image/card right */
.about-team-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: calc(var(--grid-gutter) * 2);
  align-items: start;
}

/* Owner image side */
.about-team-image {
  position: sticky;
  top: calc(var(--header-height, 80px) + 2rem);
  align-self: start;
}

.team-member-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-member-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Photo block at top of the card */
.team-member-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Info below the photo */
.team-member-info {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.team-member-name {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-heading);
  margin: 0;
}

.team-member-role {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin: 0;
}

/* Owner bio text side */
.about-team-bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about-team-bio h2 {
  color: var(--color-heading);
  margin: 0;
}

.about-team-bio p {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin: 0;
}

/* Quick highlights: icon + text pairs in a 2-col mini-grid */
.owner-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.owner-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.owner-highlight-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.owner-highlight-icon svg,
.owner-highlight-icon [data-lucide] {
  width: 18px;
  height: 18px;
}

.owner-highlight-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.owner-highlight-label {
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-text-muted);
}

.owner-highlight-value {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  line-height: var(--line-height-snug);
}

/* ── 6. FAQ ──────────────────────────────────────────────── */

.about-faq {
  background: var(--color-bg-secondary);
}

.faq-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.faq-intro .section-label {
  align-self: center;
}

.faq-intro h2 {
  color: var(--color-heading);
}

.faq-intro p {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Constrain accordion width for readability */
.about-faq .accordion-wrap {
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ-specific accordion spacing (component base styles in components.css) */
.about-faq .accordion {
  gap: var(--space-3);
}

/* ── 7. CTA ──────────────────────────────────────────────── */

.about-cta {
  background-image: url('https://connect.mediaserve.io/storage/v1/object/public/media/78dba5ff-e514-44fd-bc2d-1f49dd7a0a6f/5c9d2d2f-3048-447f-a7dc-308895f8d0cb/media/images/bbs-electric-Hero-3-1920x1080.webp');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Dark color overlay */
.about-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  pointer-events: none;
  z-index: 0;
}

/* Accent stripe at top edge */
.about-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-tertiary);
  z-index: 1;
}

.about-cta .container {
  position: relative;
  z-index: 2;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

.about-cta-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(251, 211, 1, 0.15);
  border: 1px solid rgba(251, 211, 1, 0.4);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-accent);
  align-self: center;
}

.about-cta h2 {
  color: var(--color-text-on-dark);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.about-cta p {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-neutral-100);
  max-width: 540px;
  margin: 0 auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.about-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

/* Tablet: 901px – 1024px */
@media (max-width: 1024px) {
  /* Remove sticky on image columns at tablet */
  .about-story-image,
  .about-team-image {
    position: static;
  }

  /* Values: 2 columns flex */
  .values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--grid-gutter);
  }
  .values-grid .value-card {
    flex: 0 0 calc(50% - var(--grid-gutter) / 2);
  }
  .values-grid .value-card:nth-child(5) {
    flex: 1 1 100%;
  }

  /* Owner highlights: single column */
  .owner-highlights {
    grid-template-columns: 1fr;
  }
}

/* Mobile: ≤ 900px */
@media (max-width: 900px) {
  /* Hero */
  .about-hero {
    min-height: 380px;
    padding-top: calc(var(--header-height) + var(--space-10));
    padding-bottom: var(--space-14);
  }

  .about-hero-title {
    font-size: var(--font-size-4xl);
  }

  /* Story: stack vertically, image on top */
  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .about-story-image {
    order: -1; /* image above text on mobile */
    position: static;
  }

  /* Values: single column flex */
  .values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--grid-gutter);
  }
  .values-grid .value-card {
    flex: 1 1 100%;
  }

  /* Credentials: single column */
  .credentials-grid {
    grid-template-columns: 1fr;
  }

  /* Team: stack vertically */
  .about-team-grid {
    grid-template-columns: 1fr;
  }

  .about-team-image {
    position: static;
  }

  /* Owner highlights: 2 col on wider mobile, then 1 */
  .owner-highlights {
    grid-template-columns: 1fr 1fr;
  }

  /* CTA */
  .about-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
  .about-hero-title {
    font-size: var(--font-size-3xl);
  }

  .owner-highlights {
    grid-template-columns: 1fr;
  }

  .about-cta .container {
    padding-top: var(--space-14);
    padding-bottom: var(--space-14);
  }
}
