/* ============================================================
   MAIN.CSS
   1.  Scroll-fade animace
   2.  Sdílené utility (.modern-badge, .accent-text, .shape-blob)
   3.  About sekce
   4.  Target groups
   5.  Course sekce
   6.  Teacher sekce
   7.  Banner – základ
   8.  Banner – Modern (shared blob engine)
   9.  Banner – Interest
   10. Banner – Contact
   11. Photographic
   ============================================================ */


/* ── 1. Scroll-fade ── */
main .scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition:
    transform 0.8s ease,
    opacity   0.8s ease;
}

main .scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── 2. Sdílené utility ── */

/* Badge – sdílený napříč sekcemi */
.modern-badge {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

/* Accent text (zlatý blok v nadpisu) */
.accent-text {
  color: var(--accent);
  display: block;
}

/* Location tag */
.location-tag {
  margin-top: 1.5rem;
  font-style: italic;
  opacity: 0.6;
  font-family: "Playfair Display", serif;
}

/* Blob – sdílená animace */
@keyframes blob-float {
  from { transform: rotate(0deg) scale(1); }
  to   { transform: rotate(10deg) scale(1.05); }
}

.shape-blob {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: var(--accent);
  opacity: 0.1;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: 1;
  animation: blob-float 10s infinite alternate;
}

/* .frame z-index – obsah nad dekorativními pseudo-elementy */
.frame {
  position: relative;
  z-index: 10;
}


/* ── 3. About ── */
.modern-about.deep-mode {
  background-color: #1a2a2d;
  color: #ffffff;
  padding-block: clamp(5rem, 8vw, 10rem);
  position: relative;
  overflow: hidden;
}

/* Dekorativní vlna na pozadí */
.modern-about.deep-mode::before {
  content: "";
  position: absolute;
  bottom: -10%;
  left: 0;
  width: 100%;
  height: 60%;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff" fill-opacity="0.04" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  z-index: 1;
}

.modern-about.deep-mode h1 {
  color: #ffffff;
  font-size: clamp(2.5rem, 1.5rem + 10vw, 5.2rem);
  line-height: 1.1;
}

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 30px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.glass-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Focus box */
.focus-box {
  background: rgba(255, 255, 255, 0.07);
  padding: 1.5rem;
  border-radius: 0 15px 15px 0;
  margin-block: 2rem;
  border-left: 3px solid var(--accent);
}

.focus-box p {
  margin-bottom: 0;
  font-weight: 500;
  color: #ffffff;
}

/* Primary button (tmavé sekce) */
.primary-btn {
  background-color: var(--accent);
  color: #1a2a2d;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(255, 179, 0, 0.3);
}

@media (min-width: 992px) {
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 10rem;
    align-items: center;
  }
}


/* ── 4. Target groups ── */
.target-groups {
  background-color: var(--primary) !important;
  color: var(--light);
  position: relative;
  overflow: hidden;
}

.target-groups::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.target-groups .frame {
  position: relative;
  z-index: 1;
}

.target-groups h1 span {
  color: var(--accent);
}

.target-groups p {
  opacity: 0.9;
  color: var(--light);
}

.groups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

.group-card {
  background-color: var(--light);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.group-card:hover {
  transform: translateY(-12px);
}

.group-number {
  background-color: var(--primary);
  color: var(--light);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(105, 148, 206, 0.3);
}

.group-content h3 {
  color: var(--dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.group-content h3::after {
  margin-inline: auto;
  background: var(--primary);
}

.group-content p {
  color: var(--dark);
  font-size: 1.1rem;
  opacity: 0.8;
}

.group-content strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

@media (min-width: 992px) {
  .groups-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}


/* ── 5. Course ── */
.modern-course {
  background-color: #1a2a2d;
  color: #ffffff;
  padding-block: clamp(5rem, 8vw, 10rem);
  position: relative;
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

/* Báseň */
.poem-wrapper {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--accent);
}

.poem-content .poem-line {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}

.poem-answer {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.poem-origin {
  display: block;
  margin-top: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

/* Video */
.video-card {
  position: relative;
  border-radius: 30px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.video-wrapper:hover .video-placeholder {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 42, 45, 0.3);
  transition: background 0.3s ease;
}

.play-icon {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a2a2d;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-icon svg {
  width: 40px;
  height: 40px;
  margin-left: 5px;
}

.video-wrapper:hover .play-icon {
  transform: scale(1.15);
}

.play-button-ripple {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.5;
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (min-width: 992px) {
  .course-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 10vw;
  }
}


/* ── 6. Teacher ── */
.teacher-section {
  padding-block: clamp(5rem, 8vw, 10rem);
  background-color: #ffffff;
  overflow: hidden;
}

.teacher-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.teacher-image-zone {
  position: relative;
  display: flex;
  justify-content: center;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.main-photo {
  width: 100%;
  height: auto;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  filter: grayscale(10%) contrast(1.05);
}

.teacher-text-zone h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin-top: 1rem;
  color: #1a2a2d;
}

.teacher-text-zone h2 span {
  display: block;
  font-weight: 300;
  color: #555;
}

.bio-content {
  margin-block: 2rem;
}

.lead-text {
  font-size: 1.2rem;
  color: #1a2a2d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Secondary button – sdílený (teacher + bannery) */
.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2rem;
  border: 2px solid #1a2a2d;
  border-radius: 50px;
  color: #1a2a2d;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition:
    background-color 0.3s ease,
    color            0.3s ease;
}

.secondary-btn:hover {
  background-color: #1a2a2d;
  color: #ffffff;
  box-shadow: none;
  transform: none;
}

@media (min-width: 992px) {
  .teacher-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6rem;
  }

  .teacher-text-zone {
    padding-right: 4rem;
  }
}


/* ── 7. Banner – základ ── */
.banner {
  background-color: var(--light);
  color: var(--dark);
  width: 100%;
}

.banner.color {
  background-color: var(--bg-accent);
}

.banner .banner-container h2 {
  font-size: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.banner-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .banner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .part-1 {
    grid-area: part-1;
    justify-self: start;
  }

  .part-2 {
    grid-area: part-2;
    justify-self: end;
  }

  .banner .banner-container {
    grid-template-areas: "part-1 part-2";
  }

  .banner.reverse .banner-container {
    grid-template-areas: "part-2 part-1";
  }

  .banner.reverse .part-1 {
    justify-self: end;
  }

  .banner.reverse .part-2 {
    justify-self: start;
  }
}

/* Obrázek v banneru */
.banner .banner-container .img-container {
  width: clamp(150px, 70vw, 400px);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
}

.banner .banner-container .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 500px) {
  .banner .banner-container .img-container:not(.contact-logo) {
    width: min(100%, 400px);
  }
}


/* ── 8. Banner – Modern (blob engine) ── */
.modern-banner .part-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modern-banner .image-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
}

/* Blob – výchozí modrý tón */
.modern-banner .shape-blob {
  background: var(--primary);
  opacity: 0.1;
}

/* Blob – teplý tón pro .banner.color (#efe3da) */
.modern-banner .color-blob {
  background: #c47a3a;
  opacity: 0.13;
}

.modern-banner .main-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Badge – teplé sekce */
.modern-banner .color-badge {
  color: #8b4a1e;
}

/* Button – teplé pozadí */
.color-btn {
  border-color: #2a1e17 !important;
  color: #2a1e17 !important;
}

.color-btn:hover {
  background-color: #2a1e17 !important;
  color: #fff !important;
}


/* ── 9. Banner – Interest ── */
.interest-section {
  background: var(--primary);
  color: #ffffff;
}

.interest-section .banner-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

@media (max-width: 991px) {
  .interest-section .banner-container {
    grid-template-columns: 1fr;
  }
}

.interest-section h2 {
  color: #ffffff;
  margin-top: 0.5rem;
}

.interest-accent {
  color: var(--accent) !important;
}

.interest-badge {
  color: rgba(255, 255, 255, 0.65) !important;
  letter-spacing: 4px;
}

.interest-focus-box {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin-block: 1.5rem;
}

.interest-focus-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 400;
  max-width: none;
  margin: 0;
}

.interest-mail {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: text-decoration-color 0.3s ease;
}

.interest-mail:hover {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.interest-logo-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.interest-logo {
  width: clamp(200px, 40%, 300px);
  opacity: 0.9;
}

.interest-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  font-style: italic;
  max-width: none;
}


/* ── 10. Banner – Contact ── */
.banner.contact .banner-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 992px) {
  .banner.contact .banner-container {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .contact .part-1 {
    padding-right: 2rem;
  }
}

/* Kartičky */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-style: normal;
  margin-top: 2rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(105, 148, 206, 0.15);
  background: #fff;
  transition:
    border-color 0.25s ease,
    box-shadow   0.25s ease;
}

.contact-card:hover {
  border-color: rgba(105, 148, 206, 0.4);
  box-shadow: 0 4px 16px rgba(105, 148, 206, 0.1);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e9f0fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-card-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
}

.contact-card-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  word-break: break-word;
}

.contact-card-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color        0.25s,
    border-color 0.25s;
}

.contact-card-value a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.contact-card-sub {
  font-size: 0.78rem;
  color: #999;
  margin-top: 1px;
}

/* Mapa */
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(105, 148, 206, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

.contact-map-header {
  padding: 0.7rem 1rem;
  background: #f5f8fe;
  border-bottom: 1px solid rgba(105, 148, 206, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.contact-map-place {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--dark);
}

.contact-map-pill {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: #e9f0fa;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

.contact-map iframe {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
}

.contact-map-footer {
  padding: 0.7rem 1rem;
  background: #f5f8fe;
  border-top: 1px solid rgba(105, 148, 206, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #999;
}

.contact-map-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration 0.2s;
}

.contact-map-footer a:hover {
  text-decoration: underline;
}


/* ── 11. Photographic ── */
.photographic {
  height: 70vh;
  width: 100%;
}

.photographic-bg {
  width: 100%;
  height: 100%;
  background-image: url("../assets/img/jihoceske-staveni-kremze.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
