/* ===== Base ===== */
:root {
  --green: #009C5F;
  --mint: #C8E8E9;
  --text: #333;
  --max: 1100px;

  --pad: clamp(14px, 2vw, 24px);
  --radius: 22px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Roboto", sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: clamp(16px, 1.2vw, 20px);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2 {
  font-family: "Raleway", sans-serif;
  line-height: 1.15;
}

h1 { font-size: clamp(26px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 34px); }

.title-line {
  height: 14px;
  background-color: var(--green);
  margin-bottom: 14px;
  border-radius: 999px;
}

.section {
  padding: clamp(26px, 5vw, 60px) var(--pad);
}

.section > * {
  max-width: var(--max);
  margin-inline: auto;
}

/* === IMPORTANT FIXES ===
   Prevent grid/flex children from collapsing due to min-content sizing issues */
.split > *,
.landing > *,
.contact-grid > * {
  min-width: 0;
}

/* Prevent long strings from forcing layout collapse */
.landing-copy,
.split-copy,
.contact-copy {
  overflow-wrap: anywhere;
}

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.brand-bar {
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: black;
  min-width: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-text { display: grid; }
.brand-name {
  font-weight: 800;
  font-family: "Raleway", sans-serif;
  font-size: 20px;
}
.brand-sub {
  font-size: 13px;
  opacity: 0.8;
}

.nav-desktop {
  display: none;
  gap: 18px;
  align-items: center;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
}

.nav-desktop a {
  text-decoration: none;
  color: black;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-desktop a:hover {
  color: var(--green);
  background: rgba(0, 156, 95, 0.08);
}

/* Hamburger */
.nav-toggle {
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: black;
  display: block;
  border-radius: 999px;
}

.nav-toggle:hover { background: rgba(0,0,0,0.06); }

/* Mobile dropdown nav */
.nav-mobile {
  display: grid;
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.nav-mobile a {
  text-decoration: none;
  color: black;
  padding: 14px var(--pad);
  font-family: "Raleway", sans-serif;
  font-weight: 700;
}

.nav-mobile a:hover {
  background: rgba(0, 156, 95, 0.08);
  color: var(--green);
}

.site-header[data-menu-open="true"] .nav-mobile {
  max-height: 320px;
}

/* Desktop breakpoint: show normal nav, hide hamburger+mobile */
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* ===== Landing ===== */
.landing {
  padding: 0;
  background: var(--mint);
  display: grid;
  grid-template-columns: 1fr;
}

.landing-media {
  min-height: clamp(260px, 45vh, 520px);
  width: 100%;
  /* Use non-shorthand background props to avoid accidental overrides */
  background-image: url("assets/image3.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.landing-copy {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(18px, 4vw, 44px) var(--pad);
  text-align: left;
}

.landing-copy p { margin-top: 12px; }

@media (min-width: 900px) {
  .landing {
    /* minmax(0, …) prevents the other column collapsing to 0px */
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: stretch;
  }

  .landing-copy {
    display: grid;
    align-content: center;
    text-align: right;
  }
}

/* ===== Split sections (Oferta / Zajęcia) ===== */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 3vw, 28px);
  align-items: stretch;
}

.split-copy {
  background: linear-gradient(to top, transparent, var(--mint));
  padding: var(--pad);
  border-radius: var(--radius);
}

.split-copy p { margin-top: 10px; }

.split-media {
  border-radius: var(--radius);
  min-height: clamp(220px, 35vh, 520px);
  width: 100%;
  background-color: #eee;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.offer-media {
   background-image: url("assets/image4.png"); 
   background-position: top center;
   min-height: 800px;
  }
.classes-media {
   background-image: url("assets/cwiczenia.png"); 
   background-position: top center;
   min-height: 800px;
  }

.split-reverse .split-media { order: -1; }

.bullets {
  margin: 14px 0 18px 18px;
}

.book-button {
  display: inline-block;
  background: var(--green);
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-family: "Raleway", sans-serif;
}

.book-button:hover { filter: brightness(0.95); }

@media (min-width: 900px) {
  .split {
    /* minmax(0, …) prevents media column collapsing to 0px */
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  .split-reverse .split-media { order: 0; }
  .split-reverse .split-copy { order: 2; }
}

/* Optional: restore your "small" offer image on mobile if you have it */
/*
@media (max-width: 899px) {
  .offer-media { background-image: url("assets/image4-small.png"); }
}
*/

/* ===== Prices ===== */
.prices {
  background: linear-gradient(to right, var(--mint) 0 45%, transparent 45% 100%);
}

.prices-inner {
  max-width: var(--max);
  margin-inline: auto;
  text-align: center;
}

.price-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(200, 232, 233, 0.6);
  text-align: left;
}

.price-value {
  font-weight: 800;
  font-family: "Raleway", sans-serif;
}

.logo-deco {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.logo-deco img {
  width: 180px;
  height: auto;
  opacity: 0.9;
}

/* ===== Reviews ===== */
.reviews { background: white; }

.reviews-inner {
  max-width: var(--max);
  margin-inline: auto;
  text-align: center;
}

.review-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review-card {
  background: var(--green);
  color: white;
  padding: 18px;
  border-radius: 26px;
  text-align: left;
  line-height: 1.45;
}

@media (min-width: 800px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Contact ===== */
.contact { padding-bottom: 0; }

.contact-grid {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.contact-copy {
  background: linear-gradient(to top, transparent, var(--mint));
  padding: var(--pad);
  border-radius: var(--radius);
}

.contact-items {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.media {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: black;
  padding: 10px;
  border-radius: 16px;
}

.media img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-top: 2px;
  filter: invert(0%) sepia(0%) saturate(7471%) hue-rotate(239deg) brightness(92%) contrast(100%);
}

.media p { font-weight: 700; }

a.media:hover p { color: var(--green); }
a.media:hover img {
  filter: invert(35%) sepia(58%) saturate(4968%) hue-rotate(143deg) brightness(98%) contrast(101%);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mint);
}

.contact-map iframe {
  width: 100%;
  height: clamp(260px, 45vh, 520px);
  border: 0;
  display: block;
}

@media (min-width: 900px) {
  .contact-grid {
    /* minmax(0, …) prevents either column from collapsing */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 24px;
  background: var(--green);
  color: white;
  padding: 18px var(--pad);
  text-align: center;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.footer-link:hover { color: #F5E9D3; }

/* ===== Cookie banner + modal ===== */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  padding: 14px var(--pad);
  z-index: 9999;
}

.cookie-card {
  max-width: var(--max);
  margin: 0 auto;
  background: white;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 16px;
}

.cookie-title { margin-bottom: 6px; }
.cookie-text { opacity: 0.95; }
.cookie-text a { color: var(--green); font-weight: 700; text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.cookie-actions.right { justify-content: flex-end; }

.cookie-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
  font-family: "Raleway", sans-serif;
}
.cookie-btn.primary { background: var(--green); color: white; }
.cookie-btn.primary:hover { filter: brightness(0.95); }
.cookie-btn.ghost { background: rgba(0,0,0,0.06); }
.cookie-btn.ghost:hover { background: rgba(0,0,0,0.10); }

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: grid;
  place-items: center;
  z-index: 10000;
  padding: 14px;
}

.cookie-modal-card {
  width: min(680px, 100%);
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.cookie-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cookie-x {
  border: 0;
  background: rgba(0,0,0,0.06);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
}
.cookie-x:hover { background: rgba(0,0,0,0.10); }

.cookie-opt {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(200, 232, 233, 0.45);
  margin-top: 10px;
}

.cookie-small { font-size: 0.92em; opacity: 0.85; margin-top: 4px; }

/* Switch */
.cookie-switch {
  position: relative;
  width: 54px;
  height: 32px;
  flex: 0 0 auto;
}
.cookie-switch input { display: none; }
.cookie-slider {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  border-radius: 999px;
}
.cookie-slider::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 999px;
  transition: transform 180ms ease;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--green);
}
.cookie-switch input:checked + .cookie-slider::after {
  transform: translateX(22px);
}
