/* =============================================
   RAM Solutions — Base / Reset / Typography
   ============================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--surface-50);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* --- Selection --- */
::selection {
  background: var(--primary-200);
  color: var(--primary-800);
}

/* --- Scrollbar (Webkit) --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--surface-100);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-300);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-400);
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--section-px);
  padding-right: var(--section-px);
  width: 100%;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: var(--fs-xs);
  margin-bottom: 0.75rem;
  position: relative;
}

.section-tag::before,
.section-tag::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--accent-cyan);
  vertical-align: middle;
  opacity: 0.5;
}
.section-tag::before {
  margin-right: 12px;
}
.section-tag::after {
  margin-left: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--primary-700);
  font-weight: 700;
  line-height: 1.25;
}

.section-title span {
  color: var(--accent-cyan);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

/* --- Typography Helpers --- */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-400), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Skip to Content (Accessibility) --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-600);
  color: var(--text-on-primary);
  padding: 0.8rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}
.skip-to-content:focus {
  top: 0;
}
