/* Header + footer (report p. 5 and p. 8). LOCAL redesign draft. */

/* ---------- Header ------------------------------------------------------ */
body.nb-redesign #ast-desktop-header .site-primary-header-wrap { min-height: 92px; }
body.nb-redesign .ast-site-identity { gap: 14px; }
body.nb-redesign .site-branding .ast-site-title-wrap { margin-left: 4px; }
body.nb-redesign .site-title,
body.nb-redesign .site-title a {
  font-family: var(--nb-serif) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--nb-plum) !important;
  line-height: 1.1 !important;
  letter-spacing: 0.01em;
  margin: 0;
}
body.nb-redesign .site-title a:hover { color: var(--nb-raspberry) !important; }
body.nb-redesign .site-description {
  font-family: var(--nb-sans) !important;
  font-size: 12px !important;
  letter-spacing: 0.04em;
  color: var(--nb-muted) !important;
  margin: 2px 0 0;
}
/* Menu items: slightly tighter so the brand name + 6 items + socials fit on one line at 1280px */
body.nb-redesign #ast-desktop-header .main-header-menu > .menu-item > .menu-link { padding-left: 0.85em !important; padding-right: 0.85em !important; }
/* Space between logo block, menu and social icons */
body.nb-redesign #ast-desktop-header .ast-header-social-1-wrap { margin-left: 28px; padding-left: 24px; border-left: 1px solid var(--nb-line); }
body.nb-redesign #ast-desktop-header .ast-header-social-1-wrap .ast-builder-social-element { margin: 0 6px; }
body.nb-redesign #ast-desktop-header .main-header-bar { border-bottom: 1px solid var(--nb-line); }

/* ---------- Footer ------------------------------------------------------ */
/* Base size (the legacy footer rules of florystka-seo.php are switched off: florystka_legacy_css 'site-chrome') */
body.nb-redesign .site-footer { font-size: 14px; line-height: 1.6; }
body.nb-redesign .site-primary-footer-wrap { padding-top: 56px; padding-bottom: 40px; }
body.nb-redesign .site-primary-footer-wrap .widget-title {
  font-family: var(--nb-serif) !important;
  font-size: 18px !important;
  color: var(--nb-plum) !important;
}
body.nb-redesign .nb-foot-brand { display: flex; flex-direction: column; gap: 8px; }
body.nb-redesign .nb-foot-brand__logo img { width: 88px; height: 88px; border-radius: 50%; display: block; box-shadow: var(--nb-shadow); }
body.nb-redesign .site-footer .nb-foot-brand__name { font-family: var(--nb-serif) !important; font-size: 22px !important; font-weight: 600 !important; color: var(--nb-plum) !important; margin: 6px 0 0 !important; }
body.nb-redesign .nb-foot-brand__tag { font-size: 14px; line-height: 1.6; color: var(--nb-text); margin: 0; max-width: 260px; }
body.nb-redesign .site-footer .nb-phone { font-size: 16px; }
body.nb-redesign .site-footer .textwidget p { margin-bottom: 6px; font-size: 14px; line-height: 1.6; }

@media (max-width: 921px) {
  body.nb-redesign .nb-foot-brand { align-items: flex-start; }
}

/* ---------- Phone always within reach (UX step 2) ------------------------ */
/* Desktop: number at the right end of the header (Astra html-1) */
body.nb-redesign #ast-desktop-header .ast-header-html-1 { margin-left: 24px; padding-left: 20px; border-left: 1px solid var(--nb-line); }
body.nb-redesign .nb-hdr-tel {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  font: 700 15px/1 var(--nb-sans); color: var(--nb-plum) !important; text-decoration: none; white-space: nowrap;
}
body.nb-redesign .nb-ico { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; background-color: currentColor; }
body.nb-redesign .nb-ico--phone { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center / contain no-repeat; }
body.nb-redesign .nb-hdr-tel .nb-ico { color: var(--nb-raspberry); }
body.nb-redesign .nb-hdr-tel:hover { color: var(--nb-raspberry-dark) !important; }
body.nb-redesign .ast-header-html-1 p, body.nb-redesign .ast-header-html-2 p { margin: 0 !important; }
/* Narrow desktops: icon only (the number stays the accessible name) so the menu keeps one line */
@media (min-width: 922px) and (max-width: 1199px) {
  body.nb-redesign #ast-desktop-header .nb-hdr-tel .nb-hdr-tel__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.nb-redesign #ast-desktop-header .nb-hdr-tel { width: 44px; justify-content: center; }
}
/* Mobile: call button next to the menu toggle (html-2) and the number at the bottom of the menu (html-1) */
body.nb-redesign .nb-hdr-call {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--nb-blush); color: var(--nb-raspberry-dark) !important;
}
body.nb-redesign .nb-hdr-call .nb-ico { width: 20px; height: 20px; }
/* Mobile header: logo + name + call + menu must fit one line (the name was squeezed to one letter per line) */
@media (max-width: 921px) {
  body.nb-redesign #ast-mobile-header .site-branding, body.nb-redesign #ast-mobile-header .ast-site-identity { min-width: 0; flex: 1 1 auto; }
  body.nb-redesign #ast-mobile-header .ast-site-title-wrap { min-width: 0; }
  body.nb-redesign #ast-mobile-header .site-title, body.nb-redesign #ast-mobile-header .site-title a { font-size: 19px !important; white-space: normal; text-wrap: balance; } /* the full brand name wraps on narrow phones instead of pushing the menu button off screen */
  body.nb-redesign #ast-mobile-header .ast-header-html-2, body.nb-redesign #ast-mobile-header .ast-builder-layout-element.ast-header-mobile-trigger { flex: 0 0 auto; }
}
/* Very narrow phones: "Company" must stay whole on its line */
@media (max-width: 360px) {
  body.nb-redesign #ast-mobile-header .ast-site-identity { gap: 4px; }
  body.nb-redesign #ast-mobile-header .site-branding .ast-site-title-wrap { margin-left: 0; }
  body.nb-redesign #ast-mobile-header .site-logo-img img, body.nb-redesign #ast-mobile-header .custom-logo { max-width: 42px !important; width: 42px !important; height: auto !important; }
  body.nb-redesign #ast-mobile-header .site-title, body.nb-redesign #ast-mobile-header .site-title a { font-size: 16px !important; }
}
body.nb-redesign #ast-mobile-header .ast-header-html-2 { margin-right: 8px; }
body.nb-redesign #ast-mobile-header .menu-toggle,
body.nb-redesign #ast-mobile-header .ast-mobile-menu-trigger-minimal { min-width: 44px; min-height: 44px; }
body.nb-redesign .ast-mobile-header-content .ast-header-html-1 { padding: 8px 20px 16px; border-top: 1px solid var(--nb-line); }
body.nb-redesign .ast-mobile-header-content .nb-hdr-tel { font-size: 17px; }

/* Bottom call bar on small screens (nb-callbar.js) */
body.nb-redesign .nb-callbar {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 9998;
  display: flex; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(255, 250, 245, .96); box-shadow: 0 10px 30px rgba(58, 31, 43, .22); border: 1px solid var(--nb-line);
  transform: translateY(140%); opacity: 0; visibility: hidden;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, visibility 0s linear .28s;
}
body.nb-redesign .nb-callbar.is-visible { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
body.nb-redesign .nb-callbar a {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border-radius: 999px; font: 700 15px/1 var(--nb-sans); text-decoration: none !important;
}
body.nb-redesign .nb-callbar__call { background: var(--nb-raspberry); color: #fff !important; }
body.nb-redesign .nb-callbar__call svg { width: 18px; height: 18px; }
body.nb-redesign .nb-callbar__ask { background: #fff; color: var(--nb-plum) !important; box-shadow: inset 0 0 0 1px var(--nb-line); }
body.nb-redesign .nb-callbar a:focus-visible { outline: 2px solid var(--nb-plum); outline-offset: 2px; }
@media (min-width: 922px) { body.nb-redesign .nb-callbar { display: none; } }
@media (prefers-reduced-motion: reduce) { body.nb-redesign .nb-callbar { transition: none; } }

/* ---------- Touch targets ------------------------------------------------- */
/* Inline phone links: vertical padding on an inline element enlarges the hit area without moving the text */
body.nb-redesign a.nb-phone { padding: 12px 2px; }
body.nb-redesign .site-footer .textwidget a, body.nb-redesign .site-footer .nb-foot-brand a:not(.nb-foot-brand__logo),
body.nb-redesign .site-footer .menu a { padding-top: 4px; padding-bottom: 4px; }
body.nb-redesign .nb-btn--sm .elementor-button { min-height: 44px; display: inline-flex; align-items: center; }
body.nb-redesign .elementor-swiper-button { width: 44px !important; height: 44px !important; display: grid !important; place-items: center; }

/* ---------- Cookie banner (existing plugin): "Tylko niezbędne" turned white-on-white on hover ---------- */
body.nb-redesign #florystka-cookie-banner .fcb-btn-reject:hover,
body.nb-redesign #florystka-cookie-banner .fcb-btn-reject:focus-visible { color: var(--nb-plum) !important; }
