/* ══════════════════════════════════════════════════════════
   NEGODA SOLUTIONS — Base Styles (Reset, Typography, Grid)
   ══════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--text); line-height: 1.2; }
h1 { font-size: clamp(36px, 7vw, 64px); }
h2 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 12px; }
h3 { font-size: clamp(20px, 3vw, 28px); margin-bottom: 8px; }
h4 { font-size: 18px; margin-bottom: 6px; }
p { margin-bottom: 16px; }
strong { color: var(--text); font-weight: 600; }

/* ── Links ── */
.link-gold { color: var(--gold); font-weight: 600; transition: opacity var(--duration) var(--ease); }
.link-gold:hover { opacity: 0.8; text-decoration: underline; }

/* ── Layout ── */
.container { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Sections ── */
.sec-light { background: var(--bg); padding: var(--space-3xl) 0; }
.sec-dark  { background: var(--dark); padding: var(--space-3xl) 0; color: var(--white); }
.sec-dark h2, .sec-dark h3, .sec-dark h4 { color: var(--white); }
.sec-dark p { color: rgba(250, 250, 248, 0.65); }
.sec-dark strong { color: var(--white); }
.sec-bg2   { background: var(--bg2); padding: var(--space-3xl) 0; }
.sec-neu   { background: #e8ece5; padding: var(--space-3xl) 0; }

.gold-line { height: 1px; background: var(--gold); opacity: 0.35; }

/* ── Body Text ── */
.body-text {
  font-size: 17px; line-height: 1.8;
  color: var(--text2); max-width: 700px;
  margin-bottom: 20px;
}
.sec-dark .body-text { color: rgba(250, 250, 248, 0.65); }

/* ── Grid Utilities ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .sec-light, .sec-dark, .sec-bg2, .sec-neu { padding: 48px 0; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 480px) {
  .sec-light, .sec-dark, .sec-bg2, .sec-neu { padding: 32px 0; }
  .container, .container-wide { padding: 0 16px; }
  h1 { font-size: clamp(28px, 8vw, 36px); }
  h2 { font-size: clamp(22px, 6vw, 28px); }
}

/* ── Flex Utilities ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26, 60, 52, 0.15); border-radius: 3px; }

/* ── Selection ── */
::selection { background: rgba(184, 146, 74, 0.2); color: var(--text); }

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

/* ── Print ── */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}
