/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-30px); } 60% { transform: translateY(-15px); } }
@keyframes rotateIn { from { opacity: 0; transform: rotate(-200deg); } to { opacity: 1; transform: rotate(0); } }

.animated-section[class*="animation-"],
.ultimate-hero-block[class*="animation-"] { opacity: 0; }
.animated-section[class*="animation-"].animated,
.ultimate-hero-block[class*="animation-"].animated { animation-fill-mode: both; opacity: 1; }
.ultimate-hero-block[class*="animation-"].animated { animation-duration: 1s; }
.animation-fadeIn.animated { animation-name: fadeIn; }
.animation-slideUp.animated { animation-name: slideUp; }
.animation-slideLeft.animated { animation-name: slideLeft; }
.animation-zoomIn.animated { animation-name: zoomIn; }
.animation-bounce.animated { animation-name: bounce; }
.animation-rotateIn.animated { animation-name: rotateIn; }

/* Tylko bloki tej wtyczki: globalne .alignfull/.alignwide nadpisywały układ motywu w całej witrynie. */
[class*="wp-block-ultimate-builder-"].alignfull { width: 100vw; max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
[class*="wp-block-ultimate-builder-"].alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
/* Stopka globalna stoi już na pełnej szerokości strony; 100vw wliczałoby pasek przewijania i ucinało prawą kolumnę. */
.upbp-global-footer [class*="wp-block-ultimate-builder-"].alignfull { width: auto; max-width: none; margin-left: 0; margin-right: 0; }

.ultimate-hero-block { position: relative; overflow: hidden; width: 100%; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 40px; text-align: center; color: white; }
.hero-title { font-size: 3.5rem; margin-bottom: 20px; font-weight: 700; line-height: 1.2; }
.hero-subtitle { font-size: 1.5rem; margin-bottom: 30px; opacity: 0.9; }
.parallax { background-attachment: fixed; }

.pricing-table-block { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.pricing-columns { display: grid; gap: 30px; }
.columns-1 { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
.columns-2 { grid-template-columns: repeat(2, 1fr); }
.columns-3 { grid-template-columns: repeat(3, 1fr); }
.columns-4 { grid-template-columns: repeat(4, 1fr); }
.pricing-plan { background: white; border-radius: 12px; padding: 40px 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform 0.3s ease; position: relative; text-align: center; }
.pricing-plan:hover { transform: translateY(-10px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.pricing-plan.popular { border: 2px solid #0073aa; transform: scale(1.05); }
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: #0073aa; color: white; padding: 5px 20px; border-radius: 20px; font-size: 0.875rem; font-weight: 600; }
.plan-name { font-size: 1.5rem; margin-bottom: 20px; color: #333; }
.plan-price { margin-bottom: 30px; }
.amount { font-size: 3.5rem; font-weight: 700; color: #0073aa; }
.currency { font-size: 1.5rem; color: #666; }
.period { font-size: 1rem; color: #666; }
.plan-features { list-style: none; padding: 0; margin-bottom: 30px; text-align: left; }
.plan-features li { padding: 10px 0; border-bottom: 1px solid #eee; color: #555; }
.plan-features li:before { content: "✓"; color: #0073aa; font-weight: bold; margin-right: 10px; }
.plan-button { display: inline-block; width: 100%; padding: 15px; background: #0073aa; color: white; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s ease; text-decoration: none; text-align: center; }
.plan-button:hover { background: #005a87; color: white; }

.countdown-timer-block { text-align: center; padding: 40px 20px; }
.countdown-title { font-size: 2rem; margin-bottom: 30px; color: #333; }
.countdown-display { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.countdown-item { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px; border-radius: 12px; min-width: 100px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.countdown-number { display: block; font-size: 3rem; font-weight: 700; line-height: 1; }
.countdown-label { display: block; font-size: 0.875rem; margin-top: 10px; text-transform: uppercase; opacity: 0.9; }

.flip-card { perspective: 1000px; width: 100%; max-width: 350px; height: 300px; margin: 20px auto; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card.flip-vertical:hover .flip-card-inner { transform: rotateX(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px; border-radius: 12px; color: white; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.flip-card-back { transform: rotateY(180deg); }
.flip-card.flip-vertical .flip-card-back { transform: rotateX(180deg); }

.gradient-text-block { display: inline-block; margin: 20px 0; }
.animated-section { width: 100%; }

@media (max-width: 992px) {
    .columns-4, .columns-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .pricing-columns { grid-template-columns: 1fr !important; }
    .pricing-plan.popular { transform: none; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .countdown-number { font-size: 2rem; }
    .countdown-item { min-width: 70px; padding: 15px; }
    .flip-card { height: 250px; }
}

/* UPBP v4.3 - CONTACT FOOTER: kolory przychodzą jako zmienne CSS z atrybutów bloku
   i są użyte w style elementów; tu zostaje tylko hover, który musi przebić styl inline. */
.upbp-contact-footer {
    padding: 64px 20px;
}
.upbp-contact-footer .upbp-map-button:hover,
.upbp-contact-footer .upbp-map-overlay:hover span { background-color: var(--upbp-btn-hover, #005a87) !important; }
.upbp-contact-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 36px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    align-items: start;
}
.upbp-contact-footer h2 { margin: 0 0 10px; font-size: 2rem; line-height: 1.2; }
.upbp-contact-footer h3 { margin: 0 0 12px; font-size: 1.2rem; }
.upbp-contact-footer p, .upbp-contact-footer address, .upbp-contact-footer li, .upbp-contact-footer .upbp-hours { opacity: 0.9; }
.upbp-contact-footer a { text-decoration: none; transition: opacity 0.2s ease; }
.upbp-contact-footer a:hover { opacity: 0.75; text-decoration: underline; }
.upbp-company { font-size: 1.1rem; font-weight: 700; margin: 0 0 14px; opacity: 1 !important; }
.upbp-contact-address { font-style: normal; margin: 0 0 16px; white-space: pre-line; line-height: 1.7; }
.upbp-contact-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.upbp-line { display: block; white-space: pre-line; }
.upbp-hours { white-space: pre-line; line-height: 1.7; }
.upbp-contact-map-col { min-width: 0; }
.upbp-map-wrapper { position: relative; border-radius: var(--upbp-map-radius, 14px); overflow: hidden; background: rgba(0,0,0,0.15); box-shadow: 0 8px 30px rgba(0,0,0,0.18); }
.upbp-map-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.upbp-map-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding: 14px; text-decoration: none !important; }
.upbp-map-overlay span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,0.25); transition: background-color 0.3s ease, transform 0.2s ease; }
.upbp-map-overlay:hover span { transform: translateY(-2px); }
.upbp-map-button { display: inline-flex; margin-top: 14px; padding: 11px 18px; border-radius: 10px; text-decoration: none !important; font-weight: 700; transition: background-color 0.3s ease, transform 0.2s ease; }
.upbp-map-button:hover { transform: translateY(-2px); text-decoration: none !important; }
@media (max-width: 992px) {
    .upbp-contact-footer { padding: 48px 18px; }
    .upbp-contact-footer h2 { font-size: 1.6rem; }
}
