/* ==========================================================================
   ROBINSON NUTRITION - BASE STYLES & TYPOGRAPHY
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,700&family=Oswald:wght@400;500;600;700&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-body);
  overflow-x: hidden;
  position: relative;
}

/* --- Selection Highlight --- */
::selection {
  background-color: var(--color-primary-navy);
  color: var(--color-accent-gold-light);
}

/* --- Typography Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

h4 {
  font-size: 1.25rem;
}

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

p.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

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

a:hover {
  color: var(--color-accent-gold);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --- Container & Section Base --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

.section {
  padding-top: clamp(4rem, 7vw, 7.5rem);
  padding-bottom: clamp(4rem, 7vw, 7.5rem);
  position: relative;
}

.section-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-contrast {
  background-color: var(--color-primary-navy-dark);
  color: var(--text-white);
}

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

.section-contrast p {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-badge);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-navy-surface);
  color: var(--color-primary-navy);
  border: 1px solid rgba(15, 43, 92, 0.15);
  margin-bottom: 1rem;
}

.section-tag.gold {
  background: rgba(212, 175, 55, 0.12);
  color: var(--color-accent-gold-dark);
  border-color: var(--border-gold);
}

.section-title {
  margin-bottom: 1rem;
  position: relative;
}

.section-title span.highlight-gold {
  color: var(--color-accent-gold);
  position: relative;
  display: inline-block;
}

.gold-text {
  color: var(--color-accent-gold);
  display: inline;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-navy);
}
