/* ===== Nowa Szkoła Ełk – style dodatkowe ===== */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* --- Nagłówek: przyklejony, z cieniem po przewinięciu --- */
.site-header { position: sticky; top: 0; z-index: 50; transition: box-shadow .3s ease, background-color .3s ease; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(31,61,51,.12); }
.site-header .site-logo a { text-decoration: none; color: inherit; }
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation-item__content { position: relative; }
.site-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
	background: var(--wp--preset--color--olowek); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.site-header .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }

/* --- Hero: powolny „oddech” zdjęcia --- */
.hero { overflow: hidden; }
.hero .wp-block-cover__image-background { animation: ns-kenburns 22s ease-in-out infinite alternate; }
@keyframes ns-kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero h1, .hero p { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .hero-kicker { letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.scroll-hint { display: inline-block; animation: ns-bounce 2.2s ease-in-out infinite; text-decoration: none; }
@keyframes ns-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* --- Pojawianie się sekcji przy przewijaniu (tylko gdy działa JS) --- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .24s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .36s; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .48s; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .6s; }


/* Galerie */
.ns-gallery.wp-block-gallery img { border-radius: 12px; transition: transform .5s ease, filter .5s ease; }
.ns-gallery.wp-block-gallery figure { overflow: hidden; border-radius: 12px; }
.ns-gallery.wp-block-gallery figure:hover img { transform: scale(1.05); filter: saturate(1.1); }

/* Fala między sekcjami */
.wave-top { position: relative; }
.wave-top::before { content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px; background: inherit; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C150 0 300 0 450 14S750 40 900 26 1100 0 1200 10V40Z'/%3E%3C/svg%3E") center/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C150 0 300 0 450 14S750 40 900 26 1100 0 1200 10V40Z'/%3E%3C/svg%3E") center/100% 100% no-repeat; }

/* Mapa */
.map-embed iframe { width: 100%; height: 380px; border: 0; border-radius: 18px; display: block; }


/* Pasek kontaktu na telefonie */
.mobile-cta { display: none; }
@media (max-width: 781px) {
	.mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 1px; background: rgba(31,61,51,.2); box-shadow: 0 -6px 20px rgba(0,0,0,.12); transform: translateY(110%); transition: transform .35s ease; }
	.mobile-cta.is-visible { transform: none; }
	.mobile-cta a { flex: 1; text-align: center; padding: .95rem .5rem calc(.95rem + env(safe-area-inset-bottom)); font-weight: 700; text-decoration: none; color: #fff; background: var(--wp--preset--color--las); }
	.mobile-cta a.alt { background: var(--wp--preset--color--olowek); }
	body { padding-bottom: 64px; }
}

/* Linki w stopce */
.site-footer a { color: inherit; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { color: var(--wp--preset--color--krem); }

/* Szanujemy ustawienie „ogranicz ruch” w telefonie/komputerze */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal, .js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}


/* --- Lightbox (powiększanie zdjęć) --- */
img.is-zoomable { cursor: zoom-in; }
img.is-zoomable:focus-visible { outline: 3px solid var(--wp--preset--color--olowek); outline-offset: 3px; }
html.lb-open { overflow: hidden; }
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: #10201a; color: #fff; }
.lb::backdrop { background: rgba(16,32,26,.94); }
.lb[open] { display: grid; place-items: center; animation: lb-fade .25s ease; }
.lb__fig { margin: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 3.5rem 3.5rem 2.5rem; box-sizing: border-box; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); opacity: 0; transform: scale(.97); transition: opacity .3s ease, transform .3s ease; }
.lb__img.is-in { opacity: 1; transform: none; }
.lb__cap { position: absolute; bottom: .9rem; left: 0; right: 0; text-align: center; font-size: .9rem; opacity: .8; }
.lb__btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s ease; }
.lb__btn:hover, .lb__btn:focus-visible { background: var(--wp--preset--color--olowek); outline: none; }
.lb__close { top: 1rem; right: 1rem; font-size: 1.2rem; }
.lb__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb--single .lb__prev, .lb--single .lb__next, .lb--single .lb__cap { display: none; }
@media (max-width: 600px) { .lb__fig { padding: 3.5rem .5rem 2.5rem; } .lb__prev, .lb__next { top: auto; bottom: .5rem; transform: none; } }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }


/* --- Opinie --- */
.review-card { background: var(--wp--preset--color--krem); border-radius: 18px; padding: 1.6rem 1.6rem 1.2rem; height: 100%; box-shadow: 0 8px 28px rgba(31,61,51,.07); transition: transform .35s ease, box-shadow .35s ease; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(31,61,51,.13); }
.review-stars { color: #E39B1F; letter-spacing: .12em; font-size: 1.15rem; margin: 0; }
.review-quote { border: 0 !important; padding: 0 !important; margin: .6rem 0 !important; font-family: var(--wp--preset--font-family--naglowki); font-style: italic; font-size: 1.08rem; line-height: 1.6; }
.review-author { opacity: .8; margin-top: .4rem; }
.reviews-row { margin-bottom: 1.5rem; }

/* --- Mapa po kliknięciu --- */
.map-consent { position: relative; height: 380px; border-radius: 18px; overflow: hidden; background-size: cover; background-position: center; display: grid; place-items: center; }
.map-consent::before { content: ""; position: absolute; inset: 0; background: rgba(31,61,51,.55); }
.map-consent__box { position: relative; text-align: center; color: #fff; padding: 1.5rem; max-width: 26rem; }
.map-consent__box p { margin: 0 0 1rem; }
.map-consent__btn { background: var(--wp--preset--color--olowek); color: #fff; border: 0; border-radius: 999px; padding: .85rem 1.6rem; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.map-consent__btn:hover { background: var(--wp--preset--color--las); transform: translateY(-2px); }
.map-consent__note { font-size: .85rem; opacity: .9; margin-top: 1rem !important; }
.map-consent__note a { color: #fff !important; }

/* ====== Nowa Szkoła – komponenty ====== */

/* Logo w nagłówku */
.site-logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--wp--preset--color--las); font-family: var(--wp--preset--font-family--naglowki); font-weight: 800; font-size: 1.35rem; line-height: 1; white-space: nowrap; }
.site-logo__img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 10px rgba(31,61,51,.15); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.site-logo:hover .site-logo__img { transform: rotate(-10deg) scale(1.05); }
.site-logo__text span { color: var(--wp--preset--color--olowek); }
.site-header .wp-block-shortcode, .site-header p:empty { margin: 0; }
@media (max-width: 1180px) { .header-cta { display: none !important; } }
@media (max-width: 1000px) { .site-header .wp-block-navigation { --navigation-layout-gap: 1rem; gap: 1rem; } }
@media (max-width: 400px) { .site-logo__text { font-size: 1.1rem; } .site-logo__img { width: 46px; height: 46px; } }

/* Nadtytuł (mały napis nad nagłówkiem) */
.kicker { font-family: var(--wp--preset--font-family--naglowki); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--wp--preset--color--olowek); margin-bottom: -.6rem !important; }
.has-las-background-color .kicker { color: var(--wp--preset--color--slonce); }

/* Podkreślenie „ołówkiem” pod nagłówkami H2 */
.ns-content h2.wp-block-heading::after { content: ""; display: block; width: 84px; height: 10px; margin-top: .35rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 10'%3E%3Cpath d='M2 7c12-5 22-5 32-1s22 4 32-1 12-3 16-1' fill='none' stroke='%23F4B44B' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
.ns-content h2.has-text-align-center::after { margin-left: auto; margin-right: auto; }
.ns-content .wp-block-cover h2::after, .ns-content .cta-band h2::after { display: none; }

/* Hero */
.hero--home .wp-block-cover__inner-container { max-width: 1200px; }
.hero--home h1 { max-width: 15ch; margin-top: .2rem; }
.hero--home p.has-large-font-size { max-width: 40ch; }
.hero .hero-kicker { color: var(--wp--preset--color--slonce); }
.hero .wp-block-cover__background { background: linear-gradient(100deg, rgba(20,40,33,.85) 0%, rgba(20,40,33,.55) 55%, rgba(20,40,33,.25) 100%) !important; opacity: 1 !important; }
.hero--page .wp-block-cover__background { background: rgba(20,40,33,.55) !important; }

/* Zdjęcia „przypięte” lekko przekrzywione */
.tilt-photo img { border-radius: 20px !important; box-shadow: 12px 14px 0 var(--wp--preset--color--slonce); transform: rotate(1.5deg); transition: transform .5s ease, box-shadow .5s ease; }
.tilt-photo--left img { transform: rotate(-1.5deg); box-shadow: -12px 14px 0 var(--wp--preset--color--lisc); }
.tilt-photo:hover img { transform: rotate(0) scale(1.01); }

/* Siatki kart */
.card-grid { display: grid !important; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card-grid > * { margin: 0 !important; }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 400px) { .card-grid--2 { grid-template-columns: 1fr; } }

.feature-card, .photo-card, .person-card, .review-card, .step-card, .info-box { background: var(--wp--preset--color--papier); border-radius: 22px; box-shadow: 0 8px 28px rgba(31,61,51,.08); transition: transform .35s ease, box-shadow .35s ease; }
.feature-card:hover, .photo-card:hover, .person-card:hover, .review-card:hover, .step-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31,61,51,.15); }
.feature-card, .step-card { padding: 1.6rem 1.5rem; }
.feature-card h3, .step-card h3 { font-size: 1.35rem !important; margin: .4rem 0 .3rem; }
.feature-card p, .step-card p { margin: 0; }
.feature-icon { font-size: 2rem; line-height: 1; display: inline-grid !important; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--wp--preset--color--mieta); margin: 0 !important; transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.feature-card:hover .feature-icon, .step-card:hover .feature-icon { transform: rotate(-10deg) scale(1.12); }

/* Pasek z liczbami na ciemnym tle */
.stat-grid .feature-card { background: rgba(255,255,255,.06); box-shadow: none; border: 1px solid rgba(255,255,255,.14); text-align: center; }
.stat-grid .feature-icon { background: rgba(244,180,75,.18); }
.stat-grid h3 { color: var(--wp--preset--color--slonce) !important; }

/* Kroki rekrutacji */
.steps .step-card { text-align: center; position: relative; }
.steps .feature-icon { background: var(--wp--preset--color--slonce); font-family: var(--wp--preset--font-family--naglowki); font-weight: 800; font-size: 1.8rem; color: var(--wp--preset--color--las); }

/* Karty ze zdjęciem */
.photo-card { overflow: hidden; padding-bottom: 1.2rem; }
.photo-card .wp-block-image { margin: 0 0 .8rem; overflow: hidden; border-radius: 0; }
.photo-card .wp-block-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 0 !important; transition: transform .6s ease; }
.photo-card:hover .wp-block-image img { transform: scale(1.06); }
.photo-card h3, .photo-card p { padding: 0 1.4rem; }
.photo-card h3 { font-size: 1.3rem !important; margin: 0 0 .3rem; }

/* Kadra */
.person-card { overflow: hidden; padding-bottom: 1rem; text-align: center; }
.person-card .wp-block-image { margin: 0 0 .8rem; overflow: hidden; }
.person-card .wp-block-image img { aspect-ratio: 1/1; object-fit: cover; object-position: center 25%; width: 100%; border-radius: 0 !important; transition: transform .6s ease; }
.person-card:hover .wp-block-image img { transform: scale(1.05); }
.person-card h3 { font-size: 1.25rem !important; margin: 0 1rem; }
.person-role { margin: .2rem 1rem .6rem !important; color: var(--wp--preset--color--olowek); font-weight: 700; line-height: 1.35; }
.person-more { margin: 0 1rem; text-align: left; font-size: .95rem; }
.person-more summary { cursor: pointer; text-align: center; font-weight: 800; color: #2A6B3F; list-style: none; padding: .35rem 0; }
.person-more summary::-webkit-details-marker { display: none; }
.person-more summary::after { content: " ▾"; display: inline-block; transition: transform .3s ease; }
.person-more[open] summary::after { transform: rotate(180deg); }
.person-more[open] > *:not(summary) { animation: ns-fade-down .35s ease; }
@keyframes ns-fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Ramka z informacjami */
.info-box { padding: 1.8rem; border-top: 6px solid var(--wp--preset--color--slonce); }
.info-box h3 { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--wp--preset--color--mieta); border-radius: 999px; padding: .3rem .85rem; font-size: .92rem; font-weight: 700; }
.account-no { font-family: var(--wp--preset--font-family--naglowki); color: var(--wp--preset--color--las); letter-spacing: .02em; }

/* Duży cytat */
.big-quote { border: 0 !important; padding: 0 !important; margin: 0 auto 2.5rem !important; max-width: 900px; text-align: center; font-family: var(--wp--preset--font-family--naglowki); font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.35; font-weight: 600; }
.big-quote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--wp--preset--color--slonce); }

/* Wezwanie do działania (żółty pasek) */
.cta-band h2 { color: var(--wp--preset--color--las); }
.cta-band .wp-block-button__link { background: var(--wp--preset--color--las); color: #fff; }
.cta-band .wp-block-button__link:hover { background: var(--wp--preset--color--olowek); }
.cta-band .is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--las); border: 2px solid currentColor; }
.cta-band .is-style-outline > .wp-block-button__link:hover { background: rgba(31,61,51,.08); color: var(--wp--preset--color--las); }
.cta-band__inner { max-width: 760px; margin-inline: auto; }

/* Listy z „ptaszkami” */
.ns-content ul.wp-block-list { list-style: none; padding-left: 0; }
.ns-content ul.wp-block-list li { position: relative; padding-left: 2rem; margin-bottom: .45rem; }
.ns-content ul.wp-block-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--wp--preset--color--lisc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

/* Media społecznościowe */
.social-links { display: flex; gap: .6rem; list-style: none; padding: 0; margin: .6rem 0 0; }
.social-center .social-links { justify-content: center; }
.social-links a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--wp--preset--color--las); transition: transform .3s ease, background .3s ease; }
.social-links svg { width: 1.3rem; height: 1.3rem; fill: #fff; }
.social-links a:hover { transform: translateY(-3px) rotate(-6deg); background: var(--wp--preset--color--olowek); }
.has-las-background-color .social-links a { background: rgba(255,255,255,.12); }

/* Linki na ciemnym tle i przyciski „outline” */
.has-las-background-color a:not(.wp-element-button), .wp-block-cover a:not(.wp-element-button) { color: #fff; }
.has-las-background-color .wp-block-heading { color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: var(--wp--preset--color--las); }
.wp-block-cover .is-style-outline > .wp-block-button__link, .has-las-background-color .is-style-outline > .wp-block-button__link { color: #fff; }
.wp-block-cover .is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.14); }
.wp-element-button { transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.wp-element-button:hover { transform: translateY(-2px); }

/* Pasek tytułu na zwykłych stronach */
.title-band h1 { font-size: var(--wp--preset--font-size--x-large); }

/* Telefon */
@media (max-width: 781px) {
	.hero--home { min-height: 72vh !important; }
	.hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.tilt-photo img, .tilt-photo--left img { box-shadow: 8px 10px 0 var(--wp--preset--color--slonce); }
	.big-quote::before { font-size: 3rem; }
}
.mobile-cta a.alt { color: var(--wp--preset--color--tusz) !important; background: var(--wp--preset--color--slonce) !important; }

/* ====== Strona startowa: dwa kafelki ====== */
.header-start .site-logo { font-size: 1.6rem; }
.header-start .site-logo__img { width: 72px; height: 72px; }
.landing h1 { font-size: var(--wp--preset--font-size--x-large); margin-top: 0; }
.tiles { gap: 1.6rem !important; margin-top: 1.5rem !important; }
.tiles > .wp-block-column { display: flex; }
.tile { position: relative; flex: 1; border-radius: 26px; overflow: hidden; align-items: flex-end !important; padding: 2rem !important; box-shadow: 0 14px 40px rgba(31,61,51,.18); transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease; }
.tile .wp-block-cover__background { background: linear-gradient(180deg, rgba(20,40,33,0) 30%, rgba(20,40,33,.88) 100%) !important; opacity: 1 !important; }
.tile .wp-block-cover__image-background { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tile:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(31,61,51,.28); }
.tile:hover .wp-block-cover__image-background { transform: scale(1.07); }
.tile .wp-block-cover__inner-container { width: 100%; }
.tile h2 { margin: .1rem 0 .3rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.tile p { margin-top: 0; }
.tile .hero-kicker { color: var(--wp--preset--color--slonce); letter-spacing: .16em; text-transform: uppercase; font-weight: 800; font-size: .85rem; margin: 0; }
.tile { cursor: pointer; } /* cała karta klikalna (site.js) */
.tile .wp-block-button__link:focus-visible { outline: 3px solid var(--wp--preset--color--slonce); outline-offset: 4px; }
.tile--left .wp-block-cover__image-background { object-position: 60% 40%; }
@media (max-width: 781px) { .tile { min-height: 52vh !important; padding: 1.4rem !important; } }
