/*
Theme Name:   Magazyn Weselny
Theme URI:    https://magazynweselny.pl/
Author:       Magazyn Weselny
Description:  Motyw magazynowy dla portalu ślubnego. Warstwa prezentacji – logika (katalog firm, formularze, narzędzia) w pluginie magazynweselny-core.
Version:      1.1.3
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  magazynweselny
*/

[hidden] { display: none !important; }
body { background: #FAF9F6; color: #333333; font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: "Playfair Display", Georgia, serif; font-weight: 400; }
a { color: #333333; text-decoration: none; }
a:hover { color: #6f8260; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.05); } }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Treść wpisów (Gutenberg) */
.mw-content { font-size: 17px; line-height: 1.75; color: rgba(51,51,51,.9); }
@media (min-width: 1024px) { .mw-content { font-size: 18px; } }
.mw-content > * + * { margin-top: 1.25em; }
.mw-content h2 { margin-top: 2.4em; margin-bottom: .6em; font-size: 28px; line-height: 1.2; color: #333; scroll-margin-top: calc(var(--mw-header, 64px) + 2rem); }
.mw-content h3 { margin-top: 2em; font-size: 22px; line-height: 1.3; color: #333; scroll-margin-top: calc(var(--mw-header, 64px) + 2rem); }
@media (min-width: 1024px) { .mw-content h2 { font-size: 32px; } }
.mw-content a { text-decoration: underline; text-decoration-color: #9CAF88; text-underline-offset: 4px; }
.mw-content ul, .mw-content ol { padding-left: 1.25em; }
.mw-content ul { list-style: disc; } .mw-content ol { list-style: decimal; }
.mw-content li + li { margin-top: .4em; }
.mw-content blockquote, .mw-content .wp-block-quote { margin: 2.5rem 0; padding-left: 1.5rem; border-left: 2px solid #D8B4E2; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 26px; line-height: 1.35; color: #333; }
.mw-content blockquote cite { display: block; margin-top: .75rem; font-family: Inter, sans-serif; font-style: normal; font-size: 14px; color: rgba(51,51,51,.6); }
.mw-content img { border-radius: .5rem; height: auto; }
.mw-content figcaption { margin-top: .5rem; font-size: 13px; color: rgba(51,51,51,.55); }
.mw-content > p:first-of-type::first-letter { float: left; font-family: "Playfair Display", Georgia, serif; font-size: 3.75rem; line-height: .9; margin-right: .5rem; }
.mw-content .has-background { border-radius: .5rem; padding: 1.5rem; }
.alignwide { max-width: 1100px; } .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* Kalkulator na stronie Narzędzia – pełna szerokość pasa, bez podwójnego tła */
.mw-tools-content .mw-tool { background: transparent; border-radius: 0; }
.mw-tools-content > p:empty { display: none; }

/* Podmenu – desktop (rozwijane) */
.mw-nav-desktop li { position: relative; }
.mw-nav-desktop .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.mw-nav-desktop .sub-menu { position: absolute; top: 100%; left: -16px; z-index: 60; min-width: 250px; margin-top: 10px; padding: 8px; display: flex; flex-direction: column; background: #FAF9F6; border: 1px solid rgba(51,51,51,.1); border-radius: 10px; box-shadow: 0 20px 50px -24px rgba(51,51,51,.35); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.mw-nav-desktop .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mw-nav-desktop li:hover > .sub-menu, .mw-nav-desktop li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
/* Podmenu – mobile (rozwinięte) */
.mw-nav-mobile .sub-menu { padding: 4px 0 12px; border-bottom: 1px solid rgba(51,51,51,.1); }
.mw-nav-mobile .menu-item-has-children > a { border-bottom: 0; }

/* Druk narzędzi: tylko treść narzędzia */
@media print {
	body { background: #fff !important; }
	body > header, body > footer, #mw-mobile-menu, [data-mw-progress], [data-mw-noprint], .mw-tool-nav, .mw-tool-tips, .mw-tool-related, nav[aria-label="Okruszki"] { display: none !important; }
	.bg-\[\#F3F0EA\], .mw-tool { background: #fff !important; }
	.mw-tool .shadow-\[0_20px_60px_-30px_rgba\(51\,51\,51\,0\.25\)\] { box-shadow: none !important; border: 1px solid #ddd; }
	.lg\:sticky { position: static !important; }
	[data-group], [data-drop] { break-inside: avoid; }
}

/* Logo nie może się ściskać w nagłówku */
.custom-logo-link { display: block; flex-shrink: 0; }
.custom-logo-link img, header img.max-w-none { max-width: none; height: 2.5rem; width: auto; }
@media (min-width: 1024px) { .custom-logo-link img, header img.max-w-none { height: 3.5rem; } }
/* Podmenu w drugim rzędzie nagłówka */
.mw-nav-desktop .sub-menu { left: 50%; transform: translate(-50%, 4px); margin-top: 6px; }
.mw-nav-desktop li:hover > .sub-menu, .mw-nav-desktop li:focus-within > .sub-menu { transform: translate(-50%, 0); }
