/*
Theme Name: PENMAN Pro v4
Description: PENMAN Pro marketing theme - dark hero, glass cards, gradient blobs, browser mockups, photo backgrounds. Inspired by the Polish "dla-firm" prospectus.
Author: PENMAN
Version: 4.0.0
*/

/* =========================================================
   BASE
   ========================================================= */
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* Hide elements when print/PDF */
@media print {
  .no-print { display: none !important; }
}

/* =========================================================
   GLOW BLOBS - reused across hero sections.
   Use as: <div class="pm-blob pm-blob--cyan"></div>
   ========================================================= */
.pm-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}
.pm-blob--cyan    { background: radial-gradient(circle, rgba(56,189,248,0.45), rgba(14,165,233,0.05) 70%); }
.pm-blob--fuchsia { background: radial-gradient(circle, rgba(217,70,239,0.40), rgba(192,38,211,0.05) 70%); }
.pm-blob--blue    { background: radial-gradient(circle, rgba(59,130,246,0.40), rgba(37,99,235,0.05) 70%); }
.pm-blob--violet  { background: radial-gradient(circle, rgba(167,139,250,0.40), rgba(139,92,246,0.05) 70%); }
.pm-blob--emerald { background: radial-gradient(circle, rgba(52,211,153,0.40), rgba(16,185,129,0.05) 70%); }
.pm-blob--amber   { background: radial-gradient(circle, rgba(251,191,36,0.40), rgba(245,158,11,0.05) 70%); }

/* =========================================================
   DOT-GRID PATTERN - subtle dotted backdrop
   ========================================================= */
.pm-dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.06) 1px, transparent 0);
  background-size: 28px 28px;
}
.pm-dots-light {
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 28px 28px;
}

/* =========================================================
   GRADIENT TEXT helper (when Tailwind bg-clip-text gets brittle)
   ========================================================= */
.pm-gradient-text {
  background: linear-gradient(90deg, #7dd3fc, #67e8f9, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Home “Why now” stat titles — same clip technique, distinct pastel gradients */
.pm-gradient-text-stat-1 {
  background: linear-gradient(90deg, #fde68a, #fcd34d, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.pm-gradient-text-stat-2 {
  background: linear-gradient(90deg, #fecaca, #fb7185, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.pm-gradient-text-stat-3 {
  background: linear-gradient(90deg, #bae6fd, #7dd3fc, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* =========================================================
   PHOTO BG SECTIONS - Japan-style photo overlays
   Use as: <section class="pm-photo-bg" style="background-image: url(...)">
   ========================================================= */
.pm-photo-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.pm-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.85) 60%, rgba(30,58,138,0.85) 100%);
  pointer-events: none;
}
.pm-photo-bg > * { position: relative; z-index: 1; }

/* Lighter overlay variant for sections that want photo to show more */
.pm-photo-bg--soft::before {
  background: linear-gradient(180deg, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.70) 50%, rgba(15,23,42,0.85) 100%);
}

/* =========================================================
   FLOATING CARDS - small mini-card overlays on screens
   ========================================================= */
.pm-floating-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid rgb(241 245 249);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.25);
  padding: 1rem;
  max-width: 240px;
  animation: pmFloat 6s ease-in-out infinite;
}
@keyframes pmFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* =========================================================
   MOBILE HEADER MENU (accordion)
   ========================================================= */
@media (max-width: 767px) {
  .pm-mob-parent {
    border: 1px solid rgb(226 232 240);
    border-radius: 1rem;
    background: white;
    margin-bottom: 0.5rem;
    overflow: hidden;
  }
  .pm-mob-parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
  }
  .pm-mob-parent-link {
    display: block;
    padding: 0.875rem 1rem;
    font-weight: 600;
    color: rgb(15 23 42);
  }
  .pm-mob-parent-row .pm-mob-parent-link {
    padding: 0;
    flex: 1;
  }
  .pm-mob-subtoggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    color: rgb(71 85 105);
    transition: transform .25s ease;
  }
  .pm-mob-subtoggle[aria-expanded="true"] {
    transform: rotate(180deg);
    background: rgb(241 245 249);
  }
  .pm-mob-sub {
    display: none;
    padding: 0 0.75rem 0.75rem 0.75rem;
  }
  .pm-mob-sub.pm-open {
    display: block;
  }
  .pm-mob-child-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: rgb(15 23 42);
  }
  .pm-mob-child-link:hover {
    background: rgb(241 245 249);
  }
  .pm-mob-child-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
  }
  .pm-mob-child-desc {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    line-height: 1.25;
    color: rgb(100 116 139);
    font-weight: 400;
  }
  .pm-mob-child-divider {
    margin: 0.375rem 0.5rem;
    border: 0;
    border-top: 1px solid rgb(226 232 240);
  }
}

/* =========================================================
   POST CONTENT (single post / blog) - sane default typography
   for content edited via Block / Classic editor (not raw layouts).
   ========================================================= */
.pm-prose h2 { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.025em; margin: 2.5rem 0 1rem; color: rgb(15 23 42); }
.pm-prose h3 { font-size: 1.5rem;   font-weight: 700; letter-spacing: -0.02em;  margin: 2rem 0 0.75rem; color: rgb(15 23 42); }
.pm-prose h4 { font-size: 1.25rem;  font-weight: 600; margin: 1.5rem 0 0.5rem; color: rgb(15 23 42); }
.pm-prose p, .pm-prose ul, .pm-prose ol { font-size: 1.0625rem; line-height: 1.7; color: rgb(51 65 85); margin-bottom: 1rem; }
.pm-prose ul { list-style: disc; padding-left: 1.5rem; }
.pm-prose ol { list-style: decimal; padding-left: 1.5rem; }
.pm-prose li { margin-bottom: 0.5rem; }
.pm-prose a { color: rgb(37 99 235); text-decoration: underline; text-underline-offset: 3px; }
.pm-prose a:hover { color: rgb(29 78 216); }
.pm-prose code { background: rgb(241 245 249); padding: 0.125rem 0.375rem; border-radius: 0.375rem; font-size: 0.95em; color: rgb(15 23 42); }
.pm-prose pre { background: rgb(15 23 42); color: rgb(241 245 249); padding: 1.25rem; border-radius: 0.875rem; overflow-x: auto; font-size: 0.875rem; line-height: 1.6; }
.pm-prose pre code { background: transparent; color: inherit; padding: 0; }
.pm-prose blockquote { border-left: 4px solid rgb(99 102 241); padding-left: 1.25rem; margin: 1.5rem 0; color: rgb(71 85 105); font-style: italic; }
.pm-prose img { border-radius: 0.875rem; margin: 1.5rem 0; box-shadow: 0 8px 30px rgba(15,23,42,0.08); }
.pm-prose hr { border: 0; border-top: 1px solid rgb(226 232 240); margin: 2.5rem 0; }
.pm-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.pm-prose th, .pm-prose td { border: 1px solid rgb(226 232 240); padding: 0.625rem 0.875rem; text-align: left; }
.pm-prose th { background: rgb(248 250 252); font-weight: 600; }

/* =========================================================
   PAGINATION (blog / search)
   ========================================================= */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pagination .page-numbers, .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.875rem;
  border-radius: 0.625rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  color: rgb(15 23 42);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all .15s ease;
}
.pagination .page-numbers:hover, .nav-links .page-numbers:hover { background: rgb(241 245 249); }
.pagination .page-numbers.current, .nav-links .page-numbers.current {
  background: rgb(15 23 42);
  color: white;
  border-color: rgb(15 23 42);
}

/* =========================================================
   PROSE inside the dark hero - just a few overrides
   ========================================================= */
.pm-on-dark a { color: rgb(125 211 252); }
.pm-on-dark a:hover { color: white; }
