/**
 * SENTRE Theme — Patterns
 * Pattern-specific and page-specific classes not covered by base/layout/components.
 * Sources: Blog.tsx, SentreLanding.tsx, Home.tsx, Methodology.tsx,
 *          Discovery.tsx, Contact.tsx, About.tsx, CaseStudy.tsx
 */

/* ─── Wrapper (top-level page wrapper) ───────────────────── */

.sentre-wrapper {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

.sentre-wrapper *,
.sentre-wrapper *::before,
.sentre-wrapper *::after {
  box-sizing: border-box;
}

/* ─── Hero text column ───────────────────────────────────── */

/* Used in SentreLanding / interior heroes to wrap H1 + subhead + CTAs */
.sentre-hero-text {
  max-width: 680px;
}

/* Accent line variant with responsive top margin (interior page heroes) */
.sentre-hero-accent-line {
  /* inherits from .sentre-accent-line */
}

@media (max-width: 992px) {
  .sentre-hero-accent-line {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
  }
}

/* ─── H2 centered variant ────────────────────────────────── */

.sentre-h2-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 48rem;
  margin-bottom: 3rem;
}

/* ─── Nav divider (SentreLanding single-page nav) ────────── */

.sentre-nav-divider {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  user-select: none;
}

/* ─── Numbered list (Section 1 — What SENTRE Delivers) ──── */

.sentre-list-numbered {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sentre-list-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.sentre-num-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  background-color: var(--color-red);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.sentre-list-text {
  font-size: 1rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin: 0;
}

/* ─── Bullet list (used in service cards, CENTRE modules) ── */

.sentre-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sentre-ul li {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-main);
}

/* ─── 3-column grid (services / modules) ─────────────────── */

.sentre-3col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .sentre-3col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sentre-3col-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Service card (Section 3 — Services Wrapped Around) ─── */

.sentre-service-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── Icon box (icon container above card title) ─────────── */

.sentre-icon-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
}

/* ─── Diagram wrapper (CENTRE ↔ SENTRE) ──────────────────── */

.sentre-diagram-wrapper {
  width: 100%;
  margin-top: 2rem;
}

/* Individual diagram boxes */
.sentre-box {
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
}

.sentre-box-white {
  background-color: var(--color-white);
  border: 1px solid #e5e7eb;
}

.sentre-box-blue {
  background-color: var(--color-blue);
  color: var(--color-white);
}

/* Connector arrow + label between boxes */
.sentre-connector-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--color-red);
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sentre-connector-line {
  width: 2px;
  background-color: var(--color-red);
  flex: 1;
}

/* Small label bubble below connector arrow */
.sentre-label-bubble {
  font-size: 0.875rem;
  color: var(--color-blue);
  text-align: center;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ─── Card grid with spacing (case study / module grid) ───── */

.sentre-card-grid {
  /* extends sentre-grid-2 — adds top margin */
}

.sentre-mt-6 {
  margin-top: 1.5rem;
}

/* ─── Timeline container (Methodology / Discovery phases) ── */

.sentre-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* Phase / step duration label */
.sentre-phase-duration {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ─── Blog layout ────────────────────────────────────────── */

/* Blog layout modifier — stacks on mobile */
.sentre-blog-layout {
  /* inherits sentre-2col */
}

@media (max-width: 992px) {
  .sentre-blog-layout {
    flex-direction: column;
  }
}

/* Blog post card */
.sentre-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--color-white);
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sentre-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.sentre-blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.sentre-blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sentre-blog-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
}

.sentre-blog-category {
  color: var(--color-red);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.sentre-blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--color-blue);
}

.sentre-blog-excerpt {
  font-size: 1rem;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.sentre-blog-link {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.sentre-blog-link:hover {
  color: var(--color-red);
}

/* ─── Blog sidebar ───────────────────────────────────────── */

.sentre-sidebar-cat-link {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
  color: var(--color-text-main);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.sentre-sidebar-cat-link:hover {
  color: var(--color-red);
  padding-left: 0.5rem;
}

/* ─── Checkbox wrapper (Contact form privacy field) ──────── */

.sentre-checkbox-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.sentre-checkbox-wrapper input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--color-blue);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.sentre-checkbox-wrapper label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.5;
}

/* ─── Box icon (diagram boxes — light/dark variants) ─────── */

.sentre-box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
}

/* Icon on white/light box */
.sentre-box-icon.light {
  color: var(--color-blue);
}

/* Icon on dark/blue box */
.sentre-box-icon.dark {
  color: var(--color-white);
}

/* ─── Single-page footer CTA (SentreLanding) ─────────────── */

.sentre-footer-h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 1rem;
  text-align: center;
}

.sentre-footer-p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.sentre-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .sentre-footer-actions {
    flex-direction: row;
  }
}

/* ─── Bullet span (inline bullet character in service card lists) */

.sentre-bullet {
  color: var(--color-red);
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 0.25rem;
}
