/**
 * SENTRE Theme — Base Styles
 * Reset, body, typography, global element defaults.
 * No layout grids or component classes here.
 * All values reference tokens.css variables.
 */

/* ─── Reset ──────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-red);
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Headings ───────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-main);
}

h1, .sentre-h1 {
  font-size: var(--text-h1);
  letter-spacing: -0.01em;
  color: var(--color-text-main);
  padding-bottom: 1.2rem;
}

h2, .sentre-h2 {
  font-size: var(--text-h2);
  color: var(--color-blue);
}

h3, .sentre-h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

h4, .sentre-h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-white); /* footer / dark contexts */
}

/* ─── Body text ──────────────────────────────────────────── */

p, .sentre-p {
  font-size: var(--text-body-mobile);
  color: var(--color-text-main);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  p, .sentre-p {
    font-size: var(--text-body);
  }
}

.sentre-small,
small {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ─── Lead / intro text ──────────────────────────────────── */

.sentre-lead {
  font-size: 1.25rem;
  color: var(--color-text-main);
  line-height: 1.6;
}

.sentre-lead-white {
  font-size: 1.375rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

/* ─── Label tag (red uppercase label above headings) ─────── */

.sentre-label-tag {
  display: block;
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* ─── Color utilities ────────────────────────────────────── */

.sentre-text-white { color: var(--color-white) !important; }
.sentre-text-blue  { color: var(--color-blue)  !important; }
.sentre-text-red   { color: var(--color-red)   !important; }
.sentre-text-dark  { color: var(--color-text-main) !important; }
.sentre-text-muted { color: var(--color-text-muted) !important; }

/* ─── Accent decorators ──────────────────────────────────── */

/* Red rule above section headings */
.sentre-accent-line {
  height: 4px !important;
  width: 40px !important;
  max-width: 40px !important;
  background-color: var(--color-red) !important;
  color: var(--color-red) !important;
  border: none !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  display: block !important;
}

.sentre-accent-line.centered {
  width: 60px !important;
  max-width: 60px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Numbered circle (phases / steps) */
.sentre-accent-circle {
  width: 2rem;
  height: 2rem;
  background-color: var(--color-red);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ─── Blockquotes ────────────────────────────────────────── */

.sentre-blockquote,
blockquote {
  border-left: 4px solid var(--color-red);
  padding: 1.5rem;
  font-style: italic;
  color: #4b5563;
  margin: 2rem 0;
  background-color: #f9fafb;
  border-radius: 0 0.5rem 0.5rem 0;
}

.sentre-blockquote-blue {
  border-left-color: var(--color-blue);
  color: var(--color-blue);
}

/* ─── Icons ──────────────────────────────────────────────── */

.sentre-svg-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.sentre-icon-blue { color: var(--color-blue); }
.sentre-icon-red  { color: var(--color-red); }

.sentre-icon-xl .sentre-svg-icon {
  width: 3rem;
  height: 3rem;
}

.sentre-check-icon .sentre-svg-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ─── Checklists ─────────────────────────────────────────── */

.sentre-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.sentre-check-icon {
  color: var(--color-red);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.sentre-bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-red);
  margin-top: 0.6rem;
  flex-shrink: 0;
}

/* ─── Stat elements ──────────────────────────────────────── */

.sentre-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.sentre-stat-label {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 600;
  line-height: 1.2;
}

/* ─── Card border accents ────────────────────────────────── */

.sentre-border-top-accent {
  border-top: 3px solid var(--color-red) !important;
}

.sentre-border-left-accent {
  border-left: 4px solid var(--color-red) !important;
}

/* ─── 404 title ──────────────────────────────────────────── */

.sentre-404-title {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 0;
}

/* ─── Blog / post content ────────────────────────────────── */

.sentre-post-content {
  font-size: var(--text-body);
  line-height: 1.8;
  color: #374151;
}

.sentre-post-content h2 {
  font-size: 2rem;
  color: var(--color-blue);
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.sentre-post-content h3 {
  font-size: 1.5rem;
  color: var(--color-text-main);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.sentre-post-content p {
  margin-bottom: 1.5rem;
}

.sentre-post-content ul,
.sentre-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  list-style: revert;
}

.sentre-post-content li {
  margin-bottom: 0.5rem;
}

.sentre-post-content blockquote {
  border-left: 4px solid var(--color-red);
  padding: 1.5rem;
  font-style: italic;
  color: #4b5563;
  margin: 2rem 0;
  background-color: #f9fafb;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* ─── Author block (blog post) ───────────────────────────── */

.sentre-author-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.sentre-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
}

/* ─── Alignment / spacing helpers ───────────────────────── */

.sentre-text-center { text-align: center; }
.sentre-text-left   { text-align: left; }
.sentre-mx-auto     { margin-left: auto; margin-right: auto; }

.sentre-mt-4  { margin-top: 1rem; }
.sentre-mt-8  { margin-top: 2rem; }
.sentre-mt-12 { margin-top: 3rem; }

.sentre-mb-4  { margin-bottom: 1rem; }
.sentre-mb-6  { margin-bottom: 1.5rem; }
.sentre-mb-8  { margin-bottom: 2rem; }
.sentre-mb-12 { margin-bottom: 3rem; }

.sentre-pb-12 { padding-bottom: 3rem; }
.sentre-pl-4  { padding-left: 1rem; }