/* ═══════════════════════════════════════════
   Bartley Corrigan Contractor, Sub-page Styles
   Inner page layouts: about, services, gallery, reviews, faq, contact
   ═══════════════════════════════════════════ */

.page-section { padding: 5.5rem 0; }
@media (min-width: 768px) { .page-section { padding: 7rem 0; } }

.page-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.page-intro .section-label { display: inline-flex; }

/* ═══════════════════════════════════════════
   ABOUT page values
   ═══════════════════════════════════════════ */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: 3rem;
}
@media (min-width: 600px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card {
  padding: 2rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--clay);
  box-shadow: var(--shadow-md);
}
.value-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--parchment);
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.value-card:hover .value-card-icon { background: var(--clay); color: var(--parchment); transform: rotate(-6deg); }
.value-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.value-card-desc {
  font-size: 0.96rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* Timeline for about page — two-column when there's a side image */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.6rem;
  margin-top: 3rem;
  align-items: start;
}
@media (min-width: 980px) {
  .timeline-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}
.timeline-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-band);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.timeline-image img {
  width: 100%;
  height: auto;
  display: block;
}
.timeline-image-cap {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.4;
  color: var(--text-mid);
  background: var(--off-white);
}
@media (min-width: 980px) {
  .timeline-image {
    position: sticky;
    top: 90px;
    align-self: start;     /* prevent the grid from stretching it full-height, which would break sticky */
  }
  /* once the reveal animation finishes, drop the transform so sticky can recompute cleanly */
  .timeline-image.reveal-left.visible { transform: none; }
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline-grid .timeline { margin-top: 0; }
.timeline:not(.timeline-grid > .timeline) { margin-top: 3rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clay) 0%, var(--clay) 70%, transparent 100%);
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline-year {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.5rem;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.timeline-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ═══════════════════════════════════════════
   SERVICES INDEX page
   ═══════════════════════════════════════════ */
.services-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 600px) { .services-index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-index-grid { grid-template-columns: repeat(3, 1fr); } }

/* ═══════════════════════════════════════════
   SERVICE DETAIL page
   ═══════════════════════════════════════════ */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 980px) { .service-detail-grid { grid-template-columns: 1.1fr 1fr; gap: 4.5rem; align-items: start; } }

.service-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.6rem 0 0;
}
@media (min-width: 700px) { .service-features { grid-template-columns: 1fr 1fr; } }
.service-feature {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.service-feature:hover { border-color: var(--clay); transform: translateY(-2px); }
.service-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--parchment);
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 0.2rem;
}
.service-feature-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.service-prose h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 500;
  color: var(--ink);
  margin: 2rem 0 0.9rem;
  letter-spacing: -0.01em;
}
.service-prose p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.service-prose ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 1.4rem;
}
.service-prose li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-mid);
}
.service-prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px; height: 7px;
  background: var(--clay);
  border-radius: 50%;
}

.service-side-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-sm);
}
.service-side-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}
.service-side-card p {
  color: var(--text-mid);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 1.3rem;
}
.service-side-card .btn-primary { width: 100%; }
.service-side-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.service-side-card-meta a { color: var(--pine-dark); font-weight: 600; }
.service-side-card-meta a:hover { color: var(--clay); }
.service-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.6rem;
  aspect-ratio: 4/3;
  background: var(--parchment);
}
.service-image img { width: 100%; height: 100%; object-fit: cover; }

.related-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-top: 3rem;
}
@media (min-width: 700px) { .related-services { grid-template-columns: repeat(3, 1fr); } }

/* Related-services slider, 3 per slide on desktop, 1 on mobile */
.related-slider {
  position: relative;
  margin-top: 3rem;
  padding: 0 1px;
}
.related-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.4rem 0.2rem 1rem;
  margin: -0.4rem -0.2rem 0;
}
.related-slider-track::-webkit-scrollbar { display: none; }
.related-slider-track > .service-card {
  scroll-snap-align: start;
  text-decoration: none;
}
@media (min-width: 700px) { .related-slider-track { grid-auto-columns: calc((100% - 1.4rem) / 2); } }
@media (min-width: 1000px) { .related-slider-track { grid-auto-columns: calc((100% - 2 * 1.4rem) / 3); } }
.related-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-md);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.related-slider-btn:hover { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.related-slider-btn:disabled { opacity: 0.35; cursor: default; }
.related-slider-prev { left: -22px; }
.related-slider-next { right: -22px; }
@media (max-width: 760px) {
  .related-slider-prev { left: 4px; }
  .related-slider-next { right: 4px; }
  .related-slider-btn { width: 40px; height: 40px; }
}

/* ═══════════════════════════════════════════
   REVIEWS page
   ═══════════════════════════════════════════ */
.reviews-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.4rem;
}
@media (min-width: 700px) { .reviews-stats { grid-template-columns: repeat(4, 1fr); } }
.reviews-stat {
  text-align: center;
  padding: 1.6rem 0.8rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.reviews-stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--clay);
  display: block;
  line-height: 1;
}
.reviews-stat-label {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
  font-weight: 500;
}

.elfsight-mount {
  margin-top: 3rem;
}

/* ═══════════════════════════════════════════
   PRIVACY / POLICY prose
   ═══════════════════════════════════════════ */
.policy-prose {
  max-width: 760px;
  margin: 0 auto;
}
.policy-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  margin: 2.4rem 0 1rem;
  letter-spacing: -0.01em;
}
.policy-prose h2:first-of-type { margin-top: 0; }
.policy-prose p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.policy-prose ul {
  list-style: disc inside;
  margin: 0.5rem 0 1rem 0.5rem;
  color: var(--text-mid);
}
.policy-prose li { margin-bottom: 0.4rem; }

/* ═══════════════════════════════════════════
   404 page
   ═══════════════════════════════════════════ */
.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.4rem;
}
.notfound-num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 600;
  color: var(--clay);
  line-height: 1;
  font-style: italic;
}
.notfound h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  margin: 1rem 0;
}
.notfound p { color: var(--text-mid); max-width: 480px; margin: 0 auto 2rem; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
