/* Motyw Donacja – układ, nagłówek, hero, sekcje, stopka. Kolory: theme.json. */

:root {
	--fd-plum: var(--wp--preset--color--plum);
	--fd-plum-2: var(--wp--preset--color--plum-2);
	--fd-red: var(--wp--preset--color--red);
	--fd-red-dark: var(--wp--preset--color--red-dark);
	--fd-coral: var(--wp--preset--color--coral);
	--fd-lav: var(--wp--preset--color--lavender);
	--fd-cream: var(--wp--preset--color--cream);
	--fd-muted: var(--wp--preset--color--muted);
	--fd-border: var(--wp--preset--color--border);
	--fd-section-y: clamp(3.5rem, 7vw, 5.5rem);
}

body { -webkit-font-smoothing: antialiased; }
/* Fokus dwukolorowy: śliwka na jasnym tle, kremowy pierścień na ciemnym – kontrast ≥ 3:1 na każdym tle (WCAG 1.4.11). */
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--fd-plum); outline-offset: 2px; box-shadow: 0 0 0 2px var(--fd-cream); }
.skip-link.screen-reader-text:focus { background: var(--fd-plum); color: #fff; border-radius: 8px; padding: 12px 18px; }
.fd-muted { color: var(--fd-muted); }
.fd-code { font-family: var(--wp--preset--font-family--poppins); letter-spacing: .06em; }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Pasek z kodem */
.fd-topbar { background: var(--fd-lav); color: var(--fd-plum); font-size: .875rem; padding-block: .55rem; }
.fd-topbar p { margin: 0; }
.fd-topbar a { color: var(--fd-plum); font-weight: 600; }
.fd-topbar__links { display: flex; align-items: center; gap: 14px; }
.fd-social-icons { display: inline-flex; align-items: center; gap: 4px; }
.fd-social-icons__link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; color: var(--fd-plum); }
.fd-social-icons__link:hover { background: var(--fd-plum); color: var(--fd-cream); }

/* Nagłówek */
.fd-header { background: var(--fd-cream); border-bottom: 1px solid var(--fd-border); padding-block: 1rem; }
.fd-header__row { gap: 1rem 2rem; }
.fd-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.fd-brand img { display: block; height: 52px; width: auto; }
.fd-brand .fd-brand__word { height: 40px; }
.fd-brand--footer img { height: 48px; }
.fd-brand--footer .fd-brand__word { height: 38px; }
.fd-nav { flex: 1 1 auto; justify-content: center; }
.fd-nav .wp-block-navigation__container { gap: .4rem 1.1rem; }
.fd-nav .wp-block-navigation-item__content { white-space: nowrap; }
@media (min-width: 1100px) { .fd-header__row { flex-wrap: nowrap !important; } .fd-header__cta { flex-wrap: nowrap; } }
.fd-nav .wp-block-navigation-item__content:hover { text-decoration: underline; }
.fd-nav .current-menu-item > a, .fd-nav [aria-current="page"] { color: var(--fd-red-dark); text-decoration: underline; text-underline-offset: 6px; }
.fd-header__cta { gap: .6rem; }
.fd-header__cta .wp-block-button__link { padding: .6rem 1.1rem; font-size: .9375rem; white-space: nowrap; }
.fd-header > .fd-header__row, .fd-topbar > .alignwide { max-width: 1320px; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--fd-cream); color: var(--fd-plum); padding: 2rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; padding: .4rem 0; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }

/* Przyciski – warianty */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--fd-plum); border-color: var(--fd-plum); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--fd-plum); color: var(--fd-cream); border-color: var(--fd-plum); }
.wp-block-button.fd-btn-coral > .wp-block-button__link { background: var(--fd-coral); border-color: var(--fd-coral); color: var(--fd-plum); }
.wp-block-button.fd-btn-coral > .wp-block-button__link:hover { background: #ff8a78; border-color: #ff8a78; color: var(--fd-plum); }
.wp-block-button.fd-btn-light > .wp-block-button__link { background: transparent; border-color: var(--fd-cream); color: var(--fd-cream); }
.wp-block-button.fd-btn-light > .wp-block-button__link:hover { background: var(--fd-cream); color: var(--fd-plum); }
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; }

/* Hero */
.fd-hero { position: relative; overflow: hidden; background: var(--fd-plum); color: var(--fd-cream); padding-block: clamp(4rem, 9vw, 6.5rem); }
.fd-hero > *:not(.fd-cells) { position: relative; }
.fd-hero__title { color: #fff; margin-block: .5rem 1.25rem; }
.fd-hero__lead { font-size: 1.1875rem; color: #F3E9F0; max-width: 36rem; margin-bottom: 2rem; }
.fd-eyebrow { font-family: var(--wp--preset--font-family--poppins); font-weight: 700; font-size: .9375rem; letter-spacing: .03em; color: var(--fd-coral); margin: 0; }
.fd-eyebrow--dark { color: var(--fd-red-dark); }
.fd-hero__art { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.fd-heart { width: min(260px, 60vw); height: auto; }
.fd-motion { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid #8C79A3; background: transparent; color: var(--fd-cream); font: inherit; font-size: .875rem; cursor: pointer; }
.fd-motion:hover { background: var(--fd-plum-2); }

.fd-cells { position: absolute; inset: 0; pointer-events: none; max-width: none !important; margin: 0 !important; }
.fd-cell { --r: 0deg; position: absolute; display: block; aspect-ratio: 100 / 64; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64'%3E%3Cellipse cx='50' cy='32' rx='48' ry='30' fill='%23C8102E'/%3E%3Cellipse cx='50' cy='33' rx='40' ry='24' fill='%23D9293F'/%3E%3Cellipse cx='51' cy='35' rx='23' ry='12' fill='%239E0C24'/%3E%3Cpath d='M16 24 Q34 6 66 8' stroke='%23F0707A' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); transform: rotate(var(--r)); animation: fd-float 11s ease-in-out infinite; }
.fd-cell--1, .fd-cell--4, .fd-cell--6, .fd-cell--8 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64'%3E%3Cellipse cx='50' cy='32' rx='48' ry='30' fill='%23E8604C'/%3E%3Cellipse cx='50' cy='33' rx='40' ry='24' fill='%23FF6F59'/%3E%3Cellipse cx='51' cy='35' rx='23' ry='12' fill='%23C9483A'/%3E%3Cpath d='M16 24 Q34 6 66 8' stroke='%23FFA594' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* Krwinki przy krawędziach i między kolumnami – z dala od tekstu, przycisków i logo; rozmiar względem szerokości ekranu */
.fd-cell--1 { --r: -18deg; left: 1%; top: 3%; width: clamp(60px, 6vw, 120px); opacity: .6; }
.fd-cell--2 { --r: 5deg; left: 50%; top: 4%; width: clamp(40px, 3.5vw, 72px); opacity: .55; animation-duration: 12s; animation-delay: -3s; }
.fd-cell--3 { --r: -30deg; left: 84%; top: -6%; width: clamp(110px, 12vw, 230px); opacity: .9; animation-duration: 16s; animation-delay: -6s; }
.fd-cell--4 { --r: 24deg; left: 89%; top: 60%; width: clamp(90px, 10vw, 200px); opacity: .85; animation-duration: 13s; animation-delay: -2s; }
.fd-cell--5 { --r: 12deg; left: 57%; top: 80%; width: clamp(80px, 8vw, 160px); opacity: .8; animation-duration: 14s; }
.fd-cell--6 { --r: -8deg; left: 60%; top: 14%; width: clamp(40px, 4vw, 80px); opacity: .6; animation-duration: 15s; animation-delay: -5s; }
.fd-cell--7 { --r: 30deg; left: 2%; top: 86%; width: clamp(60px, 6vw, 120px); opacity: .7; animation-duration: 17s; animation-delay: -4s; }
.fd-cell--8 { --r: 16deg; left: 30%; top: -5%; width: clamp(60px, 6vw, 110px); opacity: .5; animation-duration: 13s; animation-delay: -7s; }
.fd-cell--9 { --r: -22deg; left: 66%; top: 88%; width: clamp(50px, 5vw, 100px); opacity: .65; animation-duration: 12s; animation-delay: -1s; }
@keyframes fd-float { 0%, 100% { transform: translate(0, 0) rotate(var(--r)); } 50% { transform: translate(10px, -14px) rotate(calc(var(--r) + 12deg)); } }
.fd-heart { animation: fd-pulse 3.2s ease-in-out infinite; }
@keyframes fd-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.fd-motion-paused .fd-cell, .fd-motion-paused .fd-heart { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
	.fd-cell, .fd-heart { animation: none; }
	.fd-motion { display: none; }
}
@media (max-width: 781px) {
	.fd-cell--1, .fd-cell--2, .fd-cell--4, .fd-cell--5, .fd-cell--6, .fd-cell--7, .fd-cell--8, .fd-cell--9 { display: none; }
	.fd-cell--3 { left: 78%; top: 82%; width: 110px; }
	.fd-hero__art { display: none; }
}

/* Sekcje */
.fd-section { padding-block: var(--fd-section-y); }
.fd-section--tight { padding-block: 0 var(--fd-section-y); }
.fd-section--white { background: #fff; }
.fd-section__head { gap: .5rem 1.5rem; margin-bottom: 2rem; }
.fd-section__head h2, .fd-section__head p { margin: 0; }
.fd-section__head .fd-muted { margin-top: .5rem; max-width: 40rem; }

/* Kafelki (bento) */
.fd-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 20px; }
.fd-bento > * { margin: 0 !important; }
.fd-card { position: relative; border-radius: 24px; padding: clamp(1.5rem, 3vw, 2rem); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.fd-card > * { margin: 0; }
.fd-card--big { grid-column: span 2; }
@media (max-width: 781px) { .fd-card--big { grid-column: auto; } }
.fd-card--red { background: var(--fd-red); color: #fff; }
.fd-card--lav { background: var(--fd-lav); color: var(--fd-plum); }
.fd-card--white { background: #fff; border: 1px solid var(--fd-border); color: var(--fd-plum); }
.fd-card__label { font-size: .875rem; font-weight: 600; }
.fd-card--white .fd-card__label { color: var(--fd-red-dark); }
.fd-card__title { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }
.fd-card--big .fd-card__title { font-size: clamp(1.5rem, 2.6vw, 1.875rem); max-width: 26rem; }
.fd-card__title a { color: inherit; text-decoration: none; }
.fd-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fd-card:hover .fd-card__title a { text-decoration: underline; }
.fd-card:focus-within { outline: 3px solid var(--fd-plum); outline-offset: 3px; box-shadow: 0 0 0 2px var(--fd-cream); }
.fd-card__title a:focus-visible { outline: none; }
.fd-card__more { font-weight: 600; }

/* Formularz wolontariusza */
.fd-join { gap: clamp(2rem, 5vw, 4rem); }
.fd-form-card { background: #fff; border: 1px solid var(--fd-border); border-radius: 24px; padding: clamp(1.25rem, 3vw, 2rem); }
.fd-form-card .ff-el-input--label label, .fd-main .ff-el-input--label label { font-weight: 600; color: var(--fd-plum); }
.fd-main .ff-el-form-control { min-height: 48px; border-radius: 12px; border: 1.5px solid #8E7FA0; color: var(--fd-plum); }
.fd-main .ff-btn-submit { background: var(--fd-red) !important; border-radius: 999px !important; font-family: var(--wp--preset--font-family--poppins); font-weight: 700; min-height: 52px; padding: 0 2rem !important; }

/* Pas „Wesprzyj” */
.fd-support-band { background: var(--fd-plum); color: var(--fd-cream); border-radius: 28px; padding: clamp(1.75rem, 5vw, 3.5rem); gap: 2.5rem; }
.fd-support-band h2 { color: #fff; }
.fd-support-band a { color: var(--fd-coral); }
.fd-support-band .fd-btn--coral { color: var(--fd-plum); }

/* Strony treściowe */
.fd-main { padding-block: clamp(2rem, 5vw, 3.5rem) var(--fd-section-y); }
.fd-main--home { padding-block: 0; }
.fd-page-head { margin-bottom: 1.5rem; }
.fd-back { margin: 0 0 .5rem; font-size: .9375rem; }
.fd-main .wp-block-post-content > h2 { margin-top: 2.5rem; font-size: clamp(1.5rem, 3vw, 1.875rem); }
.fd-main .wp-block-post-content > h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.fd-callout { background: var(--fd-lav-bg, #F3EEFB); border-radius: 18px; padding: 1.25rem 1.5rem; }
.fd-callout > * { margin-block: .5rem; }
.fd-query-card { background: #fff; border: 1px solid var(--fd-border); border-radius: 20px; padding: 1.25rem; height: 100%; }
.fd-query-card .wp-block-post-featured-image { margin: -1.25rem -1.25rem 1rem; border-radius: 20px 20px 0 0; overflow: hidden; }
.fd-query-card .wp-block-post-title a { text-decoration: none; color: var(--fd-plum); }
.fd-query-card .wp-block-post-title a:hover { text-decoration: underline; }
.wp-block-gallery .wp-block-image img { border-radius: 12px; }

/* Stopka */
.fd-footer { background: var(--fd-plum); color: var(--fd-cream); padding-block: 4rem 2rem; font-size: .9375rem; }
.fd-footer a { color: var(--fd-cream); }
.fd-footer a:hover { color: var(--fd-coral); }
.fd-footer__h { font-size: 1rem; color: var(--fd-coral); margin: 0 0 .75rem; }
.fd-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.fd-footer__cols p { color: #E6DCEF; }
.fd-footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #4A3862; font-size: .8125rem; color: #D9CCE6; gap: .5rem 1.5rem; }
.fd-footer__bottom p { margin: 0; }
