/*
Theme Name: Terapia Zabawą
Theme URI: https://pttz.com.pl/
Author: Polskie Towarzystwo Terapii Zabawą
Description: Świeży, jasny i przyjazny motyw dla ośrodka / towarzystwa terapii zabawą. Spokojna paleta z morską zielenią jako akcentem, zaokrąglone formy, czytelna typografia (Baloo 2 + Mulish). Klasyczny motyw z gotową stroną główną i szablonem podstron.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terapia-zabawa
*/

/* ============================================================
   Zmienne / tokeny
   ============================================================ */
:root{
  --tz-accent:#1aa48f;
  --tz-accent-dark:#16887a;
  --tz-accent-tint:#dff3ef;
  --tz-accent-bright:#3fd0b8;
  --tz-ink:#2b3140;
  --tz-muted:#5a6178;
  --tz-muted-2:#697088;
  --tz-nav:#56607a;
  --tz-bg:#ffffff;
  --tz-bg-alt:#fbfdfc;
  --tz-border:#e7ecea;
  --tz-border-2:#dfe4e3;
  --tz-border-soft:#edf0ef;
  --tz-card-border:#eef2f1;
  --tz-footer-bg:#2b3140;
  --tz-footer-text:#9aa3b5;
  --tz-maxw:1180px;
}

/* ============================================================
   Reset / podstawy
   ============================================================ */
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--tz-bg);
  color:var(--tz-ink);
  font-family:'Mulish',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--tz-accent-dark);}
h1,h2,h3,h4{font-family:'Baloo 2',system-ui,sans-serif;font-weight:600;color:var(--tz-ink);margin:0;}
p{margin:0;}

.tz-container{max-width:var(--tz-maxw);margin:0 auto;padding-left:40px;padding-right:40px;}

/* ============================================================
   Przyciski
   ============================================================ */
.tz-btn{
  display:inline-block;
  padding:16px 30px;
  border-radius:30px;
  font-weight:700;
  font-size:15px;
  text-decoration:none;
  cursor:pointer;
  border:1.5px solid transparent;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.tz-btn--primary{background:var(--tz-accent);color:#fff;}
.tz-btn--primary:hover{background:var(--tz-accent-dark);transform:translateY(-2px);box-shadow:0 10px 22px rgba(26,164,143,.32);}
.tz-btn--ghost{background:#fff;color:var(--tz-ink);border-color:var(--tz-border-2);}
.tz-btn--ghost:hover{border-color:var(--tz-accent);color:var(--tz-accent-dark);transform:translateY(-2px);}
.tz-btn--light{background:#fff;color:var(--tz-accent-dark);}
.tz-btn--light:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(0,0,0,.18);}
.tz-btn--sm{padding:11px 20px;}

/* ============================================================
   Utility bar
   ============================================================ */
.tz-utility{background:var(--tz-bg-alt);border-bottom:1px solid var(--tz-border-soft);}
.tz-utility .tz-container{display:flex;justify-content:flex-end;gap:24px;padding-top:8px;padding-bottom:8px;}
.tz-utility a{font-size:13px;font-weight:600;color:var(--tz-muted-2);text-decoration:none;transition:color .18s ease;}
.tz-utility a:hover{color:var(--tz-accent-dark);}

/* ============================================================
   Header / nawigacja
   ============================================================ */
.tz-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:saturate(160%) blur(8px);
  backdrop-filter:saturate(160%) blur(8px);
  border-bottom:1px solid var(--tz-border-soft);
}
.tz-header .tz-container{display:flex;align-items:center;justify-content:space-between;padding-top:18px;padding-bottom:18px;}
.tz-brand{display:flex;align-items:center;gap:11px;text-decoration:none;}
.tz-brand__mark{width:34px;height:34px;border-radius:11px;background:var(--tz-accent);transition:transform .2s ease;}
.tz-brand:hover .tz-brand__mark{transform:rotate(-8deg) scale(1.06);}
.tz-brand__name{font-family:'Baloo 2',sans-serif;font-weight:600;font-size:18px;color:var(--tz-ink);line-height:1;}
.tz-brand img{max-height:40px;width:auto;}

.tz-nav{display:flex;align-items:center;gap:16px;}
.tz-nav ul{list-style:none;display:flex;align-items:center;gap:20px;margin:0;padding:0;}
.tz-nav a{font-size:14px;font-weight:700;color:var(--tz-nav);text-decoration:none;transition:color .18s ease;}
.tz-nav a:hover,.tz-nav .current-menu-item > a{color:var(--tz-accent);}

.tz-menu-toggle{display:none;background:none;border:0;font-size:24px;color:var(--tz-ink);cursor:pointer;}

/* ============================================================
   Hero
   ============================================================ */
.tz-hero{background:var(--tz-bg-alt);}
.tz-hero .tz-container{padding-top:88px;padding-bottom:76px;text-align:center;}
.tz-badge{display:inline-block;font-size:13px;font-weight:700;color:var(--tz-accent-dark);background:var(--tz-accent-tint);padding:8px 16px;border-radius:30px;margin-bottom:24px;}
.tz-hero h1{font-size:56px;line-height:1.05;margin:0 auto 20px;max-width:760px;}
.tz-hero__lead{font-size:19px;line-height:1.6;color:var(--tz-muted);max-width:580px;margin:0 auto 34px;}
.tz-hero__actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}

/* Placeholder ilustracji */
.tz-figure{
  border-radius:24px;background:#fff;border:1px solid var(--tz-border);
  display:flex;align-items:center;justify-content:center;
  color:#aab4b1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;
  position:relative;overflow:hidden;text-align:center;
}
.tz-hero__figure{margin-top:60px;height: auto;}
.tz-figure .tz-dot{position:absolute;border-radius:50%;}
.tz-figure .tz-dot--a{left:40px;top:40px;width:80px;height:80px;background:var(--tz-accent-tint);}
.tz-figure .tz-dot--b{right:60px;bottom:50px;width:54px;height:54px;background:#eef6df;}
.tz-figure .tz-dot--c{right:40px;top:40px;width:64px;height:64px;background:var(--tz-accent-tint);}

.tz-hero__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* ============================================================
   Trust strip
   ============================================================ */
.tz-trust{border-top:1px solid var(--tz-border-soft);border-bottom:1px solid var(--tz-border-soft);background:#fff;}
.tz-trust .tz-container{display:grid;grid-template-columns:repeat(3,1fr);padding-top:0;padding-bottom:0;}
.tz-trust__item{padding:32px 30px;}
.tz-trust__item:not(:last-child){border-right:1px solid var(--tz-border-soft);}
.tz-trust__item:first-child{padding-left:0;}
.tz-trust__item:last-child{padding-right:0;}
.tz-trust__num{font-family:'Baloo 2',sans-serif;font-weight:600;font-size:30px;color:var(--tz-accent);}
.tz-trust__label{font-size:14px;color:var(--tz-muted-2);}

/* ============================================================
   Sekcje ogólne
   ============================================================ */
.tz-section .tz-container{padding-top:84px;padding-bottom:84px;}
.tz-section--alt{background:var(--tz-bg-alt);}
.tz-section__eyebrow{font-size:13px;letter-spacing:.05em;text-transform:uppercase;font-weight:800;color:var(--tz-accent-dark);margin-bottom:14px;}
.tz-section__title{font-size:34px;margin:0 0 8px;}
.tz-section__intro{font-size:16px;color:var(--tz-muted);margin:0 0 38px;max-width:600px;}

/* Karty obszarów */
.tz-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.tz-card{
  text-decoration:none;color:inherit;background:var(--tz-bg-alt);
  border:1px solid var(--tz-card-border);border-radius:20px;padding:28px;display:block;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tz-card:hover{transform:translateY(-6px);box-shadow:0 16px 34px rgba(26,164,143,.16);border-color:#cdeae3;}
.tz-card__icon{width:46px;height:46px;border-radius:14px;background:var(--tz-accent-tint);display:flex;align-items:center;justify-content:center;}
.tz-card__icon span{width:18px;height:18px;border-radius:50%;background:var(--tz-accent);}
.tz-card__title{font-family:'Baloo 2',sans-serif;font-weight:600;font-size:20px;margin:16px 0 8px;}
.tz-card p{font-size:14px;line-height:1.55;color:var(--tz-muted-2);margin:0 0 14px;}
.tz-card__more{font-size:14px;font-weight:700;color:var(--tz-accent-dark);}

/* Feature (proces) */
.tz-feature .tz-container{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;}
.tz-feature__figure{height:340px;}
.tz-feature h2{font-size:32px;line-height:1.18;margin:0 0 18px;}
.tz-feature p{font-size:16px;line-height:1.7;color:var(--tz-muted);margin:0 0 24px;}
.tz-link{display:inline-block;font-size:15px;font-weight:700;color:var(--tz-ink);border-bottom:2px solid var(--tz-accent);padding-bottom:3px;text-decoration:none;transition:color .18s ease, border-color .18s ease;}
.tz-link:hover{color:var(--tz-accent-dark);border-color:var(--tz-accent-dark);}

/* Tagi (kiedy wspieramy) */
.tz-tags{display:flex;flex-wrap:wrap;gap:10px;max-width:920px;}
.tz-tag{
  border:1px solid var(--tz-border-2);color:var(--tz-nav);
  padding:11px 18px;border-radius:30px;font-size:14px;font-weight:600;cursor:default;
  transition:background .18s ease, border-color .18s ease, color .18s ease;
}
.tz-tag:hover{background:var(--tz-accent-tint);border-color:#b8e5dd;color:var(--tz-accent-dark);}

/* CTA */
.tz-cta{background:var(--tz-accent);color:#fff;}
.tz-cta .tz-container{display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap;padding-top:72px;padding-bottom:72px;}
.tz-cta h2{font-size:30px;margin:0 0 8px;color:#fff;}
.tz-cta p{font-size:16px;opacity:.92;}

/* ============================================================
   Treść stron (page.php / index.php)
   ============================================================ */
.tz-page .tz-container{padding-top:64px;padding-bottom:80px;max-width:840px;}
.tz-page h1.tz-page__title{font-size:42px;margin:0 0 24px;}
.tz-content{font-size:17px;line-height:1.75;color:#3a4150;}
.tz-content h2{font-size:28px;margin:36px 0 14px;}
.tz-content h3{font-size:22px;margin:28px 0 12px;}
.tz-content p{margin:0 0 18px;}
.tz-content a{color:var(--tz-accent-dark);}
.tz-content ul,.tz-content ol{padding-left:22px;margin:0 0 18px;}
.tz-content li{margin-bottom:8px;}
.tz-content img{border-radius:16px;margin:24px 0;}
.tz-content blockquote{border-left:4px solid var(--tz-accent);background:var(--tz-bg-alt);margin:24px 0;padding:18px 24px;border-radius:0 12px 12px 0;color:var(--tz-muted);}

/* ============================================================
   Footer
   ============================================================ */
.tz-footer{background:var(--tz-footer-bg);color:var(--tz-footer-text);}
.tz-footer .tz-container{padding-top:54px;padding-bottom:30px;}
.tz-footer__grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:40px;}
.tz-footer__brand{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.tz-footer__brand .tz-brand__mark{width:30px;height:30px;border-radius:10px;}
.tz-footer__brand span{font-family:'Baloo 2',sans-serif;font-weight:600;font-size:16px;color:#fff;}
.tz-footer p{font-size:14px;line-height:1.6;max-width:300px;}
.tz-footer__col{display:flex;flex-direction:column;gap:8px;font-size:14px;}
.tz-footer__heading{color:#fff;text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:700;margin-bottom:4px;}
.tz-footer a{color:var(--tz-footer-text);text-decoration:none;transition:color .18s ease;}
.tz-footer a:hover{color:var(--tz-accent-bright);}
.tz-footer__contact{font-size:14px;line-height:1.9;}
.tz-footer__bottom{border-top:1px solid #3c4252;margin-top:32px;padding-top:18px;font-size:12px;color:#6c7589;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;}

/* ============================================================
   Responsywność
   ============================================================ */
@media (max-width:980px){
  .tz-cards{grid-template-columns:repeat(2,1fr);}
  .tz-feature .tz-container{grid-template-columns:1fr;gap:36px;}
  .tz-footer__grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:760px){
  .tz-container{padding-left:22px;padding-right:22px;}
  .tz-menu-toggle{display:block;}
  .tz-nav{
    display:none;position:absolute;top:100%;left:0;right:0;
    background:#fff;border-bottom:1px solid var(--tz-border-soft);
    flex-direction:column;align-items:stretch;gap:0;padding:8px 22px 18px;
  }
  .tz-nav.is-open{display:flex;}
  .tz-nav ul{flex-direction:column;align-items:stretch;gap:0;width:100%;}
  .tz-nav ul li{border-bottom:1px solid var(--tz-border-soft);}
  .tz-nav ul li a{display:block;padding:14px 0;}
  .tz-nav .tz-btn{margin-top:14px;text-align:center;}
  .tz-hero h1{font-size:38px;}
  .tz-hero__lead{font-size:17px;}
  .tz-trust .tz-container{grid-template-columns:1fr;}
  .tz-trust__item{border-right:0 !important;border-bottom:1px solid var(--tz-border-soft);padding-left:0 !important;padding-right:0 !important;}
  .tz-cards{grid-template-columns:1fr;}
  .tz-footer__grid{grid-template-columns:1fr;}
  .tz-section__title,.tz-feature h2{font-size:28px;}
}

:target {
  scroll-margin-top: 80px;
}



/* ============================================================
     Tylko 2 komponenty: siatka osób zarządu + karty terapeutów
     ============================================================ */
.pttz-person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 1.5em 0;
}
.pttz-person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.pttz-person-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}
.pttz-person-card strong {
  font-size: 0.88em;
  line-height: 1.3;
}
.pttz-person-card span {
  font-size: 0.78em;
  color: #666;
}

.pttz-therapist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin: 1.5em 0;
}
.pttz-therapist-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px;
}
.pttz-therapist-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}
.pttz-therapist-info {
  flex: 1;
}
.pttz-therapist-info strong {
  display: block;
  margin-bottom: 4px;
}
.pttz-therapist-info p {
  font-size: 0.82em;
  color: #555;
  margin: 4px 0;
  line-height: 1.5;
}
.pttz-contact {
  font-size: 0.8em !important;
  color: #444 !important;
}
.pttz-badge {
  display: inline-block;
  font-size: 0.72em;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}
.pttz-badge--certified {
  background: #e1f5ee;
  color: #0f6e56;
}
.pttz-badge--training {
  background: #faeeda;
  color: #633806;
}
