/*@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;800;500&display=swap');*/
/*@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');*/
/* ─── Variables ─── */
:root {
  --color-light-bg:   #b7d2ea;
  --color-light-heading: #5c1f33;
  --color-light-text: #351e28;
  --color-dark-bg:    #5c1f33;
  --color-dark-text:  #ffffff;
  --color-dark-heading:  #b7d2ea;
  --color-dark-bg--rgb: 92, 31, 51;
  --color-dark-heading--rgb: 183, 210, 234;

  --max-width: 1200px;
  --section-margin: 2rem;
  --section-pad: 3rem;
  --section-gap: 3rem;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  font-size: 1.1rem;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-light-text);
  background: #ffffff;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.2;
}

/* ─── Site wrapper ─── */
.site-wrapper {
  /*max-width: var(--max-width);*/
  /*margin: 0 auto;*/
  /*padding: 24px 24px 48px;*/
  /*padding: var(--section-margin);*/
  display: flex;
  flex-direction: column;
  gap: var(--section-margin);
  margin-top: calc(0rem - var(--section-margin));
}

.site-wrapper-p {
  max-width: var(--max-width);
  margin: 0 auto;
  /*padding: 24px 24px 48px;*/
  padding: var(--section-margin);
  padding-top: calc(2 * var(--section-margin));
  display: flex;
  flex-direction: column;
  /*gap: var(--section-margin);*/
}


/* Round all section cards inside wrapper */
.site-wrapper > section {
  border-radius: 16px;
  /*overflow: hidden;*/
}

.section > .section__inner:first-child {
  border-radius: 16px 16px 0 0;
}
.section > .section__inner:last-child {
  border-radius: 0 0 16px 16px;
}

.section__inner .section__inner {
  border-radius: 16px;
  padding: var(--section-margin);
}

.nav-wrapper {
  padding-top: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
/* ─── Nav (inside hero, overlaid) ─── */
.nav {
  position: sticky;
  top: 0em;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.nav__inner {
  position: relative;
  width: 100%;
}

.nav__links {
  position: absolute;
  display: flex;
  margin: 20px var(--section-pad);
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  /* From https://css.glass */




}

@media (min-width: 900px) {
  .nav__links {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}


.nav__links li {
  display: flex;
  align-items: center;
}

.section__inner {
  position: relative;
}
.anchor {
  position: absolute;
  top: -2rem;
}

.nav__links a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-radius: 24px;
  padding: 7px 18px;
  transition: opacity 0.2s, background-color 0.2s linear;
  font-weight: 600;
  &:hover { opacity: 0.8; }
}
.dark .nav__links a {
  background: rgba(var(--color-dark-heading--rgb), 1);
  border: 1px solid rgba(var(--color-dark-bg--rgb), 0.7);
  color: var(--color-dark-bg);
}
.nav__links a, .light .nav__links a {
  background: rgba(var(--color-dark-bg--rgb), 1);
  border: 1px solid rgba(var(--color-dark-heading--rgb), 0.7);
  color: var(--color-light-bg);
}


.nav__links li:first-child { display: none; }

/* ─── Section wrappers ─── */
.section--light {
  background: var(--color-light-bg);
  color: var(--color-light-text);
  h2, h3, h4 {
  color: var(--color-light-heading);
  }
}
.section--light .section--dark {
  h2, h3, h4 {
    color: var(--color-dark-heading);
  }
}

.section--dark .section--light {
  h2, h3, h4 {
    color: var(--color-light-heading);
  }
}

.section--dark {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
  h2, h3, h4 {
    color: var(--color-dark-heading);
  }
}

.section--light.active,.section--dark.active {
  border: 5px solid green !important;
}

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


h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: var(--section-margin);
}

h3 {
  font-size: 1.15rem;
  font-weight: 500;
  /*font-size: clamp(1.5rem, 3vw, 2.25rem);*/
  margin-bottom: calc(var(--section-margin) / 2);
}

/* ─── Hero ─── */
.hero {
  /*margin-top: -7rem;*/
  margin-top: 0 !important;
  position: relative;
  background: var(--color-light-bg);
  min-height: 520px;
  display: flex;
  align-items: stretch;
}

.nav__name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #ffffff;
  white-space: nowrap;

}
.hero__title {
  text-align: right;
  font-family: 'DM Sans', sans-serif;
  color: var(--color-light-bg);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.75;
  border-radius: 16px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 90px var(--section-pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__tagline {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  /*font-size: clamp(1rem, 2vw, 1.3rem);*/
  color: var(--color-light-text);
  max-width: 570px;
  line-height: 1.6;
  background: rgba(183, 210, 234, 0.65);
  padding: 24px 28px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* ─── KST pomoct tag-cloud ─── */
/*.kst-tags {*/
/*  .section__inner { padding-top: 60px; padding-bottom: 70px; }*/
/*}*/


.tags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px  var(--section-gap);
  list-style: none;
}

.tags-grid__item {
  display: flex;
  align-items: center;
  justify-self: start;
  font-size: 0.93rem;
  font-weight: 400;
  color: #ffffff;
  background: #5c1f33;
  border-radius: 24px;
  padding: 10px 18px;
  line-height: 1.35;
}



/* ─── Split layout ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--section-gap);
  align-items: center;
}

.split--image-right .split__image { order: 2; }
.split--image-left  .split__image { order: 0; }

.split--image-right .split__text { order: 1; }
.split--image-left  .split__text { order: 1; }

.split__image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.split__text {

  p { margin-bottom: 16px; }
  p:last-child { margin-bottom: 0; }
}

/* ─── KST terapie ─── */


.section__layout--2col {
  column-count: 2;
  gap: var(--section-gap);
  margin-bottom: calc(0rem - var(--section-gap));
  p {
    display: inline-block;
    margin-bottom: var(--section-gap);
  }
}

.jak-probiha .split__image img,
.moments .split__image img {
  height: 460px;
}

/* ─── Kontakt ─── */


.kontakt__card {
  background: var(--color-light-bg);
  color: var(--color-light-text);
  border-radius: 16px;
  padding: 48px 56px;
  max-width: 700px;
}

.kontakt__body {
  font-size: 1rem;
  line-height: 1.9;

  a {
    text-decoration: underline;
    color: inherit;
    font-weight: 500;
    &:hover { opacity: 0.75; }
  }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  :root {
    /*--section-pad: 32px;*/

      --section-margin: 1rem;
      --section-pad: 1.5rem;
      --section-gap: 1.5rem;

  }

  /* nav */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* hero */
  .hero { min-height: 380px; }

  .section__layout--2col {
    column-count: 1;
  }

  /* tags */
  .tags-grid { grid-template-columns: 1fr; }

  /* split layout */
  .split {
    grid-template-columns: 1fr;
    /*gap: 32px;*/
  }

  .split--image-right .split__image,
  .split--image-left  .split__image { order: 1; }

  .split--image-right .split__text,
  .split--image-left  .split__text  { order: 0; }

  .split__image img { height: 280px; }
  .jak-probiha .split__image img,
  .moments .split__image img { height: 300px; }


  .hero__tagline {
    max-width: unset;
    width: 100%;
  }

  .hero__inner {
    padding-top: 200px;
  }
  .hero__title {
    color: var(--color-light-heading);
    margin-bottom: calc(var(--section-margin) / 2);
    text-align: center;
  }

  .hero { min-height: 300px; }

  .line {
    fill: none;
    stroke: white;
    font-size: 1em;
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .line1 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
  }
  .line2 {
    stroke-dasharray: 60 60;
    stroke-width: 6;
  }
  .line3 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
  }
  .opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }
  .opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 6;
  }
  .opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }

  .nav__inner {
    overflow: hidden;
    height: 3.5em;
    position: absolute;
    top: 0;
    transition: height 0.5s ease;
    align-items: flex-end;
    right: 0;
  }
  .nav__inner.nav__links--open {
    height: 17rem;
  }
  .nav__links {
    flex-direction: column;
    align-items: flex-end;
    right: 0;
    margin: 0;
  }
  .nav__links li:first-child {
    display: block;
    position: relative;
    /*display: block; margin-bottom: 1rem;*/
  }
  .nav__links li:first-child svg {
    width: 2.5rem;
    height: 2.5rem;
    background: #351e28;
    border-radius: 16px;
  }
  .nav__links li:first-child a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
  }
  .nav__links { padding: 12px var(--section-pad); }
  .nav__links { gap: 6px; }
  .nav__links a { font-size: 1.2rem; padding: 6px 14px; }

  .hamburger {
    border: 0 !important;
  }
}


@media (max-width: 480px) {
  :root {
    --section-margin: 1rem;
    --section-pad: 1.5rem;
    --section-gap: 1.5rem;
  }




  .section__layout--2col {
    column-count: 1;
  }



}
