/* ============================================
   MALGORZATAJARMULA.PL — Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #f7f3ee;
  color: #2a2a2a;
  font-size: 15px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: #1a1a1a;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
  display: block;
}

/* --- Layout --- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
section { padding: 80px 0; }
.section-alt { background: #f2ede7; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e8e0d8;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-logo img { height: 52px; width: auto; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #444;
  transition: color 0.2s;
}

.navbar-links a:hover { color: #2e6da4; }

.navbar-links .has-dropdown { position: relative; }

.navbar-links .has-dropdown > a::after {
  content: " ↓";
  font-size: 10px;
  opacity: 0.6;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  padding: 12px 0 8px;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 100;
  margin-top: 0;
}

.has-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #444;
  transition: background 0.15s;
}

.dropdown-menu a:hover { background: #f7f3ee; color: #2e6da4; }

.navbar-cta {
  background: #2e6da4;
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.navbar-cta:hover { background: #235a8e !important; color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #2a2a2a; border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: #f7f3ee;
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 600px;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px 80px 60px;
}

.hero-h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 68px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.0;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero-h1 em {
  font-weight: 300;
  font-style: italic;
  color: #3a3a3a;
}

.hero-lead {
  font-size: 15px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-lead strong { color: #1a1a1a; }

.btn-primary {
  display: inline-block;
  background: #2e6da4;
  color: #fff;
  padding: 15px 32px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.1s;
  align-self: flex-start;
}

.btn-primary:hover { background: #235a8e; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  border: 2px solid #2e6da4;
  color: #2e6da4;
  padding: 13px 30px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-secondary:hover { background: #2e6da4; color: #fff; }

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scaleX(-1);
  mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.3) 15%, black 40%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.3) 15%, black 40%);
}

/* ============================================
   O MAŁGORZACIE
   ============================================ */
.omnie-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
}

.omnie-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.omnie-image img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.omnie-content .section-label { color: #2e6da4; }

.omnie-content h2 {
  font-size: 52px;
  margin-bottom: 6px;
}

.omnie-content .subtitle {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.omnie-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.omnie-content .btn-primary { margin-top: 8px; }

/* ============================================
   DLACZEGO MY
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.why-card {
  background: #fff;
  border-radius: 6px;
  padding: 36px 32px;
  text-align: center;
  border-bottom: 3px solid #2e6da4;
}

.why-icon {
  margin-bottom: 20px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon img {
  height: 140px;
  width: auto;
  object-fit: contain;
}

.why-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.why-card p { font-size: 14px; color: #666; line-height: 1.6; }

.section-heading {
  font-size: 44px;
  margin-bottom: 16px;
}

.section-subheading {
  font-size: 15px;
  color: #666;
  max-width: 560px;
}

/* ============================================
   USŁUGI
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 6px;
  padding: 28px 24px;
  border-left: 4px solid #2e6da4;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-link {
  font-size: 12px;
  color: #2e6da4;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================
   Z CZYM POMAGAMY
   ============================================ */
.pomagamy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 48px;
}

.pomagamy-col h3 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8e0d8;
}

.pomagamy-col ul { list-style: none; }

.pomagamy-col ul li {
  font-size: 14px;
  color: #555;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid #ede8e2;
  position: relative;
}

.pomagamy-col ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #2e6da4;
  font-size: 12px;
}

/* ============================================
   KAFELKI ZABURZEŃ
   ============================================ */
.zaburzenia-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.zaburzenie-card {
  background: #fff;
  border-radius: 6px;
  padding: 24px 22px;
  border: 1px solid #e8e0d8;
  transition: box-shadow 0.2s;
}

.zaburzenie-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); }

.zaburzenie-card h3 { font-size: 18px; margin-bottom: 8px; }

.zaburzenie-card p { font-size: 13px; color: #777; line-height: 1.55; margin-bottom: 12px; }

.zaburzenie-link {
  font-size: 12px;
  color: #2e6da4;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ============================================
   PSYCHOTERAPEUCI
   ============================================ */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  margin-top: 36px;
}

.filter-btn {
  padding: 8px 18px;
  border: 1.5px solid #c8bfb5;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #2e6da4;
  border-color: #2e6da4;
  color: #fff;
}

.terapeuci-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.terapeuta-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e8e0d8;
  transition: box-shadow 0.2s;
}

.terapeuta-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.terapeuta-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

.terapeuta-card .card-placeholder {
  width: 100%;
  height: 220px;
  background: #e8e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
}

.terapeuta-body {
  padding: 20px;
  text-align: center;
}

.terapeuta-body .spec-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2e6da4;
  margin-bottom: 6px;
  display: block;
}

.terapeuta-body h3 { font-size: 20px; margin-bottom: 4px; }

.terapeuta-body .spec-details {
  font-size: 12px;
  color: #888;
  margin-bottom: 16px;
}

.terapeuta-body .btn-wybierz {
  display: inline-block;
  background: #2e6da4;
  color: #fff;
  padding: 9px 24px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.terapeuta-body .btn-wybierz:hover { background: #235a8e; }

.terapeuta-card.hidden { display: none; }

/* ============================================
   METODA TFP
   ============================================ */
.metoda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.metoda-image img {
  width: 100%;
  border-radius: 6px;
}

.metoda-content h2 { font-size: 44px; margin-bottom: 20px; }

.metoda-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.metoda-content .btn-secondary { margin-top: 8px; }

/* ============================================
   GABINET DO WYNAJĘCIA
   ============================================ */
.gabinet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.gabinet-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.gabinet-content h2 { font-size: 40px; margin-bottom: 16px; }

.gabinet-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: #2e6da4;
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
}

.btn-white {
  display: inline-block;
  background: #fff;
  color: #2e6da4;
  padding: 16px 40px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1e1e1e;
  color: #aaa;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #333;
}

.footer-brand img { height: 48px; margin-bottom: 20px; filter: brightness(0) invert(1) opacity(0.7); }

.footer-brand p { font-size: 13px; line-height: 1.7; color: #888; }

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 13px;
  color: #888;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: #fff; }

.footer-col .contact-item {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.footer-col .contact-item strong { color: #ccc; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { font-size: 12px; color: #555; }

.footer-bottom a { font-size: 12px; color: #555; transition: color 0.2s; }
.footer-bottom a:hover { color: #aaa; }

.fb-link { display: inline-flex; align-items: center; justify-content: center; color: #555; transition: color 0.2s; }
.fb-link:hover { color: #2e6da4; }
.navbar-fb { display: inline-flex; align-items: center; color: #2e6da4; margin-right: 8px; transition: color 0.2s; }
.navbar-fb svg { width: 22px; height: 22px; }
.navbar-fb:hover { color: #1a5a8f; }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1e1e1e;
  color: #ddd;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 9999;
  font-size: 13px;
}

.cookie-banner p { max-width: 700px; line-height: 1.6; }
.cookie-banner a { color: #2e6da4; }

.cookie-btn {
  background: #2e6da4;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================
   PAGE HERO (subpages)
   ============================================ */
.page-hero {
  background: #f2ede7;
  padding: 60px 0;
  border-bottom: 1px solid #e8e0d8;
}
.page-hero .section-label { color: #2e6da4; }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 600; color: #1a1a1a; margin-bottom: 16px; }
.page-hero p { font-size: 16px; color: #555; max-width: 600px; line-height: 1.7; margin-bottom: 28px; }

/* ============================================
   FAQ
   ============================================ */
.faq-item { border-bottom: 1px solid #e8e0d8; }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 22px; font-family: 'Cormorant Garamond', serif; font-weight: 600; color: #2c2c2c; }
.faq-question::after { content: "+"; font-size: 24px; color: #2e6da4; flex-shrink: 0; }
details[open] .faq-question::after { content: "−"; }
.faq-answer { padding: 0 0 20px; font-size: 15px; color: #555; line-height: 1.7; }

/* ============================================
   TERAPEUTA CARD — toggle contact
   ============================================ */
.terapeuta-contact {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: #2e6da4;
  font-weight: 600;
}
.terapeuta-contact.visible { display: block; }

/* ============================================
   GABINETY
   ============================================ */
.gabinety-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.gabinety-feature {
  background: #fff;
  border-radius: 6px;
  padding: 28px 24px;
  border-top: 3px solid #2e6da4;
}
.gabinety-feature h3 { font-size: 20px; margin-bottom: 10px; }
.gabinety-feature p { font-size: 14px; color: #666; line-height: 1.6; }

/* ============================================
   KONTAKT
   ============================================ */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.kontakt-info h3 { font-size: 26px; margin-bottom: 16px; }
.kontakt-info p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 12px; }
.kontakt-info .contact-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; color: #444; }
.kontakt-info .contact-row strong { color: #1a1a1a; }
.kontakt-map iframe { width: 100%; height: 300px; border-radius: 6px; border: 0; }
.kontakt-map h3 { font-size: 22px; margin-bottom: 12px; }
.kontakt-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }

/* ============================================
   OSRODEK
   ============================================ */
.osrodek-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.osrodek-content h2 { font-size: 44px; margin-bottom: 20px; }
.osrodek-content p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 16px; }
.osrodek-image img { width: 100%; border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

.wartosci-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.wartosc-card {
  background: #fff;
  border-radius: 6px;
  padding: 28px 24px;
  border-left: 4px solid #2e6da4;
}
.wartosc-card h3 { font-size: 20px; margin-bottom: 10px; }
.wartosc-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* ============================================
   PSYCHOTERAPEUCI PAGE
   ============================================ */
.psychoterapeuci-intro {
  max-width: 680px;
  margin-bottom: 16px;
}
.psychoterapeuci-intro p { font-size: 15px; color: #555; line-height: 1.8; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .terapeuci-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar-links { display: none; flex-direction: column; }
  .navbar-links.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; background: #fff; padding: 20px 32px; border-bottom: 1px solid #e8e0d8; z-index: 999; }
  .hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-content { padding: 60px 32px; }
  .hero-h1 { font-size: 44px; }
  .omnie-grid, .metoda-grid, .gabinet-grid, .pomagamy-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .zaburzenia-grid { grid-template-columns: repeat(2, 1fr); }
  .terapeuci-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner h2 { font-size: 36px; }
  .section-heading { font-size: 36px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
