/* ==========================================================================
   About (about.html)
   Design system: uses the shared tokens from /css/tokens.css, matching
   the redesign pass already done on the post page.
   ========================================================================== */

/* ==========================================================================
   Home button (mobile navbar)
   ========================================================================== */
.home-btn {
  width: 56px;
  height: 56px;
  background: #dedfe0;
  border-radius: 50%;
  color: #000;
  text-decoration: none;
  margin-left: -5px;
  transition: all 0.2s ease;
}

.home-btn:hover {
  background-color: #e9ecef;
  color: #000;
  transform: scale(1.05);
}

.home-btn:active {
  transform: scale(0.95);
}

.home-btn i {
  font-size: 1.5rem;
  line-height: 1;
}

.home-text {
  font-size: 10px;
  line-height: 1;
  margin-top: 2px;
  color: #1f2937;
}

/* ==========================================================================
   Page header strip (matches the blue banner used on other static pages)
   ========================================================================== */
.about-page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* ==========================================================================
   NI construction industry stats
   ========================================================================== */
.ni-industry-stats {
  width: 100%;
  max-width: 760px;
  margin: 0 auto var(--space-6);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.ni-industry-stat {
  cursor: default;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.ni-industry-number {
  font-size: var(--font-size-4xl);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--dark);
}

.ni-industry-label {
  max-width: 250px;
  margin: var(--space-2) auto 0;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  color: var(--text-muted);
}

.ni-industry-source {
  width: 100%;
  margin: 0 auto var(--space-7);
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  opacity: 0.8;
}

@media (max-width: 650px) {
  .ni-industry-stats {
    gap: var(--space-3);
    margin-bottom: var(--space-5);
  }

  .ni-industry-stat {
    padding: var(--space-4) var(--space-2);
  }

  .ni-industry-number {
    font-size: var(--font-size-3xl);
  }

  .ni-industry-label {
    font-size: var(--font-size-xs);
  }

  .ni-industry-source {
    margin-top: -6px;
    margin-bottom: var(--space-5);
  }
}

/* ==========================================================================
   About body copy
   ========================================================================== */
@media (max-width: 768px) {
  .about-heading {
    font-size: var(--font-size-xl) !important;
  }
}

.about-copy h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--dark);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

.about-copy .about-subtitle {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.about-copy h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--dark);
  margin: var(--space-7) 0 var(--space-3);
}

.about-copy p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-body);
  margin-bottom: var(--space-4);
}

.word-mouth-tagline {
  font-size: var(--font-size-base);
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--primary);
  padding-left: var(--space-4);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
}

.about-copy ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: var(--space-5);
}

.about-copy ul li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
  color: var(--text-body);
}

.about-copy ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15em;
  color: var(--cta-green-dark);
  font-size: 0.85em;
}

.about-offer-list li {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-3);
}

/* Full-width block below the intro/image row -- this copy is much
   longer than the two images beside the intro, so it moved out of the
   two-column row entirely instead of running alongside a much shorter
   image column and leaving a lopsided gap. Capped to a readable
   measure and centered rather than stretching edge to edge. */
.about-copy-full {
  max-width: 760px;
  margin: var(--space-7) auto 0;
}

.about-copy-emphasis {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--dark);
  border-left: 3px solid var(--cta-green-dark);
  padding-left: var(--space-4);
  margin: var(--space-5) 0 var(--space-6);
}

.about-step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.about-step {
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.about-step h4 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.about-step h4::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--cta-green-dark);
  font-size: 0.85em;
}

.about-step p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

@media (max-width: 650px) {
  .about-step-grid {
    grid-template-columns: 1fr;
  }
}

.mobile-image-section img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Right column images (desktop) */
.about-images {
  position: relative;
  min-height: 500px;
}

.img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.img-main:hover {
  transform: scale(1.02);
}

.img-overlay {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 55%;
  height: 40%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--surface);
  transition: transform 0.3s ease;
}

.img-overlay:hover {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .about-images {
    display: none;
  }

  .about-copy h2 {
    font-size: var(--font-size-2xl);
  }
}

/* Post-a-request CTA link within the copy */
.about-cta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary);
  text-decoration: underline;
}

.about-cta-link:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   Quote banner ("Browse categories")
   Was a small 50%-width box with a caption floating as an oddly
   off-center pill halfway over the photo -- rebuilt as a standard
   full-width photo card with the caption sitting in a bottom gradient,
   the way a hero/CTA banner normally reads.
   ========================================================================== */
.quote-banner {
  position: relative;
  width: 50%;
  height: 400px;
  margin: var(--space-8) auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.quote-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.4s ease;
}

.quote-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(15, 23, 42, 0.45) 40%,
    rgba(15, 23, 42, 0) 75%
  );
  z-index: 1;
  pointer-events: none;
}

.quote-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-6);
  color: #ffffff !important;
  text-align: left;
  text-decoration: none;
  pointer-events: none;
}

.quote-banner h5 {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

.quote-banner p {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  margin: 0;
  opacity: 0.92;
}

.quote-banner:hover .quote-banner-img {
  transform: scale(1.04);
}

.quote-banner:focus {
  outline: 3px solid rgba(var(--primary-rgb), 0.5);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .quote-banner {
    width: 95%;
    height: 220px;
    margin: var(--space-6) auto;
  }

  .quote-banner-caption {
    padding: var(--space-4);
  }

  .quote-banner h5 {
    font-size: var(--font-size-xl);
  }

  .quote-banner p {
    font-size: var(--font-size-sm);
  }
}

/* ==========================================================================
   Bottom "Get in touch" panel
   ========================================================================== */
.about-contact-panel {
  max-width: 670px;
  margin: 0 auto var(--space-8);
  text-align: center;
  background: var(--surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-5);
}

.about-contact-panel p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
}

.about-closing-note {
  max-width: 760px;
  margin: 0 auto var(--space-6);
  text-align: left;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-body);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: #fff;
  background: var(--cta-green);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-link:hover {
  color: #fff;
  background: var(--cta-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
