/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-body);
  background-color: var(--color-bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: var(--sticky-bar-height);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY — High Contrast & Clear Hierarchy
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-main);
  letter-spacing: -0.015em;
}

h1, .h1 {
  font-size: clamp(2rem, 3.8vw + 0.8rem, 3rem);
  line-height: 1.15;
}

h2, .h2 {
  font-size: clamp(1.6rem, 2.6vw + 0.5rem, 2.25rem);
  line-height: 1.2;
}

h3, .h3 {
  font-size: clamp(1.2rem, 1.4vw + 0.4rem, 1.45rem);
}

h4, .h4 {
  font-size: clamp(1.05rem, 0.9vw + 0.3rem, 1.2rem);
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-body);
}

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

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text-body);
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Clear, Generous Section Padding */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 992px) {
  .section {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-top: 0.85rem;
  max-width: 620px;
  line-height: 1.7;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Alignment & Spacing Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }

/* Colors */
.text-white { color: var(--color-text-white) !important; }
.text-white-80 { color: rgba(255, 255, 255, 0.9) !important; }
.text-muted { color: var(--color-text-muted); }
.highlight-orange { color: var(--color-accent-600); font-weight: 700; }
.highlight-emerald { color: var(--color-success-700); font-weight: 700; }

.d-block { display: block; }
.d-none { display: none !important; }

@media (min-width: 576px) {
  .d-sm-inline-flex { display: inline-flex !important; }
}

@media (min-width: 768px) {
  .d-md-none { display: none !important; }
  .d-md-flex { display: flex !important; }
  .d-md-block { display: block !important; }
}

@media (min-width: 1024px) {
  .d-lg-inline { display: inline !important; }
  .d-lg-flex { display: flex !important; }
}

@media (min-width: 1200px) {
  .d-xl-flex { display: flex !important; }
}
