/* ═══════════════════════════════════════════
   Confident Coatings, 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 */
.timeline {
  position: relative;
  margin-top: 3rem;
  padding-left: 1.5rem;
}
.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: 600;
  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); } }

/* ═══════════════════════════════════════════
   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: 400;
  color: var(--clay);
  display: block;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.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;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-height: 320px;
}

/* ═══════════════════════════════════════════
   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: 400;
  color: var(--clay);
  line-height: 1;
  font-variation-settings: "opsz" 144;
  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; }
