/* ==========================================================================
   Izabela Barylska – gabinet psychoterapii
   ========================================================================== */

/* ---------- Fonty (hostowane lokalnie, bez Google Fonts) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/cormorant-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-latin-ext-500-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/sourcesans3-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/sourcesans3-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- System ---------- */
:root {
  /* kolory */
  --card: #232428;          /* grafit kart */
  --card-deep: #1b1c1f;     /* menu, stopka */
  --line: rgba(236, 231, 223, 0.14);
  --text: #ece7df;          /* ciepła biel */
  --muted: #b8b1a6;
  --accent: #c2321f;        /* czerwień lampy z gabinetu */
  --accent-hover: #a82816;
  --accent-soft: #f0a283;   /* jasny akcent do linków i etykiet na ciemnym tle */

  /* typografia */
  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* odstępy: 4 / 8 / 16 / 24 / 32 / 48 / 64 / 96 */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;

  --radius: 20px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  --header-h: 64px;
  --page: 1100px;
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s3));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.65;
  color: var(--text);
  background-color: #3a3a2a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* tapeta – przyklejona do okna (działa też na iOS, w przeciwieństwie do background-attachment: fixed) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #3a3a2a url("../img/tapeta-900.jpg") center / cover no-repeat;
  background-image: image-set(url("../img/tapeta-900.webp") type("image/webp"), url("../img/tapeta-900.jpg") type("image/jpeg"));
}
@media (min-width: 900px) {
  body::before {
    background-image: url("../img/tapeta.jpg");
    background-image: image-set(url("../img/tapeta.webp") type("image/webp"), url("../img/tapeta.jpg") type("image/jpeg"));
  }
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; text-wrap: balance; }
h1, h2, h4 { font-family: var(--serif); }
h2 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); letter-spacing: -0.005em; }
h3 { font-family: var(--sans); font-size: 1.125rem; letter-spacing: 0.01em; }
h4 { font-size: 1.5rem; }

p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-soft); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--s3); top: -100px; z-index: 100;
  padding: var(--s2) var(--s3);
  background: var(--text); color: var(--card); border-radius: 8px;
}
.skip-link:focus { top: var(--s2); }

.muted { color: var(--muted); }

.lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text);
}

.eyebrow {
  display: flex; align-items: center; gap: var(--s3);
  margin-bottom: var(--s3);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 0 var(--s5);
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 6px 18px rgba(194, 50, 31, 0.28);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn--small { min-height: 40px; padding: 0 var(--s3); font-size: 0.9375rem; box-shadow: none; }

.btn--ghost {
  background: transparent;
  border-color: rgba(236, 231, 223, 0.45);
  color: var(--text);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(236, 231, 223, 0.08); border-color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ---------- Menu (przyklejone) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 28, 31, 0.97);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; gap: var(--s3);
  max-width: var(--page);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--s3);
}

.nav__brand {
  margin-right: auto;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand:hover { color: var(--text); }

.nav__toggle {
  order: 3;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  margin-right: calc(var(--s2) * -1);
  padding: 0;
  border: 0; border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before,
.nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -7px; }
.nav__toggle-bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav__menu {
  position: absolute; top: 100%; left: 0; right: 0;
  display: none;
  margin: 0; padding: var(--s2) var(--s3) var(--s4);
  list-style: none;
  background: var(--card-deep);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.nav__menu.is-open { display: block; }
.nav__menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 1.125rem;
  text-decoration: none;
}
.nav__menu li:last-child a { border-bottom: 0; }
.nav__menu a:hover { color: var(--accent-soft); }

/* bez JS menu jest zawsze widoczne pod paskiem */
.no-js .nav__toggle { display: none; }
.no-js .nav__menu { position: static; display: flex; flex-wrap: wrap; gap: 0 var(--s4); padding: 0; background: none; border: 0; box-shadow: none; }

@media (max-width: 379px) {
  .nav__brand { font-size: 1.2rem; }
  .nav__cta { padding: 0 12px; font-size: 0.875rem; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .nav { padding: 0 var(--s4); gap: var(--s5); }
  .nav__brand { font-size: 1.5rem; }
  .nav__toggle { display: none; }
  .nav__menu,
  .no-js .nav__menu {
    position: static; display: flex; gap: var(--s5);
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav__menu a { padding: var(--s2) 0; border: 0; font-size: 1rem; color: var(--muted); }
  .nav__menu a:hover { color: var(--text); }
  .nav__cta { order: 4; }
}

/* ---------- Układ: karty na tapecie ---------- */
main {
  display: grid;
  gap: var(--s4);
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--s3) 12px 0;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section { padding: var(--s6) var(--s4); }
.section > h2,
.section__intro h2 { margin-bottom: var(--s4); }

@media (min-width: 700px) {
  main { gap: var(--s5); padding: var(--s5) var(--s4) 0; }
  .section { padding: var(--s7) var(--s6); }
}
@media (min-width: 1000px) {
  main { gap: var(--s6); padding-top: var(--s6); }
  .section { padding: var(--s8) var(--s7); }
}

/* ---------- 1. Góra strony ---------- */
.hero { overflow: hidden; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: 38% 50%;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 21, 24, 0.88) 0%, rgba(20, 21, 24, 0.35) 38%, rgba(20, 21, 24, 0) 62%);
  pointer-events: none;
}

.hero__title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: var(--s4);
}
.hero h1 {
  font-size: clamp(2.75rem, 1.8rem + 5vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero__role {
  margin: var(--s2) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.2;
  color: #f4efe7;
}

.hero__bar {
  display: grid;
  gap: var(--s4);
  padding: var(--s4);
}
.hero__where {
  margin-bottom: var(--s1);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__where span { margin: 0 0.4em; color: var(--accent-soft); }
.hero__info .muted { font-size: 1rem; }

.hero__actions { display: grid; gap: var(--s3); justify-items: start; }
.hero__actions .btn { width: 100%; }
.hero__phone {
  justify-self: center;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.hero__phone:hover { color: var(--accent-soft); }

@media (min-width: 700px) {
  .hero__media img { aspect-ratio: 1911 / 981; }
  .hero__title { padding: var(--s6); }
  .hero__bar {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--s5) var(--s6);
  }
  .hero__actions {
    grid-auto-flow: column; align-items: center; gap: var(--s5);
    padding-left: var(--s5);
    border-left: 1px solid var(--line);
  }
  .hero__actions .btn { width: auto; }
}

/* ---------- 2. W czym pomagam ---------- */
.section__intro { max-width: 40rem; }
.section__intro .lead { margin-bottom: var(--s4); }
.section__intro p:not(.lead):not(.eyebrow) { color: var(--muted); }

.list-title {
  margin: var(--s6) 0 var(--s4);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.areas {
  display: grid;
  gap: 0 var(--s6);
  margin: 0; padding: 0;
  list-style: none;
}
.areas li {
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
}
.areas p { color: var(--muted); max-width: 34rem; }
.areas strong { font-weight: 600; color: var(--text); }

@media (min-width: 800px) {
  .areas { grid-template-columns: 1fr 1fr; }
  .areas li { padding: var(--s5) 0; }
}

/* ---------- 3. O mnie ---------- */
.about { display: grid; gap: var(--s5); }

.about__photo {
  justify-self: center;
  width: min(240px, 70%);
  margin: 0;
}
/* łuk – jak okno; jedyny „ozdobny” kształt na stronie */
.about__photo img {
  width: 100%;
  aspect-ratio: 222 / 250;
  object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: 0 0 0 1px var(--line), 12px 12px 0 0 rgba(194, 50, 31, 0.55);
}

.about__text { max-width: 40rem; }
.about__text h2 { margin-bottom: var(--s4); }
.about__text h3 { margin: var(--s5) 0 var(--s3); }
.about__text p:not(.lead):not(.eyebrow) { color: var(--muted); }

.facts {
  margin: var(--s5) 0 0; padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.facts li {
  position: relative;
  padding: var(--s3) 0 var(--s3) var(--s5);
  border-bottom: 1px solid var(--line);
}
.facts li::before {
  content: "";
  position: absolute; left: 0; top: 1.45em;
  width: 14px; height: 1px;
  background: var(--accent-soft);
}

@media (min-width: 800px) {
  .about { grid-template-columns: 260px 1fr; gap: var(--s7); align-items: start; }
  .about__photo { width: 100%; position: sticky; top: calc(var(--header-h) + var(--s5)); }
}

/* ---------- 4. Kontakt ---------- */
.contact { display: grid; gap: var(--s6); }
.contact h2 { margin-bottom: var(--s4); }

.contact__phone {
  margin: var(--s4) 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  line-height: 1.1;
  white-space: nowrap;
}
.contact__phone a { color: var(--text); text-decoration: none; }
.contact__phone a:hover { color: var(--accent-soft); }

.contact__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.contact__actions .btn { flex: 1 1 160px; }

.contact__details {
  margin: 0;
  border-top: 1px solid var(--line);
}
.contact__details > div {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.contact__details dt {
  margin-bottom: var(--s1);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__details dd { margin: 0 0 var(--s2); font-size: 1.125rem; }
.contact__details dd:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .contact { grid-template-columns: 1.2fr 1fr; gap: var(--s7); align-items: center; }
  .contact__actions .btn { flex: 0 0 auto; }
}

/* ---------- Okienko z numerem (komputer) ---------- */
.dialog {
  width: min(440px, calc(100% - 32px));
  padding: var(--s6) var(--s5) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.dialog::backdrop { background: rgba(15, 16, 18, 0.72); }
.dialog .eyebrow { margin-bottom: var(--s2); }
.dialog__title { font-size: 2.25rem; margin-bottom: var(--s3); }
.dialog__number {
  margin: var(--s3) 0 var(--s4);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.1;
  white-space: nowrap;
  user-select: all;
}
.dialog__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.dialog__actions .btn { flex: 1 1 150px; padding: 0 var(--s3); white-space: nowrap; }
.dialog__hint { margin-top: var(--s4); font-size: 0.875rem; }
.dialog__close {
  position: absolute; top: var(--s2); right: var(--s2);
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.75rem; line-height: 1;
  cursor: pointer;
}
.dialog__close:hover { color: var(--text); background: rgba(236, 231, 223, 0.08); }

/* ---------- Stopka ---------- */
.site-footer {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--s4) 12px var(--s4);
}
.footer {
  padding: var(--s5) var(--s4);
  background: var(--card-deep);
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer__crisis { max-width: 46rem; }
.footer__crisis strong { color: var(--text); }
.footer__meta {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

@media (min-width: 700px) {
  .site-footer { padding: var(--s5) var(--s4) var(--s6); }
  .footer { padding: var(--s5) var(--s6); }
}
@media (min-width: 1000px) {
  .site-footer { padding-top: var(--s6); }
}
