/* =======================================================
   KeraVit Tiles LLC – About Page Stylesheet
   ======================================================= */

/* =====================================================
   PAGE HERO
   ===================================================== */
.ab-hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
}
.ab-hero-bg { position: absolute; inset: 0; z-index: 0; }
.ab-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ab-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22,24,18,0.45) 0%,
    rgba(22,24,18,0.7)  55%,
    rgba(22,24,18,0.97) 100%
  );
}

/* Content pinned to bottom of hero */
.ab-hero-container {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1320px;
  padding-left: var(--bs-gutter-x, 12px);
  padding-right: var(--bs-gutter-x, 12px);
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.ab-hero-content { padding-bottom: 44px; }

.ab-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--fh); font-size: 0.75rem; font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.ab-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: var(--tr); }
.ab-breadcrumb a:hover { color: var(--p); }
.ab-breadcrumb i { font-size: 0.85rem; }
.ab-breadcrumb span { color: var(--p); }

.ab-hero-title {
  font-family: var(--fh);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--wh);
  margin-bottom: 18px;
}
.ab-hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
}

/* Hero bottom stats bar — full width, flush to hero bottom */
.ab-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(22,24,18,0.6);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.ab-hstat {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 26px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.ab-hstat:last-child { border-right: none; }
.ab-hstat-num {
  font-family: var(--fh); font-size: 2rem; font-weight: 700;
  color: var(--p); line-height: 1;
}
.ab-hstat-label {
  font-family: var(--fh); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-top: 7px;
}
.ab-hstat-divider {
  display: none; /* replaced by border-right on cells */
  width: 1px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Initial hidden states for hero */
.hero-el { opacity: 0; transform: translateY(24px); }

/* =====================================================
   OUR STORY
   ===================================================== */
.ab-story-imgs {
  position: relative;
  padding-bottom: 80px;
  padding-right: 60px;
}
.ab-story-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r2);
}
.ab-story-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r2);
  border: 4px solid var(--wh);
  box-shadow: var(--shh);
}
.ab-story-highlights {
  display: flex; flex-direction: column; gap: 12px;
}
.ab-highlight {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--fh); font-size: 0.875rem; font-weight: 500;
  color: var(--tx);
}
.ab-highlight i { color: var(--p); font-size: 1.05rem; margin-top: 1px; flex-shrink: 0; }

/* =====================================================
   MISSION & VISION
   ===================================================== */
.ab-mv-card {
  opacity: 0;
  border-radius: var(--r2);
  padding: 36px 30px;
  height: 100%;
  transition: var(--tr);
}
.ab-mv-mission {
  background: rgba(137,186,51,0.08);
  border: 1.5px solid rgba(137,186,51,0.2);
}
.ab-mv-vision {
  background: var(--p);
}
.ab-mv-values {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
}
.ab-mv-card:hover { transform: translateY(-6px); }

.ab-mv-icon {
  width: 52px; height: 52px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.ab-mv-mission .ab-mv-icon { background: rgba(137,186,51,0.15); color: var(--p); }
.ab-mv-vision  .ab-mv-icon { background: rgba(255,255,255,0.2); color: var(--wh); }
.ab-mv-values  .ab-mv-icon { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }

.ab-mv-card h4 {
  font-family: var(--fh); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 14px;
}
.ab-mv-mission h4 { color: var(--wh); }
.ab-mv-vision  h4 { color: var(--wh); }
.ab-mv-values  h4 { color: var(--wh); }

.ab-mv-card p { font-size: 0.88rem; line-height: 1.8; margin: 0; }
.ab-mv-mission p { color: rgba(255,255,255,0.6); }
.ab-mv-vision  p { color: rgba(255,255,255,0.85); }
.ab-mv-values  p { color: rgba(255,255,255,0.5); }

/* =====================================================
   VALUES
   ===================================================== */
.ab-value-card {
  opacity: 0;
  background: var(--wh);
  border: 1.5px solid var(--br);
  border-radius: var(--r2);
  padding: 30px 26px;
  height: 100%;
  position: relative;
  transition: var(--tr);
}
.ab-value-card:hover {
  border-color: var(--p);
  box-shadow: 0 12px 40px rgba(137,186,51,0.1);
  transform: translateY(-5px);
}
.ab-value-num {
  font-family: var(--fh); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 2px; color: var(--p);
  margin-bottom: 14px;
}
.ab-value-icon {
  width: 48px; height: 48px;
  background: rgba(137,186,51,0.1);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--p);
  margin-bottom: 16px;
  transition: var(--tr);
}
.ab-value-card:hover .ab-value-icon { background: var(--p); color: var(--wh); }
.ab-value-card h5 {
  font-family: var(--fh); font-size: 0.95rem; font-weight: 700;
  color: var(--dk); margin-bottom: 10px;
}
.ab-value-card p { font-size: 0.82rem; line-height: 1.7; color: var(--mu); margin: 0; }

/* =====================================================
   FACILITY
   ===================================================== */
.ab-facility {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ab-facility-bg { position: absolute; inset: 0; z-index: 0; }
.ab-facility-bg img { width: 100%; height: 100%; object-fit: cover; }
.ab-facility-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,24,18,0.92) 0%, rgba(22,24,18,0.65) 55%, rgba(22,24,18,0.1) 100%);
}
.ab-facility-inner {
  position: relative; z-index: 2;
  padding-top: 80px; padding-bottom: 80px;
}
.ab-facility-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
}
.ab-fstat { }
.ab-fstat-num {
  display: block;
  font-family: var(--fh); font-size: 2.2rem; font-weight: 700;
  color: var(--p); line-height: 1;
}
.ab-fstat-label {
  display: block;
  font-family: var(--fh); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-top: 5px;
}

/* =====================================================
   TIMELINE
   ===================================================== */
.ab-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
/* Centre vertical line */
.ab-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, var(--p), var(--br));
}
.ab-tl-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 56px;
  position: relative;
}
.ab-tl-left  { flex-direction: row; padding-right: calc(50% + 32px); }
.ab-tl-right { flex-direction: row-reverse; padding-left: calc(50% + 32px); }

.ab-tl-dot {
  position: absolute;
  left: 50%; top: 8px;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: var(--p);
  border: 3px solid var(--wh);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(137,186,51,0.2);
  flex-shrink: 0;
}
.ab-tl-content {
  flex: 1;
}
.ab-tl-left  .ab-tl-content { text-align: right; }
.ab-tl-right .ab-tl-content { text-align: left; }

.ab-tl-year {
  display: inline-block;
  font-family: var(--fh); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--p); margin-bottom: 8px;
}
.ab-tl-content h5 {
  font-family: var(--fh); font-size: 1rem; font-weight: 700;
  color: var(--dk); margin-bottom: 8px;
}
.ab-tl-content p {
  font-size: 0.85rem; line-height: 1.7; color: var(--mu); margin: 0;
}

/* =====================================================
   TEAM
   ===================================================== */
.ab-team-card {
  opacity: 0;
  background: var(--wh);
  border: 1.5px solid var(--br);
  border-radius: var(--r2);
  overflow: hidden;
  transition: var(--tr2);
}
.ab-team-card:hover {
  border-color: rgba(137,186,51,0.3);
  box-shadow: var(--shh);
  transform: translateY(-6px);
}
.ab-team-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/3.5;
}
.ab-team-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform 0.6s ease;
}
.ab-team-card:hover .ab-team-img-wrap img { transform: scale(1.05); }

.ab-team-socials {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  display: flex; gap: 8px;
  opacity: 0; transition: var(--tr);
}
.ab-team-card:hover .ab-team-socials { opacity: 1; transform: translateX(-50%) translateY(0); }
.ab-team-socials a {
  width: 36px; height: 36px;
  background: var(--wh);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--dk); font-size: 1rem;
  transition: var(--tr);
}
.ab-team-socials a:hover { background: var(--p); color: var(--wh); }

.ab-team-info { padding: 20px; }
.ab-team-info h5 {
  font-family: var(--fh); font-size: 1rem; font-weight: 700;
  color: var(--dk); margin-bottom: 4px;
}
.ab-team-info span {
  font-family: var(--fh); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--p); display: block; margin-bottom: 10px;
}
.ab-team-info p { font-size: 0.8rem; line-height: 1.65; color: var(--mu); margin: 0; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
  .ab-hero-stats { grid-template-columns: 1fr 1fr; }
  .ab-hstat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .ab-hstat:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.08); }
  .ab-hstat:nth-last-child(-n+2) { border-bottom: none; }

  .ab-story-imgs { padding-right: 40px; padding-bottom: 60px; }
  .ab-story-accent { width: 50%; }

  .ab-timeline::before { left: 20px; }
  .ab-tl-item { flex-direction: column; padding: 0 0 0 52px; }
  .ab-tl-left, .ab-tl-right { padding: 0 0 0 52px; }
  .ab-tl-left .ab-tl-content,
  .ab-tl-right .ab-tl-content { text-align: left; }
  .ab-tl-dot { left: 20px; }

  .ab-facility { min-height: 480px; }
}

@media (max-width: 767px) {
  .ab-hero { height: 100svh; }
  .ab-hero-content { padding-bottom: 28px; }
  .ab-hero-stats { grid-template-columns: 1fr 1fr; }

  .ab-story-imgs { padding-right: 0; padding-bottom: 48px; }
  .ab-story-accent { width: 45%; right: 10px; }

  .ab-facility-stats { gap: 24px; }

  .kv-cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .ab-hero-stats { grid-template-columns: 1fr 1fr; }
  .ab-story-accent { display: none; }
  .ab-story-imgs { padding-bottom: 0; padding-right: 0; }
  .kv-cert-grid { grid-template-columns: repeat(2, 1fr); }
}
