/* ==========================================================================
   Moment – Centrum Psychoterapii — style.css
   Mobile-first, bez zewnętrznych zależności, system font stack.
   ========================================================================== */

:root {
  /* Paleta wyprowadzona ze zdjęcia motyla w hero: ciepły kremowy beż, głęboki brąz, złoty akcent */
  --color-primary: #6b5540;
  --color-primary-dark: #3d2f21;
  --color-primary-light: #f1e6d4;
  --color-accent: #96692b;
  --color-accent-dark: #77521f;
  --color-text: #2b2018;
  --color-text-muted: #6b5f4f;
  --color-bg: #fbf5ec;
  --color-bg-alt: #f3e8d7;
  --color-border: #e6d9c3;
  --color-white: #ffffff;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(58, 45, 30, 0.10);
  --shadow-lg: 0 12px 40px rgba(58, 45, 30, 0.16);
  --container-w: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.3em; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  color: var(--color-primary-dark);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 56px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 720px; margin: 0 0 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--color-accent-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.5em;
}
.lead { font-size: 1.1rem; line-height: 1.6; color: var(--color-text-muted); }
.hero .lead { max-width: 46ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--color-accent); color: var(--color-white); }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary-dark); }
.btn-outline:hover { background: var(--color-primary-light); transform: translateY(-1px); }
.btn-light { background: var(--color-white); color: var(--color-primary-dark); }
.btn-light:hover { background: var(--color-primary-light); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary-dark);
  color: #fff; padding: 12px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 252, 250, 0.97);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}
.site-header .container {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--color-primary-dark); }
.brand img { height: 46px; width: auto; }
@media (min-width: 960px) {
  .brand img { height: 58px; }
}
.brand:hover { text-decoration: none; }

.main-nav { display: none; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav a.nav-link {
  display: block; padding: 10px 14px; border-radius: 999px; color: var(--color-text); font-weight: 500; font-size: 0.96rem;
}
.main-nav a.nav-link:hover { background: var(--color-primary-light); text-decoration: none; }
.has-dropdown > .nav-link::after { content: " ▾"; font-size: 0.7em; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 280px;
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 6px 0 0;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 0.93rem; color: var(--color-text); }
.dropdown a:hover { background: var(--color-primary-light); text-decoration: none; }
.dropdown .dropdown-cat-link { font-weight: 700; color: var(--color-primary-dark); border-bottom: 1px solid var(--color-border); margin-bottom: 4px; padding-bottom: 10px; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-phone { display: none; font-weight: 600; color: var(--color-primary-dark); white-space: nowrap; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--color-border);
  background: var(--color-white); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; pointer-events: none; }

/* Mobile nav panel */
.mobile-nav {
  position: fixed; top: var(--header-h); right: 0; bottom: 0; left: 0; background: var(--color-bg);
  overflow-y: auto; padding: 20px; display: none; z-index: 99;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--color-border); }
.mobile-nav a { display: block; padding: 14px 4px; font-size: 1.05rem; color: var(--color-text); font-weight: 500; }
.mobile-nav details summary { padding: 14px 4px; font-size: 1.05rem; font-weight: 500; cursor: pointer; list-style: none; }
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details summary::after { content: "+"; float: right; font-weight: 700; }
.mobile-nav details[open] summary::after { content: "–"; }
.mobile-nav details > ul { display: none; padding-left: 12px; }
.mobile-nav details[open] > ul { display: block; }
.mobile-nav .mobile-cta { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
body.nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .header-phone { display: inline-block; }
}

/* Hero */
.hero {
  padding: 52px 0 60px;
  background: linear-gradient(160deg, var(--color-primary-light) 0%, var(--color-bg) 70%);
}
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-media { display: flex; justify-content: center; }
.hero-media img.hero-quote-img {
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 340px; height: auto;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 14px; font-size: 0.86rem; font-weight: 600; color: var(--color-primary-dark);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* Page header (inner pages) */
.page-header { padding: 40px 0 32px; background: var(--color-primary-light); }
.page-header h1 { margin-bottom: 8px; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.86rem; color: var(--color-text-muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs .sep { margin: 0 6px; }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); height: 100%; overflow-wrap: break-word;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; }
.card-link:hover { text-decoration: none; transform: translateY(-3px); transition: transform 0.15s ease; }
.card-link .card { transition: box-shadow 0.15s ease; }
.card-link:hover .card { box-shadow: var(--shadow-lg); border-color: var(--color-primary); }

.icon-circle {
  width: 52px; height: 52px; border-radius: 50%; background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--color-primary-dark);
}

/* Inline SVG icons (replace emoji) */
.icon-inline { display: inline-flex; vertical-align: -3px; margin-right: 7px; color: currentColor; }

/* Category nav pills (services index) */
.category-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.category-tabs a {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-white);
  font-weight: 600; font-size: 0.92rem; color: var(--color-text);
}
.category-tabs a.active, .category-tabs a:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); text-decoration: none; }

/* Team */
.team-card { text-align: center; }
.team-photo {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%;
  margin-bottom: 16px; border: 4px solid var(--color-white); box-shadow: var(--shadow);
}
.team-name { margin-bottom: 2px; font-size: 1.1rem; }
.team-title { color: var(--color-accent-dark); font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }
.team-card .team-toggle { margin: 0 auto; }
.team-bio-data { display: none; }

/* Terapeuta — popup z bio */
.modal-overlay {
  display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300; padding: 20px;
  align-items: center; justify-content: center; background: rgba(30, 23, 15, 0.6);
}
.modal-overlay.is-open { display: flex; }
.modal-box {
  position: relative; background: var(--color-white); border-radius: var(--radius);
  max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 36px 32px 32px;
  text-align: center; box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--color-border); background: var(--color-white); cursor: pointer; font-size: 1.05rem; color: var(--color-text-muted);
}
.modal-close:hover { background: var(--color-primary-light); }
.modal-photo {
  width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px;
  display: block; border: 4px solid var(--color-white); box-shadow: var(--shadow);
}
#modal-bio { text-align: left; margin-top: 16px; }
#modal-bio p { font-size: 0.97rem; color: var(--color-text-muted); }
body.modal-open { overflow: hidden; }
.location-pill {
  display: inline-block; background: var(--color-primary-light); color: var(--color-primary-dark);
  font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}

/* Location section headers on team page */
.location-block + .location-block { margin-top: 48px; }
.location-block-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.location-block-head .addr { color: var(--color-text-muted); }

/* FAQ */
.faq-item {
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--color-white);
}
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; padding-right: 40px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 14px; font-size: 1.3rem; color: var(--color-accent-dark);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { display: none; padding: 0 20px 18px; color: var(--color-text-muted); }
.faq-item[open] .faq-answer { display: block; }

/* For-who list */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-white); background: var(--color-primary);
  width: 20px; height: 20px; border-radius: 50%; font-size: 0.72rem; display: flex; align-items: center; justify-content: center;
}

/* Service detail layout */
.service-layout { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .service-layout { grid-template-columns: 2fr 1fr; align-items: start; }
  .service-aside { position: sticky; top: calc(var(--header-h) + 20px); }
}
.service-aside .card + .card { margin-top: 20px; }

/* Map */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--color-border); }
.map-canvas { height: 380px; width: 100%; background: var(--color-bg-alt); position: relative; }
.map-placeholder {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--color-text-muted); font-size: 0.9rem; padding: 0 20px; text-align: center; margin: 0; width: 100%;
}
.leaflet-popup-content { font-family: var(--font-body); }

/* Location NAP card */
.nap-card address { font-style: normal; }
.nap-list { list-style: none; padding: 0; margin: 0 0 0.5em; }
.nap-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--color-border); }
.nap-list li:last-child { border-bottom: none; }

.location-link-card { text-align: center; }
.location-link-arrow { display: inline-block; margin-top: 6px; font-size: 0.86rem; font-weight: 700; color: var(--color-accent-dark); }

/* Contact info panel (kontakt.html) */
.contact-info-panel {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px 28px;
}
.contact-info-grid { display: grid; grid-template-columns: 1fr; row-gap: 30px; }
.contact-info-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  color: var(--color-primary-dark); padding: 10px 14px; border-radius: var(--radius-sm);
  min-width: 0; transition: background 0.15s ease;
}
.contact-info-item:hover { background: var(--color-primary-light); text-decoration: none; }
.contact-info-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 4px; flex-shrink: 0;
}
.contact-info-label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted);
}
.contact-info-value {
  font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--color-primary-dark);
  max-width: 100%; overflow-wrap: break-word;
}
@media (min-width: 560px) {
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); column-gap: 16px; row-gap: 32px; }
  .contact-info-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Booking widget (NaKiedy) */
.booking-box {
  background: var(--color-primary-dark); color: var(--color-white); border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.booking-box h2, .booking-box p { color: var(--color-white); }
.booking-widget {
  background: var(--color-white); border-radius: var(--radius-sm); padding: 12px; margin: 24px auto;
  max-width: 800px; box-shadow: var(--shadow-lg); display: flex; justify-content: center; overflow: hidden;
}
.booking-widget iframe { display: block; max-width: 100%; }
.booking-box .btn-primary { background: var(--color-accent); }

/* Contact form */
.contact-form { display: grid; gap: 16px; }
.contact-form label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  font-family: var(--font-body); font-size: 0.98rem; background: var(--color-white);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px;
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery-grid > * { min-width: 0; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; }

/* CTA band */
.cta-band { background: var(--color-primary); color: var(--color-white); text-align: center; }
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255,255,255,0.9); }

/* Footer */
.site-footer { background: #2a2015; color: #e7dcc9; padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #cbb89b; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--font-heading); font-size: 1.3rem; color: #fff; margin-bottom: 10px; display: block; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,0.08); color: #cbb89b;
}
.footer-socials a:hover { background: var(--color-accent); color: #fff; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 9px; font-size: 0.93rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.82rem; color: #a4906f;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.tag { background: var(--color-bg-alt); border-radius: 999px; padding: 5px 12px; font-size: 0.78rem; font-weight: 600; color: var(--color-text-muted); }

/* Blog */
.blog-card { display: flex; flex-direction: column; }
.blog-card .tag { align-self: flex-start; margin-bottom: 12px; }
.blog-card h3 { font-size: 1.15rem; }
.blog-meta {
  margin-top: auto; padding-top: 14px; display: flex; gap: 12px; align-items: center;
  font-size: 0.82rem; color: var(--color-text-muted);
}
.blog-meta time { font-weight: 600; color: var(--color-text); }
.blog-meta span::before { content: "\2022"; margin-right: 12px; }
.page-header .blog-meta { justify-content: flex-start; margin-top: 10px; }
.page-header .eyebrow { display: block; margin-bottom: 6px; }
.blog-article h2 { margin-top: 1.6em; font-size: 1.35rem; }
.blog-article h2:first-child { margin-top: 0; }
.blog-article p { color: var(--color-text); }
.blog-figure { margin: 24px 0 8px; }
.blog-figure img { width: 100%; max-width: 360px; height: auto; border-radius: var(--radius); display: block; margin: 0 auto; }
.blog-figure figcaption { text-align: center; font-size: 0.85rem; color: var(--color-text-muted); margin-top: 10px; }
