/*
Theme Name: FWT Custom Theme
Theme URI: https://lea24.pl/
Description: Lekki motyw WordPress od zera — sticky header, hero z YouTube (autoplay/mute/loop) i animowany tekst, Gutenberg + podstawowe WooCommerce.
Author: LEA24
Author URI: https://lea24.pl/
Version: 1.0.4
Text Domain: fwt-lean
*/

/* * { box-sizing: border-box; } */
html, body { margin: 0; padding: 0; font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 20px; font-weight:400; }
body { line-height: 1.6; color: #111; background: #fff; }
p, li { font-size: .8rem;color: #333; }
h1, h2, .semibold { font-weight: 600; line-height:1.5; }
h3 { font-size: 32px; font-weight: 600; color: #333; margin-top:0;line-height:1.4;}
p.wide-dark-block {
  font-size: 1rem;
}
:root { --header-h: 135px; --container-w: 1380px; --small-container-w: 1080px; --verysmall-container-w: 780px; }

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.full-w {
  width: 100dvw;
  margin-left: calc(50% - 50dvw);
}
.margin-bottom-0, .mb-0 {
  margin-bottom: 0;
}
.mt-0 {
  margin-top: 0;
}
.container { max-width: var(--container-w); margin: 0 auto; }

.gap-2-em, .gap-2-em:where(.wp-block-columns.is-layout-flex) {
	gap: 2em !important;
}
.gap-02-em, .gap-02-em:where(.wp-block-columns.is-layout-flex) {
	gap: 0.2em !important;
}


.cudzyslow {
	max-width: 20px;
}

/* Header (fixed) */
.site-header {max-width: 100vw; position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); background: rgba(255,255,255,1); color: #333; z-index: 1000; backdrop-filter: saturate(120%) blur(6px); }
.site-header .container { max-width: var(--container-w); margin: 0 auto; padding: 0 16px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding .site-title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.site-branding a { color: #333; text-decoration: none; }
.site-nav { display: flex; align-items: center; }
.main-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.main-menu li { margin: 0; padding: 0; font-size: 13px; font-weight: 600; }
.main-menu a { color: #333; text-decoration: none; padding: 8px 2px; display: inline-block; }
.main-menu .current-menu-item > a, .main-menu a:hover, .main-menu a:focus { opacity: 0.85; }
.custom-logo {display: block;}

/* Push body down so content isn't under fixed header */
body { padding-top: var(--header-h); }

/* Hero section with YouTube background */
.hero { position: relative; min-height: 1080px; display: grid; place-items: center; overflow: hidden; color: #fff; margin: 0 auto;}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); z-index: 0; }
.video-background { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.video-background .bg-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 177.78vh; height: 100vh; min-width: 100%; min-height: 100%; pointer-events: none; }
.hero-text { position: relative;z-index: 1;text-align: left;padding: 0 1rem;left: 0;width: var(--container-w); }
.hero-text h1 { margin: 0; font-size: clamp(28px, 6vw, 64px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.bg-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; pointer-events: none; }
.narrow-block {width:var(--small-container-w);margin: 0 auto;max-width: 100%; padding: 0 15px;}
.verynarrow-block {width:var(--verysmall-container-w);margin: 0 auto;max-width: 100%;}
.wide-block {width:var(--container-w);margin: 0 auto;max-width: 100%;}

@media (max-width: 800px) {
	.hero {min-height: 605px;}
}

/* Rotating words & letter animation */
.rotator { display: inline-block; position: absolute; isolation: isolate; min-width: 10ch; vertical-align: baseline; top:90px;left:20px; }
.word { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; white-space: nowrap; }
.word.active { opacity: 1; }
.letter { display: inline-block; opacity: 0; transform: translateY(.5em); }
.letter-in { animation: letterIn .5s forwards; }
@keyframes letterIn { to { opacity: 1; transform: translateY(0); } }

/* Content */
.site-main { max-width: var(--container-w); margin: 0 auto; padding: 0 16px; max-width: 100%; box-sizing: border-box; }
.site-main-margin {margin-top:50px;}
.entry-content > *:first-child { margin-top: 0; }
.quote {position: relative; padding-left: 1.2em;}
.quote::before {content: "„"; position: absolute; left: 20px; top: 20px; line-height: 1; font-size: 100px; color: #0e7a73; font-family: 'Times New Roman', Times, serif;}
.quote p { font-size: 30px !important; color:#0e7a73 !important;font-style: italic; margin-bottom:0; }
.quote-author { font-size: 20px !important; color:#333 !important;font-weight:normal; margin-top:0; }
.wp-block-buttons .wp-block-button__link { border-radius: 0;background: #0e7a73;padding:12px 18px;font-size:16px; line-height:normal;}
.wp-block-buttons .wp-block-button__link:hover {background-color: #1f5d4f;}
.green-text {color:#0e7a73 !important;}
.no-margin-top {margin-top:0 !important;}
.no-margin-bottom {margin-bottom:0 !important;}
.no-padding-top {padding-top:0 !important;}
.no-padding-bottom {padding-bottom:0 !important;}
.wide-verydark-block-heading {
  color: #fff;
  padding:20px 0 0 0;
}
.wide-verydark-block {
  position: relative;
  z-index: 0;
  background: none;
  color: #fff;
  padding: 60px;
}
.fotel-bg {
  background: url("/wp-content/uploads/2025/11/loteria_charytatywna_hero_img.jpg");background-position: bottom right;background-repeat: no-repeat;background-size: cover;padding: 250px 0;color: #fff;
	text-shadow: 0px 0px 5px rgba(108, 108, 108, 1);
}
.fotel-bg p {
  color: #fff;
	text-shadow: 0px 0px 5px rgba(108, 108, 108, 1);
}
.fotel-bg h1 {
  font-size: 36px;
}

@media (max-width: 800px) {
  .fotel-bg {
    padding: 100px 0;
    background-size: cover;
  }
  .fotel-bg h1 {
    font-size: 24px;
  }
}

/* pseudo-element z pełnoekranowym tłem */

.wide-light-block {
  position: relative;
  z-index: 0;
  background: none;
  padding: 60px;
}
/* pseudo-element z pełnoekranowym tłem */
.wide-light-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width:  var(--container-w);
  margin-left: calc(-700px + 50%);
  background: #fff center/cover no-repeat;
  z-index: -1;
}
.wide-verydark-block .wpcf7-email {
  float: left;
  background: none;
  border-bottom: 1px solid #fff;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  color: #fff;
  font-size: 16px;
  width: 200px;
  padding: 4px;
}
.wpcf7-form-lotery {
  /* display:flex; */
}
.wpcf7-form-lotery p {
  display:flex;
  flex-wrap: wrap;
  gap: 20px 20%;
  position: relative;
}
.wpcf7-form-lotery .wpcf7-spinner {
  position: absolute;
  top: 2px;
  right: -5px;
}
.wpcf7-form-lotery .wpcf7-form-control,
.wpcf7-form-lotery .wpcf7-form-control-wrap {
  flex: 1;
}
.wpcf7-form-lotery input[type="email"] {
  background: none;
  color: #fff;
  padding: 15px 0 15px 5px;
  border: none;
  border-bottom: 1px solid #fff;
  width: 100%;
}
.wpcf7-form-lotery input[type="email"]::-webkit-input-placeholder {
  color: #fff !important;
  opacity: 1 !important;
}

/* Firefox 19+ */
.wpcf7-form-lotery input[type="email"]::-moz-placeholder {
  color: #fff !important;
  opacity: 1 !important;
}

/* Firefox 4 - 18 */
.wpcf7-form-lotery input[type="email"]:-moz-placeholder {
  color: #fff !important;
  opacity: 1 !important;
}

/* IE 10+ */
.wpcf7-form-lotery input[type="email"]:-ms-input-placeholder {
  color: #fff !important;
  opacity: 1 !important;
}

/* Microsoft Edge / modern browsers (standard) */
.wpcf7-form-lotery input[type="email"]::placeholder {
  color: #fff !important;
  opacity: 1 !important;
}

.wpcf7-form-lotery .wpcf7-submit {
  max-width: 250px;
}

.wpcf7-submit {
  border-radius: 0;
  border:0;
  color:#0e7a73;
  background-color: #fff;
  padding: 15px 34px;
  font-size: 12px;
}

/* Blog */
.blog-main {
  background: #f7f7f7;
  max-width: 100%;
  padding: 0 0 80px 0;
}
.blog-title {
  max-width: var(--small-container-w);
  margin: 0 auto;
  padding: 80px 15px;
}
.blog-title h1 {
  font-size: 30px;
  font-weight: bolder;
}
.wp-block-latest-posts.wp-block-latest-posts__list img { width:100%;height:auto;max-height: 230px;
  object-fit: cover; }
.wp-block-latest-posts.wp-block-latest-posts__list a { width:100%; text-decoration:none; color:#333;  }
.wp-block-latest-posts.wp-block-latest-posts__list li {border:1px solid #ccc; padding-bottom: 20px}
.wp-block-latest-posts__post-title {font-weight:bold;font-size:13px; display: block;box-sizing: border-box; margin: 5px 0 10px 0;}
.wp-block-latest-posts__post-date {color:#666; font-size: 10px;}
.wp-block-latest-posts__post-excerpt {font-size:10px;}
li > :not(.wp-block-latest-posts__featured-image) {padding: 0 25px;}
.wp-block-latest-posts.is-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.wp-block-latest-posts__featured-image {
  margin-bottom: 10px;
}
.wp-block-latest-posts.columns-3 li {
  width: auto !important;
  max-width: 308px;
  margin: 0 auto !important;
}
.page-hero__title.blog_post__title {
  position: absolute;
  top: 30%;
  font-size: 32px;
  max-width: 600px;
  text-align: left;
  line-height: 1.4;
}
.post-entry {
  padding: 75px 0;
}
.post-template-single-post-no-top .post-entry {
  padding-top: 0;
}

.quote-mark-big {
  font-size: 40px;
  margin: 60px 0 0 0;
  line-height: 0;
}

@media (max-width: 800px) {
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 22px;
  }
  .blog-main {
    padding-bottom: 40px;
  }
  .wp-block-latest-posts.is-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-title {
    padding: 45px 15px 0 15px;
  }
  .page-hero__title.blog_post__title {
    font-size: 26px;
    top: 10%;
    margin: 0 20px;
  }
}

.nav-links {
  text-align: center;
  margin: 30px 0;
  font-size: .7rem;
}
.nav-links a {
  color: #333;
  text-decoration: none;
}
.nav-links a:hover {
  color: #111;
}
.nav-links a.next,
.nav-links a.prev {
  font-weight: bold;
}

.under-main-blog {
  margin: 8% 0 5% 0;
}

  /* Footer */
.site-footer { background: #0e7a73; color: #fff; margin-top: 48px; padding-top:50px;}
.site-footer .footer-inner { max-width: var(--container-w); margin: 50px auto 0 auto; padding: 24px 16px; font-size: 0.85rem; border-top:1px solid #fff; display:flex; }
.site-footer .footer-inner p { text-align: center; color:#eee; }
.site-footer .footer-inner div {width:50%;}
.site-footer .footer-inner span {top: -9px; position: relative; padding-right: 20px;}
.align-right {text-align: right;}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.contact.details {width:var(--container-w);margin: 0 auto;
  max-width: 100vw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);}
.contact.details p {color:#fff;}
.contact.details h4 {color:#fff;}
.footer-col {padding: 0 30px;
  box-sizing: border-box;
  width: auto;}
.footer-heading {font-size:20px; font-weight:bold;}
.footer-heading-smaller {font-weight:bold;font-size:.9125em;text-decoration: underline;}
.footer-list li {list-style-type: none;margin-left:-40px;font-size:.9125em;color: #fff;}
.footer-list li * {padding:0;}
.footer-text {font-size:.9125em;}
.honey-color {color:#f4c905 !important;}

@media (max-width: 500px) {
  .wp-block-latest-posts.is-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .site-footer .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
  .site-footer .footer-inner div {
    width: 100%;
  }
}


/* WooCommerce (very light alignment) */
.woocommerce-breadcrumb {
  display: none;
}
.woocommerce .woocommerce-breadcrumb { max-width: var(--container-w); margin: 0 auto; padding: 8px 16px; }
.woocommerce .products, .woocommerce div.product { max-width: var(--container-w); margin: 0 auto; }
.woocommerce .woocommerce-notices-wrapper { max-width: var(--container-w); margin: 0 auto; padding: 0 16px; }
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  padding: 0;
}
.store-page-header {
  background: #f7f7f7;
  padding: 105px 0;
  margin-bottom: 70px;
}
.store-page-header p {
  max-width: 760px;
  font-size: 18px;
}
/* Responsive */
@media (max-width: 800px) {
  :root { --header-h: 80px; }
  .main-menu { gap: 14px; flex-wrap: wrap; }
  .store-page-header {
    padding: 45px 0;
    margin-bottom: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .word, .letter, .letter-in { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Używasz już .site-header, .main-menu itd. – dopisujemy dropdown */
.main-menu { position: relative; display: flex; gap: 22px; align-items: center; }
.main-menu li { position: relative; }
.main-menu a { display: inline-block; padding: 8px 10px; }

/* przedostatni li w głównym menu */
.main-menu > li:nth-last-child(2) > a {
  background: #ffcc00;
  padding: .6rem 1.2rem;
  border-radius: 40px;
}

.main-menu > li:last-child > a {
  background: #0e7a73;
  color: #fff;
  padding: .6rem 1.2rem;
}
/* Hover/focus */
.main-menu > li:last-child > a:hover,
.main-menu > li:last-child > a:focus {
  background: #0c6b65;
}

/* Poziom 2 – domyślnie ukryty */
.main-menu .sub-menu {
  position: absolute;
  left: 0; top: 75%;
  min-width: 220px;
  background: rgba(255,255,255,0.95);
  color: #333;
  border-radius: 10px;
  padding: 8px 0;
  margin: 6px 0 0 0;
  list-style: none;
  display: none;            /* ukryte na start */
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 1001;
}
.main-menu .sub-menu li a {
  padding: 9px 14px;
  white-space: nowrap;
}
.main-menu .sub-menu li a:hover { background: rgba(255,255,255,0.60); }

/* Pokazuj submenu na desktopie na hover i dla klawiatury (focus-within) */
@media (hover: hover) {
  .main-menu li:hover > .sub-menu,
  .main-menu li:focus-within > .sub-menu { display: block; }
}

/* Poziom 3 – wysuwa się w prawo */
.main-menu .sub-menu .sub-menu {
  top: 0; left: 100%;
  margin-left: 6px;
}

/* Przycisk hamburger (mobile) */
.nav-toggle {
  display: none;
  background: transparent; border: 0; color: #333; cursor: pointer;
}
.nav-toggle .nav-toggle-bar {
  display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0;
}

/* Przycisk do rozwijania podmenu (dodawany JS-em) – pokazujemy tylko w mobile */
.submenu-toggle { display: none; }

/* MOBILE */
@media (max-width: 800px) {
  .contact.details { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: inline-block; }
  .site-nav { position: relative; }

  .main-menu {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    display: none; flex-direction: column; gap: 0;
    background: rgba(255,255,255,0.98);
    padding: 8px 0;
  }
  .main-menu.open {
    display: flex;
    min-width: 100px;
    left: calc(-100vw + 120px);
    text-align: right;
    align-items: end;
    gap: 10px;
    padding: 10px;
  }

  .main-menu > li > a { padding: 12px 16px; }

  /* Submenu w mobile: statyczne, z wcięciem */
  .main-menu .sub-menu {
    position: static; display: none; background: transparent; box-shadow: none;
    padding: 0 0 0 12px; margin: 0;
  }
  .main-menu .menu-item.open > .sub-menu { display: block; }

  /* Pokaż przyciski rozwoju submenu (strzałka) */
  .submenu-toggle {
    display: inline-block; margin-left: 6px;
    background: transparent; border: 0; color: #333; cursor: pointer;
    width: 28px; height: 28px; vertical-align: middle;
  }
  .submenu-toggle::before {
    content: '▾'; font-size: 16px; line-height: 28px; display: inline-block;
  }
  .menu-item.open > .submenu-toggle::before { content: '▴'; }
}
@media (max-width: 500px) {
  .contact.details { grid-template-columns: repeat(1, 1fr); }
  .rotator {
    top: 50px;
  }
  .wpcf7-form-lotery p {
    flex-direction: column;
    align-items: center;
  }
}

/* Submenu domyślnie ukryte, niewidoczne */
.main-navigation ul.sub-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in;       /* płynne przejście nieprzezroczystości */
    transition-delay: 0.3s;                /* ***ważne: opóźnienie zastosowania transition*** */
}

/* Pokazanie submenu na hover rodzica */
.main-navigation li.menu-item-has-children:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s; /* natychmiast pokaż */
}

/* (Opcjonalnie) Utrzymanie submenu, gdy na nie wjedziemy */
.main-navigation li.menu-item-has-children:has(ul.sub-menu:hover) > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}


/* ========== Contact Form 7 — nowoczesny, prosty styl ========== */
:root{
  --fwt-text:#111;
  --fwt-muted:#6b7280;
  --fwt-border:#e5e7eb;
  --fwt-border-strong:#d1d5db;
  --fwt-bg:#fff;
  --fwt-primary:#111;            /* akcent (przycisk/focus) */
  --fwt-danger:#b91c1c;          /* błędy */
  --fwt-success:#047857;         /* sukces */
}

/* Karta formularza */
.contact-form-me {
  background: var(--fwt-bg);
  border: 1px solid var(--fwt-border);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(17,24,39,.06);
  padding: 24px;
  color: var(--fwt-text);
}

/* Siatka pól (3 kolumny → 2 → 1) */
.contact-form-me .input-contact{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
@media (max-width: 1024px){
  .contact-form-me .input-contact{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .contact-form-me .input-contact{ grid-template-columns: 1fr; }
}

/* Tekst wiadomości i przycisk na całą szerokość rzędu */
.contact-form-me .input-text-area,
.contact-form-me .submit-form{
  grid-column: 1 / -1;
}

/* Reset odstępów wewnątrz kontenerów */
.contact-form-me .input-filled p{ margin: 0; }

/* Pola formularza */
.contact-form-me .wpcf7-form-control.wpcf7-text,
.contact-form-me .wpcf7-form-control.wpcf7-email,
.contact-form-me .wpcf7-form-control.wpcf7-tel,
.contact-form-me .wpcf7-form-control.wpcf7-textarea{
  width: 90%;
  background: #fff;
  color: var(--fwt-text);
  border: 1px solid var(--fwt-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  outline: none;
  appearance: none;
}
.contact-form-me .wpcf7-form-control.wpcf7-textarea{
  min-height: 160px;
  resize: vertical;
  width: 97%;
}

/* Placeholder */
.contact-form-me ::placeholder{
  color: var(--fwt-muted);
  opacity: 1;
}

/* Focus (dostępny i wyraźny) */
.contact-form-me .wpcf7-form-control:focus{
  border-color: var(--fwt-primary);
  box-shadow: 0 0 0 4px rgba(17,17,17,.10);
}

/* Walidacja CF7 */
.contact-form-me .wpcf7-form-control.wpcf7-not-valid{
  border-color: var(--fwt-danger);
  box-shadow: 0 0 0 4px rgba(185,28,28,.08);
}
.contact-form-me .wpcf7-not-valid-tip{
  margin-top: 6px;
  color: var(--fwt-danger);
  font-size: .875rem;
}

/* Komunikat (na dole formularza) */
.wpcf7-response-output{
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid var(--fwt-border-strong);
  padding: 12px 14px;
  background: #fafafa;
  color: var(--fwt-text);
}
.wpcf7 form.init .wpcf7-response-output { display: none; }
.wpcf7 form.submitting .wpcf7-response-output { opacity: .6; }
.wpcf7 form.sent    .wpcf7-response-output { border-color: rgba(4,120,87,.35); background: rgba(16,185,129,.06); color: var(--fwt-success); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed  .wpcf7-response-output { border-color: rgba(185,28,28,.35); background: rgba(239,68,68,.06); color: var(--fwt-danger); }

/* Przycisk wysyłki */
.contact-page-form .btn.btn-primary,
.contact-form-me input[type="submit"].wpcf7-submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #0e7a73;
  color: #fff;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease;
  font-size: 16px;
}
.contact-page-form .btn.btn-primary:hover,
.contact-form-me input[type="submit"].wpcf7-submit:hover{
  background-color: #1f5d4f;
}
.contact-page-form .btn.btn-primary:active,
.contact-form-me input[type="submit"].wpcf7-submit:active{
  background-color: #1f5d4f;
}
.contact-page-form .btn.btn-primary:focus-visible,
.contact-form-me input[type="submit"].wpcf7-submit:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(17,17,17,.18);
}

/* Spinner CF7 obok przycisku */
.wpcf7-spinner{
  margin-left: 10px !important;
  position: relative;
  top: 2px;
}

/* Drobne dopieszczenia */
.contact-form-me .input-name,
.contact-form-me .input-email,
.contact-form-me .input-phone,
.contact-form-me .input-text-area{
  display: flex;
  flex-direction: column;
}
.contact-form-me .align-center{ text-align: center; }

/* Page hero (zdjęcie nagłówkowe na podstronach) */
.page-hero{
  position: relative;
  /* min-height: 45vh;
  max-height: 560px;
  overflow: hidden;
  background: #111; */
  color: #fff;
}
.page-hero__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* wypełnij, przycinając nadmiar */
  object-position: center;   /* kadr – ewentualnie np. 50% 30% */
}
.page-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.25) 40%, rgba(0,0,0,.35)); */
}
.page-hero__inner{
  position: relative; z-index: 1;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 16px 24px calc(var(--header-h) + 24px) 24px;
  min-height: 80vh;
  text-align: center;
}
.page-hero__title{
  margin: 0;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.page-id-5508 .page-hero__title {
  position: absolute;
  bottom: 20%;
  max-width: 535px;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 2px 18px rgba(0,0,0,.65);
}
.page-id-5520 .site-main-margin {
  margin-top: 0;
}
.page-id-5520 .page-title,
.page-id-5971 .page-title
{
  display: none;
}
.page-id-5520 .site-footer {
  margin-top: 0;
}
.page-id-5520 .entry-content a {
  color: #000;
  text-decoration: none;
}
.page-id-5520 .entry-content a:hover {
  text-decoration: underline;
}

.page-id-5515 .page-hero__inner,
.page-id-5523 .page-hero__inner
{
  padding: 0;
  max-width: var(--small-container-w);
}
.page-id-5515 .page-hero__title,
.page-id-5523 .page-hero__title
{
  position: absolute;
  top: 35%;
  left: 16px;
  text-align: left;
  max-width: 545px;
  font-size: 36px;
  line-height: 2;
  right: 16px;
}

.page-id-5523 .page-hero__title {
  font-size: 62px;
}

.contact-page-form {
  max-width: 510px;
}
.contact-page-form .wpcf7-form-control-wrap {
  margin-bottom: 10px;
  padding-bottom: 10px;
}
.contact-page-form .wpcf7-text,
.contact-page-form .wpcf7-email,
.contact-page-form .wpcf7-textarea {
  padding: 20px 30px;
  font-size: 12px;
  background: #fff;
  border: 1px solid #fff;
  width: 100%;
  box-sizing: border-box;
  display: block;
}
.contact-page-form .row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
}
.contact-page-form .row .col-xl-6 {
  min-width: 180px;
}
.contact-page-form .wpcf7-list-item-label {
  font-size: .6rem;
}

@media (max-width: 800px){
  .page-id-5508 .page-hero__title
  {
    bottom: auto;
    top: 250px;
  }
  .page-id-5523 .page-hero__title {
    bottom: auto;
    top: 100px;
  }
  .page-id-5515 .page-hero__title,
  .page-id-5523 .page-hero__title
  {
    font-size: 24px;
    line-height: 1.5;
  }
  .m-order-2 {
    order: 2;
  }
}

.wp-element-caption a {
  color: #000;
}
.wp-element-caption a:hover {
  color: #0c6b65;
}

/* Mniejsze ekrany */
@media (max-width: 640px){
  .page-hero{ min-height: 28vh; max-height: 420px; }
}
.page-hero__desc{
  margin: 8px 0 0;
  max-width: 60ch;
  font-size: 1rem;
  opacity: .9;
}


.product_meta {
  display:none;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:hover {
  background-color: #1f5d4f;
  color: #fff;
  font-weight:normal;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
  background-color: #0e7a73;
  color: #fff;
  font-weight:normal;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
  color: #0e7a73;
  font-size: 1.25em;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price {
  color: #0e7a73;
}
.woocommerce .quantity .qty {
  height: 32px;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
  background-color: #0e7a73;
  text-decoration: none;
  background-image: none;
  font-weight:normal;
  color: #fff;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:hover {
  background-color: #1f5d4f;
  text-decoration: none;
  background-image: none;
  font-weight:normal;
  color: #fff;
}

/* Grid listy wpisów w kategorii */
.archive-list { max-width: var(--small-container-w); margin: 0 auto; padding: 32px 16px; }
.archive-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 1024px){ .archive-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .archive-grid { grid-template-columns: 1fr; } }

/* Karta wpisu */
.archive-card { background: #fff; border: 1px solid #e5e7eb; padding-bottom: 30px;  border-radius: 0; overflow: hidden; display: flex; flex-direction: column; }
.read-more-wrapper {margin: 10px 30px;text-decoration: none;}
.read-more-wrapper.no-margin {margin-left: 0; margin-right: 0;}
.read-more-wrapper a {
  color: #000; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: bold; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
}
.read-more-wrapper a:hover {
  color: #0c6b65;
}
.read-more-wrapper.no-margin a {
  width: auto;
}

/* Miniatura 16:9 */
.archive-thumb { display:block; aspect-ratio: 16/9; background: #f3f4f6; overflow: hidden; }
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-thumb__ph { display:block; width:100%; height:100%; background: linear-gradient(180deg,#f3f4f6,#eef0f3); }

/* Tytuł, meta, zajawka */
.archive-title { font-size: .6rem; line-height: 1; margin: 0 30px 15px 30px; }
.archive-title a { color: inherit; text-decoration: none; }
.archive-title a:hover { text-decoration: underline; }

.archive-meta { color: #6b7280; font-size: .6rem;  margin: 20px 30px 15px 30px; }
.archive-excerpt { color: #374151; font-size: .6rem; margin: 0 30px; }

.woocommerce-ordering {display:none;}
.woocommerce-loop-product__title {color:#333;}

.darowizna .flex {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.darowizna .wpcf7-form-control-wrap {
  display: block;
}
.darowizna .flex > div {
  flex: 1;
  max-width: 225px;
}
.darowizna .flex > div p {
  display: block;
}
.darowizna .flex > div p input {
  box-sizing: border-box;
  display: block;
  max-width: 100%;
  background: none;
  color: #fff;
  padding: 15px 0 15px 5px;
  border: none;
  border-bottom: 1px solid #000;
  width: 100%;
  color: #000;
}

/* Firefox 19+ */
.darowizna .flex > div p input::-moz-placeholder {
  color: #808080 !important;
  opacity: 1 !important;
}

/* Firefox 4 - 18 */
.darowizna .flex > div p input:-moz-placeholder {
  color: #808080 !important;
  opacity: 1 !important;
}

/* IE 10+ */
.darowizna .flex > div p input:-ms-input-placeholder {
  color: #808080 !important;
  opacity: 1 !important;
}

/* Microsoft Edge / modern browsers (standard) */
.darowizna .flex > div p input::placeholder {
  color: #808080 !important;
  opacity: 1 !important;
}

.wpcf7-radio.przycisk_pieniadze {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hide default radio inputs */
.wpcf7-radio.przycisk_pieniadze input[type="radio"] {
  display: none;
}
.wpcf7-radio.przycisk_pieniadze .wpcf7-list-item {
  margin: 0;
}
/* Style each label as a button */
.wpcf7-radio.przycisk_pieniadze .wpcf7-list-item-label {
  display: inline-block;
  padding: 10px 8px;
  border: 1px solid #333;
  border-radius:0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  background-color: #fff;
  color: #333;
  width:50px;
  text-align: center;
    
}

/* Hover effect */
.wpcf7-radio.przycisk_pieniadze .wpcf7-list-item-label:hover {
  background-color: #f0f0f0;
}

/* When selected — background changes */
.wpcf7-radio.przycisk_pieniadze input[type="radio"]:checked + .wpcf7-list-item-label {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

.flex-money > p {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.flex-money > p .wpcf7-form-control-wrap[data-name="inna-kwota"] {
  max-width: 130px;
}
.flex-money > p .wpcf7-form-control-wrap[data-name="inna-kwota"] input {
   box-sizing: border-box;
  display: block;
  max-width: 100%;
  background: none;
   padding: 13px 8px;
  border: 1px solid #333;
  font-size: 15px;
  color: #000;
}

.flex-money > p .wpcf7-form-control-wrap[data-name="inna-kwota"] input::-moz-placeholder {
  color: #000 !important;
  opacity: 1 !important;
}

/* Firefox 4 - 18 */
.flex-money > p .wpcf7-form-control-wrap[data-name="inna-kwota"] input:-moz-placeholder {
  color: #000 !important;
  opacity: 1 !important;
}

/* IE 10+ */
.flex-money > p .wpcf7-form-control-wrap[data-name="inna-kwota"] input:-ms-input-placeholder {
  color: #000 !important;
  opacity: 1 !important;
}

/* Microsoft Edge / modern browsers (standard) */
.flex-money > p .wpcf7-form-control-wrap[data-name="inna-kwota"] input::placeholder {
  color: #000 !important;
  opacity: 1 !important;
}
.darowizna .oswiadczenia {
  margin-top: 30px
}
.darowizna .oswiadczenia .wpcf7-list-item {
  margin: 0;
}

.darowizna .oswiadczenia .wpcf7-form-control-wrap {
  margin-bottom: 15px
}

.darowizna .oswiadczenia  label {
  display: inline-flex;      /* pozycjonuje checkbox i tekst obok siebie */
  align-items: flex-start;       /* wyrównanie w jednej linii */
  gap: 0.5rem;               /* odstęp między checkboxem a tekstem */
  white-space: nowrap;       /* zapobiega zawijaniu tekstu do nowej linii */
}

/* upewnij się, że wewnętrzny span zachowuje się jako jeden blok */
.darowizna .oswiadczenia .wpcf7-list-item-label {
  display: inline-block;
  white-space: wrap;
  margin-top: -2px
}

.darowizna .oswiadczenia .wpcf7-list-item-label a {
  color: #008578;
  font-weight: bold;
  text-decoration: none;
}

.darowizna .oswiadczenia .wpcf7-list-item-label a:hover {
  text-decoration: underline;
}

.darowizna .wpcf7-submit {
  margin-top: 10px;
  background: #008578;
  color: #fff;
  font-size: 20px
}

.darowizna .wpcf7-form-control.wpcf7-submit:not(:disabled):hover {
  background-color: #ffcc00; /* your desired hover color */
  color: #000; /* optional: text color change */
  cursor: pointer; /* optional: show pointer cursor */
}



