/*
Theme Name: Iluzja Dance
Theme URI: https://stiluzja.pl
Author: Arturro
Description: Własny motyw dla Studio Tańca Iluzja — Joanna Gędoś Chmielowska. Fioletowa, elegancka strona informacyjna z kursem (CPT), aktualnościami i kontaktem.
Version: 1.6.3
License: GNU General Public License v2 or later
Text Domain: stiluzja
*/

/* ============ ZMIENNE ============ */
:root {
  --violet: #5b2e91;
  --violet-dark: #3f1f66;
  --violet-deep: #2a1245;
  --lavender: #e6dff5;
  --lavender-soft: #f4f0fa;
  --ink: #241b31;
  --muted: #6f6580;
  --white: #ffffff;
  --line: #e5def0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(59, 31, 97, .10);
  --shadow-lg: 0 18px 50px rgba(59, 31, 97, .18);
}

/* ============ RESET / BAZA ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--violet-deep);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--violet); text-decoration: none; transition: color .2s; }
a:hover { color: var(--violet-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-lavender { background: var(--lavender-soft); }
.section-dark { background: linear-gradient(160deg, var(--violet-deep), var(--violet)); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; font-weight: 600; color: var(--violet);
  background: var(--lavender); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-dark .kicker { background: rgba(255,255,255,.15); color: #e9defc; }
.section-head p { color: var(--muted); margin-top: 10px; }
.section-dark .section-head p { color: rgba(255,255,255,.75); }

/* ============ PRZYCISKI ============ */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border: 2px solid transparent; cursor: pointer; transition: all .2s; text-align: center;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-light { background: #fff; color: var(--violet); }
.btn-light:hover { background: var(--lavender); color: var(--violet-deep); transform: translateY(-2px); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ============ TOPBAR ============ */
.topbar { background: var(--violet-deep); color: rgba(255,255,255,.85); font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-contact .ico { color: #c9b2ec; margin-right: 7px; }
.topbar-social a { display: inline-block; margin-left: 12px; }
.topbar-social .ico { font-size: 1rem; }

/* ============ NAGŁÓWEK ============ */
.site-header { background: #fff; box-shadow: 0 2px 14px rgba(59,31,97,.08); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 104px; gap: 20px; position: relative; }
.site-brand { display: flex; align-items: center; gap: 14px; }
.site-brand img { height: 92px; width: auto; }
.site-brand .brand-text { line-height: 1.2; }
.site-brand .brand-name { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 800; color: var(--violet-deep); display: block; }
.site-brand .brand-sub { font-size: .68rem; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); display: block; }

.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 16px; font-weight: 500; font-size: .95rem;
  color: var(--ink); border-radius: 999px; position: relative;
}
.main-nav a:hover { color: var(--violet); background: var(--lavender-soft); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--violet); background: var(--lavender); font-weight: 600; }
.main-nav .nav-cta a { background: var(--violet); color: #fff; padding: 11px 24px; margin-left: 8px; }
.main-nav .nav-cta a:hover { background: var(--violet-dark); }

.menu-toggle { display: none; background: none; border: 2px solid var(--lavender); border-radius: 10px; padding: 8px 12px; font-size: 1.3rem; color: var(--violet); cursor: pointer; }

@media (max-width: 900px) {
  .topbar .topbar-contact span.time { display: none; }
  .topbar .topbar-contact { display: none; }
  .topbar-social { margin-left: auto; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 16px 30px rgba(0,0,0,.12); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .main-nav a { padding: 12px 16px; }
  .main-nav .nav-cta { margin: 8px 0 0; }
  .main-nav .nav-cta a { text-align: center; }
  .site-brand img { height: 68px; }
}

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--violet-deep) 0%, var(--violet) 55%, #7a4bbd 100%);
}
.hero .hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 84px 0; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 18px; }
.hero h1 .accent { color: #cbb3f2; }
.hero .lead { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 520px; margin-bottom: 30px; }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* bez ramki/cienia — zdjęcie przezroczyste (np. logo) ma stać na gradiencie bez prostokąta */
.hero .hero-img { max-width: 100%; }
.hero .hero-img img { width: 100%; height: auto; display: block; }
.hero .hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3); padding: 7px 16px; border-radius: 999px;
  font-size: .82rem; margin-bottom: 20px; letter-spacing: .04em;
}
@media (max-width: 860px) {
  .hero .hero-inner { grid-template-columns: 1fr; padding: 56px 0; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .hero-actions { justify-content: center; }
  .hero .hero-img { max-width: 480px; margin: 0 auto; transform: none; }
}

/* ============ KARTY / KURSY ============ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .cards-grid, .cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid, .cards-grid.cols-2 { grid-template-columns: 1fr; } }

.course-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.course-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--violet), #9a6fd0);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-card .cat-badge {
  align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--lavender); color: var(--violet); padding: 5px 13px; border-radius: 999px;
}
.course-card h3 { font-size: 1.3rem; }
.course-card p.desc { color: var(--muted); font-size: .94rem; flex: 1; }
.course-meta { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 7px; }
.course-meta .row { display: flex; gap: 10px; font-size: .9rem; color: var(--ink); }
.course-meta .row .ico { color: var(--violet); flex: none; width: 18px; text-align: center; }
.course-meta .row .lbl { color: var(--muted); min-width: 86px; flex: none; }

/* ============ AKTUALNOŚCI ============ */
/* Odstęp tylko na liście wpisów; siatka na stronie głównej bez zmian. */
.blog main .news-item + .news-item { margin-top: clamp(24px, 3vw, 32px); }
.news-item { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.news-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-item .thumb { aspect-ratio: 16/9; min-height: 150px; overflow: hidden; background: var(--lavender); }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-item:hover .thumb img { transform: scale(1.05); }
.news-item .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-item .date { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.news-item h3 { font-size: 1.08rem; margin: 6px 0 8px; }
.news-item h3 a { color: var(--violet-deep); }
.news-item h3 a:hover { color: var(--violet); }
.news-item p { color: var(--muted); font-size: .9rem; }

/* ============ KONTAKT ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center;
}
.contact-card .ico-wrap {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--lavender); color: var(--violet); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-family: 'Poppins', sans-serif; font-weight: 600; }
.contact-card p, .contact-card a { color: var(--muted); font-size: .95rem; }
.contact-card a { font-weight: 600; color: var(--violet); }
.contact-card:has(.ico-wrap:empty) h3:only-of-type ~ *:first-child { display: none; }

/* ============ STRONA POJEDYNCZA ============ */
.page-hero {
  background: linear-gradient(120deg, var(--violet-deep), var(--violet));
  color: #fff; padding: 64px 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 45%);
}
.page-hero h1 { color: #fff; position: relative; z-index: 1; }
.page-hero .crumb { color: rgba(255,255,255,.7); font-size: .85rem; margin-bottom: 10px; position: relative; z-index: 1; }
.page-hero .crumb a { color: rgba(255,255,255,.7); }
.page-hero .crumb a:hover { color: #fff; }

.entry-content { max-width: 820px; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2, .entry-content h3 { margin: 1.6em 0 .8em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.4em; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { text-decoration: underline; }
.entry-content img { border-radius: var(--radius); margin: 1.2em 0; }
/* Emoji wklejone z Facebooka (PNG 16px ze static.xx.fbcdn.net) — trzymaj inline przy tekście */
.entry-content span.fb-emoji { display: inline-block; margin: 0; vertical-align: -0.125em; }
.entry-content span.fb-emoji img { display: inline-block; width: 1.3em; height: 1.3em; margin: 0; border-radius: 0; }

/* ============ KURS — SINGLE ============ */
.kurs-detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .kurs-detail { grid-template-columns: 1fr; } }
.kurs-facts {
  background: var(--lavender-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: sticky; top: 120px;
}
.kurs-facts .row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.kurs-facts .row:last-child { border-bottom: 0; }
.kurs-facts .row .ico { color: var(--violet); width: 20px; text-align: center; flex: none; }
.kurs-facts .row .lbl { color: var(--muted); min-width: 92px; flex: none; }
.kurs-facts .row .val { font-weight: 600; color: var(--ink); }
.kurs-facts .btn { width: 100%; margin-top: 14px; }

/* ============ STOPKA ============ */
.site-footer { background: var(--violet-deep); color: rgba(255,255,255,.8); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
@media (max-width: 800px) { .footer-main { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { color: #fff; font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }
.site-footer .f-logo img { height: auto; max-width: 320px; width: 100%; margin-bottom: 14px; border-radius: 10px; }
.site-footer .f-desc { font-size: .92rem; max-width: 320px; }
.site-footer ul li { padding: 5px 0; font-size: .94rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { color: #c9b2ec; margin-top: 3px; }
.f-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,.1); margin-right: 10px; font-size: 1.05rem;
}
.f-social a:hover { background: var(--violet); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .84rem; text-align: center; color: rgba(255,255,255,.55); }

/* ============ ROZNE ============ */
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.empty-note { color: var(--muted); text-align: center; padding: 30px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ikony (fontello-free: używamy pseudo-elementów i emoji-agnostic SVG backgroundów) */
.ico { font-style: normal; }
.ico-phone::before { content: "✆"; }
.ico-mail::before { content: "✉"; }
.ico-clock::before { content: "◷"; }
.ico-pin::before { content: "◉"; }
.ico-users::before { content: "⚇"; }
.ico-cal::before { content: "▦"; }
.ico-fb::before { content: "f"; font-weight: 800; font-family: 'Poppins', sans-serif; }
