/* ============================================================
   FOURWAYS PLUMBER — ABOUT PAGE STYLESHEET
   Loaded only on the About Us template (page-about.php).
   Depends on: main.css (fourways-main)
============================================================ */

/* ─── ABOUT HERO ─────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2a1010 100%);
  padding-block: 4rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 50%, rgba(227,27,35,0.14) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px,
      transparent 1px, transparent 40px
    );
}
.about-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 3px;
  background: var(--red);
}
.about-hero .container { position: relative; z-index: 1; }

.about-hero__inner .service-hero__panel { display: none; }

@media (min-width: 900px) {
  .about-hero__inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: center;
  }
  .about-hero__inner .service-hero__panel { display: block; }
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.85rem;
  font-family: var(--font-head);
}
.page-hero__title span {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(227,27,35,0.35);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.page-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 100%;
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

/* ─── STATS BAR ──────────────────────────────────────────── */
.about-stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-grey);
  padding-block: 0;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border-grey);
  position: relative;
}
.about-stat:last-child { border-right: none; }
.about-stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.35s ease;
}
.about-stat:hover::after { width: 60%; }

.about-stat__number {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  display: block;
}
.about-stat__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-top: 0.35rem;
  display: block;
}

/* ─── SHARED SECTION STYLES ──────────────────────────────── */
.about-section { padding-block: 5rem; }
.about-story  { background: var(--off-white); }
.about-values { background: var(--charcoal); }
.about-team   { background: var(--off-white); }
.about-certs  { background: var(--white); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  background: rgba(227,27,35,0.09);
  border: 1px solid rgba(227,27,35,0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.section-label--light {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 900;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-title--light { color: var(--white); }
.section-subtitle {
  font-size: 0.97rem;
  color: var(--text-light);
  line-height: 1.7;
}
.section-subtitle--light { color: rgba(255,255,255,0.6); }

/* ─── STORY SECTION ──────────────────────────────────────── */
.about-story-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3.5rem;
  align-items: start;
}

.about-story__text .section-label { margin-bottom: 1rem; }

.about-story__title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.about-story__text p {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-story__text p:last-child { margin-bottom: 0; }
.about-story__text a { color: var(--red); font-weight: 600; }
.about-story__text a:hover { text-decoration: underline; }

/* Right-side visual card */
.story-visual-card {
  background: var(--charcoal);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 120px;
}

.story-visual-card__header {
  background: linear-gradient(135deg, var(--red) 0%, #9b1520 100%);
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.story-visual-card__header::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.story-visual-card__icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--white);
  margin: 0 auto 0.85rem;
  position: relative;
  z-index: 1;
}
.story-visual-card__header h3 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  position: relative;
  z-index: 1;
}
.story-visual-card__header p {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

.story-milestones { padding: 1.5rem; }

.milestone-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.milestone-item:last-child { border-bottom: none; }

.milestone-item__dot {
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 0 3px rgba(227,27,35,0.25);
}

.milestone-item__year {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--red);
  min-width: 36px;
  flex-shrink: 0;
}

.milestone-item__text {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.45;
}

/* ─── WORK GALLERY STRIP ─────────────────────────────────── */
.about-gallery {
  background: var(--white);
  padding-block: 0;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  min-height: 180px;
}

.gallery-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  overflow: hidden;
  transition: all 0.3s ease;
}
.gallery-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(227,27,35,0.06);
}
.gallery-tile:hover::before { opacity: 1; }
.gallery-tile:hover { transform: translateY(-4px); }

.gallery-tile--1 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.gallery-tile--2 { background: linear-gradient(135deg, #2d1515 0%, #3d1c1c 100%); }
.gallery-tile--3 { background: linear-gradient(135deg, #0f2027 0%, #203a43 100%); }
.gallery-tile--4 { background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); }

.gallery-tile__icon {
  width: 60px; height: 60px;
  background: rgba(227,27,35,0.15);
  border: 2px solid rgba(227,27,35,0.3);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--red);
  transition: all 0.3s ease;
}
.gallery-tile:hover .gallery-tile__icon {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.gallery-tile__label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
}
.gallery-tile__sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: -0.35rem;
}

/* ─── VALUES SECTION ─────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.value-card__header {
  padding: 2rem 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.value-card:nth-child(1) .value-card__header { background: linear-gradient(135deg, #e31b23 0%, #9b1520 100%); }
.value-card:nth-child(2) .value-card__header { background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%); }
.value-card:nth-child(3) .value-card__header { background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%); }

.value-card__header::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}

.value-card__icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.value-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.value-card__body { padding: 1.5rem 1.75rem; }

.value-card__text {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.value-card__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.value-card__points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
}
.value-card__points li i {
  color: #16a34a;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ─── TEAM SECTION ───────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-grey);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-card__photo {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-card:nth-child(1) .team-card__photo { background: linear-gradient(135deg, #1a1a2e 0%, #e31b23 100%); }
.team-card:nth-child(2) .team-card__photo { background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%); }
.team-card:nth-child(3) .team-card__photo { background: linear-gradient(135deg, #1a1a1a 0%, #d4a017 100%); }

.team-card__photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px,
    transparent 1px, transparent 20px
  );
}

.team-card__avatar {
  width: 88px; height: 88px;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.team-card__body { padding: 1.5rem; }

.team-card__name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}
.team-card__role {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 0.85rem;
}
.team-card__bio {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.team-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--off-white);
  border: 1px solid var(--border-grey);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.65rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--charcoal);
}
.team-badge i { color: var(--red); font-size: 0.65rem; }

/* ─── CERTIFICATIONS SECTION ─────────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cert-card {
  background: var(--white);
  border: 1.5px solid var(--border-grey);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.cert-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(227,27,35,0.1);
  transform: translateY(-3px);
}

.cert-card__icon-wrap {
  padding: 1.75rem 1.5rem 1.25rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--border-grey);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background 0.25s ease;
}
.cert-card:hover .cert-card__icon-wrap { background: rgba(227,27,35,0.05); }

.cert-card__icon {
  width: 48px; height: 48px;
  background: var(--red);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--white);
  flex-shrink: 0;
}

.cert-card__title {
  font-family: var(--font-head);
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--charcoal);
}

.cert-card__text {
  padding: 1.25rem 1.5rem;
  font-size: 0.87rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-story-layout {
    grid-template-columns: 1fr;
  }
  .story-visual-card {
    position: static;
  }
  .values-grid,
  .team-grid,
  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-stat {
    border-bottom: 1px solid var(--border-grey);
  }
  .about-stat:nth-child(2n) { border-right: none; }

  .values-grid,
  .team-grid,
  .certs-grid {
    grid-template-columns: 1fr;
  }
  .gallery-strip {
    grid-template-columns: 1fr 1fr;
  }
  .about-section {
    padding-block: 3.5rem;
  }
}

@media (max-width: 400px) {
  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-strip {
    grid-template-columns: 1fr;
  }
  .page-hero__title {
    font-size: 1.75rem;
  }
}
