/* About Us Page Styles - Boardwalk Insurance
   Author: Boardwalk Development Team
   Description: Dedicated stylesheet for the About Us page implementing a modern, clean aesthetic with BEM class naming.
*/

/* Core Variables */
:root {
  --about-primary: #FF6A00;
  /* Orange */
  --about-secondary: #D4A574;
  /* Gold */
  --about-light: #f9f9f9;
  --about-dark: #222;
  --about-radius: 0.75rem;
  --about-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- Hero Section (Split Layout) ---------- */
.about-hero {
  height: 100vh;
  background: #FFF5EB !important;
  /* Light orange */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 2rem;
  /* Horizontal breathing room */
  margin-top: 5rem;
  /* space from fixed/absolute header */
}

.about-hero__inner {
  display: flex;
  width: 100%;
  height: 100%;
}

.about-hero__content {
  flex: 1 1 33.333%;
  /* 1/3 width */
  padding: 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.about-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1.about-hero__title {
  padding: 0 20px;
  margin-top: 20px;
}


.about-hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  font-weight: 400;
  opacity: 0.9;
  padding: 0 20px;
  max-width: 32rem;
}

.about-hero__media {
  flex: 1 1 66.667%;
  /* 2/3 width */
  position: relative;
  height: 100%;
}

.about-hero__video {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  object-position: center;
}

/* CTA Button */
.about-hero__cta {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.9rem 2.25rem;
  background: var(--about-primary);
  color: #fff;
  border-radius: var(--about-radius);
  font-weight: 600;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.about-hero__cta:hover {
  background: #e55f00;
  /* darker orange */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

/* Stack vertically on small screens */
@media (max-width: 768px) {
  .about-hero__inner {
    flex-direction: column;
  }

  .about-hero__content {
    flex: 0 0 auto;
    padding: 2rem 1.25rem;
    text-align: center;
  }

  .about-hero__media {
    flex: 0 0 45vh;
  }

  .about-hero__video {
    height: 45vh;
  }

  .about-hero {
    padding: 0 1rem;
    /* reduce padding on small screens */
  }
}

/* ---------- Strength Section ---------- */
.strength {
  padding: 4rem 0;
  background: var(--about-light);
  background: #FFF5EB !important;
  /* Light orange */
}

.strength__grid {
  display: grid;
  gap: 2rem;
  background: #FFF5EB !important;
  /* Light orange */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.strength-card {
  background: #fff;
  border-radius: var(--about-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--about-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.strength-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.strength-card__icon {
  font-size: 2.5rem;
  color: var(--about-secondary);
  margin-bottom: 1rem;
}

.strength-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.strength-card__text {
  font-size: 0.95rem;
  color: var(--about-dark);
  line-height: 1.6;
}

/* ---------- Vision Section ---------- */
.vision {
  padding: 6rem 1rem;
  background: #e8e8e8 !important;
  /* Light orange */
  text-align: center;
  color: #fff;
}

.vision__text {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.4;
  color: #000;
}

/* ---------- Team Section ---------- */
.team {
  padding: 4rem 0 6rem;
  background: #fff;
}

.team__heading {
  text-align: center;
  margin-bottom: 3rem;
}

.team__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.team-card {
  background: var(--about-light);
  border-radius: var(--about-radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--about-shadow);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.team-card__image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.team-card__body {
  padding: 1.25rem;
}

.team-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--about-primary);
}

.team-card__role {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--about-secondary);
  margin-bottom: 0.75rem;
}

.team-card__bio {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--about-dark);
}

/* ---------- Timeline Section ---------- */
.timeline {
  padding: 4rem 0;
  background: var(--about-light);
}

.timeline__wrapper {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--about-secondary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 50%;
  padding: 1.5rem 2rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  align-items: flex-end;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item__date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--about-secondary);
  margin-bottom: 0.25rem;
}

.timeline-item__marker {
  position: absolute;
  top: 1.5rem;
  left: 100%;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 4px solid var(--about-secondary);
  border-radius: 50%;
  transform: translateX(-50%);
}

.timeline-item:nth-child(odd) .timeline-item__marker {
  left: auto;
  right: 100%;
  transform: translateX(50%);
}

.timeline-item__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--about-primary);
}

.timeline-item__text {
  font-size: 0.88rem;
  color: var(--about-dark);
  line-height: 1.5;
}

/* ---------- Media Queries ---------- */
@media (max-width: 768px) {
  .timeline__line {
    left: 8px;
    transform: none;
  }

  .timeline-item {
    width: 100%;
    padding-left: 2.5rem;
    padding-right: 1rem;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
    align-items: flex-start;
  }

  .timeline-item:nth-child(odd) .timeline-item__marker {
    left: 0;
    transform: translateX(-50%);
  }
}

/* ---------- Team Carousel ---------- */
.team__carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.team__carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: none;
  /* Firefox */
}

.team__carousel::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* Card sizing for carousel */
.team-card {
  flex: 0 0 calc(25% - 2rem);
  /* show 4 cards desktop given gap */
}

@media (max-width: 992px) {
  .team-card {
    flex: 0 0 calc(33.333% - 2rem);
    /* 3 cards tablet */
  }
}

@media (max-width: 768px) {
  .team-card {
    flex: 0 0 calc(50% - 1.5rem);
    /* 2 cards mobile large */
  }
}

@media (max-width: 480px) {
  .team-card {
    flex: 0 0 calc(80% - 1rem);
    /* nearly 1 card small mobile */
  }
}

/* Arrow Buttons */
.team__arrow {
  background: #fff;
  border: 1px solid var(--about-secondary);
  color: var(--about-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--about-shadow);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.team__arrow:hover {
  background: var(--about-secondary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.team__arrow--left {
  margin-right: 1rem;
}

.team__arrow--right {
  margin-left: 1rem;
}

/* Ensure arrows stay centered vertically */
@media (min-width: 769px) {
  .team__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .team__arrow--left {
    left: -22px;
  }

  .team__arrow--right {
    right: -22px;
  }
}

/* ---------- Modern Vertical Timeline ---------- */
.timeline {
  padding: 4rem 0;
  position: relative;
}

.timeline__list {
  position: relative;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 900px;
}

/* center line */
.timeline__list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #66b3ff 0%, #8b5cf6 100%);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1rem 0;
  width: 50%;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.timeline__item:nth-child(even) {
  margin-left: 50%;
  justify-content: flex-start;
}

.timeline__content {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  max-width: 320px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline__content:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

.timeline__date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--about-secondary);
  margin-bottom: 0.25rem;
}

.timeline__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--about-primary);
}

.timeline__text {
  font-size: 0.9rem;
  color: var(--about-dark);
  line-height: 1.6;
}

/* markers */
.timeline__marker {
  position: absolute;
  top: 1.25rem;
  left: 100%;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid #8b5cf6;
  /* violet */
  border-radius: 50%;
  transform: translateX(-50%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline__item:nth-child(even) .timeline__marker {
  left: 0;
  transform: translateX(-50%);
}

.timeline__marker:hover {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25);
}

/* reveal animation */
.timeline__item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .timeline__list::before {
    left: 18px;
  }

  .timeline__item,
  .timeline__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 3.5rem;
    justify-content: flex-start;
  }

  .timeline__marker {
    left: 18px;
    transform: translateX(-50%);
  }

  .timeline__content {
    max-width: 100%;
  }
}

/* ---------- About Banner ---------- */
.about-banner {
  position: relative;
  width: 100%;
  min-height: 55vh;
  background-image: url("../images/production/office_space.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.about-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.about-banner__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1.5rem;
}

.about-banner__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.about-banner__subtitle {
  font-size: clamp(1rem, 2.3vw, 1.25rem);
  font-weight: 400;
  opacity: 0.9;
}

/* ---------- Our Business Section ---------- */
.business {
  background: linear-gradient(180deg, #FDFDFD 0%, #F6F7F8 100%);
  padding: 5rem 1rem;
}

.business__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #000;
}

.business__paragraph {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 1rem auto;
  color: var(--about-dark);
}

.business__icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 3rem auto 0 auto;
  justify-items: center;
}

.business__icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.business__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--about-light);
  box-shadow: var(--about-shadow);
  margin-bottom: 0.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.business__icon i {
  font-size: 2rem;
  color: var(--about-primary);
}

.business__icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.business__icon-label {
  font-size: 1rem;
  font-weight: 600;
}

/* CTA */
.business__cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.85rem 2.5rem;
  background: var(--about-primary);
  color: #fff;
  border-radius: var(--about-radius);
  font-weight: 600;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.business__cta:hover {
  background: #e55f00;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.business__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  align-items: center;
  width: 100%;
  padding: 0 2.5rem;
}

.business__text {
  text-align: left;
}

.business__features {
  text-align: center;
  width: 100%;
}

/* ---------- Industry Lineup ---------- */
.lineup-wrapper {
  position: relative;
  overflow: hidden;
}

.lineup {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2rem 1rem 3rem;
}

.lineup::-webkit-scrollbar {
  display: none;
}

.lineup-card {
  flex: 0 0 calc(50% - 2rem);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.lineup-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.lineup-card__media {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.lineup-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lineup-card__body {
  padding: 1.25rem 1.5rem 2rem;
  text-align: center;
}

.lineup-card__title {
  display: block;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--about-primary);
}

.lineup-card__desc {
  font-size: 0.95rem;
  color: var(--about-dark);
  line-height: 1.5;
}

.lineup-arrow {
  position: absolute;
  bottom: 10px;
  top: auto;
  transform: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--about-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--about-primary);
  cursor: pointer;
  box-shadow: var(--about-shadow);
  transition: background 0.2s ease;
  z-index: 2;
}

.lineup-arrow:hover {
  background: var(--about-secondary);
  color: #fff;
}

.lineup-arrow--left {
  left: 0;
}

.lineup-arrow--right {
  right: 16px;
}

@media (max-width: 768px) {
  .lineup-card {
    flex: 0 0 80%;
  }

  .lineup-arrow {
    display: none;
  }
}

/* ---------- Team Section ---------- */
.section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #000 !important;
  padding-bottom: 2rem;
}

.team-grid {
  display: flex;
  gap: 3.3rem;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
}

.team-grid::-webkit-scrollbar {
  display: none
}

.team-grid {
  overflow-x: auto;
  padding: 0 1rem
}

.team-grid:hover {
  animation: none
}

.team-card {
  flex: 0 0 320px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.team-card:hover {
  transform: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.team-card__media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}

.team-card__body {
  padding: 1.5rem;
  text-align: center;
}

.team-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  color: #000 !important;
}

.team-card__role {
  font-weight: 500;
  color: var(--about-primary);
  margin-bottom: .75rem;
}

.team-card__bio {
  font-size: .9rem;
  color: var(--about-dark);
  line-height: 1.6;
}

@media(max-width:768px) {
  .team-card__media img {
    height: 240px;
  }
}

/* ---------- Horizontal Timeline (2025 redesign) ---------- */
.timeline-horizontal {
  padding: 4rem 0;
  background: var(--about-light);
}

.timeline-horizontal__wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.timeline-arrow {
  background: var(--about-primary);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.timeline-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.timeline-arrow:hover:not(:disabled) {
  background: var(--about-dark);
}

.timeline-horizontal__rail {
  position: relative;
  flex: 1;
  overflow-x: auto;
  display: flex;
  gap: 3rem;
  scroll-behavior: smooth;
  padding: 3rem 0;
}

.timeline-horizontal__rail::-webkit-scrollbar {
  height: 8px;
}

.timeline-horizontal__rail::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.timeline-horizontal__rail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: var(--about-secondary);
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-card {
  position: relative;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.timeline-card__year {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--about-primary);
}

.timeline-card__marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6 0%, #4f46e5 100%);
  box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  z-index: 2;
}

.timeline-card__marker:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.25);
}

.timeline-card__content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  padding: 1.25rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-card__content:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.timeline-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--about-primary);
}

.timeline-card__text {
  font-size: 0.88rem;
  color: var(--about-dark);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .timeline-horizontal__rail {
    gap: 2rem;
    padding: 2.5rem 0;
  }
}

@media (max-width: 768px) {
  .timeline-horizontal__wrapper {
    flex-direction: column;
  }

  .timeline-arrow {
    display: none;
  }

  .timeline-horizontal__rail {
    overflow-x: visible;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 0 0 2.5rem;
  }

  .timeline-horizontal__rail::before {
    left: 18px;
    top: 0;
    width: 2px;
    height: 100%;
    transform: none;
  }

  .timeline-card {
    flex-direction: row;
    align-items: flex-start;
    min-width: 100%;
    gap: 1rem 2rem;
  }

  .timeline-card__year {
    min-width: 70px;
  }

  .timeline-card__marker {
    position: absolute;
    left: 18px;
    top: 25px;
    transform: translateX(-50%);
  }
}

/* ---------- Our Partners Section ---------- */
.partners {
  background: #fdfdfd;
  padding: 3rem 0 4rem;
}

.partners__marquee {
  overflow: hidden;
  width: 100%;
}

.partners__track {
  display: flex;
  gap: 4rem;
  animation: partners-scroll 30s linear infinite;
}

.partners__item img {
  height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.partners__item img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .partners__track {
    gap: 2.5rem;
  }

  .partners__item img {
    height: 48px;
  }
}

@media (max-width: 480px) {
  .partners__item img {
    height: 42px;
  }
}

.partners__subtitle {
  font-size: 1.05rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

.brand-emphasis {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--about-primary);
}