/* Pardi Safety Főoldali Arculat v1.0.0 | WP Astra / Gutenberg compatible
   Scope: body.home only; does not rewrite text, page hierarchy, menus or shortcode output. */
body.home {
  --psh-ink:#203047; --psh-navy:#13466b; --psh-muted:#566b80;
  --psh-green:#2c7755; --psh-orange:#df601b; --psh-border:#dde8e9;
  --psh-light:#f8fbfa;
}
/* Clean reading rhythm for main content only. Avoid changing interactive calculators/quizzes. */
body.home .site-content .entry-content > :is(h1,h2,h3,h4) {
  color:var(--psh-ink); font-weight:750; letter-spacing:-.028em;
  line-height:1.23; text-wrap:balance;
}
body.home .site-content .entry-content > h1 { font-size:clamp(30px,3.6vw,48px); }
body.home .site-content .entry-content > h2 {
  font-size:clamp(26px,3.1vw,38px); margin-block:42px 22px;
  padding:18px 22px 18px 27px; background:linear-gradient(90deg,#f1f7f5,#ffffff);
  border:1px solid var(--psh-border); border-left:5px solid var(--psh-green);
  border-radius:0 14px 14px 0; box-shadow:0 5px 21px rgba(19,70,107,.035);
}
body.home .site-content .entry-content > h3 { font-size:clamp(22px,2.1vw,29px); margin-block:32px 16px; }
body.home .site-content .entry-content > p, body.home .site-content .entry-content > ul > li {
  color:#33475c; line-height:1.82; overflow-wrap:anywhere;
}
body.home .site-content .entry-content > p { margin-bottom:1.2em; }
body.home .site-content .entry-content > a:not(.wp-block-button__link) { text-underline-offset:3px; }
body.home .site-content .entry-content > :is(.wp-block-image img,figure img, .wp-block-cover, .wp-block-media-text__media img) {
  border-radius:17px; max-width:100%; height:auto;
}
body.home .site-content .entry-content .wp-block-group.ps-home-card,
body.home .site-content .entry-content .ps-home-card,
body.home .site-content .entry-content .wp-block-columns > .wp-block-column:has(> h3) {
  padding:clamp(20px,3vw,31px); background:linear-gradient(145deg,#fff,#f8fbfa);
  border:1px solid var(--psh-border); border-radius:18px;
  box-shadow:0 10px 32px rgba(19,70,107,.055);
}
body.home .site-content .entry-content .wp-block-group.ps-home-card h2,
body.home .site-content .entry-content .ps-home-card h2 { margin-top:0; }
body.home .site-content .entry-content :is(.wp-block-buttons .wp-block-button__link, .wp-block-button__link, a.ast-button, button.ast-button):not(.pskny-button) {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;border-radius:11px;
  background:var(--psh-orange);border:1px solid var(--psh-orange);
  color:#fff;font-weight:700;font-size:16px;padding:12px 26px;
  text-decoration:none;box-shadow:0 7px 18px rgba(223,96,27,.12);
  transition:background .18s ease, transform .18s ease;
}
body.home .site-content .entry-content :is(.wp-block-buttons .wp-block-button__link, .wp-block-button__link, a.ast-button, button.ast-button):not(.pskny-button):hover {
  background:#bd4b13; border-color:#bd4b13; transform:translateY(-1px);
}
body.home .site-content .entry-content :is(.wp-block-buttons .wp-block-button__link, .wp-block-button__link, a.ast-button, button.ast-button):focus-visible { outline:3px solid var(--psh-navy);outline-offset:3px; }
body.home .site-content .entry-content .wp-block-columns { gap:clamp(18px,2.5vw,28px); }
body.home .site-content .entry-content .wp-block-separator { opacity:.3; border-color:var(--psh-border); }
/* Style a previously blue Astra back-to-top button with the common brand accent. */
body.home #ast-scroll-top, body.home .ast-scroll-to-top {
  border-radius:11px !important; background:var(--psh-green) !important;
  box-shadow:0 5px 16px rgba(28,70,54,.15);
}
@media(max-width:767px){
  body.home .site-content .entry-content > h1 {font-size:30px;line-height:1.24}
  body.home .site-content .entry-content > h2 {
    font-size:clamp(23px,6vw,29px);padding:16px 16px 16px 19px;
    border-left-width:4px;border-radius:0 12px 12px 0;margin-block:32px 17px;
  }
  body.home .site-content .entry-content > p, body.home .site-content .entry-content > ul > li {font-size:16px;line-height:1.77}
  body.home .site-content .entry-content .wp-block-columns {gap:15px}
  body.home .site-content .entry-content .wp-block-buttons .wp-block-button {width:100%;}
  body.home .site-content .entry-content .wp-block-buttons .wp-block-button__link {width:100%;min-height:52px;}
  body.home #ast-scroll-top,body.home .ast-scroll-to-top {width:41px;height:41px;right:15px;bottom:16px;}
}
@media(prefers-reduced-motion:reduce){body.home .site-content .entry-content :is(.wp-block-button__link,.ast-button){transition:none !important;}}

/* Optional automatic grouping of THREE direct Gutenberg sibling service paragraphs.
   If strict matching fails, original order and content remain intact. */
body.home .site-content .entry-content .ps-home-services-grid {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:32px 0 45px;
}
body.home .site-content .entry-content .ps-home-service-card {
 min-width:0;padding:clamp(20px,2.5vw,29px);background:linear-gradient(140deg,#fff,#f5faf7);
 border:1px solid var(--psh-border);border-radius:17px;box-shadow:0 9px 25px rgba(19,70,107,.05);
}
body.home .site-content .entry-content .ps-home-service-card h2,
body.home .site-content .entry-content .ps-home-service-card h3 {
 margin:0 0 15px;padding:0;background:none;border:0;box-shadow:none;
 color:var(--psh-ink);font-size:clamp(21px,2vw,25px);line-height:1.25;
}
body.home .site-content .entry-content .ps-home-service-card::before {
 content:'✓';font-size:19px;font-weight:800;display:grid;place-items:center;
 width:39px;height:39px;border-radius:11px;background:#e6f3e9;color:var(--psh-green);margin-bottom:19px;
}
body.home .site-content .entry-content .ps-home-service-card:nth-child(2)::before{content:'✦';color:#c25824;background:#fff2e7;}
body.home .site-content .entry-content .ps-home-service-card:nth-child(3)::before{content:'↗';}
body.home .site-content .entry-content .ps-home-service-card p{font-size:15.5px;line-height:1.7;margin-bottom:0;color:#455970;}
@media(max-width:767px){body.home .site-content .entry-content .ps-home-services-grid{grid-template-columns:minmax(0,1fr);gap:14px;margin:25px 0 35px;}}
