/* ============================================
   SBFC SOLUTIONS — BASE STYLES & RESET
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

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

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

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

ul, ol { list-style: none; }

/* ── Layout Utilities ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xxl) 0;
}

.section--sm {
  padding: var(--space-xl) 0;
}

.section--gray {
  background: var(--gray-bg);
}

.section--dark {
  background: var(--gray-dark);
  color: var(--text-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-white);
}

.section--dark p {
  color: rgba(255,255,255,0.80);
}

.section--red {
  background: var(--red);
  color: var(--text-white);
}

.section--red h2, .section--red h3 {
  color: var(--text-white);
}

.section--red p {
  color: rgba(255,255,255,0.88);
}

/* ── Flex/Grid ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.flex {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ── Section Headers ── */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-xs);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header.text-center .section-subtitle {
  margin: 0 auto;
}

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin: var(--space-sm) 0 var(--space-md);
}

.divider--center {
  margin: var(--space-sm) auto var(--space-md);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
