/*
  Stylesheet for the Zingin Slaven art‑therapy landing page.

  This file contains the layout, typography and colour scheme
  inspired by the existing "Singen ist Leben" website. The design
  uses a light background with a purple accent colour and crisp
  typography for an inviting look and feel. Responsive flexbox
  layouts ensure the site adapts gracefully to smaller screens.
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --primary-color: #6f42c1;
  --secondary-color: #ffffff;
  --background-color: #f8f4fc;
  --dark-color: #2a2a2a;
  --light-gray: #f5f0fa;
}

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--dark-color);
  background-color: var(--secondary-color);
  line-height: 1.6;
}

/* Header */
header {
  background: var(--secondary-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.lang-switch {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: var(--dark-color);
  padding: 0;
}

.lang-btn.active {
  color: var(--primary-color);
}

/* Sections */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero section */
.hero {
  position: relative;
  text-align: center;
  color: var(--secondary-color);
  padding: 160px 20px;
  background: url('images/hero.jpg') center/cover no-repeat;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 60px 20px;
  border-radius: 8px;
  display: inline-block;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  margin: 0 0 20px;
  color: #fff;
}

.hero p {
  font-size: 20px;
  margin: 0 0 30px;
  color: #f5f5f5;
}

.btn-primary,
.btn-secondary {
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin: 5px;
  border: 2px solid var(--primary-color);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary-color);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* General section headings */
h2 {
  font-size: 36px;
  margin-bottom: 20px;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary-color);
}

h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-family: 'Playfair Display', Georgia, serif;
}

/* Content sections */
.content-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.content-section img {
  flex: 1 1 45%;
  max-width: 500px;
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.content-section .text {
  flex: 1 1 50%;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullets li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.bullets li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 20px;
  line-height: 1;
  top: 0;
}

/* Team section */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.team-member {
  flex: 1 1 45%;
  text-align: center;
}

.team-member img {
  width: 100%;
  max-width: 250px;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* Form section */
.form-section {
  background: var(--background-color);
  padding: 60px 20px;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-submit {
  text-align: center;
}

form button {
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}

form button:hover {
  background: #513089;
}

/* Footer */
footer {
  background: var(--light-gray);
  padding: 40px 20px;
  text-align: center;
}

/* When the contact form is placed inside a content-section, remove fixed width */
.content-section .form-section {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Contact details in the contact section */
.contact-details {
  margin-bottom: 30px;
}

.contact-details p {
  margin: 10px 0;
  font-size: 16px;
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  margin-right: 15px;
  display: inline-block;
}

.contact-details a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-text {
  font-size: 14px;
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 18px;
  }
  .content-section {
    flex-direction: column;
  }
  .team-member {
    flex: 1 1 100%;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* якоря не заезжают под фикс/стикки шапку */
section { scroll-margin-top: 90px; }

/* --- Mobile menu base --- */
.menu-toggle {
  display: none;
  background: var(--primary-color);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
}

#site-nav { display: block; }

/* --- Mobile layout --- */
@media (max-width: 768px) {
  .nav-container {
    align-items: center;
    gap: 10px;
  }
  .logo {
    font-size: 20px;
    line-height: 1.2;
  }

  .menu-toggle {
    display: inline-block;
    order: 2;
  }
  .lang-switch {
    order: 3;
    display: flex;
    gap: 8px;
  }
  .lang-btn { padding: 4px 6px; }

  /* скрываем меню по умолчанию, делаем выпадающим блоком */
  #site-nav {
    order: 4;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    display: none;
    margin-top: 8px;
  }
  #site-nav.open { display: block; }

  #site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px;
  }
  #site-nav ul li a {
    display: block;
    padding: 12px 10px;
    font-size: 16px;
    border-radius: 6px;
  }
  #site-nav ul li a:active,
  #site-nav ul li a:hover {
    background: var(--light-gray);
  }

  /* чтобы контент не прилипал к шапке */
  header { position: sticky; top: 0; z-index: 1000; background: #fff; }
}
