/*
Theme Name: Reklamazplexi Child
Theme URI: https://reklamazplexi.pl
Author: Reklamazplexi.pl
Author URI: https://reklamazplexi.pl
Description: Child theme Astra dla reklamazplexi.pl — litery 3D i logo przestrzenne z plexi. Paleta brandowa (granat + koral + złote halo). Producent reklamy od 1995.
Template: astra
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reklamazplexi
Domain Path: /languages
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ─── Reset & base ─────────────────────────────────────────────────── */
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{font-family:'Inter',sans-serif;color:#14163A;background:#fff;-webkit-font-smoothing:antialiased;}
img{max-width:100%;}
a{color:inherit;}

/* ─── Astra overrides ───────────────────────────────────────────────── */
.ast-container{max-width:1240px !important;}
.ast-page-builder-template .entry-content,.ast-plain-container .entry-content{padding:0;}
#masthead,.ast-header-wrap{display:none;}/* our sticky header replaces Astra's */
#ast-fixed-header{display:none !important;}
.ast-footer-overlay,#colophon{display:none;}/* our footer.php replaces Astra's */

/* ─── Keyframes ─────────────────────────────────────────────────────── */
@keyframes brandShimmer{to{background-position:200% center;}}
@keyframes haloPulse{0%,100%{opacity:.8;transform:scale(1);}50%{opacity:1;transform:scale(1.06);}}
@keyframes floatY{0%,100%{transform:translateY(0);}50%{transform:translateY(-12px);}}

/* ─── Hover states ──────────────────────────────────────────────────── */
header nav a:not([data-cta]):hover{color:#F9B731 !important;transform:translateY(-2px);}
[data-cta]:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(249,183,49,.45);}
[data-card]:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(13,14,53,.14),0 2px 0 rgba(240,81,57,.55) !important;}
.rzp-real:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(13,14,53,.12);}
.rzp-filter:hover{filter:brightness(.98);}

/* ─── Hamburger ─────────────────────────────────────────────────────── */
.rzp-burger{display:none;cursor:pointer;background:none;border:none;color:#fff;font-size:26px;padding:4px 8px;line-height:1;flex-shrink:0;}

/* ─── Focus visibility (keyboard nav) ──────────────────────────────── */
header nav a:focus-visible,
.rzp-burger:focus-visible,
[data-cta]:focus-visible{outline:2px solid #F9B731;outline-offset:2px;border-radius:4px;}

/* ─── WP nav menu ───────────────────────────────────────────────────── */
header .rzp-nav-items{list-style:none;padding:0;margin:0;display:flex;align-items:center;gap:18px;flex-wrap:wrap;}
header .rzp-nav-items li{list-style:none;}
header .rzp-nav-items>li>a{font:500 15px/1 'Inter',sans-serif;color:rgba(255,255,255,.82);text-decoration:none;white-space:nowrap;transition:color .25s ease,transform .25s ease;}
header .rzp-nav-items>li>a:hover{color:#F9B731;}
header .rzp-nav-items>li.current-menu-item>a{color:#F9B731;border-bottom:2px solid #F9B731;padding-bottom:2px;}

/* ─── Cookie banner ─────────────────────────────────────────────────── */

/* ─── Responsive ────────────────────────────────────────────────────── */
@media(max-width:1024px){
  .rzp-burger{display:block !important;}
  header nav.rzp-open{display:flex !important;flex-direction:column !important;position:fixed !important;top:52px !important;left:0 !important;right:0 !important;background:#0D0E35 !important;padding:20px !important;gap:16px !important;z-index:200 !important;border-bottom:2px solid #F05139 !important;}
  header nav.rzp-open a[style]{display:block !important;}
  header nav a[style*="rgba(255,255,255,.82)"]{display:none !important;}
  header[style]{flex-wrap:wrap !important;gap:10px 16px !important;}
  h1{font-size:38px !important;line-height:1.08 !important;}
  h2{font-size:28px !important;}
}
@media(max-width:880px){
  [style*="grid-template-columns:1.04fr 0.96fr"],
  [style*="grid-template-columns:0.85fr 1.15fr"],
  [style*="grid-template-columns:0.9fr 1.1fr"],
  [style*="grid-template-columns:1fr 1.5fr"]{grid-template-columns:1fr !important;}
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"]{grid-template-columns:repeat(2,1fr) !important;}
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"]{grid-template-columns:1fr !important;}
  [style*="grid-template-columns:1.5fr 1fr 1fr 1fr 1fr"]{grid-template-columns:1fr 1fr !important;}
  [style*="padding:96px 20px"]{padding:56px 18px !important;}
  [style*="padding:80px 20px"]{padding:48px 18px !important;}
}
@media(max-width:560px){
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"]{grid-template-columns:1fr !important;}
  [style*="grid-template-columns:1.5fr 1fr 1fr 1fr 1fr"]{grid-template-columns:1fr !important;}
  [style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr !important;}
  h1{font-size:30px !important;}
  h2{font-size:23px !important;}
}
/* ─── Realizacje/card text safety (prevents tag/title clipping on narrow cards) ── */
[style*="text-transform:uppercase"]{overflow-wrap:break-word;word-break:break-word;}
h3[style*="Space Grotesk"]{overflow-wrap:break-word;word-break:break-word;}
@media(prefers-reduced-motion:reduce){*{animation:none !important;}}
