/*
Theme Name: Human Week
Theme URI: https://humanweek.pl
Author: Szpital Uniwersytecki w Krakowie
Description: Motyw WordPress dla Human Week — Krakowskiego Tygodnia Zdrowia Psychicznego. "Przebodźcowani. Za dużo. Za szybko. Bez przerwy."
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: human-week
License: GNU General Public License v2 or later
License URI: LICENSE
*/

/* ==========================================================================
   0. RESET / BASE
   ========================================================================== */

:root{
  /* Paleta Human Week */
  --hw-teal-dark:   #0F9E96;
  --hw-teal:        #14B8A6;
  --hw-teal-light:  #4FD8D4;
  --hw-cyan:         #22D3D0;
  --hw-green:       #10B981;
  --hw-blue:        #3B82F6;
  --hw-coral:       #F4A265;
  --hw-pink:        #E85D9C;
  --hw-purple:      #B49CD9;
  --hw-skyblue:     #7FC4E8;
  --hw-mint:        #5FCDB0;

  --hw-text:        #1F2937;
  --hw-text-light:  #4B5563;
  --hw-white:       #FFFFFF;

  --hw-gradient: linear-gradient(160deg, var(--hw-teal-dark) 0%, var(--hw-teal) 45%, var(--hw-teal-light) 100%);

  --hw-font-head: 'Anton', Impact, 'Archivo Black', sans-serif;
  --hw-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --hw-radius: 18px;
  --hw-shadow: 0 12px 30px rgba(15, 158, 150, .18);
  --hw-container: 1180px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--hw-font-body);
  color: var(--hw-text);
  background:#fff;
  line-height:1.6;
  font-size:16px;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: var(--hw-teal-dark); text-decoration:none; transition: color .2s ease; }
a:hover{ color: var(--hw-blue); }

h1,h2,h3,h4{
  font-family: var(--hw-font-head);
  text-transform: uppercase;
  letter-spacing:.5px;
  line-height:1.12;
  margin:0 0 .5em;
  color: var(--hw-text);
}

h1{ font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3{ font-size: clamp(1.2rem, 2vw, 1.5rem); }

p{ margin:0 0 1.2em; }

.container{
  max-width: var(--hw-container);
  margin:0 auto;
  padding:0 24px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--hw-font-head);
  text-transform:uppercase;
  letter-spacing:.5px;
  font-size:1rem;
  padding:14px 30px;
  border-radius:999px;
  border:2px solid transparent;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary{
  background: var(--hw-white);
  color: var(--hw-teal-dark);
  box-shadow: var(--hw-shadow);
}
.btn-primary:hover{ color: var(--hw-blue); transform: translateY(-2px); }
.btn-outline{
  background:transparent;
  border-color: currentColor;
  color: var(--hw-white);
}
.btn-outline:hover{ background: var(--hw-white); color: var(--hw-teal-dark); }

.eyebrow{
  display:inline-block;
  font-family: var(--hw-font-head);
  text-transform:uppercase;
  letter-spacing:1.5px;
  font-size:.85rem;
  color: var(--hw-teal-dark);
  margin-bottom:10px;
}

.section{ padding: 80px 0; }
.section-teal{ background: var(--hw-gradient); color:#fff; }
.section-teal h2, .section-teal h3{ color:#fff; }
.section-white{ background:#fff; }

.section-title{ text-align:center; max-width:720px; margin:0 auto 48px; }

/* Bryzgi / splatter dekoracje */
.hw-splatter{
  position:absolute;
  border-radius:50%;
  filter: blur(2px);
  opacity:.55;
  pointer-events:none;
}

/* ==========================================================================
   1. HEADER / NAV
   ========================================================================== */

.site-header{
  position: sticky;
  top:0;
  z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(15,158,150,.12);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:14px;
  padding-bottom:14px;
}
.site-logo img{ max-height:52px; width:auto; }
.site-logo{ display:flex; align-items:center; }

.main-nav ul{
  list-style:none;
  display:flex;
  gap:30px;
  margin:0; padding:0;
}
.main-nav a{
  font-family: var(--hw-font-head);
  text-transform:uppercase;
  font-size:.92rem;
  letter-spacing:.4px;
  color: var(--hw-text);
}
.main-nav a:hover{ color: var(--hw-teal-dark); }

.header-cta{
  display:flex; align-items:center; gap:18px;
}
.header-cta .btn{
  background: var(--hw-teal-dark);
  color:#fff;
  padding:10px 22px;
  font-size:.85rem;
  box-shadow:none;
}
.header-cta .btn:hover{ background: var(--hw-blue); }

.menu-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
}
.menu-toggle span{
  display:block;
  width:26px; height:3px;
  background: var(--hw-text);
  margin:5px 0;
  border-radius:2px;
}

@media (max-width: 880px){
  .main-nav{
    position:fixed; inset:0 0 0 auto;
    width:78%; max-width:340px;
    background:#fff;
    padding:100px 30px 30px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.12);
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav ul{ flex-direction:column; gap:22px; }
  .menu-toggle{ display:block; }
  .header-cta .btn-label{ display:none; }
}

/* ==========================================================================
   2. HERO
   ========================================================================== */

.hero{
  position:relative;
  background: var(--hw-gradient);
  color:#fff;
  overflow:hidden;
  padding: 90px 0 70px;
}
.hero .container{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:40px;
  align-items:center;
  position:relative;
  z-index:2;
}
.hero-dates{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background: rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.4);
  padding:8px 18px;
  border-radius:999px;
  font-weight:600;
  font-size:.95rem;
  margin-bottom:22px;
}
.hero h1{
  color:#fff;
  margin-bottom:22px;
}
.hero h1 .line-1{ color:#fff; }
.hero h1 .line-2{ color: var(--hw-white); opacity:.92; font-size:.62em; display:block; }
.hero h1 .line-3{ color: var(--hw-skyblue); font-size:.62em; display:block; }

.hero-lead{
  font-size:1.15rem;
  max-width:480px;
  opacity:.95;
  margin-bottom:32px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:40px; }

.hero-countdown{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.hero-countdown .cd-item{
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.35);
  border-radius:14px;
  padding:14px 18px;
  min-width:76px;
  text-align:center;
}
.hero-countdown .cd-num{
  font-family: var(--hw-font-head);
  font-size:1.9rem;
  display:block;
  line-height:1;
}
.hero-countdown .cd-label{
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.5px;
  opacity:.85;
}

.hero-visual{ position:relative; text-align:center; }
.hero-visual img{ max-width: 480px; margin:0 auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }

@media (max-width: 900px){
  .hero .container{ grid-template-columns:1fr; text-align:center; }
  .hero-lead{ margin-left:auto; margin-right:auto; }
  .hero-actions, .hero-countdown{ justify-content:center; }
  .hero-visual img{ max-width:320px; }
}

/* ==========================================================================
   3. TRUST BAR (patroni / partnerzy)
   ========================================================================== */

.trust-bar{
  background:#fff;
  padding:34px 0;
  border-bottom:1px solid rgba(15,158,150,.1);
}
.trust-bar .container{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:48px;
  flex-wrap:wrap;
}
.trust-bar img{
  max-height:46px;
  width:auto;
  filter: grayscale(1);
  opacity:.7;
  transition: opacity .2s ease, filter .2s ease;
}
.trust-bar img:hover{ filter:none; opacity:1; }

/* ==========================================================================
   4. O HUMAN WEEK
   ========================================================================== */

.about-grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap:56px;
  align-items:center;
}
.about-grid img{ border-radius: var(--hw-radius); box-shadow: var(--hw-shadow); }
@media (max-width:880px){ .about-grid{ grid-template-columns:1fr; } }

/* ==========================================================================
   5. PROGRAM — skrót dni / pełny program
   ========================================================================== */

.day-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:20px;
}
@media (max-width: 980px){ .day-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .day-grid{ grid-template-columns: 1fr; } }

.day-card{
  background:#fff;
  border-radius: var(--hw-radius);
  padding:28px 22px;
  box-shadow: var(--hw-shadow);
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.day-card .day-num{
  font-family: var(--hw-font-head);
  font-size:2.4rem;
  color: var(--hw-teal-dark);
}
.day-card .day-count{ font-size:.85rem; color: var(--hw-text-light); }
.day-card a{ margin-top:auto; font-weight:600; }

.day-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom:40px;
}
.day-tab{
  font-family: var(--hw-font-head);
  text-transform:uppercase;
  letter-spacing:.4px;
  background:#fff;
  border:2px solid var(--hw-teal-dark);
  color: var(--hw-teal-dark);
  padding:10px 22px;
  border-radius:999px;
  cursor:pointer;
  font-size:.9rem;
}
.day-tab.is-active, .day-tab:hover{
  background: var(--hw-teal-dark);
  color:#fff;
}

.program-item{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:20px;
  background:#fff;
  border-radius: var(--hw-radius);
  padding:22px 24px;
  box-shadow: 0 6px 18px rgba(15,158,150,.08);
  margin-bottom:16px;
}
.program-item .p-time{
  flex:0 0 130px;
  font-family: var(--hw-font-head);
  color: var(--hw-teal-dark);
  font-size:1rem;
  line-height:1.4;
}
.program-item .p-thumb{
  flex:0 0 96px;
}
.program-item .p-thumb img{
  width:96px;
  height:96px;
  object-fit:cover;
  border-radius:12px;
  display:block;
}
.program-item .p-content{
  flex:1 1 240px;
  min-width:200px;
}
.program-item .p-type{
  display:inline-block;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.4px;
  font-weight:700;
  padding:4px 10px;
  border-radius:999px;
  margin-bottom:8px;
  color:#fff;
}
.p-type--wyklad{ background: var(--hw-blue); }
.p-type--warsztat{ background: var(--hw-coral); }
.p-type--panel{ background: var(--hw-pink); }
.p-type--inne{ background: var(--hw-purple); }

.program-item h4{ margin:0 0 6px; text-transform:none; font-family: var(--hw-font-body); font-weight:700; font-size:1.15rem; letter-spacing:0; }
.program-item .p-meta{ font-size:.9rem; color: var(--hw-text-light); }
.program-item .p-speaker{ font-weight:600; color: var(--hw-text); }

@media (max-width: 700px){
  .program-item .p-thumb{ flex:0 0 100%; }
  .program-item .p-thumb img{ width:100%; height:160px; }
}

/* ==========================================================================
   6. PRELEGENCI
   ========================================================================== */

.speakers-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:26px;
}
@media (max-width: 980px){ .speakers-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .speakers-grid{ grid-template-columns: 1fr; } }

.speaker-card{
  background:#fff;
  border-radius: var(--hw-radius);
  overflow:hidden;
  box-shadow: var(--hw-shadow);
  text-align:center;
  transition: transform .2s ease;
}
.speaker-card:hover{ transform: translateY(-6px); }
.speaker-card .sp-photo{
  aspect-ratio: 1/1;
  overflow:hidden;
  background: var(--hw-gradient);
}
.speaker-card .sp-photo img{ width:100%; height:100%; object-fit:cover; }
.speaker-card .sp-body{ padding:20px 16px 26px; }
.speaker-card h4{ font-family:var(--hw-font-body); text-transform:none; font-weight:700; font-size:1.05rem; letter-spacing:0; margin-bottom:4px; }
.speaker-card .sp-affil{ font-size:.85rem; color: var(--hw-text-light); }
.speaker-card .sp-bio{ font-size:.85rem; color: var(--hw-text-light); margin:10px 0 0; line-height:1.5; }

.speaker-hero{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:40px;
  align-items:start;
}
.speaker-hero img{ border-radius: var(--hw-radius); box-shadow: var(--hw-shadow); }
@media (max-width:780px){ .speaker-hero{ grid-template-columns:1fr; } }

/* ==========================================================================
   7. PARTNERZY
   ========================================================================== */

.partners-role{ margin-bottom:50px; }
.partners-role h3{ text-align:center; margin-bottom:26px; color: var(--hw-teal-dark); }

.partners-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:24px;
}

.partner-card{
  background:#fff;
  border-radius: var(--hw-radius);
  overflow:hidden;
  box-shadow: var(--hw-shadow);
  display:flex;
  flex-direction:column;
}
.pc-image{
  display:flex;
  align-items:center;
  justify-content:center;
  height:140px;
}
.pc-image--photo{ padding:0; }
.pc-image--photo img{ width:100%; height:100%; object-fit:cover; }
.pc-image--logo{ padding:20px; background: var(--hw-gradient); }
.pc-image--logo img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }

.partner-card .pc-body{ padding:18px 20px 22px; text-align:center; }
.partner-card h4{
  font-family: var(--hw-font-body);
  text-transform:none;
  letter-spacing:0;
  font-size:1.02rem;
  font-weight:700;
  margin:0 0 6px;
}
.partner-card h4 a{ color: var(--hw-text); }
.partner-card h4 a:hover{ color: var(--hw-teal-dark); }
.partner-card .pc-desc{
  font-size:.85rem;
  color: var(--hw-text-light);
  margin:0;
  line-height:1.5;
}

/* ==========================================================================
   8. CTA / NEWSLETTER
   ========================================================================== */

.cta-band{
  background: var(--hw-gradient);
  color:#fff;
  text-align:center;
  padding:70px 0;
}
.cta-band h2{ color:#fff; }
.cta-band .btn{ margin-top:10px; }

/* ==========================================================================
   9. BLOG
   ========================================================================== */

.posts-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:28px;
}
@media (max-width: 980px){ .posts-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .posts-grid{ grid-template-columns: 1fr; } }

.post-card{
  background:#fff;
  border-radius: var(--hw-radius);
  overflow:hidden;
  box-shadow: var(--hw-shadow);
}
.post-card .pc-thumb{ aspect-ratio: 16/10; overflow:hidden; }
.post-card .pc-thumb img{ width:100%; height:100%; object-fit:cover; }
.post-card .pc-body{ padding:20px 22px 26px; }
.post-card .pc-cat{ font-size:.75rem; text-transform:uppercase; letter-spacing:.5px; color: var(--hw-teal-dark); font-weight:700; }
.post-card h3{ font-family: var(--hw-font-body); text-transform:none; letter-spacing:0; font-size:1.2rem; margin:8px 0; }
.post-card .pc-excerpt{ font-size:.92rem; color: var(--hw-text-light); }

.single-content{ max-width:760px; margin:0 auto; }
.single-content img{ border-radius: var(--hw-radius); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.site-footer{
  background: #0B4A47;
  color: rgba(255,255,255,.85);
  padding:70px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap:40px;
  margin-bottom:50px;
}
@media (max-width: 880px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

.site-footer h4{
  color:#fff;
  font-family: var(--hw-font-head);
  font-size:1rem;
  margin-bottom:16px;
}
.site-footer a{ color: rgba(255,255,255,.78); }
.site-footer a:hover{ color:#fff; }
.footer-logo img{ max-height:54px; margin-bottom:16px; }
.footer-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-social{ display:flex; gap:14px; margin-top:16px; }
.footer-social a{
  width:38px; height:38px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.footer-partners{ display:flex; gap:20px; flex-wrap:wrap; align-items:center; }
.footer-partners img{ max-height:40px; }

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.15);
  padding-top:24px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  font-size:.85rem;
  color: rgba(255,255,255,.6);
}

/* ==========================================================================
   11. UTIL
   ========================================================================== */

.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.badge{
  display:inline-block;
  background: rgba(255,255,255,.2);
  padding:4px 12px;
  border-radius:999px;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.4px;
}
.empty-state{ text-align:center; padding:60px 0; color: var(--hw-text-light); }

/* ==========================================================================
   12. STRONA JEDNOSTRONICOWA — kotwice, program bez zakładek
   ========================================================================== */

/* Offset dla kotwic pod stałym nagłówkiem */
.hero, #o-human-week, #program, #prelegenci, #partnerzy,
#palac-potockich, #kino-pod-baranami, #muzeum-narodowe-kamienica-szolayskich, #program-stowarzyszenia{
  scroll-margin-top: 84px;
}

.p-ticket-btn{
  display:inline-block;
  margin-top:10px;
  font-family: var(--hw-font-head);
  text-transform:uppercase;
  letter-spacing:.4px;
  font-size:.78rem;
  background: var(--hw-teal-dark);
  color:#fff;
  padding:8px 18px;
  border-radius:999px;
}
.p-ticket-btn:hover{ background: var(--hw-blue); color:#fff; }
