/* ===============================
   RESET I PODSTAWOWE STYLE
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ===============================
   NAGŁÓWEK I MENU
=============================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  overflow: visible;
}

.header-container {
  background: #0E1A33;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid rgba(195, 163, 107, 0.2);
}

/* LOGO */
.header-logo h1 {
  margin: 0;
  line-height: 1.3;
}

.header-logo .brand-name {
  font-family: "Dancing Script", cursive;
  font-size: 2.4rem;
  font-weight: 400;
  color: #C9A668;
  letter-spacing: 2px;
  display: block;
  line-height: 1.1;
}

.header-logo .tagline {
  font-family: "Quicksand", sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: #E0C58F;
  letter-spacing: 1.5px;
  text-transform: capitalize;
  display: block;
  margin-top: -0.2rem;
}

/* MENU */
nav ul {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  list-style: none;
}

nav ul li {
  position: relative; /* dla dropdowna */
}

nav ul li a {
  font-family: "Quicksand", sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #EADDC2;
  text-decoration: none;
  padding: 0.3rem 0.2rem;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  color: #d8b97a;
}

/* DROPDOWN */
.dropdown-content {
  display: none;
  position: absolute;
  background: #3c507d;
  border: 1px solid rgba(195, 163, 107, 0.3);
  border-radius: 6px;
  min-width: 200px;
  top: 100%;
  left: 0;
  z-index: 2001;
  padding: 0.5rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.dropdown-content a {
  display: block;
  padding: 0.6rem 1rem;
  color: #C2AD90;
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown-content a:hover {
  background: #C3A36B;
  color: #0b1324;
}

li:hover .dropdown-content {
  display: block;
}

/* LINKI JĘZYKOWE */
.language-switch {
  text-align: center;
  background: #EEE6DD;
  padding: 0.5rem;
}

.language-switch a {
  margin: 0 1rem;
  text-decoration: none;
  color: #5D4429;
  font-weight: bold;
}

.language-switch a:hover {
  text-decoration: underline;
}

/* ===============================
   SEKCJE OGÓLNE
=============================== */
section {
  padding: 4rem 2rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: justify;
}

section h1 {
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

section p {
  max-width: 800px;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
}

section img {
  max-width: 400px;
  margin: 1rem 0;
  border-radius: 10px;
}

/* ===============================
   SEKCJA HOME
=============================== */
.home {
  position: relative;
  display: flex;
  align-items: center;
  padding: 50px;
  background: url('home-image2.jpg') no-repeat right center;
  background-size: cover;
}

.home .logo {
  display: block;
  max-width: 400px;
  height: auto;
  z-index: 1;
}

@media (max-width: 768px) {
  .home {
    flex-direction: column;
    padding: 30px;
    background-position: center;
  }
  .home .logo {
    max-width: 80px;
    margin-bottom: 20px;
  }
}

/* ===============================
   SEKCJA O MNIE
=============================== */
.about-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.about-text p {
  text-align: justify;
}

.about-photo img {
  max-width: 300px;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.about-text {
  flex: 1;
  text-align: left;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
}

/* ===============================
   SEKCJA TERAPIE
=============================== */
.therapy-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: nowrap;
}

.therapy-text {
  flex: 2;
}

.therapy-container img {
  flex: 1;
  max-width: 300px;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.therapy-text p + p {
  margin-top: 1rem;
}

.quote-box {
  border-left: 4px solid #BB6830;
  background-color: #fff3e6;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  font-style: italic;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quote-box footer {
  margin-top: 0.8rem;
  text-align: right;
  font-weight: bold;
  color: #D9CBC2;
}

@media (max-width: 768px) {
  .therapy-container {
    flex-direction: column;
  }
  .therapy-container img {
    order: -1;
    margin-bottom: 1rem;
  }
}

/* ===============================
   SEKCJA CENNIK (Z PARALLAX)
=============================== */
#pricing {
  position: relative;
  padding: 4rem 2rem;
  color: #3C507D;
  text-align: center;
  overflow: hidden;
}

.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.pricing-card {
  background: #3C507D;
  color: #E0C58F;
  padding: 2rem;
  border-radius: 12px;
  min-width: 220px;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.pricing-card .card-header {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.pricing-card .card-price {
  font-size: 2rem;
  font-weight: bold;
  margin-top: auto;
}

@media (max-width: 768px) {
  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }
  .pricing-card {
    width: 100%;
    max-width: 320px;
  }
}

@media (min-width: 769px) {
  #pricing::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background2.jpg') center/cover no-repeat;
    z-index: -2;
  }
  #pricing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(224, 197, 143, 0.7);
    z-index: -1;
  }
}

@media (max-width: 768px) {
  #pricing {
    background: url('background2.jpg') center/cover no-repeat;
  }
  #pricing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(224, 197, 143, 0.7);
    z-index: -1;
  }
}

/* ===============================
   SEKCJA BLOG (Z PARALLAX)
=============================== */
#blog {
  position: relative;
  padding: 4rem 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 769px) {
  #blog::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('background1.jpg') center/cover no-repeat;
    z-index: -1;
  }
}

@media (max-width: 768px) {
  #blog {
    background: url('background1.jpg') center/cover no-repeat;
  }
}

.blog-post {
  max-width: 800px;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post img {
  max-width: 40%;
  float: right;
  margin: 0 0 1rem 1rem;
  border-radius: 8px;
}

/* ===============================
   SEKCJA KONTAKT
=============================== */
#contact {
  padding: 4rem 2rem;
  background: #f8f8f8;
  color: #3C507D;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-left,
.contact-right {
  flex: 1;
  min-width: 280px;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
}

/* ===============================
   SEKCJA TERMS
=============================== */
#terms {
  background: #d0c4b7;
  padding: 4rem 2rem;
  color: #333;
  text-align: left;
}

#terms .terms-content {
  max-width: 900px;
  margin: 0 auto;
}

#terms p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

#terms h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #3C507D;
}

#terms .contract-list {
  list-style: disc;
  padding-left: 1.5rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

#terms .contract-list li {
  margin-bottom: 0.8rem;
}

/* ===============================
   STOPKA
=============================== */
footer {
  background: #112250;
  color: #F5F0E9;
  text-align: center;
  padding: 1rem;
}
/* ===== DODATKOWE TŁA DLA SEKCJI ===== */
#about {
  background: #f4f4f4; /* jasne tło sekcji "O mnie" */
}

#individual {
  background: #e9e1d9; /* psychoterapia indywidualna */
}

#couples {
  background: #ddd; /* terapia par */
}

#online {
  background: #d0c4b7; /* terapia online */
}

/* Jeśli chcesz użyć obrazu zamiast koloru:
#about { background: url('about-bg.jpg') center/cover no-repeat; }
*/

/* ===== NAPRAWA STYLU SEKCJI KONTAKT ===== */
/* ikony w kontaktach (lewe kolumny) */
#contact i,
.contact-left i,
.contact-right i {
  color: #BB6830;   /* ciepły akcent (jak wcześniej) */
  margin-right: 8px;
  width: 20px;
  text-align: left;
  font-size: 1.05rem; /* upewnia się, że ikony nie są za małe */
  vertical-align: middle;
}

/* link w kontakcie - wyraźny, ale subtelny */
#contact a {
  color: #3C507D; /* ciemnoniebieski, spójny z resztą */
  text-decoration: none;
  font-weight: 500;
}

#contact a:hover {
  text-decoration: underline;
  color: #2f4260;
}

/* poprawa kontrastu akapitów w contact-left/right */
#contact p {
  color: #333;
  line-height: 1.5;
}

/* jeśli ikony w socialach też były czarne — przywróć kolor */
.contact-social i,
.contact-social a i {
  color: #3C507D;
  margin-right: 6px;
}

/* Dodatkowe: jeśli font-awesome ładuje się po fakcie i kolory nie działają,
   wymuszamy fill dla wersji SVG (nie zawsze potrzebne): */
#contact i.fa,
#contact i.fas,
#contact i.fab {
  color: #BB6830;
}

/* ===== MAŁE DOPRACOWANIA DOT. RESPONSYWNOŚCI ===== */
/* upewnij się, że ikony i tekst nie nachodzą na siebie na małych ekranach */
@media (max-width: 480px) {
  #contact i {
    margin-right: 10px;
    font-size: 1.1rem;
  }
  .contact-left,
  .contact-right {
    min-width: 0;
  }
}
section {
  scroll-margin-top: 120px; /* dopasuj wartość do wysokości nagłówka */
}
html {
  scroll-behavior: smooth;
}

/* ===============================
   MENU MOBILNE — FINALNA, KOMPAKTOWA WERSJA
=============================== */
@media (max-width: 768px) {
  header {
    position: sticky;
    top: 0;
    z-index: 3000;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(14, 26, 51, 0.97);
    border-radius: 10px 10px 10px 10px; /* zaokrąglenie każdego roga*/
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    width: 75%;              /* lekko odsunięte od prawej */
    max-width: 280px;
    padding: 0.5rem 0;
    text-align: left;        /* wyrównanie do lewej */
    padding-left: 1rem;      /* margines z lewej */
    margin-right: 1rem;      /* odsunięcie całego menu od prawej krawędzi */
    backdrop-filter: blur(6px);
  }

  nav ul.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav ul li a {
    display: block;
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
    color: #EADDC2;
    text-decoration: none;
  }

  nav ul li a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  /* 🔹 DROPDOWN MENU */
  .dropdown-content {
    position: static;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: none;
    padding: 0.3rem 0;
    display: none;
    text-align: left;         /* wyrównanie tekstu dropdownu */
    padding-left: 1rem;       /* odsunięcie tekstu */
    margin-left: 0.5rem;      /* lekkie przesunięcie dropdownu w lewo */
    width: calc(100% - 1rem); /* upewnia się, że dropdown nie wychodzi poza ekran */
  }

  nav ul li:hover .dropdown-content {
    display: flex;
    flex-direction: column;
  }

  .dropdown-content a {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    color: #EADDC2;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: #EADDC2;
    cursor: pointer;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===============================
  dopięcie zdjęcia home na mobilach
=============================== */
@media (max-width: 768px) {
  .home {
    background-position: left center;
  }
}
/* Sticky header */
header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: rgba(14, 26, 51, 0.95);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.sticky {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}