/* =========================================
   BASE STYLES — SBZSolar
   ========================================= */

html {
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
  color: var(--color-navy);
}

h1 { font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl)); }
h2 { font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-xl), 2vw, var(--text-3xl)); }
h4 { font-size: clamp(var(--text-lg), 1.5vw, var(--text-2xl)); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* ---- Body text ---- */
p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  max-width: 68ch;
}

p.large {
  font-size: var(--text-lg);
}

p.small {
  font-size: var(--text-sm);
}

/* ---- Links ---- */
a {
  color: var(--color-navy-light);
  transition: color var(--duration-fast) var(--ease-out);
}

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

/* ---- Strong / em ---- */
strong {
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

em {
  font-style: italic;
  color: var(--color-text);
}

/* ---- Horizontal rule ---- */
hr {
  border: none;
  border-top: 1px solid var(--color-gray-200);
  margin: var(--space-8) 0;
}

/* ---- Selection ---- */
::selection {
  background: var(--color-gold);
  color: var(--color-navy-deep);
}

/* ---- Focus ---- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-gray-100); }
::-webkit-scrollbar-thumb { background: var(--color-gray-300); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-gray-400); }

/* ---- Utilities ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-text-muted); }
.text-green { color: var(--color-green); }

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

.font-bold     { font-weight: var(--weight-bold); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-medium   { font-weight: var(--weight-medium); }

.uppercase  { text-transform: uppercase; }
.tracking-wide { letter-spacing: var(--tracking-wide); }

/* ---- Overline label (above h2) ---- */
.overline {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.overline.light {
  color: rgba(246, 177, 0, 0.85);
}
