/* ============================================
   CZ Supply — Reset & Global Styles
   ============================================ */

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

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

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

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

img {
  height: auto;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p + p { margin-top: var(--sp-md); }

::selection {
  background: var(--lavender-light);
  color: var(--navy-dark);
}

/* --- Utilities --- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.section-pad {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.text-center { text-align: center; }
.text-accent { color: var(--lavender); }
.text-bronze { color: var(--bronze); }
.text-muted { color: var(--text-muted); }
.text-inverse { color: var(--text-inverse); }

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

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

.bg-cream { background: var(--cream); }
.bg-navy { background: var(--surface-dark); }
.bg-dark { background: var(--surface-darker); }

/* Subtle noise texture overlay for cream sections */
.bg-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}

.bg-texture {
  position: relative;
}

.bg-texture > * {
  position: relative;
  z-index: 1;
}

/* Decorative rule */
.rule {
  width: 60px;
  height: 3px;
  background: var(--lavender);
  border: none;
  border-radius: 2px;
}

.rule-center {
  margin-left: auto;
  margin-right: auto;
}

/* Label / eyebrow text */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--lavender-dark);
  margin-bottom: var(--sp-sm);
}

.section-dark .eyebrow {
  color: var(--lavender);
}
