/* ============================================
   Sylwia Sawicka — psycholożka, psychoterapeutka
   Modern redesign, 2026
   ============================================ */

:root {
  --bg: #FAF5EF;
  --bg-alt: #F3EAE0;
  --surface: #FFFFFF;
  --ink: #36281F;
  --ink-soft: #5C4B3E;
  --muted: #8A766A;
  --accent: #A9603C;
  --accent-dark: #8A4C2E;
  --accent-soft: #E8D5C8;
  --sage: #8B9480;
  --radius: 22px;
  --shadow: 0 10px 40px -12px rgba(54, 40, 31, 0.18);
  --shadow-soft: 0 6px 24px -10px rgba(54, 40, 31, 0.12);
  --font-display: "Lora", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.2;
  color: var(--ink);
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 239, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(54, 40, 31, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--accent); }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.97rem;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(169, 96, 60, 0.55);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(169, 96, 60, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(54, 40, 31, 0.25);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: var(--shadow-soft);
}
.btn-light:hover { transform: translateY(-2px); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 1.3rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-trust svg { width: 16px; height: 16px; color: var(--sage); flex: none; }

.hero-photo {
  position: relative;
  justify-self: center;
}
.hero-photo img {
  width: min(420px, 100%);
  border-radius: 220px 220px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -22px -22px auto auto;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--accent-soft);
  z-index: -1;
}
.hero-photo::after {
  content: "";
  position: absolute;
  bottom: -28px; left: -28px;
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  opacity: 0.4;
  z-index: -1;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.9rem;
}
.section-head p { color: var(--ink-soft); }

/* ---------- Cards / help areas ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.22rem; margin-bottom: 0.8rem; }

.card ul {
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: grid;
  gap: 0.45rem;
}
.card ul li {
  padding-left: 1.15rem;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-grid h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 1.2rem; }
.about-grid p { color: var(--ink-soft); margin-bottom: 1.1rem; }

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-creds {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.7rem;
  list-style: none;
}
.about-creds li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.about-creds svg {
  width: 20px; height: 20px;
  color: var(--accent);
  flex: none;
  margin-top: 0.25em;
}

/* ---------- Certificates gallery ---------- */
.cert-strip {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.4rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent-soft) transparent;
}
.cert-strip a {
  flex: none;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease;
}
.cert-strip a:hover { transform: translateY(-4px) scale(1.02); }
.cert-strip img {
  height: 280px;
  width: auto;
}

dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
dialog.lightbox[open] { display: flex; }
dialog.lightbox::backdrop { background: rgba(30, 20, 14, 0.85); }
dialog.lightbox img {
  max-width: min(94vw, 980px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  background: #fff;
}
.lightbox-btn {
  position: fixed;
  border: 0;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
  z-index: 2;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
  dialog.lightbox img { max-width: 84vw; }
}

/* ---------- Book ---------- */
.book-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.book-grid img {
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: 290px;
  margin-inline: auto;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}
.book-grid img:hover { transform: rotate(0deg) scale(1.02); }
.book-grid h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 1.1rem; }
.book-grid p { color: var(--ink-soft); margin-bottom: 1rem; }

/* ---------- Pricing / service cards ---------- */
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  background: var(--bg);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  margin-top: auto;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.price-tag strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent-dark);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.service-card p { color: var(--ink-soft); font-size: 0.97rem; }
.service-card .prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(139, 148, 128, 0.14);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}

/* ---------- Timeline (diagnostics) ---------- */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  padding-left: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(var(--accent-soft), var(--accent));
}
.timeline li {
  position: relative;
  padding-left: 4.6rem;
}
.timeline .step-num {
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}
.timeline h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.timeline p { color: var(--ink-soft); font-size: 0.98rem; }
.timeline .meta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
}

.note-box {
  background: var(--surface);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.7rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
  max-width: 760px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-soft);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent-dark), var(--accent));
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.8rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin: 0 auto 1.8rem;
}
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease;
  color: var(--ink);
}
.contact-card:hover { transform: translateY(-4px); color: var(--ink); }
.contact-card .card-icon { margin: 0 auto 1rem; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.contact-card span { color: var(--ink-soft); font-size: 0.97rem; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-wrap iframe { width: 100%; height: 440px; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2C2018;
  color: #CBB9AC;
  padding: 3.5rem 0 2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,0.45); }
.site-footer p, .site-footer li { font-size: 0.95rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: #CBB9AC; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.6rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(203, 185, 172, 0.6);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .book-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { width: min(320px, 80%); margin-inline: auto; }
  .about-photo { max-width: 380px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 4%;
    border-bottom: 1px solid rgba(54, 40, 31, 0.08);
    box-shadow: var(--shadow-soft);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
