/*
Theme Name: Patromedica
Theme URI: https://patromedica.xarion.net
Author: Xarion
Description: Odwzorowanie strony Wix admin768668.wixsite.com/patromedica — gabinet psychoterapii uzależnień, współuzależnienia i DDA. Kremowe tło, złote logo na ciemnym drewnie, serifowe nagłówki.
Version: 1.0.0
Text Domain: patromedica
*/

/* =========================================================
   1. RESET / PODSTAWY
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #FDF8EE;
  --cream-dark: #F5EEDF;
  --ink: #1A1712;
  --bronze: #4A3F2E;
  --gold: #C9A24B;
  --gold-light: #E3C878;
  --line: #1A1712;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  color: var(--ink);
}

a { color: var(--ink); text-decoration: none; transition: opacity .2s ease; }
a:hover { opacity: .7; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* =========================================================
   2. PASEK GÓRNY (WIX BANNER ZASTĄPIONY CZYSTYM HEADEREM)
   ========================================================= */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand { font-family: 'Playfair Display', serif; font-size: 22px; letter-spacing: .06em; color: var(--bronze); white-space: nowrap; }
.main-nav ul { display: flex; list-style: none; gap: 28px; flex-wrap: wrap; }
.main-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--bronze);
  letter-spacing: .02em;
}
.main-nav .current-menu-item a { text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--bronze); }

/* =========================================================
   3. HERO (LOGO NA CIEMNYM DREWNIE — GRAFIKA Z WIX)
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #241a10;
}
.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* =========================================================
   4. SEKCJE (USŁUGI / BLOG)
   ========================================================= */
.section { padding: 64px 24px 72px; }
.section-title {
  text-align: center;
  font-size: 34px;
  letter-spacing: .18em;
  margin-bottom: 44px;
  font-weight: 500;
}

/* --- USŁUGI: 3 karty --- */
.services-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  border: 1px solid var(--line);
  padding: 40px 28px 36px;
  text-align: center;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.service-card h3 { font-size: 22px; font-weight: 500; }
.service-card .service-sep { width: 42px; height: 1px; background: var(--line); }
.service-card .service-price { font-size: 15px; letter-spacing: .04em; }
.btn-book {
  margin-top: auto;
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 13px 34px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn-book:hover { background: transparent; color: var(--ink); opacity: 1; }

/* --- BLOG: 3-kolumnowa siatka kart --- */
.blog-section { border-top: 1px solid var(--line); }
.blog-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  border: 1px solid var(--line);
  background: var(--cream);
  display: flex;
  flex-direction: column;
}
.blog-card .card-thumb { aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 1px solid var(--line); }
.blog-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .card-body { padding: 20px 20px 14px; display: flex; flex-direction: column; flex: 1; }
.blog-card h3 { font-size: 18px; line-height: 1.35; margin-bottom: 10px; }
.blog-card h3 a { color: var(--ink); }
.blog-card .card-excerpt { font-size: 13.5px; color: #4a4438; flex: 1; }
.blog-card .card-meta {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #d9d2c2;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #6b6353;
}
.blog-card .card-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.blog-card .card-meta .heart svg { fill: none; stroke: #b3423f; }

/* =========================================================
   5. POJEDYNCZY POST / STRONA
   ========================================================= */
.content-wrap { max-width: 780px; margin: 0 auto; padding: 56px 24px 72px; }
.content-wrap .post-title { font-size: 38px; line-height: 1.2; margin-bottom: 10px; }
.post-meta { font-size: 13px; color: #6b6353; margin-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; }
.content-wrap figure { margin: 28px 0; }
.content-wrap figure img { width: 100%; }
.content-wrap figure figcaption { font-size: 12.5px; color: #6b6353; text-align: center; margin-top: 8px; }
.content-wrap h2 { font-size: 27px; margin: 36px 0 14px; }
.content-wrap h3 { font-size: 21px; margin: 28px 0 10px; }
.content-wrap p { margin-bottom: 16px; }
.content-wrap ul, .content-wrap ol { margin: 0 0 16px 24px; }
.content-wrap li { margin-bottom: 6px; }
.content-wrap strong { font-weight: 600; }

/* =========================================================
   6. STOPKA
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); background: var(--cream); }
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 44px 24px 40px;
  border-left: 1px solid var(--line);
}
.footer-brand { font-size: 20px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; color: var(--ink); font-family: 'Montserrat', sans-serif; }
.footer-col p, .footer-col a { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 8px; }
.footer-col .contact-link { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.footer-legal { font-size: 13px; }
.footer-legal a { display: block; margin-bottom: 10px; }
.footer-socials { display: flex; gap: 14px; margin-top: 18px; }
.footer-socials a { width: 30px; height: 30px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.footer-socials a:hover { background: var(--ink); }
.footer-socials img { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 18px 24px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: #4a4438;
}

/* =========================================================
   7. RWD
   ========================================================= */
@media (max-width: 860px) {
  .services-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; border-left: none; }
  .site-header-inner { flex-wrap: wrap; }
  .menu-toggle { display: block; }
  .main-nav { flex-basis: 100%; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 12px; padding: 10px 0; }
  .section-title { font-size: 27px; }
}
