/* ==========================================================================
   #aktywnaZnatury — style.css
   Paleta i zasady opisane w docs/design-system.md
   ========================================================================== */

:root {
  --color-green: #1f5c3f;
  --color-green-dark: #143d29;
  --color-gold: #d3902e;
  --color-cream: #f5efdd;
  --color-cream-alt: #fbf8f0;
  --color-text: #24312b;
  --color-white: #ffffff;

  --font-heading: "Quicksand", sans-serif;
  --font-body: "Nunito Sans", sans-serif;

  --max-width: 1100px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-green-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a {
  color: var(--color-green);
}

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

.section {
  padding: 3rem 1.25rem;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section--alt {
  background: var(--color-cream-alt);
}

.section--dark {
  background: var(--color-green-dark);
  color: var(--color-white);
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.button {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  background: var(--color-green);
  color: var(--color-white);
  border: 2px solid var(--color-green);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.button:hover {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  transform: translateY(-1px);
}

.button--outline {
  background: transparent;
  color: var(--color-green);
}

.button--outline:hover {
  background: var(--color-green);
  color: var(--color-white);
}

.section--dark .button--outline {
  color: var(--color-white);
  border-color: var(--color-white);
}

.section--dark .button--outline:hover {
  background: var(--color-white);
  color: var(--color-green-dark);
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--color-cream);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(20, 61, 41, 0.12);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-green-dark);
}

.brand__logo {
  height: 48px;
  width: auto;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--color-green-dark);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.primary-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-family: var(--font-heading);
}

.primary-nav a[aria-current="page"] {
  color: var(--color-green);
  border-bottom: 2px solid var(--color-gold);
}

.primary-nav__cta {
  background: var(--color-green);
  color: var(--color-white) !important;
  padding: 0.5em 1.2em;
  border-radius: 999px;
  border-bottom: none !important;
}

.primary-nav__cta:hover {
  background: var(--color-green-dark);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid rgba(20, 61, 41, 0.12);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(20, 61, 41, 0.08);
  }

  .primary-nav__cta {
    border-radius: 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.hero__logo {
  width: 180px;
  margin: 0 auto 1.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero--center {
  text-align: center;
  justify-items: center;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.card {
  background: var(--color-cream-alt);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(20, 61, 41, 0.08);
}

.card__image {
  border-radius: calc(var(--radius) - 6px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-green);
  margin-bottom: 1rem;
}

/* ---------- Pricing ---------- */

.pricing-group {
  margin-bottom: 2rem;
}

.pricing-group h3 {
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.pricing-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.pricing-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(20, 61, 41, 0.2);
}

.pricing-list li:last-child {
  border-bottom: none;
}

.pricing-list .price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-green);
  white-space: nowrap;
}

.pricing-note {
  background: rgba(211, 144, 46, 0.15);
  border-left: 4px solid var(--color-gold);
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* ---------- Schedule ---------- */

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-cream-alt);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule-table th,
.schedule-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(20, 61, 41, 0.1);
  vertical-align: top;
}

.schedule-table th {
  background: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-heading);
}

.schedule-table .session-line {
  display: block;
  margin-bottom: 0.35rem;
}

.schedule-table .session-line:last-child {
  margin-bottom: 0;
}

.schedule-table .session-time {
  color: var(--color-gold);
  font-weight: 700;
  margin-right: 0.4rem;
}

.table-scroll {
  overflow-x: auto;
}

/* ---------- Team / About ---------- */

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 700px) {
  .about-grid {
    grid-template-columns: 320px 1fr;
  }
}

.about-photo {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--color-green);
}

/* Variant for long bio text next to a photo — stretches the photo to
   match the text column's height instead of leaving it short/top-aligned. */
.about-grid--stretch {
  align-items: stretch;
}

.about-grid--stretch .about-photo {
  aspect-ratio: auto;
  height: 100%;
  min-height: 420px;
}

.highlight-list {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.highlight-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
}

.highlight-list li::before {
  content: "✨";
  position: absolute;
  left: 0;
  top: 0;
}

.course-info {
  background: var(--color-white);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 1.5rem;
  box-shadow: 0 2px 10px rgba(20, 61, 41, 0.08);
}

.course-info h3 {
  margin-bottom: 1rem;
}

.course-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.5rem;
  margin: 0;
}

.course-info dt {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-green-dark);
}

.course-info dd {
  margin: 0;
}

.course-info__note {
  margin-top: 1.25rem;
  font-style: italic;
  opacity: 0.85;
}

/* ---------- Contact form ---------- */

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(20, 61, 41, 0.3);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-white);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 1px;
}

.form-honeypot {
  display: none;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(31, 92, 63, 0.15);
  color: var(--color-green-dark);
}

.form-status.is-error {
  display: block;
  background: rgba(200, 60, 60, 0.12);
  color: #a13b3b;
}

.contact-info dl {
  margin: 0;
}

.contact-info dt {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-green-dark);
  margin-top: 1.25rem;
}

.contact-info dd {
  margin: 0.2rem 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-green-dark);
  color: var(--color-white);
  margin-top: 3rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer__logo {
  height: 56px;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--color-white);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__nav a {
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__copy {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
  padding: 1rem 1.25rem 1.5rem;
  margin: 0;
}
