/* ============================================================
   BASE — reset, typografia, kontenery, przyciski
   Bazuje 1:1 na prototypie Majowych Ogrodów (linie 11-58 oryginału).
   ============================================================ */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--gray-bg);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  font-size: 17px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Nagłówki */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

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

.section {
  padding: var(--section-padding) 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: var(--text-dark);
}
.section-title .accent { color: var(--green); }

.section-subtitle {
  color: var(--text-medium);
  font-size: 1.0625rem;
  margin-bottom: 56px;
  max-width: 680px;
  font-weight: 500;
}

/* Tag-pill nad nagłówkami */
.tag {
  display: inline-block;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

/* Kolorowanie pojedynczych słów w nagłówkach */
.accent { color: var(--green); }

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-outline:hover {
  background: #ffffff;
  color: var(--green-dark);
  border-color: #ffffff;
}

.btn-ghost {
  background: #ffffff;
  color: var(--green-dark);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--green-bg);
  border-color: var(--green-light);
}

/* Focus dostępne (WCAG AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}

/* Reveal-on-scroll (używane przez JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
